diff --git a/.env.example b/.env.example
index cfc1e17164..3d56c58538 100644
--- a/.env.example
+++ b/.env.example
@@ -1,6 +1,7 @@
### copy to .env and set variables
### ODK Central ###
+ODK_CENTRAL_VERSION=v2023.2.1
ODK_CENTRAL_URL=https://central-proxy
ODK_CENTRAL_USER=dev@fmtm.hotosm.org
ODK_CENTRAL_PASSWD=fmtm
@@ -16,12 +17,12 @@ FRONTEND_MAP_URL=127.0.0.1:8081
# API_PREFIX=/api
### OSM ###
-OSM_CLIENT_ID=
-OSM_CLIENT_SECRET=
+OSM_CLIENT_ID=xxx
+OSM_CLIENT_SECRET=xxx
OSM_URL=https://www.openstreetmap.org
OSM_SCOPE=read_prefs
OSM_LOGIN_REDIRECT_URI=http://127.0.0.1:8080/osmauth/
-OSM_SECRET_KEY=
+OSM_SECRET_KEY=xxx
### Database (optional) ###
CENTRAL_DB_HOST=central-db
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000000..d0cddf893d
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,90 @@
+name: Publish Docs
+
+on:
+ push:
+ paths:
+ - docs/**
+ - src/**
+ - mkdocs.yml
+ branches: [main]
+ # Allow manual trigger (workflow_dispatch)
+ workflow_dispatch:
+
+permissions:
+ contents: write
+
+jobs:
+ build_doxygen:
+ name: Build Doxygen Docs
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Setup Doxygen
+ run: sudo apt-get update && sudo apt-get install -y doxygen
+
+ - name: Write cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ .cache
+ docs/apidocs
+ docs/openapi.json
+ key: doc-build-${{ env.cache_id }}
+
+ - name: Build Doxygen Docs
+ run: |
+ cd docs
+ doxygen
+
+ build_openapi_json:
+ name: Build OpenAPI
+ runs-on: ubuntu-latest
+ container: ghcr.io/hotosm/fmtm/backend:ci-main
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Read cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ .cache
+ docs/apidocs
+ docs/openapi.json
+ key: doc-build-${{ env.cache_id }}
+ restore-keys: |
+ doc-build-
+
+ - name: Build OpenAPi JSON
+ run: |
+ cd src/backend
+ python ../../scripts/gen_openapi_json.py -o ../../docs/openapi.json
+
+ publish_docs:
+ name: Publish Docs
+ runs-on: ubuntu-latest
+ container: ghcr.io/hotosm/fmtm/backend:ci-main
+ needs: [build_doxygen, build_openapi_json]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Read cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ .cache
+ docs/apidocs
+ docs/openapi.json
+ key: doc-build-${{ env.cache_id }}
+ restore-keys: |
+ doc-build-
+
+ - name: Publish
+ run: |
+ cd src/backend
+ mkdocs gh-deploy --config-file=../../mkdocs.yml --force
diff --git a/.github/workflows/wiki.yml b/.github/workflows/wiki.yml
deleted file mode 100644
index 5607ca3c84..0000000000
--- a/.github/workflows/wiki.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Publish Docs to Wiki
-
-on:
- push:
- paths:
- - docs/**
- branches: [main]
- # Allow manual trigger (workflow_dispatch)
- workflow_dispatch:
-
-env:
- USER_TOKEN: ${{ secrets.WIKI_DEPLOY_TOKEN }}
- USER_NAME: svcfmtm
- USER_EMAIL: fmtm@hotosm.org
- ORG: ${{ github.event.repository.owner.name }}
- REPO_NAME: ${{ github.event.repository.name }}
-
-jobs:
- publish_docs_to_wiki:
- # rclone syncs /docs dir to fmtm.wiki repo
- name: Publish Docs to Wiki
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
-
- - name: Pull content from wiki
- run: |
- mkdir tmp_wiki
- cd tmp_wiki
- git init
- git config user.name $USER_NAME
- git config user.email $USER_EMAIL
- git pull https://$USER_TOKEN@github.com/$ORG/$REPO_NAME.wiki.git
-
- - name: Push content to wiki
- run: |
- apt update && apt install -y rsync
- rsync -av --delete docs/ tmp_wiki/ --exclude .git
- cd tmp_wiki
- git add .
- git commit -m "docs: automated wiki update on push"
- git push -f --set-upstream https://$USER_TOKEN@github.com/$ORG/$REPO_NAME.wiki.git master
diff --git a/.gitignore b/.gitignore
index e2e1a24147..b159d61abe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -72,4 +72,6 @@ src/frontend/node_modules
# pdm
**/.pdm.toml
+**/pdm.toml
+**/.pdm-python
**/__pypackages__
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 9c16b967ca..6f18f60fde 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,4 +1,4 @@
-# Code of conduct
+# 📜 Code of conduct
(The latest version can be found at )
@@ -80,4 +80,4 @@ As a first measure, it is preferable to work out issues directly with the people
- Contact the HOT Community Partnerships Manager.
-When these informal processes fail, or when a situation warrants an immediate response by HOT, you can evoke the **HOT Policy and Code of Conduct Complaint Handling Process**. This process was adopted by HOT Voting Members in 2016 to provide a more formal means of enforcement for our community standards. You start it by emailing [complaints@hotosm.org](mailto:compaints@hotosm.org) with a description of your complaint, your name, and the name of the offending party. All complaints will be considered confidential. The full process is described [here](https://docs.google.com/document/d/1xb-SPADtSbgwl6mAgglHMPHpknt-E7lKRoIcSbW431A/edit)
+When these informal processes fail, or when a situation warrants an immediate response by HOT, you can evoke the **HOT Policy and Code of Conduct Complaint Handling Process**. This process was adopted by HOT Voting Members in 2016 to provide a more formal means of enforcement for our community standards. You start it by emailing [complaints@hotosm.org](mailto:compaints@hotosm.org) with a description of your complaint, your name, and the name of the offending party. All complaints will be considered confidential. The full process is described [here](https://docs.google.com/document/d/1xb-SPADtSbgwl6mAgglHMPHpknt-E7lKRoIcSbW431A/edit) .
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 372fc080fb..02be6a5d07 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,4 +1,33 @@
-# Contribution guidelines
+## 🤗 Welcome
+
+:+1::tada: First off, We are really glad you're reading this, because we need volunteer developers to help improve the Field Mapping Tasking Manager (FMTM)! :tada::+1:
+
+We welcome and encourage contributors of all skill levels, and we are committed to making sure your participation is inclusive, enjoyable, and rewarding. If you have never contributed to an open source project before, we are a good place to start, and we will make sure you are supported every step of the way. If you have **any** questions, please ask!
+
+You can see an overview of the project and the process we have gone through in developing FMTM so far in these [slides](https://docs.google.com/presentation/d/1UrBG1X4MXwVd8Ps498FDlAYvesIailjjPPJfR_B4SUs/edit#slide=id.g15c1f409958_0_0) .
+
+Furthermore, there are many ways to contribute to the **Field Mapping Tasking Manager (FMTM)**, which includes:
+
+## Testing
+
+Right now, we are in the process of building the prototype. We warmly welcome your input in testing and sharing your feedback. If you are also interested in coordinating a field testing session, please reach out!
+
+## Code contributions
+
+Create pull requests (PRs) for changes that you think are needed. We would really appreciate your help!
+
+In fact, we are specifically looking for input from developers with **Python skills** and **familiarity with Fast API**.
+
+## Report bugs and suggest improvements
+
+The [issue queue](https://github.com/hotosm/fmtm/issues) is the best way to get started. There are issue templates for BUGs and FEATURES that you can use, you could also create your own. Once you have submitted an issue, it will be assigned one label from the following [label categories](https://github.com/hotosm/fmtm/labels). If you are wondering where to start, you can filter by the **good first issue label**.
+
+## :handshake: Thank you
+
+Thank you very much in advance for your contributions!! Please ensure you refer to our **Code of Conduct**.
+If you've read the guidelines, but are still not sure how to contribute on Github, please reach out to us via our Slack **#geospatial-tech-and-innovation**.
+
+# Code Contribution guidelines
## Workflow
diff --git a/Makefile b/Makefile
index 35a0e5191e..625a0df156 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,19 @@
# Copyright (c) 2020, 2021 Humanitarian OpenStreetMap Team
#
-# This file is part of Osm-Fieldwork.
+# This file is part of FMTM.
#
-# Osm-Fieldwork is free software: you can redistribute it and/or modify
+# FMTM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
-# Osm-Fieldwork is distributed in the hope that it will be useful,
+# FMTM is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with Osm-Fieldwork. If not, see .
+# along with FMTM. If not, see .
#
# All python source files
diff --git a/README.md b/README.md
index 7941537dbc..3196bf7773 100644
--- a/README.md
+++ b/README.md
@@ -4,18 +4,20 @@
**Production Workflows**
-| PyTest | Build & Deploy | Wiki Docs |
-|---|---|---|
+| PyTest | Build & Deploy | Wiki Docs |
+| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [![pytest](https://github.com/hotosm/fmtm/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/hotosm/fmtm/actions/workflows/pytest.yml) | [![Build and Deploy](https://github.com/hotosm/fmtm/actions/workflows/build_and_deploy.yml/badge.svg?branch=main)](https://github.com/hotosm/fmtm/actions/workflows/build_and_deploy.yml) | [![Publish Docs to Wiki](https://github.com/hotosm/fmtm/actions/workflows/wiki.yml/badge.svg?branch=main)](https://github.com/hotosm/fmtm/actions/workflows/wiki.yml) |
**Development Workflows**
-| PyTest | Build & Deploy |
-|---|---|
+| PyTest | Build & Deploy |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [![pytest](https://github.com/hotosm/fmtm/actions/workflows/pytest.yml/badge.svg?branch=development)](https://github.com/hotosm/fmtm/actions/workflows/pytest.yml) | [![Build and Deploy](https://github.com/hotosm/fmtm/actions/workflows/build_and_deploy.yml/badge.svg?branch=development)](https://github.com/hotosm/fmtm/actions/workflows/build_and_deploy.yml) |
# Field Mapping Tasking Manager (FMTM)
+🕮 [Documentation](https://hotosm.github.io/fmtm/)
+
A project to provide tools for Open Mapping campaigns
While we have pretty good field mapping applications, we don’t have great tools to coordinate field mapping. However, we have most of the elements needed to create a field mapping-oriented version of the HOT Tasking Manager, which allows people to select specific areas and complete tasks in a coordinated, organized fashion.
diff --git a/docs/About.md b/docs/About.md
index 6810dc3a01..94e48abfe6 100644
--- a/docs/About.md
+++ b/docs/About.md
@@ -2,19 +2,23 @@
# Field Mapping Tasking Manager (FMTM)
-## :open_book: History
+## 📖 History
+
_How was FMTM born ?_
-It started as Ivan's idea to build FMTM (Ivan Gayton is Senior Humanitarian Advisor at Humanitarian OpenStreetMap Team) which then became a collaborative project with the efforts of Ivan , Rob Savoye who is Senior Technical Lead at Humanitarian OpenStreetMap Team and many other members from HOT as well as volunteers interested in the project.
-HOT uses ODK heavily, but most of the data never makes it into OSM because all the data processing is manual and slow, so it doesn't get done.
+It started as Ivan's idea to build FMTM (Ivan Gayton is Senior Humanitarian Advisor at Humanitarian OpenStreetMap Team) which then became a collaborative project with the efforts of Ivan , Rob Savoye who is Senior Technical Lead at Humanitarian OpenStreetMap Team and many other members from HOT as well as volunteers interested in the project.
+HOT uses ODK heavily, but most of the data never makes it into OSM because all the data processing is manual and slow, so it doesn't get done.
Ivan Gayton(Senior Humanitarian Advisor at Humanitarian OpenStreetMap Team) heard about what Rob was working on and goes "That's the missing piece I needed!". He'd been wanting to build FMTM for years, but lacked the ability to process the data.A [webinar](https://www.youtube.com/watch?v=GiLKRZpbtrc&ab_channel=HumanitarianOpenStreetMapTeam) then took place in September 2022 that showcased the high interest from the community and the need for collaborative field mapping that really kicked off the starting point for building the Field Mapping Tasking Manager. It was Ivan who got HOT interested enough to direct some resources to his idea, so FMTM was born.
+
-_Want to know about OSM-fieldwork project ?_ Click [here](https://github.com/hotosm/osm-fieldwork/wiki)
+
+_Want to know about OSM-fieldwork project ?_ Click [here](https://github.com/hotosm/osm-fieldwork/wiki)
+
## A project to provide tools for Open Mapping campaigns
The Field Mapping Tasking Manager (FMTM) is a project that aims to provide tools for coordinating field mapping activities in Open Mapping campaigns. While there are existing field mapping applications, there is a lack of efficient tools to coordinate these activities. The FMTM builds on the HOT Tasking Manager and other mapping applications to provide a more streamlined and organized process for completing mapping tasks.
@@ -49,7 +53,7 @@ There are three main user roles for using ODK's Select From Map feature: campaig
Campaign managers select an Area of Interest (AOI) and organize field mappers to go out and collect data. They need to:
-
+
- Select an AOI polygon by creating a GeoJSON or by tracing a polygon in a Web map
- Choose a task division scheme (number of features or area per task, and possible variations on what features to use as the preferred splitting lines)
@@ -57,8 +61,6 @@ Campaign managers select an Area of Interest (AOI) and organize field mappers to
- Provide a URL to a mobile-friendly Web page where field mappers can, from their mobile phone, select a task that is not already "checked out" (or possibly simply allocate areas to the field mappers).
- See the status of tasks (open, "checked out", completed but not validated, requires to rework, validated, etc) in the Web browser on their computer
-
-
## Field mappers
Field mappers select (or are allocated) individual tasks within a project AOI and use ODK Collect to gather data in those areas. They need to:
@@ -66,8 +68,6 @@ Field mappers select (or are allocated) individual tasks within a project AOI an
- Visit a mobile-friendly Web page where they can see available tasks on a map
- Choose an area and launch ODK Collect with the form corresponding to their allocated area pre-loaded
-
-
## Validators
Validators review the data collected by field mappers and assess its quality. If the data is good, the validators merge the portion of the data that belongs in OpenStreetMap to OSM. If it requires more work, the validators either fix it themselves (for minor stuff like spelling or capitalization mistakes that don't seem to be systematic) or inform the field mappers that they need to fix it. They need to:
@@ -81,7 +81,3 @@ Validators review the data collected by field mappers and assess its quality. If
# Info for developers
For this visit the [Getting Started Page](https://github.com/hotosm/fmtm/wiki/DEV-1.-Getting-Started).
-
-
-
-
diff --git a/docs/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.md
new file mode 120000
index 0000000000..0400d57460
--- /dev/null
+++ b/docs/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+../CODE_OF_CONDUCT.md
\ No newline at end of file
diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md
new file mode 120000
index 0000000000..44fcc63439
--- /dev/null
+++ b/docs/CONTRIBUTING.md
@@ -0,0 +1 @@
+../CONTRIBUTING.md
\ No newline at end of file
diff --git a/docs/Code-of-Conduct.md b/docs/Code-of-Conduct.md
deleted file mode 100644
index 66413e8d94..0000000000
--- a/docs/Code-of-Conduct.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# :scroll: Code of conduct
-
-(The latest version can be found at )
-
-Welcome to Humanitarian OpenStreetMap Team. HOT is committed to providing a welcoming and safe environment for people of all races, gender identities, gender expressions, sexual orientations, physical abilities, physical appearances, socio-economic backgrounds, nationalities, ages, religions, and beliefs.
-
-The HOT community principles are:
-
-- **Be friendly and patient.** Be generous and kind in both giving and accepting critique. Critique is a natural and important part of our culture. Good critiques are kind, respectful, clear, and constructive, focused on goals and requirements rather than personal preferences. You are expected to give and receive criticism with grace. Be considerate in speech and actions, and actively seek to acknowledge and respect the boundaries of fellow attendees.
-
-- **Be welcoming.** We strive to be a community that welcomes and supports people of all backgrounds and identities. Some examples of behavior that contributes to creating a positive environment include:
-
- - Using welcoming and inclusive language.
-
- - Being respectful of differing viewpoints and experiences.
-
- - Gracefully accepting constructive criticism.
-
- - Showing empathy towards other community members.
-
- - Placing collective interest before your own interest.
-
-- **Be considerate.** Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
-
-- **Be respectful.** Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the HOT community should be respectful when dealing with other members as well as with people outside the HOT community.
-
-- **Be careful in your word choice.** We are a global community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable. This includes, but is not limited to:
-
- - Violent threats or language directed against another person.
-
- - Discriminatory jokes and language.
-
- - Posting sexually explicit or violent material.
-
- - Posting (or threatening to post) other people's personally identifying information ("doxing").
-
- - Personal insults, especially those using racist or sexist terms.
-
- - Unwelcome sexual attention.
-
- - Advocating for, or encouraging, any of the above behavior.
-
- - Repeated harassment of others. In general, if someone asks you to stop, then stop.
-
-- **Assume all communications are positive.** Always remain polite, and assume good faith. It is surprisingly easy to misunderstand each other, be it online or in person, particularly in such a culturally diverse setting as ours. Misunderstandings are particularly easy to arise when we are in a rush, or otherwise distracted. Please ask clarifying questions before assuming that a communication was inappropriate.
-
-- **When we disagree, try to understand why.** Disagreements, both social and technical, happen easily and often. It is important that we resolve such disagreements and differing views constructively. At times it can be hard to appreciate a viewpoint that contradicts your own perceptions. Instead of pushing back, try to understand where the other person is coming from, and don’t be afraid to ask questions. You can be most helpful if your own replies serve to clarify, rather than to escalate an issue. Also don’t forget that it can be easy to make mistakes, and allow for the possibility that the mistake may have been yours. When this happens it is better to resolve the issue together, and to learn from the experience together, than to place blame.
-
-Original text courtesy of the [Speak Up! project](http://web.archive.org/web/20141109123859/http://speakup.io/coc.html).
-
-Further sources:
-
-- [Ada Initiative: HOWTO design a code of conduct for your community](https://adainitiative.org/2014/02/18/howto-design-a-code-of-conduct-for-your-community/)
-
-- [Algorithm Club Code of Conduct](https://github.com/drtortoise/critical-algorithm-studies/blob/master/code-of-conduct.md)
-
-- [American Red Cross GIS Team Code of Conduct](https://github.com/AmericanRedCross/team-code-of-conduct)
-
-- [Contributor Covenant – A Code of Conduct for Open Source Projects](http://contributor-covenant.org/)
-
-- [Django Code of Conduct](https://www.djangoproject.com/conduct/)
-
-- [Mozilla Community Participation Guidelines](https://www.mozilla.org/en-US/about/governance/policies/participation/)
-
-- [Vox Media Code of Conduct](http://code-of-conduct.voxmedia.com/)
-
-## Complaint Handling Process
-
-As a first measure, it is preferable to work out issues directly with the people involved, or to work with other Community Members who can help you resolve the issue. This may take several forms:
-
-- Talk with one another. Assume that communications are positive and that people are treating each other with respect. Cues about emotions are often lacking from digital communications. Many of our modes of digital communication tend towards brevity, which can be easier to interpret incorrectly as being negative.
-
-- Contact a representative of the [Community Working Group](https://www.hotosm.org/community/working-groups/), which exists to support the HOT Community. Representatives are available to discuss any concerns about behaviour within the community, or ideas to promote positive behaviours. You can email them at [community@hotosm.org](mailto:community@hotosm.org).
-
-- Contact a representative of the [Governance Working Group](https://www.hotosm.org/community/working-groups/), which drafted these recommendations and the CoC. Representatives are available to provide advice on particular scenarios, as well as on the processes around the CoC.
-
-- Contact the HOT Chair of Voting Members.
-
-- Contact a [HOT Board Member](https://www.hotosm.org/board). Board members are well versed in the community and its management. They can offer advice on your particular situation, and know the resources of the organization that may be available to you.
-
-- Contact the HOT Community Partnerships Manager.
-
-When these informal processes fail, or when a situation warrants an immediate response by HOT, you can evoke the **HOT Policy and Code of Conduct Complaint Handling Process**. This process was adopted by HOT Voting Members in 2016 to provide a more formal means of enforcement for our community standards. You start it by emailing [complaints@hotosm.org](mailto:compaints@hotosm.org) with a description of your complaint, your name, and the name of the offending party. All complaints will be considered confidential. The full process is described [here](https://docs.google.com/document/d/1xb-SPADtSbgwl6mAgglHMPHpknt-E7lKRoIcSbW431A/edit) .
diff --git a/docs/Contribution.md b/docs/Contribution.md
deleted file mode 100644
index 04ac55bc75..0000000000
--- a/docs/Contribution.md
+++ /dev/null
@@ -1,28 +0,0 @@
-## :hugs: Welcome
-
-:+1::tada: First off, We are really glad you're reading this, because we need volunteer developers to help improve the Field Mapping Tasking Manager (FMTM)! :tada::+1:
-
-We welcome and encourage contributors of all skill levels, and we are committed to making sure your participation is inclusive, enjoyable, and rewarding. If you have never contributed to an open source project before, we are a good place to start, and we will make sure you are supported every step of the way. If you have **any** questions, please ask!
-
-You can see an overview of the project and the process we have gone through in developing FMTM so far in these [slides](https://docs.google.com/presentation/d/1UrBG1X4MXwVd8Ps498FDlAYvesIailjjPPJfR_B4SUs/edit#slide=id.g15c1f409958_0_0) .
-
-Furthermore, there are many ways to contribute to the **Field Mapping Tasking Manager (FMTM)**, which includes:
-
-## Testing
-
-Right now, we are in the process of building the prototype. We warmly welcome your input in testing and sharing your feedback. If you are also interested in coordinating a field testing session, please reach out!
-
-## Code contributions
-
-Create pull requests (PRs) for changes that you think are needed. We would really appreciate your help!
-
-In fact, we are specifically looking for input from developers with **Python skills** and **familiarity with Fast API**.
-
-## Report bugs and suggest improvements
-
-The [issue queue](https://github.com/hotosm/fmtm/issues) is the best way to get started. There are issue templates for BUGs and FEATURES that you can use, you could also create your own. Once you have submitted an issue, it will be assigned one label from the following [label categories](https://github.com/hotosm/fmtm/labels). If you are wondering where to start, you can filter by the **good first issue label**.
-
-## :handshake: Thank you
-
-Thank you very much in advance for your contributions!! Please ensure you refer to our **Code of Conduct**.
-If you've read the guidelines, but are still not sure how to contribute on Github, please reach out to us via our Slack **#geospatial-tech-and-innovation**.
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
new file mode 120000
index 0000000000..71db8b4934
--- /dev/null
+++ b/docs/INSTALL.md
@@ -0,0 +1 @@
+../INSTALL.md
\ No newline at end of file
diff --git a/docs/_Sidebar.md b/docs/_Sidebar.md
deleted file mode 100644
index a5ac067850..0000000000
--- a/docs/_Sidebar.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# [Home](https://github.com/hotosm/fmtm/wiki)
-
-[About](https://github.com/hotosm/fmtm/wiki/About)
-
-[Code of Conduct](https://github.com/hotosm/fmtm/wiki/Code-of-Conduct)
-
-[User Manual for FMTM](https://github.com/hotosm/fmtm/wiki/User-Manual-For-Project-Managers)
-
-[Contribution](https://github.com/hotosm/fmtm/wiki/Contribution)
-
-[FAQ](https://github.com/hotosm/fmtm/wiki/FAQ)
-
-## For Developers
-
-[1. Getting Started](https://github.com/hotosm/fmtm/wiki/DEV-1.-Getting-Started)
-
-[2. Backend](https://github.com/hotosm/fmtm/wiki/DEV-2.-Backend)
-
-[3. Frontend](https://github.com/hotosm/fmtm/wiki/DEV-3.-Frontend)
-
-[4. Database Tips](https://github.com/hotosm/fmtm/wiki/DEV-4.-Database-Tips)
-
-[5. Docker Tips](https://github.com/hotosm/fmtm/wiki/DEV-5.-Docker-Tips)
-
-[6. Production Deployment](https://github.com/hotosm/fmtm/wiki/DEV-6.-Production-Deployment)
diff --git a/docs/DEV-2.-Backend.md b/docs/dev/Backend.md
similarity index 100%
rename from docs/DEV-2.-Backend.md
rename to docs/dev/Backend.md
diff --git a/docs/DEV-4.-Database-Tips.md b/docs/dev/Database-Tips.md
similarity index 97%
rename from docs/DEV-4.-Database-Tips.md
rename to docs/dev/Database-Tips.md
index 5dc5960a5b..0ccbd8b66e 100644
--- a/docs/DEV-4.-Database-Tips.md
+++ b/docs/dev/Database-Tips.md
@@ -5,12 +5,12 @@
`psql -d fmtm -U fmtm -h localhost`
**Option 2** (when running the database in Docker) use this command to access the
-PostgreSQL shell inside the fmtm-db-1 container and interact with the fmtm database
+PostgreSQL shell inside the fmtm-db-1 container and interact with the fmtm database
using the psql command-line interface:
`docker exec -it fmtm-db-1 psql -U fmtm fmtm`
-And then connect to the database using this command :
+And then connect to the database using this command :
`\c fmtm`
diff --git a/docs/DEV-5.-Docker-Tips.md b/docs/dev/Docker-Tips.md
similarity index 99%
rename from docs/DEV-5.-Docker-Tips.md
rename to docs/dev/Docker-Tips.md
index b39355ca22..68d465a833 100644
--- a/docs/DEV-5.-Docker-Tips.md
+++ b/docs/dev/Docker-Tips.md
@@ -9,7 +9,7 @@ project and deploys the containers specified in the
`docker-compose.yml` file. The scripts in the `Dockerfile` are used to
set up the environment and dependencies for each container.
-### For example, let's say that we have the following `docker-compose.yml` file:
+### For example, let's say that we have the following `docker-compose.yml` file
version: "3"
services:
@@ -35,7 +35,6 @@ set up the environment and dependencies for each container.
ports:
- "3000:3000"
-
In this file, we have three containers: `db`, `api`, and `web`. For
each container, we specify the `image` or `build` to use, any
environment variables to set, and any ports to expose.
diff --git a/docs/DEV-3.-Frontend.md b/docs/dev/Frontend.md
similarity index 97%
rename from docs/DEV-3.-Frontend.md
rename to docs/dev/Frontend.md
index f2547c0f1e..8f4b99e43c 100644
--- a/docs/DEV-3.-Frontend.md
+++ b/docs/dev/Frontend.md
@@ -54,7 +54,7 @@ Install the dependencies by running the following command: `npm install`
Run the microfrontend with hot-reloading: `npm run start:live`
-The frontend should now be accessible at: <<<<<>>>>>>.
+The frontend should now be accessible at: <<<<<<>>>>>>>.
### 2D. Repeat for each module
diff --git a/docs/DEV-6.-Production-Deployment.md b/docs/dev/Production.md
similarity index 100%
rename from docs/DEV-6.-Production-Deployment.md
rename to docs/dev/Production.md
diff --git a/docs/DEV-1.-Getting-Started.md b/docs/dev/Setup.md
similarity index 100%
rename from docs/DEV-1.-Getting-Started.md
rename to docs/dev/Setup.md
diff --git a/docs/Home.md b/docs/index.md
similarity index 69%
rename from docs/Home.md
rename to docs/index.md
index c7e1f35b70..76512fd8b8 100644
--- a/docs/Home.md
+++ b/docs/index.md
@@ -1,4 +1,4 @@
-# :hugs: Welcome To The Field Mapping Wiki :hugs:
+# 🤗 Welcome To The Field Mapping Documentation 🤗
### _**What is ONE thing all the greatest solutions out there have in common?**_
@@ -13,78 +13,80 @@ mapping activities, ensuring the accuracy and completeness of the data
collected, and managing the data itself. This involves a number of key
steps, including:
-- ***Planning:*** The field mapping manager must develop a clear plan
-for the data collection process, including identifying key areas of
-focus and establishing timelines and targets.
+- **_Planning:_** The field mapping manager must develop a clear plan
+ for the data collection process, including identifying key areas of
+ focus and establishing timelines and targets.
-- ***Recruitment:*** The field mapping manager must recruit and train
-field mappers, ensuring that they have the necessary skills and
-expertise to collect accurate and high-quality data.
+- **_Recruitment:_** The field mapping manager must recruit and train
+ field mappers, ensuring that they have the necessary skills and
+ expertise to collect accurate and high-quality data.
-- ***Coordination:*** The field mapping manager must coordinate the activities
-of the field mappers, ensuring that they are working together
-effectively and efficiently.
-
+- **_Coordination:_** The field mapping manager must coordinate the activities
+ of the field mappers, ensuring that they are working together
+ effectively and efficiently.
+
## The field mapper (collecting data)
+
The field mapper is responsible for collecting data in the field. To
ensure the success of the field mapper, we must consider a number of key
factors. These include:
-- ***Ease of use:*** The field mapper must be able to easily and efficiently
-collect data, without requiring extensive training or technical
-expertise.
+- **_Ease of use:_** The field mapper must be able to easily and efficiently
+ collect data, without requiring extensive training or technical
+ expertise.
-- ***Accessibility:*** The field mapper must be able to access and
-collect data from a wide range of environments, including remote or
-hard-to-reach locations.
+- **_Accessibility:_** The field mapper must be able to access and
+ collect data from a wide range of environments, including remote or
+ hard-to-reach locations.
-- ***Data quality:*** The field mapper must be able to ensure the accuracy and
-completeness of the data they collect, as well as identify and address
-any errors or issues that arise.
+- **_Data quality:_** The field mapper must be able to ensure the accuracy and
+ completeness of the data they collect, as well as identify and address
+ any errors or issues that arise.
## The validator (quality checking the data)
+
The validator is responsible for quality checking the data collected by
the field mapper, ensuring that it is accurate, complete, and free from
errors. The validator faces a number of challenges and issues, including:
-- ***Incomplete or inaccurate data:*** The validator must identify and
-address any data that is incomplete, inaccurate, or otherwise flawed.
+- **_Incomplete or inaccurate data:_** The validator must identify and
+ address any data that is incomplete, inaccurate, or otherwise flawed.
-- ***Conflicting data:*** The validator may encounter data that
-conflicts with other data sources, requiring them to identify and
-resolve any discrepancies.
+- **_Conflicting data:_** The validator may encounter data that
+ conflicts with other data sources, requiring them to identify and
+ resolve any discrepancies.
-- ***Data validation protocols:*** The validator must adhere to strict
-validation protocols and guidelines, ensuring that the data meets a high
-level of quality and accuracy.
+- **_Data validation protocols:_** The validator must adhere to strict
+ validation protocols and guidelines, ensuring that the data meets a high
+ level of quality and accuracy.
[Click here](https://miro.com/app/board/uXjVPX4XLcI=/?moveToWidget=3458764534814634286&cot=14) to see an overview of who you are building for, which actions they take and some ideas for solutions!
Below is an overview of the user flow of the **Field Mapper**, the **Mapping Coordinator / Field Mapping Manager** and the **Validator**.
+
# The Field Mapping Manager (The person who coordinates field mapping)
+
The **Field Mapping Manager** is tasked with coordinating all mapping
activities, ensuring that **Field Mappers** are safe and qualified to
work, as well as monitoring data quality. The **Field Mapping
Manager** has to consider 3 main activities:
1. **Pre-field data collection activities**
- - Setting up and testing tools
- - Creating a form
- - Training field mappers (making sure that they understand the form and how to fill it)
- - Creating an area of interest within the location to be mapped
-
+ - Setting up and testing tools
+ - Creating a form
+ - Training field mappers (making sure that they understand the form and how to fill it)
+ - Creating an area of interest within the location to be mapped
2. **Data collection activities**
- - Preparing daily, weekly and monthly activity plans
- - Deploying team (assessing safety and qualifications of mappers)
- - Data quality monitoring
-
+ - Preparing daily, weekly and monthly activity plans
+ - Deploying team (assessing safety and qualifications of mappers)
+ - Data quality monitoring
3. **Post-field data collection activities**
- - Daily review of data
- - Giving and recieving team feedback
- - Updating tools and methodoligies
+ - Daily review of data
+ - Giving and recieving team feedback
+ - Updating tools and methodoligies
If you want more information, click on [this virtual whiteboard!](https://miro.com/app/board/uXjVPX4XLcI=/?moveToWidget=3458764535077658755&cot=14) to see all the steps a **Field Mapping Coordinator or Manager** goes through. Here's a sneak-peek:
@@ -92,12 +94,13 @@ If you want more information, click on [this virtual whiteboard!](https://miro.c
![Screenshot 2022-10-10 at 13 48 40](https://user-images.githubusercontent.com/107098623/194859584-31dae52a-e918-4cd8-9071-24791750d6bb.png)
-
# The Field Mapper (The person who collects data)
+
The **Field Mapper** surveys locations and collects data from them. The basic work flow that a **Field Mapper** has to consider is as follows:
+
1. Find a phone that:
- - Works well with the app.
- - Has mobile data or an internet plan.
+ - Works well with the app.
+ - Has mobile data or an internet plan.
2. Install all necessary apps on the phone.
3. Access the **OSM** registration site and register.
4. Follow the tutorial and choose a campaign.
@@ -112,26 +115,26 @@ If you want to see this workflow in more detail, click on [this virtual whiteboa
-
# The Validator (The person who checks the quality of data collected)
![Screenshot 2022-10-20 at 12 14 16](https://user-images.githubusercontent.com/107098623/196922048-c156b8ed-7f1a-404b-a636-fcfca2c0b328.png)
The **Validator** does the following tasks to ensure that quality data is collected and uploaded to **OSM**:
+
- Logs into task manager
- Checks how many tasks need validation
-- Checks tasks for errors
+- Checks tasks for errors
- Stops mappers that make mistakes and explains how they can fix their errors
- Lowers supervision on good mappers in order to spend more time on those who are stuggling
- Uploads high quality data to **OSM** and marks completed tasks as **done**
Some of the pain points and struggles faced by the **Validator** include:
+
- Lack of validators (the **Validator** is often the same person as the **Field Mapping Manager**)
- Many areas of the world are still unmapped on online commercial maps
- The quality of maps needs to improve
- The more developers complicate tools, the more they reduce the usefulness of the tools
-
For more details, click on [this virtual whiteboard!](https://miro.com/app/board/uXjVPX4XLcI=/?moveToWidget=3458764535077160536&cot=14) See sneak-peek below.
- See also all steps of validation [>>in this training guide<<](https://hotosm.github.io/pdc-documentation/en/pages/04-data-validation-and-quality-assurance/02-penggunaan-josm-untuk-validasi-data-survei/josm-for-validating-survey-data/)
@@ -140,12 +143,11 @@ For more details, click on [this virtual whiteboard!](https://miro.com/app/board
![Screenshot 2022-10-10 at 14 45 39](https://user-images.githubusercontent.com/107098623/194870234-fa9497cb-d9e4-43ff-b7dd-ad731f8be488.png)
-
Some of the key points covered are:
-- Understanding the mapping project and the intended use of the collected data
-- Verifying the accuracy and completeness of the collected data
-- Ensuring consistency with existing data and standards
-- Providing clear and constructive feedback to field mappers and coordinators
+- Understanding the mapping project and the intended use of the collected data
+- Verifying the accuracy and completeness of the collected data
+- Ensuring consistency with existing data and standards
+- Providing clear and constructive feedback to field mappers and coordinators
Overall, understanding the needs and considerations of each of these three user groups is essential for building effective field mapping solutions.
diff --git a/docs/swagger/favicon-16x16.png b/docs/swagger/favicon-16x16.png
new file mode 100644
index 0000000000..8b194e617a
Binary files /dev/null and b/docs/swagger/favicon-16x16.png differ
diff --git a/docs/swagger/favicon-32x32.png b/docs/swagger/favicon-32x32.png
new file mode 100644
index 0000000000..249737fe44
Binary files /dev/null and b/docs/swagger/favicon-32x32.png differ
diff --git a/docs/swagger/index.css b/docs/swagger/index.css
new file mode 100644
index 0000000000..831c8f547e
--- /dev/null
+++ b/docs/swagger/index.css
@@ -0,0 +1,16 @@
+html {
+ box-sizing: border-box;
+ overflow: -moz-scrollbars-vertical;
+ overflow-y: scroll;
+}
+
+*,
+*:before,
+*:after {
+ box-sizing: inherit;
+}
+
+body {
+ margin: 0;
+ background: #fafafa;
+}
diff --git a/docs/swagger/index.html b/docs/swagger/index.html
new file mode 100644
index 0000000000..3525d19d81
--- /dev/null
+++ b/docs/swagger/index.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+ Swagger UI
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/swagger/oauth2-redirect.html b/docs/swagger/oauth2-redirect.html
new file mode 100644
index 0000000000..1e07e0a97b
--- /dev/null
+++ b/docs/swagger/oauth2-redirect.html
@@ -0,0 +1,95 @@
+
+
+
+ Swagger UI: OAuth2 Redirect
+
+
+
+
+
diff --git a/docs/swagger/swagger-initializer.js b/docs/swagger/swagger-initializer.js
new file mode 100644
index 0000000000..6c52836b1a
--- /dev/null
+++ b/docs/swagger/swagger-initializer.js
@@ -0,0 +1,15 @@
+window.onload = function () {
+ //
+
+ // the following lines will be replaced by docker/configurator, when it runs in a docker-container
+ window.ui = SwaggerUIBundle({
+ url: "https://hotosm.gitlab-pages.wsl.ch/fmtm/openapi.json",
+ dom_id: "#swagger-ui",
+ deepLinking: true,
+ presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
+ plugins: [SwaggerUIBundle.plugins.DownloadUrl],
+ layout: "StandaloneLayout",
+ });
+
+ //
+};
diff --git a/docs/swagger/swagger-ui-bundle.js b/docs/swagger/swagger-ui-bundle.js
new file mode 100644
index 0000000000..5ddddd8cf7
--- /dev/null
+++ b/docs/swagger/swagger-ui-bundle.js
@@ -0,0 +1,90090 @@
+/*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
+!(function (e, t) {
+ "object" == typeof exports && "object" == typeof module
+ ? (module.exports = t())
+ : "function" == typeof define && define.amd
+ ? define([], t)
+ : "object" == typeof exports
+ ? (exports.SwaggerUIBundle = t())
+ : (e.SwaggerUIBundle = t());
+})(this, () =>
+ (() => {
+ var e = {
+ 17967: (e, t) => {
+ "use strict";
+ t.Nm = t.Rq = void 0;
+ var n = /^([^\w]*)(javascript|data|vbscript)/im,
+ r = /(\w+)(^\w|;)?/g,
+ o = /&(newline|tab);/gi,
+ s = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,
+ i = /^.+(:|:)/gim,
+ a = [".", "/"];
+ (t.Rq = "about:blank"),
+ (t.Nm = function (e) {
+ if (!e) return t.Rq;
+ var l,
+ c = ((l = e),
+ l.replace(s, "").replace(r, function (e, t) {
+ return String.fromCharCode(t);
+ }))
+ .replace(o, "")
+ .replace(s, "")
+ .trim();
+ if (!c) return t.Rq;
+ if (
+ (function (e) {
+ return a.indexOf(e[0]) > -1;
+ })(c)
+ )
+ return c;
+ var u = c.match(i);
+ if (!u) return c;
+ var p = u[0];
+ return n.test(p) ? t.Rq : c;
+ });
+ },
+ 53795: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => P });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(61125),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294),
+ h = n(43393);
+ function f(e) {
+ return (
+ (f =
+ "function" == typeof Symbol &&
+ "symbol" == typeof Symbol.iterator
+ ? function (e) {
+ return typeof e;
+ }
+ : function (e) {
+ return e &&
+ "function" == typeof Symbol &&
+ e.constructor === Symbol &&
+ e !== Symbol.prototype
+ ? "symbol"
+ : typeof e;
+ }),
+ f(e)
+ );
+ }
+ function d(e, t) {
+ for (var n = 0; n < t.length; n++) {
+ var r = t[n];
+ (r.enumerable = r.enumerable || !1),
+ (r.configurable = !0),
+ "value" in r && (r.writable = !0),
+ Object.defineProperty(e, r.key, r);
+ }
+ }
+ function m(e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (e[t] = n),
+ e
+ );
+ }
+ function g(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function y(e) {
+ return (
+ (y = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e);
+ }),
+ y(e)
+ );
+ }
+ function v(e, t) {
+ return (
+ (v =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ v(e, t)
+ );
+ }
+ function b(e, t) {
+ return !t || ("object" != typeof t && "function" != typeof t)
+ ? (function (e) {
+ if (void 0 === e)
+ throw new ReferenceError(
+ "this hasn't been initialised - super() hasn't been called"
+ );
+ return e;
+ })(e)
+ : t;
+ }
+ var w = {};
+ function E(e, t, n) {
+ return (function (e) {
+ return null == e;
+ })(e)
+ ? n
+ : (function (e) {
+ return (
+ null !== e &&
+ "object" === f(e) &&
+ "function" == typeof e.get &&
+ "function" == typeof e.has
+ );
+ })(e)
+ ? e.has(t)
+ ? e.get(t)
+ : n
+ : hasOwnProperty.call(e, t)
+ ? e[t]
+ : n;
+ }
+ function x(e, t, n) {
+ for (var r = 0; r !== t.length; )
+ if ((e = E(e, t[r++], w)) === w) return n;
+ return e;
+ }
+ function S(e) {
+ var t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {},
+ n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {},
+ r = (function (e, t) {
+ return function (n) {
+ if ("string" == typeof n) return (0, h.is)(t[n], e[n]);
+ if (Array.isArray(n)) return (0, h.is)(x(t, n), x(e, n));
+ throw new TypeError(
+ "Invalid key: expected Array or string: " + n
+ );
+ };
+ })(t, n),
+ o =
+ e ||
+ Object.keys(
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? g(n, !0).forEach(function (t) {
+ m(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : g(n).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })({}, n, {}, t)
+ );
+ return o.every(r);
+ }
+ const _ = (function (e) {
+ function t() {
+ return (
+ (function (e, t) {
+ if (!(e instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ })(this, t),
+ b(this, y(t).apply(this, arguments))
+ );
+ }
+ var n, r, o;
+ return (
+ (function (e, t) {
+ if ("function" != typeof t && null !== t)
+ throw new TypeError(
+ "Super expression must either be null or a function"
+ );
+ (e.prototype = Object.create(t && t.prototype, {
+ constructor: { value: e, writable: !0, configurable: !0 },
+ })),
+ t && v(e, t);
+ })(t, e),
+ (n = t),
+ (r = [
+ {
+ key: "shouldComponentUpdate",
+ value: function (e) {
+ var t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ return (
+ !S(this.updateOnProps, this.props, e, "updateOnProps") ||
+ !S(this.updateOnStates, this.state, t, "updateOnStates")
+ );
+ },
+ },
+ ]),
+ r && d(n.prototype, r),
+ o && d(n, o),
+ t
+ );
+ })(p.Component);
+ var j = n(23930),
+ O = n.n(j),
+ k = n(45697),
+ A = n.n(k);
+ const C = (e) => {
+ const t = e.replace(/~1/g, "/").replace(/~0/g, "~");
+ try {
+ return decodeURIComponent(t);
+ } catch {
+ return t;
+ }
+ };
+ class P extends _ {
+ constructor() {
+ super(...arguments),
+ i()(this, "getModelName", (e) =>
+ -1 !== l()(e).call(e, "#/definitions/")
+ ? C(e.replace(/^.*#\/definitions\//, ""))
+ : -1 !== l()(e).call(e, "#/components/schemas/")
+ ? C(e.replace(/^.*#\/components\/schemas\//, ""))
+ : void 0
+ ),
+ i()(this, "getRefSchema", (e) => {
+ let { specSelectors: t } = this.props;
+ return t.findDefinition(e);
+ });
+ }
+ render() {
+ let {
+ getComponent: e,
+ getConfigs: t,
+ specSelectors: r,
+ schema: s,
+ required: i,
+ name: a,
+ isRef: l,
+ specPath: c,
+ displayName: u,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ } = this.props;
+ const d = e("ObjectModel"),
+ m = e("ArrayModel"),
+ g = e("PrimitiveModel");
+ let y = "object",
+ v = s && s.get("$$ref");
+ if (
+ (!a && v && (a = this.getModelName(v)),
+ !s && v && (s = this.getRefSchema(a)),
+ !s)
+ )
+ return p.createElement(
+ "span",
+ { className: "model model-title" },
+ p.createElement(
+ "span",
+ { className: "model-title__text" },
+ u || a
+ ),
+ p.createElement("img", {
+ src: n(2517),
+ height: "20px",
+ width: "20px",
+ })
+ );
+ const b = r.isOAS3() && s.get("deprecated");
+ switch (
+ ((l = void 0 !== l ? l : !!v),
+ (y = (s && s.get("type")) || y),
+ y)
+ ) {
+ case "object":
+ return p.createElement(
+ d,
+ o()({ className: "object" }, this.props, {
+ specPath: c,
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ isRef: l,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ })
+ );
+ case "array":
+ return p.createElement(
+ m,
+ o()({ className: "array" }, this.props, {
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ required: i,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ })
+ );
+ default:
+ return p.createElement(
+ g,
+ o()({}, this.props, {
+ getComponent: e,
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ required: i,
+ })
+ );
+ }
+ }
+ }
+ i()(P, "propTypes", {
+ schema: u()(O()).isRequired,
+ getComponent: A().func.isRequired,
+ getConfigs: A().func.isRequired,
+ specSelectors: A().object.isRequired,
+ name: A().string,
+ displayName: A().string,
+ isRef: A().bool,
+ required: A().bool,
+ expandDepth: A().number,
+ depth: A().number,
+ specPath: O().list.isRequired,
+ includeReadOnly: A().bool,
+ includeWriteOnly: A().bool,
+ });
+ },
+ 5623: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => h });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(67294),
+ l = n(84564),
+ c = n.n(l),
+ u = n(90242),
+ p = n(27504);
+ class h extends a.Component {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, "getDefinitionUrl", () => {
+ let { specSelectors: e } = this.props;
+ return new (c())(e.url(), p.Z.location).toString();
+ });
+ let { getConfigs: n } = e,
+ { validatorUrl: r } = n();
+ this.state = {
+ url: this.getDefinitionUrl(),
+ validatorUrl:
+ void 0 === r ? "https://validator.swagger.io/validator" : r,
+ };
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ let { getConfigs: t } = e,
+ { validatorUrl: n } = t();
+ this.setState({
+ url: this.getDefinitionUrl(),
+ validatorUrl:
+ void 0 === n ? "https://validator.swagger.io/validator" : n,
+ });
+ }
+ render() {
+ let { getConfigs: e } = this.props,
+ { spec: t } = e(),
+ n = (0, u.Nm)(this.state.validatorUrl);
+ return "object" == typeof t && i()(t).length
+ ? null
+ : this.state.url &&
+ (0, u.hW)(this.state.validatorUrl) &&
+ (0, u.hW)(this.state.url)
+ ? a.createElement(
+ "span",
+ { className: "float-right" },
+ a.createElement(
+ "a",
+ {
+ target: "_blank",
+ rel: "noopener noreferrer",
+ href: `${n}/debug?url=${encodeURIComponent(
+ this.state.url
+ )}`,
+ },
+ a.createElement(f, {
+ src: `${n}?url=${encodeURIComponent(this.state.url)}`,
+ alt: "Online validator badge",
+ })
+ )
+ )
+ : null;
+ }
+ }
+ class f extends a.Component {
+ constructor(e) {
+ super(e), (this.state = { loaded: !1, error: !1 });
+ }
+ componentDidMount() {
+ const e = new Image();
+ (e.onload = () => {
+ this.setState({ loaded: !0 });
+ }),
+ (e.onerror = () => {
+ this.setState({ error: !0 });
+ }),
+ (e.src = this.props.src);
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ if (e.src !== this.props.src) {
+ const t = new Image();
+ (t.onload = () => {
+ this.setState({ loaded: !0 });
+ }),
+ (t.onerror = () => {
+ this.setState({ error: !0 });
+ }),
+ (t.src = e.src);
+ }
+ }
+ render() {
+ return this.state.error
+ ? a.createElement("img", { alt: "Error" })
+ : this.state.loaded
+ ? a.createElement("img", {
+ src: this.props.src,
+ alt: this.props.alt,
+ })
+ : null;
+ }
+ }
+ },
+ 4599: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => ye, s: () => ve });
+ var r = n(67294),
+ o = n(89927);
+ function s(e, t) {
+ if (Array.prototype.indexOf) return e.indexOf(t);
+ for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
+ return -1;
+ }
+ function i(e, t) {
+ for (var n = e.length - 1; n >= 0; n--)
+ !0 === t(e[n]) && e.splice(n, 1);
+ }
+ function a(e) {
+ throw new Error("Unhandled case for value: '".concat(e, "'"));
+ }
+ var l = (function () {
+ function e(e) {
+ void 0 === e && (e = {}),
+ (this.tagName = ""),
+ (this.attrs = {}),
+ (this.innerHTML = ""),
+ (this.whitespaceRegex = /\s+/),
+ (this.tagName = e.tagName || ""),
+ (this.attrs = e.attrs || {}),
+ (this.innerHTML = e.innerHtml || e.innerHTML || "");
+ }
+ return (
+ (e.prototype.setTagName = function (e) {
+ return (this.tagName = e), this;
+ }),
+ (e.prototype.getTagName = function () {
+ return this.tagName || "";
+ }),
+ (e.prototype.setAttr = function (e, t) {
+ return (this.getAttrs()[e] = t), this;
+ }),
+ (e.prototype.getAttr = function (e) {
+ return this.getAttrs()[e];
+ }),
+ (e.prototype.setAttrs = function (e) {
+ return Object.assign(this.getAttrs(), e), this;
+ }),
+ (e.prototype.getAttrs = function () {
+ return this.attrs || (this.attrs = {});
+ }),
+ (e.prototype.setClass = function (e) {
+ return this.setAttr("class", e);
+ }),
+ (e.prototype.addClass = function (e) {
+ for (
+ var t,
+ n = this.getClass(),
+ r = this.whitespaceRegex,
+ o = n ? n.split(r) : [],
+ i = e.split(r);
+ (t = i.shift());
+
+ )
+ -1 === s(o, t) && o.push(t);
+ return (this.getAttrs().class = o.join(" ")), this;
+ }),
+ (e.prototype.removeClass = function (e) {
+ for (
+ var t,
+ n = this.getClass(),
+ r = this.whitespaceRegex,
+ o = n ? n.split(r) : [],
+ i = e.split(r);
+ o.length && (t = i.shift());
+
+ ) {
+ var a = s(o, t);
+ -1 !== a && o.splice(a, 1);
+ }
+ return (this.getAttrs().class = o.join(" ")), this;
+ }),
+ (e.prototype.getClass = function () {
+ return this.getAttrs().class || "";
+ }),
+ (e.prototype.hasClass = function (e) {
+ return (
+ -1 !== (" " + this.getClass() + " ").indexOf(" " + e + " ")
+ );
+ }),
+ (e.prototype.setInnerHTML = function (e) {
+ return (this.innerHTML = e), this;
+ }),
+ (e.prototype.setInnerHtml = function (e) {
+ return this.setInnerHTML(e);
+ }),
+ (e.prototype.getInnerHTML = function () {
+ return this.innerHTML || "";
+ }),
+ (e.prototype.getInnerHtml = function () {
+ return this.getInnerHTML();
+ }),
+ (e.prototype.toAnchorString = function () {
+ var e = this.getTagName(),
+ t = this.buildAttrsStr();
+ return [
+ "<",
+ e,
+ (t = t ? " " + t : ""),
+ ">",
+ this.getInnerHtml(),
+ "",
+ e,
+ ">",
+ ].join("");
+ }),
+ (e.prototype.buildAttrsStr = function () {
+ if (!this.attrs) return "";
+ var e = this.getAttrs(),
+ t = [];
+ for (var n in e)
+ e.hasOwnProperty(n) && t.push(n + '="' + e[n] + '"');
+ return t.join(" ");
+ }),
+ e
+ );
+ })();
+ var c = (function () {
+ function e(e) {
+ void 0 === e && (e = {}),
+ (this.newWindow = !1),
+ (this.truncate = {}),
+ (this.className = ""),
+ (this.newWindow = e.newWindow || !1),
+ (this.truncate = e.truncate || {}),
+ (this.className = e.className || "");
+ }
+ return (
+ (e.prototype.build = function (e) {
+ return new l({
+ tagName: "a",
+ attrs: this.createAttrs(e),
+ innerHtml: this.processAnchorText(e.getAnchorText()),
+ });
+ }),
+ (e.prototype.createAttrs = function (e) {
+ var t = { href: e.getAnchorHref() },
+ n = this.createCssClass(e);
+ return (
+ n && (t.class = n),
+ this.newWindow &&
+ ((t.target = "_blank"), (t.rel = "noopener noreferrer")),
+ this.truncate &&
+ this.truncate.length &&
+ this.truncate.length < e.getAnchorText().length &&
+ (t.title = e.getAnchorHref()),
+ t
+ );
+ }),
+ (e.prototype.createCssClass = function (e) {
+ var t = this.className;
+ if (t) {
+ for (
+ var n = [t],
+ r = e.getCssClassSuffixes(),
+ o = 0,
+ s = r.length;
+ o < s;
+ o++
+ )
+ n.push(t + "-" + r[o]);
+ return n.join(" ");
+ }
+ return "";
+ }),
+ (e.prototype.processAnchorText = function (e) {
+ return (e = this.doTruncate(e));
+ }),
+ (e.prototype.doTruncate = function (e) {
+ var t = this.truncate;
+ if (!t || !t.length) return e;
+ var n = t.length,
+ r = t.location;
+ return "smart" === r
+ ? (function (e, t, n) {
+ var r, o;
+ null == n
+ ? ((n = "…"), (o = 3), (r = 8))
+ : ((o = n.length), (r = n.length));
+ var s = function (e) {
+ var t = "";
+ return (
+ e.scheme && e.host && (t += e.scheme + "://"),
+ e.host && (t += e.host),
+ e.path && (t += "/" + e.path),
+ e.query && (t += "?" + e.query),
+ e.fragment && (t += "#" + e.fragment),
+ t
+ );
+ },
+ i = function (e, t) {
+ var r = t / 2,
+ o = Math.ceil(r),
+ s = -1 * Math.floor(r),
+ i = "";
+ return (
+ s < 0 && (i = e.substr(s)), e.substr(0, o) + n + i
+ );
+ };
+ if (e.length <= t) return e;
+ var a = t - o,
+ l = (function (e) {
+ var t = {},
+ n = e,
+ r = n.match(/^([a-z]+):\/\//i);
+ return (
+ r &&
+ ((t.scheme = r[1]),
+ (n = n.substr(r[0].length))),
+ (r = n.match(/^(.*?)(?=(\?|#|\/|$))/i)) &&
+ ((t.host = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^\/(.*?)(?=(\?|#|$))/i)) &&
+ ((t.path = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^\?(.*?)(?=(#|$))/i)) &&
+ ((t.query = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^#(.*?)$/i)) && (t.fragment = r[1]),
+ t
+ );
+ })(e);
+ if (l.query) {
+ var c = l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);
+ c &&
+ ((l.query = l.query.substr(0, c[1].length)),
+ (e = s(l)));
+ }
+ if (e.length <= t) return e;
+ if (
+ (l.host &&
+ ((l.host = l.host.replace(/^www\./, "")),
+ (e = s(l))),
+ e.length <= t)
+ )
+ return e;
+ var u = "";
+ if ((l.host && (u += l.host), u.length >= a))
+ return l.host.length == t
+ ? (l.host.substr(0, t - o) + n).substr(0, a + r)
+ : i(u, a).substr(0, a + r);
+ var p = "";
+ if (
+ (l.path && (p += "/" + l.path),
+ l.query && (p += "?" + l.query),
+ p)
+ ) {
+ if ((u + p).length >= a)
+ return (u + p).length == t
+ ? (u + p).substr(0, t)
+ : (u + i(p, a - u.length)).substr(0, a + r);
+ u += p;
+ }
+ if (l.fragment) {
+ var h = "#" + l.fragment;
+ if ((u + h).length >= a)
+ return (u + h).length == t
+ ? (u + h).substr(0, t)
+ : (u + i(h, a - u.length)).substr(0, a + r);
+ u += h;
+ }
+ if (l.scheme && l.host) {
+ var f = l.scheme + "://";
+ if ((u + f).length < a) return (f + u).substr(0, t);
+ }
+ if (u.length <= t) return u;
+ var d = "";
+ return (
+ a > 0 && (d = u.substr(-1 * Math.floor(a / 2))),
+ (u.substr(0, Math.ceil(a / 2)) + n + d).substr(
+ 0,
+ a + r
+ )
+ );
+ })(e, n)
+ : "middle" === r
+ ? (function (e, t, n) {
+ if (e.length <= t) return e;
+ var r, o;
+ null == n
+ ? ((n = "…"), (r = 8), (o = 3))
+ : ((r = n.length), (o = n.length));
+ var s = t - o,
+ i = "";
+ return (
+ s > 0 && (i = e.substr(-1 * Math.floor(s / 2))),
+ (e.substr(0, Math.ceil(s / 2)) + n + i).substr(
+ 0,
+ s + r
+ )
+ );
+ })(e, n)
+ : (function (e, t, n) {
+ return (function (e, t, n) {
+ var r;
+ return (
+ e.length > t &&
+ (null == n
+ ? ((n = "…"), (r = 3))
+ : (r = n.length),
+ (e = e.substring(0, t - r) + n)),
+ e
+ );
+ })(e, t, n);
+ })(e, n);
+ }),
+ e
+ );
+ })(),
+ u = (function () {
+ function e(e) {
+ (this.__jsduckDummyDocProp = null),
+ (this.matchedText = ""),
+ (this.offset = 0),
+ (this.tagBuilder = e.tagBuilder),
+ (this.matchedText = e.matchedText),
+ (this.offset = e.offset);
+ }
+ return (
+ (e.prototype.getMatchedText = function () {
+ return this.matchedText;
+ }),
+ (e.prototype.setOffset = function (e) {
+ this.offset = e;
+ }),
+ (e.prototype.getOffset = function () {
+ return this.offset;
+ }),
+ (e.prototype.getCssClassSuffixes = function () {
+ return [this.getType()];
+ }),
+ (e.prototype.buildTag = function () {
+ return this.tagBuilder.build(this);
+ }),
+ e
+ );
+ })(),
+ p = function (e, t) {
+ return (
+ (p =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t)
+ Object.prototype.hasOwnProperty.call(t, n) &&
+ (e[n] = t[n]);
+ }),
+ p(e, t)
+ );
+ };
+ function h(e, t) {
+ if ("function" != typeof t && null !== t)
+ throw new TypeError(
+ "Class extends value " +
+ String(t) +
+ " is not a constructor or null"
+ );
+ function n() {
+ this.constructor = e;
+ }
+ p(e, t),
+ (e.prototype =
+ null === t
+ ? Object.create(t)
+ : ((n.prototype = t.prototype), new n()));
+ }
+ var f = function () {
+ return (
+ (f =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var o in (t = arguments[n]))
+ Object.prototype.hasOwnProperty.call(t, o) &&
+ (e[o] = t[o]);
+ return e;
+ }),
+ f.apply(this, arguments)
+ );
+ };
+ Object.create;
+ Object.create;
+ "function" == typeof SuppressedError && SuppressedError;
+ var d,
+ m = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.email = ""), (n.email = t.email), n;
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return "email";
+ }),
+ (t.prototype.getEmail = function () {
+ return this.email;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return "mailto:" + this.email;
+ }),
+ (t.prototype.getAnchorText = function () {
+ return this.email;
+ }),
+ t
+ );
+ })(u),
+ g = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = ""),
+ (n.hashtag = ""),
+ (n.serviceName = t.serviceName),
+ (n.hashtag = t.hashtag),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return "hashtag";
+ }),
+ (t.prototype.getServiceName = function () {
+ return this.serviceName;
+ }),
+ (t.prototype.getHashtag = function () {
+ return this.hashtag;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ var e = this.serviceName,
+ t = this.hashtag;
+ switch (e) {
+ case "twitter":
+ return "https://twitter.com/hashtag/" + t;
+ case "facebook":
+ return "https://www.facebook.com/hashtag/" + t;
+ case "instagram":
+ return "https://instagram.com/explore/tags/" + t;
+ case "tiktok":
+ return "https://www.tiktok.com/tag/" + t;
+ default:
+ throw new Error(
+ "Unknown service name to point hashtag to: " + e
+ );
+ }
+ }),
+ (t.prototype.getAnchorText = function () {
+ return "#" + this.hashtag;
+ }),
+ t
+ );
+ })(u),
+ y = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = "twitter"),
+ (n.mention = ""),
+ (n.mention = t.mention),
+ (n.serviceName = t.serviceName),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return "mention";
+ }),
+ (t.prototype.getMention = function () {
+ return this.mention;
+ }),
+ (t.prototype.getServiceName = function () {
+ return this.serviceName;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ switch (this.serviceName) {
+ case "twitter":
+ return "https://twitter.com/" + this.mention;
+ case "instagram":
+ return "https://instagram.com/" + this.mention;
+ case "soundcloud":
+ return "https://soundcloud.com/" + this.mention;
+ case "tiktok":
+ return "https://www.tiktok.com/@" + this.mention;
+ default:
+ throw new Error(
+ "Unknown service name to point mention to: " +
+ this.serviceName
+ );
+ }
+ }),
+ (t.prototype.getAnchorText = function () {
+ return "@" + this.mention;
+ }),
+ (t.prototype.getCssClassSuffixes = function () {
+ var t = e.prototype.getCssClassSuffixes.call(this),
+ n = this.getServiceName();
+ return n && t.push(n), t;
+ }),
+ t
+ );
+ })(u),
+ v = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.number = ""),
+ (n.plusSign = !1),
+ (n.number = t.number),
+ (n.plusSign = t.plusSign),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return "phone";
+ }),
+ (t.prototype.getPhoneNumber = function () {
+ return this.number;
+ }),
+ (t.prototype.getNumber = function () {
+ return this.getPhoneNumber();
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return "tel:" + (this.plusSign ? "+" : "") + this.number;
+ }),
+ (t.prototype.getAnchorText = function () {
+ return this.matchedText;
+ }),
+ t
+ );
+ })(u),
+ b = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.url = ""),
+ (n.urlMatchType = "scheme"),
+ (n.protocolUrlMatch = !1),
+ (n.protocolRelativeMatch = !1),
+ (n.stripPrefix = { scheme: !0, www: !0 }),
+ (n.stripTrailingSlash = !0),
+ (n.decodePercentEncoding = !0),
+ (n.schemePrefixRegex = /^(https?:\/\/)?/i),
+ (n.wwwPrefixRegex = /^(https?:\/\/)?(www\.)?/i),
+ (n.protocolRelativeRegex = /^\/\//),
+ (n.protocolPrepended = !1),
+ (n.urlMatchType = t.urlMatchType),
+ (n.url = t.url),
+ (n.protocolUrlMatch = t.protocolUrlMatch),
+ (n.protocolRelativeMatch = t.protocolRelativeMatch),
+ (n.stripPrefix = t.stripPrefix),
+ (n.stripTrailingSlash = t.stripTrailingSlash),
+ (n.decodePercentEncoding = t.decodePercentEncoding),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return "url";
+ }),
+ (t.prototype.getUrlMatchType = function () {
+ return this.urlMatchType;
+ }),
+ (t.prototype.getUrl = function () {
+ var e = this.url;
+ return (
+ this.protocolRelativeMatch ||
+ this.protocolUrlMatch ||
+ this.protocolPrepended ||
+ ((e = this.url = "http://" + e),
+ (this.protocolPrepended = !0)),
+ e
+ );
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return this.getUrl().replace(/&/g, "&");
+ }),
+ (t.prototype.getAnchorText = function () {
+ var e = this.getMatchedText();
+ return (
+ this.protocolRelativeMatch &&
+ (e = this.stripProtocolRelativePrefix(e)),
+ this.stripPrefix.scheme && (e = this.stripSchemePrefix(e)),
+ this.stripPrefix.www && (e = this.stripWwwPrefix(e)),
+ this.stripTrailingSlash &&
+ (e = this.removeTrailingSlash(e)),
+ this.decodePercentEncoding &&
+ (e = this.removePercentEncoding(e)),
+ e
+ );
+ }),
+ (t.prototype.stripSchemePrefix = function (e) {
+ return e.replace(this.schemePrefixRegex, "");
+ }),
+ (t.prototype.stripWwwPrefix = function (e) {
+ return e.replace(this.wwwPrefixRegex, "$1");
+ }),
+ (t.prototype.stripProtocolRelativePrefix = function (e) {
+ return e.replace(this.protocolRelativeRegex, "");
+ }),
+ (t.prototype.removeTrailingSlash = function (e) {
+ return (
+ "/" === e.charAt(e.length - 1) && (e = e.slice(0, -1)), e
+ );
+ }),
+ (t.prototype.removePercentEncoding = function (e) {
+ var t = e
+ .replace(/%22/gi, """)
+ .replace(/%26/gi, "&")
+ .replace(/%27/gi, "'")
+ .replace(/%3C/gi, "<")
+ .replace(/%3E/gi, ">");
+ try {
+ return decodeURIComponent(t);
+ } catch (e) {
+ return t;
+ }
+ }),
+ t
+ );
+ })(u),
+ w = function (e) {
+ (this.__jsduckDummyDocProp = null),
+ (this.tagBuilder = e.tagBuilder);
+ },
+ E = /[A-Za-z]/,
+ x = /[\d]/,
+ S = /[\D]/,
+ _ = /\s/,
+ j = /['"]/,
+ O = /[\x00-\x1F\x7F]/,
+ k =
+ /A-Za-z\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\u08B6-\u08BD\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\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\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\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\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\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-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\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/
+ .source,
+ A =
+ k +
+ /\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/
+ .source +
+ /\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/
+ .source,
+ C =
+ /0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/
+ .source,
+ P = A + C,
+ N = A + C,
+ I = new RegExp("[".concat(N, "]")),
+ T = "(?:[" + C + "]{1,3}\\.){3}[" + C + "]{1,3}",
+ R = "[" + N + "](?:[" + N + "\\-_]{0,61}[" + N + "])?",
+ M = function (e) {
+ return "(?=(" + R + "))\\" + e;
+ },
+ D = function (e) {
+ return "(?:" + M(e) + "(?:\\." + M(e + 1) + "){0,126}|" + T + ")";
+ },
+ F = (new RegExp("[" + N + ".\\-]*[" + N + "\\-]"), I),
+ L =
+ /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,
+ B = new RegExp("[".concat(N, "!#$%&'*+/=?^_`{|}~-]")),
+ $ = new RegExp("^".concat(L.source, "$")),
+ q = (function (e) {
+ function t() {
+ var t = (null !== e && e.apply(this, arguments)) || this;
+ return (t.localPartCharRegex = B), (t.strictTldRegex = $), t;
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t = this.tagBuilder,
+ n = this.localPartCharRegex,
+ r = this.strictTldRegex,
+ o = [],
+ s = e.length,
+ i = new U(),
+ l = { m: "a", a: "i", i: "l", l: "t", t: "o", o: ":" },
+ c = 0,
+ u = 0,
+ p = i;
+ c < s;
+
+ ) {
+ var h = e.charAt(c);
+ switch (u) {
+ case 0:
+ d(h);
+ break;
+ case 1:
+ g(e.charAt(c - 1), h);
+ break;
+ case 2:
+ y(h);
+ break;
+ case 3:
+ v(h);
+ break;
+ case 4:
+ b(h);
+ break;
+ case 5:
+ w(h);
+ break;
+ case 6:
+ E(h);
+ break;
+ case 7:
+ x(h);
+ break;
+ default:
+ a(u);
+ }
+ c++;
+ }
+ return j(), o;
+ function d(e) {
+ "m" === e ? S(1) : n.test(e) && S();
+ }
+ function g(e, t) {
+ ":" === e
+ ? n.test(t)
+ ? ((u = 2),
+ (p = new U(f(f({}, p), { hasMailtoPrefix: !0 }))))
+ : _()
+ : l[e] === t ||
+ (n.test(t)
+ ? (u = 2)
+ : "." === t
+ ? (u = 3)
+ : "@" === t
+ ? (u = 4)
+ : _());
+ }
+ function y(e) {
+ "." === e
+ ? (u = 3)
+ : "@" === e
+ ? (u = 4)
+ : n.test(e) || _();
+ }
+ function v(e) {
+ "." === e || "@" === e ? _() : n.test(e) ? (u = 2) : _();
+ }
+ function b(e) {
+ F.test(e) ? (u = 5) : _();
+ }
+ function w(e) {
+ "." === e
+ ? (u = 7)
+ : "-" === e
+ ? (u = 6)
+ : F.test(e) || j();
+ }
+ function E(e) {
+ "-" === e || "." === e ? j() : F.test(e) ? (u = 5) : j();
+ }
+ function x(e) {
+ "." === e || "-" === e
+ ? j()
+ : F.test(e)
+ ? ((u = 5),
+ (p = new U(f(f({}, p), { hasDomainDot: !0 }))))
+ : j();
+ }
+ function S(e) {
+ void 0 === e && (e = 2), (u = e), (p = new U({ idx: c }));
+ }
+ function _() {
+ (u = 0), (p = i);
+ }
+ function j() {
+ if (p.hasDomainDot) {
+ var n = e.slice(p.idx, c);
+ /[-.]$/.test(n) && (n = n.slice(0, -1));
+ var s = p.hasMailtoPrefix ? n.slice(7) : n;
+ (function (e) {
+ var t = e.split(".").pop() || "",
+ n = t.toLowerCase();
+ return r.test(n);
+ })(s) &&
+ o.push(
+ new m({
+ tagBuilder: t,
+ matchedText: n,
+ offset: p.idx,
+ email: s,
+ })
+ );
+ }
+ _();
+ }
+ }),
+ t
+ );
+ })(w),
+ U = function (e) {
+ void 0 === e && (e = {}),
+ (this.idx = void 0 !== e.idx ? e.idx : -1),
+ (this.hasMailtoPrefix = !!e.hasMailtoPrefix),
+ (this.hasDomainDot = !!e.hasDomainDot);
+ },
+ z = (function () {
+ function e() {}
+ return (
+ (e.isValid = function (e, t) {
+ return !(
+ (t && !this.isValidUriScheme(t)) ||
+ this.urlMatchDoesNotHaveProtocolOrDot(e, t) ||
+ (this.urlMatchDoesNotHaveAtLeastOneWordChar(e, t) &&
+ !this.isValidIpAddress(e)) ||
+ this.containsMultipleDots(e)
+ );
+ }),
+ (e.isValidIpAddress = function (e) {
+ var t = new RegExp(
+ this.hasFullProtocolRegex.source + this.ipRegex.source
+ );
+ return null !== e.match(t);
+ }),
+ (e.containsMultipleDots = function (e) {
+ var t = e;
+ return (
+ this.hasFullProtocolRegex.test(e) &&
+ (t = e.split("://")[1]),
+ t.split("/")[0].indexOf("..") > -1
+ );
+ }),
+ (e.isValidUriScheme = function (e) {
+ var t = e.match(this.uriSchemeRegex),
+ n = t && t[0].toLowerCase();
+ return "javascript:" !== n && "vbscript:" !== n;
+ }),
+ (e.urlMatchDoesNotHaveProtocolOrDot = function (e, t) {
+ return !(
+ !e ||
+ (t && this.hasFullProtocolRegex.test(t)) ||
+ -1 !== e.indexOf(".")
+ );
+ }),
+ (e.urlMatchDoesNotHaveAtLeastOneWordChar = function (e, t) {
+ return (
+ !(!e || !t) &&
+ !this.hasFullProtocolRegex.test(t) &&
+ !this.hasWordCharAfterProtocolRegex.test(e)
+ );
+ }),
+ (e.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//),
+ (e.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/),
+ (e.hasWordCharAfterProtocolRegex = new RegExp(
+ ":[^\\s]*?[" + k + "]"
+ )),
+ (e.ipRegex =
+ /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/),
+ e
+ );
+ })(),
+ V =
+ ((d = new RegExp(
+ "[/?#](?:[" +
+ N +
+ "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" +
+ N +
+ "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"
+ )),
+ new RegExp(
+ [
+ "(?:",
+ "(",
+ /(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/
+ .source,
+ D(2),
+ ")",
+ "|",
+ "(",
+ "(//)?",
+ /(?:www\.)/.source,
+ D(6),
+ ")",
+ "|",
+ "(",
+ "(//)?",
+ D(10) + "\\.",
+ L.source,
+ "(?![-" + P + "])",
+ ")",
+ ")",
+ "(?::[0-9]+)?",
+ "(?:" + d.source + ")?",
+ ].join(""),
+ "gi"
+ )),
+ W = new RegExp("[" + N + "]"),
+ J = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.stripPrefix = { scheme: !0, www: !0 }),
+ (n.stripTrailingSlash = !0),
+ (n.decodePercentEncoding = !0),
+ (n.matcherRegex = V),
+ (n.wordCharRegExp = W),
+ (n.stripPrefix = t.stripPrefix),
+ (n.stripTrailingSlash = t.stripTrailingSlash),
+ (n.decodePercentEncoding = t.decodePercentEncoding),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t,
+ n = this.matcherRegex,
+ r = this.stripPrefix,
+ o = this.stripTrailingSlash,
+ s = this.decodePercentEncoding,
+ i = this.tagBuilder,
+ a = [],
+ l = function () {
+ var n = t[0],
+ l = t[1],
+ u = t[4],
+ p = t[5],
+ h = t[9],
+ f = t.index,
+ d = p || h,
+ m = e.charAt(f - 1);
+ if (!z.isValid(n, l)) return "continue";
+ if (f > 0 && "@" === m) return "continue";
+ if (f > 0 && d && c.wordCharRegExp.test(m))
+ return "continue";
+ if (
+ (/\?$/.test(n) && (n = n.substr(0, n.length - 1)),
+ c.matchHasUnbalancedClosingParen(n))
+ )
+ n = n.substr(0, n.length - 1);
+ else {
+ var g = c.matchHasInvalidCharAfterTld(n, l);
+ g > -1 && (n = n.substr(0, g));
+ }
+ var y = ["http://", "https://"].find(function (e) {
+ return !!l && -1 !== l.indexOf(e);
+ });
+ if (y) {
+ var v = n.indexOf(y);
+ (n = n.substr(v)), (l = l.substr(v)), (f += v);
+ }
+ var w = l ? "scheme" : u ? "www" : "tld",
+ E = !!l;
+ a.push(
+ new b({
+ tagBuilder: i,
+ matchedText: n,
+ offset: f,
+ urlMatchType: w,
+ url: n,
+ protocolUrlMatch: E,
+ protocolRelativeMatch: !!d,
+ stripPrefix: r,
+ stripTrailingSlash: o,
+ decodePercentEncoding: s,
+ })
+ );
+ },
+ c = this;
+ null !== (t = n.exec(e));
+
+ )
+ l();
+ return a;
+ }),
+ (t.prototype.matchHasUnbalancedClosingParen = function (e) {
+ var t,
+ n = e.charAt(e.length - 1);
+ if (")" === n) t = "(";
+ else if ("]" === n) t = "[";
+ else {
+ if ("}" !== n) return !1;
+ t = "{";
+ }
+ for (var r = 0, o = 0, s = e.length - 1; o < s; o++) {
+ var i = e.charAt(o);
+ i === t ? r++ : i === n && (r = Math.max(r - 1, 0));
+ }
+ return 0 === r;
+ }),
+ (t.prototype.matchHasInvalidCharAfterTld = function (e, t) {
+ if (!e) return -1;
+ var n = 0;
+ t && ((n = e.indexOf(":")), (e = e.slice(n)));
+ var r = new RegExp(
+ "^((.?//)?[-." + N + "]*[-" + N + "]\\.[-" + N + "]+)"
+ ).exec(e);
+ return null === r
+ ? -1
+ : ((n += r[1].length),
+ (e = e.slice(r[1].length)),
+ /^[^-.A-Za-z0-9:\/?#]/.test(e) ? n : -1);
+ }),
+ t
+ );
+ })(w),
+ K = new RegExp("[_".concat(N, "]")),
+ H = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = "twitter"),
+ (n.serviceName = t.serviceName),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t = this.tagBuilder,
+ n = this.serviceName,
+ r = [],
+ o = e.length,
+ s = 0,
+ i = -1,
+ l = 0;
+ s < o;
+
+ ) {
+ var c = e.charAt(s);
+ switch (l) {
+ case 0:
+ u(c);
+ break;
+ case 1:
+ p(c);
+ break;
+ case 2:
+ h(c);
+ break;
+ case 3:
+ f(c);
+ break;
+ default:
+ a(l);
+ }
+ s++;
+ }
+ return d(), r;
+ function u(e) {
+ "#" === e ? ((l = 2), (i = s)) : I.test(e) && (l = 1);
+ }
+ function p(e) {
+ I.test(e) || (l = 0);
+ }
+ function h(e) {
+ l = K.test(e) ? 3 : I.test(e) ? 1 : 0;
+ }
+ function f(e) {
+ K.test(e) || (d(), (i = -1), (l = I.test(e) ? 1 : 0));
+ }
+ function d() {
+ if (i > -1 && s - i <= 140) {
+ var o = e.slice(i, s),
+ a = new g({
+ tagBuilder: t,
+ matchedText: o,
+ offset: i,
+ serviceName: n,
+ hashtag: o.slice(1),
+ });
+ r.push(a);
+ }
+ }
+ }),
+ t
+ );
+ })(w),
+ G = ["twitter", "facebook", "instagram", "tiktok"],
+ Z = new RegExp(
+ ""
+ .concat(
+ /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/
+ .source,
+ "|"
+ )
+ .concat(
+ /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/
+ .source
+ ),
+ "g"
+ ),
+ Y = (function (e) {
+ function t() {
+ var t = (null !== e && e.apply(this, arguments)) || this;
+ return (t.matcherRegex = Z), t;
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t, n = this.matcherRegex, r = this.tagBuilder, o = [];
+ null !== (t = n.exec(e));
+
+ ) {
+ var s = t[0],
+ i = s.replace(/[^0-9,;#]/g, ""),
+ a = !(!t[1] && !t[2]),
+ l = 0 == t.index ? "" : e.substr(t.index - 1, 1),
+ c = e.substr(t.index + s.length, 1),
+ u = !l.match(/\d/) && !c.match(/\d/);
+ this.testMatch(t[3]) &&
+ this.testMatch(s) &&
+ u &&
+ o.push(
+ new v({
+ tagBuilder: r,
+ matchedText: s,
+ offset: t.index,
+ number: i,
+ plusSign: a,
+ })
+ );
+ }
+ return o;
+ }),
+ (t.prototype.testMatch = function (e) {
+ return S.test(e);
+ }),
+ t
+ );
+ })(w),
+ X = new RegExp(
+ "@[_".concat(N, "]{1,50}(?![_").concat(N, "])"),
+ "g"
+ ),
+ Q = new RegExp(
+ "@[_.".concat(N, "]{1,30}(?![_").concat(N, "])"),
+ "g"
+ ),
+ ee = new RegExp(
+ "@[-_.".concat(N, "]{1,50}(?![-_").concat(N, "])"),
+ "g"
+ ),
+ te = new RegExp(
+ "@[_.".concat(N, "]{1,23}[_").concat(N, "](?![_").concat(N, "])"),
+ "g"
+ ),
+ ne = new RegExp("[^" + N + "]"),
+ re = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = "twitter"),
+ (n.matcherRegexes = {
+ twitter: X,
+ instagram: Q,
+ soundcloud: ee,
+ tiktok: te,
+ }),
+ (n.nonWordCharRegex = ne),
+ (n.serviceName = t.serviceName),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ var t,
+ n = this.serviceName,
+ r = this.matcherRegexes[this.serviceName],
+ o = this.nonWordCharRegex,
+ s = this.tagBuilder,
+ i = [];
+ if (!r) return i;
+ for (; null !== (t = r.exec(e)); ) {
+ var a = t.index,
+ l = e.charAt(a - 1);
+ if (0 === a || o.test(l)) {
+ var c = t[0].replace(/\.+$/g, ""),
+ u = c.slice(1);
+ i.push(
+ new y({
+ tagBuilder: s,
+ matchedText: c,
+ offset: a,
+ serviceName: n,
+ mention: u,
+ })
+ );
+ }
+ }
+ return i;
+ }),
+ t
+ );
+ })(w);
+ function oe(e, t) {
+ for (
+ var n,
+ r = t.onOpenTag,
+ o = t.onCloseTag,
+ s = t.onText,
+ i = t.onComment,
+ l = t.onDoctype,
+ c = new se(),
+ u = 0,
+ p = e.length,
+ h = 0,
+ d = 0,
+ m = c;
+ u < p;
+
+ ) {
+ var g = e.charAt(u);
+ switch (h) {
+ case 0:
+ y(g);
+ break;
+ case 1:
+ v(g);
+ break;
+ case 2:
+ w(g);
+ break;
+ case 3:
+ b(g);
+ break;
+ case 4:
+ S(g);
+ break;
+ case 5:
+ k(g);
+ break;
+ case 6:
+ A(g);
+ break;
+ case 7:
+ C(g);
+ break;
+ case 8:
+ P(g);
+ break;
+ case 9:
+ N(g);
+ break;
+ case 10:
+ I(g);
+ break;
+ case 11:
+ T(g);
+ break;
+ case 12:
+ R(g);
+ break;
+ case 13:
+ M(g);
+ break;
+ case 14:
+ D(g);
+ break;
+ case 15:
+ F(g);
+ break;
+ case 16:
+ L(g);
+ break;
+ case 17:
+ B(g);
+ break;
+ case 18:
+ $(g);
+ break;
+ case 19:
+ q(g);
+ break;
+ case 20:
+ U(g);
+ break;
+ default:
+ a(h);
+ }
+ u++;
+ }
+ function y(e) {
+ "<" === e && V();
+ }
+ function v(e) {
+ "!" === e
+ ? (h = 13)
+ : "/" === e
+ ? ((h = 2), (m = new se(f(f({}, m), { isClosing: !0 }))))
+ : "<" === e
+ ? V()
+ : E.test(e)
+ ? ((h = 3), (m = new se(f(f({}, m), { isOpening: !0 }))))
+ : ((h = 0), (m = c));
+ }
+ function b(e) {
+ _.test(e)
+ ? ((m = new se(f(f({}, m), { name: J() }))), (h = 4))
+ : "<" === e
+ ? V()
+ : "/" === e
+ ? ((m = new se(f(f({}, m), { name: J() }))), (h = 12))
+ : ">" === e
+ ? ((m = new se(f(f({}, m), { name: J() }))), W())
+ : E.test(e) || x.test(e) || ":" === e || z();
+ }
+ function w(e) {
+ ">" === e ? z() : E.test(e) ? (h = 3) : z();
+ }
+ function S(e) {
+ _.test(e) ||
+ ("/" === e
+ ? (h = 12)
+ : ">" === e
+ ? W()
+ : "<" === e
+ ? V()
+ : "=" === e || j.test(e) || O.test(e)
+ ? z()
+ : (h = 5));
+ }
+ function k(e) {
+ _.test(e)
+ ? (h = 6)
+ : "/" === e
+ ? (h = 12)
+ : "=" === e
+ ? (h = 7)
+ : ">" === e
+ ? W()
+ : "<" === e
+ ? V()
+ : j.test(e) && z();
+ }
+ function A(e) {
+ _.test(e) ||
+ ("/" === e
+ ? (h = 12)
+ : "=" === e
+ ? (h = 7)
+ : ">" === e
+ ? W()
+ : "<" === e
+ ? V()
+ : j.test(e)
+ ? z()
+ : (h = 5));
+ }
+ function C(e) {
+ _.test(e) ||
+ ('"' === e
+ ? (h = 8)
+ : "'" === e
+ ? (h = 9)
+ : /[>=`]/.test(e)
+ ? z()
+ : "<" === e
+ ? V()
+ : (h = 10));
+ }
+ function P(e) {
+ '"' === e && (h = 11);
+ }
+ function N(e) {
+ "'" === e && (h = 11);
+ }
+ function I(e) {
+ _.test(e) ? (h = 4) : ">" === e ? W() : "<" === e && V();
+ }
+ function T(e) {
+ _.test(e)
+ ? (h = 4)
+ : "/" === e
+ ? (h = 12)
+ : ">" === e
+ ? W()
+ : "<" === e
+ ? V()
+ : ((h = 4), u--);
+ }
+ function R(e) {
+ ">" === e
+ ? ((m = new se(f(f({}, m), { isClosing: !0 }))), W())
+ : (h = 4);
+ }
+ function M(t) {
+ "--" === e.substr(u, 2)
+ ? ((u += 2),
+ (m = new se(f(f({}, m), { type: "comment" }))),
+ (h = 14))
+ : "DOCTYPE" === e.substr(u, 7).toUpperCase()
+ ? ((u += 7),
+ (m = new se(f(f({}, m), { type: "doctype" }))),
+ (h = 20))
+ : z();
+ }
+ function D(e) {
+ "-" === e ? (h = 15) : ">" === e ? z() : (h = 16);
+ }
+ function F(e) {
+ "-" === e ? (h = 18) : ">" === e ? z() : (h = 16);
+ }
+ function L(e) {
+ "-" === e && (h = 17);
+ }
+ function B(e) {
+ h = "-" === e ? 18 : 16;
+ }
+ function $(e) {
+ ">" === e ? W() : "!" === e ? (h = 19) : "-" === e || (h = 16);
+ }
+ function q(e) {
+ "-" === e ? (h = 17) : ">" === e ? W() : (h = 16);
+ }
+ function U(e) {
+ ">" === e ? W() : "<" === e && V();
+ }
+ function z() {
+ (h = 0), (m = c);
+ }
+ function V() {
+ (h = 1), (m = new se({ idx: u }));
+ }
+ function W() {
+ var t = e.slice(d, m.idx);
+ t && s(t, d),
+ "comment" === m.type
+ ? i(m.idx)
+ : "doctype" === m.type
+ ? l(m.idx)
+ : (m.isOpening && r(m.name, m.idx),
+ m.isClosing && o(m.name, m.idx)),
+ z(),
+ (d = u + 1);
+ }
+ function J() {
+ var t = m.idx + (m.isClosing ? 2 : 1);
+ return e.slice(t, u).toLowerCase();
+ }
+ d < u && ((n = e.slice(d, u)), s(n, d), (d = u + 1));
+ }
+ var se = function (e) {
+ void 0 === e && (e = {}),
+ (this.idx = void 0 !== e.idx ? e.idx : -1),
+ (this.type = e.type || "tag"),
+ (this.name = e.name || ""),
+ (this.isOpening = !!e.isOpening),
+ (this.isClosing = !!e.isClosing);
+ };
+ const ie = (function () {
+ function e(t) {
+ void 0 === t && (t = {}),
+ (this.version = e.version),
+ (this.urls = {}),
+ (this.email = !0),
+ (this.phone = !0),
+ (this.hashtag = !1),
+ (this.mention = !1),
+ (this.newWindow = !0),
+ (this.stripPrefix = { scheme: !0, www: !0 }),
+ (this.stripTrailingSlash = !0),
+ (this.decodePercentEncoding = !0),
+ (this.truncate = { length: 0, location: "end" }),
+ (this.className = ""),
+ (this.replaceFn = null),
+ (this.context = void 0),
+ (this.sanitizeHtml = !1),
+ (this.matchers = null),
+ (this.tagBuilder = null),
+ (this.urls = this.normalizeUrlsCfg(t.urls)),
+ (this.email =
+ "boolean" == typeof t.email ? t.email : this.email),
+ (this.phone =
+ "boolean" == typeof t.phone ? t.phone : this.phone),
+ (this.hashtag = t.hashtag || this.hashtag),
+ (this.mention = t.mention || this.mention),
+ (this.newWindow =
+ "boolean" == typeof t.newWindow
+ ? t.newWindow
+ : this.newWindow),
+ (this.stripPrefix = this.normalizeStripPrefixCfg(
+ t.stripPrefix
+ )),
+ (this.stripTrailingSlash =
+ "boolean" == typeof t.stripTrailingSlash
+ ? t.stripTrailingSlash
+ : this.stripTrailingSlash),
+ (this.decodePercentEncoding =
+ "boolean" == typeof t.decodePercentEncoding
+ ? t.decodePercentEncoding
+ : this.decodePercentEncoding),
+ (this.sanitizeHtml = t.sanitizeHtml || !1);
+ var n = this.mention;
+ if (
+ !1 !== n &&
+ -1 ===
+ ["twitter", "instagram", "soundcloud", "tiktok"].indexOf(n)
+ )
+ throw new Error(
+ "invalid `mention` cfg '".concat(n, "' - see docs")
+ );
+ var r = this.hashtag;
+ if (!1 !== r && -1 === G.indexOf(r))
+ throw new Error(
+ "invalid `hashtag` cfg '".concat(r, "' - see docs")
+ );
+ (this.truncate = this.normalizeTruncateCfg(t.truncate)),
+ (this.className = t.className || this.className),
+ (this.replaceFn = t.replaceFn || this.replaceFn),
+ (this.context = t.context || this);
+ }
+ return (
+ (e.link = function (t, n) {
+ return new e(n).link(t);
+ }),
+ (e.parse = function (t, n) {
+ return new e(n).parse(t);
+ }),
+ (e.prototype.normalizeUrlsCfg = function (e) {
+ return (
+ null == e && (e = !0),
+ "boolean" == typeof e
+ ? { schemeMatches: e, wwwMatches: e, tldMatches: e }
+ : {
+ schemeMatches:
+ "boolean" != typeof e.schemeMatches ||
+ e.schemeMatches,
+ wwwMatches:
+ "boolean" != typeof e.wwwMatches || e.wwwMatches,
+ tldMatches:
+ "boolean" != typeof e.tldMatches || e.tldMatches,
+ }
+ );
+ }),
+ (e.prototype.normalizeStripPrefixCfg = function (e) {
+ return (
+ null == e && (e = !0),
+ "boolean" == typeof e
+ ? { scheme: e, www: e }
+ : {
+ scheme: "boolean" != typeof e.scheme || e.scheme,
+ www: "boolean" != typeof e.www || e.www,
+ }
+ );
+ }),
+ (e.prototype.normalizeTruncateCfg = function (e) {
+ return "number" == typeof e
+ ? { length: e, location: "end" }
+ : (function (e, t) {
+ for (var n in t)
+ t.hasOwnProperty(n) && void 0 === e[n] && (e[n] = t[n]);
+ return e;
+ })(e || {}, {
+ length: Number.POSITIVE_INFINITY,
+ location: "end",
+ });
+ }),
+ (e.prototype.parse = function (e) {
+ var t = this,
+ n = ["a", "style", "script"],
+ r = 0,
+ o = [];
+ return (
+ oe(e, {
+ onOpenTag: function (e) {
+ n.indexOf(e) >= 0 && r++;
+ },
+ onText: function (e, n) {
+ if (0 === r) {
+ var s = (function (e, t) {
+ if (!t.global)
+ throw new Error(
+ "`splitRegex` must have the 'g' flag set"
+ );
+ for (var n, r = [], o = 0; (n = t.exec(e)); )
+ r.push(e.substring(o, n.index)),
+ r.push(n[0]),
+ (o = n.index + n[0].length);
+ return r.push(e.substring(o)), r;
+ })(
+ e,
+ /( | |<|<|>|>|"|"|')/gi
+ ),
+ i = n;
+ s.forEach(function (e, n) {
+ if (n % 2 == 0) {
+ var r = t.parseText(e, i);
+ o.push.apply(o, r);
+ }
+ i += e.length;
+ });
+ }
+ },
+ onCloseTag: function (e) {
+ n.indexOf(e) >= 0 && (r = Math.max(r - 1, 0));
+ },
+ onComment: function (e) {},
+ onDoctype: function (e) {},
+ }),
+ (o = this.compactMatches(o)),
+ (o = this.removeUnwantedMatches(o))
+ );
+ }),
+ (e.prototype.compactMatches = function (e) {
+ e.sort(function (e, t) {
+ return e.getOffset() - t.getOffset();
+ });
+ for (var t = 0; t < e.length - 1; ) {
+ var n = e[t],
+ r = n.getOffset(),
+ o = n.getMatchedText().length,
+ s = r + o;
+ if (t + 1 < e.length) {
+ if (e[t + 1].getOffset() === r) {
+ var i = e[t + 1].getMatchedText().length > o ? t : t + 1;
+ e.splice(i, 1);
+ continue;
+ }
+ if (e[t + 1].getOffset() < s) {
+ e.splice(t + 1, 1);
+ continue;
+ }
+ }
+ t++;
+ }
+ return e;
+ }),
+ (e.prototype.removeUnwantedMatches = function (e) {
+ return (
+ this.hashtag ||
+ i(e, function (e) {
+ return "hashtag" === e.getType();
+ }),
+ this.email ||
+ i(e, function (e) {
+ return "email" === e.getType();
+ }),
+ this.phone ||
+ i(e, function (e) {
+ return "phone" === e.getType();
+ }),
+ this.mention ||
+ i(e, function (e) {
+ return "mention" === e.getType();
+ }),
+ this.urls.schemeMatches ||
+ i(e, function (e) {
+ return (
+ "url" === e.getType() &&
+ "scheme" === e.getUrlMatchType()
+ );
+ }),
+ this.urls.wwwMatches ||
+ i(e, function (e) {
+ return (
+ "url" === e.getType() && "www" === e.getUrlMatchType()
+ );
+ }),
+ this.urls.tldMatches ||
+ i(e, function (e) {
+ return (
+ "url" === e.getType() && "tld" === e.getUrlMatchType()
+ );
+ }),
+ e
+ );
+ }),
+ (e.prototype.parseText = function (e, t) {
+ void 0 === t && (t = 0), (t = t || 0);
+ for (
+ var n = this.getMatchers(), r = [], o = 0, s = n.length;
+ o < s;
+ o++
+ ) {
+ for (
+ var i = n[o].parseMatches(e), a = 0, l = i.length;
+ a < l;
+ a++
+ )
+ i[a].setOffset(t + i[a].getOffset());
+ r.push.apply(r, i);
+ }
+ return r;
+ }),
+ (e.prototype.link = function (e) {
+ if (!e) return "";
+ this.sanitizeHtml &&
+ (e = e.replace(//g, ">"));
+ for (
+ var t = this.parse(e), n = [], r = 0, o = 0, s = t.length;
+ o < s;
+ o++
+ ) {
+ var i = t[o];
+ n.push(e.substring(r, i.getOffset())),
+ n.push(this.createMatchReturnVal(i)),
+ (r = i.getOffset() + i.getMatchedText().length);
+ }
+ return n.push(e.substring(r)), n.join("");
+ }),
+ (e.prototype.createMatchReturnVal = function (e) {
+ var t;
+ return (
+ this.replaceFn && (t = this.replaceFn.call(this.context, e)),
+ "string" == typeof t
+ ? t
+ : !1 === t
+ ? e.getMatchedText()
+ : t instanceof l
+ ? t.toAnchorString()
+ : e.buildTag().toAnchorString()
+ );
+ }),
+ (e.prototype.getMatchers = function () {
+ if (this.matchers) return this.matchers;
+ var e = this.getTagBuilder(),
+ t = [
+ new H({ tagBuilder: e, serviceName: this.hashtag }),
+ new q({ tagBuilder: e }),
+ new Y({ tagBuilder: e }),
+ new re({ tagBuilder: e, serviceName: this.mention }),
+ new J({
+ tagBuilder: e,
+ stripPrefix: this.stripPrefix,
+ stripTrailingSlash: this.stripTrailingSlash,
+ decodePercentEncoding: this.decodePercentEncoding,
+ }),
+ ];
+ return (this.matchers = t);
+ }),
+ (e.prototype.getTagBuilder = function () {
+ var e = this.tagBuilder;
+ return (
+ e ||
+ (e = this.tagBuilder =
+ new c({
+ newWindow: this.newWindow,
+ truncate: this.truncate,
+ className: this.className,
+ })),
+ e
+ );
+ }),
+ (e.version = "3.16.2"),
+ (e.AnchorTagBuilder = c),
+ (e.HtmlTag = l),
+ (e.matcher = {
+ Email: q,
+ Hashtag: H,
+ Matcher: w,
+ Mention: re,
+ Phone: Y,
+ Url: J,
+ }),
+ (e.match = {
+ Email: m,
+ Hashtag: g,
+ Match: u,
+ Mention: y,
+ Phone: v,
+ Url: b,
+ }),
+ e
+ );
+ })();
+ var ae = /www|@|\:\/\//;
+ function le(e) {
+ return /^<\/a\s*>/i.test(e);
+ }
+ function ce() {
+ var e = [],
+ t = new ie({
+ stripPrefix: !1,
+ url: !0,
+ email: !0,
+ replaceFn: function (t) {
+ switch (t.getType()) {
+ case "url":
+ e.push({ text: t.matchedText, url: t.getUrl() });
+ break;
+ case "email":
+ e.push({
+ text: t.matchedText,
+ url: "mailto:" + t.getEmail().replace(/^mailto:/i, ""),
+ });
+ }
+ return !1;
+ },
+ });
+ return { links: e, autolinker: t };
+ }
+ function ue(e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l,
+ c,
+ u,
+ p,
+ h,
+ f,
+ d,
+ m = e.tokens,
+ g = null;
+ for (n = 0, r = m.length; n < r; n++)
+ if ("inline" === m[n].type)
+ for (p = 0, t = (o = m[n].children).length - 1; t >= 0; t--)
+ if ("link_close" !== (s = o[t]).type) {
+ if (
+ ("htmltag" === s.type &&
+ ((d = s.content),
+ /^\s]/i.test(d) && p > 0 && p--,
+ le(s.content) && p++),
+ !(p > 0) && "text" === s.type && ae.test(s.content))
+ ) {
+ if (
+ (g || ((h = (g = ce()).links), (f = g.autolinker)),
+ (i = s.content),
+ (h.length = 0),
+ f.link(i),
+ !h.length)
+ )
+ continue;
+ for (a = [], u = s.level, l = 0; l < h.length; l++)
+ e.inline.validateLink(h[l].url) &&
+ ((c = i.indexOf(h[l].text)) &&
+ a.push({
+ type: "text",
+ content: i.slice(0, c),
+ level: u,
+ }),
+ a.push({
+ type: "link_open",
+ href: h[l].url,
+ title: "",
+ level: u++,
+ }),
+ a.push({
+ type: "text",
+ content: h[l].text,
+ level: u,
+ }),
+ a.push({ type: "link_close", level: --u }),
+ (i = i.slice(c + h[l].text.length)));
+ i.length &&
+ a.push({ type: "text", content: i, level: u }),
+ (m[n].children = o =
+ [].concat(o.slice(0, t), a, o.slice(t + 1)));
+ }
+ } else
+ for (
+ t--;
+ o[t].level !== s.level && "link_open" !== o[t].type;
+
+ )
+ t--;
+ }
+ function pe(e) {
+ e.core.ruler.push("linkify", ue);
+ }
+ var he = n(27856),
+ fe = n.n(he),
+ de = n(94184),
+ me = n.n(de);
+ function ge(e) {
+ let { source: t, className: n = "", getConfigs: s } = e;
+ if ("string" != typeof t) return null;
+ const i = new o._({
+ html: !0,
+ typographer: !0,
+ breaks: !0,
+ linkTarget: "_blank",
+ }).use(pe);
+ i.core.ruler.disable(["replacements", "smartquotes"]);
+ const { useUnsafeMarkdown: a } = s(),
+ l = i.render(t),
+ c = ve(l, { useUnsafeMarkdown: a });
+ return t && l && c
+ ? r.createElement("div", {
+ className: me()(n, "markdown"),
+ dangerouslySetInnerHTML: { __html: c },
+ })
+ : null;
+ }
+ fe().addHook &&
+ fe().addHook("beforeSanitizeElements", function (e) {
+ return e.href && e.setAttribute("rel", "noopener noreferrer"), e;
+ }),
+ (ge.defaultProps = {
+ getConfigs: () => ({ useUnsafeMarkdown: !1 }),
+ });
+ const ye = ge;
+ function ve(e) {
+ let { useUnsafeMarkdown: t = !1 } =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const n = t,
+ r = t ? [] : ["style", "class"];
+ return (
+ t &&
+ !ve.hasWarnedAboutDeprecation &&
+ (console.warn(
+ "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."
+ ),
+ (ve.hasWarnedAboutDeprecation = !0)),
+ fe().sanitize(e, {
+ ADD_ATTR: ["target"],
+ FORBID_TAGS: ["style", "form"],
+ ALLOW_DATA_ATTR: n,
+ FORBID_ATTR: r,
+ })
+ );
+ }
+ ve.hasWarnedAboutDeprecation = !1;
+ },
+ 45308: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r,
+ o = n(86),
+ s = n.n(o),
+ i = n(8712),
+ a = n.n(i),
+ l = n(90242),
+ c = n(27621);
+ const u = n(95102),
+ p = {},
+ h = p;
+ s()((r = a()(u).call(u))).call(r, function (e) {
+ if ("./index.js" === e) return;
+ let t = u(e);
+ p[(0, l.Zl)(e)] = t.default ? t.default : t;
+ }),
+ (p.SafeRender = c.default);
+ },
+ 55812: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ AUTHORIZE: () => h,
+ AUTHORIZE_OAUTH2: () => m,
+ CONFIGURE_AUTH: () => y,
+ LOGOUT: () => f,
+ PRE_AUTHORIZE_OAUTH2: () => d,
+ RESTORE_AUTHORIZATION: () => v,
+ SHOW_AUTH_POPUP: () => p,
+ VALIDATE: () => g,
+ authPopup: () => M,
+ authorize: () => w,
+ authorizeAccessCodeWithBasicAuthentication: () => P,
+ authorizeAccessCodeWithFormParams: () => C,
+ authorizeApplication: () => A,
+ authorizeOauth2: () => j,
+ authorizeOauth2WithPersistOption: () => O,
+ authorizePassword: () => k,
+ authorizeRequest: () => N,
+ authorizeWithPersistOption: () => E,
+ configureAuth: () => I,
+ logout: () => x,
+ logoutWithPersistOption: () => S,
+ persistAuthorizationIfNeeded: () => R,
+ preAuthorizeImplicit: () => _,
+ restoreAuthorization: () => T,
+ showDefinitions: () => b,
+ });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(84564),
+ l = n.n(a),
+ c = n(27504),
+ u = n(90242);
+ const p = "show_popup",
+ h = "authorize",
+ f = "logout",
+ d = "pre_authorize_oauth2",
+ m = "authorize_oauth2",
+ g = "validate",
+ y = "configure_auth",
+ v = "restore_authorization";
+ function b(e) {
+ return { type: p, payload: e };
+ }
+ function w(e) {
+ return { type: h, payload: e };
+ }
+ const E = (e) => (t) => {
+ let { authActions: n } = t;
+ n.authorize(e), n.persistAuthorizationIfNeeded();
+ };
+ function x(e) {
+ return { type: f, payload: e };
+ }
+ const S = (e) => (t) => {
+ let { authActions: n } = t;
+ n.logout(e), n.persistAuthorizationIfNeeded();
+ },
+ _ = (e) => (t) => {
+ let { authActions: n, errActions: r } = t,
+ { auth: s, token: i, isValid: a } = e,
+ { schema: l, name: u } = s,
+ p = l.get("flow");
+ delete c.Z.swaggerUIRedirectOauth2,
+ "accessCode" === p ||
+ a ||
+ r.newAuthErr({
+ authId: u,
+ source: "auth",
+ level: "warning",
+ message:
+ "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server",
+ }),
+ i.error
+ ? r.newAuthErr({
+ authId: u,
+ source: "auth",
+ level: "error",
+ message: o()(i),
+ })
+ : n.authorizeOauth2WithPersistOption({ auth: s, token: i });
+ };
+ function j(e) {
+ return { type: m, payload: e };
+ }
+ const O = (e) => (t) => {
+ let { authActions: n } = t;
+ n.authorizeOauth2(e), n.persistAuthorizationIfNeeded();
+ },
+ k = (e) => (t) => {
+ let { authActions: n } = t,
+ {
+ schema: r,
+ name: o,
+ username: s,
+ password: a,
+ passwordType: l,
+ clientId: c,
+ clientSecret: p,
+ } = e,
+ h = {
+ grant_type: "password",
+ scope: e.scopes.join(" "),
+ username: s,
+ password: a,
+ },
+ f = {};
+ switch (l) {
+ case "request-body":
+ !(function (e, t, n) {
+ t && i()(e, { client_id: t });
+ n && i()(e, { client_secret: n });
+ })(h, c, p);
+ break;
+ case "basic":
+ f.Authorization = "Basic " + (0, u.r3)(c + ":" + p);
+ break;
+ default:
+ console.warn(
+ `Warning: invalid passwordType ${l} was passed, not including client id and secret`
+ );
+ }
+ return n.authorizeRequest({
+ body: (0, u.GZ)(h),
+ url: r.get("tokenUrl"),
+ name: o,
+ headers: f,
+ query: {},
+ auth: e,
+ });
+ };
+ const A = (e) => (t) => {
+ let { authActions: n } = t,
+ {
+ schema: r,
+ scopes: o,
+ name: s,
+ clientId: i,
+ clientSecret: a,
+ } = e,
+ l = { Authorization: "Basic " + (0, u.r3)(i + ":" + a) },
+ c = { grant_type: "client_credentials", scope: o.join(" ") };
+ return n.authorizeRequest({
+ body: (0, u.GZ)(c),
+ name: s,
+ url: r.get("tokenUrl"),
+ auth: e,
+ headers: l,
+ });
+ },
+ C = (e) => {
+ let { auth: t, redirectUrl: n } = e;
+ return (e) => {
+ let { authActions: r } = e,
+ {
+ schema: o,
+ name: s,
+ clientId: i,
+ clientSecret: a,
+ codeVerifier: l,
+ } = t,
+ c = {
+ grant_type: "authorization_code",
+ code: t.code,
+ client_id: i,
+ client_secret: a,
+ redirect_uri: n,
+ code_verifier: l,
+ };
+ return r.authorizeRequest({
+ body: (0, u.GZ)(c),
+ name: s,
+ url: o.get("tokenUrl"),
+ auth: t,
+ });
+ };
+ },
+ P = (e) => {
+ let { auth: t, redirectUrl: n } = e;
+ return (e) => {
+ let { authActions: r } = e,
+ {
+ schema: o,
+ name: s,
+ clientId: i,
+ clientSecret: a,
+ codeVerifier: l,
+ } = t,
+ c = { Authorization: "Basic " + (0, u.r3)(i + ":" + a) },
+ p = {
+ grant_type: "authorization_code",
+ code: t.code,
+ client_id: i,
+ redirect_uri: n,
+ code_verifier: l,
+ };
+ return r.authorizeRequest({
+ body: (0, u.GZ)(p),
+ name: s,
+ url: o.get("tokenUrl"),
+ auth: t,
+ headers: c,
+ });
+ };
+ },
+ N = (e) => (t) => {
+ let n,
+ {
+ fn: r,
+ getConfigs: s,
+ authActions: a,
+ errActions: c,
+ oas3Selectors: u,
+ specSelectors: p,
+ authSelectors: h,
+ } = t,
+ {
+ body: f,
+ query: d = {},
+ headers: m = {},
+ name: g,
+ url: y,
+ auth: v,
+ } = e,
+ { additionalQueryStringParams: b } = h.getConfigs() || {};
+ if (p.isOAS3()) {
+ let e = u.serverEffectiveValue(u.selectedServer());
+ n = l()(y, e, !0);
+ } else n = l()(y, p.url(), !0);
+ "object" == typeof b && (n.query = i()({}, n.query, b));
+ const w = n.toString();
+ let E = i()(
+ {
+ Accept: "application/json, text/plain, */*",
+ "Content-Type": "application/x-www-form-urlencoded",
+ "X-Requested-With": "XMLHttpRequest",
+ },
+ m
+ );
+ r.fetch({
+ url: w,
+ method: "post",
+ headers: E,
+ query: d,
+ body: f,
+ requestInterceptor: s().requestInterceptor,
+ responseInterceptor: s().responseInterceptor,
+ })
+ .then(function (e) {
+ let t = JSON.parse(e.data),
+ n = t && (t.error || ""),
+ r = t && (t.parseError || "");
+ e.ok
+ ? n || r
+ ? c.newAuthErr({
+ authId: g,
+ level: "error",
+ source: "auth",
+ message: o()(t),
+ })
+ : a.authorizeOauth2WithPersistOption({
+ auth: v,
+ token: t,
+ })
+ : c.newAuthErr({
+ authId: g,
+ level: "error",
+ source: "auth",
+ message: e.statusText,
+ });
+ })
+ .catch((e) => {
+ let t = new Error(e).message;
+ if (e.response && e.response.data) {
+ const n = e.response.data;
+ try {
+ const e = "string" == typeof n ? JSON.parse(n) : n;
+ e.error && (t += `, error: ${e.error}`),
+ e.error_description &&
+ (t += `, description: ${e.error_description}`);
+ } catch (e) {}
+ }
+ c.newAuthErr({
+ authId: g,
+ level: "error",
+ source: "auth",
+ message: t,
+ });
+ });
+ };
+ function I(e) {
+ return { type: y, payload: e };
+ }
+ function T(e) {
+ return { type: v, payload: e };
+ }
+ const R = () => (e) => {
+ let { authSelectors: t, getConfigs: n } = e;
+ if (!n().persistAuthorization) return;
+ const r = t.authorized().toJS();
+ localStorage.setItem("authorized", o()(r));
+ },
+ M = (e, t) => () => {
+ (c.Z.swaggerUIRedirectOauth2 = t), c.Z.open(e);
+ };
+ },
+ 87105: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(57557),
+ a = n.n(i);
+ class l extends s.Component {
+ mapStateToProps(e, t) {
+ return { state: e, ownProps: a()(t, o()(t.getSystem())) };
+ }
+ render() {
+ const { getComponent: e, ownProps: t } = this.props,
+ n = e("LockIcon");
+ return s.createElement(n, t);
+ }
+ }
+ const c = l;
+ },
+ 53219: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(57557),
+ a = n.n(i);
+ class l extends s.Component {
+ mapStateToProps(e, t) {
+ return { state: e, ownProps: a()(t, o()(t.getSystem())) };
+ }
+ render() {
+ const { getComponent: e, ownProps: t } = this.props,
+ n = e("UnlockIcon");
+ return s.createElement(n, t);
+ }
+ }
+ const c = l;
+ },
+ 53779: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { loaded: () => r });
+ const r = (e, t) => (n) => {
+ const { getConfigs: r, authActions: o } = t,
+ s = r();
+ if ((e(n), s.persistAuthorization)) {
+ const e = localStorage.getItem("authorized");
+ e && o.restoreAuthorization({ authorized: JSON.parse(e) });
+ }
+ };
+ },
+ 93705: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ default: () => f,
+ preauthorizeApiKey: () => m,
+ preauthorizeBasic: () => d,
+ });
+ var r = n(11189),
+ o = n.n(r),
+ s = n(43962),
+ i = n(55812),
+ a = n(60035),
+ l = n(60489),
+ c = n(53779),
+ u = n(22849),
+ p = n(87105),
+ h = n(53219);
+ function f() {
+ return {
+ afterLoad(e) {
+ (this.rootInjects = this.rootInjects || {}),
+ (this.rootInjects.initOAuth = e.authActions.configureAuth),
+ (this.rootInjects.preauthorizeApiKey = o()(m).call(
+ m,
+ null,
+ e
+ )),
+ (this.rootInjects.preauthorizeBasic = o()(d).call(
+ d,
+ null,
+ e
+ ));
+ },
+ components: {
+ LockAuthIcon: p.default,
+ UnlockAuthIcon: h.default,
+ LockAuthOperationIcon: p.default,
+ UnlockAuthOperationIcon: h.default,
+ },
+ statePlugins: {
+ auth: {
+ reducers: s.default,
+ actions: i,
+ selectors: a,
+ wrapActions: { authorize: u.authorize, logout: u.logout },
+ },
+ configs: { wrapActions: { loaded: c.loaded } },
+ spec: { wrapActions: { execute: l.execute } },
+ },
+ };
+ }
+ function d(e, t, n, r) {
+ const {
+ authActions: { authorize: o },
+ specSelectors: { specJson: s, isOAS3: i },
+ } = e,
+ a = i()
+ ? ["components", "securitySchemes"]
+ : ["securityDefinitions"],
+ l = s().getIn([...a, t]);
+ return l
+ ? o({
+ [t]: {
+ value: { username: n, password: r },
+ schema: l.toJS(),
+ },
+ })
+ : null;
+ }
+ function m(e, t, n) {
+ const {
+ authActions: { authorize: r },
+ specSelectors: { specJson: o, isOAS3: s },
+ } = e,
+ i = s()
+ ? ["components", "securitySchemes"]
+ : ["securityDefinitions"],
+ a = o().getIn([...i, t]);
+ return a ? r({ [t]: { value: n, schema: a.toJS() } }) : null;
+ }
+ },
+ 43962: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(86),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(43393),
+ l = n(90242),
+ c = n(55812);
+ const u = {
+ [c.SHOW_AUTH_POPUP]: (e, t) => {
+ let { payload: n } = t;
+ return e.set("showDefinitions", n);
+ },
+ [c.AUTHORIZE]: (e, t) => {
+ var n;
+ let { payload: r } = t,
+ s = (0, a.fromJS)(r),
+ i = e.get("authorized") || (0, a.Map)();
+ return (
+ o()((n = s.entrySeq())).call(n, (t) => {
+ let [n, r] = t;
+ if (!(0, l.Wl)(r.getIn)) return e.set("authorized", i);
+ let o = r.getIn(["schema", "type"]);
+ if ("apiKey" === o || "http" === o) i = i.set(n, r);
+ else if ("basic" === o) {
+ let e = r.getIn(["value", "username"]),
+ t = r.getIn(["value", "password"]);
+ (i = i.setIn([n, "value"], {
+ username: e,
+ header: "Basic " + (0, l.r3)(e + ":" + t),
+ })),
+ (i = i.setIn([n, "schema"], r.get("schema")));
+ }
+ }),
+ e.set("authorized", i)
+ );
+ },
+ [c.AUTHORIZE_OAUTH2]: (e, t) => {
+ let n,
+ { payload: r } = t,
+ { auth: o, token: s } = r;
+ (o.token = i()({}, s)), (n = (0, a.fromJS)(o));
+ let l = e.get("authorized") || (0, a.Map)();
+ return (l = l.set(n.get("name"), n)), e.set("authorized", l);
+ },
+ [c.LOGOUT]: (e, t) => {
+ let { payload: n } = t,
+ r = e.get("authorized").withMutations((e) => {
+ o()(n).call(n, (t) => {
+ e.delete(t);
+ });
+ });
+ return e.set("authorized", r);
+ },
+ [c.CONFIGURE_AUTH]: (e, t) => {
+ let { payload: n } = t;
+ return e.set("configs", n);
+ },
+ [c.RESTORE_AUTHORIZATION]: (e, t) => {
+ let { payload: n } = t;
+ return e.set("authorized", (0, a.fromJS)(n.authorized));
+ },
+ };
+ },
+ 60035: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ authorized: () => x,
+ definitionsForRequirements: () => E,
+ definitionsToAuthorize: () => b,
+ getConfigs: () => _,
+ getDefinitionsByNames: () => w,
+ isAuthorized: () => S,
+ shownDefinitions: () => v,
+ });
+ var r = n(86),
+ o = n.n(r),
+ s = n(51679),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(97606),
+ h = n.n(p),
+ f = n(28222),
+ d = n.n(f),
+ m = n(20573),
+ g = n(43393);
+ const y = (e) => e,
+ v = (0, m.P1)(y, (e) => e.get("showDefinitions")),
+ b = (0, m.P1)(y, () => (e) => {
+ var t;
+ let { specSelectors: n } = e,
+ r = n.securityDefinitions() || (0, g.Map)({}),
+ s = (0, g.List)();
+ return (
+ o()((t = r.entrySeq())).call(t, (e) => {
+ let [t, n] = e,
+ r = (0, g.Map)();
+ (r = r.set(t, n)), (s = s.push(r));
+ }),
+ s
+ );
+ }),
+ w = (e, t) => (e) => {
+ var n;
+ let { specSelectors: r } = e;
+ console.warn(
+ "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version."
+ );
+ let s = r.securityDefinitions(),
+ i = (0, g.List)();
+ return (
+ o()((n = t.valueSeq())).call(n, (e) => {
+ var t;
+ let n = (0, g.Map)();
+ o()((t = e.entrySeq())).call(t, (e) => {
+ let t,
+ [r, i] = e,
+ a = s.get(r);
+ var l;
+ "oauth2" === a.get("type") &&
+ i.size &&
+ ((t = a.get("scopes")),
+ o()((l = t.keySeq())).call(l, (e) => {
+ i.contains(e) || (t = t.delete(e));
+ }),
+ (a = a.set("allowedScopes", t)));
+ n = n.set(r, a);
+ }),
+ (i = i.push(n));
+ }),
+ i
+ );
+ },
+ E = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : (0, g.List)();
+ return (e) => {
+ let { authSelectors: n } = e;
+ const r = n.definitionsToAuthorize() || (0, g.List)();
+ let s = (0, g.List)();
+ return (
+ o()(r).call(r, (e) => {
+ let n = i()(t).call(t, (t) => t.get(e.keySeq().first()));
+ n &&
+ (o()(e).call(e, (t, r) => {
+ if ("oauth2" === t.get("type")) {
+ const i = n.get(r);
+ let a = t.get("scopes");
+ var s;
+ if (g.List.isList(i) && g.Map.isMap(a))
+ o()((s = a.keySeq())).call(s, (e) => {
+ i.contains(e) || (a = a.delete(e));
+ }),
+ (e = e.set(r, t.set("scopes", a)));
+ }
+ }),
+ (s = s.push(e)));
+ }),
+ s
+ );
+ };
+ },
+ x = (0, m.P1)(y, (e) => e.get("authorized") || (0, g.Map)()),
+ S = (e, t) => (e) => {
+ var n;
+ let { authSelectors: r } = e,
+ o = r.authorized();
+ return g.List.isList(t)
+ ? !!l()((n = t.toJS())).call(n, (e) => {
+ var t, n;
+ return (
+ -1 ===
+ u()(
+ (t = h()((n = d()(e))).call(n, (e) => !!o.get(e)))
+ ).call(t, !1)
+ );
+ }).length
+ : null;
+ },
+ _ = (0, m.P1)(y, (e) => e.get("configs"));
+ },
+ 60489: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { execute: () => r });
+ const r = (e, t) => {
+ let { authSelectors: n, specSelectors: r } = t;
+ return (t) => {
+ let { path: o, method: s, operation: i, extras: a } = t,
+ l = {
+ authorized: n.authorized() && n.authorized().toJS(),
+ definitions:
+ r.securityDefinitions() && r.securityDefinitions().toJS(),
+ specSecurity: r.security() && r.security().toJS(),
+ };
+ return e({
+ path: o,
+ method: s,
+ operation: i,
+ securities: l,
+ ...a,
+ });
+ };
+ };
+ },
+ 22849: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { authorize: () => c, logout: () => u });
+ var r = n(3665),
+ o = n.n(r),
+ s = n(58309),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a);
+ const c = (e, t) => (n) => {
+ e(n);
+ if (t.getConfigs().persistAuthorization)
+ try {
+ const [{ schema: e, value: t }] = o()(n),
+ r = "apiKey" === e.get("type"),
+ s = "cookie" === e.get("in");
+ r &&
+ s &&
+ (document.cookie = `${e.get(
+ "name"
+ )}=${t}; SameSite=None; Secure`);
+ } catch (e) {
+ console.error(
+ "Error persisting cookie based apiKey in document.cookie.",
+ e
+ );
+ }
+ },
+ u = (e, t) => (n) => {
+ const r = t.getConfigs(),
+ o = t.authSelectors.authorized();
+ try {
+ r.persistAuthorization &&
+ i()(n) &&
+ l()(n).call(n, (e) => {
+ const t = o.get(e, {}),
+ n = "apiKey" === t.getIn(["schema", "type"]),
+ r = "cookie" === t.getIn(["schema", "in"]);
+ if (n && r) {
+ const e = t.getIn(["schema", "name"]);
+ document.cookie = `${e}=; Max-Age=-99999999`;
+ }
+ });
+ } catch (e) {
+ console.error(
+ "Error deleting cookie based apiKey from document.cookie.",
+ e
+ );
+ }
+ e(n);
+ };
+ },
+ 70714: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ TOGGLE_CONFIGS: () => o,
+ UPDATE_CONFIGS: () => r,
+ loaded: () => a,
+ toggle: () => i,
+ update: () => s,
+ });
+ const r = "configs_update",
+ o = "configs_toggle";
+ function s(e, t) {
+ return { type: r, payload: { [e]: t } };
+ }
+ function i(e) {
+ return { type: o, payload: e };
+ }
+ const a = () => () => {};
+ },
+ 92256: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { parseYamlConfig: () => o });
+ var r = n(1272);
+ const o = (e, t) => {
+ try {
+ return r.ZP.load(e);
+ } catch (e) {
+ return t && t.errActions.newThrownErr(new Error(e)), {};
+ }
+ };
+ },
+ 46709: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(92256),
+ o = n(70714),
+ s = n(22698),
+ i = n(69018),
+ a = n(37743);
+ const l = {
+ getLocalConfig: () =>
+ (0, r.parseYamlConfig)(
+ '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n'
+ ),
+ };
+ function c() {
+ return {
+ statePlugins: {
+ spec: { actions: s, selectors: l },
+ configs: { reducers: a.default, actions: o, selectors: i },
+ },
+ };
+ }
+ },
+ 37743: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(43393),
+ o = n(70714);
+ const s = {
+ [o.UPDATE_CONFIGS]: (e, t) => e.merge((0, r.fromJS)(t.payload)),
+ [o.TOGGLE_CONFIGS]: (e, t) => {
+ const n = t.payload,
+ r = e.get(n);
+ return e.set(n, !r);
+ },
+ };
+ },
+ 69018: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { get: () => s });
+ var r = n(58309),
+ o = n.n(r);
+ const s = (e, t) => e.getIn(o()(t) ? t : [t]);
+ },
+ 22698: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { downloadConfig: () => o, getConfigByUrl: () => s });
+ var r = n(92256);
+ const o = (e) => (t) => {
+ const {
+ fn: { fetch: n },
+ } = t;
+ return n(e);
+ },
+ s = (e, t) => (n) => {
+ let { specActions: o } = n;
+ if (e) return o.downloadConfig(e).then(s, s);
+ function s(n) {
+ n instanceof Error || n.status >= 400
+ ? (o.updateLoadingStatus("failedConfig"),
+ o.updateLoadingStatus("failedConfig"),
+ o.updateUrl(""),
+ console.error(n.statusText + " " + e.url),
+ t(null))
+ : t((0, r.parseYamlConfig)(n.text));
+ }
+ };
+ },
+ 31970: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { setHash: () => r });
+ const r = (e) =>
+ e
+ ? history.pushState(null, null, `#${e}`)
+ : (window.location.hash = "");
+ },
+ 34980: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(41599),
+ o = n(60877),
+ s = n(34584);
+ function i() {
+ return [
+ r.default,
+ {
+ statePlugins: {
+ configs: {
+ wrapActions: {
+ loaded: (e, t) =>
+ function () {
+ e(...arguments);
+ const n = decodeURIComponent(window.location.hash);
+ t.layoutActions.parseDeepLinkHash(n);
+ },
+ },
+ },
+ },
+ wrapComponents: {
+ operation: o.default,
+ OperationTag: s.default,
+ },
+ },
+ ];
+ }
+ },
+ 41599: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ clearScrollTo: () => _,
+ default: () => j,
+ parseDeepLinkHash: () => E,
+ readyToScroll: () => x,
+ scrollTo: () => w,
+ scrollToElement: () => S,
+ show: () => b,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(31970),
+ h = n(45172),
+ f = n.n(h),
+ d = n(90242),
+ m = n(43393),
+ g = n.n(m);
+ const y = "layout_scroll_to",
+ v = "layout_clear_scroll",
+ b = (e, t) => {
+ let { getConfigs: n, layoutSelectors: r } = t;
+ return function () {
+ for (
+ var t = arguments.length, s = new Array(t), i = 0;
+ i < t;
+ i++
+ )
+ s[i] = arguments[i];
+ if ((e(...s), n().deepLinking))
+ try {
+ let [e, t] = s;
+ e = o()(e) ? e : [e];
+ const n = r.urlHashArrayFromIsShownKey(e);
+ if (!n.length) return;
+ const [i, a] = n;
+ if (!t) return (0, p.setHash)("/");
+ 2 === n.length
+ ? (0, p.setHash)(
+ (0, d.oJ)(
+ `/${encodeURIComponent(i)}/${encodeURIComponent(a)}`
+ )
+ )
+ : 1 === n.length &&
+ (0, p.setHash)((0, d.oJ)(`/${encodeURIComponent(i)}`));
+ } catch (e) {
+ console.error(e);
+ }
+ };
+ },
+ w = (e) => ({ type: y, payload: o()(e) ? e : [e] }),
+ E = (e) => (t) => {
+ let { layoutActions: n, layoutSelectors: r, getConfigs: o } = t;
+ if (o().deepLinking && e) {
+ var s;
+ let t = i()(e).call(e, 1);
+ "!" === t[0] && (t = i()(t).call(t, 1)),
+ "/" === t[0] && (t = i()(t).call(t, 1));
+ const o = l()((s = t.split("/"))).call(s, (e) => e || ""),
+ a = r.isShownKeyFromUrlHashArray(o),
+ [c, p = "", h = ""] = a;
+ if ("operations" === c) {
+ const e = r.isShownKeyFromUrlHashArray([p]);
+ u()(p).call(p, "_") > -1 &&
+ (console.warn(
+ "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."
+ ),
+ n.show(
+ l()(e).call(e, (e) => e.replace(/_/g, " ")),
+ !0
+ )),
+ n.show(e, !0);
+ }
+ (u()(p).call(p, "_") > -1 || u()(h).call(h, "_") > -1) &&
+ (console.warn(
+ "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."
+ ),
+ n.show(
+ l()(a).call(a, (e) => e.replace(/_/g, " ")),
+ !0
+ )),
+ n.show(a, !0),
+ n.scrollTo(a);
+ }
+ },
+ x = (e, t) => (n) => {
+ const r = n.layoutSelectors.getScrollToKey();
+ g().is(r, (0, m.fromJS)(e)) &&
+ (n.layoutActions.scrollToElement(t),
+ n.layoutActions.clearScrollTo());
+ },
+ S = (e, t) => (n) => {
+ try {
+ (t = t || n.fn.getScrollParent(e)), f().createScroller(t).to(e);
+ } catch (e) {
+ console.error(e);
+ }
+ },
+ _ = () => ({ type: v });
+ const j = {
+ fn: {
+ getScrollParent: function (e, t) {
+ const n = document.documentElement;
+ let r = getComputedStyle(e);
+ const o = "absolute" === r.position,
+ s = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/;
+ if ("fixed" === r.position) return n;
+ for (let t = e; (t = t.parentElement); )
+ if (
+ ((r = getComputedStyle(t)),
+ (!o || "static" !== r.position) &&
+ s.test(r.overflow + r.overflowY + r.overflowX))
+ )
+ return t;
+ return n;
+ },
+ },
+ statePlugins: {
+ layout: {
+ actions: {
+ scrollToElement: S,
+ scrollTo: w,
+ clearScrollTo: _,
+ readyToScroll: x,
+ parseDeepLinkHash: E,
+ },
+ selectors: {
+ getScrollToKey: (e) => e.get("scrollToKey"),
+ isShownKeyFromUrlHashArray(e, t) {
+ const [n, r] = t;
+ return r
+ ? ["operations", n, r]
+ : n
+ ? ["operations-tag", n]
+ : [];
+ },
+ urlHashArrayFromIsShownKey(e, t) {
+ let [n, r, o] = t;
+ return "operations" == n
+ ? [r, o]
+ : "operations-tag" == n
+ ? [r]
+ : [];
+ },
+ },
+ reducers: {
+ [y]: (e, t) => e.set("scrollToKey", g().fromJS(t.payload)),
+ [v]: (e) => e.delete("scrollToKey"),
+ },
+ wrapActions: { show: b },
+ },
+ },
+ };
+ },
+ 34584: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e, t) =>
+ class extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, "onLoad", (e) => {
+ const { tag: n } = this.props,
+ r = ["operations-tag", n];
+ t.layoutActions.readyToScroll(r, e);
+ });
+ }
+ render() {
+ return s.createElement(
+ "span",
+ { ref: this.onLoad },
+ s.createElement(e, this.props)
+ );
+ }
+ };
+ },
+ 60877: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ const i = (e, t) =>
+ class extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, "onLoad", (e) => {
+ const { operation: n } = this.props,
+ { tag: r, operationId: o } = n.toObject();
+ let { isShownKey: s } = n.toObject();
+ (s = s || ["operations", r, o]),
+ t.layoutActions.readyToScroll(s, e);
+ });
+ }
+ render() {
+ return s.createElement(
+ "span",
+ { ref: this.onLoad },
+ s.createElement(e, this.props)
+ );
+ }
+ };
+ },
+ 48011: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(63460),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(35627),
+ u = n.n(c),
+ p = n(20573),
+ h = n(43393),
+ f = n(27504);
+ function d(e) {
+ let { fn: t } = e;
+ return {
+ statePlugins: {
+ spec: {
+ actions: {
+ download: (e) => (n) => {
+ let {
+ errActions: r,
+ specSelectors: s,
+ specActions: a,
+ getConfigs: l,
+ } = n,
+ { fetch: c } = t;
+ const u = l();
+ function p(t) {
+ if (t instanceof Error || t.status >= 400)
+ return (
+ a.updateLoadingStatus("failed"),
+ r.newThrownErr(
+ o()(
+ new Error(
+ (t.message || t.statusText) + " " + e
+ ),
+ { source: "fetch" }
+ )
+ ),
+ void (
+ !t.status &&
+ t instanceof Error &&
+ (function () {
+ try {
+ let t;
+ if (
+ ("URL" in f.Z
+ ? (t = new (i())(e))
+ : ((t = document.createElement("a")),
+ (t.href = e)),
+ "https:" !== t.protocol &&
+ "https:" === f.Z.location.protocol)
+ ) {
+ const e = o()(
+ new Error(
+ `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`
+ ),
+ { source: "fetch" }
+ );
+ return void r.newThrownErr(e);
+ }
+ if (t.origin !== f.Z.location.origin) {
+ const e = o()(
+ new Error(
+ `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`
+ ),
+ { source: "fetch" }
+ );
+ r.newThrownErr(e);
+ }
+ } catch (e) {
+ return;
+ }
+ })()
+ )
+ );
+ a.updateLoadingStatus("success"),
+ a.updateSpec(t.text),
+ s.url() !== e && a.updateUrl(e);
+ }
+ (e = e || s.url()),
+ a.updateLoadingStatus("loading"),
+ r.clear({ source: "fetch" }),
+ c({
+ url: e,
+ loadSpec: !0,
+ requestInterceptor:
+ u.requestInterceptor || ((e) => e),
+ responseInterceptor:
+ u.responseInterceptor || ((e) => e),
+ credentials: "same-origin",
+ headers: { Accept: "application/json,*/*" },
+ }).then(p, p);
+ },
+ updateLoadingStatus: (e) => {
+ let t = [
+ null,
+ "loading",
+ "failed",
+ "success",
+ "failedConfig",
+ ];
+ return (
+ -1 === l()(t).call(t, e) &&
+ console.error(`Error: ${e} is not one of ${u()(t)}`),
+ { type: "spec_update_loading_status", payload: e }
+ );
+ },
+ },
+ reducers: {
+ spec_update_loading_status: (e, t) =>
+ "string" == typeof t.payload
+ ? e.set("loadingStatus", t.payload)
+ : e,
+ },
+ selectors: {
+ loadingStatus: (0, p.P1)(
+ (e) => e || (0, h.Map)(),
+ (e) => e.get("loadingStatus") || null
+ ),
+ },
+ },
+ },
+ };
+ }
+ },
+ 34966: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ CLEAR: () => c,
+ CLEAR_BY: () => u,
+ NEW_AUTH_ERR: () => l,
+ NEW_SPEC_ERR: () => i,
+ NEW_SPEC_ERR_BATCH: () => a,
+ NEW_THROWN_ERR: () => o,
+ NEW_THROWN_ERR_BATCH: () => s,
+ clear: () => g,
+ clearBy: () => y,
+ newAuthErr: () => m,
+ newSpecErr: () => f,
+ newSpecErrBatch: () => d,
+ newThrownErr: () => p,
+ newThrownErrBatch: () => h,
+ });
+ var r = n(7710);
+ const o = "err_new_thrown_err",
+ s = "err_new_thrown_err_batch",
+ i = "err_new_spec_err",
+ a = "err_new_spec_err_batch",
+ l = "err_new_auth_err",
+ c = "err_clear",
+ u = "err_clear_by";
+ function p(e) {
+ return { type: o, payload: (0, r.serializeError)(e) };
+ }
+ function h(e) {
+ return { type: s, payload: e };
+ }
+ function f(e) {
+ return { type: i, payload: e };
+ }
+ function d(e) {
+ return { type: a, payload: e };
+ }
+ function m(e) {
+ return { type: l, payload: e };
+ }
+ function g() {
+ return {
+ type: c,
+ payload:
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {},
+ };
+ }
+ function y() {
+ return {
+ type: u,
+ payload:
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : () => !0,
+ };
+ }
+ },
+ 56982: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(54061),
+ l = n.n(a);
+ const c = [n(2392), n(21835)];
+ function u(e) {
+ var t;
+ let n = { jsSpec: {} },
+ r = l()(
+ c,
+ (e, t) => {
+ try {
+ let r = t.transform(e, n);
+ return o()(r).call(r, (e) => !!e);
+ } catch (t) {
+ return console.error("Transformer error:", t), e;
+ }
+ },
+ e
+ );
+ return i()((t = o()(r).call(r, (e) => !!e))).call(
+ t,
+ (e) => (!e.get("line") && e.get("path"), e)
+ );
+ }
+ },
+ 2392: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { transform: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s),
+ a = n(24278),
+ l = n.n(a),
+ c = n(24282),
+ u = n.n(c);
+ function p(e) {
+ return o()(e).call(e, (e) => {
+ var t;
+ let n = "is not of a type(s)",
+ r = i()((t = e.get("message"))).call(t, n);
+ if (r > -1) {
+ var o, s;
+ let t = l()((o = e.get("message")))
+ .call(o, r + 19)
+ .split(",");
+ return e.set(
+ "message",
+ l()((s = e.get("message"))).call(s, 0, r) +
+ (function (e) {
+ return u()(e).call(
+ e,
+ (e, t, n, r) =>
+ n === r.length - 1 && r.length > 1
+ ? e + "or " + t
+ : r[n + 1] && r.length > 2
+ ? e + t + ", "
+ : r[n + 1]
+ ? e + t + " "
+ : e + t,
+ "should be a"
+ );
+ })(t)
+ );
+ }
+ return e;
+ });
+ }
+ },
+ 21835: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { transform: () => r });
+ n(97606), n(11882), n(27361), n(43393);
+ function r(e, t) {
+ let { jsSpec: n } = t;
+ return e;
+ }
+ },
+ 77793: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(93527),
+ o = n(34966),
+ s = n(87667);
+ function i(e) {
+ return {
+ statePlugins: {
+ err: { reducers: (0, r.default)(e), actions: o, selectors: s },
+ },
+ };
+ }
+ },
+ 93527: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => y });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(39022),
+ l = n.n(a),
+ c = n(14418),
+ u = n.n(c),
+ p = n(2250),
+ h = n.n(p),
+ f = n(34966),
+ d = n(43393),
+ m = n(56982);
+ let g = { line: 0, level: "error", message: "Unknown error" };
+ function y() {
+ return {
+ [f.NEW_THROWN_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = o()(g, n, { type: "thrown" });
+ return e
+ .update("errors", (e) =>
+ (e || (0, d.List)()).push((0, d.fromJS)(r))
+ )
+ .update("errors", (e) => (0, m.default)(e));
+ },
+ [f.NEW_THROWN_ERR_BATCH]: (e, t) => {
+ let { payload: n } = t;
+ return (
+ (n = i()(n).call(n, (e) =>
+ (0, d.fromJS)(o()(g, e, { type: "thrown" }))
+ )),
+ e
+ .update("errors", (e) => {
+ var t;
+ return l()((t = e || (0, d.List)())).call(
+ t,
+ (0, d.fromJS)(n)
+ );
+ })
+ .update("errors", (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_SPEC_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = (0, d.fromJS)(n);
+ return (
+ (r = r.set("type", "spec")),
+ e
+ .update("errors", (e) =>
+ (e || (0, d.List)())
+ .push((0, d.fromJS)(r))
+ .sortBy((e) => e.get("line"))
+ )
+ .update("errors", (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_SPEC_ERR_BATCH]: (e, t) => {
+ let { payload: n } = t;
+ return (
+ (n = i()(n).call(n, (e) =>
+ (0, d.fromJS)(o()(g, e, { type: "spec" }))
+ )),
+ e
+ .update("errors", (e) => {
+ var t;
+ return l()((t = e || (0, d.List)())).call(
+ t,
+ (0, d.fromJS)(n)
+ );
+ })
+ .update("errors", (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_AUTH_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = (0, d.fromJS)(o()({}, n));
+ return (
+ (r = r.set("type", "auth")),
+ e
+ .update("errors", (e) =>
+ (e || (0, d.List)()).push((0, d.fromJS)(r))
+ )
+ .update("errors", (e) => (0, m.default)(e))
+ );
+ },
+ [f.CLEAR]: (e, t) => {
+ var n;
+ let { payload: r } = t;
+ if (!r || !e.get("errors")) return e;
+ let o = u()((n = e.get("errors"))).call(n, (e) => {
+ var t;
+ return h()((t = e.keySeq())).call(t, (t) => {
+ const n = e.get(t),
+ o = r[t];
+ return !o || n !== o;
+ });
+ });
+ return e.merge({ errors: o });
+ },
+ [f.CLEAR_BY]: (e, t) => {
+ var n;
+ let { payload: r } = t;
+ if (!r || "function" != typeof r) return e;
+ let o = u()((n = e.get("errors"))).call(n, (e) => r(e));
+ return e.merge({ errors: o });
+ },
+ };
+ }
+ },
+ 87667: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { allErrors: () => s, lastError: () => i });
+ var r = n(43393),
+ o = n(20573);
+ const s = (0, o.P1)(
+ (e) => e,
+ (e) => e.get("errors", (0, r.List)())
+ ),
+ i = (0, o.P1)(s, (e) => e.last());
+ },
+ 49978: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(4309);
+ function o() {
+ return { fn: { opsFilter: r.default } };
+ }
+ },
+ 4309: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s);
+ function a(e, t) {
+ return o()(e).call(e, (e, n) => -1 !== i()(n).call(n, t));
+ }
+ },
+ 26395: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 39689: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 86984: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 22478: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 93388: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 15 16",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement(
+ "g",
+ { transform: "translate(2, -1)" },
+ s.createElement("path", {
+ fill: "#ffffff",
+ fillRule: "evenodd",
+ d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z",
+ })
+ )
+ );
+ };
+ i.defaultProps = { className: null, width: 15, height: 16 };
+ const a = i;
+ },
+ 56945: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 22568: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e) => {
+ let { className: t, width: n, height: r, ...i } = e;
+ return s.createElement(
+ "svg",
+ o()(
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ className: t,
+ width: n,
+ height: r,
+ "aria-hidden": "true",
+ focusable: "false",
+ },
+ i
+ ),
+ s.createElement("path", {
+ d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z",
+ })
+ );
+ };
+ i.defaultProps = { className: null, width: 20, height: 20 };
+ const a = i;
+ },
+ 10070: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(39689),
+ o = n(26395),
+ s = n(86984),
+ i = n(22478),
+ a = n(93388),
+ l = n(56945),
+ c = n(22568);
+ const u = () => ({
+ components: {
+ ArrowUpIcon: r.default,
+ ArrowDownIcon: o.default,
+ ArrowIcon: s.default,
+ CloseIcon: i.default,
+ CopyIcon: a.default,
+ LockIcon: l.default,
+ UnlockIcon: c.default,
+ },
+ });
+ },
+ 47349: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(67294),
+ o = n(94184),
+ s = n.n(o),
+ i = n(12603);
+ const a = (e) => {
+ let { expanded: t, children: n, onChange: o } = e;
+ const a = (0, i.useComponent)("ChevronRightIcon"),
+ l = (0, r.useCallback)(
+ (e) => {
+ o(e, !t);
+ },
+ [t, o]
+ );
+ return r.createElement(
+ "button",
+ {
+ type: "button",
+ className: "json-schema-2020-12-accordion",
+ onClick: l,
+ },
+ r.createElement(
+ "div",
+ { className: "json-schema-2020-12-accordion__children" },
+ n
+ ),
+ r.createElement(
+ "span",
+ {
+ className: s()("json-schema-2020-12-accordion__icon", {
+ "json-schema-2020-12-accordion__icon--expanded": t,
+ "json-schema-2020-12-accordion__icon--collapsed": !t,
+ }),
+ },
+ r.createElement(a, null)
+ )
+ );
+ };
+ a.defaultProps = { expanded: !1 };
+ const l = a;
+ },
+ 36867: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { expanded: t, onClick: n } = e;
+ const o = (0, r.useCallback)(
+ (e) => {
+ n(e, !t);
+ },
+ [t, n]
+ );
+ return r.createElement(
+ "button",
+ {
+ type: "button",
+ className: "json-schema-2020-12-expand-deep-button",
+ onClick: o,
+ },
+ t ? "Collapse all" : "Expand all"
+ );
+ };
+ },
+ 22675: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = (n(16648), n(12603)),
+ c = n(69006);
+ const u = (0, s.forwardRef)((e, t) => {
+ let { schema: n, name: r, dependentRequired: i, onExpand: u } = e;
+ const p = (0, l.useFn)(),
+ h = (0, l.useIsExpanded)(),
+ f = (0, l.useIsExpandedDeeply)(),
+ [d, m] = (0, s.useState)(h || f),
+ [g, y] = (0, s.useState)(f),
+ [v, b] = (0, l.useLevel)(),
+ w = (0, l.useIsEmbedded)(),
+ E = p.isExpandable(n) || i.length > 0,
+ x = (0, l.useIsCircular)(n),
+ S = (0, l.useRenderedSchemas)(n),
+ _ = p.stringifyConstraints(n),
+ j = (0, l.useComponent)("Accordion"),
+ O = (0, l.useComponent)("Keyword$schema"),
+ k = (0, l.useComponent)("Keyword$vocabulary"),
+ A = (0, l.useComponent)("Keyword$id"),
+ C = (0, l.useComponent)("Keyword$anchor"),
+ P = (0, l.useComponent)("Keyword$dynamicAnchor"),
+ N = (0, l.useComponent)("Keyword$ref"),
+ I = (0, l.useComponent)("Keyword$dynamicRef"),
+ T = (0, l.useComponent)("Keyword$defs"),
+ R = (0, l.useComponent)("Keyword$comment"),
+ M = (0, l.useComponent)("KeywordAllOf"),
+ D = (0, l.useComponent)("KeywordAnyOf"),
+ F = (0, l.useComponent)("KeywordOneOf"),
+ L = (0, l.useComponent)("KeywordNot"),
+ B = (0, l.useComponent)("KeywordIf"),
+ $ = (0, l.useComponent)("KeywordThen"),
+ q = (0, l.useComponent)("KeywordElse"),
+ U = (0, l.useComponent)("KeywordDependentSchemas"),
+ z = (0, l.useComponent)("KeywordPrefixItems"),
+ V = (0, l.useComponent)("KeywordItems"),
+ W = (0, l.useComponent)("KeywordContains"),
+ J = (0, l.useComponent)("KeywordProperties"),
+ K = (0, l.useComponent)("KeywordPatternProperties"),
+ H = (0, l.useComponent)("KeywordAdditionalProperties"),
+ G = (0, l.useComponent)("KeywordPropertyNames"),
+ Z = (0, l.useComponent)("KeywordUnevaluatedItems"),
+ Y = (0, l.useComponent)("KeywordUnevaluatedProperties"),
+ X = (0, l.useComponent)("KeywordType"),
+ Q = (0, l.useComponent)("KeywordEnum"),
+ ee = (0, l.useComponent)("KeywordConst"),
+ te = (0, l.useComponent)("KeywordConstraint"),
+ ne = (0, l.useComponent)("KeywordDependentRequired"),
+ re = (0, l.useComponent)("KeywordContentSchema"),
+ oe = (0, l.useComponent)("KeywordTitle"),
+ se = (0, l.useComponent)("KeywordDescription"),
+ ie = (0, l.useComponent)("KeywordDefault"),
+ ae = (0, l.useComponent)("KeywordDeprecated"),
+ le = (0, l.useComponent)("KeywordReadOnly"),
+ ce = (0, l.useComponent)("KeywordWriteOnly"),
+ ue = (0, l.useComponent)("ExpandDeepButton");
+ (0, s.useEffect)(() => {
+ y(f);
+ }, [f]),
+ (0, s.useEffect)(() => {
+ y(g);
+ }, [g]);
+ const pe = (0, s.useCallback)(
+ (e, t) => {
+ m(t), !t && y(!1), u(e, t, !1);
+ },
+ [u]
+ ),
+ he = (0, s.useCallback)(
+ (e, t) => {
+ m(t), y(t), u(e, t, !0);
+ },
+ [u]
+ );
+ return s.createElement(
+ c.JSONSchemaLevelContext.Provider,
+ { value: b },
+ s.createElement(
+ c.JSONSchemaDeepExpansionContext.Provider,
+ { value: g },
+ s.createElement(
+ c.JSONSchemaCyclesContext.Provider,
+ { value: S },
+ s.createElement(
+ "article",
+ {
+ ref: t,
+ "data-json-schema-level": v,
+ className: a()("json-schema-2020-12", {
+ "json-schema-2020-12--embedded": w,
+ "json-schema-2020-12--circular": x,
+ }),
+ },
+ s.createElement(
+ "div",
+ { className: "json-schema-2020-12-head" },
+ E && !x
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ j,
+ { expanded: d, onChange: pe },
+ s.createElement(oe, { title: r, schema: n })
+ ),
+ s.createElement(ue, { expanded: d, onClick: he })
+ )
+ : s.createElement(oe, { title: r, schema: n }),
+ s.createElement(ae, { schema: n }),
+ s.createElement(le, { schema: n }),
+ s.createElement(ce, { schema: n }),
+ s.createElement(X, { schema: n, isCircular: x }),
+ _.length > 0 &&
+ o()(_).call(_, (e) =>
+ s.createElement(te, {
+ key: `${e.scope}-${e.value}`,
+ constraint: e,
+ })
+ )
+ ),
+ s.createElement(
+ "div",
+ {
+ className: a()("json-schema-2020-12-body", {
+ "json-schema-2020-12-body--collapsed": !d,
+ }),
+ },
+ d &&
+ s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(se, { schema: n }),
+ !x &&
+ E &&
+ s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(J, { schema: n }),
+ s.createElement(K, { schema: n }),
+ s.createElement(H, { schema: n }),
+ s.createElement(Y, { schema: n }),
+ s.createElement(G, { schema: n }),
+ s.createElement(M, { schema: n }),
+ s.createElement(D, { schema: n }),
+ s.createElement(F, { schema: n }),
+ s.createElement(L, { schema: n }),
+ s.createElement(B, { schema: n }),
+ s.createElement($, { schema: n }),
+ s.createElement(q, { schema: n }),
+ s.createElement(U, { schema: n }),
+ s.createElement(z, { schema: n }),
+ s.createElement(V, { schema: n }),
+ s.createElement(Z, { schema: n }),
+ s.createElement(W, { schema: n }),
+ s.createElement(re, { schema: n })
+ ),
+ s.createElement(Q, { schema: n }),
+ s.createElement(ee, { schema: n }),
+ s.createElement(ne, {
+ schema: n,
+ dependentRequired: i,
+ }),
+ s.createElement(ie, { schema: n }),
+ s.createElement(O, { schema: n }),
+ s.createElement(k, { schema: n }),
+ s.createElement(A, { schema: n }),
+ s.createElement(C, { schema: n }),
+ s.createElement(P, { schema: n }),
+ s.createElement(N, { schema: n }),
+ !x && E && s.createElement(T, { schema: n }),
+ s.createElement(I, { schema: n }),
+ s.createElement(R, { schema: n })
+ )
+ )
+ )
+ )
+ )
+ );
+ });
+ u.defaultProps = {
+ name: "",
+ dependentRequired: [],
+ onExpand: () => {},
+ };
+ const p = u;
+ },
+ 12260: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = () =>
+ r.createElement(
+ "svg",
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ width: "24",
+ height: "24",
+ viewBox: "0 0 24 24",
+ },
+ r.createElement("path", {
+ d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",
+ })
+ );
+ },
+ 64922: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$anchor
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$anchor"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$anchor
+ )
+ )
+ : null;
+ };
+ },
+ 4685: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$comment
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$comment"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$comment
+ )
+ )
+ : null;
+ };
+ },
+ 36418: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u),
+ h = (n(16648), n(12603)),
+ f = n(69006);
+ const d = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.$defs) || {},
+ s = (0, h.useIsExpandedDeeply)(),
+ [a, u] = (0, c.useState)(s),
+ [d, m] = (0, c.useState)(!1),
+ g = (0, h.useComponent)("Accordion"),
+ y = (0, h.useComponent)("ExpandDeepButton"),
+ v = (0, h.useComponent)("JSONSchema"),
+ b = (0, c.useCallback)(() => {
+ u((e) => !e);
+ }, []),
+ w = (0, c.useCallback)((e, t) => {
+ u(t), m(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : c.createElement(
+ f.JSONSchemaDeepExpansionContext.Provider,
+ { value: d },
+ c.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs",
+ },
+ c.createElement(
+ g,
+ { expanded: a, onChange: b },
+ c.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$defs"
+ )
+ ),
+ c.createElement(y, { expanded: a, onClick: w }),
+ c.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ c.createElement(
+ "ul",
+ {
+ className: p()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !a,
+ }
+ ),
+ },
+ a &&
+ c.createElement(
+ c.Fragment,
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ "li",
+ {
+ key: t,
+ className: "json-schema-2020-12-property",
+ },
+ c.createElement(v, { name: t, schema: n })
+ );
+ })
+ )
+ )
+ )
+ );
+ };
+ },
+ 51338: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$dynamicAnchor
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$dynamicAnchor"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$dynamicAnchor
+ )
+ )
+ : null;
+ };
+ },
+ 27655: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$dynamicRef
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$dynamicRef"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$dynamicRef
+ )
+ )
+ : null;
+ };
+ },
+ 93460: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$id
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$id",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$id"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$id
+ )
+ )
+ : null;
+ };
+ },
+ 72348: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$ref
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$ref"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$ref
+ )
+ )
+ : null;
+ };
+ },
+ 69359: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$schema
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$schema"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t.$schema
+ )
+ )
+ : null;
+ };
+ },
+ 7568: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(2018),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603));
+ const p = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, u.useIsExpandedDeeply)(),
+ [s, l] = (0, a.useState)(r),
+ p = (0, u.useComponent)("Accordion"),
+ h = (0, a.useCallback)(() => {
+ l((e) => !e);
+ }, []);
+ return null != n && n.$vocabulary
+ ? "object" != typeof n.$vocabulary
+ ? null
+ : a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary",
+ },
+ a.createElement(
+ p,
+ { expanded: s, onChange: h },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "$vocabulary"
+ )
+ ),
+ a.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ a.createElement(
+ "ul",
+ null,
+ s &&
+ o()((t = i()(n.$vocabulary))).call(t, (e) => {
+ let [t, n] = e;
+ return a.createElement(
+ "li",
+ {
+ key: t,
+ className: c()(
+ "json-schema-2020-12-$vocabulary-uri",
+ {
+ "json-schema-2020-12-$vocabulary-uri--disabled":
+ !n,
+ }
+ ),
+ },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ t
+ )
+ );
+ })
+ )
+ )
+ : null;
+ };
+ },
+ 65253: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { additionalProperties: s } = t,
+ i = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "additionalProperties")) return null;
+ const a = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Additional properties"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties",
+ },
+ !0 === s
+ ? r.createElement(
+ r.Fragment,
+ null,
+ a,
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "allowed"
+ )
+ )
+ : !1 === s
+ ? r.createElement(
+ r.Fragment,
+ null,
+ a,
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "forbidden"
+ )
+ )
+ : r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 46457: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.allOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)("Accordion"),
+ g = (0, u.useComponent)("ExpandDeepButton"),
+ y = (0, u.useComponent)("JSONSchema"),
+ v = (0, u.useComponent)("KeywordType"),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf",
+ },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "All of"
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { allOf: n } }),
+ a.createElement(
+ "ul",
+ {
+ className: c()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !l,
+ }
+ ),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ "li",
+ {
+ key: `#${t}`,
+ className: "json-schema-2020-12-property",
+ },
+ a.createElement(y, {
+ name: `#${t} ${r.getTitle(e)}`,
+ schema: e,
+ })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 8776: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.anyOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)("Accordion"),
+ g = (0, u.useComponent)("ExpandDeepButton"),
+ y = (0, u.useComponent)("JSONSchema"),
+ v = (0, u.useComponent)("KeywordType"),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf",
+ },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Any of"
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { anyOf: n } }),
+ a.createElement(
+ "ul",
+ {
+ className: c()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !l,
+ }
+ ),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ "li",
+ {
+ key: `#${t}`,
+ className: "json-schema-2020-12-property",
+ },
+ a.createElement(y, {
+ name: `#${t} ${r.getTitle(e)}`,
+ schema: e,
+ })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 27308: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)();
+ return n.hasKeyword(t, "const")
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--const",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Const"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const",
+ },
+ n.stringify(t.const)
+ )
+ )
+ : null;
+ };
+ },
+ 69956: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294);
+ const o = (e) => {
+ let { constraint: t } = e;
+ return r.createElement(
+ "span",
+ {
+ className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`,
+ },
+ t.value
+ );
+ },
+ s = r.memo(o);
+ },
+ 38993: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "contains")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Contains"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--contains",
+ },
+ r.createElement(s, { name: i, schema: t.contains })
+ );
+ };
+ },
+ 3484: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "contentSchema")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Content schema"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema",
+ },
+ r.createElement(s, { name: i, schema: t.contentSchema })
+ );
+ };
+ },
+ 55148: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)();
+ return n.hasKeyword(t, "default")
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--default",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Default"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const",
+ },
+ n.stringify(t.default)
+ )
+ )
+ : null;
+ };
+ },
+ 24539: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(67294);
+ n(16648);
+ const i = (e) => {
+ let { dependentRequired: t } = e;
+ return 0 === t.length
+ ? null
+ : s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired",
+ },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Required when defined"
+ ),
+ s.createElement(
+ "ul",
+ null,
+ o()(t).call(t, (e) =>
+ s.createElement(
+ "li",
+ { key: e },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning",
+ },
+ e
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 26076: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u),
+ h = (n(16648), n(12603)),
+ f = n(69006);
+ const d = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.dependentSchemas) || [],
+ s = (0, h.useIsExpandedDeeply)(),
+ [a, u] = (0, c.useState)(s),
+ [d, m] = (0, c.useState)(!1),
+ g = (0, h.useComponent)("Accordion"),
+ y = (0, h.useComponent)("ExpandDeepButton"),
+ v = (0, h.useComponent)("JSONSchema"),
+ b = (0, c.useCallback)(() => {
+ u((e) => !e);
+ }, []),
+ w = (0, c.useCallback)((e, t) => {
+ u(t), m(t);
+ }, []);
+ return "object" != typeof r || 0 === o()(r).length
+ ? null
+ : c.createElement(
+ f.JSONSchemaDeepExpansionContext.Provider,
+ { value: d },
+ c.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas",
+ },
+ c.createElement(
+ g,
+ { expanded: a, onChange: b },
+ c.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Dependent schemas"
+ )
+ ),
+ c.createElement(y, { expanded: a, onClick: w }),
+ c.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ c.createElement(
+ "ul",
+ {
+ className: p()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !a,
+ }
+ ),
+ },
+ a &&
+ c.createElement(
+ c.Fragment,
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ "li",
+ {
+ key: t,
+ className: "json-schema-2020-12-property",
+ },
+ c.createElement(v, { name: t, schema: n })
+ );
+ })
+ )
+ )
+ )
+ );
+ };
+ },
+ 26661: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.deprecated)
+ ? null
+ : r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--warning",
+ },
+ "deprecated"
+ );
+ };
+ },
+ 79446: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.description
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--description",
+ },
+ r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary",
+ },
+ t.description
+ )
+ )
+ : null;
+ };
+ },
+ 67207: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "else")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Else"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--if",
+ },
+ r.createElement(s, { name: i, schema: t.else })
+ );
+ };
+ },
+ 91805: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = (n(16648), n(12603));
+ const c = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, l.useFn)();
+ return o()(null == n ? void 0 : n.enum)
+ ? a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--enum",
+ },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Allowed values"
+ ),
+ a.createElement(
+ "ul",
+ null,
+ i()((t = n.enum)).call(t, (e) => {
+ const t = r.stringify(e);
+ return a.createElement(
+ "li",
+ { key: t },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const",
+ },
+ t
+ )
+ );
+ })
+ )
+ )
+ : null;
+ };
+ },
+ 40487: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "if")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "If"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--if",
+ },
+ r.createElement(s, { name: i, schema: t.if })
+ );
+ };
+ },
+ 89206: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "items")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Items"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--items",
+ },
+ r.createElement(s, { name: i, schema: t.items })
+ );
+ };
+ },
+ 65174: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "not")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Not"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--not",
+ },
+ r.createElement(s, { name: i, schema: t.not })
+ );
+ };
+ },
+ 13834: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.oneOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)("Accordion"),
+ g = (0, u.useComponent)("ExpandDeepButton"),
+ y = (0, u.useComponent)("JSONSchema"),
+ v = (0, u.useComponent)("KeywordType"),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf",
+ },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "One of"
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { oneOf: n } }),
+ a.createElement(
+ "ul",
+ {
+ className: c()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !l,
+ }
+ ),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ "li",
+ {
+ key: `#${t}`,
+ className: "json-schema-2020-12-property",
+ },
+ a.createElement(y, {
+ name: `#${t} ${r.getTitle(e)}`,
+ schema: e,
+ })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 36746: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = (n(16648), n(12603));
+ const p = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.patternProperties) || {},
+ s = (0, u.useComponent)("JSONSchema");
+ return 0 === o()(r).length
+ ? null
+ : c.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties",
+ },
+ c.createElement(
+ "ul",
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ "li",
+ { key: t, className: "json-schema-2020-12-property" },
+ c.createElement(s, { name: t, schema: n })
+ );
+ })
+ )
+ );
+ };
+ },
+ 93971: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.prefixItems) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)("Accordion"),
+ g = (0, u.useComponent)("ExpandDeepButton"),
+ y = (0, u.useComponent)("JSONSchema"),
+ v = (0, u.useComponent)("KeywordType"),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems",
+ },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Prefix items"
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { prefixItems: n } }),
+ a.createElement(
+ "ul",
+ {
+ className: c()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !l,
+ }
+ ),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ "li",
+ {
+ key: `#${t}`,
+ className: "json-schema-2020-12-property",
+ },
+ a.createElement(y, {
+ name: `#${t} ${r.getTitle(e)}`,
+ schema: e,
+ })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 25472: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => y });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(67294),
+ d = n(94184),
+ m = n.n(d),
+ g = (n(16648), n(12603));
+ const y = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, g.useFn)(),
+ s = (null == n ? void 0 : n.properties) || {},
+ a = o()(null == n ? void 0 : n.required) ? n.required : [],
+ c = (0, g.useComponent)("JSONSchema");
+ return 0 === i()(s).length
+ ? null
+ : f.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--properties",
+ },
+ f.createElement(
+ "ul",
+ null,
+ l()((t = u()(s))).call(t, (e) => {
+ let [t, o] = e;
+ const s = h()(a).call(a, t),
+ i = r.getDependentRequired(t, n);
+ return f.createElement(
+ "li",
+ {
+ key: t,
+ className: m()("json-schema-2020-12-property", {
+ "json-schema-2020-12-property--required": s,
+ }),
+ },
+ f.createElement(c, {
+ name: t,
+ schema: o,
+ dependentRequired: i,
+ })
+ );
+ })
+ )
+ );
+ };
+ },
+ 42338: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { propertyNames: s } = t,
+ i = (0, o.useComponent)("JSONSchema"),
+ a = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Property names"
+ );
+ return n.hasKeyword(t, "propertyNames")
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames",
+ },
+ r.createElement(i, { name: a, schema: s })
+ )
+ : null;
+ };
+ },
+ 16456: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.readOnly)
+ ? null
+ : r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted",
+ },
+ "read-only"
+ );
+ };
+ },
+ 67401: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "then")) return null;
+ const i = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Then"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--then",
+ },
+ r.createElement(s, { name: i, schema: t.then })
+ );
+ };
+ },
+ 78137: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { title: t, schema: n } = e;
+ const s = (0, o.useFn)();
+ return t || s.getTitle(n)
+ ? r.createElement(
+ "div",
+ { className: "json-schema-2020-12__title" },
+ t || s.getTitle(n)
+ )
+ : null;
+ };
+ s.defaultProps = { title: "" };
+ const i = s;
+ },
+ 22285: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t, isCircular: n } = e;
+ const s = (0, o.useFn)().getType(t),
+ i = n ? " [circular]" : "";
+ return r.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ `${s}${i}`
+ );
+ };
+ s.defaultProps = { isCircular: !1 };
+ const i = s;
+ },
+ 85828: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { unevaluatedItems: s } = t,
+ i = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "unevaluatedItems")) return null;
+ const a = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Unevaluated items"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems",
+ },
+ r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 6907: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { unevaluatedProperties: s } = t,
+ i = (0, o.useComponent)("JSONSchema");
+ if (!n.hasKeyword(t, "unevaluatedProperties")) return null;
+ const a = r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary",
+ },
+ "Unevaluated properties"
+ );
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties",
+ },
+ r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 15789: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.writeOnly)
+ ? null
+ : r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted",
+ },
+ "write-only"
+ );
+ };
+ },
+ 69006: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ JSONSchemaContext: () => i,
+ JSONSchemaCyclesContext: () => c,
+ JSONSchemaDeepExpansionContext: () => l,
+ JSONSchemaLevelContext: () => a,
+ });
+ var r = n(82737),
+ o = n.n(r),
+ s = n(67294);
+ const i = (0, s.createContext)(null);
+ i.displayName = "JSONSchemaContext";
+ const a = (0, s.createContext)(0);
+ a.displayName = "JSONSchemaLevelContext";
+ const l = (0, s.createContext)(!1);
+ l.displayName = "JSONSchemaDeepExpansionContext";
+ const c = (0, s.createContext)(new (o())());
+ },
+ 33499: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ getDependentRequired: () => F,
+ getTitle: () => C,
+ getType: () => P,
+ hasKeyword: () => I,
+ isBooleanJSONSchema: () => N,
+ isExpandable: () => T,
+ stringify: () => R,
+ stringifyConstraints: () => D,
+ upperFirst: () => A,
+ });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(19030),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(91086),
+ d = n.n(f),
+ m = n(14418),
+ g = n.n(m),
+ y = n(35627),
+ v = n.n(y),
+ b = n(25110),
+ w = n.n(b),
+ E = n(24282),
+ x = n.n(E),
+ S = n(2018),
+ _ = n.n(S),
+ j = n(82737),
+ O = n.n(j),
+ k = n(12603);
+ const A = (e) =>
+ "string" == typeof e
+ ? `${e.charAt(0).toUpperCase()}${o()(e).call(e, 1)}`
+ : e,
+ C = (e) => {
+ const t = (0, k.useFn)();
+ return null != e && e.title
+ ? t.upperFirst(e.title)
+ : null != e && e.$anchor
+ ? t.upperFirst(e.$anchor)
+ : null != e && e.$id
+ ? e.$id
+ : "";
+ },
+ P = function (e) {
+ var t, n;
+ let r =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : new (i())();
+ const o = (0, k.useFn)();
+ if (null == e) return "any";
+ if (o.isBooleanJSONSchema(e)) return e ? "any" : "never";
+ if ("object" != typeof e) return "any";
+ if (r.has(e)) return "any";
+ r.add(e);
+ const { type: s, prefixItems: a, items: c } = e,
+ p = () => {
+ if (l()(a)) {
+ const e = u()(a).call(a, (e) => P(e, r)),
+ t = c ? P(c, r) : "any";
+ return `array<[${e.join(", ")}], ${t}>`;
+ }
+ if (c) {
+ return `array<${P(c, r)}>`;
+ }
+ return "array";
+ };
+ if (e.not && "any" === P(e.not)) return "never";
+ const f = l()(s)
+ ? u()(s)
+ .call(s, (e) => ("array" === e ? p() : e))
+ .join(" | ")
+ : "array" === s
+ ? p()
+ : h()(
+ (t = [
+ "null",
+ "boolean",
+ "object",
+ "array",
+ "number",
+ "integer",
+ "string",
+ ])
+ ).call(t, s)
+ ? s
+ : (() => {
+ var t, n;
+ if (
+ Object.hasOwn(e, "prefixItems") ||
+ Object.hasOwn(e, "items") ||
+ Object.hasOwn(e, "contains")
+ )
+ return p();
+ if (
+ Object.hasOwn(e, "properties") ||
+ Object.hasOwn(e, "additionalProperties") ||
+ Object.hasOwn(e, "patternProperties")
+ )
+ return "object";
+ if (h()((t = ["int32", "int64"])).call(t, e.format))
+ return "integer";
+ if (h()((n = ["float", "double"])).call(n, e.format))
+ return "number";
+ if (
+ Object.hasOwn(e, "minimum") ||
+ Object.hasOwn(e, "maximum") ||
+ Object.hasOwn(e, "exclusiveMinimum") ||
+ Object.hasOwn(e, "exclusiveMaximum") ||
+ Object.hasOwn(e, "multipleOf")
+ )
+ return "number | integer";
+ if (
+ Object.hasOwn(e, "pattern") ||
+ Object.hasOwn(e, "format") ||
+ Object.hasOwn(e, "minLength") ||
+ Object.hasOwn(e, "maxLength")
+ )
+ return "string";
+ if (void 0 !== e.const) {
+ if (null === e.const) return "null";
+ if ("boolean" == typeof e.const) return "boolean";
+ if ("number" == typeof e.const)
+ return d()(e.const) ? "integer" : "number";
+ if ("string" == typeof e.const) return "string";
+ if (l()(e.const)) return "array";
+ if ("object" == typeof e.const) return "object";
+ }
+ return null;
+ })(),
+ m = (t, n) => {
+ if (l()(e[t])) {
+ var o;
+ return `(${u()((o = e[t]))
+ .call(o, (e) => P(e, r))
+ .join(n)})`;
+ }
+ return null;
+ },
+ y = m("oneOf", " | "),
+ v = m("anyOf", " | "),
+ b = m("allOf", " & "),
+ w = g()((n = [f, y, v, b]))
+ .call(n, Boolean)
+ .join(" | ");
+ return r.delete(e), w || "any";
+ },
+ N = (e) => "boolean" == typeof e,
+ I = (e, t) =>
+ null !== e && "object" == typeof e && Object.hasOwn(e, t),
+ T = (e) => {
+ const t = (0, k.useFn)();
+ return (
+ (null == e ? void 0 : e.$schema) ||
+ (null == e ? void 0 : e.$vocabulary) ||
+ (null == e ? void 0 : e.$id) ||
+ (null == e ? void 0 : e.$anchor) ||
+ (null == e ? void 0 : e.$dynamicAnchor) ||
+ (null == e ? void 0 : e.$ref) ||
+ (null == e ? void 0 : e.$dynamicRef) ||
+ (null == e ? void 0 : e.$defs) ||
+ (null == e ? void 0 : e.$comment) ||
+ (null == e ? void 0 : e.allOf) ||
+ (null == e ? void 0 : e.anyOf) ||
+ (null == e ? void 0 : e.oneOf) ||
+ t.hasKeyword(e, "not") ||
+ t.hasKeyword(e, "if") ||
+ t.hasKeyword(e, "then") ||
+ t.hasKeyword(e, "else") ||
+ (null == e ? void 0 : e.dependentSchemas) ||
+ (null == e ? void 0 : e.prefixItems) ||
+ t.hasKeyword(e, "items") ||
+ t.hasKeyword(e, "contains") ||
+ (null == e ? void 0 : e.properties) ||
+ (null == e ? void 0 : e.patternProperties) ||
+ t.hasKeyword(e, "additionalProperties") ||
+ t.hasKeyword(e, "propertyNames") ||
+ t.hasKeyword(e, "unevaluatedItems") ||
+ t.hasKeyword(e, "unevaluatedProperties") ||
+ (null == e ? void 0 : e.description) ||
+ (null == e ? void 0 : e.enum) ||
+ t.hasKeyword(e, "const") ||
+ t.hasKeyword(e, "contentSchema") ||
+ t.hasKeyword(e, "default")
+ );
+ },
+ R = (e) => {
+ var t;
+ return null === e ||
+ h()((t = ["number", "bigint", "boolean"])).call(t, typeof e)
+ ? String(e)
+ : l()(e)
+ ? `[${u()(e).call(e, R).join(", ")}]`
+ : v()(e);
+ },
+ M = (e, t, n) => {
+ const r = "number" == typeof t,
+ o = "number" == typeof n;
+ return r && o
+ ? t === n
+ ? `${t} ${e}`
+ : `[${t}, ${n}] ${e}`
+ : r
+ ? `>= ${t} ${e}`
+ : o
+ ? `<= ${n} ${e}`
+ : null;
+ },
+ D = (e) => {
+ const t = [],
+ n = ((e) => {
+ if ("number" != typeof (null == e ? void 0 : e.multipleOf))
+ return null;
+ if (e.multipleOf <= 0) return null;
+ if (1 === e.multipleOf) return null;
+ const { multipleOf: t } = e;
+ if (d()(t)) return `multiple of ${t}`;
+ const n = 10 ** t.toString().split(".")[1].length;
+ return `multiple of ${t * n}/${n}`;
+ })(e);
+ null !== n && t.push({ scope: "number", value: n });
+ const r = ((e) => {
+ const t = null == e ? void 0 : e.minimum,
+ n = null == e ? void 0 : e.maximum,
+ r = null == e ? void 0 : e.exclusiveMinimum,
+ o = null == e ? void 0 : e.exclusiveMaximum,
+ s = "number" == typeof t,
+ i = "number" == typeof n,
+ a = "number" == typeof r,
+ l = "number" == typeof o,
+ c = a && (!s || t < r),
+ u = l && (!i || n > o);
+ if ((s || a) && (i || l))
+ return `${c ? "(" : "["}${c ? r : t}, ${u ? o : n}${
+ u ? ")" : "]"
+ }`;
+ if (s || a) return `${c ? ">" : "≥"} ${c ? r : t}`;
+ if (i || l) return `${u ? "<" : "≤"} ${u ? o : n}`;
+ return null;
+ })(e);
+ null !== r && t.push({ scope: "number", value: r }),
+ null != e &&
+ e.format &&
+ t.push({ scope: "string", value: e.format });
+ const o = M(
+ "characters",
+ null == e ? void 0 : e.minLength,
+ null == e ? void 0 : e.maxLength
+ );
+ null !== o && t.push({ scope: "string", value: o }),
+ null != e &&
+ e.pattern &&
+ t.push({
+ scope: "string",
+ value: `matches ${null == e ? void 0 : e.pattern}`,
+ }),
+ null != e &&
+ e.contentMediaType &&
+ t.push({
+ scope: "string",
+ value: `media type: ${e.contentMediaType}`,
+ }),
+ null != e &&
+ e.contentEncoding &&
+ t.push({
+ scope: "string",
+ value: `encoding: ${e.contentEncoding}`,
+ });
+ const s = M(
+ null != e && e.hasUniqueItems ? "unique items" : "items",
+ null == e ? void 0 : e.minItems,
+ null == e ? void 0 : e.maxItems
+ );
+ null !== s && t.push({ scope: "array", value: s });
+ const i = M(
+ "contained items",
+ null == e ? void 0 : e.minContains,
+ null == e ? void 0 : e.maxContains
+ );
+ null !== i && t.push({ scope: "array", value: i });
+ const a = M(
+ "properties",
+ null == e ? void 0 : e.minProperties,
+ null == e ? void 0 : e.maxProperties
+ );
+ return null !== a && t.push({ scope: "object", value: a }), t;
+ },
+ F = (e, t) => {
+ var n;
+ return null != t && t.dependentRequired
+ ? w()(
+ x()((n = _()(t.dependentRequired))).call(
+ n,
+ (t, n) => {
+ let [r, o] = n;
+ return l()(o) && h()(o).call(o, e) ? (t.add(r), t) : t;
+ },
+ new (O())()
+ )
+ )
+ : [];
+ };
+ },
+ 65077: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { withJSONSchemaContext: () => H });
+ var r = n(67294),
+ o = n(22675),
+ s = n(69359),
+ i = n(7568),
+ a = n(93460),
+ l = n(64922),
+ c = n(51338),
+ u = n(72348),
+ p = n(27655),
+ h = n(36418),
+ f = n(4685),
+ d = n(46457),
+ m = n(8776),
+ g = n(13834),
+ y = n(65174),
+ v = n(40487),
+ b = n(67401),
+ w = n(67207),
+ E = n(26076),
+ x = n(93971),
+ S = n(89206),
+ _ = n(38993),
+ j = n(25472),
+ O = n(36746),
+ k = n(65253),
+ A = n(42338),
+ C = n(85828),
+ P = n(6907),
+ N = n(22285),
+ I = n(91805),
+ T = n(27308),
+ R = n(69956),
+ M = n(24539),
+ D = n(3484),
+ F = n(78137),
+ L = n(79446),
+ B = n(55148),
+ $ = n(26661),
+ q = n(16456),
+ U = n(15789),
+ z = n(47349),
+ V = n(36867),
+ W = n(12260),
+ J = n(69006),
+ K = n(33499);
+ const H = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const n = {
+ components: {
+ JSONSchema: o.default,
+ Keyword$schema: s.default,
+ Keyword$vocabulary: i.default,
+ Keyword$id: a.default,
+ Keyword$anchor: l.default,
+ Keyword$dynamicAnchor: c.default,
+ Keyword$ref: u.default,
+ Keyword$dynamicRef: p.default,
+ Keyword$defs: h.default,
+ Keyword$comment: f.default,
+ KeywordAllOf: d.default,
+ KeywordAnyOf: m.default,
+ KeywordOneOf: g.default,
+ KeywordNot: y.default,
+ KeywordIf: v.default,
+ KeywordThen: b.default,
+ KeywordElse: w.default,
+ KeywordDependentSchemas: E.default,
+ KeywordPrefixItems: x.default,
+ KeywordItems: S.default,
+ KeywordContains: _.default,
+ KeywordProperties: j.default,
+ KeywordPatternProperties: O.default,
+ KeywordAdditionalProperties: k.default,
+ KeywordPropertyNames: A.default,
+ KeywordUnevaluatedItems: C.default,
+ KeywordUnevaluatedProperties: P.default,
+ KeywordType: N.default,
+ KeywordEnum: I.default,
+ KeywordConst: T.default,
+ KeywordConstraint: R.default,
+ KeywordDependentRequired: M.default,
+ KeywordContentSchema: D.default,
+ KeywordTitle: F.default,
+ KeywordDescription: L.default,
+ KeywordDefault: B.default,
+ KeywordDeprecated: $.default,
+ KeywordReadOnly: q.default,
+ KeywordWriteOnly: U.default,
+ Accordion: z.default,
+ ExpandDeepButton: V.default,
+ ChevronRightIcon: W.default,
+ ...t.components,
+ },
+ config: {
+ default$schema:
+ "https://json-schema.org/draft/2020-12/schema",
+ defaultExpandedLevels: 0,
+ ...t.config,
+ },
+ fn: {
+ upperFirst: K.upperFirst,
+ getTitle: K.getTitle,
+ getType: K.getType,
+ isBooleanJSONSchema: K.isBooleanJSONSchema,
+ hasKeyword: K.hasKeyword,
+ isExpandable: K.isExpandable,
+ stringify: K.stringify,
+ stringifyConstraints: K.stringifyConstraints,
+ getDependentRequired: K.getDependentRequired,
+ ...t.fn,
+ },
+ },
+ H = (t) =>
+ r.createElement(
+ J.JSONSchemaContext.Provider,
+ { value: n },
+ r.createElement(e, t)
+ );
+ return (
+ (H.contexts = { JSONSchemaContext: J.JSONSchemaContext }),
+ (H.displayName = e.displayName),
+ H
+ );
+ };
+ },
+ 12603: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ useComponent: () => l,
+ useConfig: () => a,
+ useFn: () => c,
+ useIsCircular: () => m,
+ useIsEmbedded: () => p,
+ useIsExpanded: () => h,
+ useIsExpandedDeeply: () => f,
+ useLevel: () => u,
+ useRenderedSchemas: () => d,
+ });
+ var r = n(82737),
+ o = n.n(r),
+ s = n(67294),
+ i = n(69006);
+ const a = () => {
+ const { config: e } = (0, s.useContext)(i.JSONSchemaContext);
+ return e;
+ },
+ l = (e) => {
+ const { components: t } = (0, s.useContext)(i.JSONSchemaContext);
+ return t[e] || null;
+ },
+ c = function () {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : void 0;
+ const { fn: t } = (0, s.useContext)(i.JSONSchemaContext);
+ return void 0 !== e ? t[e] : t;
+ },
+ u = () => {
+ const e = (0, s.useContext)(i.JSONSchemaLevelContext);
+ return [e, e + 1];
+ },
+ p = () => {
+ const [e] = u();
+ return e > 0;
+ },
+ h = () => {
+ const [e] = u(),
+ { defaultExpandedLevels: t } = a();
+ return t - e > 0;
+ },
+ f = () => (0, s.useContext)(i.JSONSchemaDeepExpansionContext),
+ d = function () {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : void 0;
+ if (void 0 === e)
+ return (0, s.useContext)(i.JSONSchemaCyclesContext);
+ const t = (0, s.useContext)(i.JSONSchemaCyclesContext);
+ return new (o())([...t, e]);
+ },
+ m = (e) => d().has(e);
+ },
+ 97139: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => Z });
+ var r = n(22675),
+ o = n(69359),
+ s = n(7568),
+ i = n(93460),
+ a = n(64922),
+ l = n(51338),
+ c = n(72348),
+ u = n(27655),
+ p = n(36418),
+ h = n(4685),
+ f = n(46457),
+ d = n(8776),
+ m = n(13834),
+ g = n(65174),
+ y = n(40487),
+ v = n(67401),
+ b = n(67207),
+ w = n(26076),
+ E = n(93971),
+ x = n(89206),
+ S = n(38993),
+ _ = n(25472),
+ j = n(36746),
+ O = n(65253),
+ k = n(42338),
+ A = n(85828),
+ C = n(6907),
+ P = n(22285),
+ N = n(91805),
+ I = n(27308),
+ T = n(69956),
+ R = n(24539),
+ M = n(3484),
+ D = n(78137),
+ F = n(79446),
+ L = n(55148),
+ B = n(26661),
+ $ = n(16456),
+ q = n(15789),
+ U = n(47349),
+ z = n(36867),
+ V = n(12260),
+ W = n(33499),
+ J = n(78591),
+ K = n(69006),
+ H = n(12603),
+ G = n(65077);
+ const Z = () => ({
+ components: {
+ JSONSchema202012: r.default,
+ JSONSchema202012Keyword$schema: o.default,
+ JSONSchema202012Keyword$vocabulary: s.default,
+ JSONSchema202012Keyword$id: i.default,
+ JSONSchema202012Keyword$anchor: a.default,
+ JSONSchema202012Keyword$dynamicAnchor: l.default,
+ JSONSchema202012Keyword$ref: c.default,
+ JSONSchema202012Keyword$dynamicRef: u.default,
+ JSONSchema202012Keyword$defs: p.default,
+ JSONSchema202012Keyword$comment: h.default,
+ JSONSchema202012KeywordAllOf: f.default,
+ JSONSchema202012KeywordAnyOf: d.default,
+ JSONSchema202012KeywordOneOf: m.default,
+ JSONSchema202012KeywordNot: g.default,
+ JSONSchema202012KeywordIf: y.default,
+ JSONSchema202012KeywordThen: v.default,
+ JSONSchema202012KeywordElse: b.default,
+ JSONSchema202012KeywordDependentSchemas: w.default,
+ JSONSchema202012KeywordPrefixItems: E.default,
+ JSONSchema202012KeywordItems: x.default,
+ JSONSchema202012KeywordContains: S.default,
+ JSONSchema202012KeywordProperties: _.default,
+ JSONSchema202012KeywordPatternProperties: j.default,
+ JSONSchema202012KeywordAdditionalProperties: O.default,
+ JSONSchema202012KeywordPropertyNames: k.default,
+ JSONSchema202012KeywordUnevaluatedItems: A.default,
+ JSONSchema202012KeywordUnevaluatedProperties: C.default,
+ JSONSchema202012KeywordType: P.default,
+ JSONSchema202012KeywordEnum: N.default,
+ JSONSchema202012KeywordConst: I.default,
+ JSONSchema202012KeywordConstraint: T.default,
+ JSONSchema202012KeywordDependentRequired: R.default,
+ JSONSchema202012KeywordContentSchema: M.default,
+ JSONSchema202012KeywordTitle: D.default,
+ JSONSchema202012KeywordDescription: F.default,
+ JSONSchema202012KeywordDefault: L.default,
+ JSONSchema202012KeywordDeprecated: B.default,
+ JSONSchema202012KeywordReadOnly: $.default,
+ JSONSchema202012KeywordWriteOnly: q.default,
+ JSONSchema202012Accordion: U.default,
+ JSONSchema202012ExpandDeepButton: z.default,
+ JSONSchema202012ChevronRightIcon: V.default,
+ withJSONSchema202012Context: G.withJSONSchemaContext,
+ JSONSchema202012DeepExpansionContext: () =>
+ K.JSONSchemaDeepExpansionContext,
+ },
+ fn: {
+ upperFirst: W.upperFirst,
+ jsonSchema202012: {
+ isExpandable: W.isExpandable,
+ hasKeyword: W.hasKeyword,
+ useFn: H.useFn,
+ useConfig: H.useConfig,
+ useComponent: H.useComponent,
+ useIsExpandedDeeply: H.useIsExpandedDeeply,
+ sampleFromSchema: J.sampleFromSchema,
+ sampleFromSchemaGeneric: J.sampleFromSchemaGeneric,
+ sampleEncoderAPI: J.encoderAPI,
+ sampleFormatAPI: J.formatAPI,
+ sampleMediaTypeAPI: J.mediaTypeAPI,
+ createXMLExample: J.createXMLExample,
+ memoizedSampleFromSchema: J.memoizedSampleFromSchema,
+ memoizedCreateXMLExample: J.memoizedCreateXMLExample,
+ },
+ },
+ });
+ },
+ 16648: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ booleanSchema: () => i,
+ objectSchema: () => s,
+ schema: () => a,
+ });
+ var r = n(45697),
+ o = n.n(r);
+ const s = o().object,
+ i = o().bool,
+ a = o().oneOfType([s, i]);
+ },
+ 9507: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ const r = new (n(70674).default)(),
+ o = (e, t) =>
+ "function" == typeof t
+ ? r.register(e, t)
+ : null === t
+ ? r.unregister(e)
+ : r.get(e);
+ o.getDefaults = () => r.defaults;
+ const s = o;
+ },
+ 22906: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ const r = new (n(14215).default)(),
+ o = (e, t) =>
+ "function" == typeof t
+ ? r.register(e, t)
+ : null === t
+ ? r.unregister(e)
+ : r.get(e);
+ },
+ 90537: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ const r = new (n(43782).default)(),
+ o = (e, t) => {
+ if ("function" == typeof t) return r.register(e, t);
+ if (null === t) return r.unregister(e);
+ const n = e.split(";").at(0),
+ o = `${n.split("/").at(0)}/*`;
+ return r.get(e) || r.get(n) || r.get(o);
+ };
+ o.getDefaults = () => r.defaults;
+ const s = o;
+ },
+ 70674: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => w });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(47667),
+ i = n.n(s),
+ a = n(28886),
+ l = n.n(a),
+ c = n(14215),
+ u = n(41433),
+ p = n(58509),
+ h = n(44366),
+ f = n(65037),
+ d = n(5709),
+ m = n(54180),
+ g = n(91967);
+ function y(e, t, n) {
+ !(function (e, t) {
+ if (t.has(e))
+ throw new TypeError(
+ "Cannot initialize the same private elements twice on an object"
+ );
+ })(e, t),
+ t.set(e, n);
+ }
+ var v = new (l())();
+ class b extends c.default {
+ constructor() {
+ super(...arguments),
+ y(this, v, {
+ writable: !0,
+ value: {
+ "7bit": u.default,
+ "8bit": p.default,
+ binary: h.default,
+ "quoted-printable": f.default,
+ base16: d.default,
+ base32: m.default,
+ base64: g.default,
+ },
+ }),
+ o()(this, "data", { ...i()(this, v) });
+ }
+ get defaults() {
+ return { ...i()(this, v) };
+ }
+ }
+ const w = b;
+ },
+ 43782: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => v });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(47667),
+ i = n.n(s),
+ a = n(28886),
+ l = n.n(a),
+ c = n(14215),
+ u = n(65378),
+ p = n(46724),
+ h = n(54342),
+ f = n(92974),
+ d = n(2672);
+ function m(e, t, n) {
+ !(function (e, t) {
+ if (t.has(e))
+ throw new TypeError(
+ "Cannot initialize the same private elements twice on an object"
+ );
+ })(e, t),
+ t.set(e, n);
+ }
+ var g = new (l())();
+ class y extends c.default {
+ constructor() {
+ super(...arguments),
+ m(this, g, {
+ writable: !0,
+ value: {
+ ...u.default,
+ ...p.default,
+ ...h.default,
+ ...f.default,
+ ...d.default,
+ },
+ }),
+ o()(this, "data", { ...i()(this, g) });
+ }
+ get defaults() {
+ return { ...i()(this, g) };
+ }
+ }
+ const v = y;
+ },
+ 14215: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(61125),
+ o = n.n(r);
+ const s = class {
+ constructor() {
+ o()(this, "data", {});
+ }
+ register(e, t) {
+ this.data[e] = t;
+ }
+ unregister(e) {
+ void 0 === e ? (this.data = {}) : delete this.data[e];
+ }
+ get(e) {
+ return this.data[e];
+ }
+ };
+ },
+ 84539: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { ALL_TYPES: () => o, SCALAR_TYPES: () => r });
+ const r = ["number", "integer", "string", "boolean", "null"],
+ o = ["array", "object", ...r];
+ },
+ 13783: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { extractExample: () => a, hasExample: () => i });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(23084);
+ const i = (e) => {
+ if (!(0, s.isJSONSchemaObject)(e)) return !1;
+ const { examples: t, example: n, default: r } = e;
+ return (
+ !!(o()(t) && t.length >= 1) || void 0 !== r || void 0 !== n
+ );
+ },
+ a = (e) => {
+ if (!(0, s.isJSONSchemaObject)(e)) return null;
+ const { examples: t, example: n, default: r } = e;
+ return o()(t) && t.length >= 1
+ ? t.at(0)
+ : void 0 !== r
+ ? r
+ : void 0 !== n
+ ? n
+ : void 0;
+ };
+ },
+ 37078: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => v });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(39022),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(82737),
+ u = n.n(c),
+ p = n(28222),
+ h = n.n(p),
+ f = n(14418),
+ d = n.n(f),
+ m = n(90242),
+ g = n(23084);
+ const y = function (e, t) {
+ let n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ if ((0, g.isBooleanJSONSchema)(e) && !0 === e) return !0;
+ if ((0, g.isBooleanJSONSchema)(e) && !1 === e) return !1;
+ if ((0, g.isBooleanJSONSchema)(t) && !0 === t) return !0;
+ if ((0, g.isBooleanJSONSchema)(t) && !1 === t) return !1;
+ if (!(0, g.isJSONSchema)(e)) return t;
+ if (!(0, g.isJSONSchema)(t)) return e;
+ const r = { ...t, ...e };
+ if (
+ t.type &&
+ e.type &&
+ o()(t.type) &&
+ "string" == typeof t.type
+ ) {
+ var s;
+ const n = i()((s = (0, m.AF)(t.type))).call(s, e.type);
+ r.type = l()(new (u())(n));
+ }
+ if (
+ (o()(t.required) &&
+ o()(e.required) &&
+ (r.required = [...new (u())([...e.required, ...t.required])]),
+ t.properties && e.properties)
+ ) {
+ const o = new (u())([
+ ...h()(t.properties),
+ ...h()(e.properties),
+ ]);
+ r.properties = {};
+ for (const s of o) {
+ const o = t.properties[s] || {},
+ i = e.properties[s] || {};
+ var a;
+ if (
+ (o.readOnly && !n.includeReadOnly) ||
+ (o.writeOnly && !n.includeWriteOnly)
+ )
+ r.required = d()((a = r.required || [])).call(
+ a,
+ (e) => e !== s
+ );
+ else r.properties[s] = y(i, o, n);
+ }
+ }
+ return (
+ (0, g.isJSONSchema)(t.items) &&
+ (0, g.isJSONSchema)(e.items) &&
+ (r.items = y(e.items, t.items, n)),
+ (0, g.isJSONSchema)(t.contains) &&
+ (0, g.isJSONSchema)(e.contains) &&
+ (r.contains = y(e.contains, t.contains, n)),
+ (0, g.isJSONSchema)(t.contentSchema) &&
+ (0, g.isJSONSchema)(e.contentSchema) &&
+ (r.contentSchema = y(e.contentSchema, t.contentSchema, n)),
+ r
+ );
+ },
+ v = y;
+ },
+ 23084: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ isBooleanJSONSchema: () => s,
+ isJSONSchema: () => a,
+ isJSONSchemaObject: () => i,
+ });
+ var r = n(68630),
+ o = n.n(r);
+ const s = (e) => "boolean" == typeof e,
+ i = (e) => o()(e),
+ a = (e) => s(e) || i(e);
+ },
+ 35202: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ bytes: () => a,
+ integer: () => h,
+ number: () => p,
+ pick: () => c,
+ randexp: () => l,
+ string: () => u,
+ });
+ var r = n(92282),
+ o = n.n(r),
+ s = n(14419),
+ i = n.n(s);
+ const a = (e) => o()(e),
+ l = (e) => {
+ try {
+ return new (i())(e).gen();
+ } catch {
+ return "string";
+ }
+ },
+ c = (e) => e.at(0),
+ u = () => "string",
+ p = () => 0,
+ h = () => 0;
+ },
+ 96276: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, { foldType: () => _, getType: () => O, inferType: () => j });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(91086),
+ i = n.n(s),
+ a = n(58118),
+ l = n.n(a),
+ c = n(19030),
+ u = n.n(c),
+ p = n(28222),
+ h = n.n(p),
+ f = n(97606),
+ d = n.n(f),
+ m = n(14418),
+ g = n.n(m),
+ y = n(84539),
+ v = n(23084),
+ b = n(35202),
+ w = n(13783);
+ const E = {
+ array: [
+ "items",
+ "prefixItems",
+ "contains",
+ "maxContains",
+ "minContains",
+ "maxItems",
+ "minItems",
+ "uniqueItems",
+ "unevaluatedItems",
+ ],
+ object: [
+ "properties",
+ "additionalProperties",
+ "patternProperties",
+ "propertyNames",
+ "minProperties",
+ "maxProperties",
+ "required",
+ "dependentSchemas",
+ "dependentRequired",
+ "unevaluatedProperties",
+ ],
+ string: [
+ "pattern",
+ "format",
+ "minLength",
+ "maxLength",
+ "contentEncoding",
+ "contentMediaType",
+ "contentSchema",
+ ],
+ integer: [
+ "minimum",
+ "maximum",
+ "exclusiveMinimum",
+ "exclusiveMaximum",
+ "multipleOf",
+ ],
+ };
+ E.number = E.integer;
+ const x = "string",
+ S = (e) =>
+ void 0 === e
+ ? null
+ : null === e
+ ? "null"
+ : o()(e)
+ ? "array"
+ : i()(e)
+ ? "integer"
+ : typeof e,
+ _ = (e) => {
+ if (o()(e) && e.length >= 1) {
+ if (l()(e).call(e, "array")) return "array";
+ if (l()(e).call(e, "object")) return "object";
+ {
+ const t = (0, b.pick)(e);
+ if (l()(y.ALL_TYPES).call(y.ALL_TYPES, t)) return t;
+ }
+ }
+ return l()(y.ALL_TYPES).call(y.ALL_TYPES, e) ? e : null;
+ },
+ j = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : new (u())();
+ if (!(0, v.isJSONSchemaObject)(e)) return x;
+ if (t.has(e)) return x;
+ t.add(e);
+ let { type: n, const: r } = e;
+ if (((n = _(n)), "string" != typeof n)) {
+ const t = h()(E);
+ e: for (let r = 0; r < t.length; r += 1) {
+ const o = t[r],
+ s = E[o];
+ for (let t = 0; t < s.length; t += 1) {
+ const r = s[t];
+ if (Object.hasOwn(e, r)) {
+ n = o;
+ break e;
+ }
+ }
+ }
+ }
+ if ("string" != typeof n && void 0 !== r) {
+ const e = S(r);
+ n = "string" == typeof e ? e : n;
+ }
+ if ("string" != typeof n) {
+ const r = (n) => {
+ if (o()(e[n])) {
+ var r;
+ const o = d()((r = e[n])).call(r, (e) => j(e, t));
+ return _(o);
+ }
+ return null;
+ },
+ i = r("allOf"),
+ a = r("anyOf"),
+ l = r("oneOf"),
+ c = e.not ? j(e.not, t) : null;
+ var s;
+ if (i || a || l || c)
+ n = _(g()((s = [i, a, l, c])).call(s, Boolean));
+ }
+ if ("string" != typeof n && (0, w.hasExample)(e)) {
+ const t = (0, w.extractExample)(e),
+ r = S(t);
+ n = "string" == typeof r ? r : n;
+ }
+ return t.delete(e), n || x;
+ },
+ O = (e) => j(e);
+ },
+ 99346: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { fromJSONBooleanSchema: () => o, typeCast: () => s });
+ var r = n(23084);
+ const o = (e) => (!1 === e ? { not: {} } : {}),
+ s = (e) =>
+ (0, r.isBooleanJSONSchema)(e)
+ ? o(e)
+ : (0, r.isJSONSchemaObject)(e)
+ ? e
+ : {};
+ },
+ 41433: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString("ascii");
+ },
+ 58509: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString("utf8");
+ },
+ 5709: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString("hex");
+ },
+ 54180: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => {
+ const t = r.from(e).toString("utf8"),
+ n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
+ let o = 0,
+ s = "",
+ i = 0,
+ a = 0;
+ for (let e = 0; e < t.length; e++)
+ for (i = (i << 8) | t.charCodeAt(e), a += 8; a >= 5; )
+ (s += n.charAt((i >>> (a - 5)) & 31)), (a -= 5);
+ a > 0 &&
+ ((s += n.charAt((i << (5 - a)) & 31)),
+ (o = (8 - ((8 * t.length) % 5)) % 5));
+ for (let e = 0; e < o; e++) s += "=";
+ return s;
+ };
+ },
+ 91967: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString("base64");
+ },
+ 44366: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString("binary");
+ },
+ 65037: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(24278),
+ o = n.n(r);
+ const s = (e) => {
+ let t = "";
+ for (let s = 0; s < e.length; s++) {
+ const i = e.charCodeAt(s);
+ if (61 === i) t += "=3D";
+ else if (
+ (i >= 33 && i <= 60) ||
+ (i >= 62 && i <= 126) ||
+ 9 === i ||
+ 32 === i
+ )
+ t += e.charAt(s);
+ else if (13 === i || 10 === i) t += "\r\n";
+ else if (i > 126) {
+ const r = unescape(encodeURIComponent(e.charAt(s)));
+ for (let e = 0; e < r.length; e++) {
+ var n;
+ t +=
+ "=" +
+ o()((n = "0" + r.charCodeAt(e).toString(16)))
+ .call(n, -2)
+ .toUpperCase();
+ }
+ } else {
+ var r;
+ t +=
+ "=" +
+ o()((r = "0" + i.toString(16)))
+ .call(r, -2)
+ .toUpperCase();
+ }
+ }
+ return t;
+ };
+ },
+ 74045: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString();
+ },
+ 81456: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString().substring(0, 10);
+ },
+ 560: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 0.1;
+ },
+ 64299: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "P3D";
+ },
+ 3981: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "user@example.com";
+ },
+ 51890: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 0.1;
+ },
+ 69375: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "example.com";
+ },
+ 94518: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "실례@example.com";
+ },
+ 70273: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "실례.com";
+ },
+ 57864: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => (2 ** 30) >>> 0;
+ },
+ 21726: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 2 ** 53 - 1;
+ },
+ 28793: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "198.51.100.42";
+ },
+ 98269: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "2001:0db8:5b96:0000:0000:426f:8e17:642a";
+ },
+ 45693: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "path/실례.html";
+ },
+ 13080: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "https://실례.com/";
+ },
+ 37856: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "/a/b/c";
+ },
+ 2672: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(57740),
+ o = n.n(r),
+ s = n(35202);
+ const i = {
+ "application/json": () => '{"key":"value"}',
+ "application/ld+json": () => '{"name": "John Doe"}',
+ "application/x-httpd-php": () =>
+ "Hello World!
'; ?>",
+ "application/rtf": () =>
+ o()`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,
+ "application/x-sh": () => 'echo "Hello World!"',
+ "application/xhtml+xml": () => "content
",
+ "application/*": () => (0, s.bytes)(25).toString("binary"),
+ };
+ },
+ 54342: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { "audio/*": () => (0, r.bytes)(25).toString("binary") };
+ },
+ 46724: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { "image/*": () => (0, r.bytes)(25).toString("binary") };
+ },
+ 65378: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = {
+ "text/plain": () => "string",
+ "text/css": () => ".selector { border: 1px solid red }",
+ "text/csv": () => "value1,value2,value3",
+ "text/html": () => "content
",
+ "text/calendar": () => "BEGIN:VCALENDAR",
+ "text/javascript": () => "console.dir('Hello world!');",
+ "text/xml": () => 'John Doe ',
+ "text/*": () => "string",
+ };
+ },
+ 92974: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { "video/*": () => (0, r.bytes)(25).toString("binary") };
+ },
+ 93393: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "********";
+ },
+ 4335: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "^[a-z]+$";
+ },
+ 80375: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "1/0";
+ },
+ 65243: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString().substring(11);
+ },
+ 94692: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "path/index.html";
+ },
+ 83829: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "https://example.com/dictionary/{term:1}/{term}";
+ },
+ 52978: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "https://example.com/";
+ },
+ 38859: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => "3fa85f64-5717-4562-b3fc-2c963f66afa6";
+ },
+ 78591: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => r.createXMLExample,
+ encoderAPI: () => o.default,
+ formatAPI: () => s.default,
+ mediaTypeAPI: () => i.default,
+ memoizedCreateXMLExample: () => r.memoizedCreateXMLExample,
+ memoizedSampleFromSchema: () => r.memoizedSampleFromSchema,
+ sampleFromSchema: () => r.sampleFromSchema,
+ sampleFromSchemaGeneric: () => r.sampleFromSchemaGeneric,
+ });
+ var r = n(94277),
+ o = n(9507),
+ s = n(22906),
+ i = n(90537);
+ },
+ 94277: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => M,
+ memoizedCreateXMLExample: () => L,
+ memoizedSampleFromSchema: () => B,
+ sampleFromSchema: () => D,
+ sampleFromSchemaGeneric: () => R,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(91086),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a),
+ c = n(51679),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(39022),
+ d = n.n(f),
+ m = n(97606),
+ g = n.n(m),
+ y = n(35627),
+ v = n.n(y),
+ b = n(53479),
+ w = n.n(b),
+ E = n(41609),
+ x = n.n(E),
+ S = n(68630),
+ _ = n.n(S),
+ j = n(90242),
+ O = n(60314),
+ k = n(63273),
+ A = n(96276),
+ C = n(99346),
+ P = n(13783),
+ N = n(35202),
+ I = n(37078),
+ T = n(23084);
+ const R = function (e) {
+ var t;
+ let n =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {},
+ r =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : void 0,
+ s =
+ arguments.length > 3 &&
+ void 0 !== arguments[3] &&
+ arguments[3];
+ "function" ==
+ typeof (null === (t = e) || void 0 === t ? void 0 : t.toJS) &&
+ (e = e.toJS()),
+ (e = (0, C.typeCast)(e));
+ let a = void 0 !== r || (0, P.hasExample)(e);
+ const c = !a && o()(e.oneOf) && e.oneOf.length > 0,
+ p = !a && o()(e.anyOf) && e.anyOf.length > 0;
+ if (!a && (c || p)) {
+ const t = (0, C.typeCast)(
+ c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf)
+ );
+ !(e = (0, I.default)(e, t, n)).xml && t.xml && (e.xml = t.xml),
+ (0, P.hasExample)(e) && (0, P.hasExample)(t) && (a = !0);
+ }
+ const f = {};
+ let {
+ xml: m,
+ properties: y,
+ additionalProperties: v,
+ items: b,
+ contains: w,
+ } = e || {},
+ E = (0, A.getType)(e),
+ { includeReadOnly: S, includeWriteOnly: O } = n;
+ m = m || {};
+ let M,
+ { name: D, prefix: F, namespace: L } = m,
+ B = {};
+ if (
+ (Object.hasOwn(e, "type") || (e.type = E),
+ s && ((D = D || "notagname"), (M = (F ? `${F}:` : "") + D), L))
+ ) {
+ f[F ? `xmlns:${F}` : "xmlns"] = L;
+ }
+ s && (B[M] = []);
+ const $ = (0, j.mz)(y);
+ let q,
+ U = 0;
+ const z = () =>
+ i()(e.maxProperties) &&
+ e.maxProperties > 0 &&
+ U >= e.maxProperties,
+ V = (t) =>
+ !(i()(e.maxProperties) && e.maxProperties > 0) ||
+ (!z() &&
+ (!((t) => {
+ var n;
+ return (
+ !o()(e.required) ||
+ 0 === e.required.length ||
+ !h()((n = e.required)).call(n, t)
+ );
+ })(t) ||
+ e.maxProperties -
+ U -
+ (() => {
+ if (!o()(e.required) || 0 === e.required.length)
+ return 0;
+ let t = 0;
+ var n, r;
+ return (
+ s
+ ? l()((n = e.required)).call(
+ n,
+ (e) => (t += void 0 === B[e] ? 0 : 1)
+ )
+ : l()((r = e.required)).call(r, (e) => {
+ var n;
+ t +=
+ void 0 ===
+ (null === (n = B[M]) || void 0 === n
+ ? void 0
+ : u()(n).call(n, (t) => void 0 !== t[e]))
+ ? 0
+ : 1;
+ }),
+ e.required.length - t
+ );
+ })() >
+ 0));
+ if (
+ ((q = s
+ ? function (t) {
+ let r =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : void 0;
+ if (e && $[t]) {
+ if ((($[t].xml = $[t].xml || {}), $[t].xml.attribute)) {
+ const e = o()($[t].enum)
+ ? (0, N.pick)($[t].enum)
+ : void 0;
+ if ((0, P.hasExample)($[t]))
+ f[$[t].xml.name || t] = (0, P.extractExample)($[t]);
+ else if (void 0 !== e) f[$[t].xml.name || t] = e;
+ else {
+ const e = (0, C.typeCast)($[t]),
+ n = (0, A.getType)(e),
+ r = $[t].xml.name || t;
+ f[r] = k.default[n](e);
+ }
+ return;
+ }
+ $[t].xml.name = $[t].xml.name || t;
+ } else $[t] || !1 === v || ($[t] = { xml: { name: t } });
+ let i = R($[t], n, r, s);
+ var a;
+ V(t) &&
+ (U++,
+ o()(i)
+ ? (B[M] = d()((a = B[M])).call(a, i))
+ : B[M].push(i));
+ }
+ : (t, r) => {
+ var o;
+ if (V(t)) {
+ if (
+ _()(
+ null === (o = e.discriminator) || void 0 === o
+ ? void 0
+ : o.mapping
+ ) &&
+ e.discriminator.propertyName === t &&
+ "string" == typeof e.$$ref
+ ) {
+ for (const n in e.discriminator.mapping)
+ if (
+ -1 !== e.$$ref.search(e.discriminator.mapping[n])
+ ) {
+ B[t] = n;
+ break;
+ }
+ } else B[t] = R($[t], n, r, s);
+ U++;
+ }
+ }),
+ a)
+ ) {
+ let t;
+ if (((t = void 0 !== r ? r : (0, P.extractExample)(e)), !s)) {
+ if ("number" == typeof t && "string" === E) return `${t}`;
+ if ("string" != typeof t || "string" === E) return t;
+ try {
+ return JSON.parse(t);
+ } catch {
+ return t;
+ }
+ }
+ if ("array" === E) {
+ if (!o()(t)) {
+ if ("string" == typeof t) return t;
+ t = [t];
+ }
+ let r = [];
+ return (
+ (0, T.isJSONSchemaObject)(b) &&
+ ((b.xml = b.xml || m || {}),
+ (b.xml.name = b.xml.name || m.name),
+ (r = g()(t).call(t, (e) => R(b, n, e, s)))),
+ (0, T.isJSONSchemaObject)(w) &&
+ ((w.xml = w.xml || m || {}),
+ (w.xml.name = w.xml.name || m.name),
+ (r = [R(w, n, void 0, s), ...r])),
+ (r = k.default.array(e, { sample: r })),
+ m.wrapped
+ ? ((B[M] = r), x()(f) || B[M].push({ _attr: f }))
+ : (B = r),
+ B
+ );
+ }
+ if ("object" === E) {
+ if ("string" == typeof t) return t;
+ for (const e in t) {
+ var W, J, K, H;
+ Object.hasOwn(t, e) &&
+ ((null !== (W = $[e]) &&
+ void 0 !== W &&
+ W.readOnly &&
+ !S) ||
+ (null !== (J = $[e]) &&
+ void 0 !== J &&
+ J.writeOnly &&
+ !O) ||
+ (null !== (K = $[e]) &&
+ void 0 !== K &&
+ null !== (H = K.xml) &&
+ void 0 !== H &&
+ H.attribute
+ ? (f[$[e].xml.name || e] = t[e])
+ : q(e, t[e])));
+ }
+ return x()(f) || B[M].push({ _attr: f }), B;
+ }
+ return (B[M] = x()(f) ? t : [{ _attr: f }, t]), B;
+ }
+ if ("array" === E) {
+ let t = [];
+ var G, Z;
+ if ((0, T.isJSONSchemaObject)(w))
+ if (
+ (s &&
+ ((w.xml = w.xml || e.xml || {}),
+ (w.xml.name = w.xml.name || m.name)),
+ o()(w.anyOf))
+ )
+ t.push(
+ ...g()((G = w.anyOf)).call(G, (e) =>
+ R((0, I.default)(e, w, n), n, void 0, s)
+ )
+ );
+ else if (o()(w.oneOf)) {
+ var Y;
+ t.push(
+ ...g()((Y = w.oneOf)).call(Y, (e) =>
+ R((0, I.default)(e, w, n), n, void 0, s)
+ )
+ );
+ } else {
+ if (!(!s || (s && m.wrapped))) return R(w, n, void 0, s);
+ t.push(R(w, n, void 0, s));
+ }
+ if ((0, T.isJSONSchemaObject)(b))
+ if (
+ (s &&
+ ((b.xml = b.xml || e.xml || {}),
+ (b.xml.name = b.xml.name || m.name)),
+ o()(b.anyOf))
+ )
+ t.push(
+ ...g()((Z = b.anyOf)).call(Z, (e) =>
+ R((0, I.default)(e, b, n), n, void 0, s)
+ )
+ );
+ else if (o()(b.oneOf)) {
+ var X;
+ t.push(
+ ...g()((X = b.oneOf)).call(X, (e) =>
+ R((0, I.default)(e, b, n), n, void 0, s)
+ )
+ );
+ } else {
+ if (!(!s || (s && m.wrapped))) return R(b, n, void 0, s);
+ t.push(R(b, n, void 0, s));
+ }
+ return (
+ (t = k.default.array(e, { sample: t })),
+ s && m.wrapped
+ ? ((B[M] = t), x()(f) || B[M].push({ _attr: f }), B)
+ : t
+ );
+ }
+ if ("object" === E) {
+ for (let e in $) {
+ var Q, ee, te;
+ Object.hasOwn($, e) &&
+ ((null !== (Q = $[e]) && void 0 !== Q && Q.deprecated) ||
+ (null !== (ee = $[e]) &&
+ void 0 !== ee &&
+ ee.readOnly &&
+ !S) ||
+ (null !== (te = $[e]) &&
+ void 0 !== te &&
+ te.writeOnly &&
+ !O) ||
+ q(e));
+ }
+ if ((s && f && B[M].push({ _attr: f }), z())) return B;
+ if ((0, T.isBooleanJSONSchema)(v) && v)
+ s
+ ? B[M].push({ additionalProp: "Anything can be here" })
+ : (B.additionalProp1 = {}),
+ U++;
+ else if ((0, T.isJSONSchemaObject)(v)) {
+ var ne, re;
+ const t = v,
+ r = R(t, n, void 0, s);
+ if (
+ s &&
+ "string" ==
+ typeof (null == t ||
+ null === (ne = t.xml) ||
+ void 0 === ne
+ ? void 0
+ : ne.name) &&
+ "notagname" !==
+ (null == t || null === (re = t.xml) || void 0 === re
+ ? void 0
+ : re.name)
+ )
+ B[M].push(r);
+ else {
+ const t =
+ i()(e.minProperties) &&
+ e.minProperties > 0 &&
+ U < e.minProperties
+ ? e.minProperties - U
+ : 3;
+ for (let e = 1; e <= t; e++) {
+ if (z()) return B;
+ if (s) {
+ const t = {};
+ (t["additionalProp" + e] = r.notagname), B[M].push(t);
+ } else B["additionalProp" + e] = r;
+ U++;
+ }
+ }
+ }
+ return B;
+ }
+ let oe;
+ if (void 0 !== e.const) oe = e.const;
+ else if (e && o()(e.enum)) oe = (0, N.pick)((0, j.AF)(e.enum));
+ else {
+ const t = (0, T.isJSONSchemaObject)(e.contentSchema)
+ ? R(e.contentSchema, n, void 0, s)
+ : void 0;
+ oe = k.default[E](e, { sample: t });
+ }
+ return s ? ((B[M] = x()(f) ? oe : [{ _attr: f }, oe]), B) : oe;
+ },
+ M = (e, t, n) => {
+ const r = R(e, t, n, !0);
+ if (r)
+ return "string" == typeof r
+ ? r
+ : w()(r, { declaration: !0, indent: "\t" });
+ },
+ D = (e, t, n) => R(e, t, n, !1),
+ F = (e, t, n) => [e, v()(t), v()(n)],
+ L = (0, O.Z)(M, F),
+ B = (0, O.Z)(D, F);
+ },
+ 83982: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { applyArrayConstraints: () => p, default: () => h });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(82737),
+ u = n.n(c);
+ const p = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const { minItems: n, maxItems: r, uniqueItems: s } = t,
+ { contains: a, minContains: c, maxContains: p } = t;
+ let h = [...e];
+ if (null != a && "object" == typeof a) {
+ if (o()(c) && c > 1) {
+ const e = h.at(0);
+ for (let t = 1; t < c; t += 1) h.unshift(e);
+ }
+ o()(p);
+ }
+ if (
+ (o()(r) && r > 0 && (h = i()(e).call(e, 0, r)), o()(n) && n > 0)
+ )
+ for (let e = 0; h.length < n; e += 1) h.push(h[e % h.length]);
+ return !0 === s && (h = l()(new (u())(h))), h;
+ },
+ h = (e, t) => {
+ let { sample: n } = t;
+ return p(n, e);
+ };
+ },
+ 34108: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) => "boolean" != typeof e.default || e.default;
+ },
+ 63273: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(83982),
+ o = n(46852),
+ s = n(74522),
+ i = n(83455),
+ a = n(58864),
+ l = n(34108),
+ c = n(90853);
+ const u = {
+ array: r.default,
+ object: o.default,
+ string: s.default,
+ number: i.default,
+ integer: a.default,
+ boolean: l.default,
+ null: c.default,
+ },
+ p = new Proxy(u, {
+ get: (e, t) =>
+ "string" == typeof t && Object.hasOwn(e, t)
+ ? e[t]
+ : () => `Unknown Type: ${t}`,
+ });
+ },
+ 58864: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(35202),
+ o = n(22906),
+ s = n(57864),
+ i = n(21726);
+ const a = (e) => {
+ const { format: t } = e;
+ return "string" == typeof t
+ ? ((e) => {
+ const { format: t } = e,
+ n = (0, o.default)(t);
+ if ("function" == typeof n) return n(e);
+ switch (t) {
+ case "int32":
+ return (0, s.default)();
+ case "int64":
+ return (0, i.default)();
+ }
+ return (0, r.integer)();
+ })(e)
+ : (0, r.integer)();
+ };
+ },
+ 90853: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => null;
+ },
+ 83455: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(44081),
+ i = n.n(s),
+ a = n(35202),
+ l = n(22906),
+ c = n(51890),
+ u = n(560);
+ const p = (e) => {
+ const { format: t } = e;
+ let n;
+ return (
+ (n =
+ "string" == typeof t
+ ? ((e) => {
+ const { format: t } = e,
+ n = (0, l.default)(t);
+ if ("function" == typeof n) return n(e);
+ switch (t) {
+ case "float":
+ return (0, c.default)();
+ case "double":
+ return (0, u.default)();
+ }
+ return (0, a.number)();
+ })(e)
+ : (0, a.number)()),
+ (function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const {
+ minimum: n,
+ maximum: r,
+ exclusiveMinimum: s,
+ exclusiveMaximum: a,
+ } = t,
+ { multipleOf: l } = t,
+ c = o()(e) ? 1 : i();
+ let u = "number" == typeof n ? n : null,
+ p = "number" == typeof r ? r : null,
+ h = e;
+ if (
+ ("number" == typeof s &&
+ (u = null !== u ? Math.max(u, s + c) : s + c),
+ "number" == typeof a &&
+ (p = null !== p ? Math.min(p, a - c) : a - c),
+ (h = (u > p && e) || u || p || h),
+ "number" == typeof l && l > 0)
+ ) {
+ const e = h % l;
+ h = 0 === e ? h : h + l - e;
+ }
+ return h;
+ })(n, e)
+ );
+ };
+ },
+ 46852: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => {
+ throw new Error("Not implemented");
+ };
+ },
+ 74522: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => L });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(35627),
+ u = n.n(c),
+ p = n(6557),
+ h = n.n(p),
+ f = n(35202),
+ d = n(23084),
+ m = n(3981),
+ g = n(94518),
+ y = n(69375),
+ v = n(70273),
+ b = n(28793),
+ w = n(98269),
+ E = n(52978),
+ x = n(94692),
+ S = n(13080),
+ _ = n(45693),
+ j = n(38859),
+ O = n(83829),
+ k = n(37856),
+ A = n(80375),
+ C = n(74045),
+ P = n(81456),
+ N = n(65243),
+ I = n(64299),
+ T = n(93393),
+ R = n(4335),
+ M = n(22906),
+ D = n(9507),
+ F = n(90537);
+ const L = function (e) {
+ let { sample: t } =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const {
+ contentEncoding: n,
+ contentMediaType: r,
+ contentSchema: s,
+ } = e,
+ { pattern: a, format: c } = e,
+ p = (0, D.default)(n) || h();
+ let L;
+ if ("string" == typeof a) L = (0, f.randexp)(a);
+ else if ("string" == typeof c)
+ L = ((e) => {
+ const { format: t } = e,
+ n = (0, M.default)(t);
+ if ("function" == typeof n) return n(e);
+ switch (t) {
+ case "email":
+ return (0, m.default)();
+ case "idn-email":
+ return (0, g.default)();
+ case "hostname":
+ return (0, y.default)();
+ case "idn-hostname":
+ return (0, v.default)();
+ case "ipv4":
+ return (0, b.default)();
+ case "ipv6":
+ return (0, w.default)();
+ case "uri":
+ return (0, E.default)();
+ case "uri-reference":
+ return (0, x.default)();
+ case "iri":
+ return (0, S.default)();
+ case "iri-reference":
+ return (0, _.default)();
+ case "uuid":
+ return (0, j.default)();
+ case "uri-template":
+ return (0, O.default)();
+ case "json-pointer":
+ return (0, k.default)();
+ case "relative-json-pointer":
+ return (0, A.default)();
+ case "date-time":
+ return (0, C.default)();
+ case "date":
+ return (0, P.default)();
+ case "time":
+ return (0, N.default)();
+ case "duration":
+ return (0, I.default)();
+ case "password":
+ return (0, T.default)();
+ case "regex":
+ return (0, R.default)();
+ }
+ return (0, f.string)();
+ })(e);
+ else if (
+ (0, d.isJSONSchema)(s) &&
+ "string" == typeof r &&
+ void 0 !== t
+ )
+ L = l()(t) || "object" == typeof t ? u()(t) : String(t);
+ else if ("string" == typeof r) {
+ const t = (0, F.default)(r);
+ "function" == typeof t && (L = t(e));
+ } else L = (0, f.string)();
+ return p(
+ (function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const { maxLength: n, minLength: r } = t;
+ let s = e;
+ if (
+ (o()(n) && n > 0 && (s = i()(s).call(s, 0, n)),
+ o()(r) && r > 0)
+ ) {
+ let e = 0;
+ for (; s.length < r; ) s += s[e++ % s.length];
+ }
+ return s;
+ })(L, e)
+ );
+ };
+ },
+ 25474: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ SHOW: () => a,
+ UPDATE_FILTER: () => s,
+ UPDATE_LAYOUT: () => o,
+ UPDATE_MODE: () => i,
+ changeMode: () => p,
+ show: () => u,
+ updateFilter: () => c,
+ updateLayout: () => l,
+ });
+ var r = n(90242);
+ const o = "layout_update_layout",
+ s = "layout_update_filter",
+ i = "layout_update_mode",
+ a = "layout_show";
+ function l(e) {
+ return { type: o, payload: e };
+ }
+ function c(e) {
+ return { type: s, payload: e };
+ }
+ function u(e) {
+ let t =
+ !(arguments.length > 1 && void 0 !== arguments[1]) ||
+ arguments[1];
+ return (
+ (e = (0, r.AF)(e)), { type: a, payload: { thing: e, shown: t } }
+ );
+ }
+ function p(e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "";
+ return (
+ (e = (0, r.AF)(e)), { type: i, payload: { thing: e, mode: t } }
+ );
+ }
+ },
+ 26821: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(5672),
+ o = n(25474),
+ s = n(4400),
+ i = n(28989);
+ function a() {
+ return {
+ statePlugins: {
+ layout: { reducers: r.default, actions: o, selectors: s },
+ spec: { wrapSelectors: i },
+ },
+ };
+ }
+ },
+ 5672: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(39022),
+ o = n.n(r),
+ s = n(43393),
+ i = n(25474);
+ const a = {
+ [i.UPDATE_LAYOUT]: (e, t) => e.set("layout", t.payload),
+ [i.UPDATE_FILTER]: (e, t) => e.set("filter", t.payload),
+ [i.SHOW]: (e, t) => {
+ const n = t.payload.shown,
+ r = (0, s.fromJS)(t.payload.thing);
+ return e.update("shown", (0, s.fromJS)({}), (e) => e.set(r, n));
+ },
+ [i.UPDATE_MODE]: (e, t) => {
+ var n;
+ let r = t.payload.thing,
+ s = t.payload.mode;
+ return e.setIn(o()((n = ["modes"])).call(n, r), (s || "") + "");
+ },
+ };
+ },
+ 4400: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ current: () => i,
+ currentFilter: () => a,
+ isShown: () => l,
+ showSummary: () => u,
+ whatMode: () => c,
+ });
+ var r = n(20573),
+ o = n(90242),
+ s = n(43393);
+ const i = (e) => e.get("layout"),
+ a = (e) => e.get("filter"),
+ l = (e, t, n) => (
+ (t = (0, o.AF)(t)),
+ e.get("shown", (0, s.fromJS)({})).get((0, s.fromJS)(t), n)
+ ),
+ c = function (e, t) {
+ let n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : "";
+ return (t = (0, o.AF)(t)), e.getIn(["modes", ...t], n);
+ },
+ u = (0, r.P1)(
+ (e) => e,
+ (e) => !l(e, "editor")
+ );
+ },
+ 28989: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { taggedOperations: () => s });
+ var r = n(24278),
+ o = n.n(r);
+ const s = (e, t) =>
+ function (n) {
+ for (
+ var r = arguments.length,
+ s = new Array(r > 1 ? r - 1 : 0),
+ i = 1;
+ i < r;
+ i++
+ )
+ s[i - 1] = arguments[i];
+ let a = e(n, ...s);
+ const {
+ fn: l,
+ layoutSelectors: c,
+ getConfigs: u,
+ } = t.getSystem(),
+ p = u(),
+ { maxDisplayedTags: h } = p;
+ let f = c.currentFilter();
+ return (
+ f &&
+ !0 !== f &&
+ "true" !== f &&
+ "false" !== f &&
+ (a = l.opsFilter(a, f)),
+ h && !isNaN(h) && h >= 0 && (a = o()(a).call(a, 0, h)),
+ a
+ );
+ };
+ },
+ 9150: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(11189),
+ o = n.n(r);
+ function s(e) {
+ let { configs: t } = e;
+ const n = { debug: 0, info: 1, log: 2, warn: 3, error: 4 },
+ r = (e) => n[e] || -1;
+ let { logLevel: s } = t,
+ i = r(s);
+ function a(e) {
+ for (
+ var t = arguments.length,
+ n = new Array(t > 1 ? t - 1 : 0),
+ o = 1;
+ o < t;
+ o++
+ )
+ n[o - 1] = arguments[o];
+ r(e) >= i && console[e](...n);
+ }
+ return (
+ (a.warn = o()(a).call(a, null, "warn")),
+ (a.error = o()(a).call(a, null, "error")),
+ (a.info = o()(a).call(a, null, "info")),
+ (a.debug = o()(a).call(a, null, "debug")),
+ { rootInjects: { log: a } }
+ );
+ }
+ },
+ 67002: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ CLEAR_REQUEST_BODY_VALIDATE_ERROR: () => h,
+ CLEAR_REQUEST_BODY_VALUE: () => f,
+ SET_REQUEST_BODY_VALIDATE_ERROR: () => p,
+ UPDATE_ACTIVE_EXAMPLES_MEMBER: () => a,
+ UPDATE_REQUEST_BODY_INCLUSION: () => i,
+ UPDATE_REQUEST_BODY_VALUE: () => o,
+ UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG: () => s,
+ UPDATE_REQUEST_CONTENT_TYPE: () => l,
+ UPDATE_RESPONSE_CONTENT_TYPE: () => c,
+ UPDATE_SELECTED_SERVER: () => r,
+ UPDATE_SERVER_VARIABLE_VALUE: () => u,
+ clearRequestBodyValidateError: () => S,
+ clearRequestBodyValue: () => j,
+ initRequestBodyValidateError: () => _,
+ setActiveExamplesMember: () => v,
+ setRequestBodyInclusion: () => y,
+ setRequestBodyValidateError: () => x,
+ setRequestBodyValue: () => m,
+ setRequestContentType: () => b,
+ setResponseContentType: () => w,
+ setRetainRequestBodyValueFlag: () => g,
+ setSelectedServer: () => d,
+ setServerVariableValue: () => E,
+ });
+ const r = "oas3_set_servers",
+ o = "oas3_set_request_body_value",
+ s = "oas3_set_request_body_retain_flag",
+ i = "oas3_set_request_body_inclusion",
+ a = "oas3_set_active_examples_member",
+ l = "oas3_set_request_content_type",
+ c = "oas3_set_response_content_type",
+ u = "oas3_set_server_variable_value",
+ p = "oas3_set_request_body_validate_error",
+ h = "oas3_clear_request_body_validate_error",
+ f = "oas3_clear_request_body_value";
+ function d(e, t) {
+ return { type: r, payload: { selectedServerUrl: e, namespace: t } };
+ }
+ function m(e) {
+ let { value: t, pathMethod: n } = e;
+ return { type: o, payload: { value: t, pathMethod: n } };
+ }
+ const g = (e) => {
+ let { value: t, pathMethod: n } = e;
+ return { type: s, payload: { value: t, pathMethod: n } };
+ };
+ function y(e) {
+ let { value: t, pathMethod: n, name: r } = e;
+ return { type: i, payload: { value: t, pathMethod: n, name: r } };
+ }
+ function v(e) {
+ let { name: t, pathMethod: n, contextType: r, contextName: o } = e;
+ return {
+ type: a,
+ payload: {
+ name: t,
+ pathMethod: n,
+ contextType: r,
+ contextName: o,
+ },
+ };
+ }
+ function b(e) {
+ let { value: t, pathMethod: n } = e;
+ return { type: l, payload: { value: t, pathMethod: n } };
+ }
+ function w(e) {
+ let { value: t, path: n, method: r } = e;
+ return { type: c, payload: { value: t, path: n, method: r } };
+ }
+ function E(e) {
+ let { server: t, namespace: n, key: r, val: o } = e;
+ return {
+ type: u,
+ payload: { server: t, namespace: n, key: r, val: o },
+ };
+ }
+ const x = (e) => {
+ let { path: t, method: n, validationErrors: r } = e;
+ return {
+ type: p,
+ payload: { path: t, method: n, validationErrors: r },
+ };
+ },
+ S = (e) => {
+ let { path: t, method: n } = e;
+ return { type: h, payload: { path: t, method: n } };
+ },
+ _ = (e) => {
+ let { pathMethod: t } = e;
+ return { type: h, payload: { path: t[0], method: t[1] } };
+ },
+ j = (e) => {
+ let { pathMethod: t } = e;
+ return { type: f, payload: { pathMethod: t } };
+ };
+ },
+ 73723: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { definitionsToAuthorize: () => p });
+ var r = n(86),
+ o = n.n(r),
+ s = n(14418),
+ i = n.n(s),
+ a = n(24282),
+ l = n.n(a),
+ c = n(20573),
+ u = n(43393);
+ const p =
+ ((h = (0, c.P1)(
+ (e) => e,
+ (e) => {
+ let { specSelectors: t } = e;
+ return t.securityDefinitions();
+ },
+ (e, t) => {
+ var n;
+ let r = (0, u.List)();
+ return t
+ ? (o()((n = t.entrySeq())).call(n, (e) => {
+ let [t, n] = e;
+ const s = n.get("type");
+ var a;
+ if (
+ ("oauth2" === s &&
+ o()((a = n.get("flows").entrySeq())).call(a, (e) => {
+ let [o, s] = e,
+ a = (0, u.fromJS)({
+ flow: o,
+ authorizationUrl: s.get("authorizationUrl"),
+ tokenUrl: s.get("tokenUrl"),
+ scopes: s.get("scopes"),
+ type: n.get("type"),
+ description: n.get("description"),
+ });
+ r = r.push(
+ new u.Map({
+ [t]: i()(a).call(a, (e) => void 0 !== e),
+ })
+ );
+ }),
+ ("http" !== s && "apiKey" !== s) ||
+ (r = r.push(new u.Map({ [t]: n }))),
+ "openIdConnect" === s && n.get("openIdConnectData"))
+ ) {
+ let e = n.get("openIdConnectData"),
+ s = e.get("grant_types_supported") || [
+ "authorization_code",
+ "implicit",
+ ];
+ o()(s).call(s, (o) => {
+ var s;
+ let a =
+ e.get("scopes_supported") &&
+ l()((s = e.get("scopes_supported"))).call(
+ s,
+ (e, t) => e.set(t, ""),
+ new u.Map()
+ ),
+ c = (0, u.fromJS)({
+ flow: o,
+ authorizationUrl: e.get("authorization_endpoint"),
+ tokenUrl: e.get("token_endpoint"),
+ scopes: a,
+ type: "oauth2",
+ openIdConnectUrl: n.get("openIdConnectUrl"),
+ });
+ r = r.push(
+ new u.Map({
+ [t]: i()(c).call(c, (e) => void 0 !== e),
+ })
+ );
+ });
+ }
+ }),
+ r)
+ : r;
+ }
+ )),
+ (e, t) =>
+ function () {
+ for (
+ var n = arguments.length, r = new Array(n), o = 0;
+ o < n;
+ o++
+ )
+ r[o] = arguments[o];
+ if (t.getSystem().specSelectors.isOAS3()) {
+ let e = t
+ .getState()
+ .getIn([
+ "spec",
+ "resolvedSubtrees",
+ "components",
+ "securitySchemes",
+ ]);
+ return h(t, e, ...r);
+ }
+ return e(...r);
+ });
+ var h;
+ },
+ 33427: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ n(23930);
+ const l = (e) => {
+ let {
+ callbacks: t,
+ specPath: n,
+ specSelectors: r,
+ getComponent: s,
+ } = e;
+ const l = r.callbacksOperations({ callbacks: t, specPath: n }),
+ c = o()(l),
+ u = s("OperationContainer", !0);
+ return 0 === c.length
+ ? a.createElement("span", null, "No callbacks")
+ : a.createElement(
+ "div",
+ null,
+ i()(c).call(c, (e) => {
+ var t;
+ return a.createElement(
+ "div",
+ { key: `${e}` },
+ a.createElement("h2", null, e),
+ i()((t = l[e])).call(t, (t) =>
+ a.createElement(u, {
+ key: `${e}-${t.path}-${t.method}`,
+ op: t.operation,
+ tag: "callbacks",
+ method: t.method,
+ path: t.path,
+ specPath: t.specPath,
+ allowTryItOut: !1,
+ })
+ )
+ );
+ })
+ );
+ };
+ },
+ 86775: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294);
+ class h extends p.Component {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, "onChange", (e) => {
+ let { onChange: t } = this.props,
+ { value: n, name: r } = e.target,
+ o = i()({}, this.state.value);
+ r ? (o[r] = n) : (o = n),
+ this.setState({ value: o }, () => t(this.state));
+ });
+ let { name: n, schema: r } = this.props,
+ s = this.getValue();
+ this.state = { name: n, schema: r, value: s };
+ }
+ getValue() {
+ let { name: e, authorized: t } = this.props;
+ return t && t.getIn([e, "value"]);
+ }
+ render() {
+ var e;
+ let {
+ schema: t,
+ getComponent: n,
+ errSelectors: r,
+ name: o,
+ } = this.props;
+ const s = n("Input"),
+ i = n("Row"),
+ a = n("Col"),
+ c = n("authError"),
+ h = n("Markdown", !0),
+ f = n("JumpToPath", !0),
+ d = (t.get("scheme") || "").toLowerCase();
+ let m = this.getValue(),
+ g = l()((e = r.allErrors())).call(
+ e,
+ (e) => e.get("authId") === o
+ );
+ if ("basic" === d) {
+ var y;
+ let e = m ? m.get("username") : null;
+ return p.createElement(
+ "div",
+ null,
+ p.createElement(
+ "h4",
+ null,
+ p.createElement("code", null, o || t.get("name")),
+ " (http, Basic)",
+ p.createElement(f, { path: ["securityDefinitions", o] })
+ ),
+ e && p.createElement("h6", null, "Authorized"),
+ p.createElement(
+ i,
+ null,
+ p.createElement(h, { source: t.get("description") })
+ ),
+ p.createElement(
+ i,
+ null,
+ p.createElement("label", null, "Username:"),
+ e
+ ? p.createElement("code", null, " ", e, " ")
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ type: "text",
+ required: "required",
+ name: "username",
+ "aria-label": "auth-basic-username",
+ onChange: this.onChange,
+ autoFocus: !0,
+ })
+ )
+ ),
+ p.createElement(
+ i,
+ null,
+ p.createElement("label", null, "Password:"),
+ e
+ ? p.createElement("code", null, " ****** ")
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ autoComplete: "new-password",
+ name: "password",
+ type: "password",
+ "aria-label": "auth-basic-password",
+ onChange: this.onChange,
+ })
+ )
+ ),
+ u()((y = g.valueSeq())).call(y, (e, t) =>
+ p.createElement(c, { error: e, key: t })
+ )
+ );
+ }
+ var v;
+ return "bearer" === d
+ ? p.createElement(
+ "div",
+ null,
+ p.createElement(
+ "h4",
+ null,
+ p.createElement("code", null, o || t.get("name")),
+ " (http, Bearer)",
+ p.createElement(f, { path: ["securityDefinitions", o] })
+ ),
+ m && p.createElement("h6", null, "Authorized"),
+ p.createElement(
+ i,
+ null,
+ p.createElement(h, { source: t.get("description") })
+ ),
+ p.createElement(
+ i,
+ null,
+ p.createElement("label", null, "Value:"),
+ m
+ ? p.createElement("code", null, " ****** ")
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ type: "text",
+ "aria-label": "auth-bearer-value",
+ onChange: this.onChange,
+ autoFocus: !0,
+ })
+ )
+ ),
+ u()((v = g.valueSeq())).call(v, (e, t) =>
+ p.createElement(c, { error: e, key: t })
+ )
+ )
+ : p.createElement(
+ "div",
+ null,
+ p.createElement(
+ "em",
+ null,
+ p.createElement("b", null, o),
+ " HTTP authentication: unsupported scheme ",
+ `'${d}'`
+ )
+ );
+ }
+ }
+ },
+ 76467: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(33427),
+ o = n(42458),
+ s = n(15757),
+ i = n(56617),
+ a = n(9928),
+ l = n(45327),
+ c = n(86775),
+ u = n(96796);
+ const p = {
+ Callbacks: r.default,
+ HttpAuth: c.default,
+ RequestBody: o.default,
+ Servers: i.default,
+ ServersContainer: a.default,
+ RequestBodyEditor: l.default,
+ OperationServers: u.default,
+ operationLink: s.default,
+ };
+ },
+ 15757: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ n(23930);
+ class l extends a.Component {
+ render() {
+ const { link: e, name: t, getComponent: n } = this.props,
+ r = n("Markdown", !0);
+ let s = e.get("operationId") || e.get("operationRef"),
+ l = e.get("parameters") && e.get("parameters").toJS(),
+ c = e.get("description");
+ return a.createElement(
+ "div",
+ { className: "operation-link" },
+ a.createElement(
+ "div",
+ { className: "description" },
+ a.createElement("b", null, a.createElement("code", null, t)),
+ c ? a.createElement(r, { source: c }) : null
+ ),
+ a.createElement(
+ "pre",
+ null,
+ "Operation `",
+ s,
+ "`",
+ a.createElement("br", null),
+ a.createElement("br", null),
+ "Parameters ",
+ (function (e, t) {
+ var n;
+ if ("string" != typeof t) return "";
+ return i()((n = t.split("\n")))
+ .call(n, (t, n) =>
+ n > 0 ? Array(e + 1).join(" ") + t : t
+ )
+ .join("\n");
+ })(0, o()(l, null, 2)) || "{}",
+ a.createElement("br", null)
+ )
+ );
+ }
+ }
+ const c = l;
+ },
+ 96796: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ class i extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, "setSelectedServer", (e) => {
+ const { path: t, method: n } = this.props;
+ return (
+ this.forceUpdate(),
+ this.props.setSelectedServer(e, `${t}:${n}`)
+ );
+ }),
+ o()(this, "setServerVariableValue", (e) => {
+ const { path: t, method: n } = this.props;
+ return (
+ this.forceUpdate(),
+ this.props.setServerVariableValue({
+ ...e,
+ namespace: `${t}:${n}`,
+ })
+ );
+ }),
+ o()(this, "getSelectedServer", () => {
+ const { path: e, method: t } = this.props;
+ return this.props.getSelectedServer(`${e}:${t}`);
+ }),
+ o()(this, "getServerVariable", (e, t) => {
+ const { path: n, method: r } = this.props;
+ return this.props.getServerVariable(
+ { namespace: `${n}:${r}`, server: e },
+ t
+ );
+ }),
+ o()(this, "getEffectiveServerValue", (e) => {
+ const { path: t, method: n } = this.props;
+ return this.props.getEffectiveServerValue({
+ server: e,
+ namespace: `${t}:${n}`,
+ });
+ });
+ }
+ render() {
+ const {
+ operationServers: e,
+ pathServers: t,
+ getComponent: n,
+ } = this.props;
+ if (!e && !t) return null;
+ const r = n("Servers"),
+ o = e || t,
+ i = e ? "operation" : "path";
+ return s.createElement(
+ "div",
+ { className: "opblock-section operation-servers" },
+ s.createElement(
+ "div",
+ { className: "opblock-section-header" },
+ s.createElement(
+ "div",
+ { className: "tab-header" },
+ s.createElement(
+ "h4",
+ { className: "opblock-title" },
+ "Servers"
+ )
+ )
+ ),
+ s.createElement(
+ "div",
+ { className: "opblock-description-wrapper" },
+ s.createElement(
+ "h4",
+ { className: "message" },
+ "These ",
+ i,
+ "-level options override the global server options."
+ ),
+ s.createElement(r, {
+ servers: o,
+ currentServer: this.getSelectedServer(),
+ setSelectedServer: this.setSelectedServer,
+ setServerVariableValue: this.setServerVariableValue,
+ getServerVariable: this.getServerVariable,
+ getEffectiveServerValue: this.getEffectiveServerValue,
+ })
+ )
+ );
+ }
+ }
+ },
+ 45327: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(90242);
+ const c = Function.prototype;
+ class u extends s.PureComponent {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, "applyDefaultValue", (e) => {
+ const { onChange: t, defaultValue: n } = e || this.props;
+ return this.setState({ value: n }), t(n);
+ }),
+ o()(this, "onChange", (e) => {
+ this.props.onChange((0, l.Pz)(e));
+ }),
+ o()(this, "onDomChange", (e) => {
+ const t = e.target.value;
+ this.setState({ value: t }, () => this.onChange(t));
+ }),
+ (this.state = { value: (0, l.Pz)(e.value) || e.defaultValue }),
+ e.onChange(e.value);
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ this.props.value !== e.value &&
+ e.value !== this.state.value &&
+ this.setState({ value: (0, l.Pz)(e.value) }),
+ !e.value &&
+ e.defaultValue &&
+ this.state.value &&
+ this.applyDefaultValue(e);
+ }
+ render() {
+ let { getComponent: e, errors: t } = this.props,
+ { value: n } = this.state,
+ r = t.size > 0;
+ const o = e("TextArea");
+ return s.createElement(
+ "div",
+ { className: "body-param" },
+ s.createElement(o, {
+ className: a()("body-param__text", { invalid: r }),
+ title: t.size ? t.join(", ") : "",
+ value: n,
+ onChange: this.onDomChange,
+ })
+ );
+ }
+ }
+ o()(u, "defaultProps", { onChange: c, userHasEditedBody: !1 });
+ },
+ 42458: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, { default: () => g, getDefaultRequestBodyValue: () => m });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s),
+ a = n(58118),
+ l = n.n(a),
+ c = n(58309),
+ u = n.n(c),
+ p = n(67294),
+ h = (n(23930), n(43393)),
+ f = n(90242),
+ d = n(2518);
+ const m = (e, t, n, r) => {
+ const o = e.getIn(["content", t]) ?? (0, h.OrderedMap)(),
+ s = o.get("schema", (0, h.OrderedMap)()).toJS(),
+ i = void 0 !== o.get("examples"),
+ a = o.get("example"),
+ l = i ? o.getIn(["examples", n, "value"]) : a,
+ c = r.getSampleSchema(s, t, { includeWriteOnly: !0 }, l);
+ return (0, f.Pz)(c);
+ },
+ g = (e) => {
+ let {
+ userHasEditedBody: t,
+ requestBody: n,
+ requestBodyValue: r,
+ requestBodyInclusionSetting: s,
+ requestBodyErrors: a,
+ getComponent: c,
+ getConfigs: g,
+ specSelectors: y,
+ fn: v,
+ contentType: b,
+ isExecute: w,
+ specPath: E,
+ onChange: x,
+ onChangeIncludeEmpty: S,
+ activeExamplesKey: _,
+ updateActiveExamplesKey: j,
+ setRetainRequestBodyValueFlag: O,
+ } = e;
+ const k = (e) => {
+ x(e.target.files[0]);
+ },
+ A = (e) => {
+ let t = { key: e, shouldDispatchInit: !1, defaultValue: !0 };
+ return (
+ "no value" === s.get(e, "no value") &&
+ (t.shouldDispatchInit = !0),
+ t
+ );
+ },
+ C = c("Markdown", !0),
+ P = c("modelExample"),
+ N = c("RequestBodyEditor"),
+ I = c("highlightCode"),
+ T = c("ExamplesSelectValueRetainer"),
+ R = c("Example"),
+ M = c("ParameterIncludeEmpty"),
+ { showCommonExtensions: D } = g(),
+ F = (null == n ? void 0 : n.get("description")) ?? null,
+ L =
+ (null == n ? void 0 : n.get("content")) ?? new h.OrderedMap();
+ b = b || L.keySeq().first() || "";
+ const B = L.get(b) ?? (0, h.OrderedMap)(),
+ $ = B.get("schema", (0, h.OrderedMap)()),
+ q = B.get("examples", null),
+ U =
+ null == q
+ ? void 0
+ : o()(q).call(q, (e, t) => {
+ var r;
+ const o =
+ null === (r = e) || void 0 === r
+ ? void 0
+ : r.get("value", null);
+ return o && (e = e.set("value", m(n, b, t, v), o)), e;
+ });
+ if (((a = h.List.isList(a) ? a : (0, h.List)()), !B.size))
+ return null;
+ const z = "object" === B.getIn(["schema", "type"]),
+ V = "binary" === B.getIn(["schema", "format"]),
+ W = "base64" === B.getIn(["schema", "format"]);
+ if (
+ "application/octet-stream" === b ||
+ 0 === i()(b).call(b, "image/") ||
+ 0 === i()(b).call(b, "audio/") ||
+ 0 === i()(b).call(b, "video/") ||
+ V ||
+ W
+ ) {
+ const e = c("Input");
+ return w
+ ? p.createElement(e, { type: "file", onChange: k })
+ : p.createElement(
+ "i",
+ null,
+ "Example values are not available for ",
+ p.createElement("code", null, b),
+ " media types."
+ );
+ }
+ if (
+ z &&
+ ("application/x-www-form-urlencoded" === b ||
+ 0 === i()(b).call(b, "multipart/")) &&
+ $.get("properties", (0, h.OrderedMap)()).size > 0
+ ) {
+ var J;
+ const e = c("JsonSchemaForm"),
+ t = c("ParameterExt"),
+ n = $.get("properties", (0, h.OrderedMap)());
+ return (
+ (r = h.Map.isMap(r) ? r : (0, h.OrderedMap)()),
+ p.createElement(
+ "div",
+ { className: "table-container" },
+ F && p.createElement(C, { source: F }),
+ p.createElement(
+ "table",
+ null,
+ p.createElement(
+ "tbody",
+ null,
+ h.Map.isMap(n) &&
+ o()((J = n.entrySeq())).call(J, (n) => {
+ var i, d;
+ let [m, g] = n;
+ if (g.get("readOnly")) return;
+ let y = D ? (0, f.po)(g) : null;
+ const b = l()(
+ (i = $.get("required", (0, h.List)()))
+ ).call(i, m),
+ E = g.get("type"),
+ _ = g.get("format"),
+ j = g.get("description"),
+ O = r.getIn([m, "value"]),
+ k = r.getIn([m, "errors"]) || a,
+ P = s.get(m) || !1,
+ N =
+ g.has("default") ||
+ g.has("example") ||
+ g.hasIn(["items", "example"]) ||
+ g.hasIn(["items", "default"]),
+ I =
+ g.has("enum") &&
+ (1 === g.get("enum").size || b),
+ T = N || I;
+ let R = "";
+ "array" !== E || T || (R = []),
+ ("object" === E || T) &&
+ (R = v.getSampleSchema(g, !1, {
+ includeWriteOnly: !0,
+ })),
+ "string" != typeof R &&
+ "object" === E &&
+ (R = (0, f.Pz)(R)),
+ "string" == typeof R &&
+ "array" === E &&
+ (R = JSON.parse(R));
+ const F =
+ "string" === E &&
+ ("binary" === _ || "base64" === _);
+ return p.createElement(
+ "tr",
+ {
+ key: m,
+ className: "parameters",
+ "data-property-name": m,
+ },
+ p.createElement(
+ "td",
+ { className: "parameters-col_name" },
+ p.createElement(
+ "div",
+ {
+ className: b
+ ? "parameter__name required"
+ : "parameter__name",
+ },
+ m,
+ b ? p.createElement("span", null, " *") : null
+ ),
+ p.createElement(
+ "div",
+ { className: "parameter__type" },
+ E,
+ _ &&
+ p.createElement(
+ "span",
+ { className: "prop-format" },
+ "($",
+ _,
+ ")"
+ ),
+ D && y.size
+ ? o()((d = y.entrySeq())).call(d, (e) => {
+ let [n, r] = e;
+ return p.createElement(t, {
+ key: `${n}-${r}`,
+ xKey: n,
+ xVal: r,
+ });
+ })
+ : null
+ ),
+ p.createElement(
+ "div",
+ { className: "parameter__deprecated" },
+ g.get("deprecated") ? "deprecated" : null
+ )
+ ),
+ p.createElement(
+ "td",
+ { className: "parameters-col_description" },
+ p.createElement(C, { source: j }),
+ w
+ ? p.createElement(
+ "div",
+ null,
+ p.createElement(e, {
+ fn: v,
+ dispatchInitialValue: !F,
+ schema: g,
+ description: m,
+ getComponent: c,
+ value: void 0 === O ? R : O,
+ required: b,
+ errors: k,
+ onChange: (e) => {
+ x(e, [m]);
+ },
+ }),
+ b
+ ? null
+ : p.createElement(M, {
+ onChange: (e) => S(m, e),
+ isIncluded: P,
+ isIncludedOptions: A(m),
+ isDisabled: u()(O)
+ ? 0 !== O.length
+ : !(0, f.O2)(O),
+ })
+ )
+ : null
+ )
+ );
+ })
+ )
+ )
+ )
+ );
+ }
+ const K = m(n, b, _, v);
+ let H = null;
+ return (
+ (0, d.O)(K) && (H = "json"),
+ p.createElement(
+ "div",
+ null,
+ F && p.createElement(C, { source: F }),
+ U
+ ? p.createElement(T, {
+ userHasEditedBody: t,
+ examples: U,
+ currentKey: _,
+ currentUserInputValue: r,
+ onSelect: (e) => {
+ j(e);
+ },
+ updateValue: x,
+ defaultToFirstExample: !0,
+ getComponent: c,
+ setRetainRequestBodyValueFlag: O,
+ })
+ : null,
+ w
+ ? p.createElement(
+ "div",
+ null,
+ p.createElement(N, {
+ value: r,
+ errors: a,
+ defaultValue: K,
+ onChange: x,
+ getComponent: c,
+ })
+ )
+ : p.createElement(P, {
+ getComponent: c,
+ getConfigs: g,
+ specSelectors: y,
+ expandDepth: 1,
+ isExecute: w,
+ schema: B.get("schema"),
+ specPath: E.push("content", b),
+ example: p.createElement(I, {
+ className: "body-param__example",
+ getConfigs: g,
+ language: H,
+ value: (0, f.Pz)(r) || K,
+ }),
+ includeWriteOnly: !0,
+ }),
+ U
+ ? p.createElement(R, {
+ example: U.get(_),
+ getComponent: c,
+ getConfigs: g,
+ })
+ : null
+ )
+ );
+ };
+ },
+ 9928: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ class o extends r.Component {
+ render() {
+ const {
+ specSelectors: e,
+ oas3Selectors: t,
+ oas3Actions: n,
+ getComponent: o,
+ } = this.props,
+ s = e.servers(),
+ i = o("Servers");
+ return s && s.size
+ ? r.createElement(
+ "div",
+ null,
+ r.createElement(
+ "span",
+ { className: "servers-title" },
+ "Servers"
+ ),
+ r.createElement(i, {
+ servers: s,
+ currentServer: t.selectedServer(),
+ setSelectedServer: n.setSelectedServer,
+ setServerVariableValue: n.setServerVariableValue,
+ getServerVariable: t.serverVariableValue,
+ getEffectiveServerValue: t.serverEffectiveValue,
+ })
+ )
+ : null;
+ }
+ }
+ },
+ 56617: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(51679),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(67294),
+ u = n(43393);
+ n(23930);
+ class p extends c.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, "onServerChange", (e) => {
+ this.setServer(e.target.value);
+ }),
+ o()(this, "onServerVariableValueChange", (e) => {
+ let { setServerVariableValue: t, currentServer: n } =
+ this.props,
+ r = e.target.getAttribute("data-variable"),
+ o = e.target.value;
+ "function" == typeof t && t({ server: n, key: r, val: o });
+ }),
+ o()(this, "setServer", (e) => {
+ let { setSelectedServer: t } = this.props;
+ t(e);
+ });
+ }
+ componentDidMount() {
+ var e;
+ let { servers: t, currentServer: n } = this.props;
+ n ||
+ this.setServer(
+ null === (e = t.first()) || void 0 === e
+ ? void 0
+ : e.get("url")
+ );
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ let {
+ servers: t,
+ setServerVariableValue: n,
+ getServerVariable: r,
+ } = e;
+ if (
+ this.props.currentServer !== e.currentServer ||
+ this.props.servers !== e.servers
+ ) {
+ var o;
+ let s = i()(t).call(t, (t) => t.get("url") === e.currentServer),
+ a =
+ i()((o = this.props.servers)).call(
+ o,
+ (e) => e.get("url") === this.props.currentServer
+ ) || (0, u.OrderedMap)();
+ if (!s) return this.setServer(t.first().get("url"));
+ let c = a.get("variables") || (0, u.OrderedMap)(),
+ p = (
+ i()(c).call(c, (e) => e.get("default")) ||
+ (0, u.OrderedMap)()
+ ).get("default"),
+ h = s.get("variables") || (0, u.OrderedMap)(),
+ f = (
+ i()(h).call(h, (e) => e.get("default")) ||
+ (0, u.OrderedMap)()
+ ).get("default");
+ l()(h).call(h, (t, o) => {
+ (r(e.currentServer, o) && p === f) ||
+ n({
+ server: e.currentServer,
+ key: o,
+ val: t.get("default") || "",
+ });
+ });
+ }
+ }
+ render() {
+ var e, t;
+ let {
+ servers: n,
+ currentServer: r,
+ getServerVariable: o,
+ getEffectiveServerValue: s,
+ } = this.props,
+ a =
+ (
+ i()(n).call(n, (e) => e.get("url") === r) ||
+ (0, u.OrderedMap)()
+ ).get("variables") || (0, u.OrderedMap)(),
+ p = 0 !== a.size;
+ return c.createElement(
+ "div",
+ { className: "servers" },
+ c.createElement(
+ "label",
+ { htmlFor: "servers" },
+ c.createElement(
+ "select",
+ { onChange: this.onServerChange, value: r },
+ l()((e = n.valueSeq()))
+ .call(e, (e) =>
+ c.createElement(
+ "option",
+ { value: e.get("url"), key: e.get("url") },
+ e.get("url"),
+ e.get("description") && ` - ${e.get("description")}`
+ )
+ )
+ .toArray()
+ )
+ ),
+ p
+ ? c.createElement(
+ "div",
+ null,
+ c.createElement(
+ "div",
+ { className: "computed-url" },
+ "Computed URL:",
+ c.createElement("code", null, s(r))
+ ),
+ c.createElement("h4", null, "Server variables"),
+ c.createElement(
+ "table",
+ null,
+ c.createElement(
+ "tbody",
+ null,
+ l()((t = a.entrySeq())).call(t, (e) => {
+ var t;
+ let [n, s] = e;
+ return c.createElement(
+ "tr",
+ { key: n },
+ c.createElement("td", null, n),
+ c.createElement(
+ "td",
+ null,
+ s.get("enum")
+ ? c.createElement(
+ "select",
+ {
+ "data-variable": n,
+ onChange:
+ this.onServerVariableValueChange,
+ },
+ l()((t = s.get("enum"))).call(t, (e) =>
+ c.createElement(
+ "option",
+ {
+ selected: e === o(r, n),
+ key: e,
+ value: e,
+ },
+ e
+ )
+ )
+ )
+ : c.createElement("input", {
+ type: "text",
+ value: o(r, n) || "",
+ onChange:
+ this.onServerVariableValueChange,
+ "data-variable": n,
+ })
+ )
+ );
+ })
+ )
+ )
+ )
+ : null
+ );
+ }
+ }
+ },
+ 7779: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ OAS30ComponentWrapFactory: () => c,
+ OAS3ComponentWrapFactory: () => l,
+ isOAS30: () => i,
+ isSwagger2: () => a,
+ });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ function i(e) {
+ const t = e.get("openapi");
+ return (
+ "string" == typeof t && /^3\.0\.([0123])(?:-rc[012])?$/.test(t)
+ );
+ }
+ function a(e) {
+ const t = e.get("swagger");
+ return "string" == typeof t && "2.0" === t;
+ }
+ function l(e) {
+ return (t, n) => (r) => {
+ var i;
+ return "function" ==
+ typeof (null === (i = n.specSelectors) || void 0 === i
+ ? void 0
+ : i.isOAS3)
+ ? n.specSelectors.isOAS3()
+ ? s.createElement(e, o()({}, r, n, { Ori: t }))
+ : s.createElement(t, r)
+ : (console.warn("OAS3 wrapper: couldn't get spec"), null);
+ };
+ }
+ function c(e) {
+ return (t, n) => (r) => {
+ var i;
+ return "function" ==
+ typeof (null === (i = n.specSelectors) || void 0 === i
+ ? void 0
+ : i.isOAS30)
+ ? n.specSelectors.isOAS30()
+ ? s.createElement(e, o()({}, r, n, { Ori: t }))
+ : s.createElement(t, r)
+ : (console.warn("OAS30 wrapper: couldn't get spec"), null);
+ };
+ }
+ },
+ 97451: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(92044),
+ o = n(73723),
+ s = n(91741),
+ i = n(76467),
+ a = n(37761),
+ l = n(67002),
+ c = n(5065),
+ u = n(62109);
+ function p() {
+ return {
+ components: i.default,
+ wrapComponents: a.default,
+ statePlugins: {
+ spec: { wrapSelectors: r, selectors: s },
+ auth: { wrapSelectors: o },
+ oas3: { actions: l, reducers: u.default, selectors: c },
+ },
+ };
+ }
+ },
+ 62109: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(8712),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(24282),
+ l = n.n(a),
+ c = n(43393),
+ u = n(67002);
+ const p = {
+ [u.UPDATE_SELECTED_SERVER]: (e, t) => {
+ let {
+ payload: { selectedServerUrl: n, namespace: r },
+ } = t;
+ const o = r ? [r, "selectedServer"] : ["selectedServer"];
+ return e.setIn(o, n);
+ },
+ [u.UPDATE_REQUEST_BODY_VALUE]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [s, a] = r;
+ if (!c.Map.isMap(n))
+ return e.setIn(["requestData", s, a, "bodyValue"], n);
+ let l,
+ u = e.getIn(["requestData", s, a, "bodyValue"]) || (0, c.Map)();
+ c.Map.isMap(u) || (u = (0, c.Map)());
+ const [...p] = o()(n).call(n);
+ return (
+ i()(p).call(p, (e) => {
+ let t = n.getIn([e]);
+ (u.has(e) && c.Map.isMap(t)) ||
+ (l = u.setIn([e, "value"], t));
+ }),
+ e.setIn(["requestData", s, a, "bodyValue"], l)
+ );
+ },
+ [u.UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [o, s] = r;
+ return e.setIn(["requestData", o, s, "retainBodyValue"], n);
+ },
+ [u.UPDATE_REQUEST_BODY_INCLUSION]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r, name: o },
+ } = t,
+ [s, i] = r;
+ return e.setIn(["requestData", s, i, "bodyInclusion", o], n);
+ },
+ [u.UPDATE_ACTIVE_EXAMPLES_MEMBER]: (e, t) => {
+ let {
+ payload: {
+ name: n,
+ pathMethod: r,
+ contextType: o,
+ contextName: s,
+ },
+ } = t,
+ [i, a] = r;
+ return e.setIn(["examples", i, a, o, s, "activeExample"], n);
+ },
+ [u.UPDATE_REQUEST_CONTENT_TYPE]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [o, s] = r;
+ return e.setIn(["requestData", o, s, "requestContentType"], n);
+ },
+ [u.UPDATE_RESPONSE_CONTENT_TYPE]: (e, t) => {
+ let {
+ payload: { value: n, path: r, method: o },
+ } = t;
+ return e.setIn(["requestData", r, o, "responseContentType"], n);
+ },
+ [u.UPDATE_SERVER_VARIABLE_VALUE]: (e, t) => {
+ let {
+ payload: { server: n, namespace: r, key: o, val: s },
+ } = t;
+ const i = r
+ ? [r, "serverVariableValues", n, o]
+ : ["serverVariableValues", n, o];
+ return e.setIn(i, s);
+ },
+ [u.SET_REQUEST_BODY_VALIDATE_ERROR]: (e, t) => {
+ let {
+ payload: { path: n, method: r, validationErrors: o },
+ } = t,
+ s = [];
+ if (
+ (s.push("Required field is not provided"), o.missingBodyValue)
+ )
+ return e.setIn(
+ ["requestData", n, r, "errors"],
+ (0, c.fromJS)(s)
+ );
+ if (o.missingRequiredKeys && o.missingRequiredKeys.length > 0) {
+ const { missingRequiredKeys: t } = o;
+ return e.updateIn(
+ ["requestData", n, r, "bodyValue"],
+ (0, c.fromJS)({}),
+ (e) =>
+ l()(t).call(
+ t,
+ (e, t) => e.setIn([t, "errors"], (0, c.fromJS)(s)),
+ e
+ )
+ );
+ }
+ return (
+ console.warn(
+ "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"
+ ),
+ e
+ );
+ },
+ [u.CLEAR_REQUEST_BODY_VALIDATE_ERROR]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ const s = e.getIn(["requestData", n, r, "bodyValue"]);
+ if (!c.Map.isMap(s))
+ return e.setIn(
+ ["requestData", n, r, "errors"],
+ (0, c.fromJS)([])
+ );
+ const [...i] = o()(s).call(s);
+ return i
+ ? e.updateIn(
+ ["requestData", n, r, "bodyValue"],
+ (0, c.fromJS)({}),
+ (e) =>
+ l()(i).call(
+ i,
+ (e, t) => e.setIn([t, "errors"], (0, c.fromJS)([])),
+ e
+ )
+ )
+ : e;
+ },
+ [u.CLEAR_REQUEST_BODY_VALUE]: (e, t) => {
+ let {
+ payload: { pathMethod: n },
+ } = t,
+ [r, o] = n;
+ const s = e.getIn(["requestData", r, o, "bodyValue"]);
+ return s
+ ? c.Map.isMap(s)
+ ? e.setIn(["requestData", r, o, "bodyValue"], (0, c.Map)())
+ : e.setIn(["requestData", r, o, "bodyValue"], "")
+ : e;
+ },
+ };
+ },
+ 5065: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ activeExamplesMember: () => S,
+ hasUserEditedBody: () => w,
+ requestBodyErrors: () => x,
+ requestBodyInclusionSetting: () => E,
+ requestBodyValue: () => y,
+ requestContentType: () => _,
+ responseContentType: () => j,
+ selectDefaultRequestBodyValue: () => b,
+ selectedServer: () => g,
+ serverEffectiveValue: () => A,
+ serverVariableValue: () => O,
+ serverVariables: () => k,
+ shouldRetainRequestBodyValue: () => v,
+ validOperationMethods: () => I,
+ validateBeforeExecute: () => C,
+ validateShallowRequired: () => N,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(28222),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(43393),
+ h = n(20573),
+ f = n(42458),
+ d = n(90242);
+ const m = (e) =>
+ function (t) {
+ for (
+ var n = arguments.length,
+ r = new Array(n > 1 ? n - 1 : 0),
+ o = 1;
+ o < n;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.getSystem().specSelectors.isOAS3()) {
+ const o = e(t, ...r);
+ return "function" == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ };
+ const g = m((e, t) => {
+ const n = t ? [t, "selectedServer"] : ["selectedServer"];
+ return e.getIn(n) || "";
+ }),
+ y = m(
+ (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null
+ ),
+ v = m(
+ (e, t, n) =>
+ e.getIn(["requestData", t, n, "retainBodyValue"]) || !1
+ ),
+ b = (e, t, n) => (e) => {
+ const {
+ oas3Selectors: r,
+ specSelectors: o,
+ fn: s,
+ } = e.getSystem();
+ if (o.isOAS3()) {
+ const e = r.requestContentType(t, n);
+ if (e)
+ return (0, f.getDefaultRequestBodyValue)(
+ o.specResolvedSubtree(["paths", t, n, "requestBody"]),
+ e,
+ r.activeExamplesMember(t, n, "requestBody", "requestBody"),
+ s
+ );
+ }
+ return null;
+ },
+ w = m((e, t, n) => (e) => {
+ const { oas3Selectors: r, specSelectors: o, fn: s } = e;
+ let i = !1;
+ const a = r.requestContentType(t, n);
+ let l = r.requestBodyValue(t, n);
+ const c = o.specResolvedSubtree(["paths", t, n, "requestBody"]);
+ if (!c) return !1;
+ if (
+ (p.Map.isMap(l) &&
+ (l = (0, d.Pz)(
+ l
+ .mapEntries((e) =>
+ p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e
+ )
+ .toJS()
+ )),
+ p.List.isList(l) && (l = (0, d.Pz)(l)),
+ a)
+ ) {
+ const e = (0, f.getDefaultRequestBodyValue)(
+ c,
+ a,
+ r.activeExamplesMember(t, n, "requestBody", "requestBody"),
+ s
+ );
+ i = !!l && l !== e;
+ }
+ return i;
+ }),
+ E = m(
+ (e, t, n) =>
+ e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)()
+ ),
+ x = m(
+ (e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null
+ ),
+ S = m(
+ (e, t, n, r, o) =>
+ e.getIn(["examples", t, n, r, o, "activeExample"]) || null
+ ),
+ _ = m(
+ (e, t, n) =>
+ e.getIn(["requestData", t, n, "requestContentType"]) || null
+ ),
+ j = m(
+ (e, t, n) =>
+ e.getIn(["requestData", t, n, "responseContentType"]) || null
+ ),
+ O = m((e, t, n) => {
+ let r;
+ if ("string" != typeof t) {
+ const { server: e, namespace: o } = t;
+ r = o
+ ? [o, "serverVariableValues", e, n]
+ : ["serverVariableValues", e, n];
+ } else {
+ r = ["serverVariableValues", t, n];
+ }
+ return e.getIn(r) || null;
+ }),
+ k = m((e, t) => {
+ let n;
+ if ("string" != typeof t) {
+ const { server: e, namespace: r } = t;
+ n = r
+ ? [r, "serverVariableValues", e]
+ : ["serverVariableValues", e];
+ } else {
+ n = ["serverVariableValues", t];
+ }
+ return e.getIn(n) || (0, p.OrderedMap)();
+ }),
+ A = m((e, t) => {
+ var n, r;
+ if ("string" != typeof t) {
+ const { server: o, namespace: s } = t;
+ (r = o),
+ (n = s
+ ? e.getIn([s, "serverVariableValues", r])
+ : e.getIn(["serverVariableValues", r]));
+ } else (r = t), (n = e.getIn(["serverVariableValues", r]));
+ n = n || (0, p.OrderedMap)();
+ let s = r;
+ return (
+ o()(n).call(n, (e, t) => {
+ s = s.replace(new RegExp(`{${t}}`, "g"), e);
+ }),
+ s
+ );
+ }),
+ C =
+ ((P = (e, t) =>
+ ((e, t) => (
+ (t = t || []), !!e.getIn(["requestData", ...t, "bodyValue"])
+ ))(e, t)),
+ function () {
+ for (
+ var e = arguments.length, t = new Array(e), n = 0;
+ n < e;
+ n++
+ )
+ t[n] = arguments[n];
+ return (e) => {
+ const n = e.getSystem().specSelectors.specJson();
+ let r = [...t][1] || [];
+ return (
+ !n.getIn(["paths", ...r, "requestBody", "required"]) ||
+ P(...t)
+ );
+ };
+ });
+ var P;
+ const N = (e, t) => {
+ var n;
+ let {
+ oas3RequiredRequestBodyContentType: r,
+ oas3RequestContentType: o,
+ oas3RequestBodyValue: s,
+ } = t,
+ a = [];
+ if (!p.Map.isMap(s)) return a;
+ let c = [];
+ return (
+ i()((n = l()(r.requestContentType))).call(n, (e) => {
+ if (e === o) {
+ let t = r.requestContentType[e];
+ i()(t).call(t, (e) => {
+ u()(c).call(c, e) < 0 && c.push(e);
+ });
+ }
+ }),
+ i()(c).call(c, (e) => {
+ s.getIn([e, "value"]) || a.push(e);
+ }),
+ a
+ );
+ },
+ I = (0, h.P1)(() => [
+ "get",
+ "put",
+ "post",
+ "delete",
+ "options",
+ "head",
+ "patch",
+ "trace",
+ ]);
+ },
+ 91741: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ callbacksOperations: () => E,
+ isOAS3: () => v,
+ isOAS30: () => y,
+ isSwagger2: () => g,
+ servers: () => w,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(24282),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(39022),
+ h = n.n(p),
+ f = n(43393),
+ d = n(7779);
+ const m = (0, f.Map)(),
+ g = () => (e) => {
+ const t = e.getSystem().specSelectors.specJson();
+ return (0, d.isSwagger2)(t);
+ },
+ y = () => (e) => {
+ const t = e.getSystem().specSelectors.specJson();
+ return (0, d.isOAS30)(t);
+ },
+ v = () => (e) => e.getSystem().specSelectors.isOAS30();
+ function b(e) {
+ return function (t) {
+ for (
+ var n = arguments.length,
+ r = new Array(n > 1 ? n - 1 : 0),
+ o = 1;
+ o < n;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.specSelectors.isOAS3()) {
+ const o = e(t, ...r);
+ return "function" == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ };
+ }
+ const w = b(
+ () => (e) => e.specSelectors.specJson().get("servers", m)
+ ),
+ E = b((e, t) => {
+ let { callbacks: n, specPath: r } = t;
+ return (e) => {
+ var t;
+ const s = e.specSelectors.validOperationMethods();
+ return f.Map.isMap(n)
+ ? o()(
+ (t = i()(n)
+ .call(
+ n,
+ (e, t, n) =>
+ f.Map.isMap(t)
+ ? i()(t).call(
+ t,
+ (e, t, i) => {
+ var a, c;
+ if (!f.Map.isMap(t)) return e;
+ const p = o()(
+ (a = l()((c = t.entrySeq())).call(
+ c,
+ (e) => {
+ let [t] = e;
+ return u()(s).call(s, t);
+ }
+ ))
+ ).call(a, (e) => {
+ let [t, o] = e;
+ return {
+ operation: (0, f.Map)({ operation: o }),
+ method: t,
+ path: i,
+ callbackName: n,
+ specPath: h()(r).call(r, [n, i, t]),
+ };
+ });
+ return h()(e).call(e, p);
+ },
+ (0, f.List)()
+ )
+ : e,
+ (0, f.List)()
+ )
+ .groupBy((e) => e.callbackName))
+ )
+ .call(t, (e) => e.toArray())
+ .toObject()
+ : {};
+ };
+ });
+ },
+ 92044: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ basePath: () => d,
+ consumes: () => m,
+ definitions: () => c,
+ hasHost: () => u,
+ host: () => f,
+ produces: () => g,
+ schemes: () => y,
+ securityDefinitions: () => p,
+ validOperationMethods: () => h,
+ });
+ var r = n(20573),
+ o = n(33881),
+ s = n(43393);
+ const i = (0, s.Map)();
+ function a(e) {
+ return (t, n) =>
+ function () {
+ if (n.getSystem().specSelectors.isOAS3()) {
+ const t = e(...arguments);
+ return "function" == typeof t ? t(n) : t;
+ }
+ return t(...arguments);
+ };
+ }
+ const l = a((0, r.P1)(() => null)),
+ c = a(() => (e) => {
+ const t = e
+ .getSystem()
+ .specSelectors.specJson()
+ .getIn(["components", "schemas"]);
+ return s.Map.isMap(t) ? t : i;
+ }),
+ u = a(
+ () => (e) =>
+ e.getSystem().specSelectors.specJson().hasIn(["servers", 0])
+ ),
+ p = a(
+ (0, r.P1)(
+ o.specJsonWithResolvedSubtrees,
+ (e) => e.getIn(["components", "securitySchemes"]) || null
+ )
+ ),
+ h = (e, t) =>
+ function (n) {
+ if (t.specSelectors.isOAS3())
+ return t.oas3Selectors.validOperationMethods();
+ for (
+ var r = arguments.length,
+ o = new Array(r > 1 ? r - 1 : 0),
+ s = 1;
+ s < r;
+ s++
+ )
+ o[s - 1] = arguments[s];
+ return e(...o);
+ },
+ f = l,
+ d = l,
+ m = l,
+ g = l,
+ y = l;
+ },
+ 70356: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS3ComponentWrapFactory)((e) => {
+ let { Ori: t, ...n } = e;
+ const {
+ schema: o,
+ getComponent: s,
+ errSelectors: i,
+ authorized: a,
+ onAuthChange: l,
+ name: c,
+ } = n,
+ u = s("HttpAuth");
+ return "http" === o.get("type")
+ ? r.createElement(u, {
+ key: c,
+ schema: o,
+ name: c,
+ errSelectors: i,
+ authorized: a,
+ getComponent: s,
+ onChange: l,
+ })
+ : r.createElement(t, n);
+ });
+ },
+ 37761: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(22460),
+ o = n(70356),
+ s = n(69487),
+ i = n(50058),
+ a = n(53499),
+ l = n(90287);
+ const c = {
+ Markdown: r.default,
+ AuthItem: o.default,
+ JsonSchema_string: l.default,
+ VersionStamp: s.default,
+ model: a.default,
+ onlineValidatorBadge: i.default,
+ };
+ },
+ 90287: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS3ComponentWrapFactory)((e) => {
+ let { Ori: t, ...n } = e;
+ const { schema: o, getComponent: s, errors: i, onChange: a } = n,
+ l = o && o.get ? o.get("format") : null,
+ c = o && o.get ? o.get("type") : null,
+ u = s("Input");
+ return c &&
+ "string" === c &&
+ l &&
+ ("binary" === l || "base64" === l)
+ ? r.createElement(u, {
+ type: "file",
+ className: i.length ? "invalid" : "",
+ title: i.length ? i : "",
+ onChange: (e) => {
+ a(e.target.files[0]);
+ },
+ disabled: t.isDisabled,
+ })
+ : r.createElement(t, n);
+ });
+ },
+ 22460: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { Markdown: () => h, default: () => f });
+ var r = n(81607),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(89927),
+ c = n(7779),
+ u = n(4599);
+ const p = new l._("commonmark");
+ p.block.ruler.enable(["table"]), p.set({ linkTarget: "_blank" });
+ const h = (e) => {
+ let { source: t, className: n = "", getConfigs: r } = e;
+ if ("string" != typeof t) return null;
+ if (t) {
+ const { useUnsafeMarkdown: e } = r(),
+ i = p.render(t),
+ l = (0, u.s)(i, { useUnsafeMarkdown: e });
+ let c;
+ return (
+ "string" == typeof l && (c = o()(l).call(l)),
+ s.createElement("div", {
+ dangerouslySetInnerHTML: { __html: c },
+ className: a()(n, "renderedMarkdown"),
+ })
+ );
+ }
+ return null;
+ };
+ h.defaultProps = { getConfigs: () => ({ useUnsafeMarkdown: !1 }) };
+ const f = (0, c.OAS3ComponentWrapFactory)(h);
+ },
+ 53499: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294),
+ i = n(7779),
+ a = n(53795);
+ class l extends s.Component {
+ render() {
+ let { getConfigs: e, schema: t } = this.props,
+ n = ["model-box"],
+ r = null;
+ return (
+ !0 === t.get("deprecated") &&
+ (n.push("deprecated"),
+ (r = s.createElement(
+ "span",
+ { className: "model-deprecated-warning" },
+ "Deprecated:"
+ ))),
+ s.createElement(
+ "div",
+ { className: n.join(" ") },
+ r,
+ s.createElement(
+ a.Z,
+ o()({}, this.props, {
+ getConfigs: e,
+ depth: 1,
+ expandDepth: this.props.expandDepth || 0,
+ })
+ )
+ )
+ );
+ }
+ }
+ const c = (0, i.OAS3ComponentWrapFactory)(l);
+ },
+ 50058: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(7779),
+ o = n(5623);
+ const s = (0, r.OAS3ComponentWrapFactory)(o.Z);
+ },
+ 69487: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS30ComponentWrapFactory)((e) => {
+ const { Ori: t } = e;
+ return r.createElement(
+ "span",
+ null,
+ r.createElement(t, e),
+ r.createElement(
+ "small",
+ { className: "version-stamp" },
+ r.createElement("pre", { className: "version" }, "OAS 3.0")
+ )
+ );
+ });
+ },
+ 92372: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(25800),
+ i = n(84380);
+ const a = function (e) {
+ let { fn: t, getSystem: n } = e;
+ if (t.jsonSchema202012) {
+ const e = (0, s.makeIsExpandable)(
+ t.jsonSchema202012.isExpandable,
+ n
+ );
+ o()(this.fn.jsonSchema202012, {
+ isExpandable: e,
+ getProperties: s.getProperties,
+ });
+ }
+ if ("function" == typeof t.sampleFromSchema && t.jsonSchema202012) {
+ const e = (0, i.wrapOAS31Fn)(
+ {
+ sampleFromSchema: t.jsonSchema202012.sampleFromSchema,
+ sampleFromSchemaGeneric:
+ t.jsonSchema202012.sampleFromSchemaGeneric,
+ createXMLExample: t.jsonSchema202012.createXMLExample,
+ memoizedSampleFromSchema:
+ t.jsonSchema202012.memoizedSampleFromSchema,
+ memoizedCreateXMLExample:
+ t.jsonSchema202012.memoizedCreateXMLExample,
+ },
+ n()
+ );
+ o()(this.fn, e);
+ }
+ };
+ },
+ 89503: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectContactNameField(),
+ i = n.selectContactUrl(),
+ a = n.selectContactEmailField(),
+ l = t("Link");
+ return r.createElement(
+ "div",
+ { className: "info__contact" },
+ i &&
+ r.createElement(
+ "div",
+ null,
+ r.createElement(
+ l,
+ { href: (0, o.Nm)(i), target: "_blank" },
+ s,
+ " - Website"
+ )
+ ),
+ a &&
+ r.createElement(
+ l,
+ { href: (0, o.Nm)(`mailto:${a}`) },
+ i ? `Send email to ${s}` : `Contact ${s}`
+ )
+ );
+ };
+ },
+ 16133: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.version(),
+ i = n.url(),
+ a = n.basePath(),
+ l = n.host(),
+ c = n.selectInfoSummaryField(),
+ u = n.selectInfoDescriptionField(),
+ p = n.selectInfoTitleField(),
+ h = n.selectInfoTermsOfServiceUrl(),
+ f = n.selectExternalDocsUrl(),
+ d = n.selectExternalDocsDescriptionField(),
+ m = n.contact(),
+ g = n.license(),
+ y = t("Markdown", !0),
+ v = t("Link"),
+ b = t("VersionStamp"),
+ w = t("InfoUrl"),
+ E = t("InfoBasePath"),
+ x = t("License", !0),
+ S = t("Contact", !0),
+ _ = t("JsonSchemaDialect", !0);
+ return r.createElement(
+ "div",
+ { className: "info" },
+ r.createElement(
+ "hgroup",
+ { className: "main" },
+ r.createElement(
+ "h2",
+ { className: "title" },
+ p,
+ s && r.createElement(b, { version: s })
+ ),
+ (l || a) && r.createElement(E, { host: l, basePath: a }),
+ i && r.createElement(w, { getComponent: t, url: i })
+ ),
+ c && r.createElement("p", { className: "info__summary" }, c),
+ r.createElement(
+ "div",
+ { className: "info__description description" },
+ r.createElement(y, { source: u })
+ ),
+ h &&
+ r.createElement(
+ "div",
+ { className: "info__tos" },
+ r.createElement(
+ v,
+ { target: "_blank", href: (0, o.Nm)(h) },
+ "Terms of service"
+ )
+ ),
+ m.size > 0 && r.createElement(S, null),
+ g.size > 0 && r.createElement(x, null),
+ f &&
+ r.createElement(
+ v,
+ {
+ className: "info__extdocs",
+ target: "_blank",
+ href: (0, o.Nm)(f),
+ },
+ d || f
+ ),
+ r.createElement(_, null)
+ );
+ };
+ },
+ 92562: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectJsonSchemaDialectField(),
+ i = n.selectJsonSchemaDialectDefault(),
+ a = t("Link");
+ return r.createElement(
+ r.Fragment,
+ null,
+ s &&
+ s === i &&
+ r.createElement(
+ "p",
+ { className: "info__jsonschemadialect" },
+ "JSON Schema dialect:",
+ " ",
+ r.createElement(
+ a,
+ { target: "_blank", href: (0, o.Nm)(s) },
+ s
+ )
+ ),
+ s &&
+ s !== i &&
+ r.createElement(
+ "div",
+ { className: "error-wrapper" },
+ r.createElement(
+ "div",
+ { className: "no-margin" },
+ r.createElement(
+ "div",
+ { className: "errors" },
+ r.createElement(
+ "div",
+ { className: "errors-wrapper" },
+ r.createElement(
+ "h4",
+ { className: "center" },
+ "Warning"
+ ),
+ r.createElement(
+ "p",
+ { className: "message" },
+ r.createElement(
+ "strong",
+ null,
+ "OpenAPI.jsonSchemaDialect"
+ ),
+ " field contains a value different from the default value of",
+ " ",
+ r.createElement(a, { target: "_blank", href: i }, i),
+ ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 51876: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectLicenseNameField(),
+ i = n.selectLicenseUrl(),
+ a = t("Link");
+ return r.createElement(
+ "div",
+ { className: "info__license" },
+ i
+ ? r.createElement(
+ "div",
+ { className: "info__license__url" },
+ r.createElement(
+ a,
+ { target: "_blank", href: (0, o.Nm)(i) },
+ s
+ )
+ )
+ : r.createElement("span", null, s)
+ );
+ };
+ },
+ 92718: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(58118),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ const i = (e) =>
+ "string" == typeof e && o()(e).call(e, "#/components/schemas/")
+ ? ((e) => {
+ const t = e.replace(/~1/g, "/").replace(/~0/g, "~");
+ try {
+ return decodeURIComponent(t);
+ } catch {
+ return t;
+ }
+ })(e.replace(/^.*#\/components\/schemas\//, ""))
+ : null,
+ a = (0, s.forwardRef)((e, t) => {
+ let { schema: n, getComponent: r, onToggle: o } = e;
+ const a = r("JSONSchema202012"),
+ l = i(n.get("$$ref")),
+ c = (0, s.useCallback)(
+ (e, t) => {
+ o(l, t);
+ },
+ [l, o]
+ );
+ return s.createElement(a, {
+ name: l,
+ schema: n.toJS(),
+ ref: t,
+ onExpand: c,
+ });
+ });
+ a.defaultProps = {
+ name: "",
+ displayName: "",
+ isRef: !1,
+ required: !1,
+ expandDepth: 0,
+ depth: 1,
+ includeReadOnly: !1,
+ includeWriteOnly: !1,
+ onToggle: () => {},
+ };
+ const l = a;
+ },
+ 20263: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u);
+ const h = (e) => {
+ var t;
+ let {
+ specActions: n,
+ specSelectors: r,
+ layoutSelectors: s,
+ layoutActions: a,
+ getComponent: u,
+ getConfigs: h,
+ } = e;
+ const f = r.selectSchemas(),
+ d = o()(f).length > 0,
+ m = ["components", "schemas"],
+ { docExpansion: g, defaultModelsExpandDepth: y } = h(),
+ v = y > 0 && "none" !== g,
+ b = s.isShown(m, v),
+ w = u("Collapse"),
+ E = u("JSONSchema202012"),
+ x = u("ArrowUpIcon"),
+ S = u("ArrowDownIcon");
+ (0, c.useEffect)(() => {
+ const e = b && y > 1,
+ t = null != r.specResolvedSubtree(m);
+ e && !t && n.requestResolvedSubtree(m);
+ }, [b, y]);
+ const _ = (0, c.useCallback)(() => {
+ a.show(m, !b);
+ }, [b]),
+ j = (0, c.useCallback)((e) => {
+ null !== e && a.readyToScroll(m, e);
+ }, []),
+ O = (e) => (t) => {
+ null !== t && a.readyToScroll([...m, e], t);
+ },
+ k = (e) => (t, o) => {
+ if (o) {
+ const t = [...m, e];
+ null != r.specResolvedSubtree(t) ||
+ n.requestResolvedSubtree([...m, e]);
+ }
+ };
+ return !d || y < 0
+ ? null
+ : c.createElement(
+ "section",
+ { className: p()("models", { "is-open": b }), ref: j },
+ c.createElement(
+ "h4",
+ null,
+ c.createElement(
+ "button",
+ {
+ "aria-expanded": b,
+ className: "models-control",
+ onClick: _,
+ },
+ c.createElement("span", null, "Schemas"),
+ b ? c.createElement(x, null) : c.createElement(S, null)
+ )
+ ),
+ c.createElement(
+ w,
+ { isOpened: b },
+ i()((t = l()(f))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(E, {
+ key: t,
+ ref: O(t),
+ schema: n,
+ name: t,
+ onExpand: k(t),
+ });
+ })
+ )
+ );
+ };
+ },
+ 33429: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let {
+ bypass: t,
+ isSwagger2: n,
+ isOAS3: o,
+ isOAS31: s,
+ alsoShow: i,
+ children: a,
+ } = e;
+ return t
+ ? r.createElement("div", null, a)
+ : n && (o || s)
+ ? r.createElement(
+ "div",
+ { className: "version-pragma" },
+ i,
+ r.createElement(
+ "div",
+ {
+ className:
+ "version-pragma__message version-pragma__message--ambiguous",
+ },
+ r.createElement(
+ "div",
+ null,
+ r.createElement(
+ "h3",
+ null,
+ "Unable to render this definition"
+ ),
+ r.createElement(
+ "p",
+ null,
+ r.createElement("code", null, "swagger"),
+ " and ",
+ r.createElement("code", null, "openapi"),
+ " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."
+ ),
+ r.createElement(
+ "p",
+ null,
+ "Supported version fields are ",
+ r.createElement("code", null, 'swagger: "2.0"'),
+ " and those that match ",
+ r.createElement("code", null, "openapi: 3.x.y"),
+ " (for example,",
+ " ",
+ r.createElement("code", null, "openapi: 3.1.0"),
+ ")."
+ )
+ )
+ )
+ )
+ : n || o || s
+ ? r.createElement("div", null, a)
+ : r.createElement(
+ "div",
+ { className: "version-pragma" },
+ i,
+ r.createElement(
+ "div",
+ {
+ className:
+ "version-pragma__message version-pragma__message--missing",
+ },
+ r.createElement(
+ "div",
+ null,
+ r.createElement(
+ "h3",
+ null,
+ "Unable to render this definition"
+ ),
+ r.createElement(
+ "p",
+ null,
+ "The provided definition does not specify a valid version field."
+ ),
+ r.createElement(
+ "p",
+ null,
+ "Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",
+ r.createElement("code", null, 'swagger: "2.0"'),
+ " and those that match ",
+ r.createElement("code", null, "openapi: 3.x.y"),
+ " (for example,",
+ " ",
+ r.createElement("code", null, "openapi: 3.1.0"),
+ ")."
+ )
+ )
+ )
+ );
+ };
+ },
+ 39508: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ const l = (e) => {
+ let { specSelectors: t, getComponent: n } = e;
+ const r = t.selectWebhooksOperations(),
+ s = o()(r),
+ l = n("OperationContainer", !0);
+ return 0 === s.length
+ ? null
+ : a.createElement(
+ "div",
+ { className: "webhooks" },
+ a.createElement("h2", null, "Webhooks"),
+ i()(s).call(s, (e) => {
+ var t;
+ return a.createElement(
+ "div",
+ { key: `${e}-webhook` },
+ i()((t = r[e])).call(t, (t) =>
+ a.createElement(l, {
+ key: `${e}-${t.method}-webhook`,
+ op: t.operation,
+ tag: "webhooks",
+ method: t.method,
+ path: e,
+ specPath: t.specPath,
+ allowTryItOut: !1,
+ })
+ )
+ );
+ })
+ );
+ };
+ },
+ 84380: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ createOnlyOAS31ComponentWrapper: () => g,
+ createOnlyOAS31Selector: () => f,
+ createOnlyOAS31SelectorWrapper: () => d,
+ createSystemSelector: () => m,
+ isOAS31: () => h,
+ wrapOAS31Fn: () => y,
+ });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(82865),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(67294);
+ const h = (e) => {
+ const t = e.get("openapi");
+ return "string" == typeof t && /^3\.1\.(?:[1-9]\d*|0)$/.test(t);
+ },
+ f = (e) =>
+ function (t) {
+ for (
+ var n = arguments.length,
+ r = new Array(n > 1 ? n - 1 : 0),
+ o = 1;
+ o < n;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.getSystem().specSelectors.isOAS31()) {
+ const o = e(t, ...r);
+ return "function" == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ },
+ d = (e) => (t, n) =>
+ function (r) {
+ for (
+ var o = arguments.length,
+ s = new Array(o > 1 ? o - 1 : 0),
+ i = 1;
+ i < o;
+ i++
+ )
+ s[i - 1] = arguments[i];
+ if (n.getSystem().specSelectors.isOAS31()) {
+ const o = e(r, ...s);
+ return "function" == typeof o ? o(t, n) : o;
+ }
+ return t(...s);
+ },
+ m = (e) =>
+ function (t) {
+ for (
+ var n = arguments.length,
+ r = new Array(n > 1 ? n - 1 : 0),
+ o = 1;
+ o < n;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ return (n) => {
+ const o = e(t, n, ...r);
+ return "function" == typeof o ? o(n) : o;
+ };
+ },
+ g = (e) => (t, n) => (r) =>
+ n.specSelectors.isOAS31()
+ ? p.createElement(
+ e,
+ o()({}, r, { originalComponent: t, getSystem: n.getSystem })
+ )
+ : p.createElement(t, r),
+ y = (e, t) => {
+ var n;
+ const { fn: r, specSelectors: o } = t;
+ return i()(
+ l()((n = u()(e))).call(n, (e) => {
+ let [t, n] = e;
+ const s = r[t];
+ return [
+ t,
+ function () {
+ return o.isOAS31()
+ ? n(...arguments)
+ : "function" == typeof s
+ ? s(...arguments)
+ : void 0;
+ },
+ ];
+ })
+ );
+ };
+ },
+ 29806: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => P });
+ var r = n(39508),
+ o = n(51876),
+ s = n(89503),
+ i = n(16133),
+ a = n(92562),
+ l = n(33429),
+ c = n(92718),
+ u = n(20263),
+ p = n(6608),
+ h = n(77423),
+ f = n(284),
+ d = n(17042),
+ m = n(22914),
+ g = n(41434),
+ y = n(1122),
+ v = n(84380),
+ b = n(9305),
+ w = n(32884),
+ E = n(64280),
+ x = n(59450),
+ S = n(36617),
+ _ = n(19525),
+ j = n(25324),
+ O = n(80809),
+ k = n(14951),
+ A = n(77536),
+ C = n(92372);
+ const P = (e) => {
+ let { fn: t } = e;
+ const n = t.createSystemSelector || v.createSystemSelector,
+ P = t.createOnlyOAS31Selector || v.createOnlyOAS31Selector;
+ return {
+ afterLoad: C.default,
+ fn: {
+ isOAS31: v.isOAS31,
+ createSystemSelector: v.createSystemSelector,
+ createOnlyOAS31Selector: v.createOnlyOAS31Selector,
+ },
+ components: {
+ Webhooks: r.default,
+ JsonSchemaDialect: a.default,
+ OAS31Info: i.default,
+ OAS31License: o.default,
+ OAS31Contact: s.default,
+ OAS31VersionPragmaFilter: l.default,
+ OAS31Model: c.default,
+ OAS31Models: u.default,
+ JSONSchema202012KeywordExample: x.default,
+ JSONSchema202012KeywordXml: S.default,
+ JSONSchema202012KeywordDiscriminator: _.default,
+ JSONSchema202012KeywordExternalDocs: j.default,
+ },
+ wrapComponents: {
+ InfoContainer: f.default,
+ License: p.default,
+ Contact: h.default,
+ VersionPragmaFilter: g.default,
+ VersionStamp: y.default,
+ Model: d.default,
+ Models: m.default,
+ JSONSchema202012KeywordDescription: O.default,
+ JSONSchema202012KeywordDefault: k.default,
+ JSONSchema202012KeywordProperties: A.default,
+ },
+ statePlugins: {
+ spec: {
+ selectors: {
+ isOAS31: n(b.isOAS31),
+ license: b.license,
+ selectLicenseNameField: b.selectLicenseNameField,
+ selectLicenseUrlField: b.selectLicenseUrlField,
+ selectLicenseIdentifierField: P(
+ b.selectLicenseIdentifierField
+ ),
+ selectLicenseUrl: n(b.selectLicenseUrl),
+ contact: b.contact,
+ selectContactNameField: b.selectContactNameField,
+ selectContactEmailField: b.selectContactEmailField,
+ selectContactUrlField: b.selectContactUrlField,
+ selectContactUrl: n(b.selectContactUrl),
+ selectInfoTitleField: b.selectInfoTitleField,
+ selectInfoSummaryField: P(b.selectInfoSummaryField),
+ selectInfoDescriptionField: b.selectInfoDescriptionField,
+ selectInfoTermsOfServiceField:
+ b.selectInfoTermsOfServiceField,
+ selectInfoTermsOfServiceUrl: n(
+ b.selectInfoTermsOfServiceUrl
+ ),
+ selectExternalDocsDescriptionField:
+ b.selectExternalDocsDescriptionField,
+ selectExternalDocsUrlField: b.selectExternalDocsUrlField,
+ selectExternalDocsUrl: n(b.selectExternalDocsUrl),
+ webhooks: P(b.webhooks),
+ selectWebhooksOperations: P(n(b.selectWebhooksOperations)),
+ selectJsonSchemaDialectField:
+ b.selectJsonSchemaDialectField,
+ selectJsonSchemaDialectDefault:
+ b.selectJsonSchemaDialectDefault,
+ selectSchemas: n(b.selectSchemas),
+ },
+ wrapSelectors: {
+ isOAS3: w.isOAS3,
+ selectLicenseUrl: w.selectLicenseUrl,
+ },
+ },
+ oas31: {
+ selectors: { selectLicenseUrl: P(n(E.selectLicenseUrl)) },
+ },
+ },
+ };
+ };
+ },
+ 45989: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { schema: t, getSystem: n } = e;
+ if (null == t || !t.description) return null;
+ const { getComponent: o } = n(),
+ s = o("Markdown");
+ return r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--description",
+ },
+ r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary",
+ },
+ r.createElement(s, { source: t.description })
+ )
+ );
+ };
+ },
+ 19525: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(7749);
+ const c = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.discriminator) || {},
+ { fn: i, getComponent: c } = n(),
+ { useIsExpandedDeeply: u, useComponent: p } = i.jsonSchema202012,
+ h = u(),
+ f = !!r.mapping,
+ [d, m] = (0, s.useState)(h),
+ [g, y] = (0, s.useState)(!1),
+ v = p("Accordion"),
+ b = p("ExpandDeepButton"),
+ w = c("JSONSchema202012DeepExpansionContext")(),
+ E = (0, s.useCallback)(() => {
+ m((e) => !e);
+ }, []),
+ x = (0, s.useCallback)((e, t) => {
+ m(t), y(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ w.Provider,
+ { value: g },
+ s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator",
+ },
+ f
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ v,
+ { expanded: d, onChange: E },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "Discriminator"
+ )
+ ),
+ s.createElement(b, { expanded: d, onClick: x })
+ )
+ : s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "Discriminator"
+ ),
+ r.propertyName &&
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted",
+ },
+ r.propertyName
+ ),
+ s.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ s.createElement(
+ "ul",
+ {
+ className: a()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !d,
+ }
+ ),
+ },
+ d &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(l.default, { discriminator: r })
+ )
+ )
+ )
+ );
+ };
+ },
+ 7749: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294);
+ const u = (e) => {
+ var t;
+ let { discriminator: n } = e;
+ const r = (null == n ? void 0 : n.mapping) || {};
+ return 0 === o()(r).length
+ ? null
+ : i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ "div",
+ {
+ key: `${t}-${n}`,
+ className: "json-schema-2020-12-keyword",
+ },
+ c.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ t
+ ),
+ c.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ n
+ )
+ );
+ });
+ };
+ u.defaultProps = { mapping: void 0 };
+ const p = u;
+ },
+ 59450: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const { fn: o } = n(),
+ { hasKeyword: s, stringify: i } = o.jsonSchema202012.useFn();
+ return s(t, "example")
+ ? r.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--example",
+ },
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "Example"
+ ),
+ r.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const",
+ },
+ i(t.example)
+ )
+ )
+ : null;
+ };
+ },
+ 25324: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(90242);
+ const c = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.externalDocs) || {},
+ { fn: i, getComponent: c } = n(),
+ { useIsExpandedDeeply: u, useComponent: p } = i.jsonSchema202012,
+ h = u(),
+ f = !(!r.description && !r.url),
+ [d, m] = (0, s.useState)(h),
+ [g, y] = (0, s.useState)(!1),
+ v = p("Accordion"),
+ b = p("ExpandDeepButton"),
+ w = c("JSONSchema202012KeywordDescription"),
+ E = c("Link"),
+ x = c("JSONSchema202012DeepExpansionContext")(),
+ S = (0, s.useCallback)(() => {
+ m((e) => !e);
+ }, []),
+ _ = (0, s.useCallback)((e, t) => {
+ m(t), y(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ x.Provider,
+ { value: g },
+ s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs",
+ },
+ f
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ v,
+ { expanded: d, onChange: S },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "External documentation"
+ )
+ ),
+ s.createElement(b, { expanded: d, onClick: _ })
+ )
+ : s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "External documentation"
+ ),
+ s.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ s.createElement(
+ "ul",
+ {
+ className: a()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !d,
+ }
+ ),
+ },
+ d &&
+ s.createElement(
+ s.Fragment,
+ null,
+ r.description &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(w, { schema: r, getSystem: n })
+ ),
+ r.url &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword",
+ },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "url"
+ ),
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ s.createElement(
+ E,
+ {
+ target: "_blank",
+ href: (0, l.Nm)(r.url),
+ },
+ r.url
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 9023: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => g });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(67294),
+ d = n(94184),
+ m = n.n(d);
+ const g = (e) => {
+ var t;
+ let { schema: n, getSystem: r } = e;
+ const { fn: s } = r(),
+ { useComponent: a } = s.jsonSchema202012,
+ { getDependentRequired: c, getProperties: p } =
+ s.jsonSchema202012.useFn(),
+ d = s.jsonSchema202012.useConfig(),
+ g = o()(null == n ? void 0 : n.required) ? n.required : [],
+ y = a("JSONSchema"),
+ v = p(n, d);
+ return 0 === i()(v).length
+ ? null
+ : f.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--properties",
+ },
+ f.createElement(
+ "ul",
+ null,
+ l()((t = u()(v))).call(t, (e) => {
+ let [t, r] = e;
+ const o = h()(g).call(g, t),
+ s = c(t, n);
+ return f.createElement(
+ "li",
+ {
+ key: t,
+ className: m()("json-schema-2020-12-property", {
+ "json-schema-2020-12-property--required": o,
+ }),
+ },
+ f.createElement(y, {
+ name: t,
+ schema: r,
+ dependentRequired: s,
+ })
+ );
+ })
+ )
+ );
+ };
+ },
+ 36617: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i);
+ const l = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.xml) || {},
+ { fn: i, getComponent: l } = n(),
+ { useIsExpandedDeeply: c, useComponent: u } = i.jsonSchema202012,
+ p = c(),
+ h = !!(r.name || r.namespace || r.prefix),
+ [f, d] = (0, s.useState)(p),
+ [m, g] = (0, s.useState)(!1),
+ y = u("Accordion"),
+ v = u("ExpandDeepButton"),
+ b = l("JSONSchema202012DeepExpansionContext")(),
+ w = (0, s.useCallback)(() => {
+ d((e) => !e);
+ }, []),
+ E = (0, s.useCallback)((e, t) => {
+ d(t), g(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ b.Provider,
+ { value: m },
+ s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword--xml",
+ },
+ h
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ y,
+ { expanded: f, onChange: w },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "XML"
+ )
+ ),
+ s.createElement(v, { expanded: f, onClick: E })
+ )
+ : s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "XML"
+ ),
+ !0 === r.attribute &&
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted",
+ },
+ "attribute"
+ ),
+ !0 === r.wrapped &&
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted",
+ },
+ "wrapped"
+ ),
+ s.createElement(
+ "strong",
+ {
+ className:
+ "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary",
+ },
+ "object"
+ ),
+ s.createElement(
+ "ul",
+ {
+ className: a()(
+ "json-schema-2020-12-keyword__children",
+ {
+ "json-schema-2020-12-keyword__children--collapsed":
+ !f,
+ }
+ ),
+ },
+ f &&
+ s.createElement(
+ s.Fragment,
+ null,
+ r.name &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(
+ "div",
+ {
+ className:
+ "json-schema-2020-12-keyword json-schema-2020-12-keyword",
+ },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "name"
+ ),
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ r.name
+ )
+ )
+ ),
+ r.namespace &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(
+ "div",
+ { className: "json-schema-2020-12-keyword" },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "namespace"
+ ),
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ r.namespace
+ )
+ )
+ ),
+ r.prefix &&
+ s.createElement(
+ "li",
+ { className: "json-schema-2020-12-property" },
+ s.createElement(
+ "div",
+ { className: "json-schema-2020-12-keyword" },
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary",
+ },
+ "prefix"
+ ),
+ s.createElement(
+ "span",
+ {
+ className:
+ "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary",
+ },
+ r.prefix
+ )
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 25800: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { getProperties: () => u, makeIsExpandable: () => c });
+ var r = n(2018),
+ o = n.n(r),
+ s = n(14418),
+ i = n.n(s),
+ a = n(82865),
+ l = n.n(a);
+ const c = (e, t) => {
+ const { fn: n } = t();
+ if ("function" != typeof e) return null;
+ const { hasKeyword: r } = n.jsonSchema202012;
+ return (t) =>
+ e(t) ||
+ r(t, "example") ||
+ (null == t ? void 0 : t.xml) ||
+ (null == t ? void 0 : t.discriminator) ||
+ (null == t ? void 0 : t.externalDocs);
+ },
+ u = (e, t) => {
+ let { includeReadOnly: n, includeWriteOnly: r } = t;
+ if (null == e || !e.properties) return {};
+ const s = o()(e.properties),
+ a = i()(s).call(s, (e) => {
+ let [, t] = e;
+ const o = !0 === (null == t ? void 0 : t.readOnly),
+ s = !0 === (null == t ? void 0 : t.writeOnly);
+ return (!o || n) && (!s || r);
+ });
+ return l()(a);
+ };
+ },
+ 14951: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { schema: t, getSystem: n, originalComponent: o } = e;
+ const { getComponent: s } = n(),
+ i = s("JSONSchema202012KeywordDiscriminator"),
+ a = s("JSONSchema202012KeywordXml"),
+ l = s("JSONSchema202012KeywordExample"),
+ c = s("JSONSchema202012KeywordExternalDocs");
+ return r.createElement(
+ r.Fragment,
+ null,
+ r.createElement(o, { schema: t }),
+ r.createElement(i, { schema: t, getSystem: n }),
+ r.createElement(a, { schema: t, getSystem: n }),
+ r.createElement(c, { schema: t, getSystem: n }),
+ r.createElement(l, { schema: t, getSystem: n })
+ );
+ });
+ },
+ 80809: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(45989);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)(r.default);
+ },
+ 77536: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(9023);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)(r.default);
+ },
+ 64280: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { selectLicenseUrl: () => s });
+ var r = n(20573),
+ o = n(63543);
+ const s = (0, r.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectLicenseUrlField(),
+ (e, t) => t.specSelectors.selectLicenseIdentifierField(),
+ (e, t, n, r) =>
+ n
+ ? (0, o.mn)(n, e, { selectedServer: t })
+ : r
+ ? `https://spdx.org/licenses/${r}.html`
+ : void 0
+ );
+ },
+ 9305: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ contact: () => A,
+ isOAS31: () => w,
+ license: () => S,
+ selectContactEmailField: () => P,
+ selectContactNameField: () => C,
+ selectContactUrl: () => I,
+ selectContactUrlField: () => N,
+ selectExternalDocsDescriptionField: () => L,
+ selectExternalDocsUrl: () => $,
+ selectExternalDocsUrlField: () => B,
+ selectInfoDescriptionField: () => M,
+ selectInfoSummaryField: () => R,
+ selectInfoTermsOfServiceField: () => D,
+ selectInfoTermsOfServiceUrl: () => F,
+ selectInfoTitleField: () => T,
+ selectJsonSchemaDialectDefault: () => U,
+ selectJsonSchemaDialectField: () => q,
+ selectLicenseIdentifierField: () => k,
+ selectLicenseNameField: () => _,
+ selectLicenseUrl: () => O,
+ selectLicenseUrlField: () => j,
+ selectSchemas: () => z,
+ selectWebhooksOperations: () => x,
+ webhooks: () => E,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(24282),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(39022),
+ h = n.n(p),
+ f = n(2018),
+ d = n.n(f),
+ m = n(43393),
+ g = n(20573),
+ y = n(63543),
+ v = n(84380);
+ const b = (0, m.Map)(),
+ w = (0, g.P1)((e, t) => t.specSelectors.specJson(), v.isOAS31),
+ E = () => (e) => e.specSelectors.specJson().get("webhooks", b),
+ x = (0, g.P1)(
+ (e, t) => t.specSelectors.webhooks(),
+ (e, t) => t.specSelectors.validOperationMethods(),
+ (e, t) => t.specSelectors.specResolvedSubtree(["webhooks"]),
+ (e, t) => {
+ var n;
+ return m.Map.isMap(e)
+ ? o()(
+ (n = i()(e)
+ .call(
+ e,
+ (e, n, r) => {
+ var s, i;
+ if (!m.Map.isMap(n)) return e;
+ const a = o()(
+ (s = l()((i = n.entrySeq())).call(i, (e) => {
+ let [n] = e;
+ return u()(t).call(t, n);
+ }))
+ ).call(s, (e) => {
+ let [t, n] = e;
+ return {
+ operation: (0, m.Map)({ operation: n }),
+ method: t,
+ path: r,
+ specPath: (0, m.List)(["webhooks", r, t]),
+ };
+ });
+ return h()(e).call(e, a);
+ },
+ (0, m.List)()
+ )
+ .groupBy((e) => e.path))
+ )
+ .call(n, (e) => e.toArray())
+ .toObject()
+ : {};
+ }
+ ),
+ S = () => (e) => e.specSelectors.info().get("license", b),
+ _ = () => (e) => e.specSelectors.license().get("name", "License"),
+ j = () => (e) => e.specSelectors.license().get("url"),
+ O = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectLicenseUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ k = () => (e) => e.specSelectors.license().get("identifier"),
+ A = () => (e) => e.specSelectors.info().get("contact", b),
+ C = () => (e) =>
+ e.specSelectors.contact().get("name", "the developer"),
+ P = () => (e) => e.specSelectors.contact().get("email"),
+ N = () => (e) => e.specSelectors.contact().get("url"),
+ I = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectContactUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ T = () => (e) => e.specSelectors.info().get("title"),
+ R = () => (e) => e.specSelectors.info().get("summary"),
+ M = () => (e) => e.specSelectors.info().get("description"),
+ D = () => (e) => e.specSelectors.info().get("termsOfService"),
+ F = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectInfoTermsOfServiceField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ L = () => (e) => e.specSelectors.externalDocs().get("description"),
+ B = () => (e) => e.specSelectors.externalDocs().get("url"),
+ $ = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectExternalDocsUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ q = () => (e) =>
+ e.specSelectors.specJson().get("jsonSchemaDialect"),
+ U = () => "https://spec.openapis.org/oas/3.1/dialect/base",
+ z = (0, g.P1)(
+ (e, t) => t.specSelectors.definitions(),
+ (e, t) =>
+ t.specSelectors.specResolvedSubtree(["components", "schemas"]),
+ (e, t) => {
+ var n;
+ return m.Map.isMap(e)
+ ? m.Map.isMap(t)
+ ? i()((n = d()(e.toJS()))).call(
+ n,
+ (e, n) => {
+ let [r, o] = n;
+ const s = t.get(r);
+ return (
+ (e[r] = (null == s ? void 0 : s.toJS()) || o), e
+ );
+ },
+ {}
+ )
+ : e.toJS()
+ : {};
+ }
+ );
+ },
+ 32884: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { isOAS3: () => o, selectLicenseUrl: () => s });
+ var r = n(84380);
+ const o = (e, t) =>
+ function (n) {
+ const r = t.specSelectors.isOAS31();
+ for (
+ var o = arguments.length,
+ s = new Array(o > 1 ? o - 1 : 0),
+ i = 1;
+ i < o;
+ i++
+ )
+ s[i - 1] = arguments[i];
+ return r || e(...s);
+ },
+ s = (0, r.createOnlyOAS31SelectorWrapper)(
+ () => (e, t) => t.oas31Selectors.selectLicenseUrl()
+ );
+ },
+ 77423: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent("OAS31Contact", !0);
+ return r.createElement(n, null);
+ });
+ },
+ 284: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent("OAS31Info", !0);
+ return r.createElement(n, null);
+ });
+ },
+ 6608: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent("OAS31License", !0);
+ return r.createElement(n, null);
+ });
+ },
+ 17042: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = n(84380),
+ s = n(25800);
+ const i = (0, o.createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t, ...n } = e;
+ const o = t(),
+ { getComponent: i, fn: a, getConfigs: l } = o,
+ c = l(),
+ u = i("OAS31Model"),
+ p = i("JSONSchema202012"),
+ h = i("JSONSchema202012Keyword$schema"),
+ f = i("JSONSchema202012Keyword$vocabulary"),
+ d = i("JSONSchema202012Keyword$id"),
+ m = i("JSONSchema202012Keyword$anchor"),
+ g = i("JSONSchema202012Keyword$dynamicAnchor"),
+ y = i("JSONSchema202012Keyword$ref"),
+ v = i("JSONSchema202012Keyword$dynamicRef"),
+ b = i("JSONSchema202012Keyword$defs"),
+ w = i("JSONSchema202012Keyword$comment"),
+ E = i("JSONSchema202012KeywordAllOf"),
+ x = i("JSONSchema202012KeywordAnyOf"),
+ S = i("JSONSchema202012KeywordOneOf"),
+ _ = i("JSONSchema202012KeywordNot"),
+ j = i("JSONSchema202012KeywordIf"),
+ O = i("JSONSchema202012KeywordThen"),
+ k = i("JSONSchema202012KeywordElse"),
+ A = i("JSONSchema202012KeywordDependentSchemas"),
+ C = i("JSONSchema202012KeywordPrefixItems"),
+ P = i("JSONSchema202012KeywordItems"),
+ N = i("JSONSchema202012KeywordContains"),
+ I = i("JSONSchema202012KeywordProperties"),
+ T = i("JSONSchema202012KeywordPatternProperties"),
+ R = i("JSONSchema202012KeywordAdditionalProperties"),
+ M = i("JSONSchema202012KeywordPropertyNames"),
+ D = i("JSONSchema202012KeywordUnevaluatedItems"),
+ F = i("JSONSchema202012KeywordUnevaluatedProperties"),
+ L = i("JSONSchema202012KeywordType"),
+ B = i("JSONSchema202012KeywordEnum"),
+ $ = i("JSONSchema202012KeywordConst"),
+ q = i("JSONSchema202012KeywordConstraint"),
+ U = i("JSONSchema202012KeywordDependentRequired"),
+ z = i("JSONSchema202012KeywordContentSchema"),
+ V = i("JSONSchema202012KeywordTitle"),
+ W = i("JSONSchema202012KeywordDescription"),
+ J = i("JSONSchema202012KeywordDefault"),
+ K = i("JSONSchema202012KeywordDeprecated"),
+ H = i("JSONSchema202012KeywordReadOnly"),
+ G = i("JSONSchema202012KeywordWriteOnly"),
+ Z = i("JSONSchema202012Accordion"),
+ Y = i("JSONSchema202012ExpandDeepButton"),
+ X = i("JSONSchema202012ChevronRightIcon"),
+ Q = i("withJSONSchema202012Context")(u, {
+ config: {
+ default$schema:
+ "https://spec.openapis.org/oas/3.1/dialect/base",
+ defaultExpandedLevels: c.defaultModelExpandDepth,
+ includeReadOnly: Boolean(n.includeReadOnly),
+ includeWriteOnly: Boolean(n.includeWriteOnly),
+ },
+ components: {
+ JSONSchema: p,
+ Keyword$schema: h,
+ Keyword$vocabulary: f,
+ Keyword$id: d,
+ Keyword$anchor: m,
+ Keyword$dynamicAnchor: g,
+ Keyword$ref: y,
+ Keyword$dynamicRef: v,
+ Keyword$defs: b,
+ Keyword$comment: w,
+ KeywordAllOf: E,
+ KeywordAnyOf: x,
+ KeywordOneOf: S,
+ KeywordNot: _,
+ KeywordIf: j,
+ KeywordThen: O,
+ KeywordElse: k,
+ KeywordDependentSchemas: A,
+ KeywordPrefixItems: C,
+ KeywordItems: P,
+ KeywordContains: N,
+ KeywordProperties: I,
+ KeywordPatternProperties: T,
+ KeywordAdditionalProperties: R,
+ KeywordPropertyNames: M,
+ KeywordUnevaluatedItems: D,
+ KeywordUnevaluatedProperties: F,
+ KeywordType: L,
+ KeywordEnum: B,
+ KeywordConst: $,
+ KeywordConstraint: q,
+ KeywordDependentRequired: U,
+ KeywordContentSchema: z,
+ KeywordTitle: V,
+ KeywordDescription: W,
+ KeywordDefault: J,
+ KeywordDeprecated: K,
+ KeywordReadOnly: H,
+ KeywordWriteOnly: G,
+ Accordion: Z,
+ ExpandDeepButton: Y,
+ ChevronRightIcon: X,
+ },
+ fn: {
+ upperFirst: a.upperFirst,
+ isExpandable: (0, s.makeIsExpandable)(
+ a.jsonSchema202012.isExpandable,
+ t
+ ),
+ getProperties: s.getProperties,
+ },
+ });
+ return r.createElement(Q, n);
+ });
+ },
+ 22914: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const { getComponent: n, fn: s, getConfigs: i } = t(),
+ a = i();
+ if (o.ModelsWithJSONSchemaContext)
+ return r.createElement(o.ModelsWithJSONSchemaContext, null);
+ const l = n("OAS31Models", !0),
+ c = n("JSONSchema202012"),
+ u = n("JSONSchema202012Keyword$schema"),
+ p = n("JSONSchema202012Keyword$vocabulary"),
+ h = n("JSONSchema202012Keyword$id"),
+ f = n("JSONSchema202012Keyword$anchor"),
+ d = n("JSONSchema202012Keyword$dynamicAnchor"),
+ m = n("JSONSchema202012Keyword$ref"),
+ g = n("JSONSchema202012Keyword$dynamicRef"),
+ y = n("JSONSchema202012Keyword$defs"),
+ v = n("JSONSchema202012Keyword$comment"),
+ b = n("JSONSchema202012KeywordAllOf"),
+ w = n("JSONSchema202012KeywordAnyOf"),
+ E = n("JSONSchema202012KeywordOneOf"),
+ x = n("JSONSchema202012KeywordNot"),
+ S = n("JSONSchema202012KeywordIf"),
+ _ = n("JSONSchema202012KeywordThen"),
+ j = n("JSONSchema202012KeywordElse"),
+ O = n("JSONSchema202012KeywordDependentSchemas"),
+ k = n("JSONSchema202012KeywordPrefixItems"),
+ A = n("JSONSchema202012KeywordItems"),
+ C = n("JSONSchema202012KeywordContains"),
+ P = n("JSONSchema202012KeywordProperties"),
+ N = n("JSONSchema202012KeywordPatternProperties"),
+ I = n("JSONSchema202012KeywordAdditionalProperties"),
+ T = n("JSONSchema202012KeywordPropertyNames"),
+ R = n("JSONSchema202012KeywordUnevaluatedItems"),
+ M = n("JSONSchema202012KeywordUnevaluatedProperties"),
+ D = n("JSONSchema202012KeywordType"),
+ F = n("JSONSchema202012KeywordEnum"),
+ L = n("JSONSchema202012KeywordConst"),
+ B = n("JSONSchema202012KeywordConstraint"),
+ $ = n("JSONSchema202012KeywordDependentRequired"),
+ q = n("JSONSchema202012KeywordContentSchema"),
+ U = n("JSONSchema202012KeywordTitle"),
+ z = n("JSONSchema202012KeywordDescription"),
+ V = n("JSONSchema202012KeywordDefault"),
+ W = n("JSONSchema202012KeywordDeprecated"),
+ J = n("JSONSchema202012KeywordReadOnly"),
+ K = n("JSONSchema202012KeywordWriteOnly"),
+ H = n("JSONSchema202012Accordion"),
+ G = n("JSONSchema202012ExpandDeepButton"),
+ Z = n("JSONSchema202012ChevronRightIcon"),
+ Y = n("withJSONSchema202012Context");
+ return (
+ (o.ModelsWithJSONSchemaContext = Y(l, {
+ config: {
+ default$schema:
+ "https://spec.openapis.org/oas/3.1/dialect/base",
+ defaultExpandedLevels: a.defaultModelsExpandDepth - 1,
+ includeReadOnly: !0,
+ includeWriteOnly: !0,
+ },
+ components: {
+ JSONSchema: c,
+ Keyword$schema: u,
+ Keyword$vocabulary: p,
+ Keyword$id: h,
+ Keyword$anchor: f,
+ Keyword$dynamicAnchor: d,
+ Keyword$ref: m,
+ Keyword$dynamicRef: g,
+ Keyword$defs: y,
+ Keyword$comment: v,
+ KeywordAllOf: b,
+ KeywordAnyOf: w,
+ KeywordOneOf: E,
+ KeywordNot: x,
+ KeywordIf: S,
+ KeywordThen: _,
+ KeywordElse: j,
+ KeywordDependentSchemas: O,
+ KeywordPrefixItems: k,
+ KeywordItems: A,
+ KeywordContains: C,
+ KeywordProperties: P,
+ KeywordPatternProperties: N,
+ KeywordAdditionalProperties: I,
+ KeywordPropertyNames: T,
+ KeywordUnevaluatedItems: R,
+ KeywordUnevaluatedProperties: M,
+ KeywordType: D,
+ KeywordEnum: F,
+ KeywordConst: L,
+ KeywordConstraint: B,
+ KeywordDependentRequired: $,
+ KeywordContentSchema: q,
+ KeywordTitle: U,
+ KeywordDescription: z,
+ KeywordDefault: V,
+ KeywordDeprecated: W,
+ KeywordReadOnly: J,
+ KeywordWriteOnly: K,
+ Accordion: H,
+ ExpandDeepButton: G,
+ ChevronRightIcon: Z,
+ },
+ fn: {
+ upperFirst: s.upperFirst,
+ isExpandable: s.jsonSchema202012.isExpandable,
+ getProperties: s.jsonSchema202012.getProperties,
+ },
+ })),
+ r.createElement(o.ModelsWithJSONSchemaContext, null)
+ );
+ });
+ o.ModelsWithJSONSchemaContext = null;
+ const s = o;
+ },
+ 41434: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e, t) => (e) => {
+ const n = t.specSelectors.isOAS31(),
+ r = t.getComponent("OAS31VersionPragmaFilter");
+ return s.createElement(r, o()({ isOAS31: n }, e));
+ };
+ },
+ 1122: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { originalComponent: t, ...n } = e;
+ return r.createElement(
+ "span",
+ null,
+ r.createElement(t, n),
+ r.createElement(
+ "small",
+ { className: "version-stamp" },
+ r.createElement("pre", { className: "version" }, "OAS 3.1")
+ )
+ );
+ });
+ },
+ 28560: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(87198),
+ o = n.n(r);
+ let s = !1;
+ function i() {
+ return {
+ statePlugins: {
+ spec: {
+ wrapActions: {
+ updateSpec: (e) =>
+ function () {
+ return (s = !0), e(...arguments);
+ },
+ updateJsonSpec: (e, t) =>
+ function () {
+ const n = t.getConfigs().onComplete;
+ return (
+ s && "function" == typeof n && (o()(n, 0), (s = !1)),
+ e(...arguments)
+ );
+ },
+ },
+ },
+ },
+ };
+ }
+ },
+ 92135: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ requestSnippetGenerator_curl_bash: () => j,
+ requestSnippetGenerator_curl_cmd: () => O,
+ requestSnippetGenerator_curl_powershell: () => _,
+ });
+ var r = n(11882),
+ o = n.n(r),
+ s = n(81607),
+ i = n.n(s),
+ a = n(35627),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(12196),
+ h = n.n(p),
+ f = n(74386),
+ d = n.n(f),
+ m = n(58118),
+ g = n.n(m),
+ y = n(27504),
+ v = n(43393);
+ const b = (e) => {
+ var t;
+ const n = "_**[]";
+ return o()(e).call(e, n) < 0
+ ? e
+ : i()((t = e.split(n)[0])).call(t);
+ },
+ w = (e) =>
+ "-d " === e || /^[_\/-]/g.test(e)
+ ? e
+ : "'" + e.replace(/'/g, "'\\''") + "'",
+ E = (e) =>
+ "-d " ===
+ (e = e
+ .replace(/\^/g, "^^")
+ .replace(/\\"/g, '\\\\"')
+ .replace(/"/g, '""')
+ .replace(/\n/g, "^\n"))
+ ? e.replace(/-d /g, "-d ^\n")
+ : /^[_\/-]/g.test(e)
+ ? e
+ : '"' + e + '"',
+ x = (e) =>
+ "-d " === e
+ ? e
+ : /\n/.test(e)
+ ? '@"\n' +
+ e
+ .replace(/"/g, '\\"')
+ .replace(/`/g, "``")
+ .replace(/\$/, "`$") +
+ '\n"@'
+ : /^[_\/-]/g.test(e)
+ ? e
+ : "'" + e.replace(/"/g, '""').replace(/'/g, "''") + "'";
+ const S = function (e, t, n) {
+ let r =
+ arguments.length > 3 && void 0 !== arguments[3]
+ ? arguments[3]
+ : "",
+ o = !1,
+ s = "";
+ const i = function () {
+ for (
+ var e = arguments.length, n = new Array(e), r = 0;
+ r < e;
+ r++
+ )
+ n[r] = arguments[r];
+ return (s += " " + u()(n).call(n, t).join(" "));
+ },
+ a = function () {
+ for (
+ var e = arguments.length, n = new Array(e), r = 0;
+ r < e;
+ r++
+ )
+ n[r] = arguments[r];
+ return (s += u()(n).call(n, t).join(" "));
+ },
+ c = () => (s += ` ${n}`),
+ p = function () {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : 1;
+ return (s += h()(" ").call(" ", e));
+ };
+ let f = e.get("headers");
+ if (
+ ((s += "curl" + r),
+ e.has("curlOptions") && i(...e.get("curlOptions")),
+ i("-X", e.get("method")),
+ c(),
+ p(),
+ a(`${e.get("url")}`),
+ f && f.size)
+ )
+ for (let t of d()((m = e.get("headers"))).call(m)) {
+ var m;
+ c(), p();
+ let [e, n] = t;
+ a("-H", `${e}: ${n}`),
+ (o =
+ o ||
+ (/^content-type$/i.test(e) &&
+ /^multipart\/form-data$/i.test(n)));
+ }
+ const w = e.get("body");
+ var E;
+ if (w)
+ if (
+ o &&
+ g()((E = ["POST", "PUT", "PATCH"])).call(E, e.get("method"))
+ )
+ for (let [e, t] of w.entrySeq()) {
+ let n = b(e);
+ c(),
+ p(),
+ a("-F"),
+ t instanceof y.Z.File && "string" == typeof t.valueOf()
+ ? i(`${n}=${t.data}${t.type ? `;type=${t.type}` : ""}`)
+ : t instanceof y.Z.File
+ ? i(`${n}=@${t.name}${t.type ? `;type=${t.type}` : ""}`)
+ : i(`${n}=${t}`);
+ }
+ else if (w instanceof y.Z.File)
+ c(), p(), a(`--data-binary '@${w.name}'`);
+ else {
+ c(), p(), a("-d ");
+ let t = w;
+ v.Map.isMap(t)
+ ? a(
+ (function (e) {
+ let t = [];
+ for (let [n, r] of e.get("body").entrySeq()) {
+ let e = b(n);
+ r instanceof y.Z.File
+ ? t.push(
+ ` "${e}": {\n "name": "${r.name}"${
+ r.type ? `,\n "type": "${r.type}"` : ""
+ }\n }`
+ )
+ : t.push(
+ ` "${e}": ${l()(r, null, 2).replace(
+ /(\r\n|\r|\n)/g,
+ "\n "
+ )}`
+ );
+ }
+ return `{\n${t.join(",\n")}\n}`;
+ })(e)
+ )
+ : ("string" != typeof t && (t = l()(t)), a(t));
+ }
+ else w || "POST" !== e.get("method") || (c(), p(), a("-d ''"));
+ return s;
+ },
+ _ = (e) => S(e, x, "`\n", ".exe"),
+ j = (e) => S(e, w, "\\\n"),
+ O = (e) => S(e, E, "^\n");
+ },
+ 86575: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(92135),
+ o = n(4669),
+ s = n(84206);
+ const i = () => ({
+ components: { RequestSnippets: s.default },
+ fn: r,
+ statePlugins: { requestSnippets: { selectors: o } },
+ });
+ },
+ 84206: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => w });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(25110),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294),
+ h = n(27361),
+ f = n.n(h),
+ d = n(23560),
+ m = n.n(d),
+ g = n(74855),
+ y = n(96513);
+ const v = {
+ cursor: "pointer",
+ lineHeight: 1,
+ display: "inline-flex",
+ backgroundColor: "rgb(250, 250, 250)",
+ paddingBottom: "0",
+ paddingTop: "0",
+ border: "1px solid rgb(51, 51, 51)",
+ borderRadius: "4px 4px 0 0",
+ boxShadow: "none",
+ borderBottom: "none",
+ },
+ b = {
+ cursor: "pointer",
+ lineHeight: 1,
+ display: "inline-flex",
+ backgroundColor: "rgb(51, 51, 51)",
+ boxShadow: "none",
+ border: "1px solid rgb(51, 51, 51)",
+ paddingBottom: "0",
+ paddingTop: "0",
+ borderRadius: "4px 4px 0 0",
+ marginTop: "-5px",
+ marginRight: "-5px",
+ marginLeft: "-5px",
+ zIndex: "9999",
+ borderBottom: "none",
+ },
+ w = (e) => {
+ var t, n;
+ let {
+ request: r,
+ requestSnippetsSelectors: s,
+ getConfigs: a,
+ getComponent: c,
+ } = e;
+ const h = m()(a) ? a() : null,
+ d =
+ !1 !== f()(h, "syntaxHighlight") &&
+ f()(h, "syntaxHighlight.activated", !0),
+ w = (0, p.useRef)(null),
+ E = c("ArrowUpIcon"),
+ x = c("ArrowDownIcon"),
+ [S, _] = (0, p.useState)(
+ null === (t = s.getSnippetGenerators()) || void 0 === t
+ ? void 0
+ : t.keySeq().first()
+ ),
+ [j, O] = (0, p.useState)(
+ null == s ? void 0 : s.getDefaultExpanded()
+ );
+ (0, p.useEffect)(() => {}, []),
+ (0, p.useEffect)(() => {
+ var e;
+ const t = o()((e = i()(w.current.childNodes))).call(
+ e,
+ (e) => {
+ var t;
+ return (
+ !!e.nodeType &&
+ (null === (t = e.classList) || void 0 === t
+ ? void 0
+ : t.contains("curl-command"))
+ );
+ }
+ );
+ return (
+ l()(t).call(t, (e) =>
+ e.addEventListener("mousewheel", I, { passive: !1 })
+ ),
+ () => {
+ l()(t).call(t, (e) =>
+ e.removeEventListener("mousewheel", I)
+ );
+ }
+ );
+ }, [r]);
+ const k = s.getSnippetGenerators(),
+ A = k.get(S),
+ C = A.get("fn")(r),
+ P = () => {
+ O(!j);
+ },
+ N = (e) => (e === S ? b : v),
+ I = (e) => {
+ const { target: t, deltaY: n } = e,
+ { scrollHeight: r, offsetHeight: o, scrollTop: s } = t;
+ r > o &&
+ ((0 === s && n < 0) || (o + s >= r && n > 0)) &&
+ e.preventDefault();
+ },
+ T = d
+ ? p.createElement(
+ y.d3,
+ {
+ language: A.get("syntax"),
+ className: "curl microlight",
+ style: (0, y.C2)(f()(h, "syntaxHighlight.theme")),
+ },
+ C
+ )
+ : p.createElement("textarea", {
+ readOnly: !0,
+ className: "curl",
+ value: C,
+ });
+ return p.createElement(
+ "div",
+ { className: "request-snippets", ref: w },
+ p.createElement(
+ "div",
+ {
+ style: {
+ width: "100%",
+ display: "flex",
+ justifyContent: "flex-start",
+ alignItems: "center",
+ marginBottom: "15px",
+ },
+ },
+ p.createElement(
+ "h4",
+ { onClick: () => P(), style: { cursor: "pointer" } },
+ "Snippets"
+ ),
+ p.createElement(
+ "button",
+ {
+ onClick: () => P(),
+ style: { border: "none", background: "none" },
+ title: j ? "Collapse operation" : "Expand operation",
+ },
+ j
+ ? p.createElement(x, {
+ className: "arrow",
+ width: "10",
+ height: "10",
+ })
+ : p.createElement(E, {
+ className: "arrow",
+ width: "10",
+ height: "10",
+ })
+ )
+ ),
+ j &&
+ p.createElement(
+ "div",
+ { className: "curl-command" },
+ p.createElement(
+ "div",
+ {
+ style: {
+ paddingLeft: "15px",
+ paddingRight: "10px",
+ width: "100%",
+ display: "flex",
+ },
+ },
+ u()((n = k.entrySeq())).call(n, (e) => {
+ let [t, n] = e;
+ return p.createElement(
+ "div",
+ {
+ style: N(t),
+ className: "btn",
+ key: t,
+ onClick: () =>
+ ((e) => {
+ S !== e && _(e);
+ })(t),
+ },
+ p.createElement(
+ "h4",
+ { style: t === S ? { color: "white" } : {} },
+ n.get("title")
+ )
+ );
+ })
+ ),
+ p.createElement(
+ "div",
+ { className: "copy-to-clipboard" },
+ p.createElement(
+ g.CopyToClipboard,
+ { text: C },
+ p.createElement("button", null)
+ )
+ ),
+ p.createElement("div", null, T)
+ )
+ );
+ };
+ },
+ 4669: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ getActiveLanguage: () => d,
+ getDefaultExpanded: () => m,
+ getGenerators: () => h,
+ getSnippetGenerators: () => f,
+ });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(20573),
+ u = n(43393);
+ const p = (e) => e || (0, u.Map)(),
+ h = (0, c.P1)(p, (e) => {
+ const t = e.get("languages"),
+ n = e.get("generators", (0, u.Map)());
+ return !t || t.isEmpty()
+ ? n
+ : o()(n).call(n, (e, n) => i()(t).call(t, n));
+ }),
+ f = (e) => (t) => {
+ var n, r;
+ let { fn: s } = t;
+ return o()(
+ (n = l()((r = h(e))).call(r, (e, t) => {
+ const n = ((e) => s[`requestSnippetGenerator_${e}`])(t);
+ return "function" != typeof n ? null : e.set("fn", n);
+ }))
+ ).call(n, (e) => e);
+ },
+ d = (0, c.P1)(p, (e) => e.get("activeLanguage")),
+ m = (0, c.P1)(p, (e) => e.get("defaultExpanded"));
+ },
+ 36195: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { ErrorBoundary: () => i, default: () => a });
+ var r = n(67294),
+ o = n(56189),
+ s = n(29403);
+ class i extends r.Component {
+ static getDerivedStateFromError(e) {
+ return { hasError: !0, error: e };
+ }
+ constructor() {
+ super(...arguments), (this.state = { hasError: !1, error: null });
+ }
+ componentDidCatch(e, t) {
+ this.props.fn.componentDidCatch(e, t);
+ }
+ render() {
+ const {
+ getComponent: e,
+ targetName: t,
+ children: n,
+ } = this.props;
+ if (this.state.hasError) {
+ const n = e("Fallback");
+ return r.createElement(n, { name: t });
+ }
+ return n;
+ }
+ }
+ i.defaultProps = {
+ targetName: "this component",
+ getComponent: () => s.default,
+ fn: { componentDidCatch: o.componentDidCatch },
+ children: null,
+ };
+ const a = i;
+ },
+ 29403: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { name: t } = e;
+ return r.createElement(
+ "div",
+ { className: "fallback" },
+ "😱 ",
+ r.createElement(
+ "i",
+ null,
+ "Could not render ",
+ "t" === t ? "this component" : t,
+ ", see the console."
+ )
+ );
+ };
+ },
+ 56189: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, { componentDidCatch: () => i, withErrorBoundary: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = console.error,
+ a = (e) => (t) => {
+ const { getComponent: n, fn: r } = e(),
+ i = n("ErrorBoundary"),
+ a = r.getDisplayName(t);
+ class l extends s.Component {
+ render() {
+ return s.createElement(
+ i,
+ { targetName: a, getComponent: n, fn: r },
+ s.createElement(t, o()({}, this.props, this.context))
+ );
+ }
+ }
+ var c;
+ return (
+ (l.displayName = `WithErrorBoundary(${a})`),
+ (c = t).prototype &&
+ c.prototype.isReactComponent &&
+ (l.prototype.mapStateToProps = t.prototype.mapStateToProps),
+ l
+ );
+ };
+ },
+ 27621: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(47475),
+ o = n.n(r),
+ s = n(7287),
+ i = n.n(s),
+ a = n(36195),
+ l = n(29403),
+ c = n(56189);
+ const u = function () {
+ let { componentList: e = [], fullOverride: t = !1 } =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ return (n) => {
+ var r;
+ let { getSystem: s } = n;
+ const u = t
+ ? e
+ : [
+ "App",
+ "BaseLayout",
+ "VersionPragmaFilter",
+ "InfoContainer",
+ "ServersContainer",
+ "SchemesContainer",
+ "AuthorizeBtnContainer",
+ "FilterContainer",
+ "Operations",
+ "OperationContainer",
+ "parameters",
+ "responses",
+ "OperationServers",
+ "Models",
+ "ModelWrapper",
+ ...e,
+ ],
+ p = i()(
+ u,
+ o()((r = Array(u.length))).call(r, (e, t) => {
+ let { fn: n } = t;
+ return n.withErrorBoundary(e);
+ })
+ );
+ return {
+ fn: {
+ componentDidCatch: c.componentDidCatch,
+ withErrorBoundary: (0, c.withErrorBoundary)(s),
+ },
+ components: { ErrorBoundary: a.default, Fallback: l.default },
+ wrapComponents: p,
+ };
+ };
+ };
+ },
+ 72846: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(24282),
+ o = n.n(r),
+ s = n(35627),
+ i = n.n(s),
+ a = n(59704),
+ l = n.n(a);
+ const c = [{ when: /json/, shouldStringifyTypes: ["string"] }],
+ u = ["object"],
+ p = (e) => (t, n, r, s) => {
+ const { fn: a } = e(),
+ p = a.memoizedSampleFromSchema(t, n, s),
+ h = typeof p,
+ f = o()(c).call(
+ c,
+ (e, t) =>
+ t.when.test(r) ? [...e, ...t.shouldStringifyTypes] : e,
+ u
+ );
+ return l()(f, (e) => e === h) ? i()(p, null, 2) : p;
+ };
+ },
+ 16132: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) =>
+ function (t) {
+ var n, r;
+ let o =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "",
+ s =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {},
+ i =
+ arguments.length > 3 && void 0 !== arguments[3]
+ ? arguments[3]
+ : void 0;
+ const { fn: a } = e();
+ return (
+ "function" ==
+ typeof (null === (n = t) || void 0 === n ? void 0 : n.toJS) &&
+ (t = t.toJS()),
+ "function" ==
+ typeof (null === (r = i) || void 0 === r ? void 0 : r.toJS) &&
+ (i = i.toJS()),
+ /xml/.test(o)
+ ? a.getXmlSampleSchema(t, s, i)
+ : /(yaml|yml)/.test(o)
+ ? a.getYamlSampleSchema(t, s, o, i)
+ : a.getJsonSampleSchema(t, s, o, i)
+ );
+ };
+ },
+ 81169: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) => (t, n, r) => {
+ const { fn: o } = e();
+ if ((t && !t.xml && (t.xml = {}), t && !t.xml.name)) {
+ if (
+ !t.$$ref &&
+ (t.type || t.items || t.properties || t.additionalProperties)
+ )
+ return '\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';
+ if (t.$$ref) {
+ let e = t.$$ref.match(/\S*\/(\S+)$/);
+ t.xml.name = e[1];
+ }
+ }
+ return o.memoizedCreateXMLExample(t, n, r);
+ };
+ },
+ 79431: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(1272);
+ const i = (e) => (t, n, r, i) => {
+ const { fn: a } = e(),
+ l = a.getJsonSampleSchema(t, n, r, i);
+ let c;
+ try {
+ (c = s.ZP.dump(
+ s.ZP.load(l),
+ { lineWidth: -1 },
+ { schema: s.A8 }
+ )),
+ "\n" === c[c.length - 1] &&
+ (c = o()(c).call(c, 0, c.length - 1));
+ } catch (e) {
+ return console.error(e), "error: could not generate yaml example";
+ }
+ return c.replace(/\t/g, " ");
+ };
+ },
+ 29812: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => q,
+ inferSchema: () => $,
+ memoizedCreateXMLExample: () => V,
+ memoizedSampleFromSchema: () => W,
+ sampleFromSchema: () => U,
+ sampleFromSchemaGeneric: () => B,
+ });
+ var r = n(11882),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(92039),
+ h = n.n(p),
+ f = n(24278),
+ d = n.n(f),
+ m = n(51679),
+ g = n.n(m),
+ y = n(39022),
+ v = n.n(y),
+ b = n(97606),
+ w = n.n(b),
+ E = n(35627),
+ x = n.n(E),
+ S = n(53479),
+ _ = n.n(S),
+ j = n(14419),
+ O = n.n(j),
+ k = n(41609),
+ A = n.n(k),
+ C = n(90242),
+ P = n(60314);
+ const N = {
+ string: (e) =>
+ e.pattern
+ ? ((e) => {
+ try {
+ return new (O())(e).gen();
+ } catch (e) {
+ return "string";
+ }
+ })(e.pattern)
+ : "string",
+ string_email: () => "user@example.com",
+ "string_date-time": () => new Date().toISOString(),
+ string_date: () => new Date().toISOString().substring(0, 10),
+ string_uuid: () => "3fa85f64-5717-4562-b3fc-2c963f66afa6",
+ string_hostname: () => "example.com",
+ string_ipv4: () => "198.51.100.42",
+ string_ipv6: () => "2001:0db8:5b96:0000:0000:426f:8e17:642a",
+ number: () => 0,
+ number_float: () => 0,
+ integer: () => 0,
+ boolean: (e) => "boolean" != typeof e.default || e.default,
+ },
+ I = (e) => {
+ e = (0, C.mz)(e);
+ let { type: t, format: n } = e,
+ r = N[`${t}_${n}`] || N[t];
+ return (0, C.Wl)(r) ? r(e) : "Unknown Type: " + e.type;
+ },
+ T = (e) =>
+ (0, C.XV)(
+ e,
+ "$$ref",
+ (e) => "string" == typeof e && o()(e).call(e, "#") > -1
+ ),
+ R = ["maxProperties", "minProperties"],
+ M = ["minItems", "maxItems"],
+ D = ["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum"],
+ F = ["minLength", "maxLength"],
+ L = function (e, t) {
+ var n;
+ let r =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ var s;
+ (i()(
+ (n = [
+ "example",
+ "default",
+ "enum",
+ "xml",
+ "type",
+ ...R,
+ ...M,
+ ...D,
+ ...F,
+ ])
+ ).call(n, (n) =>
+ ((n) => {
+ void 0 === t[n] && void 0 !== e[n] && (t[n] = e[n]);
+ })(n)
+ ),
+ void 0 !== e.required && l()(e.required)) &&
+ ((void 0 !== t.required && t.required.length) ||
+ (t.required = []),
+ i()((s = e.required)).call(s, (e) => {
+ var n;
+ u()((n = t.required)).call(n, e) || t.required.push(e);
+ }));
+ if (e.properties) {
+ t.properties || (t.properties = {});
+ let n = (0, C.mz)(e.properties);
+ for (let s in n) {
+ var a;
+ if (Object.prototype.hasOwnProperty.call(n, s))
+ if (!n[s] || !n[s].deprecated)
+ if (!n[s] || !n[s].readOnly || r.includeReadOnly)
+ if (!n[s] || !n[s].writeOnly || r.includeWriteOnly)
+ if (!t.properties[s])
+ (t.properties[s] = n[s]),
+ !e.required &&
+ l()(e.required) &&
+ -1 !== o()((a = e.required)).call(a, s) &&
+ (t.required
+ ? t.required.push(s)
+ : (t.required = [s]));
+ }
+ }
+ return (
+ e.items &&
+ (t.items || (t.items = {}),
+ (t.items = L(e.items, t.items, r))),
+ t
+ );
+ },
+ B = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {},
+ n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : void 0,
+ r =
+ arguments.length > 3 &&
+ void 0 !== arguments[3] &&
+ arguments[3];
+ e && (0, C.Wl)(e.toJS) && (e = e.toJS());
+ let s =
+ void 0 !== n ||
+ (e && void 0 !== e.example) ||
+ (e && void 0 !== e.default);
+ const a = !s && e && e.oneOf && e.oneOf.length > 0,
+ c = !s && e && e.anyOf && e.anyOf.length > 0;
+ if (!s && (a || c)) {
+ const n = (0, C.mz)(a ? e.oneOf[0] : e.anyOf[0]);
+ if (
+ (L(n, e, t),
+ !e.xml && n.xml && (e.xml = n.xml),
+ void 0 !== e.example && void 0 !== n.example)
+ )
+ s = !0;
+ else if (n.properties) {
+ e.properties || (e.properties = {});
+ let r = (0, C.mz)(n.properties);
+ for (let s in r) {
+ var p;
+ if (Object.prototype.hasOwnProperty.call(r, s))
+ if (!r[s] || !r[s].deprecated)
+ if (!r[s] || !r[s].readOnly || t.includeReadOnly)
+ if (!r[s] || !r[s].writeOnly || t.includeWriteOnly)
+ if (!e.properties[s])
+ (e.properties[s] = r[s]),
+ !n.required &&
+ l()(n.required) &&
+ -1 !== o()((p = n.required)).call(p, s) &&
+ (e.required
+ ? e.required.push(s)
+ : (e.required = [s]));
+ }
+ }
+ }
+ const f = {};
+ let {
+ xml: m,
+ type: y,
+ example: b,
+ properties: E,
+ additionalProperties: x,
+ items: S,
+ } = e || {},
+ { includeReadOnly: _, includeWriteOnly: j } = t;
+ m = m || {};
+ let O,
+ { name: k, prefix: P, namespace: N } = m,
+ F = {};
+ if (
+ r &&
+ ((k = k || "notagname"), (O = (P ? P + ":" : "") + k), N)
+ ) {
+ f[P ? "xmlns:" + P : "xmlns"] = N;
+ }
+ r && (F[O] = []);
+ const $ = (t) =>
+ h()(t).call(t, (t) =>
+ Object.prototype.hasOwnProperty.call(e, t)
+ );
+ e &&
+ !y &&
+ (E || x || $(R)
+ ? (y = "object")
+ : S || $(M)
+ ? (y = "array")
+ : $(D)
+ ? ((y = "number"), (e.type = "number"))
+ : s || e.enum || ((y = "string"), (e.type = "string")));
+ const q = (t) => {
+ var n, r, o, s, i;
+ null !==
+ (null === (n = e) || void 0 === n ? void 0 : n.maxItems) &&
+ void 0 !==
+ (null === (r = e) || void 0 === r
+ ? void 0
+ : r.maxItems) &&
+ (t = d()(t).call(
+ t,
+ 0,
+ null === (i = e) || void 0 === i ? void 0 : i.maxItems
+ ));
+ if (
+ null !==
+ (null === (o = e) || void 0 === o
+ ? void 0
+ : o.minItems) &&
+ void 0 !==
+ (null === (s = e) || void 0 === s ? void 0 : s.minItems)
+ ) {
+ let n = 0;
+ for (
+ ;
+ t.length <
+ (null === (a = e) || void 0 === a ? void 0 : a.minItems);
+
+ ) {
+ var a;
+ t.push(t[n++ % t.length]);
+ }
+ }
+ return t;
+ },
+ U = (0, C.mz)(E);
+ let z,
+ V = 0;
+ const W = () =>
+ e &&
+ null !== e.maxProperties &&
+ void 0 !== e.maxProperties &&
+ V >= e.maxProperties,
+ J = (t) =>
+ !e ||
+ null === e.maxProperties ||
+ void 0 === e.maxProperties ||
+ (!W() &&
+ (!((t) => {
+ var n;
+ return !(
+ e &&
+ e.required &&
+ e.required.length &&
+ u()((n = e.required)).call(n, t)
+ );
+ })(t) ||
+ e.maxProperties -
+ V -
+ (() => {
+ if (!e || !e.required) return 0;
+ let t = 0;
+ var n, o;
+ return (
+ r
+ ? i()((n = e.required)).call(
+ n,
+ (e) => (t += void 0 === F[e] ? 0 : 1)
+ )
+ : i()((o = e.required)).call(o, (e) => {
+ var n;
+ return (t +=
+ void 0 ===
+ (null === (n = F[O]) || void 0 === n
+ ? void 0
+ : g()(n).call(n, (t) => void 0 !== t[e]))
+ ? 0
+ : 1);
+ }),
+ e.required.length - t
+ );
+ })() >
+ 0));
+ if (
+ ((z = r
+ ? function (n) {
+ let o =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : void 0;
+ if (e && U[n]) {
+ if (((U[n].xml = U[n].xml || {}), U[n].xml.attribute)) {
+ const e = l()(U[n].enum) ? U[n].enum[0] : void 0,
+ t = U[n].example,
+ r = U[n].default;
+ return void (f[U[n].xml.name || n] =
+ void 0 !== t
+ ? t
+ : void 0 !== r
+ ? r
+ : void 0 !== e
+ ? e
+ : I(U[n]));
+ }
+ U[n].xml.name = U[n].xml.name || n;
+ } else U[n] || !1 === x || (U[n] = { xml: { name: n } });
+ let s = B((e && U[n]) || void 0, t, o, r);
+ var i;
+ J(n) &&
+ (V++,
+ l()(s)
+ ? (F[O] = v()((i = F[O])).call(i, s))
+ : F[O].push(s));
+ }
+ : (n, o) => {
+ if (J(n)) {
+ if (
+ Object.prototype.hasOwnProperty.call(
+ e,
+ "discriminator"
+ ) &&
+ e.discriminator &&
+ Object.prototype.hasOwnProperty.call(
+ e.discriminator,
+ "mapping"
+ ) &&
+ e.discriminator.mapping &&
+ Object.prototype.hasOwnProperty.call(e, "$$ref") &&
+ e.$$ref &&
+ e.discriminator.propertyName === n
+ ) {
+ for (let t in e.discriminator.mapping)
+ if (
+ -1 !== e.$$ref.search(e.discriminator.mapping[t])
+ ) {
+ F[n] = t;
+ break;
+ }
+ } else F[n] = B(U[n], t, o, r);
+ V++;
+ }
+ }),
+ s)
+ ) {
+ let o;
+ if (
+ ((o = T(void 0 !== n ? n : void 0 !== b ? b : e.default)), !r)
+ ) {
+ if ("number" == typeof o && "string" === y) return `${o}`;
+ if ("string" != typeof o || "string" === y) return o;
+ try {
+ return JSON.parse(o);
+ } catch (e) {
+ return o;
+ }
+ }
+ if ((e || (y = l()(o) ? "array" : typeof o), "array" === y)) {
+ if (!l()(o)) {
+ if ("string" == typeof o) return o;
+ o = [o];
+ }
+ const n = e ? e.items : void 0;
+ n &&
+ ((n.xml = n.xml || m || {}),
+ (n.xml.name = n.xml.name || m.name));
+ let s = w()(o).call(o, (e) => B(n, t, e, r));
+ return (
+ (s = q(s)),
+ m.wrapped
+ ? ((F[O] = s), A()(f) || F[O].push({ _attr: f }))
+ : (F = s),
+ F
+ );
+ }
+ if ("object" === y) {
+ if ("string" == typeof o) return o;
+ for (let t in o)
+ Object.prototype.hasOwnProperty.call(o, t) &&
+ ((e && U[t] && U[t].readOnly && !_) ||
+ (e && U[t] && U[t].writeOnly && !j) ||
+ (e && U[t] && U[t].xml && U[t].xml.attribute
+ ? (f[U[t].xml.name || t] = o[t])
+ : z(t, o[t])));
+ return A()(f) || F[O].push({ _attr: f }), F;
+ }
+ return (F[O] = A()(f) ? o : [{ _attr: f }, o]), F;
+ }
+ if ("object" === y) {
+ for (let e in U)
+ Object.prototype.hasOwnProperty.call(U, e) &&
+ ((U[e] && U[e].deprecated) ||
+ (U[e] && U[e].readOnly && !_) ||
+ (U[e] && U[e].writeOnly && !j) ||
+ z(e));
+ if ((r && f && F[O].push({ _attr: f }), W())) return F;
+ if (!0 === x)
+ r
+ ? F[O].push({ additionalProp: "Anything can be here" })
+ : (F.additionalProp1 = {}),
+ V++;
+ else if (x) {
+ const n = (0, C.mz)(x),
+ o = B(n, t, void 0, r);
+ if (r && n.xml && n.xml.name && "notagname" !== n.xml.name)
+ F[O].push(o);
+ else {
+ const t =
+ null !== e.minProperties &&
+ void 0 !== e.minProperties &&
+ V < e.minProperties
+ ? e.minProperties - V
+ : 3;
+ for (let e = 1; e <= t; e++) {
+ if (W()) return F;
+ if (r) {
+ const t = {};
+ (t["additionalProp" + e] = o.notagname), F[O].push(t);
+ } else F["additionalProp" + e] = o;
+ V++;
+ }
+ }
+ }
+ return F;
+ }
+ if ("array" === y) {
+ if (!S) return;
+ let n;
+ var K, H;
+ if (r)
+ (S.xml =
+ S.xml ||
+ (null === (K = e) || void 0 === K ? void 0 : K.xml) ||
+ {}),
+ (S.xml.name = S.xml.name || m.name);
+ if (l()(S.anyOf))
+ n = w()((H = S.anyOf)).call(H, (e) =>
+ B(L(S, e, t), t, void 0, r)
+ );
+ else if (l()(S.oneOf)) {
+ var G;
+ n = w()((G = S.oneOf)).call(G, (e) =>
+ B(L(S, e, t), t, void 0, r)
+ );
+ } else {
+ if (!(!r || (r && m.wrapped))) return B(S, t, void 0, r);
+ n = [B(S, t, void 0, r)];
+ }
+ return (
+ (n = q(n)),
+ r && m.wrapped
+ ? ((F[O] = n), A()(f) || F[O].push({ _attr: f }), F)
+ : n
+ );
+ }
+ let Z;
+ if (e && l()(e.enum)) Z = (0, C.AF)(e.enum)[0];
+ else {
+ if (!e) return;
+ if (((Z = I(e)), "number" == typeof Z)) {
+ let t = e.minimum;
+ null != t && (e.exclusiveMinimum && t++, (Z = t));
+ let n = e.maximum;
+ null != n && (e.exclusiveMaximum && n--, (Z = n));
+ }
+ if (
+ "string" == typeof Z &&
+ (null !== e.maxLength &&
+ void 0 !== e.maxLength &&
+ (Z = d()(Z).call(Z, 0, e.maxLength)),
+ null !== e.minLength && void 0 !== e.minLength)
+ ) {
+ let t = 0;
+ for (; Z.length < e.minLength; ) Z += Z[t++ % Z.length];
+ }
+ }
+ if ("file" !== y)
+ return r ? ((F[O] = A()(f) ? Z : [{ _attr: f }, Z]), F) : Z;
+ },
+ $ = (e) => (
+ e.schema && (e = e.schema), e.properties && (e.type = "object"), e
+ ),
+ q = (e, t, n) => {
+ const r = B(e, t, n, !0);
+ if (r)
+ return "string" == typeof r
+ ? r
+ : _()(r, { declaration: !0, indent: "\t" });
+ },
+ U = (e, t, n) => B(e, t, n, !1),
+ z = (e, t, n) => [e, x()(t), x()(n)],
+ V = (0, P.Z)(q, z),
+ W = (0, P.Z)(U, z);
+ },
+ 8883: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(29812),
+ o = n(72846),
+ s = n(79431),
+ i = n(81169),
+ a = n(16132);
+ const l = (e) => {
+ let { getSystem: t } = e;
+ return {
+ fn: {
+ inferSchema: r.inferSchema,
+ sampleFromSchema: r.sampleFromSchema,
+ sampleFromSchemaGeneric: r.sampleFromSchemaGeneric,
+ createXMLExample: r.createXMLExample,
+ memoizedSampleFromSchema: r.memoizedSampleFromSchema,
+ memoizedCreateXMLExample: r.memoizedCreateXMLExample,
+ getJsonSampleSchema: (0, o.default)(t),
+ getYamlSampleSchema: (0, s.default)(t),
+ getXmlSampleSchema: (0, i.default)(t),
+ getSampleSchema: (0, a.default)(t),
+ },
+ };
+ };
+ },
+ 51228: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ CLEAR_REQUEST: () => oe,
+ CLEAR_RESPONSE: () => re,
+ CLEAR_VALIDATE_PARAMS: () => se,
+ LOG_REQUEST: () => ne,
+ SET_MUTATED_REQUEST: () => te,
+ SET_REQUEST: () => ee,
+ SET_RESPONSE: () => Q,
+ SET_SCHEME: () => ce,
+ UPDATE_EMPTY_PARAM_INCLUSION: () => Y,
+ UPDATE_JSON: () => G,
+ UPDATE_OPERATION_META_VALUE: () => ie,
+ UPDATE_PARAM: () => Z,
+ UPDATE_RESOLVED: () => ae,
+ UPDATE_RESOLVED_SUBTREE: () => le,
+ UPDATE_SPEC: () => K,
+ UPDATE_URL: () => H,
+ VALIDATE_PARAMS: () => X,
+ changeConsumesValue: () => Ae,
+ changeParam: () => Ee,
+ changeParamByIdentity: () => xe,
+ changeProducesValue: () => Ce,
+ clearRequest: () => Fe,
+ clearResponse: () => De,
+ clearValidateParams: () => ke,
+ execute: () => Me,
+ executeRequest: () => Re,
+ invalidateResolvedSubtreeCache: () => _e,
+ logRequest: () => Te,
+ parseToJson: () => me,
+ requestResolvedSubtree: () => we,
+ resolveSpec: () => ye,
+ setMutatedRequest: () => Ie,
+ setRequest: () => Ne,
+ setResponse: () => Pe,
+ setScheme: () => Le,
+ updateEmptyParamInclusion: () => Oe,
+ updateJsonSpec: () => de,
+ updateResolved: () => he,
+ updateResolvedSubtree: () => Se,
+ updateSpec: () => pe,
+ updateUrl: () => fe,
+ validateParams: () => je,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(96718),
+ l = n.n(a),
+ c = n(24282),
+ u = n.n(c),
+ p = n(18492),
+ h = n.n(p),
+ f = n(86),
+ d = n.n(f),
+ m = n(2250),
+ g = n.n(m),
+ y = n(6226),
+ v = n.n(y),
+ b = n(14418),
+ w = n.n(b),
+ E = n(3665),
+ x = n.n(E),
+ S = n(51679),
+ _ = n.n(S),
+ j = n(28222),
+ O = n.n(j),
+ k = n(76986),
+ A = n.n(k),
+ C = n(70586),
+ P = n.n(C),
+ N = n(1272),
+ I = n(43393),
+ T = n(84564),
+ R = n.n(T),
+ M = n(7710),
+ D = n(47037),
+ F = n.n(D),
+ L = n(23279),
+ B = n.n(L),
+ $ = n(36968),
+ q = n.n($),
+ U = n(72700),
+ z = n.n(U),
+ V = n(75703),
+ W = n.n(V),
+ J = n(90242);
+ const K = "spec_update_spec",
+ H = "spec_update_url",
+ G = "spec_update_json",
+ Z = "spec_update_param",
+ Y = "spec_update_empty_param_inclusion",
+ X = "spec_validate_param",
+ Q = "spec_set_response",
+ ee = "spec_set_request",
+ te = "spec_set_mutated_request",
+ ne = "spec_log_request",
+ re = "spec_clear_response",
+ oe = "spec_clear_request",
+ se = "spec_clear_validate_param",
+ ie = "spec_update_operation_meta_value",
+ ae = "spec_update_resolved",
+ le = "spec_update_resolved_subtree",
+ ce = "set_scheme",
+ ue = (e) => (F()(e) ? e : "");
+ function pe(e) {
+ const t = ue(e).replace(/\t/g, " ");
+ if ("string" == typeof e) return { type: K, payload: t };
+ }
+ function he(e) {
+ return { type: ae, payload: e };
+ }
+ function fe(e) {
+ return { type: H, payload: e };
+ }
+ function de(e) {
+ return { type: G, payload: e };
+ }
+ const me = (e) => (t) => {
+ let { specActions: n, specSelectors: r, errActions: o } = t,
+ { specStr: s } = r,
+ i = null;
+ try {
+ (e = e || s()),
+ o.clear({ source: "parser" }),
+ (i = N.ZP.load(e, { schema: N.A8 }));
+ } catch (e) {
+ return (
+ console.error(e),
+ o.newSpecErr({
+ source: "parser",
+ level: "error",
+ message: e.reason,
+ line: e.mark && e.mark.line ? e.mark.line + 1 : void 0,
+ })
+ );
+ }
+ return i && "object" == typeof i ? n.updateJsonSpec(i) : {};
+ };
+ let ge = !1;
+ const ye = (e, t) => (n) => {
+ let {
+ specActions: r,
+ specSelectors: s,
+ errActions: a,
+ fn: { fetch: c, resolve: u, AST: p = {} },
+ getConfigs: h,
+ } = n;
+ ge ||
+ (console.warn(
+ "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"
+ ),
+ (ge = !0));
+ const {
+ modelPropertyMacro: f,
+ parameterMacro: d,
+ requestInterceptor: m,
+ responseInterceptor: g,
+ } = h();
+ void 0 === e && (e = s.specJson()), void 0 === t && (t = s.url());
+ let y = p.getLineNumberForPath ? p.getLineNumberForPath : () => {},
+ v = s.specStr();
+ return u({
+ fetch: c,
+ spec: e,
+ baseDoc: t,
+ modelPropertyMacro: f,
+ parameterMacro: d,
+ requestInterceptor: m,
+ responseInterceptor: g,
+ }).then((e) => {
+ let { spec: t, errors: n } = e;
+ if ((a.clear({ type: "thrown" }), o()(n) && n.length > 0)) {
+ let e = i()(n).call(
+ n,
+ (e) => (
+ console.error(e),
+ (e.line = e.fullPath ? y(v, e.fullPath) : null),
+ (e.path = e.fullPath ? e.fullPath.join(".") : null),
+ (e.level = "error"),
+ (e.type = "thrown"),
+ (e.source = "resolver"),
+ l()(e, "message", { enumerable: !0, value: e.message }),
+ e
+ )
+ );
+ a.newThrownErrBatch(e);
+ }
+ return r.updateResolved(t);
+ });
+ };
+ let ve = [];
+ const be = B()(() => {
+ const e = u()(ve).call(
+ ve,
+ (e, t) => {
+ let { path: n, system: r } = t;
+ return e.has(r) || e.set(r, []), e.get(r).push(n), e;
+ },
+ new (h())()
+ );
+ (ve = []),
+ d()(e).call(e, async (e, t) => {
+ if (!t)
+ return void console.error(
+ "debResolveSubtrees: don't have a system to operate on, aborting."
+ );
+ if (!t.fn.resolveSubtree)
+ return void console.error(
+ "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing."
+ );
+ const {
+ errActions: n,
+ errSelectors: r,
+ fn: { resolveSubtree: s, fetch: a, AST: c = {} },
+ specSelectors: p,
+ specActions: h,
+ } = t,
+ f = c.getLineNumberForPath ?? W()(void 0),
+ d = p.specStr(),
+ {
+ modelPropertyMacro: m,
+ parameterMacro: y,
+ requestInterceptor: b,
+ responseInterceptor: E,
+ } = t.getConfigs();
+ try {
+ const t = await u()(e).call(
+ e,
+ async (e, t) => {
+ let { resultMap: c, specWithCurrentSubtrees: u } =
+ await e;
+ const { errors: h, spec: S } = await s(u, t, {
+ baseDoc: p.url(),
+ modelPropertyMacro: m,
+ parameterMacro: y,
+ requestInterceptor: b,
+ responseInterceptor: E,
+ });
+ if (
+ (r.allErrors().size &&
+ n.clearBy((e) => {
+ var n;
+ return (
+ "thrown" !== e.get("type") ||
+ "resolver" !== e.get("source") ||
+ !g()((n = e.get("fullPath"))).call(
+ n,
+ (e, n) => e === t[n] || void 0 === t[n]
+ )
+ );
+ }),
+ o()(h) && h.length > 0)
+ ) {
+ let e = i()(h).call(
+ h,
+ (e) => (
+ (e.line = e.fullPath ? f(d, e.fullPath) : null),
+ (e.path = e.fullPath
+ ? e.fullPath.join(".")
+ : null),
+ (e.level = "error"),
+ (e.type = "thrown"),
+ (e.source = "resolver"),
+ l()(e, "message", {
+ enumerable: !0,
+ value: e.message,
+ }),
+ e
+ )
+ );
+ n.newThrownErrBatch(e);
+ }
+ var _, j;
+ S &&
+ p.isOAS3() &&
+ "components" === t[0] &&
+ "securitySchemes" === t[1] &&
+ (await v().all(
+ i()(
+ (_ = w()((j = x()(S))).call(
+ j,
+ (e) => "openIdConnect" === e.type
+ ))
+ ).call(_, async (e) => {
+ const t = {
+ url: e.openIdConnectUrl,
+ requestInterceptor: b,
+ responseInterceptor: E,
+ };
+ try {
+ const n = await a(t);
+ n instanceof Error || n.status >= 400
+ ? console.error(n.statusText + " " + t.url)
+ : (e.openIdConnectData = JSON.parse(n.text));
+ } catch (e) {
+ console.error(e);
+ }
+ })
+ ));
+ return (
+ q()(c, t, S),
+ (u = z()(t, S, u)),
+ { resultMap: c, specWithCurrentSubtrees: u }
+ );
+ },
+ v().resolve({
+ resultMap: (
+ p.specResolvedSubtree([]) || (0, I.Map)()
+ ).toJS(),
+ specWithCurrentSubtrees: p.specJS(),
+ })
+ );
+ h.updateResolvedSubtree([], t.resultMap);
+ } catch (e) {
+ console.error(e);
+ }
+ });
+ }, 35),
+ we = (e) => (t) => {
+ _()(ve).call(ve, (n) => {
+ let { path: r, system: o } = n;
+ return o === t && r.toString() === e.toString();
+ }) || (ve.push({ path: e, system: t }), be());
+ };
+ function Ee(e, t, n, r, o) {
+ return {
+ type: Z,
+ payload: {
+ path: e,
+ value: r,
+ paramName: t,
+ paramIn: n,
+ isXml: o,
+ },
+ };
+ }
+ function xe(e, t, n, r) {
+ return {
+ type: Z,
+ payload: { path: e, param: t, value: n, isXml: r },
+ };
+ }
+ const Se = (e, t) => ({ type: le, payload: { path: e, value: t } }),
+ _e = () => ({
+ type: le,
+ payload: { path: [], value: (0, I.Map)() },
+ }),
+ je = (e, t) => ({ type: X, payload: { pathMethod: e, isOAS3: t } }),
+ Oe = (e, t, n, r) => ({
+ type: Y,
+ payload: {
+ pathMethod: e,
+ paramName: t,
+ paramIn: n,
+ includeEmptyValue: r,
+ },
+ });
+ function ke(e) {
+ return { type: se, payload: { pathMethod: e } };
+ }
+ function Ae(e, t) {
+ return {
+ type: ie,
+ payload: { path: e, value: t, key: "consumes_value" },
+ };
+ }
+ function Ce(e, t) {
+ return {
+ type: ie,
+ payload: { path: e, value: t, key: "produces_value" },
+ };
+ }
+ const Pe = (e, t, n) => ({
+ payload: { path: e, method: t, res: n },
+ type: Q,
+ }),
+ Ne = (e, t, n) => ({
+ payload: { path: e, method: t, req: n },
+ type: ee,
+ }),
+ Ie = (e, t, n) => ({
+ payload: { path: e, method: t, req: n },
+ type: te,
+ }),
+ Te = (e) => ({ payload: e, type: ne }),
+ Re = (e) => (t) => {
+ let {
+ fn: n,
+ specActions: r,
+ specSelectors: s,
+ getConfigs: a,
+ oas3Selectors: l,
+ } = t,
+ { pathName: c, method: u, operation: p } = e,
+ { requestInterceptor: h, responseInterceptor: f } = a(),
+ m = p.toJS();
+ var g, y;
+ p &&
+ p.get("parameters") &&
+ d()(
+ (g = w()((y = p.get("parameters"))).call(
+ y,
+ (e) => e && !0 === e.get("allowEmptyValue")
+ ))
+ ).call(g, (t) => {
+ if (
+ s.parameterInclusionSettingFor(
+ [c, u],
+ t.get("name"),
+ t.get("in")
+ )
+ ) {
+ e.parameters = e.parameters || {};
+ const n = (0, J.cz)(t, e.parameters);
+ (!n || (n && 0 === n.size)) &&
+ (e.parameters[t.get("name")] = "");
+ }
+ });
+ if (
+ ((e.contextUrl = R()(s.url()).toString()),
+ m && m.operationId
+ ? (e.operationId = m.operationId)
+ : m && c && u && (e.operationId = n.opId(m, c, u)),
+ s.isOAS3())
+ ) {
+ const t = `${c}:${u}`;
+ e.server = l.selectedServer(t) || l.selectedServer();
+ const n = l
+ .serverVariables({ server: e.server, namespace: t })
+ .toJS(),
+ r = l.serverVariables({ server: e.server }).toJS();
+ (e.serverVariables = O()(n).length ? n : r),
+ (e.requestContentType = l.requestContentType(c, u)),
+ (e.responseContentType =
+ l.responseContentType(c, u) || "*/*");
+ const s = l.requestBodyValue(c, u),
+ a = l.requestBodyInclusionSetting(c, u);
+ var v;
+ if (s && s.toJS)
+ e.requestBody = w()(
+ (v = i()(s).call(s, (e) =>
+ I.Map.isMap(e) ? e.get("value") : e
+ ))
+ )
+ .call(
+ v,
+ (e, t) =>
+ (o()(e) ? 0 !== e.length : !(0, J.O2)(e)) || a.get(t)
+ )
+ .toJS();
+ else e.requestBody = s;
+ }
+ let b = A()({}, e);
+ (b = n.buildRequest(b)), r.setRequest(e.pathName, e.method, b);
+ (e.requestInterceptor = async (t) => {
+ let n = await h.apply(void 0, [t]),
+ o = A()({}, n);
+ return r.setMutatedRequest(e.pathName, e.method, o), n;
+ }),
+ (e.responseInterceptor = f);
+ const E = P()();
+ return n
+ .execute(e)
+ .then((t) => {
+ (t.duration = P()() - E),
+ r.setResponse(e.pathName, e.method, t);
+ })
+ .catch((t) => {
+ "Failed to fetch" === t.message &&
+ ((t.name = ""),
+ (t.message =
+ '**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.')),
+ r.setResponse(e.pathName, e.method, {
+ error: !0,
+ err: (0, M.serializeError)(t),
+ });
+ });
+ },
+ Me = function () {
+ let {
+ path: e,
+ method: t,
+ ...n
+ } = arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ return (r) => {
+ let {
+ fn: { fetch: o },
+ specSelectors: s,
+ specActions: i,
+ } = r,
+ a = s.specJsonWithResolvedSubtrees().toJS(),
+ l = s.operationScheme(e, t),
+ { requestContentType: c, responseContentType: u } = s
+ .contentTypeValues([e, t])
+ .toJS(),
+ p = /xml/i.test(c),
+ h = s.parameterValues([e, t], p).toJS();
+ return i.executeRequest({
+ ...n,
+ fetch: o,
+ spec: a,
+ pathName: e,
+ method: t,
+ parameters: h,
+ requestContentType: c,
+ scheme: l,
+ responseContentType: u,
+ });
+ };
+ };
+ function De(e, t) {
+ return { type: re, payload: { path: e, method: t } };
+ }
+ function Fe(e, t) {
+ return { type: oe, payload: { path: e, method: t } };
+ }
+ function Le(e, t, n) {
+ return { type: ce, payload: { scheme: e, path: t, method: n } };
+ }
+ },
+ 37038: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(20032),
+ o = n(51228),
+ s = n(33881),
+ i = n(77508);
+ function a() {
+ return {
+ statePlugins: {
+ spec: {
+ wrapActions: i,
+ reducers: r.default,
+ actions: o,
+ selectors: s,
+ },
+ },
+ };
+ }
+ },
+ 20032: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(24282),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(76986),
+ l = n.n(a),
+ c = n(43393),
+ u = n(90242),
+ p = n(27504),
+ h = n(33881),
+ f = n(51228);
+ const d = {
+ [f.UPDATE_SPEC]: (e, t) =>
+ "string" == typeof t.payload ? e.set("spec", t.payload) : e,
+ [f.UPDATE_URL]: (e, t) => e.set("url", t.payload + ""),
+ [f.UPDATE_JSON]: (e, t) => e.set("json", (0, u.oG)(t.payload)),
+ [f.UPDATE_RESOLVED]: (e, t) =>
+ e.setIn(["resolved"], (0, u.oG)(t.payload)),
+ [f.UPDATE_RESOLVED_SUBTREE]: (e, t) => {
+ const { value: n, path: r } = t.payload;
+ return e.setIn(["resolvedSubtrees", ...r], (0, u.oG)(n));
+ },
+ [f.UPDATE_PARAM]: (e, t) => {
+ let { payload: n } = t,
+ {
+ path: r,
+ paramName: o,
+ paramIn: s,
+ param: i,
+ value: a,
+ isXml: l,
+ } = n,
+ c = i ? (0, u.V9)(i) : `${s}.${o}`;
+ const p = l ? "value_xml" : "value";
+ return e.setIn(["meta", "paths", ...r, "parameters", c, p], a);
+ },
+ [f.UPDATE_EMPTY_PARAM_INCLUSION]: (e, t) => {
+ let { payload: n } = t,
+ {
+ pathMethod: r,
+ paramName: o,
+ paramIn: s,
+ includeEmptyValue: i,
+ } = n;
+ if (!o || !s)
+ return (
+ console.warn(
+ "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."
+ ),
+ e
+ );
+ const a = `${s}.${o}`;
+ return e.setIn(
+ ["meta", "paths", ...r, "parameter_inclusions", a],
+ i
+ );
+ },
+ [f.VALIDATE_PARAMS]: (e, t) => {
+ let {
+ payload: { pathMethod: n, isOAS3: r },
+ } = t;
+ const s = (0, h.specJsonWithResolvedSubtrees)(e).getIn([
+ "paths",
+ ...n,
+ ]),
+ i = (0, h.parameterValues)(e, n).toJS();
+ return e.updateIn(
+ ["meta", "paths", ...n, "parameters"],
+ (0, c.fromJS)({}),
+ (t) => {
+ var a;
+ return o()((a = s.get("parameters", (0, c.List)()))).call(
+ a,
+ (t, o) => {
+ const s = (0, u.cz)(o, i),
+ a = (0, h.parameterInclusionSettingFor)(
+ e,
+ n,
+ o.get("name"),
+ o.get("in")
+ ),
+ l = (0, u.Ik)(o, s, {
+ bypassRequiredCheck: a,
+ isOAS3: r,
+ });
+ return t.setIn(
+ [(0, u.V9)(o), "errors"],
+ (0, c.fromJS)(l)
+ );
+ },
+ t
+ );
+ }
+ );
+ },
+ [f.CLEAR_VALIDATE_PARAMS]: (e, t) => {
+ let {
+ payload: { pathMethod: n },
+ } = t;
+ return e.updateIn(
+ ["meta", "paths", ...n, "parameters"],
+ (0, c.fromJS)([]),
+ (e) => i()(e).call(e, (e) => e.set("errors", (0, c.fromJS)([])))
+ );
+ },
+ [f.SET_RESPONSE]: (e, t) => {
+ let n,
+ {
+ payload: { res: r, path: o, method: s },
+ } = t;
+ (n = r.error
+ ? l()(
+ {
+ error: !0,
+ name: r.err.name,
+ message: r.err.message,
+ statusCode: r.err.statusCode,
+ },
+ r.err.response
+ )
+ : r),
+ (n.headers = n.headers || {});
+ let i = e.setIn(["responses", o, s], (0, u.oG)(n));
+ return (
+ p.Z.Blob &&
+ r.data instanceof p.Z.Blob &&
+ (i = i.setIn(["responses", o, s, "text"], r.data)),
+ i
+ );
+ },
+ [f.SET_REQUEST]: (e, t) => {
+ let {
+ payload: { req: n, path: r, method: o },
+ } = t;
+ return e.setIn(["requests", r, o], (0, u.oG)(n));
+ },
+ [f.SET_MUTATED_REQUEST]: (e, t) => {
+ let {
+ payload: { req: n, path: r, method: o },
+ } = t;
+ return e.setIn(["mutatedRequests", r, o], (0, u.oG)(n));
+ },
+ [f.UPDATE_OPERATION_META_VALUE]: (e, t) => {
+ let {
+ payload: { path: n, value: r, key: o },
+ } = t,
+ s = ["paths", ...n],
+ i = ["meta", "paths", ...n];
+ return e.getIn(["json", ...s]) ||
+ e.getIn(["resolved", ...s]) ||
+ e.getIn(["resolvedSubtrees", ...s])
+ ? e.setIn([...i, o], (0, c.fromJS)(r))
+ : e;
+ },
+ [f.CLEAR_RESPONSE]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ return e.deleteIn(["responses", n, r]);
+ },
+ [f.CLEAR_REQUEST]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ return e.deleteIn(["requests", n, r]);
+ },
+ [f.SET_SCHEME]: (e, t) => {
+ let {
+ payload: { scheme: n, path: r, method: o },
+ } = t;
+ return r && o
+ ? e.setIn(["scheme", r, o], n)
+ : r || o
+ ? void 0
+ : e.setIn(["scheme", "_defaultScheme"], n);
+ },
+ };
+ },
+ 33881: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ allowTryItOutFor: () => fe,
+ basePath: () => Q,
+ canExecuteScheme: () => Ae,
+ consumes: () => K,
+ consumesOptionsFor: () => Oe,
+ contentTypeValues: () => Se,
+ currentProducesFor: () => _e,
+ definitions: () => X,
+ externalDocs: () => q,
+ findDefinition: () => Y,
+ getOAS3RequiredRequestBodyContentType: () => Ne,
+ getParameter: () => ve,
+ hasHost: () => be,
+ host: () => ee,
+ info: () => $,
+ isMediaTypeSchemaPropertiesEqual: () => Ie,
+ isOAS3: () => B,
+ lastError: () => A,
+ mutatedRequestFor: () => he,
+ mutatedRequests: () => ce,
+ operationScheme: () => ke,
+ operationWithMeta: () => ye,
+ operations: () => J,
+ operationsWithRootInherited: () => ne,
+ operationsWithTags: () => se,
+ parameterInclusionSettingFor: () => me,
+ parameterValues: () => we,
+ parameterWithMeta: () => ge,
+ parameterWithMetaByIdentity: () => de,
+ parametersIncludeIn: () => Ee,
+ parametersIncludeType: () => xe,
+ paths: () => V,
+ produces: () => H,
+ producesOptionsFor: () => je,
+ requestFor: () => pe,
+ requests: () => le,
+ responseFor: () => ue,
+ responses: () => ae,
+ schemes: () => te,
+ security: () => G,
+ securityDefinitions: () => Z,
+ semver: () => z,
+ spec: () => L,
+ specJS: () => T,
+ specJson: () => I,
+ specJsonWithResolvedSubtrees: () => F,
+ specResolved: () => R,
+ specResolvedSubtree: () => M,
+ specSource: () => N,
+ specStr: () => P,
+ tagDetails: () => oe,
+ taggedOperations: () => ie,
+ tags: () => re,
+ url: () => C,
+ validOperationMethods: () => W,
+ validateBeforeExecute: () => Pe,
+ validationErrors: () => Ce,
+ version: () => U,
+ });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(14418),
+ h = n.n(p),
+ f = n(51679),
+ d = n.n(f),
+ m = n(24282),
+ g = n.n(m),
+ y = n(2578),
+ v = n.n(y),
+ b = n(92039),
+ w = n.n(b),
+ E = n(58309),
+ x = n.n(E),
+ S = n(20573),
+ _ = n(90242),
+ j = n(43393);
+ const O = [
+ "get",
+ "put",
+ "post",
+ "delete",
+ "options",
+ "head",
+ "patch",
+ "trace",
+ ],
+ k = (e) => e || (0, j.Map)(),
+ A = (0, S.P1)(k, (e) => e.get("lastError")),
+ C = (0, S.P1)(k, (e) => e.get("url")),
+ P = (0, S.P1)(k, (e) => e.get("spec") || ""),
+ N = (0, S.P1)(k, (e) => e.get("specSource") || "not-editor"),
+ I = (0, S.P1)(k, (e) => e.get("json", (0, j.Map)())),
+ T = (0, S.P1)(I, (e) => e.toJS()),
+ R = (0, S.P1)(k, (e) => e.get("resolved", (0, j.Map)())),
+ M = (e, t) => e.getIn(["resolvedSubtrees", ...t], void 0),
+ D = (e, t) =>
+ j.Map.isMap(e) && j.Map.isMap(t)
+ ? t.get("$$ref")
+ ? t
+ : (0, j.OrderedMap)().mergeWith(D, e, t)
+ : t,
+ F = (0, S.P1)(k, (e) =>
+ (0, j.OrderedMap)().mergeWith(
+ D,
+ e.get("json"),
+ e.get("resolvedSubtrees")
+ )
+ ),
+ L = (e) => I(e),
+ B = (0, S.P1)(L, () => !1),
+ $ = (0, S.P1)(L, (e) => Te(e && e.get("info"))),
+ q = (0, S.P1)(L, (e) => Te(e && e.get("externalDocs"))),
+ U = (0, S.P1)($, (e) => e && e.get("version")),
+ z = (0, S.P1)(U, (e) => {
+ var t;
+ return o()((t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e))).call(
+ t,
+ 1
+ );
+ }),
+ V = (0, S.P1)(F, (e) => e.get("paths")),
+ W = (0, S.P1)(() => [
+ "get",
+ "put",
+ "post",
+ "delete",
+ "options",
+ "head",
+ "patch",
+ ]),
+ J = (0, S.P1)(V, (e) => {
+ if (!e || e.size < 1) return (0, j.List)();
+ let t = (0, j.List)();
+ return e && i()(e)
+ ? (i()(e).call(e, (e, n) => {
+ if (!e || !i()(e)) return {};
+ i()(e).call(e, (e, r) => {
+ l()(O).call(O, r) < 0 ||
+ (t = t.push(
+ (0, j.fromJS)({
+ path: n,
+ method: r,
+ operation: e,
+ id: `${r}-${n}`,
+ })
+ ));
+ });
+ }),
+ t)
+ : (0, j.List)();
+ }),
+ K = (0, S.P1)(L, (e) => (0, j.Set)(e.get("consumes"))),
+ H = (0, S.P1)(L, (e) => (0, j.Set)(e.get("produces"))),
+ G = (0, S.P1)(L, (e) => e.get("security", (0, j.List)())),
+ Z = (0, S.P1)(L, (e) => e.get("securityDefinitions")),
+ Y = (e, t) => {
+ const n = e.getIn(["resolvedSubtrees", "definitions", t], null),
+ r = e.getIn(["json", "definitions", t], null);
+ return n || r || null;
+ },
+ X = (0, S.P1)(L, (e) => {
+ const t = e.get("definitions");
+ return j.Map.isMap(t) ? t : (0, j.Map)();
+ }),
+ Q = (0, S.P1)(L, (e) => e.get("basePath")),
+ ee = (0, S.P1)(L, (e) => e.get("host")),
+ te = (0, S.P1)(L, (e) => e.get("schemes", (0, j.Map)())),
+ ne = (0, S.P1)(J, K, H, (e, t, n) =>
+ u()(e).call(e, (e) =>
+ e.update("operation", (e) => {
+ if (e) {
+ if (!j.Map.isMap(e)) return;
+ return e.withMutations(
+ (e) => (
+ e.get("consumes") ||
+ e.update("consumes", (e) => (0, j.Set)(e).merge(t)),
+ e.get("produces") ||
+ e.update("produces", (e) => (0, j.Set)(e).merge(n)),
+ e
+ )
+ );
+ }
+ return (0, j.Map)();
+ })
+ )
+ ),
+ re = (0, S.P1)(L, (e) => {
+ const t = e.get("tags", (0, j.List)());
+ return j.List.isList(t)
+ ? h()(t).call(t, (e) => j.Map.isMap(e))
+ : (0, j.List)();
+ }),
+ oe = (e, t) => {
+ var n;
+ let r = re(e) || (0, j.List)();
+ return d()((n = h()(r).call(r, j.Map.isMap))).call(
+ n,
+ (e) => e.get("name") === t,
+ (0, j.Map)()
+ );
+ },
+ se = (0, S.P1)(ne, re, (e, t) =>
+ g()(e).call(
+ e,
+ (e, t) => {
+ let n = (0, j.Set)(t.getIn(["operation", "tags"]));
+ return n.count() < 1
+ ? e.update("default", (0, j.List)(), (e) => e.push(t))
+ : g()(n).call(
+ n,
+ (e, n) => e.update(n, (0, j.List)(), (e) => e.push(t)),
+ e
+ );
+ },
+ g()(t).call(
+ t,
+ (e, t) => e.set(t.get("name"), (0, j.List)()),
+ (0, j.OrderedMap)()
+ )
+ )
+ ),
+ ie = (e) => (t) => {
+ var n;
+ let { getConfigs: r } = t,
+ { tagsSorter: o, operationsSorter: s } = r();
+ return u()(
+ (n = se(e).sortBy(
+ (e, t) => t,
+ (e, t) => {
+ let n = "function" == typeof o ? o : _.wh.tagsSorter[o];
+ return n ? n(e, t) : null;
+ }
+ ))
+ ).call(n, (t, n) => {
+ let r = "function" == typeof s ? s : _.wh.operationsSorter[s],
+ o = r ? v()(t).call(t, r) : t;
+ return (0, j.Map)({ tagDetails: oe(e, n), operations: o });
+ });
+ },
+ ae = (0, S.P1)(k, (e) => e.get("responses", (0, j.Map)())),
+ le = (0, S.P1)(k, (e) => e.get("requests", (0, j.Map)())),
+ ce = (0, S.P1)(k, (e) => e.get("mutatedRequests", (0, j.Map)())),
+ ue = (e, t, n) => ae(e).getIn([t, n], null),
+ pe = (e, t, n) => le(e).getIn([t, n], null),
+ he = (e, t, n) => ce(e).getIn([t, n], null),
+ fe = () => !0,
+ de = (e, t, n) => {
+ const r = F(e).getIn(
+ ["paths", ...t, "parameters"],
+ (0, j.OrderedMap)()
+ ),
+ o = e.getIn(
+ ["meta", "paths", ...t, "parameters"],
+ (0, j.OrderedMap)()
+ ),
+ s = u()(r).call(r, (e) => {
+ const t = o.get(`${n.get("in")}.${n.get("name")}`),
+ r = o.get(
+ `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}`
+ );
+ return (0, j.OrderedMap)().merge(e, t, r);
+ });
+ return d()(s).call(
+ s,
+ (e) =>
+ e.get("in") === n.get("in") &&
+ e.get("name") === n.get("name"),
+ (0, j.OrderedMap)()
+ );
+ },
+ me = (e, t, n, r) => {
+ const o = `${r}.${n}`;
+ return e.getIn(
+ ["meta", "paths", ...t, "parameter_inclusions", o],
+ !1
+ );
+ },
+ ge = (e, t, n, r) => {
+ const o = F(e).getIn(
+ ["paths", ...t, "parameters"],
+ (0, j.OrderedMap)()
+ ),
+ s = d()(o).call(
+ o,
+ (e) => e.get("in") === r && e.get("name") === n,
+ (0, j.OrderedMap)()
+ );
+ return de(e, t, s);
+ },
+ ye = (e, t, n) => {
+ var r;
+ const o = F(e).getIn(["paths", t, n], (0, j.OrderedMap)()),
+ s = e.getIn(["meta", "paths", t, n], (0, j.OrderedMap)()),
+ i = u()((r = o.get("parameters", (0, j.List)()))).call(r, (r) =>
+ de(e, [t, n], r)
+ );
+ return (0, j.OrderedMap)().merge(o, s).set("parameters", i);
+ };
+ function ve(e, t, n, r) {
+ t = t || [];
+ let o = e.getIn(
+ ["meta", "paths", ...t, "parameters"],
+ (0, j.fromJS)([])
+ );
+ return (
+ d()(o).call(
+ o,
+ (e) =>
+ j.Map.isMap(e) && e.get("name") === n && e.get("in") === r
+ ) || (0, j.Map)()
+ );
+ }
+ const be = (0, S.P1)(L, (e) => {
+ const t = e.get("host");
+ return "string" == typeof t && t.length > 0 && "/" !== t[0];
+ });
+ function we(e, t, n) {
+ t = t || [];
+ let r = ye(e, ...t).get("parameters", (0, j.List)());
+ return g()(r).call(
+ r,
+ (e, t) => {
+ let r =
+ n && "body" === t.get("in")
+ ? t.get("value_xml")
+ : t.get("value");
+ return e.set((0, _.V9)(t, { allowHashes: !1 }), r);
+ },
+ (0, j.fromJS)({})
+ );
+ }
+ function Ee(e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "";
+ if (j.List.isList(e))
+ return w()(e).call(e, (e) => j.Map.isMap(e) && e.get("in") === t);
+ }
+ function xe(e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "";
+ if (j.List.isList(e))
+ return w()(e).call(
+ e,
+ (e) => j.Map.isMap(e) && e.get("type") === t
+ );
+ }
+ function Se(e, t) {
+ t = t || [];
+ let n = F(e).getIn(["paths", ...t], (0, j.fromJS)({})),
+ r = e.getIn(["meta", "paths", ...t], (0, j.fromJS)({})),
+ o = _e(e, t);
+ const s = n.get("parameters") || new j.List(),
+ i = r.get("consumes_value")
+ ? r.get("consumes_value")
+ : xe(s, "file")
+ ? "multipart/form-data"
+ : xe(s, "formData")
+ ? "application/x-www-form-urlencoded"
+ : void 0;
+ return (0, j.fromJS)({
+ requestContentType: i,
+ responseContentType: o,
+ });
+ }
+ function _e(e, t) {
+ t = t || [];
+ const n = F(e).getIn(["paths", ...t], null);
+ if (null === n) return;
+ const r = e.getIn(["meta", "paths", ...t, "produces_value"], null),
+ o = n.getIn(["produces", 0], null);
+ return r || o || "application/json";
+ }
+ function je(e, t) {
+ t = t || [];
+ const n = F(e),
+ r = n.getIn(["paths", ...t], null);
+ if (null === r) return;
+ const [o] = t,
+ s = r.get("produces", null),
+ i = n.getIn(["paths", o, "produces"], null),
+ a = n.getIn(["produces"], null);
+ return s || i || a;
+ }
+ function Oe(e, t) {
+ t = t || [];
+ const n = F(e),
+ r = n.getIn(["paths", ...t], null);
+ if (null === r) return;
+ const [o] = t,
+ s = r.get("consumes", null),
+ i = n.getIn(["paths", o, "consumes"], null),
+ a = n.getIn(["consumes"], null);
+ return s || i || a;
+ }
+ const ke = (e, t, n) => {
+ let r = e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),
+ o = x()(r) ? r[1] : null;
+ return (
+ e.getIn(["scheme", t, n]) ||
+ e.getIn(["scheme", "_defaultScheme"]) ||
+ o ||
+ ""
+ );
+ },
+ Ae = (e, t, n) => {
+ var r;
+ return l()((r = ["http", "https"])).call(r, ke(e, t, n)) > -1;
+ },
+ Ce = (e, t) => {
+ t = t || [];
+ let n = e.getIn(
+ ["meta", "paths", ...t, "parameters"],
+ (0, j.fromJS)([])
+ );
+ const r = [];
+ return (
+ i()(n).call(n, (e) => {
+ let t = e.get("errors");
+ t && t.count() && i()(t).call(t, (e) => r.push(e));
+ }),
+ r
+ );
+ },
+ Pe = (e, t) => 0 === Ce(e, t).length,
+ Ne = (e, t) => {
+ var n;
+ let r = { requestBody: !1, requestContentType: {} },
+ o = e.getIn(
+ ["resolvedSubtrees", "paths", ...t, "requestBody"],
+ (0, j.fromJS)([])
+ );
+ return (
+ o.size < 1 ||
+ (o.getIn(["required"]) &&
+ (r.requestBody = o.getIn(["required"])),
+ i()((n = o.getIn(["content"]).entrySeq())).call(n, (e) => {
+ const t = e[0];
+ if (e[1].getIn(["schema", "required"])) {
+ const n = e[1].getIn(["schema", "required"]).toJS();
+ r.requestContentType[t] = n;
+ }
+ })),
+ r
+ );
+ },
+ Ie = (e, t, n, r) => {
+ if ((n || r) && n === r) return !0;
+ let o = e.getIn(
+ ["resolvedSubtrees", "paths", ...t, "requestBody", "content"],
+ (0, j.fromJS)([])
+ );
+ if (o.size < 2 || !n || !r) return !1;
+ let s = o.getIn([n, "schema", "properties"], (0, j.fromJS)([])),
+ i = o.getIn([r, "schema", "properties"], (0, j.fromJS)([]));
+ return !!s.equals(i);
+ };
+ function Te(e) {
+ return j.Map.isMap(e) ? e : new j.Map();
+ }
+ },
+ 77508: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ executeRequest: () => p,
+ updateJsonSpec: () => u,
+ updateSpec: () => c,
+ validateParams: () => h,
+ });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(27361),
+ l = n.n(a);
+ const c = (e, t) => {
+ let { specActions: n } = t;
+ return function () {
+ e(...arguments), n.parseToJson(...arguments);
+ };
+ },
+ u = (e, t) => {
+ let { specActions: n } = t;
+ return function () {
+ for (
+ var t = arguments.length, r = new Array(t), s = 0;
+ s < t;
+ s++
+ )
+ r[s] = arguments[s];
+ e(...r), n.invalidateResolvedSubtreeCache();
+ const [a] = r,
+ c = l()(a, ["paths"]) || {},
+ u = o()(c);
+ i()(u).call(u, (e) => {
+ l()(c, [e]).$ref && n.requestResolvedSubtree(["paths", e]);
+ }),
+ n.requestResolvedSubtree(["components", "securitySchemes"]);
+ };
+ },
+ p = (e, t) => {
+ let { specActions: n } = t;
+ return (t) => (n.logRequest(t), e(t));
+ },
+ h = (e, t) => {
+ let { specSelectors: n } = t;
+ return (t) => e(t, n.isOAS3());
+ };
+ },
+ 34852: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { loaded: () => r });
+ const r = (e, t) =>
+ function () {
+ e(...arguments);
+ const n = t.getConfigs().withCredentials;
+ void 0 !== n &&
+ (t.fn.fetch.withCredentials =
+ "string" == typeof n ? "true" === n : !!n);
+ };
+ },
+ 94001: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => XE });
+ var r = {};
+ n.r(r),
+ n.d(r, {
+ JsonPatchError: () => j,
+ _areEquals: () => M,
+ applyOperation: () => P,
+ applyPatch: () => N,
+ applyReducer: () => I,
+ deepClone: () => O,
+ getValueByPointer: () => C,
+ validate: () => R,
+ validator: () => T,
+ });
+ var o = {};
+ n.r(o),
+ n.d(o, {
+ compare: () => z,
+ generate: () => q,
+ observe: () => $,
+ unobserve: () => B,
+ });
+ var s = {};
+ n.r(s),
+ n.d(s, {
+ hasElementSourceMap: () => Ps,
+ includesClasses: () => Is,
+ includesSymbols: () => Ns,
+ isAnnotationElement: () => js,
+ isArrayElement: () => Es,
+ isBooleanElement: () => bs,
+ isCommentElement: () => Os,
+ isElement: () => ms,
+ isLinkElement: () => Ss,
+ isMemberElement: () => xs,
+ isNullElement: () => vs,
+ isNumberElement: () => ys,
+ isObjectElement: () => ws,
+ isParseResultElement: () => ks,
+ isPrimitiveElement: () => Cs,
+ isRefElement: () => _s,
+ isSourceMapElement: () => As,
+ isStringElement: () => gs,
+ });
+ var i = {};
+ n.r(i),
+ n.d(i, {
+ isJSONReferenceElement: () => uc,
+ isJSONSchemaElement: () => cc,
+ isLinkDescriptionElement: () => hc,
+ isMediaElement: () => pc,
+ });
+ var a = {};
+ n.r(a),
+ n.d(a, {
+ isOpenApi3_0LikeElement: () => qc,
+ isOpenApiExtension: () => Hc,
+ isParameterLikeElement: () => Uc,
+ isReferenceLikeElement: () => zc,
+ isRequestBodyLikeElement: () => Vc,
+ isResponseLikeElement: () => Wc,
+ isServerLikeElement: () => Jc,
+ isTagLikeElement: () => Kc,
+ });
+ var l = {};
+ n.r(l),
+ n.d(l, {
+ isBooleanJsonSchemaElement: () => lp,
+ isCallbackElement: () => Bu,
+ isComponentsElement: () => $u,
+ isContactElement: () => qu,
+ isExampleElement: () => Uu,
+ isExternalDocumentationElement: () => zu,
+ isHeaderElement: () => Vu,
+ isInfoElement: () => Wu,
+ isLicenseElement: () => Ju,
+ isLinkElement: () => Ku,
+ isLinkElementExternal: () => Hu,
+ isMediaTypeElement: () => hp,
+ isOpenApi3_0Element: () => Zu,
+ isOpenapiElement: () => Gu,
+ isOperationElement: () => Yu,
+ isParameterElement: () => Xu,
+ isPathItemElement: () => Qu,
+ isPathItemElementExternal: () => ep,
+ isPathsElement: () => tp,
+ isReferenceElement: () => np,
+ isReferenceElementExternal: () => rp,
+ isRequestBodyElement: () => op,
+ isResponseElement: () => sp,
+ isResponsesElement: () => ip,
+ isSchemaElement: () => ap,
+ isSecurityRequirementElement: () => cp,
+ isServerElement: () => up,
+ isServerVariableElement: () => pp,
+ });
+ var c = {};
+ n.r(c),
+ n.d(c, {
+ isBooleanJsonSchemaElement: () => iy,
+ isCallbackElement: () => Dg,
+ isComponentsElement: () => Fg,
+ isContactElement: () => Lg,
+ isExampleElement: () => Bg,
+ isExternalDocumentationElement: () => $g,
+ isHeaderElement: () => qg,
+ isInfoElement: () => Ug,
+ isJsonSchemaDialectElement: () => zg,
+ isLicenseElement: () => Vg,
+ isLinkElement: () => Wg,
+ isLinkElementExternal: () => Jg,
+ isMediaTypeElement: () => uy,
+ isOpenApi3_1Element: () => Hg,
+ isOpenapiElement: () => Kg,
+ isOperationElement: () => Gg,
+ isParameterElement: () => Zg,
+ isPathItemElement: () => Yg,
+ isPathItemElementExternal: () => Xg,
+ isPathsElement: () => Qg,
+ isReferenceElement: () => ey,
+ isReferenceElementExternal: () => ty,
+ isRequestBodyElement: () => ny,
+ isResponseElement: () => ry,
+ isResponsesElement: () => oy,
+ isSchemaElement: () => sy,
+ isSecurityRequirementElement: () => ay,
+ isServerElement: () => ly,
+ isServerVariableElement: () => cy,
+ });
+ var u = {};
+ n.r(u),
+ n.d(u, {
+ cookie: () => RE,
+ header: () => TE,
+ path: () => PE,
+ query: () => NE,
+ });
+ var p,
+ h = n(58826),
+ f = n.n(h),
+ d =
+ ((p = function (e, t) {
+ return (
+ (p =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
+ }),
+ p(e, t)
+ );
+ }),
+ function (e, t) {
+ function n() {
+ this.constructor = e;
+ }
+ p(e, t),
+ (e.prototype =
+ null === t
+ ? Object.create(t)
+ : ((n.prototype = t.prototype), new n()));
+ }),
+ m = Object.prototype.hasOwnProperty;
+ function g(e, t) {
+ return m.call(e, t);
+ }
+ function y(e) {
+ if (Array.isArray(e)) {
+ for (var t = new Array(e.length), n = 0; n < t.length; n++)
+ t[n] = "" + n;
+ return t;
+ }
+ if (Object.keys) return Object.keys(e);
+ var r = [];
+ for (var o in e) g(e, o) && r.push(o);
+ return r;
+ }
+ function v(e) {
+ switch (typeof e) {
+ case "object":
+ return JSON.parse(JSON.stringify(e));
+ case "undefined":
+ return null;
+ default:
+ return e;
+ }
+ }
+ function b(e) {
+ for (var t, n = 0, r = e.length; n < r; ) {
+ if (!((t = e.charCodeAt(n)) >= 48 && t <= 57)) return !1;
+ n++;
+ }
+ return !0;
+ }
+ function w(e) {
+ return -1 === e.indexOf("/") && -1 === e.indexOf("~")
+ ? e
+ : e.replace(/~/g, "~0").replace(/\//g, "~1");
+ }
+ function E(e) {
+ return e.replace(/~1/g, "/").replace(/~0/g, "~");
+ }
+ function x(e) {
+ if (void 0 === e) return !0;
+ if (e)
+ if (Array.isArray(e)) {
+ for (var t = 0, n = e.length; t < n; t++)
+ if (x(e[t])) return !0;
+ } else if ("object" == typeof e)
+ for (var r = y(e), o = r.length, s = 0; s < o; s++)
+ if (x(e[r[s]])) return !0;
+ return !1;
+ }
+ function S(e, t) {
+ var n = [e];
+ for (var r in t) {
+ var o =
+ "object" == typeof t[r] ? JSON.stringify(t[r], null, 2) : t[r];
+ void 0 !== o && n.push(r + ": " + o);
+ }
+ return n.join("\n");
+ }
+ var _ = (function (e) {
+ function t(t, n, r, o, s) {
+ var i = this.constructor,
+ a =
+ e.call(
+ this,
+ S(t, { name: n, index: r, operation: o, tree: s })
+ ) || this;
+ return (
+ (a.name = n),
+ (a.index = r),
+ (a.operation = o),
+ (a.tree = s),
+ Object.setPrototypeOf(a, i.prototype),
+ (a.message = S(t, {
+ name: n,
+ index: r,
+ operation: o,
+ tree: s,
+ })),
+ a
+ );
+ }
+ return d(t, e), t;
+ })(Error),
+ j = _,
+ O = v,
+ k = {
+ add: function (e, t, n) {
+ return (e[t] = this.value), { newDocument: n };
+ },
+ remove: function (e, t, n) {
+ var r = e[t];
+ return delete e[t], { newDocument: n, removed: r };
+ },
+ replace: function (e, t, n) {
+ var r = e[t];
+ return (e[t] = this.value), { newDocument: n, removed: r };
+ },
+ move: function (e, t, n) {
+ var r = C(n, this.path);
+ r && (r = v(r));
+ var o = P(n, { op: "remove", path: this.from }).removed;
+ return (
+ P(n, { op: "add", path: this.path, value: o }),
+ { newDocument: n, removed: r }
+ );
+ },
+ copy: function (e, t, n) {
+ var r = C(n, this.from);
+ return (
+ P(n, { op: "add", path: this.path, value: v(r) }),
+ { newDocument: n }
+ );
+ },
+ test: function (e, t, n) {
+ return { newDocument: n, test: M(e[t], this.value) };
+ },
+ _get: function (e, t, n) {
+ return (this.value = e[t]), { newDocument: n };
+ },
+ },
+ A = {
+ add: function (e, t, n) {
+ return (
+ b(t) ? e.splice(t, 0, this.value) : (e[t] = this.value),
+ { newDocument: n, index: t }
+ );
+ },
+ remove: function (e, t, n) {
+ return { newDocument: n, removed: e.splice(t, 1)[0] };
+ },
+ replace: function (e, t, n) {
+ var r = e[t];
+ return (e[t] = this.value), { newDocument: n, removed: r };
+ },
+ move: k.move,
+ copy: k.copy,
+ test: k.test,
+ _get: k._get,
+ };
+ function C(e, t) {
+ if ("" == t) return e;
+ var n = { op: "_get", path: t };
+ return P(e, n), n.value;
+ }
+ function P(e, t, n, r, o, s) {
+ if (
+ (void 0 === n && (n = !1),
+ void 0 === r && (r = !0),
+ void 0 === o && (o = !0),
+ void 0 === s && (s = 0),
+ n && ("function" == typeof n ? n(t, 0, e, t.path) : T(t, 0)),
+ "" === t.path)
+ ) {
+ var i = { newDocument: e };
+ if ("add" === t.op) return (i.newDocument = t.value), i;
+ if ("replace" === t.op)
+ return (i.newDocument = t.value), (i.removed = e), i;
+ if ("move" === t.op || "copy" === t.op)
+ return (
+ (i.newDocument = C(e, t.from)),
+ "move" === t.op && (i.removed = e),
+ i
+ );
+ if ("test" === t.op) {
+ if (((i.test = M(e, t.value)), !1 === i.test))
+ throw new j(
+ "Test operation failed",
+ "TEST_OPERATION_FAILED",
+ s,
+ t,
+ e
+ );
+ return (i.newDocument = e), i;
+ }
+ if ("remove" === t.op)
+ return (i.removed = e), (i.newDocument = null), i;
+ if ("_get" === t.op) return (t.value = e), i;
+ if (n)
+ throw new j(
+ "Operation `op` property is not one of operations defined in RFC-6902",
+ "OPERATION_OP_INVALID",
+ s,
+ t,
+ e
+ );
+ return i;
+ }
+ r || (e = v(e));
+ var a = (t.path || "").split("/"),
+ l = e,
+ c = 1,
+ u = a.length,
+ p = void 0,
+ h = void 0,
+ f = void 0;
+ for (f = "function" == typeof n ? n : T; ; ) {
+ if (
+ ((h = a[c]) && -1 != h.indexOf("~") && (h = E(h)),
+ o &&
+ ("__proto__" == h ||
+ ("prototype" == h && c > 0 && "constructor" == a[c - 1])))
+ )
+ throw new TypeError(
+ "JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README"
+ );
+ if (
+ (n &&
+ void 0 === p &&
+ (void 0 === l[h]
+ ? (p = a.slice(0, c).join("/"))
+ : c == u - 1 && (p = t.path),
+ void 0 !== p && f(t, 0, e, p)),
+ c++,
+ Array.isArray(l))
+ ) {
+ if ("-" === h) h = l.length;
+ else {
+ if (n && !b(h))
+ throw new j(
+ "Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index",
+ "OPERATION_PATH_ILLEGAL_ARRAY_INDEX",
+ s,
+ t,
+ e
+ );
+ b(h) && (h = ~~h);
+ }
+ if (c >= u) {
+ if (n && "add" === t.op && h > l.length)
+ throw new j(
+ "The specified index MUST NOT be greater than the number of elements in the array",
+ "OPERATION_VALUE_OUT_OF_BOUNDS",
+ s,
+ t,
+ e
+ );
+ if (!1 === (i = A[t.op].call(t, l, h, e)).test)
+ throw new j(
+ "Test operation failed",
+ "TEST_OPERATION_FAILED",
+ s,
+ t,
+ e
+ );
+ return i;
+ }
+ } else if (c >= u) {
+ if (!1 === (i = k[t.op].call(t, l, h, e)).test)
+ throw new j(
+ "Test operation failed",
+ "TEST_OPERATION_FAILED",
+ s,
+ t,
+ e
+ );
+ return i;
+ }
+ if (((l = l[h]), n && c < u && (!l || "object" != typeof l)))
+ throw new j(
+ "Cannot perform operation at the desired path",
+ "OPERATION_PATH_UNRESOLVABLE",
+ s,
+ t,
+ e
+ );
+ }
+ }
+ function N(e, t, n, r, o) {
+ if (
+ (void 0 === r && (r = !0),
+ void 0 === o && (o = !0),
+ n && !Array.isArray(t))
+ )
+ throw new j(
+ "Patch sequence must be an array",
+ "SEQUENCE_NOT_AN_ARRAY"
+ );
+ r || (e = v(e));
+ for (var s = new Array(t.length), i = 0, a = t.length; i < a; i++)
+ (s[i] = P(e, t[i], n, !0, o, i)), (e = s[i].newDocument);
+ return (s.newDocument = e), s;
+ }
+ function I(e, t, n) {
+ var r = P(e, t);
+ if (!1 === r.test)
+ throw new j(
+ "Test operation failed",
+ "TEST_OPERATION_FAILED",
+ n,
+ t,
+ e
+ );
+ return r.newDocument;
+ }
+ function T(e, t, n, r) {
+ if ("object" != typeof e || null === e || Array.isArray(e))
+ throw new j(
+ "Operation is not an object",
+ "OPERATION_NOT_AN_OBJECT",
+ t,
+ e,
+ n
+ );
+ if (!k[e.op])
+ throw new j(
+ "Operation `op` property is not one of operations defined in RFC-6902",
+ "OPERATION_OP_INVALID",
+ t,
+ e,
+ n
+ );
+ if ("string" != typeof e.path)
+ throw new j(
+ "Operation `path` property is not a string",
+ "OPERATION_PATH_INVALID",
+ t,
+ e,
+ n
+ );
+ if (0 !== e.path.indexOf("/") && e.path.length > 0)
+ throw new j(
+ 'Operation `path` property must start with "/"',
+ "OPERATION_PATH_INVALID",
+ t,
+ e,
+ n
+ );
+ if (
+ ("move" === e.op || "copy" === e.op) &&
+ "string" != typeof e.from
+ )
+ throw new j(
+ "Operation `from` property is not present (applicable in `move` and `copy` operations)",
+ "OPERATION_FROM_REQUIRED",
+ t,
+ e,
+ n
+ );
+ if (
+ ("add" === e.op || "replace" === e.op || "test" === e.op) &&
+ void 0 === e.value
+ )
+ throw new j(
+ "Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",
+ "OPERATION_VALUE_REQUIRED",
+ t,
+ e,
+ n
+ );
+ if (
+ ("add" === e.op || "replace" === e.op || "test" === e.op) &&
+ x(e.value)
+ )
+ throw new j(
+ "Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",
+ "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",
+ t,
+ e,
+ n
+ );
+ if (n)
+ if ("add" == e.op) {
+ var o = e.path.split("/").length,
+ s = r.split("/").length;
+ if (o !== s + 1 && o !== s)
+ throw new j(
+ "Cannot perform an `add` operation at the desired path",
+ "OPERATION_PATH_CANNOT_ADD",
+ t,
+ e,
+ n
+ );
+ } else if (
+ "replace" === e.op ||
+ "remove" === e.op ||
+ "_get" === e.op
+ ) {
+ if (e.path !== r)
+ throw new j(
+ "Cannot perform the operation at a path that does not exist",
+ "OPERATION_PATH_UNRESOLVABLE",
+ t,
+ e,
+ n
+ );
+ } else if ("move" === e.op || "copy" === e.op) {
+ var i = R([{ op: "_get", path: e.from, value: void 0 }], n);
+ if (i && "OPERATION_PATH_UNRESOLVABLE" === i.name)
+ throw new j(
+ "Cannot perform the operation from a path that does not exist",
+ "OPERATION_FROM_UNRESOLVABLE",
+ t,
+ e,
+ n
+ );
+ }
+ }
+ function R(e, t, n) {
+ try {
+ if (!Array.isArray(e))
+ throw new j(
+ "Patch sequence must be an array",
+ "SEQUENCE_NOT_AN_ARRAY"
+ );
+ if (t) N(v(t), v(e), n || !0);
+ else {
+ n = n || T;
+ for (var r = 0; r < e.length; r++) n(e[r], r, t, void 0);
+ }
+ } catch (e) {
+ if (e instanceof j) return e;
+ throw e;
+ }
+ }
+ function M(e, t) {
+ if (e === t) return !0;
+ if (e && t && "object" == typeof e && "object" == typeof t) {
+ var n,
+ r,
+ o,
+ s = Array.isArray(e),
+ i = Array.isArray(t);
+ if (s && i) {
+ if ((r = e.length) != t.length) return !1;
+ for (n = r; 0 != n--; ) if (!M(e[n], t[n])) return !1;
+ return !0;
+ }
+ if (s != i) return !1;
+ var a = Object.keys(e);
+ if ((r = a.length) !== Object.keys(t).length) return !1;
+ for (n = r; 0 != n--; ) if (!t.hasOwnProperty(a[n])) return !1;
+ for (n = r; 0 != n--; ) if (!M(e[(o = a[n])], t[o])) return !1;
+ return !0;
+ }
+ return e != e && t != t;
+ }
+ var D = new WeakMap(),
+ F = function (e) {
+ (this.observers = new Map()), (this.obj = e);
+ },
+ L = function (e, t) {
+ (this.callback = e), (this.observer = t);
+ };
+ function B(e, t) {
+ t.unobserve();
+ }
+ function $(e, t) {
+ var n,
+ r = (function (e) {
+ return D.get(e);
+ })(e);
+ if (r) {
+ var o = (function (e, t) {
+ return e.observers.get(t);
+ })(r, t);
+ n = o && o.observer;
+ } else (r = new F(e)), D.set(e, r);
+ if (n) return n;
+ if (((n = {}), (r.value = v(e)), t)) {
+ (n.callback = t), (n.next = null);
+ var s = function () {
+ q(n);
+ },
+ i = function () {
+ clearTimeout(n.next), (n.next = setTimeout(s));
+ };
+ "undefined" != typeof window &&
+ (window.addEventListener("mouseup", i),
+ window.addEventListener("keyup", i),
+ window.addEventListener("mousedown", i),
+ window.addEventListener("keydown", i),
+ window.addEventListener("change", i));
+ }
+ return (
+ (n.patches = []),
+ (n.object = e),
+ (n.unobserve = function () {
+ q(n),
+ clearTimeout(n.next),
+ (function (e, t) {
+ e.observers.delete(t.callback);
+ })(r, n),
+ "undefined" != typeof window &&
+ (window.removeEventListener("mouseup", i),
+ window.removeEventListener("keyup", i),
+ window.removeEventListener("mousedown", i),
+ window.removeEventListener("keydown", i),
+ window.removeEventListener("change", i));
+ }),
+ r.observers.set(t, new L(t, n)),
+ n
+ );
+ }
+ function q(e, t) {
+ void 0 === t && (t = !1);
+ var n = D.get(e.object);
+ U(n.value, e.object, e.patches, "", t),
+ e.patches.length && N(n.value, e.patches);
+ var r = e.patches;
+ return (
+ r.length > 0 && ((e.patches = []), e.callback && e.callback(r)), r
+ );
+ }
+ function U(e, t, n, r, o) {
+ if (t !== e) {
+ "function" == typeof t.toJSON && (t = t.toJSON());
+ for (
+ var s = y(t), i = y(e), a = !1, l = i.length - 1;
+ l >= 0;
+ l--
+ ) {
+ var c = e[(p = i[l])];
+ if (
+ !g(t, p) ||
+ (void 0 === t[p] && void 0 !== c && !1 === Array.isArray(t))
+ )
+ Array.isArray(e) === Array.isArray(t)
+ ? (o &&
+ n.push({
+ op: "test",
+ path: r + "/" + w(p),
+ value: v(c),
+ }),
+ n.push({ op: "remove", path: r + "/" + w(p) }),
+ (a = !0))
+ : (o && n.push({ op: "test", path: r, value: e }),
+ n.push({ op: "replace", path: r, value: t }),
+ !0);
+ else {
+ var u = t[p];
+ "object" == typeof c &&
+ null != c &&
+ "object" == typeof u &&
+ null != u &&
+ Array.isArray(c) === Array.isArray(u)
+ ? U(c, u, n, r + "/" + w(p), o)
+ : c !== u &&
+ (!0,
+ o &&
+ n.push({
+ op: "test",
+ path: r + "/" + w(p),
+ value: v(c),
+ }),
+ n.push({
+ op: "replace",
+ path: r + "/" + w(p),
+ value: v(u),
+ }));
+ }
+ }
+ if (a || s.length != i.length)
+ for (l = 0; l < s.length; l++) {
+ var p;
+ g(e, (p = s[l])) ||
+ void 0 === t[p] ||
+ n.push({ op: "add", path: r + "/" + w(p), value: v(t[p]) });
+ }
+ }
+ }
+ function z(e, t, n) {
+ void 0 === n && (n = !1);
+ var r = [];
+ return U(e, t, r, "", n), r;
+ }
+ Object.assign({}, r, o, {
+ JsonPatchError: _,
+ deepClone: v,
+ escapePathComponent: w,
+ unescapePathComponent: E,
+ });
+ var V = n(9996),
+ W = n.n(V);
+ const J = {
+ add: function (e, t) {
+ return { op: "add", path: e, value: t };
+ },
+ replace: H,
+ remove: function (e) {
+ return { op: "remove", path: e };
+ },
+ merge: function (e, t) {
+ return { type: "mutation", op: "merge", path: e, value: t };
+ },
+ mergeDeep: function (e, t) {
+ return { type: "mutation", op: "mergeDeep", path: e, value: t };
+ },
+ context: function (e, t) {
+ return { type: "context", path: e, value: t };
+ },
+ getIn: function (e, t) {
+ return t.reduce((e, t) => (void 0 !== t && e ? e[t] : e), e);
+ },
+ applyPatch: function (e, t, n) {
+ if (
+ ((n = n || {}),
+ "merge" ===
+ (t = f()(f()({}, t), {}, { path: t.path && K(t.path) })).op)
+ ) {
+ const n = ae(e, t.path);
+ Object.assign(n, t.value), N(e, [H(t.path, n)]);
+ } else if ("mergeDeep" === t.op) {
+ const n = ae(e, t.path),
+ r = W()(n, t.value);
+ e = N(e, [H(t.path, r)]).newDocument;
+ } else if ("add" === t.op && "" === t.path && te(t.value)) {
+ N(
+ e,
+ Object.keys(t.value).reduce(
+ (e, n) => (
+ e.push({
+ op: "add",
+ path: `/${K(n)}`,
+ value: t.value[n],
+ }),
+ e
+ ),
+ []
+ )
+ );
+ } else if ("replace" === t.op && "" === t.path) {
+ let { value: r } = t;
+ n.allowMetaPatches &&
+ t.meta &&
+ se(t) &&
+ (Array.isArray(t.value) || te(t.value)) &&
+ (r = f()(f()({}, r), t.meta)),
+ (e = r);
+ } else if (
+ (N(e, [t]),
+ n.allowMetaPatches &&
+ t.meta &&
+ se(t) &&
+ (Array.isArray(t.value) || te(t.value)))
+ ) {
+ const n = ae(e, t.path),
+ r = f()(f()({}, n), t.meta);
+ N(e, [H(t.path, r)]);
+ }
+ return e;
+ },
+ parentPathMatch: function (e, t) {
+ if (!Array.isArray(t)) return !1;
+ for (let n = 0, r = t.length; n < r; n += 1)
+ if (t[n] !== e[n]) return !1;
+ return !0;
+ },
+ flatten: Q,
+ fullyNormalizeArray: function (e) {
+ return ee(Q(X(e)));
+ },
+ normalizeArray: X,
+ isPromise: function (e) {
+ return te(e) && ne(e.then);
+ },
+ forEachNew: function (e, t) {
+ try {
+ return G(e, Y, t);
+ } catch (e) {
+ return e;
+ }
+ },
+ forEachNewPrimitive: function (e, t) {
+ try {
+ return G(e, Z, t);
+ } catch (e) {
+ return e;
+ }
+ },
+ isJsonPatch: re,
+ isContextPatch: function (e) {
+ return ie(e) && "context" === e.type;
+ },
+ isPatch: ie,
+ isMutation: oe,
+ isAdditiveMutation: se,
+ isGenerator: function (e) {
+ return (
+ "[object GeneratorFunction]" ===
+ Object.prototype.toString.call(e)
+ );
+ },
+ isFunction: ne,
+ isObject: te,
+ isError: function (e) {
+ return e instanceof Error;
+ },
+ };
+ function K(e) {
+ return Array.isArray(e)
+ ? e.length < 1
+ ? ""
+ : `/${e
+ .map((e) =>
+ (e + "").replace(/~/g, "~0").replace(/\//g, "~1")
+ )
+ .join("/")}`
+ : e;
+ }
+ function H(e, t, n) {
+ return { op: "replace", path: e, value: t, meta: n };
+ }
+ function G(e, t, n) {
+ return ee(Q(e.filter(se).map((e) => t(e.value, n, e.path)) || []));
+ }
+ function Z(e, t, n) {
+ return (
+ (n = n || []),
+ Array.isArray(e)
+ ? e.map((e, r) => Z(e, t, n.concat(r)))
+ : te(e)
+ ? Object.keys(e).map((r) => Z(e[r], t, n.concat(r)))
+ : t(e, n[n.length - 1], n)
+ );
+ }
+ function Y(e, t, n) {
+ let r = [];
+ if ((n = n || []).length > 0) {
+ const o = t(e, n[n.length - 1], n);
+ o && (r = r.concat(o));
+ }
+ if (Array.isArray(e)) {
+ const o = e.map((e, r) => Y(e, t, n.concat(r)));
+ o && (r = r.concat(o));
+ } else if (te(e)) {
+ const o = Object.keys(e).map((r) => Y(e[r], t, n.concat(r)));
+ o && (r = r.concat(o));
+ }
+ return (r = Q(r)), r;
+ }
+ function X(e) {
+ return Array.isArray(e) ? e : [e];
+ }
+ function Q(e) {
+ return [].concat(...e.map((e) => (Array.isArray(e) ? Q(e) : e)));
+ }
+ function ee(e) {
+ return e.filter((e) => void 0 !== e);
+ }
+ function te(e) {
+ return e && "object" == typeof e;
+ }
+ function ne(e) {
+ return e && "function" == typeof e;
+ }
+ function re(e) {
+ if (ie(e)) {
+ const { op: t } = e;
+ return "add" === t || "remove" === t || "replace" === t;
+ }
+ return !1;
+ }
+ function oe(e) {
+ return re(e) || (ie(e) && "mutation" === e.type);
+ }
+ function se(e) {
+ return (
+ oe(e) &&
+ ("add" === e.op ||
+ "replace" === e.op ||
+ "merge" === e.op ||
+ "mergeDeep" === e.op)
+ );
+ }
+ function ie(e) {
+ return e && "object" == typeof e;
+ }
+ function ae(e, t) {
+ try {
+ return C(e, t);
+ } catch (e) {
+ return console.error(e), {};
+ }
+ }
+ n(31905);
+ var le = n(1272),
+ ce = n(8575);
+ function ue(e, t) {
+ function n() {
+ Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error().stack);
+ for (
+ var e = arguments.length, n = new Array(e), r = 0;
+ r < e;
+ r++
+ )
+ n[r] = arguments[r];
+ ([this.message] = n), t && t.apply(this, n);
+ }
+ return (
+ (n.prototype = new Error()),
+ (n.prototype.name = e),
+ (n.prototype.constructor = n),
+ n
+ );
+ }
+ var pe = n(13692),
+ he = n.n(pe);
+ const fe = ["properties"],
+ de = ["properties"],
+ me = [
+ "definitions",
+ "parameters",
+ "responses",
+ "securityDefinitions",
+ "components/schemas",
+ "components/responses",
+ "components/parameters",
+ "components/securitySchemes",
+ ],
+ ge = ["schema/example", "items/example"];
+ function ye(e) {
+ const t = e[e.length - 1],
+ n = e[e.length - 2],
+ r = e.join("/");
+ return (
+ (fe.indexOf(t) > -1 && -1 === de.indexOf(n)) ||
+ me.indexOf(r) > -1 ||
+ ge.some((e) => r.indexOf(e) > -1)
+ );
+ }
+ function ve(e, t) {
+ const [n, r] = e.split("#"),
+ o = ce.resolve(n || "", t || "");
+ return r ? `${o}#${r}` : o;
+ }
+ const be = "application/json, application/yaml",
+ we = /^([a-z]+:\/\/|\/\/)/i,
+ Ee = ue("JSONRefError", function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ xe = {},
+ Se = new WeakMap(),
+ _e = [
+ (e) =>
+ "paths" === e[0] && "responses" === e[3] && "examples" === e[5],
+ (e) =>
+ "paths" === e[0] &&
+ "responses" === e[3] &&
+ "content" === e[5] &&
+ "example" === e[7],
+ (e) =>
+ "paths" === e[0] &&
+ "responses" === e[3] &&
+ "content" === e[5] &&
+ "examples" === e[7] &&
+ "value" === e[9],
+ (e) =>
+ "paths" === e[0] &&
+ "requestBody" === e[3] &&
+ "content" === e[4] &&
+ "example" === e[6],
+ (e) =>
+ "paths" === e[0] &&
+ "requestBody" === e[3] &&
+ "content" === e[4] &&
+ "examples" === e[6] &&
+ "value" === e[8],
+ (e) =>
+ "paths" === e[0] && "parameters" === e[2] && "example" === e[4],
+ (e) =>
+ "paths" === e[0] && "parameters" === e[3] && "example" === e[5],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[2] &&
+ "examples" === e[4] &&
+ "value" === e[6],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[3] &&
+ "examples" === e[5] &&
+ "value" === e[7],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[2] &&
+ "content" === e[4] &&
+ "example" === e[6],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[2] &&
+ "content" === e[4] &&
+ "examples" === e[6] &&
+ "value" === e[8],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[3] &&
+ "content" === e[4] &&
+ "example" === e[7],
+ (e) =>
+ "paths" === e[0] &&
+ "parameters" === e[3] &&
+ "content" === e[5] &&
+ "examples" === e[7] &&
+ "value" === e[9],
+ ],
+ je = {
+ key: "$ref",
+ plugin: (e, t, n, r) => {
+ const o = r.getInstance(),
+ s = n.slice(0, -1);
+ if (ye(s) || ((e) => _e.some((t) => t(e)))(s)) return;
+ const { baseDoc: i } = r.getContext(n);
+ if ("string" != typeof e)
+ return new Ee("$ref: must be a string (JSON-Ref)", {
+ $ref: e,
+ baseDoc: i,
+ fullPath: n,
+ });
+ const a = Pe(e),
+ l = a[0],
+ c = a[1] || "";
+ let u, p, h;
+ try {
+ u = i || l ? Ae(l, i) : null;
+ } catch (t) {
+ return Ce(t, {
+ pointer: c,
+ $ref: e,
+ basePath: u,
+ fullPath: n,
+ });
+ }
+ if (
+ (function (e, t, n, r) {
+ let o = Se.get(r);
+ o || ((o = {}), Se.set(r, o));
+ const s = (function (e) {
+ if (0 === e.length) return "";
+ return `/${e.map(De).join("/")}`;
+ })(n),
+ i = `${t || ""}#${e}`,
+ a = s.replace(/allOf\/\d+\/?/g, ""),
+ l = r.contextTree.get([]).baseDoc;
+ if (t === l && Le(a, e)) return !0;
+ let c = "";
+ const u = n.some(
+ (e) => (
+ (c = `${c}/${De(e)}`),
+ o[c] && o[c].some((e) => Le(e, i) || Le(i, e))
+ )
+ );
+ if (u) return !0;
+ return void (o[a] = (o[a] || []).concat(i));
+ })(c, u, s, r) &&
+ !o.useCircularStructures
+ ) {
+ const t = ve(e, u);
+ return e === t ? null : J.replace(n, t);
+ }
+ if (
+ (null == u
+ ? ((h = Re(c)),
+ (p = r.get(h)),
+ void 0 === p &&
+ (p = new Ee(`Could not resolve reference: ${e}`, {
+ pointer: c,
+ $ref: e,
+ baseDoc: i,
+ fullPath: n,
+ })))
+ : ((p = Ne(u, c)),
+ (p =
+ null != p.__value
+ ? p.__value
+ : p.catch((t) => {
+ throw Ce(t, {
+ pointer: c,
+ $ref: e,
+ baseDoc: i,
+ fullPath: n,
+ });
+ }))),
+ p instanceof Error)
+ )
+ return [J.remove(n), p];
+ const f = ve(e, u),
+ d = J.replace(s, p, { $$ref: f });
+ if (u && u !== i) return [d, J.context(s, { baseDoc: u })];
+ try {
+ if (
+ !(function (e, t) {
+ const n = [e];
+ return (
+ t.path.reduce((e, t) => (n.push(e[t]), e[t]), e),
+ r(t.value)
+ );
+ function r(e) {
+ return (
+ J.isObject(e) &&
+ (n.indexOf(e) >= 0 ||
+ Object.keys(e).some((t) => r(e[t])))
+ );
+ }
+ })(r.state, d) ||
+ o.useCircularStructures
+ )
+ return d;
+ } catch (e) {
+ return null;
+ }
+ },
+ },
+ Oe = Object.assign(je, {
+ docCache: xe,
+ absoluteify: Ae,
+ clearCache: function (e) {
+ void 0 !== e
+ ? delete xe[e]
+ : Object.keys(xe).forEach((e) => {
+ delete xe[e];
+ });
+ },
+ JSONRefError: Ee,
+ wrapError: Ce,
+ getDoc: Ie,
+ split: Pe,
+ extractFromDoc: Ne,
+ fetchJSON: function (e) {
+ return fetch(e, { headers: { Accept: be }, loadSpec: !0 })
+ .then((e) => e.text())
+ .then((e) => le.ZP.load(e));
+ },
+ extract: Te,
+ jsonPointerToArray: Re,
+ unescapeJsonPointerToken: Me,
+ }),
+ ke = Oe;
+ function Ae(e, t) {
+ if (!we.test(e)) {
+ if (!t)
+ throw new Ee(
+ `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`
+ );
+ return ce.resolve(t, e);
+ }
+ return e;
+ }
+ function Ce(e, t) {
+ let n;
+ return (
+ (n =
+ e && e.response && e.response.body
+ ? `${e.response.body.code} ${e.response.body.message}`
+ : e.message),
+ new Ee(`Could not resolve reference: ${n}`, t, e)
+ );
+ }
+ function Pe(e) {
+ return (e + "").split("#");
+ }
+ function Ne(e, t) {
+ const n = xe[e];
+ if (n && !J.isPromise(n))
+ try {
+ const e = Te(t, n);
+ return Object.assign(Promise.resolve(e), { __value: e });
+ } catch (e) {
+ return Promise.reject(e);
+ }
+ return Ie(e).then((e) => Te(t, e));
+ }
+ function Ie(e) {
+ const t = xe[e];
+ return t
+ ? J.isPromise(t)
+ ? t
+ : Promise.resolve(t)
+ : ((xe[e] = Oe.fetchJSON(e).then((t) => ((xe[e] = t), t))),
+ xe[e]);
+ }
+ function Te(e, t) {
+ const n = Re(e);
+ if (n.length < 1) return t;
+ const r = J.getIn(t, n);
+ if (void 0 === r)
+ throw new Ee(
+ `Could not resolve pointer: ${e} does not exist in document`,
+ { pointer: e }
+ );
+ return r;
+ }
+ function Re(e) {
+ if ("string" != typeof e)
+ throw new TypeError("Expected a string, got a " + typeof e);
+ return (
+ "/" === e[0] && (e = e.substr(1)),
+ "" === e ? [] : e.split("/").map(Me)
+ );
+ }
+ function Me(e) {
+ if ("string" != typeof e) return e;
+ return new URLSearchParams(
+ `=${e.replace(/~1/g, "/").replace(/~0/g, "~")}`
+ ).get("");
+ }
+ function De(e) {
+ return new URLSearchParams([
+ ["", e.replace(/~/g, "~0").replace(/\//g, "~1")],
+ ])
+ .toString()
+ .slice(1);
+ }
+ const Fe = (e) => !e || "/" === e || "#" === e;
+ function Le(e, t) {
+ if (Fe(t)) return !0;
+ const n = e.charAt(t.length),
+ r = t.slice(-1);
+ return (
+ 0 === e.indexOf(t) && (!n || "/" === n || "#" === n) && "#" !== r
+ );
+ }
+ const Be = {
+ key: "allOf",
+ plugin: (e, t, n, r, o) => {
+ if (o.meta && o.meta.$$ref) return;
+ const s = n.slice(0, -1);
+ if (ye(s)) return;
+ if (!Array.isArray(e)) {
+ const e = new TypeError("allOf must be an array");
+ return (e.fullPath = n), e;
+ }
+ let i = !1,
+ a = o.value;
+ if (
+ (s.forEach((e) => {
+ a && (a = a[e]);
+ }),
+ (a = f()({}, a)),
+ 0 === Object.keys(a).length)
+ )
+ return;
+ delete a.allOf;
+ const l = [];
+ return (
+ l.push(r.replace(s, {})),
+ e.forEach((e, t) => {
+ if (!r.isObject(e)) {
+ if (i) return null;
+ i = !0;
+ const e = new TypeError(
+ "Elements in allOf must be objects"
+ );
+ return (e.fullPath = n), l.push(e);
+ }
+ l.push(r.mergeDeep(s, e));
+ const o = (function (e, t) {
+ let {
+ specmap: n,
+ getBaseUrlForNodePath: r = (e) =>
+ n.getContext([...t, ...e]).baseDoc,
+ targetKeys: o = ["$ref", "$$ref"],
+ } = arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ const s = [];
+ return (
+ he()(e).forEach(function () {
+ if (
+ o.includes(this.key) &&
+ "string" == typeof this.node
+ ) {
+ const e = this.path,
+ o = t.concat(this.path),
+ i = ve(this.node, r(e));
+ s.push(n.replace(o, i));
+ }
+ }),
+ s
+ );
+ })(e, n.slice(0, -1), {
+ getBaseUrlForNodePath: (e) =>
+ r.getContext([...n, t, ...e]).baseDoc,
+ specmap: r,
+ });
+ l.push(...o);
+ }),
+ a.example && l.push(r.remove([].concat(s, "example"))),
+ l.push(r.mergeDeep(s, a)),
+ a.$$ref || l.push(r.remove([].concat(s, "$$ref"))),
+ l
+ );
+ },
+ },
+ $e = {
+ key: "parameters",
+ plugin: (e, t, n, r) => {
+ if (Array.isArray(e) && e.length) {
+ const t = Object.assign([], e),
+ o = n.slice(0, -1),
+ s = f()({}, J.getIn(r.spec, o));
+ for (let o = 0; o < e.length; o += 1) {
+ const i = e[o];
+ try {
+ t[o].default = r.parameterMacro(s, i);
+ } catch (e) {
+ const t = new Error(e);
+ return (t.fullPath = n), t;
+ }
+ }
+ return J.replace(n, t);
+ }
+ return J.replace(n, e);
+ },
+ },
+ qe = {
+ key: "properties",
+ plugin: (e, t, n, r) => {
+ const o = f()({}, e);
+ for (const t in e)
+ try {
+ o[t].default = r.modelPropertyMacro(o[t]);
+ } catch (e) {
+ const t = new Error(e);
+ return (t.fullPath = n), t;
+ }
+ return J.replace(n, o);
+ },
+ };
+ class Ue {
+ constructor(e) {
+ this.root = ze(e || {});
+ }
+ set(e, t) {
+ const n = this.getParent(e, !0);
+ if (!n) return void Ve(this.root, t, null);
+ const r = e[e.length - 1],
+ { children: o } = n;
+ o[r] ? Ve(o[r], t, n) : (o[r] = ze(t, n));
+ }
+ get(e) {
+ if ((e = e || []).length < 1) return this.root.value;
+ let t,
+ n,
+ r = this.root;
+ for (
+ let o = 0;
+ o < e.length && ((n = e[o]), (t = r.children), t[n]);
+ o += 1
+ )
+ r = t[n];
+ return r && r.protoValue;
+ }
+ getParent(e, t) {
+ return !e || e.length < 1
+ ? null
+ : e.length < 2
+ ? this.root
+ : e.slice(0, -1).reduce((e, n) => {
+ if (!e) return e;
+ const { children: r } = e;
+ return !r[n] && t && (r[n] = ze(null, e)), r[n];
+ }, this.root);
+ }
+ }
+ function ze(e, t) {
+ return Ve({ children: {} }, e, t);
+ }
+ function Ve(e, t, n) {
+ return (
+ (e.value = t || {}),
+ (e.protoValue = n
+ ? f()(f()({}, n.protoValue), e.value)
+ : e.value),
+ Object.keys(e.children).forEach((t) => {
+ const n = e.children[t];
+ e.children[t] = Ve(n, n.value, e);
+ }),
+ e
+ );
+ }
+ const We = () => {};
+ class Je {
+ static getPluginName(e) {
+ return e.pluginName;
+ }
+ static getPatchesOfType(e, t) {
+ return e.filter(t);
+ }
+ constructor(e) {
+ Object.assign(
+ this,
+ {
+ spec: "",
+ debugLevel: "info",
+ plugins: [],
+ pluginHistory: {},
+ errors: [],
+ mutations: [],
+ promisedPatches: [],
+ state: {},
+ patches: [],
+ context: {},
+ contextTree: new Ue(),
+ showDebug: !1,
+ allPatches: [],
+ pluginProp: "specMap",
+ libMethods: Object.assign(Object.create(this), J, {
+ getInstance: () => this,
+ }),
+ allowMetaPatches: !1,
+ },
+ e
+ ),
+ (this.get = this._get.bind(this)),
+ (this.getContext = this._getContext.bind(this)),
+ (this.hasRun = this._hasRun.bind(this)),
+ (this.wrappedPlugins = this.plugins
+ .map(this.wrapPlugin.bind(this))
+ .filter(J.isFunction)),
+ this.patches.push(J.add([], this.spec)),
+ this.patches.push(J.context([], this.context)),
+ this.updatePatches(this.patches);
+ }
+ debug(e) {
+ if (this.debugLevel === e) {
+ for (
+ var t = arguments.length,
+ n = new Array(t > 1 ? t - 1 : 0),
+ r = 1;
+ r < t;
+ r++
+ )
+ n[r - 1] = arguments[r];
+ console.log(...n);
+ }
+ }
+ verbose(e) {
+ if ("verbose" === this.debugLevel) {
+ for (
+ var t = arguments.length,
+ n = new Array(t > 1 ? t - 1 : 0),
+ r = 1;
+ r < t;
+ r++
+ )
+ n[r - 1] = arguments[r];
+ console.log(`[${e}] `, ...n);
+ }
+ }
+ wrapPlugin(e, t) {
+ const { pathDiscriminator: n } = this;
+ let r,
+ o = null;
+ return (
+ e[this.pluginProp]
+ ? ((o = e), (r = e[this.pluginProp]))
+ : J.isFunction(e)
+ ? (r = e)
+ : J.isObject(e) &&
+ (r = (function (e) {
+ const t = (e, t) =>
+ !Array.isArray(e) || e.every((e, n) => e === t[n]);
+ return function* (r, o) {
+ const s = {};
+ for (const e of r.filter(J.isAdditiveMutation))
+ yield* i(e.value, e.path, e);
+ function* i(r, a, l) {
+ if (J.isObject(r)) {
+ const c = a.length - 1,
+ u = a[c],
+ p = a.indexOf("properties"),
+ h = "properties" === u && c === p,
+ f = o.allowMetaPatches && s[r.$$ref];
+ for (const c of Object.keys(r)) {
+ const u = r[c],
+ p = a.concat(c),
+ d = J.isObject(u),
+ m = r.$$ref;
+ if (
+ (f ||
+ (d &&
+ (o.allowMetaPatches && m && (s[m] = !0),
+ yield* i(u, p, l))),
+ !h && c === e.key)
+ ) {
+ const r = t(n, a);
+ (n && !r) || (yield e.plugin(u, c, p, o, l));
+ }
+ }
+ } else
+ e.key === a[a.length - 1] &&
+ (yield e.plugin(r, e.key, a, o));
+ }
+ };
+ })(e)),
+ Object.assign(r.bind(o), {
+ pluginName: e.name || t,
+ isGenerator: J.isGenerator(r),
+ })
+ );
+ }
+ nextPlugin() {
+ return this.wrappedPlugins.find(
+ (e) => this.getMutationsForPlugin(e).length > 0
+ );
+ }
+ nextPromisedPatch() {
+ if (this.promisedPatches.length > 0)
+ return Promise.race(this.promisedPatches.map((e) => e.value));
+ }
+ getPluginHistory(e) {
+ const t = this.constructor.getPluginName(e);
+ return this.pluginHistory[t] || [];
+ }
+ getPluginRunCount(e) {
+ return this.getPluginHistory(e).length;
+ }
+ getPluginHistoryTip(e) {
+ const t = this.getPluginHistory(e);
+ return (t && t[t.length - 1]) || {};
+ }
+ getPluginMutationIndex(e) {
+ const t = this.getPluginHistoryTip(e).mutationIndex;
+ return "number" != typeof t ? -1 : t;
+ }
+ updatePluginHistory(e, t) {
+ const n = this.constructor.getPluginName(e);
+ (this.pluginHistory[n] = this.pluginHistory[n] || []),
+ this.pluginHistory[n].push(t);
+ }
+ updatePatches(e) {
+ J.normalizeArray(e).forEach((e) => {
+ if (e instanceof Error) this.errors.push(e);
+ else
+ try {
+ if (!J.isObject(e))
+ return void this.debug(
+ "updatePatches",
+ "Got a non-object patch",
+ e
+ );
+ if (
+ (this.showDebug && this.allPatches.push(e),
+ J.isPromise(e.value))
+ )
+ return (
+ this.promisedPatches.push(e),
+ void this.promisedPatchThen(e)
+ );
+ if (J.isContextPatch(e))
+ return void this.setContext(e.path, e.value);
+ J.isMutation(e) && this.updateMutations(e);
+ } catch (e) {
+ console.error(e), this.errors.push(e);
+ }
+ });
+ }
+ updateMutations(e) {
+ "object" == typeof e.value &&
+ !Array.isArray(e.value) &&
+ this.allowMetaPatches &&
+ (e.value = f()({}, e.value));
+ const t = J.applyPatch(this.state, e, {
+ allowMetaPatches: this.allowMetaPatches,
+ });
+ t && (this.mutations.push(e), (this.state = t));
+ }
+ removePromisedPatch(e) {
+ const t = this.promisedPatches.indexOf(e);
+ t < 0
+ ? this.debug(
+ "Tried to remove a promisedPatch that isn't there!"
+ )
+ : this.promisedPatches.splice(t, 1);
+ }
+ promisedPatchThen(e) {
+ return (
+ (e.value = e.value
+ .then((t) => {
+ const n = f()(f()({}, e), {}, { value: t });
+ this.removePromisedPatch(e), this.updatePatches(n);
+ })
+ .catch((t) => {
+ this.removePromisedPatch(e), this.updatePatches(t);
+ })),
+ e.value
+ );
+ }
+ getMutations(e, t) {
+ return (
+ (e = e || 0),
+ "number" != typeof t && (t = this.mutations.length),
+ this.mutations.slice(e, t)
+ );
+ }
+ getCurrentMutations() {
+ return this.getMutationsForPlugin(this.getCurrentPlugin());
+ }
+ getMutationsForPlugin(e) {
+ const t = this.getPluginMutationIndex(e);
+ return this.getMutations(t + 1);
+ }
+ getCurrentPlugin() {
+ return this.currentPlugin;
+ }
+ getLib() {
+ return this.libMethods;
+ }
+ _get(e) {
+ return J.getIn(this.state, e);
+ }
+ _getContext(e) {
+ return this.contextTree.get(e);
+ }
+ setContext(e, t) {
+ return this.contextTree.set(e, t);
+ }
+ _hasRun(e) {
+ return this.getPluginRunCount(this.getCurrentPlugin()) > (e || 0);
+ }
+ dispatch() {
+ const e = this,
+ t = this.nextPlugin();
+ if (!t) {
+ const e = this.nextPromisedPatch();
+ if (e)
+ return e
+ .then(() => this.dispatch())
+ .catch(() => this.dispatch());
+ const t = { spec: this.state, errors: this.errors };
+ return (
+ this.showDebug && (t.patches = this.allPatches),
+ Promise.resolve(t)
+ );
+ }
+ if (
+ ((e.pluginCount = e.pluginCount || {}),
+ (e.pluginCount[t] = (e.pluginCount[t] || 0) + 1),
+ e.pluginCount[t] > 100)
+ )
+ return Promise.resolve({
+ spec: e.state,
+ errors: e.errors.concat(
+ new Error("We've reached a hard limit of 100 plugin runs")
+ ),
+ });
+ if (t !== this.currentPlugin && this.promisedPatches.length) {
+ const e = this.promisedPatches.map((e) => e.value);
+ return Promise.all(e.map((e) => e.then(We, We))).then(() =>
+ this.dispatch()
+ );
+ }
+ return (function () {
+ e.currentPlugin = t;
+ const r = e.getCurrentMutations(),
+ o = e.mutations.length - 1;
+ try {
+ if (t.isGenerator) for (const o of t(r, e.getLib())) n(o);
+ else {
+ n(t(r, e.getLib()));
+ }
+ } catch (e) {
+ console.error(e),
+ n([Object.assign(Object.create(e), { plugin: t })]);
+ } finally {
+ e.updatePluginHistory(t, { mutationIndex: o });
+ }
+ return e.dispatch();
+ })();
+ function n(n) {
+ n && ((n = J.fullyNormalizeArray(n)), e.updatePatches(n, t));
+ }
+ }
+ }
+ const Ke = { refs: ke, allOf: Be, parameters: $e, properties: qe };
+ var He = n(32454);
+ function Ge(e) {
+ const { spec: t } = e,
+ { paths: n } = t,
+ r = {};
+ if (!n || t.$$normalized) return e;
+ for (const e in n) {
+ const o = n[e];
+ if (null == o || !["object", "function"].includes(typeof o))
+ continue;
+ const s = o.parameters;
+ for (const n in o) {
+ const i = o[n];
+ if (null == i || !["object", "function"].includes(typeof i))
+ continue;
+ const a = (0, He.Z)(i, e, n);
+ if (a) {
+ r[a] ? r[a].push(i) : (r[a] = [i]);
+ const e = r[a];
+ if (e.length > 1)
+ e.forEach((e, t) => {
+ (e.__originalOperationId =
+ e.__originalOperationId || e.operationId),
+ (e.operationId = `${a}${t + 1}`);
+ });
+ else if (void 0 !== i.operationId) {
+ const t = e[0];
+ (t.__originalOperationId =
+ t.__originalOperationId || i.operationId),
+ (t.operationId = a);
+ }
+ }
+ if ("parameters" !== n) {
+ const e = [],
+ n = {};
+ for (const r in t)
+ ("produces" !== r &&
+ "consumes" !== r &&
+ "security" !== r) ||
+ ((n[r] = t[r]), e.push(n));
+ if ((s && ((n.parameters = s), e.push(n)), e.length))
+ for (const t of e)
+ for (const e in t)
+ if (i[e]) {
+ if ("parameters" === e)
+ for (const n of t[e]) {
+ i[e].some(
+ (e) =>
+ (e.name && e.name === n.name) ||
+ (e.$ref && e.$ref === n.$ref) ||
+ (e.$$ref && e.$$ref === n.$$ref) ||
+ e === n
+ ) || i[e].push(n);
+ }
+ } else i[e] = t[e];
+ }
+ }
+ }
+ return (t.$$normalized = !0), e;
+ }
+ function Ze(e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ const { requestInterceptor: n, responseInterceptor: r } = t,
+ o = e.withCredentials ? "include" : "same-origin";
+ return (t) =>
+ e({
+ url: t,
+ loadSpec: !0,
+ requestInterceptor: n,
+ responseInterceptor: r,
+ headers: { Accept: be },
+ credentials: o,
+ }).then((e) => e.body);
+ }
+ var Ye = n(80129),
+ Xe = n.n(Ye);
+ const Qe =
+ "undefined" != typeof globalThis
+ ? globalThis
+ : "undefined" != typeof self
+ ? self
+ : window,
+ { FormData: et, Blob: tt, File: nt } = Qe,
+ rt = (e) => ":/?#[]@!$&'()*+,;=".indexOf(e) > -1,
+ ot = (e) => /^[a-z0-9\-._~]+$/i.test(e);
+ function st(e) {
+ let { escape: t } =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {},
+ n = arguments.length > 2 ? arguments[2] : void 0;
+ return (
+ "number" == typeof e && (e = e.toString()),
+ "string" == typeof e && e.length && t
+ ? n
+ ? JSON.parse(e)
+ : [...e]
+ .map((e) => {
+ if (ot(e)) return e;
+ if (rt(e) && "unsafe" === t) return e;
+ const n = new TextEncoder();
+ return Array.from(n.encode(e))
+ .map((e) =>
+ `0${e.toString(16).toUpperCase()}`.slice(-2)
+ )
+ .map((e) => `%${e}`)
+ .join("");
+ })
+ .join("")
+ : e
+ );
+ }
+ function it(e) {
+ const { value: t } = e;
+ return Array.isArray(t)
+ ? (function (e) {
+ let { key: t, value: n, style: r, explode: o, escape: s } = e;
+ const i = (e) => st(e, { escape: s });
+ if ("simple" === r) return n.map((e) => i(e)).join(",");
+ if ("label" === r) return `.${n.map((e) => i(e)).join(".")}`;
+ if ("matrix" === r)
+ return n
+ .map((e) => i(e))
+ .reduce(
+ (e, n) =>
+ !e || o ? `${e || ""};${t}=${n}` : `${e},${n}`,
+ ""
+ );
+ if ("form" === r) {
+ const e = o ? `&${t}=` : ",";
+ return n.map((e) => i(e)).join(e);
+ }
+ if ("spaceDelimited" === r) {
+ const e = o ? `${t}=` : "";
+ return n.map((e) => i(e)).join(` ${e}`);
+ }
+ if ("pipeDelimited" === r) {
+ const e = o ? `${t}=` : "";
+ return n.map((e) => i(e)).join(`|${e}`);
+ }
+ return;
+ })(e)
+ : "object" == typeof t
+ ? (function (e) {
+ let { key: t, value: n, style: r, explode: o, escape: s } = e;
+ const i = (e) => st(e, { escape: s }),
+ a = Object.keys(n);
+ if ("simple" === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e},` : ""}${t}${o ? "=" : ","}${r}`;
+ }, "");
+ if ("label" === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e}.` : "."}${t}${o ? "=" : "."}${r}`;
+ }, "");
+ if ("matrix" === r && o)
+ return a.reduce(
+ (e, t) => `${e ? `${e};` : ";"}${t}=${i(n[t])}`,
+ ""
+ );
+ if ("matrix" === r)
+ return a.reduce((e, r) => {
+ const o = i(n[r]);
+ return `${e ? `${e},` : `;${t}=`}${r},${o}`;
+ }, "");
+ if ("form" === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e}${o ? "&" : ","}` : ""}${t}${
+ o ? "=" : ","
+ }${r}`;
+ }, "");
+ return;
+ })(e)
+ : (function (e) {
+ let { key: t, value: n, style: r, escape: o } = e;
+ const s = (e) => st(e, { escape: o });
+ if ("simple" === r) return s(n);
+ if ("label" === r) return `.${s(n)}`;
+ if ("matrix" === r) return `;${t}=${s(n)}`;
+ if ("form" === r) return s(n);
+ if ("deepObject" === r) return s(n, {}, !0);
+ return;
+ })(e);
+ }
+ const at = (e, t) => {
+ t.body = e;
+ },
+ lt = { serializeRes: pt, mergeInQueryOrForm: Et };
+ async function ct(e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ "object" == typeof e && ((t = e), (e = t.url)),
+ (t.headers = t.headers || {}),
+ lt.mergeInQueryOrForm(t),
+ t.headers &&
+ Object.keys(t.headers).forEach((e) => {
+ const n = t.headers[e];
+ "string" == typeof n &&
+ (t.headers[e] = n.replace(/\n+/g, " "));
+ }),
+ t.requestInterceptor &&
+ (t = (await t.requestInterceptor(t)) || t);
+ const n = t.headers["content-type"] || t.headers["Content-Type"];
+ let r;
+ /multipart\/form-data/i.test(n) &&
+ t.body instanceof et &&
+ (delete t.headers["content-type"],
+ delete t.headers["Content-Type"]);
+ try {
+ (r = await (t.userFetch || fetch)(t.url, t)),
+ (r = await lt.serializeRes(r, e, t)),
+ t.responseInterceptor &&
+ (r = (await t.responseInterceptor(r)) || r);
+ } catch (e) {
+ if (!r) throw e;
+ const t = new Error(
+ r.statusText || `response status is ${r.status}`
+ );
+ throw (
+ ((t.status = r.status),
+ (t.statusCode = r.status),
+ (t.responseError = e),
+ t)
+ );
+ }
+ if (!r.ok) {
+ const e = new Error(
+ r.statusText || `response status is ${r.status}`
+ );
+ throw (
+ ((e.status = r.status),
+ (e.statusCode = r.status),
+ (e.response = r),
+ e)
+ );
+ }
+ return r;
+ }
+ const ut = function () {
+ return /(json|xml|yaml|text)\b/.test(
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : ""
+ );
+ };
+ function pt(e, t) {
+ let { loadSpec: n = !1 } =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ const r = {
+ ok: e.ok,
+ url: e.url || t,
+ status: e.status,
+ statusText: e.statusText,
+ headers: ht(e.headers),
+ },
+ o = r.headers["content-type"],
+ s = n || ut(o);
+ return (s ? e.text : e.blob || e.buffer).call(e).then((e) => {
+ if (((r.text = e), (r.data = e), s))
+ try {
+ const t = (function (e, t) {
+ return t &&
+ (0 === t.indexOf("application/json") ||
+ t.indexOf("+json") > 0)
+ ? JSON.parse(e)
+ : le.ZP.load(e);
+ })(e, o);
+ (r.body = t), (r.obj = t);
+ } catch (e) {
+ r.parseError = e;
+ }
+ return r;
+ });
+ }
+ function ht() {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ return "function" != typeof e.entries
+ ? {}
+ : Array.from(e.entries()).reduce((e, t) => {
+ let [n, r] = t;
+ return (
+ (e[n] = (function (e) {
+ return e.includes(", ") ? e.split(", ") : e;
+ })(r)),
+ e
+ );
+ }, {});
+ }
+ function ft(e, t) {
+ return (
+ t || "undefined" == typeof navigator || (t = navigator),
+ t && "ReactNative" === t.product
+ ? !(!e || "object" != typeof e || "string" != typeof e.uri)
+ : (void 0 !== nt && e instanceof nt) ||
+ (void 0 !== tt && e instanceof tt) ||
+ !!ArrayBuffer.isView(e) ||
+ (null !== e &&
+ "object" == typeof e &&
+ "function" == typeof e.pipe)
+ );
+ }
+ function dt(e, t) {
+ return Array.isArray(e) && e.some((e) => ft(e, t));
+ }
+ const mt = { form: ",", spaceDelimited: "%20", pipeDelimited: "|" },
+ gt = { csv: ",", ssv: "%20", tsv: "%09", pipes: "|" };
+ class yt extends nt {
+ constructor(e) {
+ super(
+ [e],
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "",
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {}
+ ),
+ (this.data = e);
+ }
+ valueOf() {
+ return this.data;
+ }
+ toString() {
+ return this.valueOf();
+ }
+ }
+ function vt(e, t) {
+ let n =
+ arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
+ const {
+ collectionFormat: r,
+ allowEmptyValue: o,
+ serializationOption: s,
+ encoding: i,
+ } = t,
+ a = "object" != typeof t || Array.isArray(t) ? t : t.value,
+ l = n ? (e) => e.toString() : (e) => encodeURIComponent(e),
+ c = l(e);
+ if (void 0 === a && o) return [[c, ""]];
+ if (ft(a) || dt(a)) return [[c, a]];
+ if (s) return bt(e, a, n, s);
+ if (i) {
+ if (
+ [typeof i.style, typeof i.explode, typeof i.allowReserved].some(
+ (e) => "undefined" !== e
+ )
+ ) {
+ const { style: t, explode: r, allowReserved: o } = i;
+ return bt(e, a, n, { style: t, explode: r, allowReserved: o });
+ }
+ if ("string" == typeof i.contentType) {
+ if (i.contentType.startsWith("application/json")) {
+ const e = l("string" == typeof a ? a : JSON.stringify(a));
+ return [[c, new yt(e, "blob", { type: i.contentType })]];
+ }
+ const e = l(String(a));
+ return [[c, new yt(e, "blob", { type: i.contentType })]];
+ }
+ return "object" != typeof a
+ ? [[c, l(a)]]
+ : Array.isArray(a) && a.every((e) => "object" != typeof e)
+ ? [[c, a.map(l).join(",")]]
+ : [[c, l(JSON.stringify(a))]];
+ }
+ return "object" != typeof a
+ ? [[c, l(a)]]
+ : Array.isArray(a)
+ ? "multi" === r
+ ? [[c, a.map(l)]]
+ : [[c, a.map(l).join(gt[r || "csv"])]]
+ : [[c, ""]];
+ }
+ function bt(e, t, n, r) {
+ const o = r.style || "form",
+ s = void 0 === r.explode ? "form" === o : r.explode,
+ i = !n && (r && r.allowReserved ? "unsafe" : "reserved"),
+ a = (e) => st(e, { escape: i }),
+ l = n ? (e) => e : (e) => st(e, { escape: i });
+ return "object" != typeof t
+ ? [[l(e), a(t)]]
+ : Array.isArray(t)
+ ? s
+ ? [[l(e), t.map(a)]]
+ : [[l(e), t.map(a).join(mt[o])]]
+ : "deepObject" === o
+ ? Object.keys(t).map((n) => [l(`${e}[${n}]`), a(t[n])])
+ : s
+ ? Object.keys(t).map((e) => [l(e), a(t[e])])
+ : [
+ [
+ l(e),
+ Object.keys(t)
+ .map((e) => [`${l(e)},${a(t[e])}`])
+ .join(","),
+ ],
+ ];
+ }
+ function wt(e) {
+ const t = Object.keys(e).reduce((t, n) => {
+ for (const [r, o] of vt(n, e[n]))
+ t[r] = o instanceof yt ? o.valueOf() : o;
+ return t;
+ }, {});
+ return Xe().stringify(t, { encode: !1, indices: !1 }) || "";
+ }
+ function Et() {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ const { url: t = "", query: n, form: r } = e;
+ if (r) {
+ const t = Object.keys(r).some((e) => {
+ const { value: t } = r[e];
+ return ft(t) || dt(t);
+ }),
+ n = e.headers["content-type"] || e.headers["Content-Type"];
+ if (t || /multipart\/form-data/i.test(n)) {
+ const t =
+ ((o = e.form),
+ Object.entries(o).reduce((e, t) => {
+ let [n, r] = t;
+ for (const [t, o] of vt(n, r, !0))
+ if (Array.isArray(o))
+ for (const n of o)
+ if (ArrayBuffer.isView(n)) {
+ const r = new tt([n]);
+ e.append(t, r);
+ } else e.append(t, n);
+ else if (ArrayBuffer.isView(o)) {
+ const n = new tt([o]);
+ e.append(t, n);
+ } else e.append(t, o);
+ return e;
+ }, new et()));
+ at(t, e);
+ } else e.body = wt(r);
+ delete e.form;
+ }
+ var o;
+ if (n) {
+ const [r, o] = t.split("?");
+ let s = "";
+ if (o) {
+ const e = Xe().parse(o);
+ Object.keys(n).forEach((t) => delete e[t]),
+ (s = Xe().stringify(e, { encode: !0 }));
+ }
+ const i = (function () {
+ for (
+ var e = arguments.length, t = new Array(e), n = 0;
+ n < e;
+ n++
+ )
+ t[n] = arguments[n];
+ const r = t.filter((e) => e).join("&");
+ return r ? `?${r}` : "";
+ })(s, wt(n));
+ (e.url = r + i), delete e.query;
+ }
+ return e;
+ }
+ const xt = (e) => {
+ const { baseDoc: t, url: n } = e;
+ return t || n || "";
+ },
+ St = (e) => {
+ const { fetch: t, http: n } = e;
+ return t || n || ct;
+ };
+ async function _t(e) {
+ const {
+ spec: t,
+ mode: n,
+ allowMetaPatches: r = !0,
+ pathDiscriminator: o,
+ modelPropertyMacro: s,
+ parameterMacro: i,
+ requestInterceptor: a,
+ responseInterceptor: l,
+ skipNormalization: c,
+ useCircularStructures: u,
+ } = e,
+ p = xt(e),
+ h = St(e);
+ return (function (e) {
+ p && (Ke.refs.docCache[p] = e);
+ Ke.refs.fetchJSON = Ze(h, {
+ requestInterceptor: a,
+ responseInterceptor: l,
+ });
+ const t = [Ke.refs];
+ "function" == typeof i && t.push(Ke.parameters);
+ "function" == typeof s && t.push(Ke.properties);
+ "strict" !== n && t.push(Ke.allOf);
+ return ((f = {
+ spec: e,
+ context: { baseDoc: p },
+ plugins: t,
+ allowMetaPatches: r,
+ pathDiscriminator: o,
+ parameterMacro: i,
+ modelPropertyMacro: s,
+ useCircularStructures: u,
+ }),
+ new Je(f).dispatch()).then(c ? async (e) => e : Ge);
+ var f;
+ })(t);
+ }
+ const jt = {
+ name: "generic",
+ match: () => !0,
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) => _t(e),
+ };
+ const Ot = (e) => {
+ try {
+ const { openapi: t } = e;
+ return (
+ "string" == typeof t &&
+ /^3\.0\.([0123])(?:-rc[012])?$/.test(t)
+ );
+ } catch {
+ return !1;
+ }
+ },
+ kt = (e) => {
+ try {
+ const { openapi: t } = e;
+ return "string" == typeof t && /^3\.1\.(?:[1-9]\d*|0)$/.test(t);
+ } catch {
+ return !1;
+ }
+ },
+ At = (e) => Ot(e) || kt(e),
+ Ct = {
+ name: "openapi-2",
+ match(e) {
+ let { spec: t } = e;
+ return ((e) => {
+ try {
+ const { swagger: t } = e;
+ return "2.0" === t;
+ } catch {
+ return !1;
+ }
+ })(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) =>
+ (async function (e) {
+ return _t(e);
+ })(e),
+ };
+ const Pt = {
+ name: "openapi-3-0",
+ match(e) {
+ let { spec: t } = e;
+ return Ot(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) =>
+ (async function (e) {
+ return _t(e);
+ })(e),
+ };
+ var Nt = n(43500);
+ class It extends Nt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "annotation");
+ }
+ get code() {
+ return this.attributes.get("code");
+ }
+ set code(e) {
+ this.attributes.set("code", e);
+ }
+ }
+ const Tt = It;
+ class Rt extends Nt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "comment");
+ }
+ }
+ const Mt = Rt;
+ const Dt = function () {
+ return !1;
+ };
+ const Ft = function () {
+ return !0;
+ };
+ function Lt(e) {
+ return (
+ null != e &&
+ "object" == typeof e &&
+ !0 === e["@@functional/placeholder"]
+ );
+ }
+ function Bt(e) {
+ return function t(n) {
+ return 0 === arguments.length || Lt(n)
+ ? t
+ : e.apply(this, arguments);
+ };
+ }
+ function $t(e) {
+ return function t(n, r) {
+ switch (arguments.length) {
+ case 0:
+ return t;
+ case 1:
+ return Lt(n)
+ ? t
+ : Bt(function (t) {
+ return e(n, t);
+ });
+ default:
+ return Lt(n) && Lt(r)
+ ? t
+ : Lt(n)
+ ? Bt(function (t) {
+ return e(t, r);
+ })
+ : Lt(r)
+ ? Bt(function (t) {
+ return e(n, t);
+ })
+ : e(n, r);
+ }
+ };
+ }
+ const qt =
+ Array.isArray ||
+ function (e) {
+ return (
+ null != e &&
+ e.length >= 0 &&
+ "[object Array]" === Object.prototype.toString.call(e)
+ );
+ };
+ function Ut(e, t, n) {
+ return function () {
+ if (0 === arguments.length) return n();
+ var r = arguments[arguments.length - 1];
+ if (!qt(r)) {
+ for (var o = 0; o < e.length; ) {
+ if ("function" == typeof r[e[o]])
+ return r[e[o]].apply(
+ r,
+ Array.prototype.slice.call(arguments, 0, -1)
+ );
+ o += 1;
+ }
+ if (
+ (function (e) {
+ return (
+ null != e && "function" == typeof e["@@transducer/step"]
+ );
+ })(r)
+ )
+ return t.apply(
+ null,
+ Array.prototype.slice.call(arguments, 0, -1)
+ )(r);
+ }
+ return n.apply(this, arguments);
+ };
+ }
+ function zt(e) {
+ return e && e["@@transducer/reduced"]
+ ? e
+ : { "@@transducer/value": e, "@@transducer/reduced": !0 };
+ }
+ const Vt = function () {
+ return this.xf["@@transducer/init"]();
+ },
+ Wt = function (e) {
+ return this.xf["@@transducer/result"](e);
+ };
+ var Jt = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e), (this.all = !0);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = function (e) {
+ return (
+ this.all && (e = this.xf["@@transducer/step"](e, !0)),
+ this.xf["@@transducer/result"](e)
+ );
+ }),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return (
+ this.f(t) ||
+ ((this.all = !1),
+ (e = zt(this.xf["@@transducer/step"](e, !1)))),
+ e
+ );
+ }),
+ e
+ );
+ })();
+ function Kt(e) {
+ return function (t) {
+ return new Jt(e, t);
+ };
+ }
+ const Ht = $t(
+ Ut(["all"], Kt, function (e, t) {
+ for (var n = 0; n < t.length; ) {
+ if (!e(t[n])) return !1;
+ n += 1;
+ }
+ return !0;
+ })
+ );
+ function Gt(e, t) {
+ switch (e) {
+ case 0:
+ return function () {
+ return t.apply(this, arguments);
+ };
+ case 1:
+ return function (e) {
+ return t.apply(this, arguments);
+ };
+ case 2:
+ return function (e, n) {
+ return t.apply(this, arguments);
+ };
+ case 3:
+ return function (e, n, r) {
+ return t.apply(this, arguments);
+ };
+ case 4:
+ return function (e, n, r, o) {
+ return t.apply(this, arguments);
+ };
+ case 5:
+ return function (e, n, r, o, s) {
+ return t.apply(this, arguments);
+ };
+ case 6:
+ return function (e, n, r, o, s, i) {
+ return t.apply(this, arguments);
+ };
+ case 7:
+ return function (e, n, r, o, s, i, a) {
+ return t.apply(this, arguments);
+ };
+ case 8:
+ return function (e, n, r, o, s, i, a, l) {
+ return t.apply(this, arguments);
+ };
+ case 9:
+ return function (e, n, r, o, s, i, a, l, c) {
+ return t.apply(this, arguments);
+ };
+ case 10:
+ return function (e, n, r, o, s, i, a, l, c, u) {
+ return t.apply(this, arguments);
+ };
+ default:
+ throw new Error(
+ "First argument to _arity must be a non-negative integer no greater than ten"
+ );
+ }
+ }
+ function Zt(e, t, n) {
+ return function () {
+ for (
+ var r = [], o = 0, s = e, i = 0;
+ i < t.length || o < arguments.length;
+
+ ) {
+ var a;
+ i < t.length && (!Lt(t[i]) || o >= arguments.length)
+ ? (a = t[i])
+ : ((a = arguments[o]), (o += 1)),
+ (r[i] = a),
+ Lt(a) || (s -= 1),
+ (i += 1);
+ }
+ return s <= 0 ? n.apply(this, r) : Gt(s, Zt(e, r, n));
+ };
+ }
+ const Yt = $t(function (e, t) {
+ return 1 === e ? Bt(t) : Gt(e, Zt(e, [], t));
+ });
+ function Xt(e) {
+ for (var t, n = []; !(t = e.next()).done; ) n.push(t.value);
+ return n;
+ }
+ function Qt(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) {
+ if (e(t, n[r])) return !0;
+ r += 1;
+ }
+ return !1;
+ }
+ function en(e, t) {
+ return Object.prototype.hasOwnProperty.call(t, e);
+ }
+ const tn =
+ "function" == typeof Object.is
+ ? Object.is
+ : function (e, t) {
+ return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
+ };
+ var nn = Object.prototype.toString;
+ const rn = (function () {
+ return "[object Arguments]" === nn.call(arguments)
+ ? function (e) {
+ return "[object Arguments]" === nn.call(e);
+ }
+ : function (e) {
+ return en("callee", e);
+ };
+ })();
+ var on = !{ toString: null }.propertyIsEnumerable("toString"),
+ sn = [
+ "constructor",
+ "valueOf",
+ "isPrototypeOf",
+ "toString",
+ "propertyIsEnumerable",
+ "hasOwnProperty",
+ "toLocaleString",
+ ],
+ an = (function () {
+ return arguments.propertyIsEnumerable("length");
+ })(),
+ ln = function (e, t) {
+ for (var n = 0; n < e.length; ) {
+ if (e[n] === t) return !0;
+ n += 1;
+ }
+ return !1;
+ };
+ const cn =
+ "function" != typeof Object.keys || an
+ ? Bt(function (e) {
+ if (Object(e) !== e) return [];
+ var t,
+ n,
+ r = [],
+ o = an && rn(e);
+ for (t in e)
+ !en(t, e) || (o && "length" === t) || (r[r.length] = t);
+ if (on)
+ for (n = sn.length - 1; n >= 0; )
+ en((t = sn[n]), e) && !ln(r, t) && (r[r.length] = t),
+ (n -= 1);
+ return r;
+ })
+ : Bt(function (e) {
+ return Object(e) !== e ? [] : Object.keys(e);
+ });
+ const un = Bt(function (e) {
+ return null === e
+ ? "Null"
+ : void 0 === e
+ ? "Undefined"
+ : Object.prototype.toString.call(e).slice(8, -1);
+ });
+ function pn(e, t, n, r) {
+ var o = Xt(e);
+ function s(e, t) {
+ return hn(e, t, n.slice(), r.slice());
+ }
+ return !Qt(
+ function (e, t) {
+ return !Qt(s, t, e);
+ },
+ Xt(t),
+ o
+ );
+ }
+ function hn(e, t, n, r) {
+ if (tn(e, t)) return !0;
+ var o,
+ s,
+ i = un(e);
+ if (i !== un(t)) return !1;
+ if (
+ "function" == typeof e["fantasy-land/equals"] ||
+ "function" == typeof t["fantasy-land/equals"]
+ )
+ return (
+ "function" == typeof e["fantasy-land/equals"] &&
+ e["fantasy-land/equals"](t) &&
+ "function" == typeof t["fantasy-land/equals"] &&
+ t["fantasy-land/equals"](e)
+ );
+ if ("function" == typeof e.equals || "function" == typeof t.equals)
+ return (
+ "function" == typeof e.equals &&
+ e.equals(t) &&
+ "function" == typeof t.equals &&
+ t.equals(e)
+ );
+ switch (i) {
+ case "Arguments":
+ case "Array":
+ case "Object":
+ if (
+ "function" == typeof e.constructor &&
+ "Promise" ===
+ ((o = e.constructor),
+ null == (s = String(o).match(/^function (\w*)/))
+ ? ""
+ : s[1])
+ )
+ return e === t;
+ break;
+ case "Boolean":
+ case "Number":
+ case "String":
+ if (typeof e != typeof t || !tn(e.valueOf(), t.valueOf()))
+ return !1;
+ break;
+ case "Date":
+ if (!tn(e.valueOf(), t.valueOf())) return !1;
+ break;
+ case "Error":
+ return e.name === t.name && e.message === t.message;
+ case "RegExp":
+ if (
+ e.source !== t.source ||
+ e.global !== t.global ||
+ e.ignoreCase !== t.ignoreCase ||
+ e.multiline !== t.multiline ||
+ e.sticky !== t.sticky ||
+ e.unicode !== t.unicode
+ )
+ return !1;
+ }
+ for (var a = n.length - 1; a >= 0; ) {
+ if (n[a] === e) return r[a] === t;
+ a -= 1;
+ }
+ switch (i) {
+ case "Map":
+ return (
+ e.size === t.size &&
+ pn(e.entries(), t.entries(), n.concat([e]), r.concat([t]))
+ );
+ case "Set":
+ return (
+ e.size === t.size &&
+ pn(e.values(), t.values(), n.concat([e]), r.concat([t]))
+ );
+ case "Arguments":
+ case "Array":
+ case "Object":
+ case "Boolean":
+ case "Number":
+ case "String":
+ case "Date":
+ case "Error":
+ case "RegExp":
+ case "Int8Array":
+ case "Uint8Array":
+ case "Uint8ClampedArray":
+ case "Int16Array":
+ case "Uint16Array":
+ case "Int32Array":
+ case "Uint32Array":
+ case "Float32Array":
+ case "Float64Array":
+ case "ArrayBuffer":
+ break;
+ default:
+ return !1;
+ }
+ var l = cn(e);
+ if (l.length !== cn(t).length) return !1;
+ var c = n.concat([e]),
+ u = r.concat([t]);
+ for (a = l.length - 1; a >= 0; ) {
+ var p = l[a];
+ if (!en(p, t) || !hn(t[p], e[p], c, u)) return !1;
+ a -= 1;
+ }
+ return !0;
+ }
+ const fn = $t(function (e, t) {
+ return hn(e, t, [], []);
+ });
+ function dn(e, t) {
+ return (
+ (function (e, t, n) {
+ var r, o;
+ if ("function" == typeof e.indexOf)
+ switch (typeof t) {
+ case "number":
+ if (0 === t) {
+ for (r = 1 / t; n < e.length; ) {
+ if (0 === (o = e[n]) && 1 / o === r) return n;
+ n += 1;
+ }
+ return -1;
+ }
+ if (t != t) {
+ for (; n < e.length; ) {
+ if ("number" == typeof (o = e[n]) && o != o) return n;
+ n += 1;
+ }
+ return -1;
+ }
+ return e.indexOf(t, n);
+ case "string":
+ case "boolean":
+ case "function":
+ case "undefined":
+ return e.indexOf(t, n);
+ case "object":
+ if (null === t) return e.indexOf(t, n);
+ }
+ for (; n < e.length; ) {
+ if (fn(e[n], t)) return n;
+ n += 1;
+ }
+ return -1;
+ })(t, e, 0) >= 0
+ );
+ }
+ function mn(e, t) {
+ for (var n = 0, r = t.length, o = Array(r); n < r; )
+ (o[n] = e(t[n])), (n += 1);
+ return o;
+ }
+ function gn(e) {
+ return (
+ '"' +
+ e
+ .replace(/\\/g, "\\\\")
+ .replace(/[\b]/g, "\\b")
+ .replace(/\f/g, "\\f")
+ .replace(/\n/g, "\\n")
+ .replace(/\r/g, "\\r")
+ .replace(/\t/g, "\\t")
+ .replace(/\v/g, "\\v")
+ .replace(/\0/g, "\\0")
+ .replace(/"/g, '\\"') +
+ '"'
+ );
+ }
+ var yn = function (e) {
+ return (e < 10 ? "0" : "") + e;
+ };
+ const vn =
+ "function" == typeof Date.prototype.toISOString
+ ? function (e) {
+ return e.toISOString();
+ }
+ : function (e) {
+ return (
+ e.getUTCFullYear() +
+ "-" +
+ yn(e.getUTCMonth() + 1) +
+ "-" +
+ yn(e.getUTCDate()) +
+ "T" +
+ yn(e.getUTCHours()) +
+ ":" +
+ yn(e.getUTCMinutes()) +
+ ":" +
+ yn(e.getUTCSeconds()) +
+ "." +
+ (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) +
+ "Z"
+ );
+ };
+ function bn(e) {
+ return function () {
+ return !e.apply(this, arguments);
+ };
+ }
+ function wn(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) (t = e(t, n[r])), (r += 1);
+ return t;
+ }
+ function En(e) {
+ return "[object Object]" === Object.prototype.toString.call(e);
+ }
+ var xn = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = Wt),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return this.f(t) ? this.xf["@@transducer/step"](e, t) : e;
+ }),
+ e
+ );
+ })();
+ function Sn(e) {
+ return function (t) {
+ return new xn(e, t);
+ };
+ }
+ const _n = $t(
+ Ut(["fantasy-land/filter", "filter"], Sn, function (e, t) {
+ return En(t)
+ ? wn(
+ function (n, r) {
+ return e(t[r]) && (n[r] = t[r]), n;
+ },
+ {},
+ cn(t)
+ )
+ : (function (e, t) {
+ for (var n = 0, r = t.length, o = []; n < r; )
+ e(t[n]) && (o[o.length] = t[n]), (n += 1);
+ return o;
+ })(e, t);
+ })
+ );
+ const jn = $t(function (e, t) {
+ return _n(bn(e), t);
+ });
+ function On(e, t) {
+ var n = function (n) {
+ var r = t.concat([e]);
+ return dn(n, r) ? "" : On(n, r);
+ },
+ r = function (e, t) {
+ return mn(function (t) {
+ return gn(t) + ": " + n(e[t]);
+ }, t.slice().sort());
+ };
+ switch (Object.prototype.toString.call(e)) {
+ case "[object Arguments]":
+ return (
+ "(function() { return arguments; }(" +
+ mn(n, e).join(", ") +
+ "))"
+ );
+ case "[object Array]":
+ return (
+ "[" +
+ mn(n, e)
+ .concat(
+ r(
+ e,
+ jn(function (e) {
+ return /^\d+$/.test(e);
+ }, cn(e))
+ )
+ )
+ .join(", ") +
+ "]"
+ );
+ case "[object Boolean]":
+ return "object" == typeof e
+ ? "new Boolean(" + n(e.valueOf()) + ")"
+ : e.toString();
+ case "[object Date]":
+ return (
+ "new Date(" + (isNaN(e.valueOf()) ? n(NaN) : gn(vn(e))) + ")"
+ );
+ case "[object Map]":
+ return "new Map(" + n(Array.from(e)) + ")";
+ case "[object Null]":
+ return "null";
+ case "[object Number]":
+ return "object" == typeof e
+ ? "new Number(" + n(e.valueOf()) + ")"
+ : 1 / e == -1 / 0
+ ? "-0"
+ : e.toString(10);
+ case "[object Set]":
+ return "new Set(" + n(Array.from(e).sort()) + ")";
+ case "[object String]":
+ return "object" == typeof e
+ ? "new String(" + n(e.valueOf()) + ")"
+ : gn(e);
+ case "[object Undefined]":
+ return "undefined";
+ default:
+ if ("function" == typeof e.toString) {
+ var o = e.toString();
+ if ("[object Object]" !== o) return o;
+ }
+ return "{" + r(e, cn(e)).join(", ") + "}";
+ }
+ }
+ const kn = Bt(function (e) {
+ return On(e, []);
+ });
+ const An = $t(function (e, t) {
+ if (e === t) return t;
+ function n(e, t) {
+ if (e > t != t > e) return t > e ? t : e;
+ }
+ var r = n(e, t);
+ if (void 0 !== r) return r;
+ var o = n(typeof e, typeof t);
+ if (void 0 !== o) return o === typeof e ? e : t;
+ var s = kn(e),
+ i = n(s, kn(t));
+ return void 0 !== i && i === s ? e : t;
+ });
+ var Cn = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = Wt),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return this.xf["@@transducer/step"](e, this.f(t));
+ }),
+ e
+ );
+ })();
+ const Pn = $t(
+ Ut(
+ ["fantasy-land/map", "map"],
+ function (e) {
+ return function (t) {
+ return new Cn(e, t);
+ };
+ },
+ function (e, t) {
+ switch (Object.prototype.toString.call(t)) {
+ case "[object Function]":
+ return Yt(t.length, function () {
+ return e.call(this, t.apply(this, arguments));
+ });
+ case "[object Object]":
+ return wn(
+ function (n, r) {
+ return (n[r] = e(t[r])), n;
+ },
+ {},
+ cn(t)
+ );
+ default:
+ return mn(e, t);
+ }
+ }
+ )
+ ),
+ Nn =
+ Number.isInteger ||
+ function (e) {
+ return e << 0 === e;
+ };
+ function In(e) {
+ return "[object String]" === Object.prototype.toString.call(e);
+ }
+ const Tn = $t(function (e, t) {
+ var n = e < 0 ? t.length + e : e;
+ return In(t) ? t.charAt(n) : t[n];
+ });
+ const Rn = $t(function (e, t) {
+ if (null != t) return Nn(e) ? Tn(e, t) : t[e];
+ });
+ const Mn = $t(function (e, t) {
+ return Pn(Rn(e), t);
+ });
+ function Dn(e) {
+ return function t(n, r, o) {
+ switch (arguments.length) {
+ case 0:
+ return t;
+ case 1:
+ return Lt(n)
+ ? t
+ : $t(function (t, r) {
+ return e(n, t, r);
+ });
+ case 2:
+ return Lt(n) && Lt(r)
+ ? t
+ : Lt(n)
+ ? $t(function (t, n) {
+ return e(t, r, n);
+ })
+ : Lt(r)
+ ? $t(function (t, r) {
+ return e(n, t, r);
+ })
+ : Bt(function (t) {
+ return e(n, r, t);
+ });
+ default:
+ return Lt(n) && Lt(r) && Lt(o)
+ ? t
+ : Lt(n) && Lt(r)
+ ? $t(function (t, n) {
+ return e(t, n, o);
+ })
+ : Lt(n) && Lt(o)
+ ? $t(function (t, n) {
+ return e(t, r, n);
+ })
+ : Lt(r) && Lt(o)
+ ? $t(function (t, r) {
+ return e(n, t, r);
+ })
+ : Lt(n)
+ ? Bt(function (t) {
+ return e(t, r, o);
+ })
+ : Lt(r)
+ ? Bt(function (t) {
+ return e(n, t, o);
+ })
+ : Lt(o)
+ ? Bt(function (t) {
+ return e(n, r, t);
+ })
+ : e(n, r, o);
+ }
+ };
+ }
+ const Fn = Bt(function (e) {
+ return (
+ !!qt(e) ||
+ (!!e &&
+ "object" == typeof e &&
+ !In(e) &&
+ (0 === e.length ||
+ (e.length > 0 &&
+ e.hasOwnProperty(0) &&
+ e.hasOwnProperty(e.length - 1))))
+ );
+ });
+ var Ln =
+ "undefined" != typeof Symbol ? Symbol.iterator : "@@iterator";
+ function Bn(e, t, n) {
+ return function (r, o, s) {
+ if (Fn(s)) return e(r, o, s);
+ if (null == s) return o;
+ if ("function" == typeof s["fantasy-land/reduce"])
+ return t(r, o, s, "fantasy-land/reduce");
+ if (null != s[Ln]) return n(r, o, s[Ln]());
+ if ("function" == typeof s.next) return n(r, o, s);
+ if ("function" == typeof s.reduce) return t(r, o, s, "reduce");
+ throw new TypeError("reduce: list must be array or iterable");
+ };
+ }
+ function $n(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) {
+ if (
+ (t = e["@@transducer/step"](t, n[r])) &&
+ t["@@transducer/reduced"]
+ ) {
+ t = t["@@transducer/value"];
+ break;
+ }
+ r += 1;
+ }
+ return e["@@transducer/result"](t);
+ }
+ const qn = $t(function (e, t) {
+ return Gt(e.length, function () {
+ return e.apply(t, arguments);
+ });
+ });
+ function Un(e, t, n) {
+ for (var r = n.next(); !r.done; ) {
+ if (
+ (t = e["@@transducer/step"](t, r.value)) &&
+ t["@@transducer/reduced"]
+ ) {
+ t = t["@@transducer/value"];
+ break;
+ }
+ r = n.next();
+ }
+ return e["@@transducer/result"](t);
+ }
+ function zn(e, t, n, r) {
+ return e["@@transducer/result"](
+ n[r](qn(e["@@transducer/step"], e), t)
+ );
+ }
+ const Vn = Bn($n, zn, Un);
+ var Wn = (function () {
+ function e(e) {
+ this.f = e;
+ }
+ return (
+ (e.prototype["@@transducer/init"] = function () {
+ throw new Error("init not implemented on XWrap");
+ }),
+ (e.prototype["@@transducer/result"] = function (e) {
+ return e;
+ }),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return this.f(e, t);
+ }),
+ e
+ );
+ })();
+ function Jn(e) {
+ return new Wn(e);
+ }
+ const Kn = Dn(function (e, t, n) {
+ return Vn("function" == typeof e ? Jn(e) : e, t, n);
+ });
+ const Hn = Bt(function (e) {
+ return Yt(Kn(An, 0, Mn("length", e)), function () {
+ for (var t = 0, n = e.length; t < n; ) {
+ if (!e[t].apply(this, arguments)) return !1;
+ t += 1;
+ }
+ return !0;
+ });
+ });
+ const Gn = Bt(function (e) {
+ return function () {
+ return e;
+ };
+ });
+ const Zn = Bt(function (e) {
+ return Yt(Kn(An, 0, Mn("length", e)), function () {
+ for (var t = 0, n = e.length; t < n; ) {
+ if (e[t].apply(this, arguments)) return !0;
+ t += 1;
+ }
+ return !1;
+ });
+ });
+ function Yn(e, t, n) {
+ for (var r = n.next(); !r.done; )
+ (t = e(t, r.value)), (r = n.next());
+ return t;
+ }
+ function Xn(e, t, n, r) {
+ return n[r](e, t);
+ }
+ const Qn = Bn(wn, Xn, Yn);
+ const er = $t(function (e, t) {
+ return "function" == typeof t["fantasy-land/ap"]
+ ? t["fantasy-land/ap"](e)
+ : "function" == typeof e.ap
+ ? e.ap(t)
+ : "function" == typeof e
+ ? function (n) {
+ return e(n)(t(n));
+ }
+ : Qn(
+ function (e, n) {
+ return (function (e, t) {
+ var n;
+ t = t || [];
+ var r = (e = e || []).length,
+ o = t.length,
+ s = [];
+ for (n = 0; n < r; ) (s[s.length] = e[n]), (n += 1);
+ for (n = 0; n < o; ) (s[s.length] = t[n]), (n += 1);
+ return s;
+ })(e, Pn(n, t));
+ },
+ [],
+ e
+ );
+ });
+ const tr = $t(function (e, t) {
+ return e.apply(this, t);
+ });
+ var nr = Bt(function (e) {
+ for (var t = cn(e), n = t.length, r = [], o = 0; o < n; )
+ (r[o] = e[t[o]]), (o += 1);
+ return r;
+ });
+ const rr = nr;
+ const or = Bt(function (e) {
+ return null == e;
+ });
+ const sr = Dn(function e(t, n, r) {
+ if (0 === t.length) return n;
+ var o = t[0];
+ if (t.length > 1) {
+ var s =
+ !or(r) && en(o, r) && "object" == typeof r[o]
+ ? r[o]
+ : Nn(t[1])
+ ? []
+ : {};
+ n = e(Array.prototype.slice.call(t, 1), n, s);
+ }
+ return (function (e, t, n) {
+ if (Nn(e) && qt(n)) {
+ var r = [].concat(n);
+ return (r[e] = t), r;
+ }
+ var o = {};
+ for (var s in n) o[s] = n[s];
+ return (o[e] = t), o;
+ })(o, n, r);
+ });
+ function ir(e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ "[object Function]" === t ||
+ "[object AsyncFunction]" === t ||
+ "[object GeneratorFunction]" === t ||
+ "[object AsyncGeneratorFunction]" === t
+ );
+ }
+ const ar = $t(function (e, t) {
+ return e && t;
+ });
+ const lr = $t(function (e, t) {
+ var n = Yt(e, t);
+ return Yt(e, function () {
+ return wn(
+ er,
+ Pn(n, arguments[0]),
+ Array.prototype.slice.call(arguments, 1)
+ );
+ });
+ });
+ const cr = Bt(function (e) {
+ return lr(e.length, e);
+ });
+ const ur = $t(function (e, t) {
+ return ir(e)
+ ? function () {
+ return e.apply(this, arguments) && t.apply(this, arguments);
+ }
+ : cr(ar)(e, t);
+ });
+ const pr = Bt(function (e) {
+ return function (t, n) {
+ return e(t, n) ? -1 : e(n, t) ? 1 : 0;
+ };
+ });
+ const hr = cr(
+ Bt(function (e) {
+ return !e;
+ })
+ );
+ function fr(e, t) {
+ return function () {
+ return t.call(this, e.apply(this, arguments));
+ };
+ }
+ function dr(e, t) {
+ return function () {
+ var n = arguments.length;
+ if (0 === n) return t();
+ var r = arguments[n - 1];
+ return qt(r) || "function" != typeof r[e]
+ ? t.apply(this, arguments)
+ : r[e].apply(
+ r,
+ Array.prototype.slice.call(arguments, 0, n - 1)
+ );
+ };
+ }
+ const mr = Dn(
+ dr("slice", function (e, t, n) {
+ return Array.prototype.slice.call(n, e, t);
+ })
+ );
+ const gr = Bt(dr("tail", mr(1, 1 / 0)));
+ function yr() {
+ if (0 === arguments.length)
+ throw new Error("pipe requires at least one argument");
+ return Gt(arguments[0].length, Kn(fr, arguments[0], gr(arguments)));
+ }
+ var vr = $t(function (e, t) {
+ return Yt(Kn(An, 0, Mn("length", t)), function () {
+ var n = arguments,
+ r = this;
+ return e.apply(
+ r,
+ mn(function (e) {
+ return e.apply(r, n);
+ }, t)
+ );
+ });
+ });
+ const br = vr;
+ function wr(e) {
+ return new RegExp(
+ e.source,
+ e.flags
+ ? e.flags
+ : (e.global ? "g" : "") +
+ (e.ignoreCase ? "i" : "") +
+ (e.multiline ? "m" : "") +
+ (e.sticky ? "y" : "") +
+ (e.unicode ? "u" : "") +
+ (e.dotAll ? "s" : "")
+ );
+ }
+ function Er(e, t, n) {
+ if (
+ (n || (n = new xr()),
+ (function (e) {
+ var t = typeof e;
+ return null == e || ("object" != t && "function" != t);
+ })(e))
+ )
+ return e;
+ var r = function (r) {
+ var o = n.get(e);
+ if (o) return o;
+ for (var s in (n.set(e, r), e))
+ Object.prototype.hasOwnProperty.call(e, s) &&
+ (r[s] = t ? Er(e[s], !0, n) : e[s]);
+ return r;
+ };
+ switch (un(e)) {
+ case "Object":
+ return r(Object.create(Object.getPrototypeOf(e)));
+ case "Array":
+ return r([]);
+ case "Date":
+ return new Date(e.valueOf());
+ case "RegExp":
+ return wr(e);
+ case "Int8Array":
+ case "Uint8Array":
+ case "Uint8ClampedArray":
+ case "Int16Array":
+ case "Uint16Array":
+ case "Int32Array":
+ case "Uint32Array":
+ case "Float32Array":
+ case "Float64Array":
+ case "BigInt64Array":
+ case "BigUint64Array":
+ return e.slice();
+ default:
+ return e;
+ }
+ }
+ var xr = (function () {
+ function e() {
+ (this.map = {}), (this.length = 0);
+ }
+ return (
+ (e.prototype.set = function (e, t) {
+ const n = this.hash(e);
+ let r = this.map[n];
+ r || (this.map[n] = r = []),
+ r.push([e, t]),
+ (this.length += 1);
+ }),
+ (e.prototype.hash = function (e) {
+ let t = [];
+ for (var n in e) t.push(Object.prototype.toString.call(e[n]));
+ return t.join();
+ }),
+ (e.prototype.get = function (e) {
+ if (this.length <= 180) {
+ for (const t in this.map) {
+ const n = this.map[t];
+ for (let t = 0; t < n.length; t += 1) {
+ const r = n[t];
+ if (r[0] === e) return r[1];
+ }
+ }
+ return;
+ }
+ const t = this.hash(e),
+ n = this.map[t];
+ if (n)
+ for (let t = 0; t < n.length; t += 1) {
+ const r = n[t];
+ if (r[0] === e) return r[1];
+ }
+ }),
+ e
+ );
+ })(),
+ Sr = (function () {
+ function e(e, t, n, r) {
+ (this.valueFn = e),
+ (this.valueAcc = t),
+ (this.keyFn = n),
+ (this.xf = r),
+ (this.inputs = {});
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = function (e) {
+ var t;
+ for (t in this.inputs)
+ if (
+ en(t, this.inputs) &&
+ (e = this.xf["@@transducer/step"](e, this.inputs[t]))[
+ "@@transducer/reduced"
+ ]
+ ) {
+ e = e["@@transducer/value"];
+ break;
+ }
+ return (
+ (this.inputs = null), this.xf["@@transducer/result"](e)
+ );
+ }),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ var n = this.keyFn(t);
+ return (
+ (this.inputs[n] = this.inputs[n] || [
+ n,
+ Er(this.valueAcc, !1),
+ ]),
+ (this.inputs[n][1] = this.valueFn(this.inputs[n][1], t)),
+ e
+ );
+ }),
+ e
+ );
+ })();
+ function _r(e, t, n) {
+ return function (r) {
+ return new Sr(e, t, n, r);
+ };
+ }
+ var jr = Zt(
+ 4,
+ [],
+ Ut([], _r, function (e, t, n, r) {
+ var o = Jn(function (r, o) {
+ var s = n(o),
+ i = e(en(s, r) ? r[s] : Er(t, !1), o);
+ return i && i["@@transducer/reduced"] ? zt(r) : ((r[s] = i), r);
+ });
+ return Vn(o, {}, r);
+ })
+ );
+ const Or = jr;
+ const kr = Bt(function (e) {
+ return Yt(e.length, e);
+ });
+ const Ar = $t(function (e, t) {
+ return null == t || t != t ? e : t;
+ });
+ function Cr(e, t, n) {
+ var r,
+ o = typeof e;
+ switch (o) {
+ case "string":
+ case "number":
+ return 0 === e && 1 / e == -1 / 0
+ ? !!n._items["-0"] || (t && (n._items["-0"] = !0), !1)
+ : null !== n._nativeSet
+ ? t
+ ? ((r = n._nativeSet.size),
+ n._nativeSet.add(e),
+ n._nativeSet.size === r)
+ : n._nativeSet.has(e)
+ : o in n._items
+ ? e in n._items[o] || (t && (n._items[o][e] = !0), !1)
+ : (t && ((n._items[o] = {}), (n._items[o][e] = !0)), !1);
+ case "boolean":
+ if (o in n._items) {
+ var s = e ? 1 : 0;
+ return !!n._items[o][s] || (t && (n._items[o][s] = !0), !1);
+ }
+ return t && (n._items[o] = e ? [!1, !0] : [!0, !1]), !1;
+ case "function":
+ return null !== n._nativeSet
+ ? t
+ ? ((r = n._nativeSet.size),
+ n._nativeSet.add(e),
+ n._nativeSet.size === r)
+ : n._nativeSet.has(e)
+ : o in n._items
+ ? !!dn(e, n._items[o]) || (t && n._items[o].push(e), !1)
+ : (t && (n._items[o] = [e]), !1);
+ case "undefined":
+ return !!n._items[o] || (t && (n._items[o] = !0), !1);
+ case "object":
+ if (null === e)
+ return !!n._items.null || (t && (n._items.null = !0), !1);
+ default:
+ return (o = Object.prototype.toString.call(e)) in n._items
+ ? !!dn(e, n._items[o]) || (t && n._items[o].push(e), !1)
+ : (t && (n._items[o] = [e]), !1);
+ }
+ }
+ const Pr = (function () {
+ function e() {
+ (this._nativeSet = "function" == typeof Set ? new Set() : null),
+ (this._items = {});
+ }
+ return (
+ (e.prototype.add = function (e) {
+ return !Cr(e, !0, this);
+ }),
+ (e.prototype.has = function (e) {
+ return Cr(e, !1, this);
+ }),
+ e
+ );
+ })();
+ const Nr = $t(function (e, t) {
+ for (
+ var n = [],
+ r = 0,
+ o = e.length,
+ s = t.length,
+ i = new Pr(),
+ a = 0;
+ a < s;
+ a += 1
+ )
+ i.add(t[a]);
+ for (; r < o; ) i.add(e[r]) && (n[n.length] = e[r]), (r += 1);
+ return n;
+ });
+ var Ir = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.n = e), (this.i = 0);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = Wt),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ this.i += 1;
+ var n = 0 === this.n ? e : this.xf["@@transducer/step"](e, t);
+ return this.n >= 0 && this.i >= this.n ? zt(n) : n;
+ }),
+ e
+ );
+ })();
+ function Tr(e) {
+ return function (t) {
+ return new Ir(e, t);
+ };
+ }
+ const Rr = $t(
+ Ut(["take"], Tr, function (e, t) {
+ return mr(0, e < 0 ? 1 / 0 : e, t);
+ })
+ );
+ function Mr(e, t) {
+ for (var n = t.length - 1; n >= 0 && e(t[n]); ) n -= 1;
+ return mr(0, n + 1, t);
+ }
+ var Dr = (function () {
+ function e(e, t) {
+ (this.f = e), (this.retained = []), (this.xf = t);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = function (e) {
+ return (
+ (this.retained = null), this.xf["@@transducer/result"](e)
+ );
+ }),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return this.f(t) ? this.retain(e, t) : this.flush(e, t);
+ }),
+ (e.prototype.flush = function (e, t) {
+ return (
+ (e = Vn(this.xf, e, this.retained)),
+ (this.retained = []),
+ this.xf["@@transducer/step"](e, t)
+ );
+ }),
+ (e.prototype.retain = function (e, t) {
+ return this.retained.push(t), e;
+ }),
+ e
+ );
+ })();
+ function Fr(e) {
+ return function (t) {
+ return new Dr(e, t);
+ };
+ }
+ const Lr = $t(Ut([], Fr, Mr));
+ var Br = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = Wt),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ if (this.f) {
+ if (this.f(t)) return e;
+ this.f = null;
+ }
+ return this.xf["@@transducer/step"](e, t);
+ }),
+ e
+ );
+ })();
+ function $r(e) {
+ return function (t) {
+ return new Br(e, t);
+ };
+ }
+ const qr = $t(
+ Ut(["dropWhile"], $r, function (e, t) {
+ for (var n = 0, r = t.length; n < r && e(t[n]); ) n += 1;
+ return mr(n, 1 / 0, t);
+ })
+ );
+ const Ur = $t(function (e, t) {
+ return e || t;
+ });
+ const zr = $t(function (e, t) {
+ return ir(e)
+ ? function () {
+ return e.apply(this, arguments) || t.apply(this, arguments);
+ }
+ : cr(Ur)(e, t);
+ });
+ var Vr = Bt(function (e) {
+ return null != e && "function" == typeof e["fantasy-land/empty"]
+ ? e["fantasy-land/empty"]()
+ : null != e &&
+ null != e.constructor &&
+ "function" == typeof e.constructor["fantasy-land/empty"]
+ ? e.constructor["fantasy-land/empty"]()
+ : null != e && "function" == typeof e.empty
+ ? e.empty()
+ : null != e &&
+ null != e.constructor &&
+ "function" == typeof e.constructor.empty
+ ? e.constructor.empty()
+ : qt(e)
+ ? []
+ : In(e)
+ ? ""
+ : En(e)
+ ? {}
+ : rn(e)
+ ? (function () {
+ return arguments;
+ })()
+ : (function (e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ "[object Uint8ClampedArray]" === t ||
+ "[object Int8Array]" === t ||
+ "[object Uint8Array]" === t ||
+ "[object Int16Array]" === t ||
+ "[object Uint16Array]" === t ||
+ "[object Int32Array]" === t ||
+ "[object Uint32Array]" === t ||
+ "[object Float32Array]" === t ||
+ "[object Float64Array]" === t ||
+ "[object BigInt64Array]" === t ||
+ "[object BigUint64Array]" === t
+ );
+ })(e)
+ ? e.constructor.from("")
+ : void 0;
+ });
+ const Wr = Vr;
+ const Jr = Bt(function (e) {
+ return Yt(e.length, function (t, n) {
+ var r = Array.prototype.slice.call(arguments, 0);
+ return (r[0] = n), (r[1] = t), e.apply(this, r);
+ });
+ });
+ const Kr = $t(
+ dr(
+ "groupBy",
+ Or(function (e, t) {
+ return e.push(t), e;
+ }, [])
+ )
+ );
+ const Hr = $t(function (e, t) {
+ if (0 === e.length || or(t)) return !1;
+ for (var n = t, r = 0; r < e.length; ) {
+ if (or(n) || !en(e[r], n)) return !1;
+ (n = n[e[r]]), (r += 1);
+ }
+ return !0;
+ });
+ const Gr = $t(function (e, t) {
+ return Hr([e], t);
+ });
+ const Zr = $t(function (e, t) {
+ return !or(t) && e in t;
+ });
+ const Yr = Tn(0);
+ var Xr = function (e, t) {
+ switch (arguments.length) {
+ case 0:
+ return Xr;
+ case 1:
+ return function t(n) {
+ return 0 === arguments.length ? t : tn(e, n);
+ };
+ default:
+ return tn(e, t);
+ }
+ };
+ const Qr = Xr;
+ function eo(e) {
+ return e;
+ }
+ const to = Bt(eo);
+ const no = Dn(function (e, t, n) {
+ return Yt(Math.max(e.length, t.length, n.length), function () {
+ return e.apply(this, arguments)
+ ? t.apply(this, arguments)
+ : n.apply(this, arguments);
+ });
+ });
+ const ro = $t(dn);
+ const oo = mr(0, -1);
+ "function" == typeof Object.assign && Object.assign;
+ const so = $t(function (e, t) {
+ return Yt(e + 1, function () {
+ var n = arguments[e];
+ if (null != n && ir(n[t]))
+ return n[t].apply(
+ n,
+ Array.prototype.slice.call(arguments, 0, e)
+ );
+ throw new TypeError(
+ kn(n) + ' does not have a method named "' + t + '"'
+ );
+ });
+ });
+ const io = Bt(function (e) {
+ return null != e && fn(e, Wr(e));
+ });
+ const ao = so(1, "join");
+ const lo = Tn(-1);
+ const co = $t(function (e, t) {
+ return function (n) {
+ return function (r) {
+ return Pn(function (e) {
+ return t(e, r);
+ }, n(e(r)));
+ };
+ };
+ });
+ const uo = $t(function (e, t) {
+ return e.map(function (e) {
+ for (var n, r = t, o = 0; o < e.length; ) {
+ if (null == r) return;
+ (n = e[o]), (r = Nn(n) ? Tn(n, r) : r[n]), (o += 1);
+ }
+ return r;
+ });
+ });
+ const po = $t(function (e, t) {
+ return uo([e], t)[0];
+ });
+ const ho = $t(function (e, t) {
+ return wn(
+ function (n, r) {
+ return (n[r] = e(t[r], r, t)), n;
+ },
+ {},
+ cn(t)
+ );
+ });
+ const fo = Dn(function (e, t, n) {
+ var r,
+ o = {};
+ for (r in ((n = n || {}), (t = t || {})))
+ en(r, t) && (o[r] = en(r, n) ? e(r, t[r], n[r]) : t[r]);
+ for (r in n) en(r, n) && !en(r, o) && (o[r] = n[r]);
+ return o;
+ });
+ const mo = Dn(function e(t, n, r) {
+ return fo(
+ function (n, r, o) {
+ return En(r) && En(o) ? e(t, r, o) : t(n, r, o);
+ },
+ n,
+ r
+ );
+ });
+ const go = $t(function (e, t) {
+ return mo(
+ function (e, t, n) {
+ return n;
+ },
+ e,
+ t
+ );
+ });
+ const yo = $t(function (e, t) {
+ return Ht(bn(e), t);
+ });
+ var vo = function (e) {
+ return {
+ value: e,
+ map: function (t) {
+ return vo(t(e));
+ },
+ };
+ };
+ const bo = Dn(function (e, t, n) {
+ return e(function (e) {
+ return vo(t(e));
+ })(n).value;
+ });
+ const wo = Dn(function (e, t, n) {
+ return Ar(e, po(t, n));
+ });
+ const Eo = Dn(function (e, t, n) {
+ return e(po(t, n));
+ });
+ const xo = $t(function (e, t) {
+ for (var n = {}, r = 0; r < e.length; )
+ e[r] in t && (n[e[r]] = t[e[r]]), (r += 1);
+ return n;
+ });
+ const So = Dn(function (e, t, n) {
+ return fn(e, Rn(t, n));
+ });
+ const _o = Dn(function (e, t, n) {
+ return Ar(e, Rn(t, n));
+ });
+ const jo = Dn(function (e, t, n) {
+ return e(Rn(t, n));
+ });
+ function Oo(e) {
+ return "[object Number]" === Object.prototype.toString.call(e);
+ }
+ var ko = $t(function (e, t) {
+ if (!Oo(e) || !Oo(t))
+ throw new TypeError("Both arguments to range must be numbers");
+ for (var n = [], r = e; r < t; ) n.push(r), (r += 1);
+ return n;
+ });
+ const Ao = ko;
+ const Co = Bt(zt);
+ const Po = Dn(function (e, t, n) {
+ return n.replace(e, t);
+ });
+ var No = $t(function (e, t) {
+ return Array.prototype.slice.call(t, 0).sort(e);
+ });
+ const Io = No;
+ const To = so(1, "split");
+ const Ro = $t(function (e, t) {
+ return fn(Rr(e.length, t), e);
+ });
+ const Mo = $t(function (e, t) {
+ if (
+ ((n = e), "[object RegExp]" !== Object.prototype.toString.call(n))
+ )
+ throw new TypeError(
+ "‘test’ requires a value of type RegExp as its first argument; received " +
+ kn(e)
+ );
+ var n;
+ return wr(e).test(t);
+ });
+ var Do = "\t\n\v\f\r \u2028\u2029\ufeff";
+ String.prototype.trim;
+ var Fo = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.pred = e), (this.items = []);
+ }
+ return (
+ (e.prototype["@@transducer/init"] = Vt),
+ (e.prototype["@@transducer/result"] = Wt),
+ (e.prototype["@@transducer/step"] = function (e, t) {
+ return Qt(this.pred, t, this.items)
+ ? e
+ : (this.items.push(t), this.xf["@@transducer/step"](e, t));
+ }),
+ e
+ );
+ })();
+ function Lo(e) {
+ return function (t) {
+ return new Fo(e, t);
+ };
+ }
+ const Bo = $t(
+ Ut([], Lo, function (e, t) {
+ for (var n, r = 0, o = t.length, s = []; r < o; )
+ Qt(e, (n = t[r]), s) || (s[s.length] = n), (r += 1);
+ return s;
+ })
+ );
+ const $o = Dn(function (e, t, n) {
+ return e(n) ? t(n) : n;
+ });
+ const qo = Gn(void 0);
+ const Uo = fn(qo());
+ class zo extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "parseResult");
+ }
+ get api() {
+ return this.children.filter((e) => e.classes.contains("api"))
+ .first;
+ }
+ get results() {
+ return this.children.filter((e) => e.classes.contains("result"));
+ }
+ get result() {
+ return this.results.first;
+ }
+ get annotations() {
+ return this.children.filter((e) => "annotation" === e.element);
+ }
+ get warnings() {
+ return this.children.filter(
+ (e) =>
+ "annotation" === e.element && e.classes.contains("warning")
+ );
+ }
+ get errors() {
+ return this.children.filter(
+ (e) => "annotation" === e.element && e.classes.contains("error")
+ );
+ }
+ get isEmpty() {
+ return this.children.reject((e) => "annotation" === e.element)
+ .isEmpty;
+ }
+ replaceResult(e) {
+ const { result: t } = this;
+ if (Uo(t)) return !1;
+ const n = this.content.findIndex((e) => e === t);
+ return -1 !== n && ((this.content[n] = e), !0);
+ }
+ }
+ const Vo = zo;
+ class Wo extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "sourceMap");
+ }
+ get positionStart() {
+ return this.children
+ .filter((e) => e.classes.contains("position"))
+ .get(0);
+ }
+ get positionEnd() {
+ return this.children
+ .filter((e) => e.classes.contains("position"))
+ .get(1);
+ }
+ set position(e) {
+ if (null === e) return;
+ const t = new Nt.ON([e.start.row, e.start.column, e.start.char]),
+ n = new Nt.ON([e.end.row, e.end.column, e.end.char]);
+ t.classes.push("position"),
+ n.classes.push("position"),
+ this.push(t).push(n);
+ }
+ }
+ const Jo = Wo;
+ var Ko = n(80621),
+ Ho = n(52201),
+ Go = n(27398);
+ function Zo(e) {
+ return (
+ (Zo =
+ "function" == typeof Ho && "symbol" == typeof Go
+ ? function (e) {
+ return typeof e;
+ }
+ : function (e) {
+ return e &&
+ "function" == typeof Ho &&
+ e.constructor === Ho &&
+ e !== Ho.prototype
+ ? "symbol"
+ : typeof e;
+ }),
+ Zo(e)
+ );
+ }
+ var Yo = n(26189);
+ function Xo(e) {
+ var t = (function (e, t) {
+ if ("object" !== Zo(e) || null === e) return e;
+ var n = e[Yo];
+ if (void 0 !== n) {
+ var r = n.call(e, t || "default");
+ if ("object" !== Zo(r)) return r;
+ throw new TypeError(
+ "@@toPrimitive must return a primitive value."
+ );
+ }
+ return ("string" === t ? String : Number)(e);
+ })(e, "string");
+ return "symbol" === Zo(t) ? t : String(t);
+ }
+ function Qo(e, t, n) {
+ return (
+ (t = Xo(t)) in e
+ ? Ko(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (e[t] = n),
+ e
+ );
+ }
+ const es = Yt(1, yr(un, Qr("GeneratorFunction")));
+ const ts = Yt(1, yr(un, Qr("AsyncFunction")));
+ const ns = Zn([yr(un, Qr("Function")), es, ts]);
+ const rs = hr(ns);
+ const os = Yt(
+ 1,
+ ns(Array.isArray) ? Array.isArray : yr(un, Qr("Array"))
+ );
+ const ss = ur(os, io);
+ var is = Yt(3, function (e, t, n) {
+ var r = po(e, n),
+ o = po(oo(e), n);
+ if (!rs(r) && !ss(e)) {
+ var s = qn(r, o);
+ return tr(s, t);
+ }
+ });
+ const as = is;
+ const ls = Jr(ro),
+ cs = (e, t) => "function" == typeof (null == t ? void 0 : t[e]),
+ us = (e) =>
+ null != e &&
+ Object.prototype.hasOwnProperty.call(e, "_storedElement") &&
+ Object.prototype.hasOwnProperty.call(e, "_content"),
+ ps = (e, t) => {
+ var n;
+ return (
+ (null == t || null === (n = t.primitive) || void 0 === n
+ ? void 0
+ : n.call(t)) === e
+ );
+ },
+ hs = (e, t) => {
+ var n, r;
+ return (
+ (null == t ||
+ null === (n = t.classes) ||
+ void 0 === n ||
+ null === (r = n.includes) ||
+ void 0 === r
+ ? void 0
+ : r.call(n, e)) || !1
+ );
+ },
+ fs = (e, t) => (null == t ? void 0 : t.element) === e,
+ ds = (e) =>
+ e({
+ hasMethod: cs,
+ hasBasicElementProps: us,
+ primitiveEq: ps,
+ isElementType: fs,
+ hasClass: hs,
+ }),
+ ms = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Nt.W_ || (e(n) && t(void 0, n))
+ ),
+ gs = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Nt.RP || (e(n) && t("string", n))
+ ),
+ ys = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Nt.VL || (e(n) && t("number", n))
+ ),
+ vs = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Nt.zr || (e(n) && t("null", n))
+ ),
+ bs = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Nt.hh || (e(n) && t("boolean", n))
+ ),
+ ws = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) =>
+ (r) =>
+ r instanceof Nt.Sb ||
+ (e(r) &&
+ t("object", r) &&
+ n("keys", r) &&
+ n("values", r) &&
+ n("items", r))
+ ),
+ Es = ds(
+ ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) =>
+ (r) =>
+ (r instanceof Nt.ON && !(r instanceof Nt.Sb)) ||
+ (e(r) &&
+ t("array", r) &&
+ n("push", r) &&
+ n("unshift", r) &&
+ n("map", r) &&
+ n("reduce", r))
+ ),
+ xs = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Nt.c6 || (e(r) && t("member", r) && n(void 0, r))
+ ),
+ Ss = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Nt.EA || (e(r) && t("link", r) && n(void 0, r))
+ ),
+ _s = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Nt.tK || (e(r) && t("ref", r) && n(void 0, r))
+ ),
+ js = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Tt ||
+ (e(r) && t("annotation", r) && n("array", r))
+ ),
+ Os = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Mt || (e(r) && t("comment", r) && n("string", r))
+ ),
+ ks = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Vo ||
+ (e(r) && t("parseResult", r) && n("array", r))
+ ),
+ As = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Jo ||
+ (e(r) && t("sourceMap", r) && n("array", r))
+ ),
+ Cs = (e) =>
+ fs("object", e) ||
+ fs("array", e) ||
+ fs("boolean", e) ||
+ fs("number", e) ||
+ fs("string", e) ||
+ fs("null", e) ||
+ fs("member", e),
+ Ps = (e) => {
+ var t, n;
+ return As(
+ null == e ||
+ null === (t = e.meta) ||
+ void 0 === t ||
+ null === (n = t.get) ||
+ void 0 === n
+ ? void 0
+ : n.call(t, "sourceMap")
+ );
+ },
+ Ns = (e, t) => {
+ if (0 === e.length) return !0;
+ const n = t.attributes.get("symbols");
+ return !!Es(n) && Ht(ls(n.toValue()), e);
+ },
+ Is = (e, t) => 0 === e.length || Ht(ls(t.classes.toValue()), e);
+ const Ts = fn(null);
+ const Rs = hr(Ts);
+ function Ms(e) {
+ return (
+ (Ms =
+ "function" == typeof Symbol &&
+ "symbol" == typeof Symbol.iterator
+ ? function (e) {
+ return typeof e;
+ }
+ : function (e) {
+ return e &&
+ "function" == typeof Symbol &&
+ e.constructor === Symbol &&
+ e !== Symbol.prototype
+ ? "symbol"
+ : typeof e;
+ }),
+ Ms(e)
+ );
+ }
+ const Ds = function (e) {
+ return "object" === Ms(e);
+ };
+ const Fs = Yt(1, ur(Rs, Ds));
+ var Ls = yr(un, Qr("Object")),
+ Bs = yr(kn, fn(kn(Object))),
+ $s = Eo(ur(ns, Bs), ["constructor"]);
+ const qs = Yt(1, function (e) {
+ if (!Fs(e) || !Ls(e)) return !1;
+ var t = Object.getPrototypeOf(e);
+ return !!Ts(t) || $s(t);
+ });
+ class Us extends Nt.lS {
+ constructor() {
+ super(),
+ this.register("annotation", Tt),
+ this.register("comment", Mt),
+ this.register("parseResult", Vo),
+ this.register("sourceMap", Jo);
+ }
+ }
+ const zs = new Us(),
+ Vs = (e) => {
+ const t = new Us();
+ return qs(e) && t.use(e), t;
+ },
+ Ws = zs;
+ function Js(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Ks = () => ({
+ predicates: (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Js(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Js(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })({}, s),
+ namespace: Ws,
+ });
+ var Hs = n(14058),
+ Gs = n(628),
+ Zs = n(92093);
+ function Ys(e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ s = Zs(e);
+ for (r = 0; r < s.length; r++)
+ (n = s[r]), Gs(t).call(t, n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(e, t);
+ if (Hs) {
+ var s = Hs(e);
+ for (r = 0; r < s.length; r++)
+ (n = s[r]),
+ Gs(t).call(t, n) >= 0 ||
+ (Object.prototype.propertyIsEnumerable.call(e, n) &&
+ (o[n] = e[n]));
+ }
+ return o;
+ }
+ var Xs = n(43992);
+ const Qs = Yt(1, yr(un, Qr("String"))),
+ ei = (e, t, n) => {
+ const r = e[t];
+ if (null != r) {
+ if (!n && "function" == typeof r) return r;
+ const e = n ? r.leave : r.enter;
+ if ("function" == typeof e) return e;
+ } else {
+ const r = n ? e.leave : e.enter;
+ if (null != r) {
+ if ("function" == typeof r) return r;
+ const e = r[t];
+ if ("function" == typeof e) return e;
+ }
+ }
+ return null;
+ },
+ ti = {},
+ ni = (e) => (null == e ? void 0 : e.type),
+ ri = (e) => "string" == typeof ni(e),
+ oi = (
+ e,
+ { visitFnGetter: t = ei, nodeTypeGetter: n = ni } = {}
+ ) => {
+ const r = new Array(e.length);
+ return {
+ enter(o, ...s) {
+ for (let i = 0; i < e.length; i += 1)
+ if (null == r[i]) {
+ const a = t(e[i], n(o), !1);
+ if ("function" == typeof a) {
+ const t = a.call(e[i], o, ...s);
+ if (!1 === t) r[i] = o;
+ else if (t === ti) r[i] = ti;
+ else if (void 0 !== t) return t;
+ }
+ }
+ },
+ leave(o, ...s) {
+ for (let i = 0; i < e.length; i += 1)
+ if (null == r[i]) {
+ const a = t(e[i], n(o), !0);
+ if ("function" == typeof a) {
+ const t = a.call(e[i], o, ...s);
+ if (t === ti) r[i] = ti;
+ else if (void 0 !== t && !1 !== t) return t;
+ }
+ } else r[i] === o && (r[i] = null);
+ },
+ };
+ },
+ si = (
+ e,
+ t,
+ {
+ keyMap: n = null,
+ state: r = {},
+ breakSymbol: o = ti,
+ deleteNodeSymbol: s = null,
+ skipVisitingNodeSymbol: i = !1,
+ visitFnGetter: a = ei,
+ nodeTypeGetter: l = ni,
+ nodePredicate: c = ri,
+ detectCycles: u = !0,
+ } = {}
+ ) => {
+ const p = n || {};
+ let h,
+ f,
+ d = Array.isArray(e),
+ m = [e],
+ g = -1,
+ y = [];
+ const v = [],
+ b = [];
+ let w = e;
+ do {
+ g += 1;
+ const e = g === m.length;
+ let n, E;
+ const x = e && 0 !== y.length;
+ if (e) {
+ if (
+ ((n = 0 === b.length ? void 0 : v.pop()),
+ (E = f),
+ (f = b.pop()),
+ x)
+ ) {
+ E = d
+ ? E.slice()
+ : Object.create(
+ Object.getPrototypeOf(E),
+ Object.getOwnPropertyDescriptors(E)
+ );
+ let e = 0;
+ for (let t = 0; t < y.length; t += 1) {
+ let n = y[t][0];
+ const r = y[t][1];
+ d && (n -= e),
+ d && r === s ? (E.splice(n, 1), (e += 1)) : (E[n] = r);
+ }
+ }
+ (g = h.index),
+ (m = h.keys),
+ (y = h.edits),
+ (d = h.inArray),
+ (h = h.prev);
+ } else {
+ if (
+ ((n = f ? (d ? g : m[g]) : void 0),
+ (E = f ? f[n] : w),
+ E === s || void 0 === E)
+ )
+ continue;
+ f && v.push(n);
+ }
+ if (b.includes(E)) continue;
+ let S;
+ if (!Array.isArray(E)) {
+ if (!c(E))
+ throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);
+ if (u && b.includes(E)) {
+ v.pop();
+ continue;
+ }
+ const s = a(t, l(E), e);
+ if (s) {
+ for (const [e, n] of Object.entries(r)) t[e] = n;
+ if (((S = s.call(t, E, n, f, v, b)), S === o)) break;
+ if (S === i) {
+ if (!e) {
+ v.pop();
+ continue;
+ }
+ } else if (void 0 !== S && (y.push([n, S]), !e)) {
+ if (!c(S)) {
+ v.pop();
+ continue;
+ }
+ E = S;
+ }
+ }
+ }
+ void 0 === S && x && y.push([n, E]),
+ e ||
+ ((h = { inArray: d, index: g, keys: m, edits: y, prev: h }),
+ (d = Array.isArray(E)),
+ (m = d ? E : p[l(E)] || []),
+ (g = -1),
+ (y = []),
+ f && b.push(f),
+ (f = E));
+ } while (void 0 !== h);
+ return 0 !== y.length && ([, w] = y[y.length - 1]), w;
+ };
+ si[Symbol.for("nodejs.util.promisify.custom")] = async (
+ e,
+ t,
+ {
+ keyMap: n = null,
+ state: r = {},
+ breakSymbol: o = ti,
+ deleteNodeSymbol: s = null,
+ skipVisitingNodeSymbol: i = !1,
+ visitFnGetter: a = ei,
+ nodeTypeGetter: l = ni,
+ nodePredicate: c = ri,
+ detectCycles: u = !0,
+ } = {}
+ ) => {
+ const p = n || {};
+ let h,
+ f,
+ d = Array.isArray(e),
+ m = [e],
+ g = -1,
+ y = [];
+ const v = [],
+ b = [];
+ let w = e;
+ do {
+ g += 1;
+ const e = g === m.length;
+ let n, E;
+ const x = e && 0 !== y.length;
+ if (e) {
+ if (
+ ((n = 0 === b.length ? void 0 : v.pop()),
+ (E = f),
+ (f = b.pop()),
+ x)
+ ) {
+ E = d
+ ? E.slice()
+ : Object.create(
+ Object.getPrototypeOf(E),
+ Object.getOwnPropertyDescriptors(E)
+ );
+ let e = 0;
+ for (let t = 0; t < y.length; t += 1) {
+ let n = y[t][0];
+ const r = y[t][1];
+ d && (n -= e),
+ d && r === s ? (E.splice(n, 1), (e += 1)) : (E[n] = r);
+ }
+ }
+ (g = h.index),
+ (m = h.keys),
+ (y = h.edits),
+ (d = h.inArray),
+ (h = h.prev);
+ } else {
+ if (
+ ((n = f ? (d ? g : m[g]) : void 0),
+ (E = f ? f[n] : w),
+ E === s || void 0 === E)
+ )
+ continue;
+ f && v.push(n);
+ }
+ let S;
+ if (!Array.isArray(E)) {
+ if (!c(E))
+ throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);
+ if (u && b.includes(E)) {
+ v.pop();
+ continue;
+ }
+ const s = a(t, l(E), e);
+ if (s) {
+ for (const [e, n] of Object.entries(r)) t[e] = n;
+ if (((S = await s.call(t, E, n, f, v, b)), S === o)) break;
+ if (S === i) {
+ if (!e) {
+ v.pop();
+ continue;
+ }
+ } else if (void 0 !== S && (y.push([n, S]), !e)) {
+ if (!c(S)) {
+ v.pop();
+ continue;
+ }
+ E = S;
+ }
+ }
+ }
+ void 0 === S && x && y.push([n, E]),
+ e ||
+ ((h = { inArray: d, index: g, keys: m, edits: y, prev: h }),
+ (d = Array.isArray(E)),
+ (m = d ? E : p[l(E)] || []),
+ (g = -1),
+ (y = []),
+ f && b.push(f),
+ (f = E));
+ } while (void 0 !== h);
+ return 0 !== y.length && ([, w] = y[y.length - 1]), w;
+ };
+ const ii = ["keyMap"],
+ ai = ["keyMap"];
+ function li(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function ci(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? li(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : li(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const ui = (e) =>
+ ws(e)
+ ? "ObjectElement"
+ : Es(e)
+ ? "ArrayElement"
+ : xs(e)
+ ? "MemberElement"
+ : gs(e)
+ ? "StringElement"
+ : bs(e)
+ ? "BooleanElement"
+ : ys(e)
+ ? "NumberElement"
+ : vs(e)
+ ? "NullElement"
+ : Ss(e)
+ ? "LinkElement"
+ : _s(e)
+ ? "RefElement"
+ : void 0,
+ pi = yr(ui, Qs),
+ hi = {
+ ObjectElement: ["content"],
+ ArrayElement: ["content"],
+ MemberElement: ["key", "value"],
+ StringElement: [],
+ BooleanElement: [],
+ NumberElement: [],
+ NullElement: [],
+ RefElement: [],
+ LinkElement: [],
+ Annotation: [],
+ Comment: [],
+ ParseResultElement: ["content"],
+ SourceMap: ["content"],
+ },
+ fi = Xs({
+ props: {
+ result: [],
+ predicate: Dt,
+ returnOnTrue: void 0,
+ returnOnFalse: void 0,
+ },
+ init({
+ predicate: e = this.predicate,
+ returnOnTrue: t = this.returnOnTrue,
+ returnOnFalse: n = this.returnOnFalse,
+ } = {}) {
+ (this.result = []),
+ (this.predicate = e),
+ (this.returnOnTrue = t),
+ (this.returnOnFalse = n);
+ },
+ methods: {
+ enter(e) {
+ return this.predicate(e)
+ ? (this.result.push(e), this.returnOnTrue)
+ : this.returnOnFalse;
+ },
+ },
+ }),
+ di = (e, t, n = {}) => {
+ let { keyMap: r = hi } = n,
+ o = Ys(n, ii);
+ return si(
+ e,
+ t,
+ ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o)
+ );
+ };
+ di[Symbol.for("nodejs.util.promisify.custom")] = async (
+ e,
+ t,
+ n = {}
+ ) => {
+ let { keyMap: r = hi } = n,
+ o = Ys(n, ai);
+ return si[Symbol.for("nodejs.util.promisify.custom")](
+ e,
+ t,
+ ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o)
+ );
+ };
+ const mi = (e, t, n = {}) => {
+ if (0 === t.length) return e;
+ const r = _o(Ks, "toolboxCreator", n),
+ o = _o({}, "visitorOptions", n),
+ s = _o(ui, "nodeTypeGetter", o),
+ i = r(),
+ a = t.map((e) => e(i)),
+ l = oi(a.map(_o({}, "visitor")), { nodeTypeGetter: s });
+ a.forEach(as(["pre"], []));
+ const c = di(e, l, o);
+ return a.forEach(as(["post"], [])), c;
+ };
+ function gi(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function yi(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? gi(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : gi(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const vi = (e, { Type: t, plugins: n = [] }) => {
+ const r = new t(e);
+ return mi(r, n, {
+ toolboxCreator: Ks,
+ visitorOptions: { nodeTypeGetter: ui },
+ });
+ },
+ bi =
+ (e) =>
+ (t, n = {}) =>
+ vi(t, yi(yi({}, n), {}, { Type: e }));
+ (Nt.Sb.refract = bi(Nt.Sb)),
+ (Nt.ON.refract = bi(Nt.ON)),
+ (Nt.RP.refract = bi(Nt.RP)),
+ (Nt.hh.refract = bi(Nt.hh)),
+ (Nt.zr.refract = bi(Nt.zr)),
+ (Nt.VL.refract = bi(Nt.VL)),
+ (Nt.EA.refract = bi(Nt.EA)),
+ (Nt.tK.refract = bi(Nt.tK)),
+ (Tt.refract = bi(Tt)),
+ (Mt.refract = bi(Mt)),
+ (Vo.refract = bi(Vo)),
+ (Jo.refract = bi(Jo));
+ const wi = (e, t = new WeakMap()) => (
+ xs(e)
+ ? (t.set(e.key, e),
+ wi(e.key, t),
+ t.set(e.value, e),
+ wi(e.value, t))
+ : e.children.forEach((n) => {
+ t.set(n, e), wi(n, t);
+ }),
+ t
+ ),
+ Ei = Xs.init(function ({ element: e }) {
+ let t;
+ this.transclude = function (n, r) {
+ var o;
+ if (n === e) return r;
+ if (n === r) return e;
+ t = null !== (o = t) && void 0 !== o ? o : wi(e);
+ const s = t.get(n);
+ return Uo(s)
+ ? void 0
+ : (ws(s)
+ ? ((e, t, n) => {
+ const r = n.get(e);
+ ws(r) &&
+ (r.content = r.map((o, s, i) =>
+ i === e ? (n.delete(e), n.set(t, r), t) : i
+ ));
+ })(n, r, t)
+ : Es(s)
+ ? ((e, t, n) => {
+ const r = n.get(e);
+ Es(r) &&
+ (r.content = r.map((o) =>
+ o === e ? (n.delete(e), n.set(t, r), t) : o
+ ));
+ })(n, r, t)
+ : xs(s) &&
+ ((e, t, n) => {
+ const r = n.get(e);
+ xs(r) &&
+ (r.key === e &&
+ ((r.key = t), n.delete(e), n.set(t, r)),
+ r.value === e &&
+ ((r.value = t), n.delete(e), n.set(t, r)));
+ })(n, r, t),
+ e);
+ };
+ }),
+ xi = Ei,
+ Si = ["keyMap"],
+ _i = ["keyMap"];
+ function ji(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Oi(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? ji(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : ji(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const ki = (e) =>
+ "string" == typeof (null == e ? void 0 : e.type) ? e.type : ui(e),
+ Ai = Oi(
+ { EphemeralObject: ["content"], EphemeralArray: ["content"] },
+ hi
+ ),
+ Ci = (e, t, n = {}) => {
+ let { keyMap: r = Ai } = n,
+ o = Ys(n, Si);
+ return di(
+ e,
+ t,
+ Oi(
+ {
+ keyMap: r,
+ nodeTypeGetter: ki,
+ nodePredicate: Ft,
+ detectCycles: !1,
+ deleteNodeSymbol: Symbol.for("delete-node"),
+ skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
+ },
+ o
+ )
+ );
+ };
+ Ci[Symbol.for("nodejs.util.promisify.custom")] = async (
+ e,
+ t = {}
+ ) => {
+ let { keyMap: n = Ai } = t,
+ r = Ys(t, _i);
+ return di[Symbol.for("nodejs.util.promisify.custom")](
+ e,
+ visitor,
+ Oi(
+ {
+ keyMap: n,
+ nodeTypeGetter: ki,
+ nodePredicate: Ft,
+ detectCycles: !1,
+ deleteNodeSymbol: Symbol.for("delete-node"),
+ skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
+ },
+ r
+ )
+ );
+ };
+ const Pi = class {
+ constructor(e) {
+ Qo(this, "type", "EphemeralArray"),
+ Qo(this, "content", []),
+ Qo(this, "reference", void 0),
+ (this.content = e),
+ (this.reference = []);
+ }
+ toReference() {
+ return this.reference;
+ }
+ toArray() {
+ return this.reference.push(...this.content), this.reference;
+ }
+ };
+ const Ni = class {
+ constructor(e) {
+ Qo(this, "type", "EphemeralObject"),
+ Qo(this, "content", []),
+ Qo(this, "reference", void 0),
+ (this.content = e),
+ (this.reference = {});
+ }
+ toReference() {
+ return this.reference;
+ }
+ toObject() {
+ return Object.assign(
+ this.reference,
+ Object.fromEntries(this.content)
+ );
+ }
+ },
+ Ii = Xs.init(function () {
+ const e = new WeakMap();
+ (this.BooleanElement = function (e) {
+ return e.toValue();
+ }),
+ (this.NumberElement = function (e) {
+ return e.toValue();
+ }),
+ (this.StringElement = function (e) {
+ return e.toValue();
+ }),
+ (this.NullElement = function () {
+ return null;
+ }),
+ (this.ObjectElement = {
+ enter(t) {
+ if (e.has(t)) return e.get(t).toReference();
+ const n = new Ni(t.content);
+ return e.set(t, n), n;
+ },
+ }),
+ (this.EphemeralObject = { leave: (e) => e.toObject() }),
+ (this.MemberElement = { enter: (e) => [e.key, e.value] }),
+ (this.ArrayElement = {
+ enter(t) {
+ if (e.has(t)) return e.get(t).toReference();
+ const n = new Pi(t.content);
+ return e.set(t, n), n;
+ },
+ }),
+ (this.EphemeralArray = { leave: (e) => e.toArray() });
+ }),
+ Ti = (e, t = Ws) => {
+ if (Qs(e))
+ try {
+ return t.fromRefract(JSON.parse(e));
+ } catch {}
+ return qs(e) && Gr("element", e)
+ ? t.fromRefract(e)
+ : t.toElement(e);
+ },
+ Ri = (e) => Ci(e, Ii());
+ const Mi = fn("");
+ var Di = ur(Yt(1, yr(un, Qr("Number"))), isFinite);
+ var Fi = Yt(1, Di);
+ var Li = ur(
+ ns(Number.isFinite) ? Yt(1, qn(Number.isFinite, Number)) : Fi,
+ br(fn, [Math.floor, to])
+ );
+ var Bi = Yt(1, Li);
+ const $i = ns(Number.isInteger)
+ ? Yt(1, qn(Number.isInteger, Number))
+ : Bi;
+ var qi = kr(function (e, t) {
+ return yr(To(""), qr(ls(e)), ao(""))(t);
+ });
+ const Ui = qi;
+ class zi extends Error {
+ constructor(e) {
+ super(
+ `Invalid $ref pointer "${e}". Pointers must begin with "/"`
+ ),
+ (this.name = this.constructor.name),
+ (this.message = `Invalid $ref pointer "${e}". Pointers must begin with "/"`),
+ "function" == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(
+ `Invalid $ref pointer "${e}". Pointers must begin with "/"`
+ ).stack);
+ }
+ }
+ class Vi extends Error {
+ constructor(e) {
+ super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ "function" == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const Wi = yr(Po(/~/g, "~0"), Po(/\//g, "~1"), encodeURIComponent),
+ Ji = yr(Po(/~1/g, "/"), Po(/~0/g, "~"), (e) => {
+ try {
+ return decodeURIComponent(e);
+ } catch {
+ return e;
+ }
+ }),
+ Ki = (e, t) => {
+ const n = ((e) => {
+ if (Mi(e)) return [];
+ if (!Ro("/", e)) throw new zi(e);
+ const t = yr(To("/"), Pn(Ji))(e);
+ return gr(t);
+ })(e);
+ return n.reduce((e, t) => {
+ if (ws(e)) {
+ if (!e.hasKey(t))
+ throw new Vi(`Evaluation failed on token: "${t}"`);
+ return e.get(t);
+ }
+ if (Es(e)) {
+ if (!(t in e.content) || !$i(Number(t)))
+ throw new Vi(`Evaluation failed on token: "${t}"`);
+ return e.get(Number(t));
+ }
+ throw new Vi(`Evaluation failed on token: "${t}"`);
+ }, t);
+ },
+ Hi = (e) => {
+ const t = ((e) => {
+ const t = e.indexOf("#");
+ return -1 !== t ? e.substring(t) : "#";
+ })(e);
+ return Ui("#", t);
+ };
+ class Gi extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "callback");
+ }
+ }
+ const Zi = Gi;
+ class Yi extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "components");
+ }
+ get schemas() {
+ return this.get("schemas");
+ }
+ set schemas(e) {
+ this.set("schemas", e);
+ }
+ get responses() {
+ return this.get("responses");
+ }
+ set responses(e) {
+ this.set("responses", e);
+ }
+ get parameters() {
+ return this.get("parameters");
+ }
+ set parameters(e) {
+ this.set("parameters", e);
+ }
+ get examples() {
+ return this.get("examples");
+ }
+ set examples(e) {
+ this.set("examples", e);
+ }
+ get requestBodies() {
+ return this.get("requestBodies");
+ }
+ set requestBodies(e) {
+ this.set("requestBodies", e);
+ }
+ get headers() {
+ return this.get("headers");
+ }
+ set headers(e) {
+ this.set("headers", e);
+ }
+ get securitySchemes() {
+ return this.get("securitySchemes");
+ }
+ set securitySchemes(e) {
+ this.set("securitySchemes", e);
+ }
+ get links() {
+ return this.get("links");
+ }
+ set links(e) {
+ this.set("links", e);
+ }
+ get callbacks() {
+ return this.get("callbacks");
+ }
+ set callbacks(e) {
+ this.set("callbacks", e);
+ }
+ }
+ const Xi = Yi;
+ class Qi extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "contact");
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get url() {
+ return this.get("url");
+ }
+ set url(e) {
+ this.set("url", e);
+ }
+ get email() {
+ return this.get("email");
+ }
+ set email(e) {
+ this.set("email", e);
+ }
+ }
+ const ea = Qi;
+ class ta extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "discriminator");
+ }
+ get propertyName() {
+ return this.get("propertyName");
+ }
+ set propertyName(e) {
+ this.set("propertyName", e);
+ }
+ get mapping() {
+ return this.get("mapping");
+ }
+ set mapping(e) {
+ this.set("mapping", e);
+ }
+ }
+ const na = ta;
+ class ra extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "encoding");
+ }
+ get contentType() {
+ return this.get("contentType");
+ }
+ set contentType(e) {
+ this.set("contentType", e);
+ }
+ get headers() {
+ return this.get("headers");
+ }
+ set headers(e) {
+ this.set("headers", e);
+ }
+ get style() {
+ return this.get("style");
+ }
+ set style(e) {
+ this.set("style", e);
+ }
+ get explode() {
+ return this.get("explode");
+ }
+ set explode(e) {
+ this.set("explode", e);
+ }
+ get allowedReserved() {
+ return this.get("allowedReserved");
+ }
+ set allowedReserved(e) {
+ this.set("allowedReserved", e);
+ }
+ }
+ const oa = ra;
+ class sa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "example");
+ }
+ get summary() {
+ return this.get("summary");
+ }
+ set summary(e) {
+ this.set("summary", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get value() {
+ return this.get("value");
+ }
+ set value(e) {
+ this.set("value", e);
+ }
+ get externalValue() {
+ return this.get("externalValue");
+ }
+ set externalValue(e) {
+ this.set("externalValue", e);
+ }
+ }
+ const ia = sa;
+ class aa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "externalDocumentation");
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get url() {
+ return this.get("url");
+ }
+ set url(e) {
+ this.set("url", e);
+ }
+ }
+ const la = aa;
+ class ca extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "header");
+ }
+ get required() {
+ return this.hasKey("required")
+ ? this.get("required")
+ : new Nt.hh(!1);
+ }
+ set required(e) {
+ this.set("required", e);
+ }
+ get deprecated() {
+ return this.hasKey("deprecated")
+ ? this.get("deprecated")
+ : new Nt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set("deprecated", e);
+ }
+ get allowEmptyValue() {
+ return this.get("allowEmptyValue");
+ }
+ set allowEmptyValue(e) {
+ this.set("allowEmptyValue", e);
+ }
+ get style() {
+ return this.get("style");
+ }
+ set style(e) {
+ this.set("style", e);
+ }
+ get explode() {
+ return this.get("explode");
+ }
+ set explode(e) {
+ this.set("explode", e);
+ }
+ get allowReserved() {
+ return this.get("allowReserved");
+ }
+ set allowReserved(e) {
+ this.set("allowReserved", e);
+ }
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ get example() {
+ return this.get("example");
+ }
+ set example(e) {
+ this.set("example", e);
+ }
+ get examples() {
+ return this.get("examples");
+ }
+ set examples(e) {
+ this.set("examples", e);
+ }
+ get contentProp() {
+ return this.get("content");
+ }
+ set contentProp(e) {
+ this.set("content", e);
+ }
+ }
+ Object.defineProperty(ca.prototype, "description", {
+ get() {
+ return this.get("description");
+ },
+ set(e) {
+ this.set("description", e);
+ },
+ enumerable: !0,
+ });
+ const ua = ca;
+ class pa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "info"),
+ this.classes.push("info");
+ }
+ get title() {
+ return this.get("title");
+ }
+ set title(e) {
+ this.set("title", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get termsOfService() {
+ return this.get("termsOfService");
+ }
+ set termsOfService(e) {
+ this.set("termsOfService", e);
+ }
+ get contact() {
+ return this.get("contact");
+ }
+ set contact(e) {
+ this.set("contact", e);
+ }
+ get license() {
+ return this.get("license");
+ }
+ set license(e) {
+ this.set("license", e);
+ }
+ get version() {
+ return this.get("version");
+ }
+ set version(e) {
+ this.set("version", e);
+ }
+ }
+ const ha = pa;
+ class fa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "license");
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get url() {
+ return this.get("url");
+ }
+ set url(e) {
+ this.set("url", e);
+ }
+ }
+ const da = fa;
+ class ma extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "link");
+ }
+ get operationRef() {
+ return this.get("operationRef");
+ }
+ set operationRef(e) {
+ this.set("operationRef", e);
+ }
+ get operationId() {
+ return this.get("operationId");
+ }
+ set operationId(e) {
+ this.set("operationId", e);
+ }
+ get operation() {
+ var e, t;
+ return gs(this.operationRef)
+ ? null === (e = this.operationRef) || void 0 === e
+ ? void 0
+ : e.meta.get("operation")
+ : gs(this.operationId)
+ ? null === (t = this.operationId) || void 0 === t
+ ? void 0
+ : t.meta.get("operation")
+ : void 0;
+ }
+ set operation(e) {
+ this.set("operation", e);
+ }
+ get parameters() {
+ return this.get("parameters");
+ }
+ set parameters(e) {
+ this.set("parameters", e);
+ }
+ get requestBody() {
+ return this.get("requestBody");
+ }
+ set requestBody(e) {
+ this.set("requestBody", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get server() {
+ return this.get("server");
+ }
+ set server(e) {
+ this.set("server", e);
+ }
+ }
+ const ga = ma;
+ class ya extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "mediaType");
+ }
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ get example() {
+ return this.get("example");
+ }
+ set example(e) {
+ this.set("example", e);
+ }
+ get examples() {
+ return this.get("examples");
+ }
+ set examples(e) {
+ this.set("examples", e);
+ }
+ get encoding() {
+ return this.get("encoding");
+ }
+ set encoding(e) {
+ this.set("encoding", e);
+ }
+ }
+ const va = ya;
+ class ba extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "oAuthFlow");
+ }
+ get authorizationUrl() {
+ return this.get("authorizationUrl");
+ }
+ set authorizationUrl(e) {
+ this.set("authorizationUrl", e);
+ }
+ get tokenUrl() {
+ return this.get("tokenUrl");
+ }
+ set tokenUrl(e) {
+ this.set("tokenUrl", e);
+ }
+ get refreshUrl() {
+ return this.get("refreshUrl");
+ }
+ set refreshUrl(e) {
+ this.set("refreshUrl", e);
+ }
+ get scopes() {
+ return this.get("scopes");
+ }
+ set scopes(e) {
+ this.set("scopes", e);
+ }
+ }
+ const wa = ba;
+ class Ea extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "oAuthFlows");
+ }
+ get implicit() {
+ return this.get("implicit");
+ }
+ set implicit(e) {
+ this.set("implicit", e);
+ }
+ get password() {
+ return this.get("password");
+ }
+ set password(e) {
+ this.set("password", e);
+ }
+ get clientCredentials() {
+ return this.get("clientCredentials");
+ }
+ set clientCredentials(e) {
+ this.set("clientCredentials", e);
+ }
+ get authorizationCode() {
+ return this.get("authorizationCode");
+ }
+ set authorizationCode(e) {
+ this.set("authorizationCode", e);
+ }
+ }
+ const xa = Ea;
+ class Sa extends Nt.RP {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "openapi"),
+ this.classes.push("spec-version"),
+ this.classes.push("version");
+ }
+ }
+ const _a = Sa;
+ class ja extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "openApi3_0"),
+ this.classes.push("api");
+ }
+ get openapi() {
+ return this.get("openapi");
+ }
+ set openapi(e) {
+ this.set("openapi", e);
+ }
+ get info() {
+ return this.get("info");
+ }
+ set info(e) {
+ this.set("info", e);
+ }
+ get servers() {
+ return this.get("servers");
+ }
+ set servers(e) {
+ this.set("servers", e);
+ }
+ get paths() {
+ return this.get("paths");
+ }
+ set paths(e) {
+ this.set("paths", e);
+ }
+ get components() {
+ return this.get("components");
+ }
+ set components(e) {
+ this.set("components", e);
+ }
+ get security() {
+ return this.get("security");
+ }
+ set security(e) {
+ this.set("security", e);
+ }
+ get tags() {
+ return this.get("tags");
+ }
+ set tags(e) {
+ this.set("tags", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ }
+ const Oa = ja;
+ class ka extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "operation");
+ }
+ get tags() {
+ return this.get("tags");
+ }
+ set tags(e) {
+ this.set("tags", e);
+ }
+ get summary() {
+ return this.get("summary");
+ }
+ set summary(e) {
+ this.set("summary", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ get operationId() {
+ return this.get("operationId");
+ }
+ set operationId(e) {
+ this.set("operationId", e);
+ }
+ get parameters() {
+ return this.get("parameters");
+ }
+ set parameters(e) {
+ this.set("parameters", e);
+ }
+ get requestBody() {
+ return this.get("requestBody");
+ }
+ set requestBody(e) {
+ this.set("requestBody", e);
+ }
+ get responses() {
+ return this.get("responses");
+ }
+ set responses(e) {
+ this.set("responses", e);
+ }
+ get callbacks() {
+ return this.get("callbacks");
+ }
+ set callbacks(e) {
+ this.set("callbacks", e);
+ }
+ get deprecated() {
+ return this.hasKey("deprecated")
+ ? this.get("deprecated")
+ : new Nt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set("deprecated", e);
+ }
+ get security() {
+ return this.get("security");
+ }
+ set security(e) {
+ this.set("security", e);
+ }
+ get servers() {
+ return this.get("severs");
+ }
+ set servers(e) {
+ this.set("servers", e);
+ }
+ }
+ const Aa = ka;
+ class Ca extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "parameter");
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get in() {
+ return this.get("in");
+ }
+ set in(e) {
+ this.set("in", e);
+ }
+ get required() {
+ return this.hasKey("required")
+ ? this.get("required")
+ : new Nt.hh(!1);
+ }
+ set required(e) {
+ this.set("required", e);
+ }
+ get deprecated() {
+ return this.hasKey("deprecated")
+ ? this.get("deprecated")
+ : new Nt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set("deprecated", e);
+ }
+ get allowEmptyValue() {
+ return this.get("allowEmptyValue");
+ }
+ set allowEmptyValue(e) {
+ this.set("allowEmptyValue", e);
+ }
+ get style() {
+ return this.get("style");
+ }
+ set style(e) {
+ this.set("style", e);
+ }
+ get explode() {
+ return this.get("explode");
+ }
+ set explode(e) {
+ this.set("explode", e);
+ }
+ get allowReserved() {
+ return this.get("allowReserved");
+ }
+ set allowReserved(e) {
+ this.set("allowReserved", e);
+ }
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ get example() {
+ return this.get("example");
+ }
+ set example(e) {
+ this.set("example", e);
+ }
+ get examples() {
+ return this.get("examples");
+ }
+ set examples(e) {
+ this.set("examples", e);
+ }
+ get contentProp() {
+ return this.get("content");
+ }
+ set contentProp(e) {
+ this.set("content", e);
+ }
+ }
+ Object.defineProperty(Ca.prototype, "description", {
+ get() {
+ return this.get("description");
+ },
+ set(e) {
+ this.set("description", e);
+ },
+ enumerable: !0,
+ });
+ const Pa = Ca;
+ class Na extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "pathItem");
+ }
+ get $ref() {
+ return this.get("$ref");
+ }
+ set $ref(e) {
+ this.set("$ref", e);
+ }
+ get summary() {
+ return this.get("summary");
+ }
+ set summary(e) {
+ this.set("summary", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get GET() {
+ return this.get("get");
+ }
+ set GET(e) {
+ this.set("GET", e);
+ }
+ get PUT() {
+ return this.get("put");
+ }
+ set PUT(e) {
+ this.set("PUT", e);
+ }
+ get POST() {
+ return this.get("post");
+ }
+ set POST(e) {
+ this.set("POST", e);
+ }
+ get DELETE() {
+ return this.get("delete");
+ }
+ set DELETE(e) {
+ this.set("DELETE", e);
+ }
+ get OPTIONS() {
+ return this.get("options");
+ }
+ set OPTIONS(e) {
+ this.set("OPTIONS", e);
+ }
+ get HEAD() {
+ return this.get("head");
+ }
+ set HEAD(e) {
+ this.set("HEAD", e);
+ }
+ get PATCH() {
+ return this.get("patch");
+ }
+ set PATCH(e) {
+ this.set("PATCH", e);
+ }
+ get TRACE() {
+ return this.get("trace");
+ }
+ set TRACE(e) {
+ this.set("TRACE", e);
+ }
+ get servers() {
+ return this.get("servers");
+ }
+ set servers(e) {
+ this.set("servers", e);
+ }
+ get parameters() {
+ return this.get("parameters");
+ }
+ set parameters(e) {
+ this.set("parameters", e);
+ }
+ }
+ const Ia = Na;
+ class Ta extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "paths");
+ }
+ }
+ const Ra = Ta;
+ class Ma extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "reference"),
+ this.classes.push("openapi-reference");
+ }
+ get $ref() {
+ return this.get("$ref");
+ }
+ set $ref(e) {
+ this.set("$ref", e);
+ }
+ }
+ const Da = Ma;
+ class Fa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "requestBody");
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get contentProp() {
+ return this.get("content");
+ }
+ set contentProp(e) {
+ this.set("content", e);
+ }
+ get required() {
+ return this.hasKey("required")
+ ? this.get("required")
+ : new Nt.hh(!1);
+ }
+ set required(e) {
+ this.set("required", e);
+ }
+ }
+ const La = Fa;
+ class Ba extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "response");
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get headers() {
+ return this.get("headers");
+ }
+ set headers(e) {
+ this.set("headers", e);
+ }
+ get contentProp() {
+ return this.get("content");
+ }
+ set contentProp(e) {
+ this.set("content", e);
+ }
+ get links() {
+ return this.get("links");
+ }
+ set links(e) {
+ this.set("links", e);
+ }
+ }
+ const $a = Ba;
+ class qa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "responses");
+ }
+ get default() {
+ return this.get("default");
+ }
+ set default(e) {
+ this.set("default", e);
+ }
+ }
+ const Ua = qa;
+ class za extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "JSONSchemaDraft4");
+ }
+ get idProp() {
+ return this.get("id");
+ }
+ set idProp(e) {
+ this.set("id", e);
+ }
+ get $schema() {
+ return this.get("$schema");
+ }
+ set $schema(e) {
+ this.set("idProp", e);
+ }
+ get multipleOf() {
+ return this.get("multipleOf");
+ }
+ set multipleOf(e) {
+ this.set("multipleOf", e);
+ }
+ get maximum() {
+ return this.get("maximum");
+ }
+ set maximum(e) {
+ this.set("maximum", e);
+ }
+ get exclusiveMaximum() {
+ return this.get("exclusiveMaximum");
+ }
+ set exclusiveMaximum(e) {
+ this.set("exclusiveMaximum", e);
+ }
+ get minimum() {
+ return this.get("minimum");
+ }
+ set minimum(e) {
+ this.set("minimum", e);
+ }
+ get exclusiveMinimum() {
+ return this.get("exclusiveMinimum");
+ }
+ set exclusiveMinimum(e) {
+ this.set("exclusiveMinimum", e);
+ }
+ get maxLength() {
+ return this.get("maxLength");
+ }
+ set maxLength(e) {
+ this.set("maxLength", e);
+ }
+ get minLength() {
+ return this.get("minLength");
+ }
+ set minLength(e) {
+ this.set("minLength", e);
+ }
+ get pattern() {
+ return this.get("pattern");
+ }
+ set pattern(e) {
+ this.set("pattern", e);
+ }
+ get additionalItems() {
+ return this.get("additionalItems");
+ }
+ set additionalItems(e) {
+ this.set("additionalItems", e);
+ }
+ get items() {
+ return this.get("items");
+ }
+ set items(e) {
+ this.set("items", e);
+ }
+ get maxItems() {
+ return this.get("maxItems");
+ }
+ set maxItems(e) {
+ this.set("maxItems", e);
+ }
+ get minItems() {
+ return this.get("minItems");
+ }
+ set minItems(e) {
+ this.set("minItems", e);
+ }
+ get uniqueItems() {
+ return this.get("uniqueItems");
+ }
+ set uniqueItems(e) {
+ this.set("uniqueItems", e);
+ }
+ get maxProperties() {
+ return this.get("maxProperties");
+ }
+ set maxProperties(e) {
+ this.set("maxProperties", e);
+ }
+ get minProperties() {
+ return this.get("minProperties");
+ }
+ set minProperties(e) {
+ this.set("minProperties", e);
+ }
+ get required() {
+ return this.get("required");
+ }
+ set required(e) {
+ this.set("required", e);
+ }
+ get properties() {
+ return this.get("properties");
+ }
+ set properties(e) {
+ this.set("properties", e);
+ }
+ get additionalProperties() {
+ return this.get("additionalProperties");
+ }
+ set additionalProperties(e) {
+ this.set("additionalProperties", e);
+ }
+ get patternProperties() {
+ return this.get("patternProperties");
+ }
+ set patternProperties(e) {
+ this.set("patternProperties", e);
+ }
+ get dependencies() {
+ return this.get("dependencies");
+ }
+ set dependencies(e) {
+ this.set("dependencies", e);
+ }
+ get enum() {
+ return this.get("enum");
+ }
+ set enum(e) {
+ this.set("enum", e);
+ }
+ get type() {
+ return this.get("type");
+ }
+ set type(e) {
+ this.set("type", e);
+ }
+ get allOf() {
+ return this.get("allOf");
+ }
+ set allOf(e) {
+ this.set("allOf", e);
+ }
+ get anyOf() {
+ return this.get("anyOf");
+ }
+ set anyOf(e) {
+ this.set("anyOf", e);
+ }
+ get oneOf() {
+ return this.get("oneOf");
+ }
+ set oneOf(e) {
+ this.set("oneOf", e);
+ }
+ get not() {
+ return this.get("not");
+ }
+ set not(e) {
+ this.set("not", e);
+ }
+ get definitions() {
+ return this.get("definitions");
+ }
+ set definitions(e) {
+ this.set("definitions", e);
+ }
+ get title() {
+ return this.get("title");
+ }
+ set title(e) {
+ this.set("title", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get default() {
+ return this.get("default");
+ }
+ set default(e) {
+ this.set("default", e);
+ }
+ get format() {
+ return this.get("format");
+ }
+ set format(e) {
+ this.set("format", e);
+ }
+ get base() {
+ return this.get("base");
+ }
+ set base(e) {
+ this.set("base", e);
+ }
+ get links() {
+ return this.get("links");
+ }
+ set links(e) {
+ this.set("links", e);
+ }
+ get media() {
+ return this.get("media");
+ }
+ set media(e) {
+ this.set("media", e);
+ }
+ get readOnly() {
+ return this.get("readOnly");
+ }
+ set readOnly(e) {
+ this.set("readOnly", e);
+ }
+ }
+ const Va = za;
+ class Wa extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "JSONReference"),
+ this.classes.push("json-reference");
+ }
+ get $ref() {
+ return this.get("$ref");
+ }
+ set $ref(e) {
+ this.set("$ref", e);
+ }
+ }
+ const Ja = Wa;
+ class Ka extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "media");
+ }
+ get binaryEncoding() {
+ return this.get("binaryEncoding");
+ }
+ set binaryEncoding(e) {
+ this.set("binaryEncoding", e);
+ }
+ get type() {
+ return this.get("type");
+ }
+ set type(e) {
+ this.set("type", e);
+ }
+ }
+ const Ha = Ka;
+ class Ga extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "linkDescription");
+ }
+ get href() {
+ return this.get("href");
+ }
+ set href(e) {
+ this.set("href", e);
+ }
+ get rel() {
+ return this.get("rel");
+ }
+ set rel(e) {
+ this.set("rel", e);
+ }
+ get title() {
+ return this.get("title");
+ }
+ set title(e) {
+ this.set("title", e);
+ }
+ get targetSchema() {
+ return this.get("targetSchema");
+ }
+ set targetSchema(e) {
+ this.set("targetSchema", e);
+ }
+ get mediaType() {
+ return this.get("mediaType");
+ }
+ set mediaType(e) {
+ this.set("mediaType", e);
+ }
+ get method() {
+ return this.get("method");
+ }
+ set method(e) {
+ this.set("method", e);
+ }
+ get encType() {
+ return this.get("encType");
+ }
+ set encType(e) {
+ this.set("encType", e);
+ }
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ }
+ const Za = Ga,
+ Ya = (e, t) => {
+ const n = Ar(e, t);
+ return ho((e) => {
+ if (qs(e) && Gr("$ref", e) && jo(Qs, "$ref", e)) {
+ const t = po(["$ref"], e),
+ r = Ui("#/", t);
+ return po(r.split("/"), n);
+ }
+ return qs(e) ? Ya(e, n) : e;
+ }, e);
+ },
+ Xa = Xs({
+ props: { element: null },
+ methods: {
+ copyMetaAndAttributes(e, t) {
+ Ps(e) && t.meta.set("sourceMap", e.meta.get("sourceMap"));
+ },
+ },
+ }),
+ Qa = Xa,
+ el = Xs(Qa, {
+ methods: {
+ enter(e) {
+ return (this.element = e.clone()), ti;
+ },
+ },
+ });
+ const tl = Gn(qo());
+ function nl(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const rl = (e) => {
+ if (ms(e))
+ return `${
+ e.element.charAt(0).toUpperCase() + e.element.slice(1)
+ }Element`;
+ },
+ ol = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? nl(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : nl(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })(
+ {
+ JSONSchemaDraft4Element: ["content"],
+ JSONReferenceElement: ["content"],
+ MediaElement: ["content"],
+ LinkDescriptionElement: ["content"],
+ },
+ hi
+ );
+ function sl(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function il(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? sl(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : sl(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const al = Xs(Qa, {
+ props: { specObj: null, passingOptionsNames: ["specObj"] },
+ init({ specObj: e = this.specObj }) {
+ this.specObj = e;
+ },
+ methods: {
+ retrievePassingOptions() {
+ return xo(this.passingOptionsNames, this);
+ },
+ retrieveFixedFields(e) {
+ return yr(
+ po(["visitors", ...e, "fixedFields"]),
+ cn
+ )(this.specObj);
+ },
+ retrieveVisitor(e) {
+ return Eo(ns, ["visitors", ...e], this.specObj)
+ ? po(["visitors", ...e], this.specObj)
+ : po(["visitors", ...e, "$visitor"], this.specObj);
+ },
+ retrieveVisitorInstance(e, t = {}) {
+ const n = this.retrievePassingOptions();
+ return this.retrieveVisitor(e)(il(il({}, n), t));
+ },
+ toRefractedElement(e, t, n = {}) {
+ const r = this.retrieveVisitorInstance(e, n),
+ o = Object.getPrototypeOf(r);
+ return (
+ Uo(this.fallbackVisitorPrototype) &&
+ (this.fallbackVisitorPrototype = Object.getPrototypeOf(
+ this.retrieveVisitorInstance(["value"])
+ )),
+ this.fallbackVisitorPrototype === o
+ ? t.clone()
+ : (di(t, r, il({ keyMap: ol, nodeTypeGetter: rl }, n)),
+ r.element)
+ );
+ },
+ },
+ }),
+ ll = Xs(al, {
+ props: { specPath: tl, ignoredFields: [] },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ } = {}) {
+ (this.specPath = e), (this.ignoredFields = t);
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = this.specPath(e),
+ n = this.retrieveFixedFields(t);
+ return (
+ e.forEach((e, r, o) => {
+ if (
+ gs(r) &&
+ n.includes(r.toValue()) &&
+ !this.ignoredFields.includes(r.toValue())
+ ) {
+ const n = this.toRefractedElement(
+ [...t, "fixedFields", r.toValue()],
+ e
+ ),
+ s = new Nt.c6(r.clone(), n);
+ this.copyMetaAndAttributes(o, s),
+ s.classes.push("fixed-field"),
+ this.element.content.push(s);
+ } else
+ this.ignoredFields.includes(r.toValue()) ||
+ this.element.content.push(o.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ cl = ll,
+ ul = Xs(cl, el, {
+ props: { specPath: Gn(["document", "objects", "JSONSchema"]) },
+ init() {
+ this.element = new Va();
+ },
+ }),
+ pl = el,
+ hl = el,
+ fl = el,
+ dl = el,
+ ml = el,
+ gl = el,
+ yl = el,
+ vl = el,
+ bl = el,
+ wl = el,
+ El = Xs({
+ props: { parent: null },
+ init({ parent: e = this.parent }) {
+ (this.parent = e),
+ (this.passingOptionsNames = [
+ ...this.passingOptionsNames,
+ "parent",
+ ]);
+ },
+ }),
+ xl = (e) => ws(e) && e.hasKey("$ref"),
+ Sl = Xs(al, El, el, {
+ methods: {
+ ObjectElement(e) {
+ const t = xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"];
+ return (this.element = this.toRefractedElement(t, e)), ti;
+ },
+ ArrayElement(e) {
+ return (
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-items"),
+ e.forEach((e) => {
+ const t = xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ _l = el,
+ jl = el,
+ Ol = el,
+ kl = el,
+ Al = el,
+ Cl = Xs(el, {
+ methods: {
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-required"),
+ ti
+ );
+ },
+ },
+ });
+ const Pl = hr(Yt(1, ur(Rs, zr(Ds, ns))));
+ const Nl = hr(io);
+ const Il = Hn([Qs, Pl, Nl]),
+ Tl = Xs(al, {
+ props: {
+ fieldPatternPredicate: Dt,
+ specPath: tl,
+ ignoredFields: [],
+ },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ } = {}) {
+ (this.specPath = e), (this.ignoredFields = t);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ e.forEach((e, t, n) => {
+ if (
+ !this.ignoredFields.includes(t.toValue()) &&
+ this.fieldPatternPredicate(t.toValue())
+ ) {
+ const r = this.specPath(e),
+ o = this.toRefractedElement(r, e),
+ s = new Nt.c6(t.clone(), o);
+ this.copyMetaAndAttributes(n, s),
+ s.classes.push("patterned-field"),
+ this.element.content.push(s);
+ } else
+ this.ignoredFields.includes(t.toValue()) ||
+ this.element.content.push(n.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Rl = Xs(Tl, { props: { fieldPatternPredicate: Il } }),
+ Ml = Xs(Rl, El, el, {
+ props: {
+ specPath: (e) =>
+ xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-properties");
+ },
+ }),
+ Dl = Xs(Rl, El, el, {
+ props: {
+ specPath: (e) =>
+ xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-patternProperties");
+ },
+ }),
+ Fl = Xs(Rl, El, el, {
+ props: {
+ specPath: (e) =>
+ xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-dependencies");
+ },
+ }),
+ Ll = Xs(el, {
+ methods: {
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-enum"),
+ ti
+ );
+ },
+ },
+ }),
+ Bl = Xs(el, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-type"),
+ ti
+ );
+ },
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-type"),
+ ti
+ );
+ },
+ },
+ }),
+ $l = Xs(al, El, el, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-allOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ ql = Xs(al, El, el, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-anyOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Ul = Xs(al, El, el, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-oneOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ zl = Xs(Rl, El, el, {
+ props: {
+ specPath: (e) =>
+ xl(e)
+ ? ["document", "objects", "JSONReference"]
+ : ["document", "objects", "JSONSchema"],
+ },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-definitions");
+ },
+ }),
+ Vl = el,
+ Wl = el,
+ Jl = el,
+ Kl = el,
+ Hl = el,
+ Gl = Xs(al, El, el, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-links");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = this.toRefractedElement(
+ ["document", "objects", "LinkDescription"],
+ e
+ );
+ this.element.push(t);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Zl = el,
+ Yl = Xs(cl, el, {
+ props: { specPath: Gn(["document", "objects", "JSONReference"]) },
+ init() {
+ this.element = new Ja();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = cl.compose.methods.ObjectElement.call(this, e);
+ return (
+ gs(this.element.$ref) &&
+ this.element.classes.push("reference-element"),
+ t
+ );
+ },
+ },
+ }),
+ Xl = Xs(el, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ });
+ const Ql = hr(or);
+ const ec = ur(os, Nl);
+ function tc(e) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return nc(e);
+ })(e) ||
+ (function (e) {
+ if (
+ ("undefined" != typeof Symbol &&
+ null != e[Symbol.iterator]) ||
+ null != e["@@iterator"]
+ )
+ return Array.from(e);
+ })(e) ||
+ (function (e, t) {
+ if (!e) return;
+ if ("string" == typeof e) return nc(e, t);
+ var n = Object.prototype.toString.call(e).slice(8, -1);
+ "Object" === n && e.constructor && (n = e.constructor.name);
+ if ("Map" === n || "Set" === n) return Array.from(e);
+ if (
+ "Arguments" === n ||
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ )
+ return nc(e, t);
+ })(e) ||
+ (function () {
+ throw new TypeError(
+ "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
+ );
+ })()
+ );
+ }
+ function nc(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
+ return r;
+ }
+ var rc = yr(
+ Io(
+ pr(function (e, t) {
+ return e.length > t.length;
+ })
+ ),
+ Yr,
+ Rn("length")
+ ),
+ oc = kr(function (e, t, n) {
+ var r = n.apply(void 0, tc(e));
+ return Ql(r) ? Co(r) : t;
+ });
+ const sc = no(
+ ec,
+ function (e) {
+ var t = rc(e);
+ return Yt(t, function () {
+ for (
+ var t = arguments.length, n = new Array(t), r = 0;
+ r < t;
+ r++
+ )
+ n[r] = arguments[r];
+ return Kn(oc(n), void 0, e);
+ });
+ },
+ qo
+ ),
+ ic = Xs(al, {
+ props: { alternator: [] },
+ methods: {
+ enter(e) {
+ const t = this.alternator.map(
+ ({ predicate: e, specPath: t }) => no(e, Gn(t), qo)
+ ),
+ n = sc(t)(e);
+ return (this.element = this.toRefractedElement(n, e)), ti;
+ },
+ },
+ }),
+ ac = Xs(ic, {
+ props: {
+ alternator: [
+ {
+ predicate: xl,
+ specPath: ["document", "objects", "JSONReference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "JSONSchema"],
+ },
+ ],
+ },
+ }),
+ lc = {
+ visitors: {
+ value: el,
+ JSONSchemaOrJSONReferenceVisitor: ac,
+ document: {
+ objects: {
+ JSONSchema: {
+ $visitor: ul,
+ fixedFields: {
+ id: pl,
+ $schema: hl,
+ multipleOf: fl,
+ maximum: dl,
+ exclusiveMaximum: ml,
+ minimum: gl,
+ exclusiveMinimum: yl,
+ maxLength: vl,
+ minLength: bl,
+ pattern: wl,
+ additionalItems: ac,
+ items: Sl,
+ maxItems: _l,
+ minItems: jl,
+ uniqueItems: Ol,
+ maxProperties: kl,
+ minProperties: Al,
+ required: Cl,
+ properties: Ml,
+ additionalProperties: ac,
+ patternProperties: Dl,
+ dependencies: Fl,
+ enum: Ll,
+ type: Bl,
+ allOf: $l,
+ anyOf: ql,
+ oneOf: Ul,
+ not: ac,
+ definitions: zl,
+ title: Vl,
+ description: Wl,
+ default: Jl,
+ format: Kl,
+ base: Hl,
+ links: Gl,
+ media: { $ref: "#/visitors/document/objects/Media" },
+ readOnly: Zl,
+ },
+ },
+ JSONReference: { $visitor: Yl, fixedFields: { $ref: Xl } },
+ Media: {
+ $visitor: Xs(cl, el, {
+ props: {
+ specPath: Gn(["document", "objects", "Media"]),
+ },
+ init() {
+ this.element = new Ha();
+ },
+ }),
+ fixedFields: { binaryEncoding: el, type: el },
+ },
+ LinkDescription: {
+ $visitor: Xs(cl, el, {
+ props: {
+ specPath: Gn([
+ "document",
+ "objects",
+ "LinkDescription",
+ ]),
+ },
+ init() {
+ this.element = new Za();
+ },
+ }),
+ fixedFields: {
+ href: el,
+ rel: el,
+ title: el,
+ targetSchema: ac,
+ mediaType: el,
+ method: el,
+ encType: el,
+ schema: ac,
+ },
+ },
+ },
+ },
+ },
+ },
+ cc = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Va ||
+ (e(r) && t("JSONSchemaDraft4", r) && n("object", r))
+ ),
+ uc = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ja ||
+ (e(r) && t("JSONReference", r) && n("object", r))
+ ),
+ pc = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ha || (e(r) && t("media", r) && n("object", r))
+ ),
+ hc = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Za ||
+ (e(r) && t("linkDescription", r) && n("object", r))
+ ),
+ fc = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register("jSONSchemaDraft4", Va),
+ t.register("jSONReference", Ja),
+ t.register("media", Ha),
+ t.register("linkDescription", Za),
+ t
+ );
+ },
+ };
+ function dc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function mc(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? dc(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : dc(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const gc = () => {
+ const e = Vs(fc);
+ return {
+ predicates: mc(mc({}, i), {}, { isStringElement: gs }),
+ namespace: e,
+ };
+ };
+ function yc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const vc = (
+ e,
+ {
+ specPath: t = [
+ "visitors",
+ "document",
+ "objects",
+ "JSONSchema",
+ "$visitor",
+ ],
+ plugins: n = [],
+ specificationObj: r = lc,
+ } = {}
+ ) => {
+ const o = (0, Nt.Qc)(e),
+ s = Ya(r),
+ i = as(t, [], s);
+ return (
+ di(o, i, { state: { specObj: s } }),
+ mi(i.element, n, {
+ toolboxCreator: gc,
+ visitorOptions: { keyMap: ol, nodeTypeGetter: rl },
+ })
+ );
+ },
+ bc =
+ (e) =>
+ (t, n = {}) =>
+ vc(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? yc(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : yc(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (Va.refract = bc([
+ "visitors",
+ "document",
+ "objects",
+ "JSONSchema",
+ "$visitor",
+ ])),
+ (Ja.refract = bc([
+ "visitors",
+ "document",
+ "objects",
+ "JSONReference",
+ "$visitor",
+ ])),
+ (Ha.refract = bc([
+ "visitors",
+ "document",
+ "objects",
+ "Media",
+ "$visitor",
+ ])),
+ (Za.refract = bc([
+ "visitors",
+ "document",
+ "objects",
+ "LinkDescription",
+ "$visitor",
+ ]));
+ const wc = class extends Va {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "schema"),
+ this.classes.push("json-schema-draft-4");
+ }
+ get additionalItems() {
+ return this.get("additionalItems");
+ }
+ set additionalItems(e) {
+ this.set("additionalItems", e);
+ }
+ get items() {
+ return this.get("items");
+ }
+ set items(e) {
+ this.set("items", e);
+ }
+ get additionalProperties() {
+ return this.get("additionalProperties");
+ }
+ set additionalProperties(e) {
+ this.set("additionalProperties", e);
+ }
+ get type() {
+ return this.get("type");
+ }
+ set type(e) {
+ this.set("type", e);
+ }
+ get not() {
+ return this.get("not");
+ }
+ set not(e) {
+ this.set("not", e);
+ }
+ get nullable() {
+ return this.get("nullable");
+ }
+ set nullable(e) {
+ this.set("nullable", e);
+ }
+ get discriminator() {
+ return this.get("discriminator");
+ }
+ set discriminator(e) {
+ this.set("discriminator", e);
+ }
+ get writeOnly() {
+ return this.get("writeOnly");
+ }
+ set writeOnly(e) {
+ this.set("writeOnly", e);
+ }
+ get xml() {
+ return this.get("xml");
+ }
+ set xml(e) {
+ this.set("xml", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ get example() {
+ return this.get("example");
+ }
+ set example(e) {
+ this.set("example", e);
+ }
+ get deprecated() {
+ return this.get("deprecated");
+ }
+ set deprecated(e) {
+ this.set("deprecated", e);
+ }
+ };
+ class Ec extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "securityRequirement");
+ }
+ }
+ const xc = Ec;
+ class Sc extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "securityScheme");
+ }
+ get type() {
+ return this.get("type");
+ }
+ set type(e) {
+ this.set("type", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get in() {
+ return this.get("in");
+ }
+ set in(e) {
+ this.set("in", e);
+ }
+ get scheme() {
+ return this.get("scheme");
+ }
+ set scheme(e) {
+ this.set("scheme", e);
+ }
+ get bearerFormat() {
+ return this.get("bearerFormat");
+ }
+ set bearerFormat(e) {
+ this.set("bearerFormat", e);
+ }
+ get flows() {
+ return this.get("flows");
+ }
+ set flows(e) {
+ this.set("flows", e);
+ }
+ get openIdConnectUrl() {
+ return this.get("openIdConnectUrl");
+ }
+ set openIdConnectUrl(e) {
+ this.set("openIdConnectUrl", e);
+ }
+ }
+ const _c = Sc;
+ class jc extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "server");
+ }
+ get url() {
+ return this.get("url");
+ }
+ set url(e) {
+ this.set("url", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get variables() {
+ return this.get("variables");
+ }
+ set variables(e) {
+ this.set("variables", e);
+ }
+ }
+ const Oc = jc;
+ class kc extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "serverVariable");
+ }
+ get enum() {
+ return this.get("enum");
+ }
+ set enum(e) {
+ this.set("enum", e);
+ }
+ get default() {
+ return this.get("default");
+ }
+ set default(e) {
+ this.set("default", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ }
+ const Ac = kc;
+ class Cc extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "tag");
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ }
+ const Pc = Cc;
+ class Nc extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "xml");
+ }
+ get name() {
+ return this.get("name");
+ }
+ set name(e) {
+ this.set("name", e);
+ }
+ get namespace() {
+ return this.get("namespace");
+ }
+ set namespace(e) {
+ this.set("namespace", e);
+ }
+ get prefix() {
+ return this.get("prefix");
+ }
+ set prefix(e) {
+ this.set("prefix", e);
+ }
+ get attribute() {
+ return this.get("attribute");
+ }
+ set attribute(e) {
+ this.set("attribute", e);
+ }
+ get wrapped() {
+ return this.get("wrapped");
+ }
+ set wrapped(e) {
+ this.set("wrapped", e);
+ }
+ }
+ const Ic = Nc,
+ Tc = Xs({
+ props: { element: null },
+ methods: {
+ copyMetaAndAttributes(e, t) {
+ Ps(e) && t.meta.set("sourceMap", e.meta.get("sourceMap"));
+ },
+ },
+ }),
+ Rc = Tc;
+ function Mc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Dc = (e) => {
+ if (ms(e))
+ return `${
+ e.element.charAt(0).toUpperCase() + e.element.slice(1)
+ }Element`;
+ },
+ Fc = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Mc(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Mc(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })(
+ {
+ CallbackElement: ["content"],
+ ComponentsElement: ["content"],
+ ContactElement: ["content"],
+ DiscriminatorElement: ["content"],
+ Encoding: ["content"],
+ Example: ["content"],
+ ExternalDocumentationElement: ["content"],
+ HeaderElement: ["content"],
+ InfoElement: ["content"],
+ LicenseElement: ["content"],
+ MediaTypeElement: ["content"],
+ OAuthFlowElement: ["content"],
+ OAuthFlowsElement: ["content"],
+ OpenApi3_0Element: ["content"],
+ OperationElement: ["content"],
+ ParameterElement: ["content"],
+ PathItemElement: ["content"],
+ PathsElement: ["content"],
+ ReferenceElement: ["content"],
+ RequestBodyElement: ["content"],
+ ResponseElement: ["content"],
+ ResponsesElement: ["content"],
+ SchemaElement: ["content"],
+ SecurityRequirementElement: ["content"],
+ SecuritySchemeElement: ["content"],
+ ServerElement: ["content"],
+ ServerVariableElement: ["content"],
+ TagElement: ["content"],
+ },
+ hi
+ );
+ function Lc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Bc(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Lc(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Lc(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const $c = Xs(Rc, {
+ props: {
+ passingOptionsNames: [
+ "specObj",
+ "openApiGenericElement",
+ "openApiSemanticElement",
+ ],
+ specObj: null,
+ openApiGenericElement: null,
+ openApiSemanticElement: null,
+ },
+ init({
+ specObj: e = this.specObj,
+ openApiGenericElement: t = this.openApiGenericElement,
+ openApiSemanticElement: n = this.openApiSemanticElement,
+ }) {
+ (this.specObj = e),
+ (this.openApiGenericElement = t),
+ (this.openApiSemanticElement = n);
+ },
+ methods: {
+ retrievePassingOptions() {
+ return xo(this.passingOptionsNames, this);
+ },
+ retrieveFixedFields(e) {
+ return yr(
+ po(["visitors", ...e, "fixedFields"]),
+ cn
+ )(this.specObj);
+ },
+ retrieveVisitor(e) {
+ return Eo(ns, ["visitors", ...e], this.specObj)
+ ? po(["visitors", ...e], this.specObj)
+ : po(["visitors", ...e, "$visitor"], this.specObj);
+ },
+ retrieveVisitorInstance(e, t = {}) {
+ const n = this.retrievePassingOptions();
+ return this.retrieveVisitor(e)(Bc(Bc({}, n), t));
+ },
+ toRefractedElement(e, t, n = {}) {
+ const r = this.retrieveVisitorInstance(e, n),
+ o = Object.getPrototypeOf(r);
+ return (
+ Uo(this.fallbackVisitorPrototype) &&
+ (this.fallbackVisitorPrototype = Object.getPrototypeOf(
+ this.retrieveVisitorInstance(["value"])
+ )),
+ this.fallbackVisitorPrototype === o
+ ? t.clone()
+ : (di(t, r, Bc({ keyMap: Fc, nodeTypeGetter: Dc }, n)),
+ r.element)
+ );
+ },
+ },
+ }),
+ qc = (e) => ws(e) && e.hasKey("openapi") && e.hasKey("info"),
+ Uc = (e) => ws(e) && e.hasKey("name") && e.hasKey("in"),
+ zc = (e) => ws(e) && e.hasKey("$ref"),
+ Vc = (e) => ws(e) && e.hasKey("content"),
+ Wc = (e) => ws(e) && e.hasKey("description"),
+ Jc = ws,
+ Kc = ws,
+ Hc = (e) => gs(e.key) && Ro("x-", e.key.toValue()),
+ Gc = Xs($c, {
+ props: {
+ specPath: tl,
+ ignoredFields: [],
+ canSupportSpecificationExtensions: !0,
+ specificationExtensionPredicate: Hc,
+ },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ canSupportSpecificationExtensions: n = this
+ .canSupportSpecificationExtensions,
+ specificationExtensionPredicate: r = this
+ .specificationExtensionPredicate,
+ } = {}) {
+ (this.specPath = e),
+ (this.ignoredFields = t),
+ (this.canSupportSpecificationExtensions = n),
+ (this.specificationExtensionPredicate = r);
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = this.specPath(e),
+ n = this.retrieveFixedFields(t);
+ return (
+ e.forEach((e, r, o) => {
+ if (
+ gs(r) &&
+ n.includes(r.toValue()) &&
+ !this.ignoredFields.includes(r.toValue())
+ ) {
+ const n = this.toRefractedElement(
+ [...t, "fixedFields", r.toValue()],
+ e
+ ),
+ s = new Nt.c6(r.clone(), n);
+ this.copyMetaAndAttributes(o, s),
+ s.classes.push("fixed-field"),
+ this.element.content.push(s);
+ } else if (
+ this.canSupportSpecificationExtensions &&
+ this.specificationExtensionPredicate(o)
+ ) {
+ const e = this.toRefractedElement(
+ ["document", "extension"],
+ o
+ );
+ this.element.content.push(e);
+ } else
+ this.ignoredFields.includes(r.toValue()) ||
+ this.element.content.push(o.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Zc = Gc,
+ Yc = Xs(Rc, {
+ methods: {
+ enter(e) {
+ return (this.element = e.clone()), ti;
+ },
+ },
+ }),
+ Xc = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "OpenApi"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Oa();
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ (this.unrefractedElement = e),
+ Zc.compose.methods.ObjectElement.call(this, e)
+ );
+ },
+ },
+ }),
+ Qc = Xs($c, Yc, {
+ methods: {
+ StringElement(e) {
+ const t = new _a(e.toValue());
+ return (
+ this.copyMetaAndAttributes(e, t), (this.element = t), ti
+ );
+ },
+ },
+ }),
+ eu = Xs($c, {
+ methods: {
+ MemberElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("specification-extension"),
+ ti
+ );
+ },
+ },
+ }),
+ tu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Info"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new ha();
+ },
+ }),
+ nu = Yc,
+ ru = Yc,
+ ou = Yc,
+ su = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("api-version"),
+ this.element.classes.push("version"),
+ ti
+ );
+ },
+ },
+ }),
+ iu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Contact"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new ea();
+ },
+ }),
+ au = Yc,
+ lu = Yc,
+ cu = Yc,
+ uu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "License"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new da();
+ },
+ }),
+ pu = Yc,
+ hu = Yc,
+ fu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Link"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new ga();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ (gs(this.element.operationId) ||
+ gs(this.element.operationRef)) &&
+ this.element.classes.push("reference-element"),
+ t
+ );
+ },
+ },
+ }),
+ du = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ mu = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ gu = Xs($c, {
+ props: {
+ fieldPatternPredicate: Dt,
+ specPath: tl,
+ ignoredFields: [],
+ canSupportSpecificationExtensions: !1,
+ specificationExtensionPredicate: Hc,
+ },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ canSupportSpecificationExtensions: n = this
+ .canSupportSpecificationExtensions,
+ specificationExtensionPredicate: r = this
+ .specificationExtensionPredicate,
+ } = {}) {
+ (this.specPath = e),
+ (this.ignoredFields = t),
+ (this.canSupportSpecificationExtensions = n),
+ (this.specificationExtensionPredicate = r);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ e.forEach((e, t, n) => {
+ if (
+ this.canSupportSpecificationExtensions &&
+ this.specificationExtensionPredicate(n)
+ ) {
+ const e = this.toRefractedElement(
+ ["document", "extension"],
+ n
+ );
+ this.element.content.push(e);
+ } else if (
+ !this.ignoredFields.includes(t.toValue()) &&
+ this.fieldPatternPredicate(t.toValue())
+ ) {
+ const r = this.specPath(e),
+ o = this.toRefractedElement(r, e),
+ s = new Nt.c6(t.clone(), o);
+ this.copyMetaAndAttributes(n, s),
+ s.classes.push("patterned-field"),
+ this.element.content.push(s);
+ } else
+ this.ignoredFields.includes(t.toValue()) ||
+ this.element.content.push(n.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ yu = gu,
+ vu = Xs(yu, { props: { fieldPatternPredicate: Il } });
+ class bu extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(bu.primaryClass);
+ }
+ }
+ Qo(bu, "primaryClass", "link-parameters");
+ const wu = bu,
+ Eu = Xs(vu, Yc, {
+ props: { specPath: Gn(["value"]) },
+ init() {
+ this.element = new wu();
+ },
+ }),
+ xu = Yc,
+ Su = Yc,
+ _u = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Server"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Oc();
+ },
+ }),
+ ju = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("server-url"),
+ ti
+ );
+ },
+ },
+ }),
+ Ou = Yc;
+ class ku extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(ku.primaryClass);
+ }
+ }
+ Qo(ku, "primaryClass", "servers");
+ const Au = ku,
+ Cu = Xs($c, Yc, {
+ init() {
+ this.element = new Au();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = Jc(e)
+ ? ["document", "objects", "Server"]
+ : ["value"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Pu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "ServerVariable"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Ac();
+ },
+ }),
+ Nu = Yc,
+ Iu = Yc,
+ Tu = Yc;
+ class Ru extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Ru.primaryClass);
+ }
+ }
+ Qo(Ru, "primaryClass", "server-variables");
+ const Mu = Ru,
+ Du = Xs(vu, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "ServerVariable"]),
+ },
+ init() {
+ this.element = new Mu();
+ },
+ }),
+ Fu = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "MediaType"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new va();
+ },
+ }),
+ Lu = Xs($c, {
+ props: { alternator: [] },
+ methods: {
+ enter(e) {
+ const t = this.alternator.map(
+ ({ predicate: e, specPath: t }) => no(e, Gn(t), qo)
+ ),
+ n = sc(t)(e);
+ return (this.element = this.toRefractedElement(n, e)), ti;
+ },
+ },
+ }),
+ Bu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Zi ||
+ (e(r) && t("callback", r) && n("object", r))
+ ),
+ $u = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Xi ||
+ (e(r) && t("components", r) && n("object", r))
+ ),
+ qu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ea || (e(r) && t("contact", r) && n("object", r))
+ ),
+ Uu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ia || (e(r) && t("example", r) && n("object", r))
+ ),
+ zu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof la ||
+ (e(r) && t("externalDocumentation", r) && n("object", r))
+ ),
+ Vu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ua || (e(r) && t("header", r) && n("object", r))
+ ),
+ Wu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ha || (e(r) && t("info", r) && n("object", r))
+ ),
+ Ju = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof da || (e(r) && t("license", r) && n("object", r))
+ ),
+ Ku = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ga || (e(r) && t("link", r) && n("object", r))
+ ),
+ Hu = (e) => {
+ if (!Ku(e)) return !1;
+ if (!gs(e.operationRef)) return !1;
+ const t = e.operationRef.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ Gu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof _a || (e(r) && t("openapi", r) && n("string", r))
+ ),
+ Zu = ds(
+ ({
+ hasBasicElementProps: e,
+ isElementType: t,
+ primitiveEq: n,
+ hasClass: r,
+ }) =>
+ (o) =>
+ o instanceof Oa ||
+ (e(o) && t("openApi3_0", o) && n("object", o) && r("api", o))
+ ),
+ Yu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Aa ||
+ (e(r) && t("operation", r) && n("object", r))
+ ),
+ Xu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pa ||
+ (e(r) && t("parameter", r) && n("object", r))
+ ),
+ Qu = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ia ||
+ (e(r) && t("pathItem", r) && n("object", r))
+ ),
+ ep = (e) => {
+ if (!Qu(e)) return !1;
+ if (!gs(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ tp = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ra || (e(r) && t("paths", r) && n("object", r))
+ ),
+ np = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Da ||
+ (e(r) && t("reference", r) && n("object", r))
+ ),
+ rp = (e) => {
+ if (!np(e)) return !1;
+ if (!gs(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ op = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof La ||
+ (e(r) && t("requestBody", r) && n("object", r))
+ ),
+ sp = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof $a ||
+ (e(r) && t("response", r) && n("object", r))
+ ),
+ ip = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ua ||
+ (e(r) && t("responses", r) && n("object", r))
+ ),
+ ap = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof wc || (e(r) && t("schema", r) && n("object", r))
+ ),
+ lp = (e) => bs(e) && e.classes.includes("boolean-json-schema"),
+ cp = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof xc ||
+ (e(r) && t("securityRequirement", r) && n("object", r))
+ ),
+ up = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Oc || (e(r) && t("server", r) && n("object", r))
+ ),
+ pp = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ac ||
+ (e(r) && t("serverVariable", r) && n("object", r))
+ ),
+ hp = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof va ||
+ (e(r) && t("mediaType", r) && n("object", r))
+ ),
+ fp = Xs(Lu, Yc, {
+ props: {
+ alternator: [
+ {
+ predicate: zc,
+ specPath: ["document", "objects", "Reference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "Schema"],
+ },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Lu.compose.methods.enter.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ ),
+ t
+ );
+ },
+ },
+ }),
+ dp = Yc,
+ mp = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Example"],
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("examples");
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "example");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class gp extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(gp.primaryClass),
+ this.classes.push("examples");
+ }
+ }
+ Qo(gp, "primaryClass", "media-type-examples");
+ const yp = gp,
+ vp = Xs(mp, {
+ init() {
+ this.element = new yp();
+ },
+ });
+ class bp extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(bp.primaryClass);
+ }
+ }
+ Qo(bp, "primaryClass", "media-type-encoding");
+ const wp = bp,
+ Ep = Xs(vu, Yc, {
+ props: { specPath: Gn(["document", "objects", "Encoding"]) },
+ init() {
+ this.element = new wp();
+ },
+ }),
+ xp = Xs(vu, Yc, {
+ props: { specPath: Gn(["value"]) },
+ init() {
+ this.element = new xc();
+ },
+ });
+ class Sp extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Sp.primaryClass);
+ }
+ }
+ Qo(Sp, "primaryClass", "security");
+ const _p = Sp,
+ jp = Xs($c, Yc, {
+ init() {
+ this.element = new _p();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (ws(e)) {
+ const t = this.toRefractedElement(
+ ["document", "objects", "SecurityRequirement"],
+ e
+ );
+ this.element.push(t);
+ } else this.element.push(e.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Op = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Components"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Xi();
+ },
+ }),
+ kp = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Tag"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Pc();
+ },
+ }),
+ Ap = Yc,
+ Cp = Yc,
+ Pp = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Reference"]),
+ canSupportSpecificationExtensions: !1,
+ },
+ init() {
+ this.element = new Da();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ gs(this.element.$ref) &&
+ this.element.classes.push("reference-element"),
+ t
+ );
+ },
+ },
+ }),
+ Np = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ Ip = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Parameter"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Pa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ ws(this.element.contentProp) &&
+ this.element.contentProp.filter(hp).forEach((e, t) => {
+ e.setMetaProperty("media-type", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Tp = Yc,
+ Rp = Yc,
+ Mp = Yc,
+ Dp = Yc,
+ Fp = Yc,
+ Lp = Yc,
+ Bp = Yc,
+ $p = Yc,
+ qp = Yc,
+ Up = Xs(Lu, Yc, {
+ props: {
+ alternator: [
+ {
+ predicate: zc,
+ specPath: ["document", "objects", "Reference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "Schema"],
+ },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Lu.compose.methods.enter.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ ),
+ t
+ );
+ },
+ },
+ }),
+ zp = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Header"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new ua();
+ },
+ }),
+ Vp = Yc,
+ Wp = Yc,
+ Jp = Yc,
+ Kp = Yc,
+ Hp = Yc,
+ Gp = Yc,
+ Zp = Yc,
+ Yp = Xs(Lu, Yc, {
+ props: {
+ alternator: [
+ {
+ predicate: zc,
+ specPath: ["document", "objects", "Reference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "Schema"],
+ },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Lu.compose.methods.enter.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ ),
+ t
+ );
+ },
+ },
+ }),
+ Xp = Yc;
+ class Qp extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Qp.primaryClass),
+ this.classes.push("examples");
+ }
+ }
+ Qo(Qp, "primaryClass", "header-examples");
+ const eh = Qp,
+ th = Xs(mp, {
+ init() {
+ this.element = new eh();
+ },
+ }),
+ nh = Xs(vu, Yc, {
+ props: { specPath: Gn(["document", "objects", "MediaType"]) },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("content");
+ },
+ });
+ class rh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(rh.primaryClass),
+ this.classes.push("content");
+ }
+ }
+ Qo(rh, "primaryClass", "header-content");
+ const oh = rh,
+ sh = Xs(nh, {
+ init() {
+ this.element = new oh();
+ },
+ }),
+ ih = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Schema"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new wc();
+ },
+ }),
+ { allOf: ah } = lc.visitors.document.objects.JSONSchema.fixedFields,
+ lh = Xs(ah, {
+ methods: {
+ ArrayElement(e) {
+ const t = ah.compose.methods.ArrayElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { anyOf: ch } = lc.visitors.document.objects.JSONSchema.fixedFields,
+ uh = Xs(ch, {
+ methods: {
+ ArrayElement(e) {
+ const t = ch.compose.methods.ArrayElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { oneOf: ph } = lc.visitors.document.objects.JSONSchema.fixedFields,
+ hh = Xs(ph, {
+ methods: {
+ ArrayElement(e) {
+ const t = ph.compose.methods.ArrayElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { definitions: fh } =
+ lc.visitors.document.objects.JSONSchema.fixedFields,
+ dh = Xs(fh, {
+ methods: {
+ ObjectElement(e) {
+ const t = fh.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { dependencies: mh } =
+ lc.visitors.document.objects.JSONSchema.fixedFields,
+ gh = Xs(mh, {
+ methods: {
+ ObjectElement(e) {
+ const t = mh.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { items: yh } = lc.visitors.document.objects.JSONSchema.fixedFields,
+ vh = Xs(yh, {
+ methods: {
+ ObjectElement(e) {
+ const t = yh.compose.methods.ObjectElement.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ ),
+ t
+ );
+ },
+ ArrayElement(e) {
+ return (this.element = e.clone()), ti;
+ },
+ },
+ }),
+ { properties: bh } =
+ lc.visitors.document.objects.JSONSchema.fixedFields,
+ wh = Xs(bh, {
+ methods: {
+ ObjectElement(e) {
+ const t = bh.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { patternProperties: Eh } =
+ lc.visitors.document.objects.JSONSchema.fixedFields,
+ xh = Xs(Eh, {
+ methods: {
+ ObjectElement(e) {
+ const t = Eh.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { type: Sh } = lc.visitors.document.objects.JSONSchema.fixedFields,
+ _h = Xs(Sh, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), ti;
+ },
+ },
+ }),
+ jh = Yc,
+ Oh = Yc,
+ kh = Yc,
+ Ah = Yc,
+ { JSONSchemaOrJSONReferenceVisitor: Ch } = lc.visitors,
+ Ph = Xs(Ch, {
+ methods: {
+ ObjectElement(e) {
+ const t = Ch.compose.methods.enter.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ ),
+ t
+ );
+ },
+ },
+ }),
+ Nh = Object.fromEntries(
+ Object.entries(
+ lc.visitors.document.objects.JSONSchema.fixedFields
+ ).map(([e, t]) =>
+ t === lc.visitors.JSONSchemaOrJSONReferenceVisitor
+ ? [e, Ph]
+ : [e, t]
+ )
+ ),
+ Ih = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Discriminator"]),
+ canSupportSpecificationExtensions: !1,
+ },
+ init() {
+ this.element = new na();
+ },
+ }),
+ Th = Yc;
+ class Rh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Rh.primaryClass);
+ }
+ }
+ Qo(Rh, "primaryClass", "discriminator-mapping");
+ const Mh = Rh,
+ Dh = Xs(vu, Yc, {
+ props: { specPath: Gn(["value"]) },
+ init() {
+ this.element = new Mh();
+ },
+ }),
+ Fh = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "XML"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Ic();
+ },
+ }),
+ Lh = Yc,
+ Bh = Yc,
+ $h = Yc,
+ qh = Yc,
+ Uh = Yc,
+ zh = Yc;
+ class Vh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Vh.primaryClass),
+ this.classes.push("examples");
+ }
+ }
+ Qo(Vh, "primaryClass", "parameter-examples");
+ const Wh = Vh,
+ Jh = Xs(mp, {
+ init() {
+ this.element = new Wh();
+ },
+ });
+ class Kh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Kh.primaryClass),
+ this.classes.push("content");
+ }
+ }
+ Qo(Kh, "primaryClass", "parameter-content");
+ const Hh = Kh,
+ Gh = Xs(nh, {
+ init() {
+ this.element = new Hh();
+ },
+ });
+ class Zh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Zh.primaryClass);
+ }
+ }
+ Qo(Zh, "primaryClass", "components-schemas");
+ const Yh = Zh,
+ Xh = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Schema"],
+ },
+ init() {
+ this.element = new Yh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "schema");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class Qh extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Qh.primaryClass);
+ }
+ }
+ Qo(Qh, "primaryClass", "components-responses");
+ const ef = Qh,
+ tf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Response"],
+ },
+ init() {
+ this.element = new ef();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "response");
+ }),
+ this.element.filter(sp).forEach((e, t) => {
+ e.setMetaProperty("http-status-code", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ nf = tf;
+ class rf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(rf.primaryClass),
+ this.classes.push("parameters");
+ }
+ }
+ Qo(rf, "primaryClass", "components-parameters");
+ const of = rf,
+ sf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Parameter"],
+ },
+ init() {
+ this.element = new of();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "parameter");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class af extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(af.primaryClass),
+ this.classes.push("examples");
+ }
+ }
+ Qo(af, "primaryClass", "components-examples");
+ const lf = af,
+ cf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Example"],
+ },
+ init() {
+ this.element = new lf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "example");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class uf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(uf.primaryClass);
+ }
+ }
+ Qo(uf, "primaryClass", "components-request-bodies");
+ const pf = uf,
+ hf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "RequestBody"],
+ },
+ init() {
+ this.element = new pf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "requestBody");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class ff extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(ff.primaryClass);
+ }
+ }
+ Qo(ff, "primaryClass", "components-headers");
+ const df = ff,
+ mf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Header"],
+ },
+ init() {
+ this.element = new df();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "header");
+ }),
+ this.element.filter(Vu).forEach((e, t) => {
+ e.setMetaProperty("header-name", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ gf = mf;
+ class yf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(yf.primaryClass);
+ }
+ }
+ Qo(yf, "primaryClass", "components-security-schemes");
+ const vf = yf,
+ bf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "SecurityScheme"],
+ },
+ init() {
+ this.element = new vf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "securityScheme");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class wf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(wf.primaryClass);
+ }
+ }
+ Qo(wf, "primaryClass", "components-links");
+ const Ef = wf,
+ xf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Link"],
+ },
+ init() {
+ this.element = new Ef();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "link");
+ }),
+ t
+ );
+ },
+ },
+ });
+ class Sf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Sf.primaryClass);
+ }
+ }
+ Qo(Sf, "primaryClass", "components-callbacks");
+ const _f = Sf,
+ jf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Callback"],
+ },
+ init() {
+ this.element = new _f();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "callback");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Of = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Example"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new ia();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ gs(this.element.externalValue) &&
+ this.element.classes.push("reference-element"),
+ t
+ );
+ },
+ },
+ }),
+ kf = Yc,
+ Af = Yc,
+ Cf = Yc,
+ Pf = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ Nf = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "ExternalDocumentation"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new la();
+ },
+ }),
+ If = Yc,
+ Tf = Yc,
+ Rf = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Encoding"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new oa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ ws(this.element.headers) &&
+ this.element.headers.filter(Vu).forEach((e, t) => {
+ e.setMetaProperty("header-name", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Mf = Yc;
+ class Df extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Df.primaryClass);
+ }
+ }
+ Qo(Df, "primaryClass", "encoding-headers");
+ const Ff = Df,
+ Lf = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Header"],
+ },
+ init() {
+ this.element = new Ff();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "header");
+ }),
+ this.element.forEach((e, t) => {
+ if (!Vu(e)) return;
+ const n = t.toValue();
+ e.setMetaProperty("headerName", n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Bf = Lf,
+ $f = Yc,
+ qf = Yc,
+ Uf = Yc,
+ zf = Xs(yu, Yc, {
+ props: {
+ fieldPatternPredicate: Mo(/^\/(?.*)$/),
+ specPath: Gn(["document", "objects", "PathItem"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Ra();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Qu).forEach((e, t) => {
+ e.setMetaProperty("path", t.clone());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Vf = Xs(Zc, Yc, {
+ props: { specPath: Gn(["document", "objects", "RequestBody"]) },
+ init() {
+ this.element = new La();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ ws(this.element.contentProp) &&
+ this.element.contentProp.filter(hp).forEach((e, t) => {
+ e.setMetaProperty("media-type", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Wf = Yc;
+ class Jf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Jf.primaryClass),
+ this.classes.push("content");
+ }
+ }
+ Qo(Jf, "primaryClass", "request-body-content");
+ const Kf = Jf,
+ Hf = Xs(nh, {
+ init() {
+ this.element = new Kf();
+ },
+ }),
+ Gf = Yc,
+ Zf = Xs(yu, Yc, {
+ props: {
+ fieldPatternPredicate: Mo(/{(?.*)}/),
+ specPath: Gn(["document", "objects", "PathItem"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Zi();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Qu).forEach((e, t) => {
+ e.setMetaProperty("runtime-expression", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Yf = Xs(Zc, Yc, {
+ props: { specPath: Gn(["document", "objects", "Response"]) },
+ init() {
+ this.element = new $a();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ ws(this.element.contentProp) &&
+ this.element.contentProp.filter(hp).forEach((e, t) => {
+ e.setMetaProperty("media-type", t.toValue());
+ }),
+ ws(this.element.headers) &&
+ this.element.headers.filter(Vu).forEach((e, t) => {
+ e.setMetaProperty("header-name", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Xf = Yc;
+ class Qf extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Qf.primaryClass);
+ }
+ }
+ Qo(Qf, "primaryClass", "response-headers");
+ const ed = Qf,
+ td = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Header"],
+ },
+ init() {
+ this.element = new ed();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "header");
+ }),
+ this.element.forEach((e, t) => {
+ if (!Vu(e)) return;
+ const n = t.toValue();
+ e.setMetaProperty("header-name", n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ nd = td;
+ class rd extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(rd.primaryClass),
+ this.classes.push("content");
+ }
+ }
+ Qo(rd, "primaryClass", "response-content");
+ const od = rd,
+ sd = Xs(nh, {
+ init() {
+ this.element = new od();
+ },
+ });
+ class id extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(id.primaryClass);
+ }
+ }
+ Qo(id, "primaryClass", "response-links");
+ const ad = id,
+ ld = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Link"],
+ },
+ init() {
+ this.element = new ad();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "link");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ cd = Xs(Zc, yu, {
+ props: { specPathFixedFields: tl, specPathPatternedFields: tl },
+ methods: {
+ ObjectElement(e) {
+ const { specPath: t, ignoredFields: n } = this;
+ try {
+ this.specPath = this.specPathFixedFields;
+ const t = this.retrieveFixedFields(this.specPath(e));
+ (this.ignoredFields = [...n, ...Nr(e.keys(), t)]),
+ Zc.compose.methods.ObjectElement.call(this, e),
+ (this.specPath = this.specPathPatternedFields),
+ (this.ignoredFields = t),
+ yu.compose.methods.ObjectElement.call(this, e);
+ } catch (e) {
+ throw ((this.specPath = t), e);
+ }
+ return ti;
+ },
+ },
+ }),
+ ud = Xs(cd, Yc, {
+ props: {
+ specPathFixedFields: Gn(["document", "objects", "Responses"]),
+ specPathPatternedFields: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Response"],
+ fieldPatternPredicate: Mo(
+ new RegExp(
+ `^(1XX|2XX|3XX|4XX|5XX|${Ao(100, 600).join("|")})$`
+ )
+ ),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Ua();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = cd.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "response");
+ }),
+ this.element.filter(sp).forEach((e, t) => {
+ const n = t.clone();
+ this.fieldPatternPredicate(n.toValue()) &&
+ e.setMetaProperty("http-status-code", n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ pd = ud,
+ hd = Xs(Lu, Yc, {
+ props: {
+ alternator: [
+ {
+ predicate: zc,
+ specPath: ["document", "objects", "Reference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "Response"],
+ },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Lu.compose.methods.enter.call(this, e);
+ return (
+ np(this.element)
+ ? this.element.setMetaProperty(
+ "referenced-element",
+ "response"
+ )
+ : sp(this.element) &&
+ this.element.setMetaProperty(
+ "http-status-code",
+ "default"
+ ),
+ t
+ );
+ },
+ },
+ }),
+ fd = Xs(Zc, Yc, {
+ props: { specPath: Gn(["document", "objects", "Operation"]) },
+ init() {
+ this.element = new Aa();
+ },
+ });
+ class dd extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(dd.primaryClass);
+ }
+ }
+ Qo(dd, "primaryClass", "operation-tags");
+ const md = dd,
+ gd = Xs(Yc, {
+ init() {
+ this.element = new md();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (this.element = this.element.concat(e.clone())), ti;
+ },
+ },
+ }),
+ yd = Yc,
+ vd = Yc,
+ bd = Yc;
+ class wd extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(wd.primaryClass),
+ this.classes.push("parameters");
+ }
+ }
+ Qo(wd, "primaryClass", "operation-parameters");
+ const Ed = wd,
+ xd = Xs($c, Yc, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("parameters");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Parameter"],
+ n = this.toRefractedElement(t, e);
+ np(n) &&
+ n.setMetaProperty("referenced-element", "parameter"),
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Sd = Xs(xd, {
+ init() {
+ this.element = new Ed();
+ },
+ }),
+ _d = Xs(Lu, {
+ props: {
+ alternator: [
+ {
+ predicate: zc,
+ specPath: ["document", "objects", "Reference"],
+ },
+ {
+ predicate: Ft,
+ specPath: ["document", "objects", "RequestBody"],
+ },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Lu.compose.methods.enter.call(this, e);
+ return (
+ np(this.element) &&
+ this.element.setMetaProperty(
+ "referenced-element",
+ "requestBody"
+ ),
+ t
+ );
+ },
+ },
+ });
+ class jd extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(jd.primaryClass);
+ }
+ }
+ Qo(jd, "primaryClass", "operation-callbacks");
+ const Od = jd,
+ kd = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "Callback"],
+ },
+ init() {
+ this.element = new Od();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(np).forEach((e) => {
+ e.setMetaProperty("referenced-element", "callback");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Ad = Yc;
+ class Cd extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Cd.primaryClass),
+ this.classes.push("security");
+ }
+ }
+ Qo(Cd, "primaryClass", "operation-security");
+ const Pd = Cd,
+ Nd = Xs($c, Yc, {
+ init() {
+ this.element = new Pd();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = ws(e)
+ ? ["document", "objects", "SecurityRequirement"]
+ : ["value"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ });
+ class Id extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Id.primaryClass),
+ this.classes.push("servers");
+ }
+ }
+ Qo(Id, "primaryClass", "operation-servers");
+ const Td = Id,
+ Rd = Xs(Cu, {
+ init() {
+ this.element = new Td();
+ },
+ }),
+ Md = Xs(Zc, Yc, {
+ props: { specPath: Gn(["document", "objects", "PathItem"]) },
+ init() {
+ this.element = new Ia();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Yu).forEach((e, t) => {
+ const n = t.clone();
+ (n.content = n.toValue().toUpperCase()),
+ e.setMetaProperty("http-method", n);
+ }),
+ gs(this.element.$ref) &&
+ this.element.classes.push("reference-element"),
+ t
+ );
+ },
+ },
+ }),
+ Dd = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ Fd = Yc,
+ Ld = Yc;
+ class Bd extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Bd.primaryClass),
+ this.classes.push("servers");
+ }
+ }
+ Qo(Bd, "primaryClass", "path-item-servers");
+ const $d = Bd,
+ qd = Xs(Cu, {
+ init() {
+ this.element = new $d();
+ },
+ });
+ class Ud extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n),
+ this.classes.push(Ud.primaryClass),
+ this.classes.push("parameters");
+ }
+ }
+ Qo(Ud, "primaryClass", "path-item-parameters");
+ const zd = Ud,
+ Vd = Xs(xd, {
+ init() {
+ this.element = new zd();
+ },
+ }),
+ Wd = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "SecurityScheme"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new _c();
+ },
+ }),
+ Jd = Yc,
+ Kd = Yc,
+ Hd = Yc,
+ Gd = Yc,
+ Zd = Yc,
+ Yd = Yc,
+ Xd = Yc,
+ Qd = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "OAuthFlows"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new xa();
+ },
+ }),
+ em = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "OAuthFlow"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new wa();
+ },
+ }),
+ tm = Yc,
+ nm = Yc,
+ rm = Yc;
+ class om extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(om.primaryClass);
+ }
+ }
+ Qo(om, "primaryClass", "oauth-flow-scopes");
+ const sm = om,
+ im = Xs(vu, Yc, {
+ props: { specPath: Gn(["value"]) },
+ init() {
+ this.element = new sm();
+ },
+ });
+ class am extends Nt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(am.primaryClass);
+ }
+ }
+ Qo(am, "primaryClass", "tags");
+ const lm = am,
+ cm = Xs($c, Yc, {
+ init() {
+ this.element = new lm();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = Kc(e)
+ ? ["document", "objects", "Tag"]
+ : ["value"],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ });
+ function um(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function pm(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? um(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : um(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const hm = { $visitor: Pp, fixedFields: { $ref: Np } },
+ fm = {
+ $visitor: ih,
+ fixedFields: pm(
+ pm({}, Nh),
+ {},
+ {
+ allOf: lh,
+ anyOf: uh,
+ oneOf: hh,
+ definitions: dh,
+ items: vh,
+ dependencies: gh,
+ properties: wh,
+ patternProperties: xh,
+ type: _h,
+ nullable: jh,
+ discriminator: {
+ $ref: "#/visitors/document/objects/Discriminator",
+ },
+ writeOnly: Oh,
+ xml: { $ref: "#/visitors/document/objects/XML" },
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ example: kh,
+ deprecated: Ah,
+ }
+ ),
+ },
+ dm = {
+ visitors: {
+ value: Yc,
+ document: {
+ objects: {
+ OpenApi: {
+ $visitor: Xc,
+ fixedFields: {
+ openapi: Qc,
+ info: { $ref: "#/visitors/document/objects/Info" },
+ servers: Cu,
+ paths: { $ref: "#/visitors/document/objects/Paths" },
+ components: {
+ $ref: "#/visitors/document/objects/Components",
+ },
+ security: jp,
+ tags: cm,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ },
+ },
+ Info: {
+ $visitor: tu,
+ fixedFields: {
+ title: nu,
+ description: ru,
+ termsOfService: ou,
+ contact: {
+ $ref: "#/visitors/document/objects/Contact",
+ },
+ license: {
+ $ref: "#/visitors/document/objects/License",
+ },
+ version: su,
+ },
+ },
+ Contact: {
+ $visitor: iu,
+ fixedFields: { name: au, url: lu, email: cu },
+ },
+ License: {
+ $visitor: uu,
+ fixedFields: { name: pu, url: hu },
+ },
+ Server: {
+ $visitor: _u,
+ fixedFields: { url: ju, description: Ou, variables: Du },
+ },
+ ServerVariable: {
+ $visitor: Pu,
+ fixedFields: { enum: Nu, default: Iu, description: Tu },
+ },
+ Components: {
+ $visitor: Op,
+ fixedFields: {
+ schemas: Xh,
+ responses: nf,
+ parameters: sf,
+ examples: cf,
+ requestBodies: hf,
+ headers: gf,
+ securitySchemes: bf,
+ links: xf,
+ callbacks: jf,
+ },
+ },
+ Paths: { $visitor: zf },
+ PathItem: {
+ $visitor: Md,
+ fixedFields: {
+ $ref: Dd,
+ summary: Fd,
+ description: Ld,
+ get: { $ref: "#/visitors/document/objects/Operation" },
+ put: { $ref: "#/visitors/document/objects/Operation" },
+ post: { $ref: "#/visitors/document/objects/Operation" },
+ delete: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ options: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ head: { $ref: "#/visitors/document/objects/Operation" },
+ patch: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ trace: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ servers: qd,
+ parameters: Vd,
+ },
+ },
+ Operation: {
+ $visitor: fd,
+ fixedFields: {
+ tags: gd,
+ summary: yd,
+ description: vd,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ operationId: bd,
+ parameters: Sd,
+ requestBody: _d,
+ responses: {
+ $ref: "#/visitors/document/objects/Responses",
+ },
+ callbacks: kd,
+ deprecated: Ad,
+ security: Nd,
+ servers: Rd,
+ },
+ },
+ ExternalDocumentation: {
+ $visitor: Nf,
+ fixedFields: { description: If, url: Tf },
+ },
+ Parameter: {
+ $visitor: Ip,
+ fixedFields: {
+ name: Tp,
+ in: Rp,
+ description: Mp,
+ required: Dp,
+ deprecated: Fp,
+ allowEmptyValue: Lp,
+ style: Bp,
+ explode: $p,
+ allowReserved: qp,
+ schema: Up,
+ example: zh,
+ examples: Jh,
+ content: Gh,
+ },
+ },
+ RequestBody: {
+ $visitor: Vf,
+ fixedFields: {
+ description: Wf,
+ content: Hf,
+ required: Gf,
+ },
+ },
+ MediaType: {
+ $visitor: Fu,
+ fixedFields: {
+ schema: fp,
+ example: dp,
+ examples: vp,
+ encoding: Ep,
+ },
+ },
+ Encoding: {
+ $visitor: Rf,
+ fixedFields: {
+ contentType: Mf,
+ headers: Bf,
+ style: $f,
+ explode: qf,
+ allowReserved: Uf,
+ },
+ },
+ Responses: { $visitor: pd, fixedFields: { default: hd } },
+ Response: {
+ $visitor: Yf,
+ fixedFields: {
+ description: Xf,
+ headers: nd,
+ content: sd,
+ links: ld,
+ },
+ },
+ Callback: { $visitor: Zf },
+ Example: {
+ $visitor: Of,
+ fixedFields: {
+ summary: kf,
+ description: Af,
+ value: Cf,
+ externalValue: Pf,
+ },
+ },
+ Link: {
+ $visitor: fu,
+ fixedFields: {
+ operationRef: du,
+ operationId: mu,
+ parameters: Eu,
+ requestBody: xu,
+ description: Su,
+ server: { $ref: "#/visitors/document/objects/Server" },
+ },
+ },
+ Header: {
+ $visitor: zp,
+ fixedFields: {
+ description: Vp,
+ required: Wp,
+ deprecated: Jp,
+ allowEmptyValue: Kp,
+ style: Hp,
+ explode: Gp,
+ allowReserved: Zp,
+ schema: Yp,
+ example: Xp,
+ examples: th,
+ content: sh,
+ },
+ },
+ Tag: {
+ $visitor: kp,
+ fixedFields: {
+ name: Ap,
+ description: Cp,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ },
+ },
+ JSONReference: hm,
+ Reference: hm,
+ JSONSchema: fm,
+ Schema: fm,
+ LinkDescription:
+ lc.visitors.document.objects.LinkDescription,
+ Media: lc.visitors.document.objects.Media,
+ Discriminator: {
+ $visitor: Ih,
+ fixedFields: { propertyName: Th, mapping: Dh },
+ },
+ XML: {
+ $visitor: Fh,
+ fixedFields: {
+ name: Lh,
+ namespace: Bh,
+ prefix: $h,
+ attribute: qh,
+ wrapped: Uh,
+ },
+ },
+ SecurityScheme: {
+ $visitor: Wd,
+ fixedFields: {
+ type: Jd,
+ description: Kd,
+ name: Hd,
+ in: Gd,
+ scheme: Zd,
+ bearerFormat: Yd,
+ flows: {
+ $ref: "#/visitors/document/objects/OAuthFlows",
+ },
+ openIdConnectUrl: Xd,
+ },
+ },
+ OAuthFlows: {
+ $visitor: Qd,
+ fixedFields: {
+ implicit: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ password: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ clientCredentials: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ authorizationCode: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ },
+ },
+ OAuthFlow: {
+ $visitor: em,
+ fixedFields: {
+ authorizationUrl: tm,
+ tokenUrl: nm,
+ refreshUrl: rm,
+ scopes: im,
+ },
+ },
+ SecurityRequirement: { $visitor: xp },
+ },
+ extension: { $visitor: eu },
+ },
+ },
+ },
+ mm = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register("callback", Zi),
+ t.register("components", Xi),
+ t.register("contact", ea),
+ t.register("discriminator", na),
+ t.register("encoding", oa),
+ t.register("example", ia),
+ t.register("externalDocumentation", la),
+ t.register("header", ua),
+ t.register("info", ha),
+ t.register("license", da),
+ t.register("link", ga),
+ t.register("mediaType", va),
+ t.register("oAuthFlow", wa),
+ t.register("oAuthFlows", xa),
+ t.register("openapi", _a),
+ t.register("openApi3_0", Oa),
+ t.register("operation", Aa),
+ t.register("parameter", Pa),
+ t.register("pathItem", Ia),
+ t.register("paths", Ra),
+ t.register("reference", Da),
+ t.register("requestBody", La),
+ t.register("response", $a),
+ t.register("responses", Ua),
+ t.register("schema", wc),
+ t.register("securityRequirement", xc),
+ t.register("securityScheme", _c),
+ t.register("server", Oc),
+ t.register("serverVariable", Ac),
+ t.register("tag", Pc),
+ t.register("xml", Ic),
+ t
+ );
+ },
+ };
+ function gm(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function ym(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? gm(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : gm(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const vm = () => {
+ const e = Vs(mm);
+ return {
+ predicates: ym(ym(ym({}, a), l), {}, { isStringElement: gs }),
+ namespace: e,
+ };
+ };
+ function bm(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const wm = (
+ e,
+ {
+ specPath: t = [
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "$visitor",
+ ],
+ plugins: n = [],
+ } = {}
+ ) => {
+ const r = (0, Nt.Qc)(e),
+ o = Ya(dm),
+ s = as(t, [], o);
+ return (
+ di(r, s, { state: { specObj: o } }),
+ mi(s.element, n, {
+ toolboxCreator: vm,
+ visitorOptions: { keyMap: Fc, nodeTypeGetter: Dc },
+ })
+ );
+ },
+ Em =
+ (e) =>
+ (t, n = {}) =>
+ wm(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? bm(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : bm(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (Zi.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Callback",
+ "$visitor",
+ ])),
+ (Xi.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Components",
+ "$visitor",
+ ])),
+ (ea.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Contact",
+ "$visitor",
+ ])),
+ (ia.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Example",
+ "$visitor",
+ ])),
+ (na.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Discriminator",
+ "$visitor",
+ ])),
+ (oa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Encoding",
+ "$visitor",
+ ])),
+ (la.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "ExternalDocumentation",
+ "$visitor",
+ ])),
+ (ua.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Header",
+ "$visitor",
+ ])),
+ (ha.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Info",
+ "$visitor",
+ ])),
+ (da.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "License",
+ "$visitor",
+ ])),
+ (ga.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Link",
+ "$visitor",
+ ])),
+ (va.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "MediaType",
+ "$visitor",
+ ])),
+ (wa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "OAuthFlow",
+ "$visitor",
+ ])),
+ (xa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "OAuthFlows",
+ "$visitor",
+ ])),
+ (_a.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "fixedFields",
+ "openapi",
+ ])),
+ (Oa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "$visitor",
+ ])),
+ (Aa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Operation",
+ "$visitor",
+ ])),
+ (Pa.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Parameter",
+ "$visitor",
+ ])),
+ (Ia.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "PathItem",
+ "$visitor",
+ ])),
+ (Ra.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Paths",
+ "$visitor",
+ ])),
+ (Da.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Reference",
+ "$visitor",
+ ])),
+ (La.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "RequestBody",
+ "$visitor",
+ ])),
+ ($a.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Response",
+ "$visitor",
+ ])),
+ (Ua.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Responses",
+ "$visitor",
+ ])),
+ (wc.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Schema",
+ "$visitor",
+ ])),
+ (xc.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "SecurityRequirement",
+ "$visitor",
+ ])),
+ (_c.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "SecurityScheme",
+ "$visitor",
+ ])),
+ (Oc.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Server",
+ "$visitor",
+ ])),
+ (Ac.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "ServerVariable",
+ "$visitor",
+ ])),
+ (Pc.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "Tag",
+ "$visitor",
+ ])),
+ (Ic.refract = Em([
+ "visitors",
+ "document",
+ "objects",
+ "XML",
+ "$visitor",
+ ]));
+ const xm = class extends Zi {};
+ const Sm = class extends Xi {
+ get pathItems() {
+ return this.get("pathItems");
+ }
+ set pathItems(e) {
+ this.set("pathItems", e);
+ }
+ };
+ const _m = class extends ea {};
+ const jm = class extends na {};
+ const Om = class extends oa {};
+ const km = class extends ia {};
+ const Am = class extends la {};
+ const Cm = class extends ua {
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ };
+ const Pm = class extends ha {
+ get license() {
+ return this.get("license");
+ }
+ set license(e) {
+ this.set("license", e);
+ }
+ get summary() {
+ return this.get("summary");
+ }
+ set summary(e) {
+ this.set("summary", e);
+ }
+ };
+ class Nm extends Nt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "jsonSchemaDialect");
+ }
+ }
+ Qo(
+ Nm,
+ "default",
+ new Nm("https://spec.openapis.org/oas/3.1/dialect/base")
+ );
+ const Im = Nm;
+ const Tm = class extends da {
+ get identifier() {
+ return this.get("identifier");
+ }
+ set identifier(e) {
+ this.set("identifier", e);
+ }
+ };
+ const Rm = class extends ga {};
+ const Mm = class extends va {
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ };
+ const Dm = class extends wa {};
+ const Fm = class extends xa {};
+ const Lm = class extends _a {};
+ class Bm extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = "openApi3_1"),
+ this.classes.push("api");
+ }
+ get openapi() {
+ return this.get("openapi");
+ }
+ set openapi(e) {
+ this.set("openapi", e);
+ }
+ get info() {
+ return this.get("info");
+ }
+ set info(e) {
+ this.set("info", e);
+ }
+ get jsonSchemaDialect() {
+ return this.get("jsonSchemaDialect");
+ }
+ set jsonSchemaDialect(e) {
+ this.set("jsonSchemaDialect", e);
+ }
+ get servers() {
+ return this.get("servers");
+ }
+ set servers(e) {
+ this.set("servers", e);
+ }
+ get paths() {
+ return this.get("paths");
+ }
+ set paths(e) {
+ this.set("paths", e);
+ }
+ get components() {
+ return this.get("components");
+ }
+ set components(e) {
+ this.set("components", e);
+ }
+ get security() {
+ return this.get("security");
+ }
+ set security(e) {
+ this.set("security", e);
+ }
+ get tags() {
+ return this.get("tags");
+ }
+ set tags(e) {
+ this.set("tags", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ get webhooks() {
+ return this.get("webhooks");
+ }
+ set webhooks(e) {
+ this.set("webhooks", e);
+ }
+ }
+ const $m = Bm;
+ const qm = class extends Aa {
+ get requestBody() {
+ return this.get("requestBody");
+ }
+ set requestBody(e) {
+ this.set("requestBody", e);
+ }
+ };
+ const Um = class extends Pa {
+ get schema() {
+ return this.get("schema");
+ }
+ set schema(e) {
+ this.set("schema", e);
+ }
+ };
+ const zm = class extends Ia {
+ get GET() {
+ return this.get("get");
+ }
+ set GET(e) {
+ this.set("GET", e);
+ }
+ get PUT() {
+ return this.get("put");
+ }
+ set PUT(e) {
+ this.set("PUT", e);
+ }
+ get POST() {
+ return this.get("post");
+ }
+ set POST(e) {
+ this.set("POST", e);
+ }
+ get DELETE() {
+ return this.get("delete");
+ }
+ set DELETE(e) {
+ this.set("DELETE", e);
+ }
+ get OPTIONS() {
+ return this.get("options");
+ }
+ set OPTIONS(e) {
+ this.set("OPTIONS", e);
+ }
+ get HEAD() {
+ return this.get("head");
+ }
+ set HEAD(e) {
+ this.set("HEAD", e);
+ }
+ get PATCH() {
+ return this.get("patch");
+ }
+ set PATCH(e) {
+ this.set("PATCH", e);
+ }
+ get TRACE() {
+ return this.get("trace");
+ }
+ set TRACE(e) {
+ this.set("TRACE", e);
+ }
+ };
+ const Vm = class extends Ra {};
+ class Wm extends Da {}
+ Object.defineProperty(Wm.prototype, "description", {
+ get() {
+ return this.get("description");
+ },
+ set(e) {
+ this.set("description", e);
+ },
+ enumerable: !0,
+ }),
+ Object.defineProperty(Wm.prototype, "summary", {
+ get() {
+ return this.get("summary");
+ },
+ set(e) {
+ this.set("summary", e);
+ },
+ enumerable: !0,
+ });
+ const Jm = Wm;
+ const Km = class extends La {};
+ const Hm = class extends $a {};
+ const Gm = class extends Ua {};
+ class Zm extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = "schema");
+ }
+ get $schema() {
+ return this.get("$schema");
+ }
+ set $schema(e) {
+ this.set("$schema", e);
+ }
+ get $vocabulary() {
+ return this.get("$vocabulary");
+ }
+ set $vocabulary(e) {
+ this.set("$vocabulary", e);
+ }
+ get $id() {
+ return this.get("$id");
+ }
+ set $id(e) {
+ this.set("$id", e);
+ }
+ get $anchor() {
+ return this.get("$anchor");
+ }
+ set $anchor(e) {
+ this.set("$anchor", e);
+ }
+ get $dynamicAnchor() {
+ return this.get("$dynamicAnchor");
+ }
+ set $dynamicAnchor(e) {
+ this.set("$dynamicAnchor", e);
+ }
+ get $dynamicRef() {
+ return this.get("$dynamicRef");
+ }
+ set $dynamicRef(e) {
+ this.set("$dynamicRef", e);
+ }
+ get $ref() {
+ return this.get("$ref");
+ }
+ set $ref(e) {
+ this.set("$ref", e);
+ }
+ get $defs() {
+ return this.get("$defs");
+ }
+ set $defs(e) {
+ this.set("$defs", e);
+ }
+ get $comment() {
+ return this.get("$comment");
+ }
+ set $comment(e) {
+ this.set("$comment", e);
+ }
+ get allOf() {
+ return this.get("allOf");
+ }
+ set allOf(e) {
+ this.set("allOf", e);
+ }
+ get anyOf() {
+ return this.get("anyOf");
+ }
+ set anyOf(e) {
+ this.set("anyOf", e);
+ }
+ get oneOf() {
+ return this.get("oneOf");
+ }
+ set oneOf(e) {
+ this.set("oneOf", e);
+ }
+ get not() {
+ return this.get("not");
+ }
+ set not(e) {
+ this.set("not", e);
+ }
+ get if() {
+ return this.get("if");
+ }
+ set if(e) {
+ this.set("if", e);
+ }
+ get then() {
+ return this.get("then");
+ }
+ set then(e) {
+ this.set("then", e);
+ }
+ get else() {
+ return this.get("else");
+ }
+ set else(e) {
+ this.set("else", e);
+ }
+ get dependentSchemas() {
+ return this.get("dependentSchemas");
+ }
+ set dependentSchemas(e) {
+ this.set("dependentSchemas", e);
+ }
+ get prefixItems() {
+ return this.get("prefixItems");
+ }
+ set prefixItems(e) {
+ this.set("prefixItems", e);
+ }
+ get items() {
+ return this.get("items");
+ }
+ set items(e) {
+ this.set("items", e);
+ }
+ get containsProp() {
+ return this.get("contains");
+ }
+ set containsProp(e) {
+ this.set("contains", e);
+ }
+ get properties() {
+ return this.get("properties");
+ }
+ set properties(e) {
+ this.set("properties", e);
+ }
+ get patternProperties() {
+ return this.get("patternProperties");
+ }
+ set patternProperties(e) {
+ this.set("patternProperties", e);
+ }
+ get additionalProperties() {
+ return this.get("additionalProperties");
+ }
+ set additionalProperties(e) {
+ this.set("additionalProperties", e);
+ }
+ get propertyNames() {
+ return this.get("propertyNames");
+ }
+ set propertyNames(e) {
+ this.set("propertyNames", e);
+ }
+ get unevaluatedItems() {
+ return this.get("unevaluatedItems");
+ }
+ set unevaluatedItems(e) {
+ this.set("unevaluatedItems", e);
+ }
+ get unevaluatedProperties() {
+ return this.get("unevaluatedProperties");
+ }
+ set unevaluatedProperties(e) {
+ this.set("unevaluatedProperties", e);
+ }
+ get type() {
+ return this.get("type");
+ }
+ set type(e) {
+ this.set("type", e);
+ }
+ get enum() {
+ return this.get("enum");
+ }
+ set enum(e) {
+ this.set("enum", e);
+ }
+ get const() {
+ return this.get("const");
+ }
+ set const(e) {
+ this.set("const", e);
+ }
+ get multipleOf() {
+ return this.get("multipleOf");
+ }
+ set multipleOf(e) {
+ this.set("multipleOf", e);
+ }
+ get maximum() {
+ return this.get("maximum");
+ }
+ set maximum(e) {
+ this.set("maximum", e);
+ }
+ get exclusiveMaximum() {
+ return this.get("exclusiveMaximum");
+ }
+ set exclusiveMaximum(e) {
+ this.set("exclusiveMaximum", e);
+ }
+ get minimum() {
+ return this.get("minimum");
+ }
+ set minimum(e) {
+ this.set("minimum", e);
+ }
+ get exclusiveMinimum() {
+ return this.get("exclusiveMinimum");
+ }
+ set exclusiveMinimum(e) {
+ this.set("exclusiveMinimum", e);
+ }
+ get maxLength() {
+ return this.get("maxLength");
+ }
+ set maxLength(e) {
+ this.set("maxLength", e);
+ }
+ get minLength() {
+ return this.get("minLength");
+ }
+ set minLength(e) {
+ this.set("minLength", e);
+ }
+ get pattern() {
+ return this.get("pattern");
+ }
+ set pattern(e) {
+ this.set("pattern", e);
+ }
+ get maxItems() {
+ return this.get("maxItems");
+ }
+ set maxItems(e) {
+ this.set("maxItems", e);
+ }
+ get minItems() {
+ return this.get("minItems");
+ }
+ set minItems(e) {
+ this.set("minItems", e);
+ }
+ get uniqueItems() {
+ return this.get("uniqueItems");
+ }
+ set uniqueItems(e) {
+ this.set("uniqueItems", e);
+ }
+ get maxContains() {
+ return this.get("maxContains");
+ }
+ set maxContains(e) {
+ this.set("maxContains", e);
+ }
+ get minContains() {
+ return this.get("minContains");
+ }
+ set minContains(e) {
+ this.set("minContains", e);
+ }
+ get maxProperties() {
+ return this.get("maxProperties");
+ }
+ set maxProperties(e) {
+ this.set("maxProperties", e);
+ }
+ get minProperties() {
+ return this.get("minProperties");
+ }
+ set minProperties(e) {
+ this.set("minProperties", e);
+ }
+ get required() {
+ return this.get("required");
+ }
+ set required(e) {
+ this.set("required", e);
+ }
+ get dependentRequired() {
+ return this.get("dependentRequired");
+ }
+ set dependentRequired(e) {
+ this.set("dependentRequired", e);
+ }
+ get title() {
+ return this.get("title");
+ }
+ set title(e) {
+ this.set("title", e);
+ }
+ get description() {
+ return this.get("description");
+ }
+ set description(e) {
+ this.set("description", e);
+ }
+ get default() {
+ return this.get("default");
+ }
+ set default(e) {
+ this.set("default", e);
+ }
+ get deprecated() {
+ return this.get("deprecated");
+ }
+ set deprecated(e) {
+ this.set("deprecated", e);
+ }
+ get readOnly() {
+ return this.get("readOnly");
+ }
+ set readOnly(e) {
+ this.set("readOnly", e);
+ }
+ get writeOnly() {
+ return this.get("writeOnly");
+ }
+ set writeOnly(e) {
+ this.set("writeOnly", e);
+ }
+ get examples() {
+ return this.get("examples");
+ }
+ set examples(e) {
+ this.set("examples", e);
+ }
+ get format() {
+ return this.get("format");
+ }
+ set format(e) {
+ this.set("format", e);
+ }
+ get contentEncoding() {
+ return this.get("contentEncoding");
+ }
+ set contentEncoding(e) {
+ this.set("contentEncoding", e);
+ }
+ get contentMediaType() {
+ return this.get("contentMediaType");
+ }
+ set contentMediaType(e) {
+ this.set("contentMediaType", e);
+ }
+ get contentSchema() {
+ return this.get("contentSchema");
+ }
+ set contentSchema(e) {
+ this.set("contentSchema", e);
+ }
+ get discriminator() {
+ return this.get("discriminator");
+ }
+ set discriminator(e) {
+ this.set("discriminator", e);
+ }
+ get xml() {
+ return this.get("xml");
+ }
+ set xml(e) {
+ this.set("xml", e);
+ }
+ get externalDocs() {
+ return this.get("externalDocs");
+ }
+ set externalDocs(e) {
+ this.set("externalDocs", e);
+ }
+ get example() {
+ return this.get("example");
+ }
+ set example(e) {
+ this.set("example", e);
+ }
+ }
+ const Ym = Zm;
+ const Xm = class extends xc {};
+ const Qm = class extends _c {};
+ const eg = class extends Oc {};
+ const tg = class extends Ac {};
+ const ng = class extends Pc {};
+ const rg = class extends Ic {},
+ og = Xs(Zc, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "OpenApi"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ (this.element = new $m()),
+ (this.openApiSemanticElement = this.element);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ (this.openApiGenericElement = e),
+ Zc.compose.methods.ObjectElement.call(this, e)
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Info: { $visitor: sg },
+ },
+ },
+ },
+ } = dm,
+ ig = Xs(sg, {
+ init() {
+ this.element = new Pm();
+ },
+ }),
+ ag = Yc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Contact: { $visitor: lg },
+ },
+ },
+ },
+ } = dm,
+ cg = Xs(lg, {
+ init() {
+ this.element = new _m();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ License: { $visitor: ug },
+ },
+ },
+ },
+ } = dm,
+ pg = Xs(ug, {
+ init() {
+ this.element = new Tm();
+ },
+ }),
+ hg = Yc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Link: { $visitor: fg },
+ },
+ },
+ },
+ } = dm,
+ dg = Xs(fg, {
+ init() {
+ this.element = new Rm();
+ },
+ }),
+ mg = Xs($c, Yc, {
+ methods: {
+ StringElement(e) {
+ const t = new Im(e.toValue());
+ return (
+ this.copyMetaAndAttributes(e, t), (this.element = t), ti
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Server: { $visitor: gg },
+ },
+ },
+ },
+ } = dm,
+ yg = Xs(gg, {
+ init() {
+ this.element = new eg();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ ServerVariable: { $visitor: vg },
+ },
+ },
+ },
+ } = dm,
+ bg = Xs(vg, {
+ init() {
+ this.element = new tg();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ MediaType: { $visitor: wg },
+ },
+ },
+ },
+ } = dm,
+ Eg = Xs(wg, {
+ init() {
+ this.element = new Mm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ SecurityRequirement: { $visitor: xg },
+ },
+ },
+ },
+ } = dm,
+ Sg = Xs(xg, {
+ init() {
+ this.element = new Xm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Components: { $visitor: _g },
+ },
+ },
+ },
+ } = dm,
+ jg = Xs(_g, {
+ init() {
+ this.element = new Sm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Tag: { $visitor: Og },
+ },
+ },
+ },
+ } = dm,
+ kg = Xs(Og, {
+ init() {
+ this.element = new ng();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Reference: { $visitor: Ag },
+ },
+ },
+ },
+ } = dm,
+ Cg = Xs(Ag, {
+ init() {
+ this.element = new Jm();
+ },
+ }),
+ Pg = Yc,
+ Ng = Yc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Parameter: { $visitor: Ig },
+ },
+ },
+ },
+ } = dm,
+ Tg = Xs(Ig, {
+ init() {
+ this.element = new Um();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Header: { $visitor: Rg },
+ },
+ },
+ },
+ } = dm,
+ Mg = Xs(Rg, {
+ init() {
+ this.element = new Cm();
+ },
+ }),
+ Dg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof xm ||
+ (e(r) && t("callback", r) && n("object", r))
+ ),
+ Fg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Sm ||
+ (e(r) && t("components", r) && n("object", r))
+ ),
+ Lg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof _m || (e(r) && t("contact", r) && n("object", r))
+ ),
+ Bg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof km || (e(r) && t("example", r) && n("object", r))
+ ),
+ $g = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Am ||
+ (e(r) && t("externalDocumentation", r) && n("object", r))
+ ),
+ qg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Cm || (e(r) && t("header", r) && n("object", r))
+ ),
+ Ug = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pm || (e(r) && t("info", r) && n("object", r))
+ ),
+ zg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Im ||
+ (e(r) && t("jsonSchemaDialect", r) && n("string", r))
+ ),
+ Vg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Tm || (e(r) && t("license", r) && n("object", r))
+ ),
+ Wg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Rm || (e(r) && t("link", r) && n("object", r))
+ ),
+ Jg = (e) => {
+ if (!Wg(e)) return !1;
+ if (!gs(e.operationRef)) return !1;
+ const t = e.operationRef.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ Kg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Lm || (e(r) && t("openapi", r) && n("string", r))
+ ),
+ Hg = ds(
+ ({
+ hasBasicElementProps: e,
+ isElementType: t,
+ primitiveEq: n,
+ hasClass: r,
+ }) =>
+ (o) =>
+ o instanceof $m ||
+ (e(o) && t("openApi3_1", o) && n("object", o) && r("api", o))
+ ),
+ Gg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof qm ||
+ (e(r) && t("operation", r) && n("object", r))
+ ),
+ Zg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Um ||
+ (e(r) && t("parameter", r) && n("object", r))
+ ),
+ Yg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof zm ||
+ (e(r) && t("pathItem", r) && n("object", r))
+ ),
+ Xg = (e) => {
+ if (!Yg(e)) return !1;
+ if (!gs(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ Qg = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Vm || (e(r) && t("paths", r) && n("object", r))
+ ),
+ ey = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Jm ||
+ (e(r) && t("reference", r) && n("object", r))
+ ),
+ ty = (e) => {
+ if (!ey(e)) return !1;
+ if (!gs(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return "string" == typeof t && t.length > 0 && !t.startsWith("#");
+ },
+ ny = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Km ||
+ (e(r) && t("requestBody", r) && n("object", r))
+ ),
+ ry = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Hm ||
+ (e(r) && t("response", r) && n("object", r))
+ ),
+ oy = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Gm ||
+ (e(r) && t("responses", r) && n("object", r))
+ ),
+ sy = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ym || (e(r) && t("schema", r) && n("object", r))
+ ),
+ iy = (e) => bs(e) && e.classes.includes("boolean-json-schema"),
+ ay = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Xm ||
+ (e(r) && t("securityRequirement", r) && n("object", r))
+ ),
+ ly = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof eg || (e(r) && t("server", r) && n("object", r))
+ ),
+ cy = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof tg ||
+ (e(r) && t("serverVariable", r) && n("object", r))
+ ),
+ uy = ds(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Mm ||
+ (e(r) && t("mediaType", r) && n("object", r))
+ ),
+ py = Xs({
+ props: { parent: null },
+ init({ parent: e = this.parent }) {
+ (this.parent = e),
+ (this.passingOptionsNames = [
+ ...this.passingOptionsNames,
+ "parent",
+ ]);
+ },
+ }),
+ hy = Xs(Zc, py, Yc, {
+ props: {
+ specPath: Gn(["document", "objects", "Schema"]),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ const e = () => {
+ let e;
+ return (
+ (e =
+ null !== this.openApiSemanticElement &&
+ zg(this.openApiSemanticElement.jsonSchemaDialect)
+ ? this.openApiSemanticElement.jsonSchemaDialect.toValue()
+ : null !== this.openApiGenericElement &&
+ gs(
+ this.openApiGenericElement.get(
+ "jsonSchemaDialect"
+ )
+ )
+ ? this.openApiGenericElement
+ .get("jsonSchemaDialect")
+ .toValue()
+ : Im.default.toValue()),
+ e
+ );
+ },
+ t = (t) => {
+ if (Ts(this.parent) && !gs(t.get("$schema")))
+ this.element.setMetaProperty("inherited$schema", e());
+ else if (sy(this.parent) && !gs(t.get("$schema"))) {
+ var n, r;
+ const e = Ar(
+ null ===
+ (n = this.parent.meta.get("inherited$schema")) ||
+ void 0 === n
+ ? void 0
+ : n.toValue(),
+ null === (r = this.parent.$schema) || void 0 === r
+ ? void 0
+ : r.toValue()
+ );
+ this.element.setMetaProperty("inherited$schema", e);
+ }
+ },
+ n = (e) => {
+ var t;
+ const n =
+ null !== this.parent
+ ? this.parent
+ .getMetaProperty("inherited$id", [])
+ .clone()
+ : new Nt.ON(),
+ r =
+ null === (t = e.get("$id")) || void 0 === t
+ ? void 0
+ : t.toValue();
+ Il(r) && n.push(r),
+ this.element.setMetaProperty("inherited$id", n);
+ };
+ (this.ObjectElement = function (e) {
+ (this.element = new Ym()),
+ t(e),
+ n(e),
+ (this.parent = this.element);
+ const r = Zc.compose.methods.ObjectElement.call(this, e);
+ return (
+ gs(this.element.$ref) &&
+ (this.element.classes.push("reference-element"),
+ this.element.setMetaProperty(
+ "referenced-element",
+ "schema"
+ )),
+ r
+ );
+ }),
+ (this.BooleanElement = function (e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("boolean-json-schema"),
+ ti
+ );
+ });
+ },
+ }),
+ fy = Yc,
+ dy = Xs(Yc, {
+ methods: {
+ ObjectElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-$vocabulary"),
+ ti
+ );
+ },
+ },
+ }),
+ my = Yc,
+ gy = Yc,
+ yy = Yc,
+ vy = Yc,
+ by = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("reference-value"),
+ ti
+ );
+ },
+ },
+ }),
+ wy = Xs(vu, py, Yc, {
+ props: { specPath: Gn(["document", "objects", "Schema"]) },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-$defs");
+ },
+ }),
+ Ey = Yc,
+ xy = Xs($c, py, Yc, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-allOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (ws(e)) {
+ const t = this.toRefractedElement(
+ ["document", "objects", "Schema"],
+ e
+ );
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ Sy = Xs($c, py, Yc, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-anyOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (ws(e)) {
+ const t = this.toRefractedElement(
+ ["document", "objects", "Schema"],
+ e
+ );
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ _y = Xs($c, py, Yc, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-oneOf");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (ws(e)) {
+ const t = this.toRefractedElement(
+ ["document", "objects", "Schema"],
+ e
+ );
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ jy = Xs(vu, py, Yc, {
+ props: { specPath: Gn(["document", "objects", "Schema"]) },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-dependentSchemas");
+ },
+ }),
+ Oy = Xs($c, py, Yc, {
+ init() {
+ (this.element = new Nt.ON()),
+ this.element.classes.push("json-schema-prefixItems");
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (ws(e)) {
+ const t = this.toRefractedElement(
+ ["document", "objects", "Schema"],
+ e
+ );
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ti
+ );
+ },
+ },
+ }),
+ ky = Xs(vu, py, Yc, {
+ props: { specPath: Gn(["document", "objects", "Schema"]) },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-properties");
+ },
+ }),
+ Ay = Xs(vu, py, Yc, {
+ props: { specPath: Gn(["document", "objects", "Schema"]) },
+ init() {
+ (this.element = new Nt.Sb()),
+ this.element.classes.push("json-schema-patternProperties");
+ },
+ }),
+ Cy = Xs(Yc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-type"),
+ ti
+ );
+ },
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-type"),
+ ti
+ );
+ },
+ },
+ }),
+ Py = Xs(Yc, {
+ methods: {
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-enum"),
+ ti
+ );
+ },
+ },
+ }),
+ Ny = Yc,
+ Iy = Yc,
+ Ty = Yc,
+ Ry = Yc,
+ My = Yc,
+ Dy = Yc,
+ Fy = Yc,
+ Ly = Yc,
+ By = Yc,
+ $y = Yc,
+ qy = Yc,
+ Uy = Yc,
+ zy = Yc,
+ Vy = Yc,
+ Wy = Yc,
+ Jy = Yc,
+ Ky = Xs(Yc, {
+ methods: {
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-required"),
+ ti
+ );
+ },
+ },
+ }),
+ Hy = Xs(Yc, {
+ methods: {
+ ObjectElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-dependentRequired"),
+ ti
+ );
+ },
+ },
+ }),
+ Gy = Yc,
+ Zy = Yc,
+ Yy = Yc,
+ Xy = Yc,
+ Qy = Yc,
+ ev = Yc,
+ tv = Xs(Yc, {
+ methods: {
+ ArrayElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push("json-schema-examples"),
+ ti
+ );
+ },
+ },
+ }),
+ nv = Yc,
+ rv = Yc,
+ ov = Yc,
+ sv = Yc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Discriminator: { $visitor: iv },
+ },
+ },
+ },
+ } = dm,
+ av = Xs(iv, {
+ props: { canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new jm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ XML: { $visitor: lv },
+ },
+ },
+ },
+ } = dm,
+ cv = Xs(lv, {
+ init() {
+ this.element = new rg();
+ },
+ }),
+ uv = Xs(vu, Yc, {
+ props: { specPath: Gn(["document", "objects", "Schema"]) },
+ init() {
+ this.element = new Yh();
+ },
+ });
+ class pv extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(pv.primaryClass);
+ }
+ }
+ Qo(pv, "primaryClass", "components-path-items");
+ const hv = pv,
+ fv = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "PathItem"],
+ },
+ init() {
+ this.element = new hv();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(ey).forEach((e) => {
+ e.setMetaProperty("referenced-element", "pathItem");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Example: { $visitor: dv },
+ },
+ },
+ },
+ } = dm,
+ mv = Xs(dv, {
+ init() {
+ this.element = new km();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ ExternalDocumentation: { $visitor: gv },
+ },
+ },
+ },
+ } = dm,
+ yv = Xs(gv, {
+ init() {
+ this.element = new Am();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Encoding: { $visitor: vv },
+ },
+ },
+ },
+ } = dm,
+ bv = Xs(vv, {
+ init() {
+ this.element = new Om();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Paths: { $visitor: wv },
+ },
+ },
+ },
+ } = dm,
+ Ev = Xs(wv, {
+ init() {
+ this.element = new Vm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ RequestBody: { $visitor: xv },
+ },
+ },
+ },
+ } = dm,
+ Sv = Xs(xv, {
+ init() {
+ this.element = new Km();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Callback: { $visitor: _v },
+ },
+ },
+ },
+ } = dm,
+ jv = Xs(_v, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "PathItem"],
+ },
+ init() {
+ this.element = new xm();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = _v.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(ey).forEach((e) => {
+ e.setMetaProperty("referenced-element", "pathItem");
+ }),
+ t
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Response: { $visitor: Ov },
+ },
+ },
+ },
+ } = dm,
+ kv = Xs(Ov, {
+ init() {
+ this.element = new Hm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Responses: { $visitor: Av },
+ },
+ },
+ },
+ } = dm,
+ Cv = Xs(Av, {
+ init() {
+ this.element = new Gm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Operation: { $visitor: Pv },
+ },
+ },
+ },
+ } = dm,
+ Nv = Xs(Pv, {
+ init() {
+ this.element = new qm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ PathItem: { $visitor: Iv },
+ },
+ },
+ },
+ } = dm,
+ Tv = Xs(Iv, {
+ init() {
+ this.element = new zm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ SecurityScheme: { $visitor: Rv },
+ },
+ },
+ },
+ } = dm,
+ Mv = Xs(Rv, {
+ init() {
+ this.element = new Qm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ OAuthFlows: { $visitor: Dv },
+ },
+ },
+ },
+ } = dm,
+ Fv = Xs(Dv, {
+ init() {
+ this.element = new Fm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ OAuthFlow: { $visitor: Lv },
+ },
+ },
+ },
+ } = dm,
+ Bv = Xs(Lv, {
+ init() {
+ this.element = new Dm();
+ },
+ });
+ class $v extends Nt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push($v.primaryClass);
+ }
+ }
+ Qo($v, "primaryClass", "webhooks");
+ const qv = $v,
+ Uv = Xs(vu, Yc, {
+ props: {
+ specPath: (e) =>
+ zc(e)
+ ? ["document", "objects", "Reference"]
+ : ["document", "objects", "PathItem"],
+ },
+ init() {
+ this.element = new qv();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = vu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(ey).forEach((e) => {
+ e.setMetaProperty("referenced-element", "pathItem");
+ }),
+ this.element.filter(Yg).forEach((e, t) => {
+ e.setMetaProperty("webhook-name", t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ zv = {
+ visitors: {
+ value: dm.visitors.value,
+ document: {
+ objects: {
+ OpenApi: {
+ $visitor: og,
+ fixedFields: {
+ openapi:
+ dm.visitors.document.objects.OpenApi.fixedFields
+ .openapi,
+ info: { $ref: "#/visitors/document/objects/Info" },
+ jsonSchemaDialect: mg,
+ servers:
+ dm.visitors.document.objects.OpenApi.fixedFields
+ .servers,
+ paths: { $ref: "#/visitors/document/objects/Paths" },
+ webhooks: Uv,
+ components: {
+ $ref: "#/visitors/document/objects/Components",
+ },
+ security:
+ dm.visitors.document.objects.OpenApi.fixedFields
+ .security,
+ tags: dm.visitors.document.objects.OpenApi.fixedFields
+ .tags,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ },
+ },
+ Info: {
+ $visitor: ig,
+ fixedFields: {
+ title:
+ dm.visitors.document.objects.Info.fixedFields.title,
+ description:
+ dm.visitors.document.objects.Info.fixedFields
+ .description,
+ summary: ag,
+ termsOfService:
+ dm.visitors.document.objects.Info.fixedFields
+ .termsOfService,
+ contact: {
+ $ref: "#/visitors/document/objects/Contact",
+ },
+ license: {
+ $ref: "#/visitors/document/objects/License",
+ },
+ version:
+ dm.visitors.document.objects.Info.fixedFields.version,
+ },
+ },
+ Contact: {
+ $visitor: cg,
+ fixedFields: {
+ name: dm.visitors.document.objects.Contact.fixedFields
+ .name,
+ url: dm.visitors.document.objects.Contact.fixedFields
+ .url,
+ email:
+ dm.visitors.document.objects.Contact.fixedFields
+ .email,
+ },
+ },
+ License: {
+ $visitor: pg,
+ fixedFields: {
+ name: dm.visitors.document.objects.License.fixedFields
+ .name,
+ identifier: hg,
+ url: dm.visitors.document.objects.License.fixedFields
+ .url,
+ },
+ },
+ Server: {
+ $visitor: yg,
+ fixedFields: {
+ url: dm.visitors.document.objects.Server.fixedFields
+ .url,
+ description:
+ dm.visitors.document.objects.Server.fixedFields
+ .description,
+ variables:
+ dm.visitors.document.objects.Server.fixedFields
+ .variables,
+ },
+ },
+ ServerVariable: {
+ $visitor: bg,
+ fixedFields: {
+ enum: dm.visitors.document.objects.ServerVariable
+ .fixedFields.enum,
+ default:
+ dm.visitors.document.objects.ServerVariable
+ .fixedFields.default,
+ description:
+ dm.visitors.document.objects.ServerVariable
+ .fixedFields.description,
+ },
+ },
+ Components: {
+ $visitor: jg,
+ fixedFields: {
+ schemas: uv,
+ responses:
+ dm.visitors.document.objects.Components.fixedFields
+ .responses,
+ parameters:
+ dm.visitors.document.objects.Components.fixedFields
+ .parameters,
+ examples:
+ dm.visitors.document.objects.Components.fixedFields
+ .examples,
+ requestBodies:
+ dm.visitors.document.objects.Components.fixedFields
+ .requestBodies,
+ headers:
+ dm.visitors.document.objects.Components.fixedFields
+ .headers,
+ securitySchemes:
+ dm.visitors.document.objects.Components.fixedFields
+ .securitySchemes,
+ links:
+ dm.visitors.document.objects.Components.fixedFields
+ .links,
+ callbacks:
+ dm.visitors.document.objects.Components.fixedFields
+ .callbacks,
+ pathItems: fv,
+ },
+ },
+ Paths: { $visitor: Ev },
+ PathItem: {
+ $visitor: Tv,
+ fixedFields: {
+ $ref: dm.visitors.document.objects.PathItem.fixedFields
+ .$ref,
+ summary:
+ dm.visitors.document.objects.PathItem.fixedFields
+ .summary,
+ description:
+ dm.visitors.document.objects.PathItem.fixedFields
+ .description,
+ get: { $ref: "#/visitors/document/objects/Operation" },
+ put: { $ref: "#/visitors/document/objects/Operation" },
+ post: { $ref: "#/visitors/document/objects/Operation" },
+ delete: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ options: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ head: { $ref: "#/visitors/document/objects/Operation" },
+ patch: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ trace: {
+ $ref: "#/visitors/document/objects/Operation",
+ },
+ servers:
+ dm.visitors.document.objects.PathItem.fixedFields
+ .servers,
+ parameters:
+ dm.visitors.document.objects.PathItem.fixedFields
+ .parameters,
+ },
+ },
+ Operation: {
+ $visitor: Nv,
+ fixedFields: {
+ tags: dm.visitors.document.objects.Operation.fixedFields
+ .tags,
+ summary:
+ dm.visitors.document.objects.Operation.fixedFields
+ .summary,
+ description:
+ dm.visitors.document.objects.Operation.fixedFields
+ .description,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ operationId:
+ dm.visitors.document.objects.Operation.fixedFields
+ .operationId,
+ parameters:
+ dm.visitors.document.objects.Operation.fixedFields
+ .parameters,
+ requestBody:
+ dm.visitors.document.objects.Operation.fixedFields
+ .requestBody,
+ responses: {
+ $ref: "#/visitors/document/objects/Responses",
+ },
+ callbacks:
+ dm.visitors.document.objects.Operation.fixedFields
+ .callbacks,
+ deprecated:
+ dm.visitors.document.objects.Operation.fixedFields
+ .deprecated,
+ security:
+ dm.visitors.document.objects.Operation.fixedFields
+ .security,
+ servers:
+ dm.visitors.document.objects.Operation.fixedFields
+ .servers,
+ },
+ },
+ ExternalDocumentation: {
+ $visitor: yv,
+ fixedFields: {
+ description:
+ dm.visitors.document.objects.ExternalDocumentation
+ .fixedFields.description,
+ url: dm.visitors.document.objects.ExternalDocumentation
+ .fixedFields.url,
+ },
+ },
+ Parameter: {
+ $visitor: Tg,
+ fixedFields: {
+ name: dm.visitors.document.objects.Parameter.fixedFields
+ .name,
+ in: dm.visitors.document.objects.Parameter.fixedFields
+ .in,
+ description:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .description,
+ required:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .required,
+ deprecated:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .deprecated,
+ allowEmptyValue:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .allowEmptyValue,
+ style:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .style,
+ explode:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .explode,
+ allowReserved:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .allowReserved,
+ schema: { $ref: "#/visitors/document/objects/Schema" },
+ example:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .example,
+ examples:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .examples,
+ content:
+ dm.visitors.document.objects.Parameter.fixedFields
+ .content,
+ },
+ },
+ RequestBody: {
+ $visitor: Sv,
+ fixedFields: {
+ description:
+ dm.visitors.document.objects.RequestBody.fixedFields
+ .description,
+ content:
+ dm.visitors.document.objects.RequestBody.fixedFields
+ .content,
+ required:
+ dm.visitors.document.objects.RequestBody.fixedFields
+ .required,
+ },
+ },
+ MediaType: {
+ $visitor: Eg,
+ fixedFields: {
+ schema: { $ref: "#/visitors/document/objects/Schema" },
+ example:
+ dm.visitors.document.objects.MediaType.fixedFields
+ .example,
+ examples:
+ dm.visitors.document.objects.MediaType.fixedFields
+ .examples,
+ encoding:
+ dm.visitors.document.objects.MediaType.fixedFields
+ .encoding,
+ },
+ },
+ Encoding: {
+ $visitor: bv,
+ fixedFields: {
+ contentType:
+ dm.visitors.document.objects.Encoding.fixedFields
+ .contentType,
+ headers:
+ dm.visitors.document.objects.Encoding.fixedFields
+ .headers,
+ style:
+ dm.visitors.document.objects.Encoding.fixedFields
+ .style,
+ explode:
+ dm.visitors.document.objects.Encoding.fixedFields
+ .explode,
+ allowReserved:
+ dm.visitors.document.objects.Encoding.fixedFields
+ .allowReserved,
+ },
+ },
+ Responses: {
+ $visitor: Cv,
+ fixedFields: {
+ default:
+ dm.visitors.document.objects.Responses.fixedFields
+ .default,
+ },
+ },
+ Response: {
+ $visitor: kv,
+ fixedFields: {
+ description:
+ dm.visitors.document.objects.Response.fixedFields
+ .description,
+ headers:
+ dm.visitors.document.objects.Response.fixedFields
+ .headers,
+ content:
+ dm.visitors.document.objects.Response.fixedFields
+ .content,
+ links:
+ dm.visitors.document.objects.Response.fixedFields
+ .links,
+ },
+ },
+ Callback: { $visitor: jv },
+ Example: {
+ $visitor: mv,
+ fixedFields: {
+ summary:
+ dm.visitors.document.objects.Example.fixedFields
+ .summary,
+ description:
+ dm.visitors.document.objects.Example.fixedFields
+ .description,
+ value:
+ dm.visitors.document.objects.Example.fixedFields
+ .value,
+ externalValue:
+ dm.visitors.document.objects.Example.fixedFields
+ .externalValue,
+ },
+ },
+ Link: {
+ $visitor: dg,
+ fixedFields: {
+ operationRef:
+ dm.visitors.document.objects.Link.fixedFields
+ .operationRef,
+ operationId:
+ dm.visitors.document.objects.Link.fixedFields
+ .operationId,
+ parameters:
+ dm.visitors.document.objects.Link.fixedFields
+ .parameters,
+ requestBody:
+ dm.visitors.document.objects.Link.fixedFields
+ .requestBody,
+ description:
+ dm.visitors.document.objects.Link.fixedFields
+ .description,
+ server: { $ref: "#/visitors/document/objects/Server" },
+ },
+ },
+ Header: {
+ $visitor: Mg,
+ fixedFields: {
+ description:
+ dm.visitors.document.objects.Header.fixedFields
+ .description,
+ required:
+ dm.visitors.document.objects.Header.fixedFields
+ .required,
+ deprecated:
+ dm.visitors.document.objects.Header.fixedFields
+ .deprecated,
+ allowEmptyValue:
+ dm.visitors.document.objects.Header.fixedFields
+ .allowEmptyValue,
+ style:
+ dm.visitors.document.objects.Header.fixedFields.style,
+ explode:
+ dm.visitors.document.objects.Header.fixedFields
+ .explode,
+ allowReserved:
+ dm.visitors.document.objects.Header.fixedFields
+ .allowReserved,
+ schema: { $ref: "#/visitors/document/objects/Schema" },
+ example:
+ dm.visitors.document.objects.Header.fixedFields
+ .example,
+ examples:
+ dm.visitors.document.objects.Header.fixedFields
+ .examples,
+ content:
+ dm.visitors.document.objects.Header.fixedFields
+ .content,
+ },
+ },
+ Tag: {
+ $visitor: kg,
+ fixedFields: {
+ name: dm.visitors.document.objects.Tag.fixedFields.name,
+ description:
+ dm.visitors.document.objects.Tag.fixedFields
+ .description,
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ },
+ },
+ Reference: {
+ $visitor: Cg,
+ fixedFields: {
+ $ref: dm.visitors.document.objects.Reference.fixedFields
+ .$ref,
+ summary: Pg,
+ description: Ng,
+ },
+ },
+ Schema: {
+ $visitor: hy,
+ fixedFields: {
+ $schema: fy,
+ $vocabulary: dy,
+ $id: my,
+ $anchor: gy,
+ $dynamicAnchor: yy,
+ $dynamicRef: vy,
+ $ref: by,
+ $defs: wy,
+ $comment: Ey,
+ allOf: xy,
+ anyOf: Sy,
+ oneOf: _y,
+ not: { $ref: "#/visitors/document/objects/Schema" },
+ if: { $ref: "#/visitors/document/objects/Schema" },
+ then: { $ref: "#/visitors/document/objects/Schema" },
+ else: { $ref: "#/visitors/document/objects/Schema" },
+ dependentSchemas: jy,
+ prefixItems: Oy,
+ items: { $ref: "#/visitors/document/objects/Schema" },
+ contains: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ properties: ky,
+ patternProperties: Ay,
+ additionalProperties: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ propertyNames: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ unevaluatedItems: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ unevaluatedProperties: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ type: Cy,
+ enum: Py,
+ const: Ny,
+ multipleOf: Iy,
+ maximum: Ty,
+ exclusiveMaximum: Ry,
+ minimum: My,
+ exclusiveMinimum: Dy,
+ maxLength: Fy,
+ minLength: Ly,
+ pattern: By,
+ maxItems: $y,
+ minItems: qy,
+ uniqueItems: Uy,
+ maxContains: zy,
+ minContains: Vy,
+ maxProperties: Wy,
+ minProperties: Jy,
+ required: Ky,
+ dependentRequired: Hy,
+ title: Gy,
+ description: Zy,
+ default: Yy,
+ deprecated: Xy,
+ readOnly: Qy,
+ writeOnly: ev,
+ examples: tv,
+ format: nv,
+ contentEncoding: rv,
+ contentMediaType: ov,
+ contentSchema: {
+ $ref: "#/visitors/document/objects/Schema",
+ },
+ discriminator: {
+ $ref: "#/visitors/document/objects/Discriminator",
+ },
+ xml: { $ref: "#/visitors/document/objects/XML" },
+ externalDocs: {
+ $ref: "#/visitors/document/objects/ExternalDocumentation",
+ },
+ example: sv,
+ },
+ },
+ Discriminator: {
+ $visitor: av,
+ fixedFields: {
+ propertyName:
+ dm.visitors.document.objects.Discriminator.fixedFields
+ .propertyName,
+ mapping:
+ dm.visitors.document.objects.Discriminator.fixedFields
+ .mapping,
+ },
+ },
+ XML: {
+ $visitor: cv,
+ fixedFields: {
+ name: dm.visitors.document.objects.XML.fixedFields.name,
+ namespace:
+ dm.visitors.document.objects.XML.fixedFields
+ .namespace,
+ prefix:
+ dm.visitors.document.objects.XML.fixedFields.prefix,
+ attribute:
+ dm.visitors.document.objects.XML.fixedFields
+ .attribute,
+ wrapped:
+ dm.visitors.document.objects.XML.fixedFields.wrapped,
+ },
+ },
+ SecurityScheme: {
+ $visitor: Mv,
+ fixedFields: {
+ type: dm.visitors.document.objects.SecurityScheme
+ .fixedFields.type,
+ description:
+ dm.visitors.document.objects.SecurityScheme
+ .fixedFields.description,
+ name: dm.visitors.document.objects.SecurityScheme
+ .fixedFields.name,
+ in: dm.visitors.document.objects.SecurityScheme
+ .fixedFields.in,
+ scheme:
+ dm.visitors.document.objects.SecurityScheme
+ .fixedFields.scheme,
+ bearerFormat:
+ dm.visitors.document.objects.SecurityScheme
+ .fixedFields.bearerFormat,
+ flows: {
+ $ref: "#/visitors/document/objects/OAuthFlows",
+ },
+ openIdConnectUrl:
+ dm.visitors.document.objects.SecurityScheme
+ .fixedFields.openIdConnectUrl,
+ },
+ },
+ OAuthFlows: {
+ $visitor: Fv,
+ fixedFields: {
+ implicit: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ password: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ clientCredentials: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ authorizationCode: {
+ $ref: "#/visitors/document/objects/OAuthFlow",
+ },
+ },
+ },
+ OAuthFlow: {
+ $visitor: Bv,
+ fixedFields: {
+ authorizationUrl:
+ dm.visitors.document.objects.OAuthFlow.fixedFields
+ .authorizationUrl,
+ tokenUrl:
+ dm.visitors.document.objects.OAuthFlow.fixedFields
+ .tokenUrl,
+ refreshUrl:
+ dm.visitors.document.objects.OAuthFlow.fixedFields
+ .refreshUrl,
+ scopes:
+ dm.visitors.document.objects.OAuthFlow.fixedFields
+ .scopes,
+ },
+ },
+ SecurityRequirement: { $visitor: Sg },
+ },
+ extension: {
+ $visitor: dm.visitors.document.extension.$visitor,
+ },
+ },
+ },
+ };
+ function Vv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Wv = (e) => {
+ if (ms(e))
+ return `${
+ e.element.charAt(0).toUpperCase() + e.element.slice(1)
+ }Element`;
+ },
+ Jv = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Vv(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Vv(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })(
+ {
+ CallbackElement: ["content"],
+ ComponentsElement: ["content"],
+ ContactElement: ["content"],
+ DiscriminatorElement: ["content"],
+ Encoding: ["content"],
+ Example: ["content"],
+ ExternalDocumentationElement: ["content"],
+ HeaderElement: ["content"],
+ InfoElement: ["content"],
+ LicenseElement: ["content"],
+ MediaTypeElement: ["content"],
+ OAuthFlowElement: ["content"],
+ OAuthFlowsElement: ["content"],
+ OpenApi3_1Element: ["content"],
+ OperationElement: ["content"],
+ ParameterElement: ["content"],
+ PathItemElement: ["content"],
+ PathsElement: ["content"],
+ ReferenceElement: ["content"],
+ RequestBodyElement: ["content"],
+ ResponseElement: ["content"],
+ ResponsesElement: ["content"],
+ SchemaElement: ["content"],
+ SecurityRequirementElement: ["content"],
+ SecuritySchemeElement: ["content"],
+ ServerElement: ["content"],
+ ServerVariableElement: ["content"],
+ TagElement: ["content"],
+ },
+ hi
+ ),
+ Kv = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register("callback", xm),
+ t.register("components", Sm),
+ t.register("contact", _m),
+ t.register("discriminator", jm),
+ t.register("encoding", Om),
+ t.register("example", km),
+ t.register("externalDocumentation", Am),
+ t.register("header", Cm),
+ t.register("info", Pm),
+ t.register("jsonSchemaDialect", Im),
+ t.register("license", Tm),
+ t.register("link", Rm),
+ t.register("mediaType", Mm),
+ t.register("oAuthFlow", Dm),
+ t.register("oAuthFlows", Fm),
+ t.register("openapi", Lm),
+ t.register("openApi3_1", $m),
+ t.register("operation", qm),
+ t.register("parameter", Um),
+ t.register("pathItem", zm),
+ t.register("paths", Vm),
+ t.register("reference", Jm),
+ t.register("requestBody", Km),
+ t.register("response", Hm),
+ t.register("responses", Gm),
+ t.register("schema", Ym),
+ t.register("securityRequirement", Xm),
+ t.register("securityScheme", Qm),
+ t.register("server", eg),
+ t.register("serverVariable", tg),
+ t.register("tag", ng),
+ t.register("xml", rg),
+ t
+ );
+ },
+ };
+ function Hv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Gv(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Hv(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Hv(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const Zv = () => {
+ const e = Vs(Kv);
+ return {
+ predicates: Gv(
+ Gv({}, c),
+ {},
+ {
+ isStringElement: gs,
+ isArrayElement: Es,
+ isObjectElement: ws,
+ includesClasses: Is,
+ }
+ ),
+ namespace: e,
+ };
+ };
+ function Yv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Xv = (
+ e,
+ {
+ specPath: t = [
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "$visitor",
+ ],
+ plugins: n = [],
+ } = {}
+ ) => {
+ const r = (0, Nt.Qc)(e),
+ o = Ya(zv),
+ s = as(t, [], o);
+ return (
+ di(r, s, { state: { specObj: o } }),
+ mi(s.element, n, {
+ toolboxCreator: Zv,
+ visitorOptions: { keyMap: Jv, nodeTypeGetter: Wv },
+ })
+ );
+ },
+ Qv =
+ (e) =>
+ (t, n = {}) =>
+ Xv(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Yv(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Yv(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (xm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Callback",
+ "$visitor",
+ ])),
+ (Sm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Components",
+ "$visitor",
+ ])),
+ (_m.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Contact",
+ "$visitor",
+ ])),
+ (km.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Example",
+ "$visitor",
+ ])),
+ (jm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Discriminator",
+ "$visitor",
+ ])),
+ (Om.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Encoding",
+ "$visitor",
+ ])),
+ (Am.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "ExternalDocumentation",
+ "$visitor",
+ ])),
+ (Cm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Header",
+ "$visitor",
+ ])),
+ (Pm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Info",
+ "$visitor",
+ ])),
+ (Im.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "fixedFields",
+ "jsonSchemaDialect",
+ ])),
+ (Tm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "License",
+ "$visitor",
+ ])),
+ (Rm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Link",
+ "$visitor",
+ ])),
+ (Mm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "MediaType",
+ "$visitor",
+ ])),
+ (Dm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "OAuthFlow",
+ "$visitor",
+ ])),
+ (Fm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "OAuthFlows",
+ "$visitor",
+ ])),
+ (Lm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "fixedFields",
+ "openapi",
+ ])),
+ ($m.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "OpenApi",
+ "$visitor",
+ ])),
+ (qm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Operation",
+ "$visitor",
+ ])),
+ (Um.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Parameter",
+ "$visitor",
+ ])),
+ (zm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "PathItem",
+ "$visitor",
+ ])),
+ (Vm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Paths",
+ "$visitor",
+ ])),
+ (Jm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Reference",
+ "$visitor",
+ ])),
+ (Km.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "RequestBody",
+ "$visitor",
+ ])),
+ (Hm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Response",
+ "$visitor",
+ ])),
+ (Gm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Responses",
+ "$visitor",
+ ])),
+ (Ym.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Schema",
+ "$visitor",
+ ])),
+ (Xm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "SecurityRequirement",
+ "$visitor",
+ ])),
+ (Qm.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "SecurityScheme",
+ "$visitor",
+ ])),
+ (eg.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Server",
+ "$visitor",
+ ])),
+ (tg.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "ServerVariable",
+ "$visitor",
+ ])),
+ (ng.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "Tag",
+ "$visitor",
+ ])),
+ (rg.refract = Qv([
+ "visitors",
+ "document",
+ "objects",
+ "XML",
+ "$visitor",
+ ]));
+ const eb = class extends Array {
+ constructor(...e) {
+ super(...e),
+ Qo(this, "unknownMediaType", "application/octet-stream");
+ }
+ filterByFormat() {
+ throw new Error("Not implemented!");
+ }
+ findBy() {
+ throw new Error("Not implemented");
+ }
+ latest() {
+ throw new Error("Not implemented!");
+ }
+ };
+ class tb extends eb {
+ filterByFormat(e = "generic") {
+ const t = "generic" === e ? "openapi;version" : e;
+ return this.filter((e) => e.includes(t));
+ }
+ findBy(e = "3.1.0", t = "generic") {
+ const n =
+ "generic" === t
+ ? `vnd.oai.openapi;version=${e}`
+ : `vnd.oai.openapi+${t};version=${e}`;
+ return this.find((e) => e.includes(n)) || this.unknownMediaType;
+ }
+ latest(e = "generic") {
+ return lo(this.filterByFormat(e));
+ }
+ }
+ const nb = new tb(
+ "application/vnd.oai.openapi;version=3.1.0",
+ "application/vnd.oai.openapi+json;version=3.1.0",
+ "application/vnd.oai.openapi+yaml;version=3.1.0"
+ );
+ var rb = n(34155),
+ ob = kr(function (e, t) {
+ return yr(To(""), Lr(ls(e)), ao(""))(t);
+ });
+ const sb = ob;
+ const ib = hr(Uo);
+ const ab = Yt(1, yr(un, Qr("RegExp")));
+ const lb = $o(Qs, Po(/[.*+?^${}()|[\]\\-]/g, "\\$&"));
+ var cb = function (e, t) {
+ if ("string" != typeof e && !(e instanceof String))
+ throw TypeError("`".concat(t, "` must be a string"));
+ };
+ var ub = Yt(3, function (e, t, n) {
+ !(function (e, t, n) {
+ if (null == n || null == e || null == t)
+ throw TypeError(
+ "Input values must not be `null` or `undefined`"
+ );
+ })(e, t, n),
+ cb(n, "str"),
+ cb(t, "replaceValue"),
+ (function (e) {
+ if (
+ !(
+ "string" == typeof e ||
+ e instanceof String ||
+ e instanceof RegExp
+ )
+ )
+ throw TypeError(
+ "`searchValue` must be a string or an regexp"
+ );
+ })(e);
+ var r = new RegExp(ab(e) ? e : lb(e), "g");
+ return Po(r, t, n);
+ }),
+ pb = so(2, "replaceAll");
+ const hb = ns(String.prototype.replaceAll) ? pb : ub,
+ fb = () => Eo(Mo(/^win/), ["platform"], rb),
+ db = (e) => {
+ try {
+ const t = new URL(e);
+ return sb(":", t.protocol);
+ } catch {
+ return;
+ }
+ },
+ mb =
+ (yr(db, ib),
+ (e) => {
+ if (rb.browser) return !1;
+ const t = db(e);
+ return Uo(t) || "file" === t || /^[a-zA-Z]$/.test(t);
+ }),
+ gb = (e) => {
+ const t = db(e);
+ return "http" === t || "https" === t;
+ },
+ yb = (e, t) => {
+ const n = [
+ /%23/g,
+ "#",
+ /%24/g,
+ "$",
+ /%26/g,
+ "&",
+ /%2C/g,
+ ",",
+ /%40/g,
+ "@",
+ ],
+ r = _o(!1, "keepFileProtocol", t),
+ o = _o(fb, "isWindows", t);
+ let s = decodeURI(e);
+ for (let e = 0; e < n.length; e += 2)
+ s = s.replace(n[e], n[e + 1]);
+ let i = "file://" === s.substr(0, 7).toLowerCase();
+ return (
+ i &&
+ ((s = "/" === s[7] ? s.substr(8) : s.substr(7)),
+ o() && "/" === s[1] && (s = `${s[0]}:${s.substr(1)}`),
+ r
+ ? (s = `file:///${s}`)
+ : ((i = !1), (s = o() ? s : `/${s}`))),
+ o() &&
+ !i &&
+ ((s = hb("/", "\\", s)),
+ ":\\" === s.substr(1, 2) &&
+ (s = s[0].toUpperCase() + s.substr(1))),
+ s
+ );
+ },
+ vb = (e) => {
+ const t = e.indexOf("#");
+ return -1 !== t ? e.substr(t) : "#";
+ },
+ bb = (e) => {
+ const t = e.indexOf("#");
+ let n = e;
+ return t >= 0 && (n = e.substr(0, t)), n;
+ },
+ wb = () => {
+ if (rb.browser) return bb(globalThis.location.href);
+ const e = rb.cwd(),
+ t = lo(e);
+ return ["/", "\\"].includes(t) ? e : e + (fb() ? "\\" : "/");
+ },
+ Eb = (e, t) => {
+ const n = new URL(t, new URL(e, "resolve://"));
+ if ("resolve:" === n.protocol) {
+ const { pathname: e, search: t, hash: r } = n;
+ return e + t + r;
+ }
+ return n.toString();
+ },
+ xb = (e) =>
+ mb(e)
+ ? ((e) => {
+ const t = [/\?/g, "%3F", /#/g, "%23"];
+ let n = e;
+ fb() && (n = n.replace(/\\/g, "/")), (n = encodeURI(n));
+ for (let e = 0; e < t.length; e += 2)
+ n = n.replace(t[e], t[e + 1]);
+ return n;
+ })(yb(e))
+ : encodeURI(decodeURI(e))
+ .replace(/%5B/g, "[")
+ .replace(/%5D/g, "]"),
+ Sb = (e) => (mb(e) ? yb(e) : decodeURI(e)),
+ _b = Xs({
+ props: {
+ uri: "",
+ value: null,
+ depth: 0,
+ refSet: null,
+ errors: [],
+ },
+ init({
+ depth: e = this.depth,
+ refSet: t = this.refSet,
+ uri: n = this.uri,
+ value: r = this.value,
+ } = {}) {
+ (this.uri = n),
+ (this.value = r),
+ (this.depth = e),
+ (this.refSet = t),
+ (this.errors = []);
+ },
+ }),
+ jb = _b,
+ Ob = Xs({
+ props: { rootRef: null, refs: [], circular: !1 },
+ init({ refs: e = [] } = {}) {
+ (this.refs = []), e.forEach((e) => this.add(e));
+ },
+ methods: {
+ get size() {
+ return this.refs.length;
+ },
+ add(e) {
+ return (
+ this.has(e) ||
+ (this.refs.push(e),
+ (this.rootRef = null === this.rootRef ? e : this.rootRef),
+ (e.refSet = this)),
+ this
+ );
+ },
+ merge(e) {
+ for (const t of e.values()) this.add(t);
+ return this;
+ },
+ has(e) {
+ const t = Qs(e) ? e : e.uri;
+ return ib(this.find(So(t, "uri")));
+ },
+ find(e) {
+ return this.refs.find(e);
+ },
+ *values() {
+ yield* this.refs;
+ },
+ clean() {
+ this.refs.forEach((e) => {
+ e.refSet = null;
+ }),
+ (this.refs = []);
+ },
+ },
+ }),
+ kb = Ob,
+ Ab = {
+ parse: { mediaType: "text/plain", parsers: [], parserOpts: {} },
+ resolve: {
+ baseURI: "",
+ resolvers: [],
+ resolverOpts: {},
+ strategies: [],
+ external: !0,
+ maxDepth: 1 / 0,
+ },
+ dereference: { strategies: [], refSet: null, maxDepth: 1 / 0 },
+ },
+ Cb = co(po(["resolve", "baseURI"]), sr(["resolve", "baseURI"])),
+ Pb = (e) => (Mi(e) ? wb() : e),
+ Nb = Xs({
+ props: {
+ uri: null,
+ mediaType: "text/plain",
+ data: null,
+ parseResult: null,
+ },
+ init({
+ uri: e = this.uri,
+ mediaType: t = this.mediaType,
+ data: n = this.data,
+ parseResult: r = this.parseResult,
+ } = {}) {
+ (this.uri = e),
+ (this.mediaType = t),
+ (this.data = n),
+ (this.parseResult = r);
+ },
+ methods: {
+ get extension() {
+ return Qs(this.uri)
+ ? ((e) => {
+ const t = e.lastIndexOf(".");
+ return t >= 0 ? e.substr(t).toLowerCase() : "";
+ })(this.uri)
+ : "";
+ },
+ toString() {
+ if ("string" == typeof this.data) return this.data;
+ if (
+ this.data instanceof ArrayBuffer ||
+ ["ArrayBuffer"].includes(un(this.data)) ||
+ ArrayBuffer.isView(this.data)
+ ) {
+ return new TextDecoder("utf-8").decode(this.data);
+ }
+ return String(this.data);
+ },
+ },
+ });
+ class Ib extends Error {
+ constructor(e, t) {
+ if (
+ (super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ "function" == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack),
+ qs(t) && Zr("cause", t) && !Zr("cause", this))
+ ) {
+ const { cause: e } = t;
+ (this.cause = e),
+ Zr("stack", e) &&
+ (this.stack = `${this.stack}\nCAUSE: ${
+ null == e ? void 0 : e.stack
+ }`);
+ }
+ }
+ }
+ const Tb = Ib;
+ const Rb = class extends Tb {
+ constructor(e, t) {
+ super(e, { cause: t.cause }),
+ Qo(this, "plugin", void 0),
+ (this.plugin = t.plugin);
+ }
+ },
+ Mb = async (e, t, n) => {
+ const r = await Promise.all(n.map(as([e], [t])));
+ return n.filter((e, t) => r[t]);
+ },
+ Db = async (e, t, n) => {
+ let r;
+ for (const o of n)
+ try {
+ const n = await o[e].call(o, ...t);
+ return { plugin: o, result: n };
+ } catch (e) {
+ r = new Rb("Error while running plugin", {
+ cause: e,
+ plugin: o,
+ });
+ }
+ return Promise.reject(r);
+ };
+ const Fb = class extends Tb {};
+ const Lb = class extends Fb {};
+ const Bb = class extends Tb {},
+ $b = async (e, t) => {
+ let n = e,
+ r = !1;
+ if (!ks(e)) {
+ const t = new e.constructor(
+ e.content,
+ e.meta.clone(),
+ e.attributes
+ );
+ t.classes.push("result"), (n = new Vo([t])), (r = !0);
+ }
+ const o = Nb({
+ uri: t.resolve.baseURI,
+ parseResult: n,
+ mediaType: t.parse.mediaType,
+ }),
+ s = await Mb("canDereference", o, t.dereference.strategies);
+ if (io(s)) throw new Lb(o.uri);
+ try {
+ const { result: e } = await Db("dereference", [o, t], s);
+ return r ? e.get(0) : e;
+ } catch (e) {
+ throw new Bb(`Error while dereferencing file "${o.uri}"`, {
+ cause: e,
+ });
+ }
+ },
+ qb = async (e, t = {}) => {
+ const n = ((e, t) => {
+ const n = go(e, t);
+ return bo(Cb, Pb, n);
+ })(Ab, t);
+ return $b(e, n);
+ };
+ const Ub = class extends Tb {
+ constructor(e = "Not Implemented", t) {
+ super(e, t);
+ }
+ },
+ zb = Xs({
+ props: {
+ name: "",
+ allowEmpty: !0,
+ sourceMap: !1,
+ fileExtensions: [],
+ mediaTypes: [],
+ },
+ init({
+ allowEmpty: e = this.allowEmpty,
+ sourceMap: t = this.sourceMap,
+ fileExtensions: n = this.fileExtensions,
+ mediaTypes: r = this.mediaTypes,
+ } = {}) {
+ (this.allowEmpty = e),
+ (this.sourceMap = t),
+ (this.fileExtensions = n),
+ (this.mediaTypes = r);
+ },
+ methods: {
+ async canParse() {
+ throw new Ub();
+ },
+ async parse() {
+ throw new Ub();
+ },
+ },
+ }),
+ Vb = zb,
+ Wb = Xs(Vb, {
+ props: { name: "binary" },
+ methods: {
+ async canParse(e) {
+ return (
+ 0 === this.fileExtensions.length ||
+ this.fileExtensions.includes(e.extension)
+ );
+ },
+ async parse(e) {
+ try {
+ const t = unescape(encodeURIComponent(e.toString())),
+ n = btoa(t),
+ r = new Vo();
+ if (0 !== n.length) {
+ const e = new Nt.RP(n);
+ e.classes.push("result"), r.push(e);
+ }
+ return r;
+ } catch (t) {
+ throw new Fb(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Jb = Xs({
+ props: { name: null },
+ methods: {
+ canResolve: () => !1,
+ async resolve() {
+ throw new Ub();
+ },
+ },
+ });
+ const Kb = Yt(1, qn(Promise.all, Promise));
+ const Hb = class extends Tb {};
+ const Gb = class extends Hb {};
+ const Zb = class extends Bb {};
+ const Yb = class extends Hb {};
+ function Xb(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Qb(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Xb(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : Xb(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const ew = async (e, t) => {
+ const n = Nb({ uri: xb(bb(e)), mediaType: t.parse.mediaType }),
+ r = await (async (e, t) => {
+ const n = t.resolve.resolvers.map((e) => {
+ const n = Object.create(e);
+ return Object.assign(n, t.resolve.resolverOpts);
+ }),
+ r = await Mb("canRead", e, n);
+ if (io(r)) throw new Yb(e.uri);
+ try {
+ const { result: t } = await Db("read", [e], r);
+ return t;
+ } catch (t) {
+ throw new Hb(`Error while reading file "${e.uri}"`, {
+ cause: t,
+ });
+ }
+ })(n, t);
+ return (async (e, t) => {
+ const n = t.parse.parsers.map((e) => {
+ const n = Object.create(e);
+ return Object.assign(n, t.parse.parserOpts);
+ }),
+ r = await Mb("canParse", e, n);
+ if (io(r)) throw new Yb(e.uri);
+ try {
+ const { plugin: t, result: n } = await Db("parse", [e], r);
+ return !t.allowEmpty && n.isEmpty
+ ? Promise.reject(
+ new Fb(
+ `Error while parsing file "${e.uri}". File is empty.`
+ )
+ )
+ : n;
+ } catch (t) {
+ throw new Fb(`Error while parsing file "${e.uri}"`, {
+ cause: t,
+ });
+ }
+ })(Nb(Qb(Qb({}, n), {}, { data: r })), t);
+ },
+ tw = (e, t) => {
+ const n = fi({ predicate: e });
+ return di(t, n), new Nt.O4(n.result);
+ };
+ class nw extends Error {
+ constructor(e) {
+ super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ "function" == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const rw = (e, t) => {
+ const n = fi({ predicate: e, returnOnTrue: ti });
+ return di(t, n), wo(void 0, [0], n.result);
+ };
+ const ow = class extends Tb {};
+ class sw extends ow {
+ constructor(e) {
+ super(`Invalid JSON Schema $anchor "${e}".`);
+ }
+ }
+ class iw extends Error {
+ constructor(e) {
+ super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ "function" == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const aw = (e) => /^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),
+ lw = (e) => {
+ const t = vb(e);
+ return Ui("#", t);
+ },
+ cw = (e, t) => {
+ const n = ((e) => {
+ if (!aw(e)) throw new sw(e);
+ return e;
+ })(e),
+ r = rw((e) => {
+ var t;
+ return (
+ sy(e) &&
+ (null === (t = e.$anchor) || void 0 === t
+ ? void 0
+ : t.toValue()) === n
+ );
+ }, t);
+ if (Uo(r)) throw new iw(`Evaluation failed on token: "${n}"`);
+ return r;
+ },
+ uw = (e, t) => {
+ if (void 0 === t.$ref) return;
+ const n = vb(t.$ref.toValue()),
+ r = t.meta.get("inherited$id").toValue();
+ return `${Kn((e, t) => Eb(e, xb(bb(t))), e, [
+ ...r,
+ t.$ref.toValue(),
+ ])}${"#" === n ? "" : n}`;
+ },
+ pw = (e) => {
+ if (pw.cache.has(e)) return pw.cache.get(e);
+ const t = Ym.refract(e);
+ return pw.cache.set(e, t), t;
+ };
+ pw.cache = new WeakMap();
+ const hw = (e) => (Cs(e) ? pw(e) : e),
+ fw = (e, t) => {
+ const { cache: n } = fw,
+ r = bb(e),
+ o = (e) => sy(e) && void 0 !== e.$id;
+ if (!n.has(t)) {
+ const e = tw(o, t);
+ n.set(t, Array.from(e));
+ }
+ const s = n.get(t).find(
+ (e) =>
+ ((e, t) => {
+ if (void 0 === t.$id) return;
+ const n = t.meta.get("inherited$id").toValue();
+ return Kn((e, t) => Eb(e, xb(bb(t))), e, [
+ ...n,
+ t.$id.toValue(),
+ ]);
+ })(r, e) === r
+ );
+ if (Uo(s)) throw new nw(`Evaluation failed on URI: "${e}"`);
+ let i, a;
+ return (
+ aw(lw(e)) ? ((i = cw), (a = lw(e))) : ((i = Ki), (a = Hi(e))),
+ i(a, s)
+ );
+ };
+ function dw(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function mw(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? dw(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : dw(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ fw.cache = new WeakMap();
+ const gw = di[Symbol.for("nodejs.util.promisify.custom")],
+ yw = Xs({
+ props: {
+ indirections: [],
+ namespace: null,
+ reference: null,
+ crawledElements: null,
+ crawlingMap: null,
+ visited: null,
+ options: null,
+ },
+ init({
+ reference: e,
+ namespace: t,
+ indirections: n = [],
+ visited: r = new WeakSet(),
+ options: o,
+ }) {
+ (this.indirections = n),
+ (this.namespace = t),
+ (this.reference = e),
+ (this.crawledElements = []),
+ (this.crawlingMap = {}),
+ (this.visited = r),
+ (this.options = o);
+ },
+ methods: {
+ toBaseURI(e) {
+ return Eb(this.reference.uri, xb(bb(e)));
+ },
+ async toReference(e) {
+ if (this.reference.depth >= this.options.resolve.maxDepth)
+ throw new Gb(
+ `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`
+ );
+ const t = this.toBaseURI(e),
+ { refSet: n } = this.reference;
+ if (n.has(t)) return n.find(So(t, "uri"));
+ const r = await ew(
+ Sb(t),
+ mw(
+ mw({}, this.options),
+ {},
+ {
+ parse: mw(
+ mw({}, this.options.parse),
+ {},
+ { mediaType: "text/plain" }
+ ),
+ }
+ )
+ ),
+ o = jb({
+ uri: t,
+ value: r,
+ depth: this.reference.depth + 1,
+ });
+ return n.add(o), o;
+ },
+ ReferenceElement(e) {
+ var t;
+ if (!this.options.resolve.external && ty(e)) return !1;
+ const n =
+ null === (t = e.$ref) || void 0 === t
+ ? void 0
+ : t.toValue(),
+ r = this.toBaseURI(n);
+ Gr(r, this.crawlingMap) ||
+ (this.crawlingMap[r] = this.toReference(n)),
+ this.crawledElements.push(e);
+ },
+ PathItemElement(e) {
+ var t;
+ if (!gs(e.$ref)) return;
+ if (!this.options.resolve.external && Xg(e)) return;
+ const n =
+ null === (t = e.$ref) || void 0 === t
+ ? void 0
+ : t.toValue(),
+ r = this.toBaseURI(n);
+ Gr(r, this.crawlingMap) ||
+ (this.crawlingMap[r] = this.toReference(n)),
+ this.crawledElements.push(e);
+ },
+ LinkElement(e) {
+ if (
+ (gs(e.operationRef) || gs(e.operationId)) &&
+ (this.options.resolve.external || !Jg(e))
+ ) {
+ if (gs(e.operationRef) && gs(e.operationId))
+ throw new Error(
+ "LinkElement operationRef and operationId are mutually exclusive."
+ );
+ if (Jg(e)) {
+ var t;
+ const n =
+ null === (t = e.operationRef) || void 0 === t
+ ? void 0
+ : t.toValue(),
+ r = this.toBaseURI(n);
+ Gr(r, this.crawlingMap) ||
+ (this.crawlingMap[r] = this.toReference(n));
+ }
+ }
+ },
+ ExampleElement(e) {
+ var t;
+ if (!gs(e.externalValue)) return;
+ if (!this.options.resolve.external && gs(e.externalValue))
+ return;
+ if (e.hasKey("value") && gs(e.externalValue))
+ throw new Error(
+ "ExampleElement value and externalValue fields are mutually exclusive."
+ );
+ const n =
+ null === (t = e.externalValue) || void 0 === t
+ ? void 0
+ : t.toValue(),
+ r = this.toBaseURI(n);
+ Gr(r, this.crawlingMap) ||
+ (this.crawlingMap[r] = this.toReference(n));
+ },
+ async SchemaElement(e) {
+ if (this.visited.has(e)) return !1;
+ if (!gs(e.$ref)) return void this.visited.add(e);
+ const t = await this.toReference(Sb(this.reference.uri)),
+ { uri: n } = t,
+ r = uw(n, e),
+ o = bb(r),
+ s = Nb({ uri: o }),
+ i = yo((e) => e.canRead(s), this.options.resolve.resolvers),
+ a = !i,
+ l = !i && n !== o;
+ if (this.options.resolve.external || !l) {
+ if (!Gr(o, this.crawlingMap))
+ try {
+ this.crawlingMap[o] =
+ i || a ? t : this.toReference(Sb(r));
+ } catch (e) {
+ if (!(a && e instanceof nw)) throw e;
+ this.crawlingMap[o] = this.toReference(Sb(r));
+ }
+ this.crawledElements.push(e);
+ } else this.visited.add(e);
+ },
+ async crawlReferenceElement(e) {
+ var t;
+ const n = await this.toReference(e.$ref.toValue());
+ this.indirections.push(e);
+ const r = Hi(
+ null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue()
+ );
+ let o = Ki(r, n.value.result);
+ if (Cs(o)) {
+ const t = e.meta.get("referenced-element").toValue();
+ if (zc(o))
+ (o = Jm.refract(o)),
+ o.setMetaProperty("referenced-element", t);
+ else {
+ o = this.namespace.getElementClass(t).refract(o);
+ }
+ }
+ if (this.indirections.includes(o))
+ throw new Error("Recursive Reference Object detected");
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const s = yw({
+ reference: n,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ });
+ await gw(o, s, { keyMap: Jv, nodeTypeGetter: Wv }),
+ await s.crawl(),
+ this.indirections.pop();
+ },
+ async crawlPathItemElement(e) {
+ var t;
+ const n = await this.toReference(e.$ref.toValue());
+ this.indirections.push(e);
+ const r = Hi(
+ null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue()
+ );
+ let o = Ki(r, n.value.result);
+ if (
+ (Cs(o) && (o = zm.refract(o)),
+ this.indirections.includes(o))
+ )
+ throw new Error(
+ "Recursive Path Item Object reference detected"
+ );
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const s = yw({
+ reference: n,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ });
+ await gw(o, s, { keyMap: Jv, nodeTypeGetter: Wv }),
+ await s.crawl(),
+ this.indirections.pop();
+ },
+ async crawlSchemaElement(e) {
+ let t = await this.toReference(Sb(this.reference.uri));
+ const { uri: n } = t,
+ r = uw(n, e),
+ o = bb(r),
+ s = Nb({ uri: o }),
+ i = yo((e) => e.canRead(s), this.options.resolve.resolvers),
+ a = !i;
+ let l;
+ this.indirections.push(e);
+ try {
+ if (i || a) {
+ l = fw(r, hw(t.value.result));
+ } else {
+ t = await this.toReference(Sb(r));
+ const e = Hi(r);
+ l = hw(Ki(e, t.value.result));
+ }
+ } catch (e) {
+ if (!(a && e instanceof nw)) throw e;
+ if (aw(lw(r))) {
+ t = await this.toReference(Sb(r));
+ const e = lw(r);
+ l = cw(e, hw(t.value.result));
+ } else {
+ t = await this.toReference(Sb(r));
+ const e = Hi(r);
+ l = hw(Ki(e, t.value.result));
+ }
+ }
+ if ((this.visited.add(e), this.indirections.includes(l)))
+ throw new Error(
+ "Recursive Schema Object reference detected"
+ );
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const c = yw({
+ reference: t,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ visited: this.visited,
+ });
+ await gw(l, c, { keyMap: Jv, nodeTypeGetter: Wv }),
+ await c.crawl(),
+ this.indirections.pop();
+ },
+ async crawl() {
+ await yr(rr, Kb)(this.crawlingMap), (this.crawlingMap = null);
+ for (const e of this.crawledElements)
+ ey(e)
+ ? await this.crawlReferenceElement(e)
+ : sy(e)
+ ? await this.crawlSchemaElement(e)
+ : Yg(e) && (await this.crawlPathItemElement(e));
+ },
+ },
+ }),
+ vw = yw,
+ bw = di[Symbol.for("nodejs.util.promisify.custom")],
+ ww = Xs(Jb, {
+ init() {
+ this.name = "openapi-3-1";
+ },
+ methods: {
+ canResolve(e) {
+ var t;
+ return "text/plain" !== e.mediaType
+ ? nb.includes(e.mediaType)
+ : Hg(
+ null === (t = e.parseResult) || void 0 === t
+ ? void 0
+ : t.result
+ );
+ },
+ async resolve(e, t) {
+ const n = Vs(Kv),
+ r = jb({ uri: e.uri, value: e.parseResult }),
+ o = vw({ reference: r, namespace: n, options: t }),
+ s = kb();
+ return (
+ s.add(r),
+ await bw(s.rootRef.value, o, {
+ keyMap: Jv,
+ nodeTypeGetter: Wv,
+ }),
+ await o.crawl(),
+ s
+ );
+ },
+ },
+ }),
+ Ew = ww,
+ xw = (e) => e.replace(/\s/g, ""),
+ Sw = (e) => e.replace(/\W/gi, "_"),
+ _w = (e, t, n) => {
+ const r = xw(e);
+ return r.length > 0
+ ? Sw(r)
+ : ((e, t) => `${Sw(xw(t.toLowerCase()))}${Sw(xw(e))}`)(t, n);
+ },
+ jw =
+ ({ operationIdNormalizer: e = _w } = {}) =>
+ ({ predicates: t, namespace: n }) => {
+ const r = [],
+ o = [],
+ s = [];
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ leave() {
+ const e = Kr((e) => Ri(e.operationId), o);
+ Object.entries(e).forEach(([e, t]) => {
+ Array.isArray(t) &&
+ (t.length <= 1 ||
+ t.forEach((t, r) => {
+ const o = `${e}${r + 1}`;
+ t.operationId = new n.elements.String(o);
+ }));
+ }),
+ s.forEach((e) => {
+ var t;
+ if (void 0 === e.operationId) return;
+ const n = String(Ri(e.operationId)),
+ r = o.find(
+ (e) =>
+ Ri(e.meta.get("originalOperationId")) === n
+ );
+ void 0 !== r &&
+ ((e.operationId =
+ null === (t = r.operationId) || void 0 === t
+ ? void 0
+ : t.clone()),
+ e.meta.set("originalOperationId", n),
+ e.set("__originalOperationId", n));
+ }),
+ (o.length = 0),
+ (s.length = 0);
+ },
+ },
+ PathItemElement: {
+ enter(e) {
+ const t = Ar("path", Ri(e.meta.get("path")));
+ r.push(t);
+ },
+ leave() {
+ r.pop();
+ },
+ },
+ OperationElement: {
+ enter(t) {
+ if (void 0 === t.operationId) return;
+ const s = String(Ri(t.operationId)),
+ i = lo(r),
+ a = Ar("method", Ri(t.meta.get("http-method"))),
+ l = e(s, i, a);
+ s !== l &&
+ ((t.operationId = new n.elements.String(l)),
+ t.set("__originalOperationId", s),
+ t.meta.set("originalOperationId", s),
+ o.push(t));
+ },
+ },
+ LinkElement: {
+ leave(e) {
+ t.isLinkElement(e) &&
+ void 0 !== e.operationId &&
+ s.push(e);
+ },
+ },
+ },
+ };
+ },
+ Ow =
+ () =>
+ ({ predicates: e }) => {
+ const t = (t, n) =>
+ !!e.isParameterElement(t) &&
+ !!e.isParameterElement(n) &&
+ !!e.isStringElement(t.name) &&
+ !!e.isStringElement(t.in) &&
+ !!e.isStringElement(n.name) &&
+ !!e.isStringElement(n.in) &&
+ Ri(t.name) === Ri(n.name) &&
+ Ri(t.in) === Ri(n.in),
+ n = [];
+ return {
+ visitor: {
+ PathItemElement: {
+ enter(t, r, o, s, i) {
+ if (i.some(e.isComponentsElement)) return;
+ const { parameters: a } = t;
+ e.isArrayElement(a)
+ ? n.push([...a.content])
+ : n.push([]);
+ },
+ leave() {
+ n.pop();
+ },
+ },
+ OperationElement: {
+ leave(e) {
+ const r = lo(n);
+ if (!Array.isArray(r) || 0 === r.length) return;
+ const o = wo([], ["parameters", "content"], e),
+ s = Bo(t, [...o, ...r]);
+ e.parameters = new Ed(s);
+ },
+ },
+ },
+ };
+ },
+ kw =
+ () =>
+ ({ predicates: e }) => {
+ let t;
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ enter(n) {
+ e.isArrayElement(n.security) && (t = n.security);
+ },
+ leave() {
+ t = void 0;
+ },
+ },
+ OperationElement: {
+ leave(n, r, o, s, i) {
+ if (i.some(e.isComponentsElement)) return;
+ var a;
+ void 0 === n.security &&
+ void 0 !== t &&
+ (n.security = new Pd(
+ null === (a = t) || void 0 === a
+ ? void 0
+ : a.content
+ ));
+ },
+ },
+ },
+ };
+ },
+ Aw =
+ () =>
+ ({ predicates: e }) => {
+ let t;
+ const n = [];
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ enter(n) {
+ var r;
+ e.isArrayElement(n.servers) &&
+ (t =
+ null === (r = n.servers) || void 0 === r
+ ? void 0
+ : r.content);
+ },
+ leave() {
+ t = void 0;
+ },
+ },
+ PathItemElement: {
+ enter(r, o, s, i, a) {
+ if (a.some(e.isComponentsElement)) return;
+ void 0 === r.servers &&
+ void 0 !== t &&
+ (r.servers = new $d(t));
+ const { servers: l } = r;
+ void 0 !== l && e.isArrayElement(l)
+ ? n.push([...l.content])
+ : n.push(void 0);
+ },
+ leave() {
+ n.pop();
+ },
+ },
+ OperationElement: {
+ enter(t) {
+ const r = lo(n);
+ void 0 !== r &&
+ (e.isArrayElement(t.servers) ||
+ (t.servers = new Td(r)));
+ },
+ },
+ },
+ };
+ },
+ Cw =
+ () =>
+ ({ predicates: e }) => ({
+ visitor: {
+ ParameterElement: {
+ leave(t, n, r, o, s) {
+ var i, a;
+ if (
+ !s.some(e.isComponentsElement) &&
+ void 0 !== t.schema &&
+ e.isSchemaElement(t.schema) &&
+ (void 0 !==
+ (null === (i = t.schema) || void 0 === i
+ ? void 0
+ : i.example) ||
+ void 0 !==
+ (null === (a = t.schema) || void 0 === a
+ ? void 0
+ : a.examples))
+ ) {
+ if (
+ void 0 !== t.examples &&
+ e.isObjectElement(t.examples)
+ ) {
+ const e = t.examples.map((e) => {
+ var t;
+ return null === (t = e.value) || void 0 === t
+ ? void 0
+ : t.clone();
+ });
+ return (
+ void 0 !== t.schema.examples &&
+ t.schema.set("examples", e),
+ void (
+ void 0 !== t.schema.example &&
+ t.schema.set("example", e)
+ )
+ );
+ }
+ void 0 !== t.example &&
+ (void 0 !== t.schema.examples &&
+ t.schema.set("examples", [t.example.clone()]),
+ void 0 !== t.schema.example &&
+ t.schema.set("example", t.example.clone()));
+ }
+ },
+ },
+ },
+ }),
+ Pw =
+ () =>
+ ({ predicates: e }) => ({
+ visitor: {
+ HeaderElement: {
+ leave(t, n, r, o, s) {
+ var i, a;
+ if (
+ !s.some(e.isComponentsElement) &&
+ void 0 !== t.schema &&
+ e.isSchemaElement(t.schema) &&
+ (void 0 !==
+ (null === (i = t.schema) || void 0 === i
+ ? void 0
+ : i.example) ||
+ void 0 !==
+ (null === (a = t.schema) || void 0 === a
+ ? void 0
+ : a.examples))
+ ) {
+ if (
+ void 0 !== t.examples &&
+ e.isObjectElement(t.examples)
+ ) {
+ const e = t.examples.map((e) => {
+ var t;
+ return null === (t = e.value) || void 0 === t
+ ? void 0
+ : t.clone();
+ });
+ return (
+ void 0 !== t.schema.examples &&
+ t.schema.set("examples", e),
+ void (
+ void 0 !== t.schema.example &&
+ t.schema.set("example", e)
+ )
+ );
+ }
+ void 0 !== t.example &&
+ (void 0 !== t.schema.examples &&
+ t.schema.set("examples", [t.example.clone()]),
+ void 0 !== t.schema.example &&
+ t.schema.set("example", t.example.clone()));
+ }
+ },
+ },
+ },
+ }),
+ Nw = (e) => (t) => {
+ if (t?.$$normalized) return t;
+ if (Nw.cache.has(t)) return t;
+ const n = $m.refract(t),
+ r = e(n),
+ o = Ri(r);
+ return Nw.cache.set(t, o), o;
+ };
+ Nw.cache = new WeakMap();
+ const Iw = (e) => {
+ if (!ws(e)) return e;
+ if (e.hasKey("$$normalized")) return e;
+ const t = [
+ jw({
+ operationIdNormalizer: (e, t, n) =>
+ (0, He.Z)({ operationId: e }, t, n, {
+ v2OperationIdCompatibilityMode: !1,
+ }),
+ }),
+ Ow(),
+ kw(),
+ Aw(),
+ Cw(),
+ Pw(),
+ ],
+ n = mi(e, t, {
+ toolboxCreator: Zv,
+ visitorOptions: { keyMap: Jv, nodeTypeGetter: Wv },
+ });
+ return n.set("$$normalized", !0), n;
+ },
+ Tw = Xs({
+ props: { name: null },
+ methods: {
+ canRead: () => !1,
+ async read() {
+ throw new Ub();
+ },
+ },
+ }),
+ Rw = Xs(Tw, {
+ props: { timeout: 5e3, redirects: 5, withCredentials: !1 },
+ init({
+ timeout: e = this.timeout,
+ redirects: t = this.redirects,
+ withCredentials: n = this.withCredentials,
+ } = {}) {
+ (this.timeout = e),
+ (this.redirects = t),
+ (this.withCredentials = n);
+ },
+ methods: {
+ canRead: (e) => gb(e.uri),
+ async read() {
+ throw new Ub();
+ },
+ getHttpClient() {
+ throw new Ub();
+ },
+ },
+ }).compose({
+ props: {
+ name: "http-swagger-client",
+ swaggerHTTPClient: ct,
+ swaggerHTTPClientConfig: {},
+ },
+ init() {
+ let { swaggerHTTPClient: e = this.swaggerHTTPClient } =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ this.swaggerHTTPClient = e;
+ },
+ methods: {
+ getHttpClient() {
+ return this.swaggerHTTPClient;
+ },
+ async read(e) {
+ const t = this.getHttpClient(),
+ n = new AbortController(),
+ { signal: r } = n,
+ o = setTimeout(() => {
+ n.abort();
+ }, this.timeout),
+ s =
+ this.getHttpClient().withCredentials ||
+ this.withCredentials
+ ? "include"
+ : "same-origin",
+ i = 0 === this.redirects ? "error" : "follow",
+ a = this.redirects > 0 ? this.redirects : void 0;
+ try {
+ return (
+ await t(
+ f()(
+ {
+ url: e.uri,
+ signal: r,
+ userFetch: async (e, t) => {
+ let n = await fetch(e, t);
+ try {
+ n.headers.delete("Content-Type");
+ } catch {
+ (n = new Response(
+ n.body,
+ f()(
+ f()({}, n),
+ {},
+ { headers: new Headers(n.headers) }
+ )
+ )),
+ n.headers.delete("Content-Type");
+ }
+ return n;
+ },
+ credentials: s,
+ redirects: i,
+ follow: a,
+ },
+ this.swaggerHTTPClientConfig
+ )
+ )
+ ).text.arrayBuffer();
+ } catch (t) {
+ throw new Hb(`Error downloading "${e.uri}"`, { cause: t });
+ } finally {
+ clearTimeout(o);
+ }
+ },
+ },
+ }),
+ Mw = Vb.compose({
+ props: {
+ name: "json-swagger-client",
+ fileExtensions: [".json"],
+ mediaTypes: ["application/json"],
+ },
+ methods: {
+ async canParse(e) {
+ const t =
+ 0 === this.fileExtensions.length ||
+ this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ return JSON.parse(e.toString()), !0;
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new Fb(
+ "json-swagger-client parser plugin doesn't support sourceMaps option"
+ );
+ const t = new Vo(),
+ n = e.toString();
+ if (this.allowEmpty && "" === n.trim()) return t;
+ try {
+ const e = Ti(JSON.parse(n));
+ return e.classes.push("result"), t.push(e), t;
+ } catch (t) {
+ throw new Fb(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Dw = Vb.compose({
+ props: {
+ name: "yaml-1-2-swagger-client",
+ fileExtensions: [".yaml", ".yml"],
+ mediaTypes: ["text/yaml", "application/yaml"],
+ },
+ methods: {
+ async canParse(e) {
+ const t =
+ 0 === this.fileExtensions.length ||
+ this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ return le.ZP.load(e.toString(), { schema: le.A8 }), !0;
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new Fb(
+ "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option"
+ );
+ const t = new Vo(),
+ n = e.toString();
+ try {
+ const e = le.ZP.load(n, { schema: le.A8 });
+ if (this.allowEmpty && void 0 === e) return t;
+ const r = Ti(e);
+ return r.classes.push("result"), t.push(r), t;
+ } catch (t) {
+ throw new Fb(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Fw = Vb.compose({
+ props: {
+ name: "openapi-json-3-1-swagger-client",
+ fileExtensions: [".json"],
+ mediaTypes: new tb(
+ ...nb.filterByFormat("generic"),
+ ...nb.filterByFormat("json")
+ ),
+ detectionRegExp:
+ /"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/,
+ },
+ methods: {
+ async canParse(e) {
+ const t =
+ 0 === this.fileExtensions.length ||
+ this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ const t = e.toString();
+ return JSON.parse(t), this.detectionRegExp.test(t);
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new Fb(
+ "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option"
+ );
+ const t = new Vo(),
+ n = e.toString();
+ if (this.allowEmpty && "" === n.trim()) return t;
+ try {
+ const e = JSON.parse(n),
+ r = $m.refract(e, this.refractorOpts);
+ return r.classes.push("result"), t.push(r), t;
+ } catch (t) {
+ throw new Fb(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Lw = Vb.compose({
+ props: {
+ name: "openapi-yaml-3-1-swagger-client",
+ fileExtensions: [".yaml", ".yml"],
+ mediaTypes: new tb(
+ ...nb.filterByFormat("generic"),
+ ...nb.filterByFormat("yaml")
+ ),
+ detectionRegExp:
+ /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m,
+ },
+ methods: {
+ async canParse(e) {
+ const t =
+ 0 === this.fileExtensions.length ||
+ this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ const t = e.toString();
+ return le.ZP.load(t), this.detectionRegExp.test(t);
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new Fb(
+ "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option"
+ );
+ const t = new Vo(),
+ n = e.toString();
+ try {
+ const e = le.ZP.load(n, { schema: le.A8 });
+ if (this.allowEmpty && void 0 === e) return t;
+ const r = $m.refract(e, this.refractorOpts);
+ return r.classes.push("result"), t.push(r), t;
+ } catch (t) {
+ throw new Fb(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Bw = Xs({
+ props: { name: null },
+ methods: {
+ canDereference: () => !1,
+ async dereference() {
+ throw new Ub();
+ },
+ },
+ });
+ function $w(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function qw(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? $w(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : $w(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const Uw = di[Symbol.for("nodejs.util.promisify.custom")],
+ zw = Xs({
+ props: {
+ indirections: null,
+ namespace: null,
+ reference: null,
+ options: null,
+ ancestors: null,
+ },
+ init({
+ indirections: e = [],
+ reference: t,
+ namespace: n,
+ options: r,
+ ancestors: o = [],
+ }) {
+ (this.indirections = e),
+ (this.namespace = n),
+ (this.reference = t),
+ (this.options = r),
+ (this.ancestors = [...o]);
+ },
+ methods: {
+ toBaseURI(e) {
+ return Eb(this.reference.uri, xb(bb(e)));
+ },
+ toAncestorLineage(e) {
+ const t = new WeakSet(e.filter(ms));
+ return [[...this.ancestors, t], t];
+ },
+ async toReference(e) {
+ if (this.reference.depth >= this.options.resolve.maxDepth)
+ throw new Gb(
+ `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`
+ );
+ const t = this.toBaseURI(e),
+ { refSet: n } = this.reference;
+ if (n.has(t)) return n.find(So(t, "uri"));
+ const r = await ew(
+ Sb(t),
+ qw(
+ qw({}, this.options),
+ {},
+ {
+ parse: qw(
+ qw({}, this.options.parse),
+ {},
+ { mediaType: "text/plain" }
+ ),
+ }
+ )
+ ),
+ o = jb({
+ uri: t,
+ value: r,
+ depth: this.reference.depth + 1,
+ });
+ return n.add(o), o;
+ },
+ async ReferenceElement(e, t, n, r, o) {
+ var s, i, a, l, c;
+ const [u, p] = this.toAncestorLineage([...o, n]);
+ if (u.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && ty(e)) return !1;
+ const h = await this.toReference(
+ null === (s = e.$ref) || void 0 === s
+ ? void 0
+ : s.toValue()
+ ),
+ { uri: f } = h,
+ d = Eb(
+ f,
+ null === (i = e.$ref) || void 0 === i
+ ? void 0
+ : i.toValue()
+ );
+ this.indirections.push(e);
+ const m = Hi(d);
+ let g = Ki(m, h.value.result);
+ if (Cs(g)) {
+ const t = e.meta.get("referenced-element").toValue();
+ if (zc(g))
+ (g = Jm.refract(g)),
+ g.setMetaProperty("referenced-element", t);
+ else {
+ g = this.namespace.getElementClass(t).refract(g);
+ }
+ }
+ if (this.indirections.includes(g))
+ throw new Error("Recursive Reference Object detected");
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ p.add(e);
+ const y = zw({
+ reference: h,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: u,
+ });
+ (g = await Uw(g, y, { keyMap: Jv, nodeTypeGetter: Wv })),
+ p.delete(e),
+ this.indirections.pop(),
+ (g = g.clone()),
+ g.setMetaProperty("ref-fields", {
+ $ref:
+ null === (a = e.$ref) || void 0 === a
+ ? void 0
+ : a.toValue(),
+ description:
+ null === (l = e.description) || void 0 === l
+ ? void 0
+ : l.toValue(),
+ summary:
+ null === (c = e.summary) || void 0 === c
+ ? void 0
+ : c.toValue(),
+ }),
+ g.setMetaProperty("ref-origin", h.uri);
+ const v = Eo(ib, ["description"], e),
+ b = Eo(ib, ["summary"], e);
+ return (
+ v &&
+ Zr("description", g) &&
+ (g.description = e.description),
+ b && Zr("summary", g) && (g.summary = e.summary),
+ this.indirections.pop(),
+ g
+ );
+ },
+ async PathItemElement(e, t, n, r, o) {
+ var s, i, a;
+ const [l, c] = this.toAncestorLineage([...o, n]);
+ if (!gs(e.$ref)) return;
+ if (l.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Xg(e)) return;
+ const u = await this.toReference(
+ null === (s = e.$ref) || void 0 === s
+ ? void 0
+ : s.toValue()
+ ),
+ { uri: p } = u,
+ h = Eb(
+ p,
+ null === (i = e.$ref) || void 0 === i
+ ? void 0
+ : i.toValue()
+ );
+ this.indirections.push(e);
+ const f = Hi(h);
+ let d = Ki(f, u.value.result);
+ if (
+ (Cs(d) && (d = zm.refract(d)),
+ this.indirections.includes(d))
+ )
+ throw new Error(
+ "Recursive Path Item Object reference detected"
+ );
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ c.add(e);
+ const m = zw({
+ reference: u,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: l,
+ });
+ (d = await Uw(d, m, { keyMap: Jv, nodeTypeGetter: Wv })),
+ c.delete(e),
+ this.indirections.pop();
+ const g = new zm(
+ [...d.content],
+ d.meta.clone(),
+ d.attributes.clone()
+ );
+ return (
+ e.forEach((e, t, n) => {
+ g.remove(t.toValue()), g.content.push(n);
+ }),
+ g.remove("$ref"),
+ g.setMetaProperty("ref-fields", {
+ $ref:
+ null === (a = e.$ref) || void 0 === a
+ ? void 0
+ : a.toValue(),
+ }),
+ g.setMetaProperty("ref-origin", u.uri),
+ g
+ );
+ },
+ async LinkElement(e) {
+ if (!gs(e.operationRef) && !gs(e.operationId)) return;
+ if (!this.options.resolve.external && Jg(e)) return;
+ if (gs(e.operationRef) && gs(e.operationId))
+ throw new Error(
+ "LinkElement operationRef and operationId fields are mutually exclusive."
+ );
+ let t;
+ if (gs(e.operationRef)) {
+ var n, r, o;
+ const s = Hi(
+ null === (n = e.operationRef) || void 0 === n
+ ? void 0
+ : n.toValue()
+ ),
+ i = await this.toReference(
+ null === (r = e.operationRef) || void 0 === r
+ ? void 0
+ : r.toValue()
+ );
+ (t = Ki(s, i.value.result)),
+ Cs(t) && (t = qm.refract(t)),
+ (t = new qm(
+ [...t.content],
+ t.meta.clone(),
+ t.attributes.clone()
+ )),
+ t.setMetaProperty("ref-origin", i.uri),
+ null === (o = e.operationRef) ||
+ void 0 === o ||
+ o.meta.set("operation", t);
+ } else if (gs(e.operationId)) {
+ var s, i;
+ const n =
+ null === (s = e.operationId) || void 0 === s
+ ? void 0
+ : s.toValue(),
+ r = await this.toReference(Sb(this.reference.uri));
+ if (
+ ((t = rw(
+ (e) => Gg(e) && e.operationId.equals(n),
+ r.value.result
+ )),
+ Uo(t))
+ )
+ throw new Error(
+ `OperationElement(operationId=${n}) not found.`
+ );
+ null === (i = e.operationId) ||
+ void 0 === i ||
+ i.meta.set("operation", t);
+ }
+ },
+ async ExampleElement(e) {
+ var t;
+ if (!gs(e.externalValue)) return;
+ if (!this.options.resolve.external && gs(e.externalValue))
+ return;
+ if (e.hasKey("value") && gs(e.externalValue))
+ throw new Error(
+ "ExampleElement value and externalValue fields are mutually exclusive."
+ );
+ const n = await this.toReference(
+ null === (t = e.externalValue) || void 0 === t
+ ? void 0
+ : t.toValue()
+ ),
+ r = new n.value.result.constructor(
+ n.value.result.content,
+ n.value.result.meta.clone(),
+ n.value.result.attributes.clone()
+ );
+ r.setMetaProperty("ref-origin", n.uri), (e.value = r);
+ },
+ async SchemaElement(e, t, n, r, o) {
+ var s;
+ const [i, a] = this.toAncestorLineage([...o, n]);
+ if (!gs(e.$ref)) return;
+ if (i.some((t) => t.has(e))) return !1;
+ let l = await this.toReference(Sb(this.reference.uri)),
+ { uri: c } = l;
+ const u = uw(c, e),
+ p = bb(u),
+ h = Nb({ uri: p }),
+ f = yo((e) => e.canRead(h), this.options.resolve.resolvers),
+ d = !f,
+ m = d && c !== p;
+ if (!this.options.resolve.external && m) return;
+ let g;
+ this.indirections.push(e);
+ try {
+ if (f || d) {
+ g = fw(u, hw(l.value.result));
+ } else {
+ l = await this.toReference(Sb(u));
+ const e = Hi(u);
+ g = hw(Ki(e, l.value.result));
+ }
+ } catch (e) {
+ if (!(d && e instanceof nw)) throw e;
+ if (aw(lw(u))) {
+ (l = await this.toReference(Sb(u))), (c = l.uri);
+ const e = lw(u);
+ g = cw(e, hw(l.value.result));
+ } else {
+ (l = await this.toReference(Sb(u))), (c = l.uri);
+ const e = Hi(u);
+ g = hw(Ki(e, l.value.result));
+ }
+ }
+ if (this.indirections.includes(g))
+ throw new Error(
+ "Recursive Schema Object reference detected"
+ );
+ if (
+ this.indirections.length > this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ a.add(e);
+ const y = zw({
+ reference: l,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: i,
+ });
+ if (
+ ((g = await Uw(g, y, { keyMap: Jv, nodeTypeGetter: Wv })),
+ a.delete(e),
+ this.indirections.pop(),
+ iy(g))
+ ) {
+ var v;
+ const t = g.clone();
+ return (
+ t.setMetaProperty("ref-fields", {
+ $ref:
+ null === (v = e.$ref) || void 0 === v
+ ? void 0
+ : v.toValue(),
+ }),
+ t.setMetaProperty("ref-origin", l.uri),
+ t
+ );
+ }
+ const b = new Ym(
+ [...g.content],
+ g.meta.clone(),
+ g.attributes.clone()
+ );
+ return (
+ e.forEach((e, t, n) => {
+ b.remove(t.toValue()), b.content.push(n);
+ }),
+ b.remove("$ref"),
+ b.setMetaProperty("ref-fields", {
+ $ref:
+ null === (s = e.$ref) || void 0 === s
+ ? void 0
+ : s.toValue(),
+ }),
+ b.setMetaProperty("ref-origin", l.uri),
+ b
+ );
+ },
+ },
+ }),
+ Vw = zw,
+ Ww = di[Symbol.for("nodejs.util.promisify.custom")],
+ Jw = Xs(Bw, {
+ init() {
+ this.name = "openapi-3-1";
+ },
+ methods: {
+ canDereference(e) {
+ var t;
+ return "text/plain" !== e.mediaType
+ ? nb.includes(e.mediaType)
+ : Hg(
+ null === (t = e.parseResult) || void 0 === t
+ ? void 0
+ : t.result
+ );
+ },
+ async dereference(e, t) {
+ const n = Vs(Kv),
+ r = Ar(kb(), t.dereference.refSet);
+ let o;
+ r.has(e.uri)
+ ? (o = r.find(So(e.uri, "uri")))
+ : ((o = jb({ uri: e.uri, value: e.parseResult })),
+ r.add(o));
+ const s = Vw({ reference: o, namespace: n, options: t }),
+ i = await Ww(r.rootRef.value, s, {
+ keyMap: Jv,
+ nodeTypeGetter: Wv,
+ });
+ return null === t.dereference.refSet && r.clean(), i;
+ },
+ },
+ }),
+ Kw = Jw,
+ Hw = (e) => {
+ const t = ((e) => e.slice(2))(e);
+ return t.reduce((e, n, r) => {
+ if (xs(n)) {
+ const t = String(n.key.toValue());
+ e.push(t);
+ } else if (Es(t[r - 2])) {
+ const o = t[r - 2].content.indexOf(n);
+ e.push(o);
+ }
+ return e;
+ }, []);
+ },
+ Gw = (e) => {
+ if (null == e.cause) return e;
+ let { cause: t } = e;
+ for (; null != t.cause; ) t = t.cause;
+ return t;
+ },
+ Zw = ue("SchemaRefError", function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ { wrapError: Yw } = ke,
+ Xw = di[Symbol.for("nodejs.util.promisify.custom")],
+ Qw = Vw.compose({
+ props: {
+ useCircularStructures: !0,
+ allowMetaPatches: !1,
+ basePath: null,
+ },
+ init(e) {
+ let {
+ allowMetaPatches: t = this.allowMetaPatches,
+ useCircularStructures: n = this.useCircularStructures,
+ basePath: r = this.basePath,
+ } = e;
+ (this.allowMetaPatches = t),
+ (this.useCircularStructures = n),
+ (this.basePath = r);
+ },
+ methods: {
+ async ReferenceElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (Is(["cycle"], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && ty(e)) return !1;
+ const s = await this.toReference(e.$ref.toValue()),
+ { uri: i } = s,
+ a = Eb(i, e.$ref.toValue());
+ this.indirections.push(e);
+ const l = Hi(a);
+ let c = Ki(l, s.value.result);
+ if (Cs(c)) {
+ const t = e.meta.get("referenced-element").toValue();
+ if (zc(c))
+ (c = Jm.refract(c)),
+ c.setMetaProperty("referenced-element", t);
+ else {
+ const e = this.namespace.getElementClass(t);
+ c = e.refract(c);
+ }
+ }
+ if (this.indirections.includes(c))
+ throw new Error("Recursive JSON Pointer detected");
+ if (
+ this.indirections.length >
+ this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(c))) {
+ if (gb(i) || mb(i)) {
+ const t = new Jm(
+ { $ref: a },
+ e.meta.clone(),
+ e.attributes.clone()
+ );
+ return t.get("$ref").classes.push("cycle"), t;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const u = Qw({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: t,
+ allowMetaPatches: this.allowMetaPatches,
+ useCircularStructures: this.useCircularStructures,
+ basePath: this.basePath ?? [...Hw([...o, n, e]), "$ref"],
+ });
+ (c = await Xw(c, u, { keyMap: Jv, nodeTypeGetter: Wv })),
+ r.delete(e),
+ this.indirections.pop(),
+ (c = c.clone()),
+ c.setMetaProperty("ref-fields", {
+ $ref: e.$ref?.toValue(),
+ description: e.description?.toValue(),
+ summary: e.summary?.toValue(),
+ }),
+ c.setMetaProperty("ref-origin", s.uri);
+ const p = void 0 !== e.description,
+ h = void 0 !== e.summary;
+ if (
+ (p &&
+ "description" in c &&
+ (c.description = e.description),
+ h && "summary" in c && (c.summary = e.summary),
+ this.allowMetaPatches && ws(c))
+ ) {
+ const e = c;
+ if (void 0 === e.get("$$ref")) {
+ const t = Eb(i, a);
+ e.set("$$ref", t);
+ }
+ }
+ return c;
+ } catch (t) {
+ const r = Gw(t),
+ s = Yw(r, {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ pointer: Hi(e.$ref.toValue()),
+ fullPath: this.basePath ?? [
+ ...Hw([...o, n, e]),
+ "$ref",
+ ],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ s
+ );
+ }
+ },
+ async PathItemElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (!gs(e.$ref)) return;
+ if (Is(["cycle"], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Xg(e)) return;
+ const s = await this.toReference(e.$ref.toValue()),
+ { uri: i } = s,
+ a = Eb(i, e.$ref.toValue());
+ this.indirections.push(e);
+ const l = Hi(a);
+ let c = Ki(l, s.value.result);
+ if (
+ (Cs(c) && (c = zm.refract(c)),
+ this.indirections.includes(c))
+ )
+ throw new Error("Recursive JSON Pointer detected");
+ if (
+ this.indirections.length >
+ this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(c))) {
+ if (gb(i) || mb(i)) {
+ const t = new zm(
+ { $ref: a },
+ e.meta.clone(),
+ e.attributes.clone()
+ );
+ return t.get("$ref").classes.push("cycle"), t;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const u = Qw({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: t,
+ allowMetaPatches: this.allowMetaPatches,
+ useCircularStructures: this.useCircularStructures,
+ basePath: this.basePath ?? [...Hw([...o, n, e]), "$ref"],
+ });
+ (c = await Xw(c, u, { keyMap: Jv, nodeTypeGetter: Wv })),
+ r.delete(e),
+ this.indirections.pop();
+ const p = new zm(
+ [...c.content],
+ c.meta.clone(),
+ c.attributes.clone()
+ );
+ if (
+ (e.forEach((e, t, n) => {
+ p.remove(t.toValue()), p.content.push(n);
+ }),
+ p.remove("$ref"),
+ p.setMetaProperty("ref-fields", {
+ $ref: e.$ref?.toValue(),
+ }),
+ p.setMetaProperty("ref-origin", s.uri),
+ this.allowMetaPatches && void 0 === p.get("$$ref"))
+ ) {
+ const e = Eb(i, a);
+ p.set("$$ref", e);
+ }
+ return p;
+ } catch (t) {
+ const r = Gw(t),
+ s = Yw(r, {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ pointer: Hi(e.$ref.toValue()),
+ fullPath: this.basePath ?? [
+ ...Hw([...o, n, e]),
+ "$ref",
+ ],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ s
+ );
+ }
+ },
+ async SchemaElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (!gs(e.$ref)) return;
+ if (Is(["cycle"], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ let s = await this.toReference(Sb(this.reference.uri)),
+ { uri: i } = s;
+ const a = uw(i, e),
+ l = bb(a),
+ c = Nb({ uri: l }),
+ u = !this.options.resolve.resolvers.some((e) =>
+ e.canRead(c)
+ ),
+ p = !u,
+ h = p && i !== l;
+ if (!this.options.resolve.external && h) return;
+ let f;
+ this.indirections.push(e);
+ try {
+ if (u || p) {
+ f = fw(a, hw(s.value.result));
+ } else {
+ (s = await this.toReference(Sb(a))), (i = s.uri);
+ const e = Hi(a);
+ f = hw(Ki(e, s.value.result));
+ }
+ } catch (e) {
+ if (!(p && e instanceof nw)) throw e;
+ if (aw(lw(a))) {
+ (s = await this.toReference(Sb(a))), (i = s.uri);
+ const e = lw(a);
+ f = cw(e, hw(s.value.result));
+ } else {
+ (s = await this.toReference(Sb(a))), (i = s.uri);
+ const e = Hi(a);
+ f = hw(Ki(e, s.value.result));
+ }
+ }
+ if (this.indirections.includes(f))
+ throw new Error(
+ "Recursive Schema Object reference detected"
+ );
+ if (
+ this.indirections.length >
+ this.options.dereference.maxDepth
+ )
+ throw new Zb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(f))) {
+ if (gb(i) || mb(i)) {
+ const t = Eb(i, a),
+ n = new Ym(
+ { $ref: t },
+ e.meta.clone(),
+ e.attributes.clone()
+ );
+ return n.get("$ref").classes.push("cycle"), n;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const d = Qw({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ useCircularStructures: this.useCircularStructures,
+ allowMetaPatches: this.allowMetaPatches,
+ ancestors: t,
+ basePath: this.basePath ?? [...Hw([...o, n, e]), "$ref"],
+ });
+ if (
+ ((f = await Xw(f, d, { keyMap: Jv, nodeTypeGetter: Wv })),
+ r.delete(e),
+ this.indirections.pop(),
+ iy(f))
+ ) {
+ const t = f.clone();
+ return (
+ t.setMetaProperty("ref-fields", {
+ $ref: e.$ref?.toValue(),
+ }),
+ t.setMetaProperty("ref-origin", i),
+ t
+ );
+ }
+ const m = new Ym(
+ [...f.content],
+ f.meta.clone(),
+ f.attributes.clone()
+ );
+ if (
+ (e.forEach((e, t, n) => {
+ m.remove(t.toValue()), m.content.push(n);
+ }),
+ m.remove("$ref"),
+ m.setMetaProperty("ref-fields", {
+ $ref: e.$ref?.toValue(),
+ }),
+ m.setMetaProperty("ref-origin", i),
+ this.allowMetaPatches && void 0 === m.get("$$ref"))
+ ) {
+ const e = Eb(i, a);
+ m.set("$$ref", e);
+ }
+ return m;
+ } catch (t) {
+ const r = Gw(t),
+ s = new Zw(
+ `Could not resolve reference: ${r.message}`,
+ {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ fullPath: this.basePath ?? [
+ ...Hw([...o, n, e]),
+ "$ref",
+ ],
+ },
+ r
+ );
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ s
+ );
+ }
+ },
+ async LinkElement() {},
+ async ExampleElement(e, t, n, r, o) {
+ try {
+ return await Vw.compose.methods.ExampleElement.call(
+ this,
+ e,
+ t,
+ n,
+ r,
+ o
+ );
+ } catch (t) {
+ const r = Gw(t),
+ s = Yw(r, {
+ baseDoc: this.reference.uri,
+ externalValue: e.externalValue?.toValue(),
+ fullPath: this.basePath ?? [
+ ...Hw([...o, n, e]),
+ "externalValue",
+ ],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ s
+ );
+ }
+ },
+ },
+ }),
+ eE = Qw,
+ tE = Kw.compose.bind(),
+ nE = tE({
+ init(e) {
+ let { parameterMacro: t, options: n } = e;
+ (this.parameterMacro = t), (this.options = n);
+ },
+ props: {
+ parameterMacro: null,
+ options: null,
+ macroOperation: null,
+ OperationElement: {
+ enter(e) {
+ this.macroOperation = e;
+ },
+ leave() {
+ this.macroOperation = null;
+ },
+ },
+ ParameterElement: {
+ leave(e, t, n, r, o) {
+ const s =
+ null === this.macroOperation
+ ? null
+ : Ri(this.macroOperation),
+ i = Ri(e);
+ try {
+ const t = this.parameterMacro(s, i);
+ e.set("default", t);
+ } catch (e) {
+ const t = new Error(e, { cause: e });
+ (t.fullPath = Hw([...o, n])),
+ this.options.dereference.dereferenceOpts?.errors?.push?.(
+ t
+ );
+ }
+ },
+ },
+ },
+ }),
+ rE = tE({
+ init(e) {
+ let { modelPropertyMacro: t, options: n } = e;
+ (this.modelPropertyMacro = t), (this.options = n);
+ },
+ props: {
+ modelPropertyMacro: null,
+ options: null,
+ SchemaElement: {
+ leave(e, t, n, r, o) {
+ void 0 !== e.properties &&
+ ws(e.properties) &&
+ e.properties.forEach((t) => {
+ if (ws(t))
+ try {
+ const e = this.modelPropertyMacro(Ri(t));
+ t.set("default", e);
+ } catch (t) {
+ const r = new Error(t, { cause: t });
+ (r.fullPath = [...Hw([...o, n, e]), "properties"]),
+ this.options.dereference.dereferenceOpts?.errors?.push?.(
+ r
+ );
+ }
+ });
+ },
+ },
+ },
+ });
+ function oE(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function sE(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? oE(Object(n), !0).forEach(function (t) {
+ Qo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : oE(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ const iE = (e) => {
+ const t = e.meta.clone(),
+ n = e.attributes.clone();
+ return new e.constructor(void 0, t, n);
+ },
+ aE = (e) =>
+ new Nt.c6(e.key, e.value, e.meta.clone(), e.attributes.clone()),
+ lE = (e, t) =>
+ t.clone && t.isMergeableElement(e) ? pE(iE(e), e, t) : e,
+ cE = (e, t, n) => e.concat(t)["fantasy-land/map"]((e) => lE(e, n)),
+ uE = (e, t, n) => {
+ const r = ws(e) ? iE(e) : iE(t);
+ return (
+ ws(e) &&
+ e.forEach((e, t, o) => {
+ const s = aE(o);
+ (s.value = lE(e, n)), r.content.push(s);
+ }),
+ t.forEach((t, o, s) => {
+ const i = o.toValue();
+ let a;
+ if (ws(e) && e.hasKey(i) && n.isMergeableElement(t)) {
+ const r = e.get(i);
+ (a = aE(s)),
+ (a.value = ((e, t) => {
+ if ("function" != typeof t.customMerge) return pE;
+ const n = t.customMerge(e, t);
+ return "function" == typeof n ? n : pE;
+ })(o, n)(r, t));
+ } else (a = aE(s)), (a.value = lE(t, n));
+ r.remove(i), r.content.push(a);
+ }),
+ r
+ );
+ };
+ function pE(e, t, n) {
+ var r, o, s;
+ const i = {
+ clone: !0,
+ isMergeableElement: (e) => ws(e) || Es(e),
+ arrayElementMerge: cE,
+ objectElementMerge: uE,
+ customMerge: void 0,
+ },
+ a = sE(sE({}, i), n);
+ (a.isMergeableElement =
+ null !== (r = a.isMergeableElement) && void 0 !== r
+ ? r
+ : i.isMergeableElement),
+ (a.arrayElementMerge =
+ null !== (o = a.arrayElementMerge) && void 0 !== o
+ ? o
+ : i.arrayElementMerge),
+ (a.objectElementMerge =
+ null !== (s = a.objectElementMerge) && void 0 !== s
+ ? s
+ : i.objectElementMerge);
+ const l = Es(t);
+ return l === Es(e)
+ ? l && "function" == typeof a.arrayElementMerge
+ ? a.arrayElementMerge(e, t, a)
+ : a.objectElementMerge(e, t, a)
+ : lE(t, a);
+ }
+ pE.all = (e, t) => {
+ if (!Array.isArray(e))
+ throw new Error("first argument should be an array");
+ return 0 === e.length
+ ? new Nt.Sb()
+ : e.reduce((e, n) => pE(e, n, t), iE(e[0]));
+ };
+ const hE = tE({
+ init(e) {
+ let { options: t } = e;
+ this.options = t;
+ },
+ props: {
+ options: null,
+ SchemaElement: {
+ leave(e, t, n, r, o) {
+ if (void 0 === e.allOf) return;
+ if (!Es(e.allOf)) {
+ const t = new TypeError("allOf must be an array");
+ return (
+ (t.fullPath = [...Hw([...o, n, e]), "allOf"]),
+ void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ t
+ )
+ );
+ }
+ if (e.allOf.isEmpty)
+ return new Ym(
+ e.content.filter((e) => "allOf" !== e.key.toValue()),
+ e.meta.clone(),
+ e.attributes.clone()
+ );
+ if (!e.allOf.content.every(sy)) {
+ const t = new TypeError(
+ "Elements in allOf must be objects"
+ );
+ return (
+ (t.fullPath = [...Hw([...o, n, e]), "allOf"]),
+ void this.options.dereference.dereferenceOpts?.errors?.push?.(
+ t
+ )
+ );
+ }
+ const s = pE.all([...e.allOf.content, e]);
+ if (
+ (e.hasKey("$$ref") || s.remove("$$ref"),
+ e.hasKey("example"))
+ ) {
+ s.getMember("example").value = e.get("example");
+ }
+ if (e.hasKey("examples")) {
+ s.getMember("examples").value = e.get("examples");
+ }
+ return s.remove("allOf"), s;
+ },
+ },
+ },
+ }),
+ fE = di[Symbol.for("nodejs.util.promisify.custom")],
+ dE = Kw.compose({
+ props: {
+ useCircularStructures: !0,
+ allowMetaPatches: !1,
+ parameterMacro: null,
+ modelPropertyMacro: null,
+ mode: "non-strict",
+ ancestors: null,
+ },
+ init() {
+ let {
+ useCircularStructures: e = this.useCircularStructures,
+ allowMetaPatches: t = this.allowMetaPatches,
+ parameterMacro: n = this.parameterMacro,
+ modelPropertyMacro: r = this.modelPropertyMacro,
+ mode: o = this.mode,
+ ancestors: s = [],
+ } = arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : {};
+ (this.name = "openapi-3-1-swagger-client"),
+ (this.useCircularStructures = e),
+ (this.allowMetaPatches = t),
+ (this.parameterMacro = n),
+ (this.modelPropertyMacro = r),
+ (this.mode = o),
+ (this.ancestors = [...s]);
+ },
+ methods: {
+ async dereference(e, t) {
+ const n = [],
+ r = Vs(Kv),
+ o = t.dereference.refSet ?? kb();
+ let s;
+ o.has(e.uri)
+ ? (s = o.find((t) => t.uri === e.uri))
+ : ((s = jb({ uri: e.uri, value: e.parseResult })),
+ o.add(s));
+ const i = eE({
+ reference: s,
+ namespace: r,
+ options: t,
+ useCircularStructures: this.useCircularStructures,
+ allowMetaPatches: this.allowMetaPatches,
+ ancestors: this.ancestors,
+ });
+ if ((n.push(i), "function" == typeof this.parameterMacro)) {
+ const e = nE({
+ parameterMacro: this.parameterMacro,
+ options: t,
+ });
+ n.push(e);
+ }
+ if ("function" == typeof this.modelPropertyMacro) {
+ const e = rE({
+ modelPropertyMacro: this.modelPropertyMacro,
+ options: t,
+ });
+ n.push(e);
+ }
+ if ("strict" !== this.mode) {
+ const e = hE({ options: t });
+ n.push(e);
+ }
+ const a = oi(n, { nodeTypeGetter: Wv }),
+ l = await fE(o.rootRef.value, a, {
+ keyMap: Jv,
+ nodeTypeGetter: Wv,
+ });
+ return null === t.dereference.refSet && o.clean(), l;
+ },
+ },
+ }),
+ mE = dE,
+ gE = async (e) => {
+ const {
+ spec: t,
+ timeout: n,
+ redirects: r,
+ requestInterceptor: o,
+ responseInterceptor: s,
+ pathDiscriminator: i = [],
+ allowMetaPatches: a = !1,
+ useCircularStructures: l = !1,
+ skipNormalization: c = !1,
+ parameterMacro: u = null,
+ modelPropertyMacro: p = null,
+ mode: h = "non-strict",
+ } = e;
+ try {
+ const { cache: d } = gE,
+ m = gb(wb()) ? wb() : "https://smartbear.com/",
+ g = xt(e),
+ y = Eb(m, g);
+ let v;
+ d.has(t)
+ ? (v = d.get(t))
+ : ((v = $m.refract(t)),
+ v.classes.push("result"),
+ d.set(t, v));
+ const b = new Vo([v]),
+ w = 0 === (f = i).length ? "" : `/${f.map(Wi).join("/")}`,
+ E = "" === w ? "" : `#${w}`,
+ x = Ki(w, v),
+ S = jb({ uri: y, value: b }),
+ _ = kb({ refs: [S] });
+ "" !== w && (_.rootRef = null);
+ const j = [new WeakSet([x])],
+ O = [],
+ k = ((e, t, n) => xi({ element: n }).transclude(e, t))(
+ x,
+ await qb(x, {
+ resolve: {
+ baseURI: `${y}${E}`,
+ resolvers: [
+ Rw({ timeout: n || 1e4, redirects: r || 10 }),
+ ],
+ resolverOpts: {
+ swaggerHTTPClientConfig: {
+ requestInterceptor: o,
+ responseInterceptor: s,
+ },
+ },
+ strategies: [Ew()],
+ },
+ parse: {
+ mediaType: nb.latest(),
+ parsers: [
+ Fw({ allowEmpty: !1, sourceMap: !1 }),
+ Lw({ allowEmpty: !1, sourceMap: !1 }),
+ Mw({ allowEmpty: !1, sourceMap: !1 }),
+ Dw({ allowEmpty: !1, sourceMap: !1 }),
+ Wb({ allowEmpty: !1, sourceMap: !1 }),
+ ],
+ },
+ dereference: {
+ maxDepth: 100,
+ strategies: [
+ mE({
+ allowMetaPatches: a,
+ useCircularStructures: l,
+ parameterMacro: u,
+ modelPropertyMacro: p,
+ mode: h,
+ ancestors: j,
+ }),
+ ],
+ refSet: _,
+ dereferenceOpts: { errors: O },
+ },
+ }),
+ v
+ ),
+ A = c ? k : Iw(k);
+ return { spec: Ri(A), errors: O };
+ } catch (e) {
+ if (e instanceof zi || e instanceof Vi)
+ return { spec: null, errors: [] };
+ throw e;
+ }
+ var f;
+ };
+ gE.cache = new WeakMap();
+ const yE = gE,
+ vE = {
+ name: "openapi-3-1-apidom",
+ match(e) {
+ let { spec: t } = e;
+ return kt(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ return Nw(Iw)(t);
+ },
+ resolve: async (e) => yE(e),
+ },
+ bE = (e) => async (t) =>
+ (async (e) => {
+ const {
+ spec: t,
+ requestInterceptor: n,
+ responseInterceptor: r,
+ } = e,
+ o = xt(e),
+ s = St(e),
+ i =
+ t ||
+ (await Ze(s, {
+ requestInterceptor: n,
+ responseInterceptor: r,
+ })(o)),
+ a = f()(f()({}, e), {}, { spec: i });
+ return e.strategies.find((e) => e.match(a)).resolve(a);
+ })(f()(f()({}, e), t)),
+ wE = bE({ strategies: [Pt, Ct, jt] });
+ var EE = n(88436),
+ xE = n.n(EE),
+ SE = n(27361),
+ _E = n.n(SE),
+ jE = n(76489);
+ function OE(e) {
+ return "[object Object]" === Object.prototype.toString.call(e);
+ }
+ function kE(e) {
+ var t, n;
+ return (
+ !1 !== OE(e) &&
+ (void 0 === (t = e.constructor) ||
+ (!1 !== OE((n = t.prototype)) &&
+ !1 !== n.hasOwnProperty("isPrototypeOf")))
+ );
+ }
+ const AE = {
+ body: function (e) {
+ let { req: t, value: n } = e;
+ t.body = n;
+ },
+ header: function (e) {
+ let { req: t, parameter: n, value: r } = e;
+ (t.headers = t.headers || {}),
+ void 0 !== r && (t.headers[n.name] = r);
+ },
+ query: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ (t.query = t.query || {}),
+ !1 === n && "boolean" === r.type && (n = "false");
+ 0 === n &&
+ ["number", "integer"].indexOf(r.type) > -1 &&
+ (n = "0");
+ if (n)
+ t.query[r.name] = {
+ collectionFormat: r.collectionFormat,
+ value: n,
+ };
+ else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}),
+ (t.query[e].allowEmptyValue = !0);
+ }
+ },
+ path: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ t.url = t.url.split(`{${r.name}}`).join(encodeURIComponent(n));
+ },
+ formData: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ (n || r.allowEmptyValue) &&
+ ((t.form = t.form || {}),
+ (t.form[r.name] = {
+ value: n,
+ allowEmptyValue: r.allowEmptyValue,
+ collectionFormat: r.collectionFormat,
+ }));
+ },
+ };
+ function CE(e, t) {
+ return t.includes("application/json")
+ ? "string" == typeof e
+ ? e
+ : JSON.stringify(e)
+ : e.toString();
+ }
+ function PE(e) {
+ let { req: t, value: n, parameter: r } = e;
+ const { name: o, style: s, explode: i, content: a } = r;
+ if (a) {
+ const e = Object.keys(a)[0];
+ return void (t.url = t.url
+ .split(`{${o}}`)
+ .join(st(CE(n, e), { escape: !0 })));
+ }
+ const l = it({
+ key: r.name,
+ value: n,
+ style: s || "simple",
+ explode: i || !1,
+ escape: !0,
+ });
+ t.url = t.url.split(`{${o}}`).join(l);
+ }
+ function NE(e) {
+ let { req: t, value: n, parameter: r } = e;
+ if (((t.query = t.query || {}), r.content)) {
+ const e = CE(n, Object.keys(r.content)[0]);
+ if (e) t.query[r.name] = e;
+ else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}),
+ (t.query[e].allowEmptyValue = !0);
+ }
+ } else if ((!1 === n && (n = "false"), 0 === n && (n = "0"), n)) {
+ const { style: e, explode: o, allowReserved: s } = r;
+ t.query[r.name] = {
+ value: n,
+ serializationOption: { style: e, explode: o, allowReserved: s },
+ };
+ } else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}),
+ (t.query[e].allowEmptyValue = !0);
+ }
+ }
+ const IE = ["accept", "authorization", "content-type"];
+ function TE(e) {
+ let { req: t, parameter: n, value: r } = e;
+ if (
+ ((t.headers = t.headers || {}),
+ !(IE.indexOf(n.name.toLowerCase()) > -1))
+ )
+ if (n.content) {
+ const e = Object.keys(n.content)[0];
+ t.headers[n.name] = CE(r, e);
+ } else
+ void 0 !== r &&
+ (t.headers[n.name] = it({
+ key: n.name,
+ value: r,
+ style: n.style || "simple",
+ explode: void 0 !== n.explode && n.explode,
+ escape: !1,
+ }));
+ }
+ function RE(e) {
+ let { req: t, parameter: n, value: r } = e;
+ t.headers = t.headers || {};
+ const o = typeof r;
+ if (n.content) {
+ const e = Object.keys(n.content)[0];
+ t.headers.Cookie = `${n.name}=${CE(r, e)}`;
+ } else if ("undefined" !== o) {
+ const e =
+ "object" === o && !Array.isArray(r) && n.explode
+ ? ""
+ : `${n.name}=`;
+ t.headers.Cookie =
+ e +
+ it({
+ key: n.name,
+ value: r,
+ escape: !1,
+ style: n.style || "form",
+ explode: void 0 !== n.explode && n.explode,
+ });
+ }
+ }
+ const ME =
+ "undefined" != typeof globalThis
+ ? globalThis
+ : "undefined" != typeof self
+ ? self
+ : window,
+ { btoa: DE } = ME,
+ FE = DE;
+ function LE(e, t) {
+ const {
+ operation: n,
+ requestBody: r,
+ securities: o,
+ spec: s,
+ attachContentTypeForEmptyPayload: i,
+ } = e;
+ let { requestContentType: a } = e;
+ t = (function (e) {
+ let {
+ request: t,
+ securities: n = {},
+ operation: r = {},
+ spec: o,
+ } = e;
+ const s = f()({}, t),
+ { authorized: i = {} } = n,
+ a = r.security || o.security || [],
+ l = i && !!Object.keys(i).length,
+ c = _E()(o, ["components", "securitySchemes"]) || {};
+ if (
+ ((s.headers = s.headers || {}),
+ (s.query = s.query || {}),
+ !Object.keys(n).length ||
+ !l ||
+ !a ||
+ (Array.isArray(r.security) && !r.security.length))
+ )
+ return t;
+ return (
+ a.forEach((e) => {
+ Object.keys(e).forEach((e) => {
+ const t = i[e],
+ n = c[e];
+ if (!t) return;
+ const r = t.value || t,
+ { type: o } = n;
+ if (t)
+ if ("apiKey" === o)
+ "query" === n.in && (s.query[n.name] = r),
+ "header" === n.in && (s.headers[n.name] = r),
+ "cookie" === n.in && (s.cookies[n.name] = r);
+ else if ("http" === o) {
+ if (/^basic$/i.test(n.scheme)) {
+ const e = r.username || "",
+ t = r.password || "",
+ n = FE(`${e}:${t}`);
+ s.headers.Authorization = `Basic ${n}`;
+ }
+ /^bearer$/i.test(n.scheme) &&
+ (s.headers.Authorization = `Bearer ${r}`);
+ } else if ("oauth2" === o || "openIdConnect" === o) {
+ const e = t.token || {},
+ r = e[n["x-tokenName"] || "access_token"];
+ let o = e.token_type;
+ (o && "bearer" !== o.toLowerCase()) || (o = "Bearer"),
+ (s.headers.Authorization = `${o} ${r}`);
+ }
+ });
+ }),
+ s
+ );
+ })({ request: t, securities: o, operation: n, spec: s });
+ const l = n.requestBody || {},
+ c = Object.keys(l.content || {}),
+ u = a && c.indexOf(a) > -1;
+ if (r || i) {
+ if (a && u) t.headers["Content-Type"] = a;
+ else if (!a) {
+ const e = c[0];
+ e && ((t.headers["Content-Type"] = e), (a = e));
+ }
+ } else a && u && (t.headers["Content-Type"] = a);
+ if (!e.responseContentType && n.responses) {
+ const e = Object.entries(n.responses)
+ .filter((e) => {
+ let [t, n] = e;
+ const r = parseInt(t, 10);
+ return r >= 200 && r < 300 && kE(n.content);
+ })
+ .reduce((e, t) => {
+ let [, n] = t;
+ return e.concat(Object.keys(n.content));
+ }, []);
+ e.length > 0 && (t.headers.accept = e.join(", "));
+ }
+ if (r)
+ if (a) {
+ if (c.indexOf(a) > -1)
+ if (
+ "application/x-www-form-urlencoded" === a ||
+ "multipart/form-data" === a
+ )
+ if ("object" == typeof r) {
+ const e = l.content[a]?.encoding ?? {};
+ (t.form = {}),
+ Object.keys(r).forEach((n) => {
+ t.form[n] = { value: r[n], encoding: e[n] || {} };
+ });
+ } else t.form = r;
+ else t.body = r;
+ } else t.body = r;
+ return t;
+ }
+ function BE(e, t) {
+ const {
+ spec: n,
+ operation: r,
+ securities: o,
+ requestContentType: s,
+ responseContentType: i,
+ attachContentTypeForEmptyPayload: a,
+ } = e;
+ if (
+ ((t = (function (e) {
+ let {
+ request: t,
+ securities: n = {},
+ operation: r = {},
+ spec: o,
+ } = e;
+ const s = f()({}, t),
+ { authorized: i = {}, specSecurity: a = [] } = n,
+ l = r.security || a,
+ c = i && !!Object.keys(i).length,
+ u = o.securityDefinitions;
+ if (
+ ((s.headers = s.headers || {}),
+ (s.query = s.query || {}),
+ !Object.keys(n).length ||
+ !c ||
+ !l ||
+ (Array.isArray(r.security) && !r.security.length))
+ )
+ return t;
+ return (
+ l.forEach((e) => {
+ Object.keys(e).forEach((e) => {
+ const t = i[e];
+ if (!t) return;
+ const { token: n } = t,
+ r = t.value || t,
+ o = u[e],
+ { type: a } = o,
+ l = o["x-tokenName"] || "access_token",
+ c = n && n[l];
+ let p = n && n.token_type;
+ if (t)
+ if ("apiKey" === a) {
+ const e = "query" === o.in ? "query" : "headers";
+ (s[e] = s[e] || {}), (s[e][o.name] = r);
+ } else if ("basic" === a)
+ if (r.header) s.headers.authorization = r.header;
+ else {
+ const e = r.username || "",
+ t = r.password || "";
+ (r.base64 = FE(`${e}:${t}`)),
+ (s.headers.authorization = `Basic ${r.base64}`);
+ }
+ else
+ "oauth2" === a &&
+ c &&
+ ((p =
+ p && "bearer" !== p.toLowerCase() ? p : "Bearer"),
+ (s.headers.authorization = `${p} ${c}`));
+ });
+ }),
+ s
+ );
+ })({ request: t, securities: o, operation: r, spec: n })),
+ t.body || t.form || a)
+ )
+ s
+ ? (t.headers["Content-Type"] = s)
+ : Array.isArray(r.consumes)
+ ? ([t.headers["Content-Type"]] = r.consumes)
+ : Array.isArray(n.consumes)
+ ? ([t.headers["Content-Type"]] = n.consumes)
+ : r.parameters &&
+ r.parameters.filter((e) => "file" === e.type).length
+ ? (t.headers["Content-Type"] = "multipart/form-data")
+ : r.parameters &&
+ r.parameters.filter((e) => "formData" === e.in).length &&
+ (t.headers["Content-Type"] =
+ "application/x-www-form-urlencoded");
+ else if (s) {
+ const e =
+ r.parameters &&
+ r.parameters.filter((e) => "body" === e.in).length > 0,
+ n =
+ r.parameters &&
+ r.parameters.filter((e) => "formData" === e.in).length > 0;
+ (e || n) && (t.headers["Content-Type"] = s);
+ }
+ return (
+ !i &&
+ Array.isArray(r.produces) &&
+ r.produces.length > 0 &&
+ (t.headers.accept = r.produces.join(", ")),
+ t
+ );
+ }
+ function $E(e, t) {
+ return `${t.toLowerCase()}-${e}`;
+ }
+ const qE = [
+ "http",
+ "fetch",
+ "spec",
+ "operationId",
+ "pathName",
+ "method",
+ "parameters",
+ "securities",
+ ],
+ UE = (e) => (Array.isArray(e) ? e : []),
+ zE = ue("OperationNotFoundError", function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ VE = (e, t) => t.filter((t) => t.name === e),
+ WE = (e) => {
+ const t = {};
+ e.forEach((e) => {
+ t[e.in] || (t[e.in] = {}), (t[e.in][e.name] = e);
+ });
+ const n = [];
+ return (
+ Object.keys(t).forEach((e) => {
+ Object.keys(t[e]).forEach((r) => {
+ n.push(t[e][r]);
+ });
+ }),
+ n
+ );
+ },
+ JE = { buildRequest: HE };
+ function KE(e) {
+ let {
+ http: t,
+ fetch: n,
+ spec: r,
+ operationId: o,
+ pathName: s,
+ method: i,
+ parameters: a,
+ securities: l,
+ } = e,
+ c = xE()(e, qE);
+ const u = t || n || ct;
+ s && i && !o && (o = $E(s, i));
+ const p = JE.buildRequest(
+ f()(
+ {
+ spec: r,
+ operationId: o,
+ parameters: a,
+ securities: l,
+ http: u,
+ },
+ c
+ )
+ );
+ return (
+ p.body &&
+ (kE(p.body) || Array.isArray(p.body)) &&
+ (p.body = JSON.stringify(p.body)),
+ u(p)
+ );
+ }
+ function HE(e) {
+ const {
+ spec: t,
+ operationId: n,
+ responseContentType: r,
+ scheme: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ contextUrl: a,
+ userFetch: l,
+ server: c,
+ serverVariables: p,
+ http: h,
+ signal: d,
+ } = e;
+ let { parameters: m, parameterBuilders: g } = e;
+ const y = At(t);
+ g || (g = y ? u : AE);
+ let v = {
+ url: "",
+ credentials: h && h.withCredentials ? "include" : "same-origin",
+ headers: {},
+ cookies: {},
+ };
+ d && (v.signal = d),
+ s && (v.requestInterceptor = s),
+ i && (v.responseInterceptor = i),
+ l && (v.userFetch = l);
+ const b = (function (e, t) {
+ return e && e.paths
+ ? (function (e, t) {
+ return (
+ (function (e, t, n) {
+ if (
+ !e ||
+ "object" != typeof e ||
+ !e.paths ||
+ "object" != typeof e.paths
+ )
+ return null;
+ const { paths: r } = e;
+ for (const o in r)
+ for (const s in r[o]) {
+ if ("PARAMETERS" === s.toUpperCase()) continue;
+ const i = r[o][s];
+ if (!i || "object" != typeof i) continue;
+ const a = {
+ spec: e,
+ pathName: o,
+ method: s.toUpperCase(),
+ operation: i,
+ },
+ l = t(a);
+ if (n && l) return a;
+ }
+ })(e, t, !0) || null
+ );
+ })(e, (e) => {
+ let { pathName: n, method: r, operation: o } = e;
+ if (!o || "object" != typeof o) return !1;
+ const s = o.operationId;
+ return [(0, He.Z)(o, n, r), $E(n, r), s].some(
+ (e) => e && e === t
+ );
+ })
+ : null;
+ })(t, n);
+ if (!b) throw new zE(`Operation ${n} not found`);
+ const { operation: w = {}, method: E, pathName: x } = b;
+ if (
+ ((v.url += (function (e) {
+ const t = At(e.spec);
+ return t
+ ? (function (e) {
+ let {
+ spec: t,
+ pathName: n,
+ method: r,
+ server: o,
+ contextUrl: s,
+ serverVariables: i = {},
+ } = e;
+ const a =
+ _E()(t, [
+ "paths",
+ n,
+ (r || "").toLowerCase(),
+ "servers",
+ ]) ||
+ _E()(t, ["paths", n, "servers"]) ||
+ _E()(t, ["servers"]);
+ let l = "",
+ c = null;
+ if (o && a && a.length) {
+ const e = a.map((e) => e.url);
+ e.indexOf(o) > -1 && ((l = o), (c = a[e.indexOf(o)]));
+ }
+ !l && a && a.length && ((l = a[0].url), ([c] = a));
+ if (l.indexOf("{") > -1) {
+ (function (e) {
+ const t = [],
+ n = /{([^}]+)}/g;
+ let r;
+ for (; (r = n.exec(e)); ) t.push(r[1]);
+ return t;
+ })(l).forEach((e) => {
+ if (c.variables && c.variables[e]) {
+ const t = c.variables[e],
+ n = i[e] || t.default,
+ r = new RegExp(`{${e}}`, "g");
+ l = l.replace(r, n);
+ }
+ });
+ }
+ return (function () {
+ let e =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : "",
+ t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : "";
+ const n =
+ e && t ? ce.parse(ce.resolve(t, e)) : ce.parse(e),
+ r = ce.parse(t),
+ o = GE(n.protocol) || GE(r.protocol) || "",
+ s = n.host || r.host,
+ i = n.pathname || "";
+ let a;
+ a = o && s ? `${o}://${s + i}` : i;
+ return "/" === a[a.length - 1] ? a.slice(0, -1) : a;
+ })(l, s);
+ })(e)
+ : (function (e) {
+ let { spec: t, scheme: n, contextUrl: r = "" } = e;
+ const o = ce.parse(r),
+ s = Array.isArray(t.schemes) ? t.schemes[0] : null,
+ i = n || s || GE(o.protocol) || "http",
+ a = t.host || o.host || "",
+ l = t.basePath || "";
+ let c;
+ c = i && a ? `${i}://${a + l}` : l;
+ return "/" === c[c.length - 1] ? c.slice(0, -1) : c;
+ })(e);
+ })({
+ spec: t,
+ scheme: o,
+ contextUrl: a,
+ server: c,
+ serverVariables: p,
+ pathName: x,
+ method: E,
+ })),
+ !n)
+ )
+ return delete v.cookies, v;
+ (v.url += x), (v.method = `${E}`.toUpperCase()), (m = m || {});
+ const S = t.paths[x] || {};
+ r && (v.headers.accept = r);
+ const _ = WE([].concat(UE(w.parameters)).concat(UE(S.parameters)));
+ _.forEach((e) => {
+ const n = g[e.in];
+ let r;
+ if (
+ ("body" === e.in && e.schema && e.schema.properties && (r = m),
+ (r = e && e.name && m[e.name]),
+ void 0 === r
+ ? (r = e && e.name && m[`${e.in}.${e.name}`])
+ : VE(e.name, _).length > 1 &&
+ console.warn(
+ `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`
+ ),
+ null !== r)
+ ) {
+ if (
+ (void 0 !== e.default && void 0 === r && (r = e.default),
+ void 0 === r && e.required && !e.allowEmptyValue)
+ )
+ throw new Error(
+ `Required parameter ${e.name} is not provided`
+ );
+ if (
+ y &&
+ e.schema &&
+ "object" === e.schema.type &&
+ "string" == typeof r
+ )
+ try {
+ r = JSON.parse(r);
+ } catch (e) {
+ throw new Error(
+ "Could not parse object parameter value string as JSON"
+ );
+ }
+ n &&
+ n({ req: v, parameter: e, value: r, operation: w, spec: t });
+ }
+ });
+ const j = f()(f()({}, e), {}, { operation: w });
+ if (
+ ((v = y ? LE(j, v) : BE(j, v)),
+ v.cookies && Object.keys(v.cookies).length)
+ ) {
+ const e = Object.keys(v.cookies).reduce((e, t) => {
+ const n = v.cookies[t];
+ return e + (e ? "&" : "") + jE.serialize(t, n);
+ }, "");
+ v.headers.Cookie = e;
+ }
+ return v.cookies && delete v.cookies, Et(v), v;
+ }
+ const GE = (e) => (e ? e.replace(/\W/g, "") : null);
+ const ZE = (e) =>
+ async function (t, n) {
+ let r =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ return (async function (e, t) {
+ let n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ const {
+ returnEntireTree: r,
+ baseDoc: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ parameterMacro: a,
+ modelPropertyMacro: l,
+ useCircularStructures: c,
+ strategies: u,
+ } = n,
+ p = {
+ spec: e,
+ pathDiscriminator: t,
+ baseDoc: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ parameterMacro: a,
+ modelPropertyMacro: l,
+ useCircularStructures: c,
+ strategies: u,
+ },
+ h = u.find((e) => e.match(p)).normalize(p),
+ d = await wE(
+ f()(
+ f()({}, p),
+ {},
+ { spec: h, allowMetaPatches: !0, skipNormalization: !0 }
+ )
+ );
+ return (
+ !r &&
+ Array.isArray(t) &&
+ t.length &&
+ (d.spec = _E()(d.spec, t) || null),
+ d
+ );
+ })(t, n, f()(f()({}, e), r));
+ };
+ ZE({ strategies: [Pt, Ct, jt] });
+ var YE = n(34852);
+ function XE(e) {
+ let { configs: t, getConfigs: n } = e;
+ return {
+ fn: {
+ fetch:
+ ((r = ct),
+ (o = t.preFetch),
+ (s = t.postFetch),
+ (s = s || ((e) => e)),
+ (o = o || ((e) => e)),
+ (e) => (
+ "string" == typeof e && (e = { url: e }),
+ lt.mergeInQueryOrForm(e),
+ (e = o(e)),
+ s(r(e))
+ )),
+ buildRequest: HE,
+ execute: KE,
+ resolve: bE({ strategies: [vE, Pt, Ct, jt] }),
+ resolveSubtree: async function (e, t) {
+ let r =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ const o = n(),
+ s = {
+ modelPropertyMacro: o.modelPropertyMacro,
+ parameterMacro: o.parameterMacro,
+ requestInterceptor: o.requestInterceptor,
+ responseInterceptor: o.responseInterceptor,
+ strategies: [vE, Pt, Ct, jt],
+ };
+ return ZE(s)(e, t, r);
+ },
+ serializeRes: pt,
+ opId: He.Z,
+ },
+ statePlugins: { configs: { wrapActions: { loaded: YE.loaded } } },
+ };
+ var r, o, s;
+ }
+ },
+ 98525: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(90242);
+ function o() {
+ return { fn: { shallowEqualKeys: r.be } };
+ }
+ },
+ 48347: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { getDisplayName: () => r });
+ const r = (e) => e.displayName || e.name || "Component";
+ },
+ 73420: (e, t, n) => {
+ "use strict";
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(90242),
+ i = n(11092),
+ a = n(48347),
+ l = n(60314);
+ const c = (e) => {
+ let { getComponents: t, getStore: n, getSystem: r } = e;
+ const c =
+ ((u = (0, i.getComponent)(r, n, t)),
+ (0, s.HP)(u, function () {
+ for (
+ var e = arguments.length, t = new Array(e), n = 0;
+ n < e;
+ n++
+ )
+ t[n] = arguments[n];
+ return o()(t);
+ }));
+ var u;
+ const p = ((e) =>
+ (0, l.Z)(e, function () {
+ for (
+ var e = arguments.length, t = new Array(e), n = 0;
+ n < e;
+ n++
+ )
+ t[n] = arguments[n];
+ return t;
+ }))((0, i.withMappedContainer)(r, n, c));
+ return {
+ rootInjects: {
+ getComponent: c,
+ makeMappedContainer: p,
+ render: (0, i.render)(r, n, i.getComponent, t),
+ },
+ fn: { getDisplayName: a.getDisplayName },
+ };
+ };
+ },
+ 11092: (e, t, n) => {
+ "use strict";
+ n.r(t),
+ n.d(t, {
+ getComponent: () => te,
+ render: () => ee,
+ withMappedContainer: () => Q,
+ });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(67294),
+ l = n(73935),
+ c = n(97779),
+ u = n(61688),
+ p = n(52798);
+ let h = function (e) {
+ e();
+ };
+ const f = () => h,
+ d = Symbol.for("react-redux-context"),
+ m = "undefined" != typeof globalThis ? globalThis : {};
+ function g() {
+ var e;
+ if (!a.createContext) return {};
+ const t = null != (e = m[d]) ? e : (m[d] = new Map());
+ let n = t.get(a.createContext);
+ return (
+ n || ((n = a.createContext(null)), t.set(a.createContext, n)), n
+ );
+ }
+ const y = g();
+ let v = null;
+ var b = n(87462),
+ w = n(63366),
+ E = n(8679),
+ x = n.n(E),
+ S = n(59864);
+ const _ = [
+ "initMapStateToProps",
+ "initMapDispatchToProps",
+ "initMergeProps",
+ ];
+ function j(
+ e,
+ t,
+ n,
+ r,
+ { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i }
+ ) {
+ let a,
+ l,
+ c,
+ u,
+ p,
+ h = !1;
+ function f(h, f) {
+ const d = !s(f, l),
+ m = !o(h, a, f, l);
+ return (
+ (a = h),
+ (l = f),
+ d && m
+ ? ((c = e(a, l)),
+ t.dependsOnOwnProps && (u = t(r, l)),
+ (p = n(c, u, l)),
+ p)
+ : d
+ ? (e.dependsOnOwnProps && (c = e(a, l)),
+ t.dependsOnOwnProps && (u = t(r, l)),
+ (p = n(c, u, l)),
+ p)
+ : m
+ ? (function () {
+ const t = e(a, l),
+ r = !i(t, c);
+ return (c = t), r && (p = n(c, u, l)), p;
+ })()
+ : p
+ );
+ }
+ return function (o, s) {
+ return h
+ ? f(o, s)
+ : ((a = o),
+ (l = s),
+ (c = e(a, l)),
+ (u = t(r, l)),
+ (p = n(c, u, l)),
+ (h = !0),
+ p);
+ };
+ }
+ function O(e) {
+ return function (t) {
+ const n = e(t);
+ function r() {
+ return n;
+ }
+ return (r.dependsOnOwnProps = !1), r;
+ };
+ }
+ function k(e) {
+ return e.dependsOnOwnProps
+ ? Boolean(e.dependsOnOwnProps)
+ : 1 !== e.length;
+ }
+ function A(e, t) {
+ return function (t, { displayName: n }) {
+ const r = function (e, t) {
+ return r.dependsOnOwnProps
+ ? r.mapToProps(e, t)
+ : r.mapToProps(e, void 0);
+ };
+ return (
+ (r.dependsOnOwnProps = !0),
+ (r.mapToProps = function (t, n) {
+ (r.mapToProps = e), (r.dependsOnOwnProps = k(e));
+ let o = r(t, n);
+ return (
+ "function" == typeof o &&
+ ((r.mapToProps = o),
+ (r.dependsOnOwnProps = k(o)),
+ (o = r(t, n))),
+ o
+ );
+ }),
+ r
+ );
+ };
+ }
+ function C(e, t) {
+ return (n, r) => {
+ throw new Error(
+ `Invalid value of type ${typeof e} for ${t} argument when connecting component ${
+ r.wrappedComponentName
+ }.`
+ );
+ };
+ }
+ function P(e, t, n) {
+ return (0, b.Z)({}, n, e, t);
+ }
+ const N = { notify() {}, get: () => [] };
+ function I(e, t) {
+ let n,
+ r = N;
+ function o() {
+ i.onStateChange && i.onStateChange();
+ }
+ function s() {
+ n ||
+ ((n = t ? t.addNestedSub(o) : e.subscribe(o)),
+ (r = (function () {
+ const e = f();
+ let t = null,
+ n = null;
+ return {
+ clear() {
+ (t = null), (n = null);
+ },
+ notify() {
+ e(() => {
+ let e = t;
+ for (; e; ) e.callback(), (e = e.next);
+ });
+ },
+ get() {
+ let e = [],
+ n = t;
+ for (; n; ) e.push(n), (n = n.next);
+ return e;
+ },
+ subscribe(e) {
+ let r = !0,
+ o = (n = { callback: e, next: null, prev: n });
+ return (
+ o.prev ? (o.prev.next = o) : (t = o),
+ function () {
+ r &&
+ null !== t &&
+ ((r = !1),
+ o.next ? (o.next.prev = o.prev) : (n = o.prev),
+ o.prev ? (o.prev.next = o.next) : (t = o.next));
+ }
+ );
+ },
+ };
+ })()));
+ }
+ const i = {
+ addNestedSub: function (e) {
+ return s(), r.subscribe(e);
+ },
+ notifyNestedSubs: function () {
+ r.notify();
+ },
+ handleChangeWrapper: o,
+ isSubscribed: function () {
+ return Boolean(n);
+ },
+ trySubscribe: s,
+ tryUnsubscribe: function () {
+ n && (n(), (n = void 0), r.clear(), (r = N));
+ },
+ getListeners: () => r,
+ };
+ return i;
+ }
+ const T = !(
+ "undefined" == typeof window ||
+ void 0 === window.document ||
+ void 0 === window.document.createElement
+ )
+ ? a.useLayoutEffect
+ : a.useEffect;
+ function R(e, t) {
+ return e === t
+ ? 0 !== e || 0 !== t || 1 / e == 1 / t
+ : e != e && t != t;
+ }
+ function M(e, t) {
+ if (R(e, t)) return !0;
+ if (
+ "object" != typeof e ||
+ null === e ||
+ "object" != typeof t ||
+ null === t
+ )
+ return !1;
+ const n = Object.keys(e),
+ r = Object.keys(t);
+ if (n.length !== r.length) return !1;
+ for (let r = 0; r < n.length; r++)
+ if (
+ !Object.prototype.hasOwnProperty.call(t, n[r]) ||
+ !R(e[n[r]], t[n[r]])
+ )
+ return !1;
+ return !0;
+ }
+ const D = ["reactReduxForwardedRef"];
+ let F = () => {
+ throw new Error("uSES not initialized!");
+ };
+ const L = [null, null];
+ function B(e, t, n, r, o, s) {
+ (e.current = r),
+ (n.current = !1),
+ o.current && ((o.current = null), s());
+ }
+ function $(e, t) {
+ return e === t;
+ }
+ const q = function (
+ e,
+ t,
+ n,
+ {
+ pure: r,
+ areStatesEqual: o = $,
+ areOwnPropsEqual: s = M,
+ areStatePropsEqual: i = M,
+ areMergedPropsEqual: l = M,
+ forwardRef: c = !1,
+ context: u = y,
+ } = {}
+ ) {
+ const p = u,
+ h = (function (e) {
+ return e
+ ? "function" == typeof e
+ ? A(e)
+ : C(e, "mapStateToProps")
+ : O(() => ({}));
+ })(e),
+ f = (function (e) {
+ return e && "object" == typeof e
+ ? O((t) =>
+ (function (e, t) {
+ const n = {};
+ for (const r in e) {
+ const o = e[r];
+ "function" == typeof o &&
+ (n[r] = (...e) => t(o(...e)));
+ }
+ return n;
+ })(e, t)
+ )
+ : e
+ ? "function" == typeof e
+ ? A(e)
+ : C(e, "mapDispatchToProps")
+ : O((e) => ({ dispatch: e }));
+ })(t),
+ d = (function (e) {
+ return e
+ ? "function" == typeof e
+ ? (function (e) {
+ return function (
+ t,
+ { displayName: n, areMergedPropsEqual: r }
+ ) {
+ let o,
+ s = !1;
+ return function (t, n, i) {
+ const a = e(t, n, i);
+ return (
+ s ? r(a, o) || (o = a) : ((s = !0), (o = a)), o
+ );
+ };
+ };
+ })(e)
+ : C(e, "mergeProps")
+ : () => P;
+ })(n),
+ m = Boolean(e);
+ return (e) => {
+ const t = e.displayName || e.name || "Component",
+ n = `Connect(${t})`,
+ r = {
+ shouldHandleStateChanges: m,
+ displayName: n,
+ wrappedComponentName: t,
+ WrappedComponent: e,
+ initMapStateToProps: h,
+ initMapDispatchToProps: f,
+ initMergeProps: d,
+ areStatesEqual: o,
+ areStatePropsEqual: i,
+ areOwnPropsEqual: s,
+ areMergedPropsEqual: l,
+ };
+ function u(t) {
+ const [n, o, s] = a.useMemo(() => {
+ const { reactReduxForwardedRef: e } = t,
+ n = (0, w.Z)(t, D);
+ return [t.context, e, n];
+ }, [t]),
+ i = a.useMemo(
+ () =>
+ n &&
+ n.Consumer &&
+ (0, S.isContextConsumer)(
+ a.createElement(n.Consumer, null)
+ )
+ ? n
+ : p,
+ [n, p]
+ ),
+ l = a.useContext(i),
+ c =
+ Boolean(t.store) &&
+ Boolean(t.store.getState) &&
+ Boolean(t.store.dispatch),
+ u = Boolean(l) && Boolean(l.store);
+ const h = c ? t.store : l.store,
+ f = u ? l.getServerState : h.getState,
+ d = a.useMemo(
+ () =>
+ (function (e, t) {
+ let {
+ initMapStateToProps: n,
+ initMapDispatchToProps: r,
+ initMergeProps: o,
+ } = t,
+ s = (0, w.Z)(t, _);
+ return j(n(e, s), r(e, s), o(e, s), e, s);
+ })(h.dispatch, r),
+ [h]
+ ),
+ [g, y] = a.useMemo(() => {
+ if (!m) return L;
+ const e = I(h, c ? void 0 : l.subscription),
+ t = e.notifyNestedSubs.bind(e);
+ return [e, t];
+ }, [h, c, l]),
+ v = a.useMemo(
+ () => (c ? l : (0, b.Z)({}, l, { subscription: g })),
+ [c, l, g]
+ ),
+ E = a.useRef(),
+ x = a.useRef(s),
+ O = a.useRef(),
+ k = a.useRef(!1),
+ A = (a.useRef(!1), a.useRef(!1)),
+ C = a.useRef();
+ T(
+ () => (
+ (A.current = !0),
+ () => {
+ A.current = !1;
+ }
+ ),
+ []
+ );
+ const P = a.useMemo(
+ () => () =>
+ O.current && s === x.current
+ ? O.current
+ : d(h.getState(), s),
+ [h, s]
+ ),
+ N = a.useMemo(
+ () => (e) =>
+ g
+ ? (function (e, t, n, r, o, s, i, a, l, c, u) {
+ if (!e) return () => {};
+ let p = !1,
+ h = null;
+ const f = () => {
+ if (p || !a.current) return;
+ const e = t.getState();
+ let n, f;
+ try {
+ n = r(e, o.current);
+ } catch (e) {
+ (f = e), (h = e);
+ }
+ f || (h = null),
+ n === s.current
+ ? i.current || c()
+ : ((s.current = n),
+ (l.current = n),
+ (i.current = !0),
+ u());
+ };
+ return (
+ (n.onStateChange = f),
+ n.trySubscribe(),
+ f(),
+ () => {
+ if (
+ ((p = !0),
+ n.tryUnsubscribe(),
+ (n.onStateChange = null),
+ h)
+ )
+ throw h;
+ }
+ );
+ })(m, h, g, d, x, E, k, A, O, y, e)
+ : () => {},
+ [g]
+ );
+ var R, M, $;
+ let q;
+ (R = B), (M = [x, E, k, s, O, y]), T(() => R(...M), $);
+ try {
+ q = F(N, P, f ? () => d(f(), s) : P);
+ } catch (e) {
+ throw (
+ (C.current &&
+ (e.message += `\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),
+ e)
+ );
+ }
+ T(() => {
+ (C.current = void 0), (O.current = void 0), (E.current = q);
+ });
+ const U = a.useMemo(
+ () => a.createElement(e, (0, b.Z)({}, q, { ref: o })),
+ [o, e, q]
+ );
+ return a.useMemo(
+ () => (m ? a.createElement(i.Provider, { value: v }, U) : U),
+ [i, U, v]
+ );
+ }
+ const g = a.memo(u);
+ if (
+ ((g.WrappedComponent = e),
+ (g.displayName = u.displayName = n),
+ c)
+ ) {
+ const t = a.forwardRef(function (e, t) {
+ return a.createElement(
+ g,
+ (0, b.Z)({}, e, { reactReduxForwardedRef: t })
+ );
+ });
+ return (t.displayName = n), (t.WrappedComponent = e), x()(t, e);
+ }
+ return x()(g, e);
+ };
+ };
+ const U = function ({
+ store: e,
+ context: t,
+ children: n,
+ serverState: r,
+ stabilityCheck: o = "once",
+ noopCheck: s = "once",
+ }) {
+ const i = a.useMemo(() => {
+ const t = I(e);
+ return {
+ store: e,
+ subscription: t,
+ getServerState: r ? () => r : void 0,
+ stabilityCheck: o,
+ noopCheck: s,
+ };
+ }, [e, r, o, s]),
+ l = a.useMemo(() => e.getState(), [e]);
+ T(() => {
+ const { subscription: t } = i;
+ return (
+ (t.onStateChange = t.notifyNestedSubs),
+ t.trySubscribe(),
+ l !== e.getState() && t.notifyNestedSubs(),
+ () => {
+ t.tryUnsubscribe(), (t.onStateChange = void 0);
+ }
+ );
+ }, [i, l]);
+ const c = t || y;
+ return a.createElement(c.Provider, { value: i }, n);
+ };
+ var z, V;
+ (z = p.useSyncExternalStoreWithSelector),
+ (v = z),
+ ((e) => {
+ F = e;
+ })(u.useSyncExternalStore),
+ (V = l.unstable_batchedUpdates),
+ (h = V);
+ var W = n(57557),
+ J = n.n(W),
+ K = n(6557),
+ H = n.n(K);
+ const G = (e) => (t) => {
+ const { fn: n } = e();
+ class r extends a.Component {
+ render() {
+ return a.createElement(
+ t,
+ o()({}, e(), this.props, this.context)
+ );
+ }
+ }
+ return (r.displayName = `WithSystem(${n.getDisplayName(t)})`), r;
+ },
+ Z = (e, t) => (n) => {
+ const { fn: r } = e();
+ class s extends a.Component {
+ render() {
+ return a.createElement(
+ U,
+ { store: t },
+ a.createElement(n, o()({}, this.props, this.context))
+ );
+ }
+ }
+ return (s.displayName = `WithRoot(${r.getDisplayName(n)})`), s;
+ },
+ Y = (e, t, n) =>
+ (0, c.qC)(
+ n ? Z(e, n) : H(),
+ q((n, r) => {
+ var o;
+ const s = { ...r, ...e() },
+ i =
+ (null === (o = t.prototype) || void 0 === o
+ ? void 0
+ : o.mapStateToProps) || ((e) => ({ state: e }));
+ return i(n, s);
+ }),
+ G(e)
+ )(t),
+ X = (e, t, n, r) => {
+ for (const o in t) {
+ const s = t[o];
+ "function" == typeof s && s(n[o], r[o], e());
+ }
+ },
+ Q = (e, t, n) => (t, r) => {
+ const { fn: o } = e(),
+ s = n(t, "root");
+ class l extends a.Component {
+ constructor(t, n) {
+ super(t, n), X(e, r, t, {});
+ }
+ UNSAFE_componentWillReceiveProps(t) {
+ X(e, r, t, this.props);
+ }
+ render() {
+ const e = J()(this.props, r ? i()(r) : []);
+ return a.createElement(s, e);
+ }
+ }
+ return (
+ (l.displayName = `WithMappedContainer(${o.getDisplayName(s)})`),
+ l
+ );
+ },
+ ee = (e, t, n, r) => (o) => {
+ const s = n(e, t, r)("App", "root");
+ l.render(a.createElement(s, null), o);
+ },
+ te = (e, t, n) =>
+ function (r, o) {
+ let s =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ if ("string" != typeof r)
+ throw new TypeError(
+ "Need a string, to fetch a component. Was given a " +
+ typeof r
+ );
+ const i = n(r);
+ return i
+ ? o
+ ? "root" === o
+ ? Y(e, i, t())
+ : Y(e, i)
+ : i
+ : (s.failSilently ||
+ e().log.warn("Could not find component:", r),
+ null);
+ };
+ },
+ 96513: (e, t, n) => {
+ "use strict";
+ n.d(t, { d3: () => D, C2: () => ee });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(63366);
+ function l(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
+ return r;
+ }
+ function c(e) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return l(e);
+ })(e) ||
+ (function (e) {
+ if (
+ ("undefined" != typeof Symbol &&
+ null != e[Symbol.iterator]) ||
+ null != e["@@iterator"]
+ )
+ return Array.from(e);
+ })(e) ||
+ (function (e, t) {
+ if (e) {
+ if ("string" == typeof e) return l(e, t);
+ var n = Object.prototype.toString.call(e).slice(8, -1);
+ return (
+ "Object" === n && e.constructor && (n = e.constructor.name),
+ "Map" === n || "Set" === n
+ ? Array.from(e)
+ : "Arguments" === n ||
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ ? l(e, t)
+ : void 0
+ );
+ }
+ })(e) ||
+ (function () {
+ throw new TypeError(
+ "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
+ );
+ })()
+ );
+ }
+ var u = n(64572),
+ p = n(67294),
+ h = n(87462);
+ function f(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function d(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? f(Object(n), !0).forEach(function (t) {
+ (0, u.Z)(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : f(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ var m = {};
+ function g(e) {
+ var t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {},
+ n = arguments.length > 2 ? arguments[2] : void 0;
+ return (function (e) {
+ if (0 === e.length || 1 === e.length) return e;
+ var t,
+ n,
+ r = e.join(".");
+ return (
+ m[r] ||
+ (m[r] =
+ 0 === (n = (t = e).length) || 1 === n
+ ? t
+ : 2 === n
+ ? [
+ t[0],
+ t[1],
+ "".concat(t[0], ".").concat(t[1]),
+ "".concat(t[1], ".").concat(t[0]),
+ ]
+ : 3 === n
+ ? [
+ t[0],
+ t[1],
+ t[2],
+ "".concat(t[0], ".").concat(t[1]),
+ "".concat(t[0], ".").concat(t[2]),
+ "".concat(t[1], ".").concat(t[0]),
+ "".concat(t[1], ".").concat(t[2]),
+ "".concat(t[2], ".").concat(t[0]),
+ "".concat(t[2], ".").concat(t[1]),
+ "".concat(t[0], ".").concat(t[1], ".").concat(t[2]),
+ "".concat(t[0], ".").concat(t[2], ".").concat(t[1]),
+ "".concat(t[1], ".").concat(t[0], ".").concat(t[2]),
+ "".concat(t[1], ".").concat(t[2], ".").concat(t[0]),
+ "".concat(t[2], ".").concat(t[0], ".").concat(t[1]),
+ "".concat(t[2], ".").concat(t[1], ".").concat(t[0]),
+ ]
+ : n >= 4
+ ? [
+ t[0],
+ t[1],
+ t[2],
+ t[3],
+ "".concat(t[0], ".").concat(t[1]),
+ "".concat(t[0], ".").concat(t[2]),
+ "".concat(t[0], ".").concat(t[3]),
+ "".concat(t[1], ".").concat(t[0]),
+ "".concat(t[1], ".").concat(t[2]),
+ "".concat(t[1], ".").concat(t[3]),
+ "".concat(t[2], ".").concat(t[0]),
+ "".concat(t[2], ".").concat(t[1]),
+ "".concat(t[2], ".").concat(t[3]),
+ "".concat(t[3], ".").concat(t[0]),
+ "".concat(t[3], ".").concat(t[1]),
+ "".concat(t[3], ".").concat(t[2]),
+ "".concat(t[0], ".").concat(t[1], ".").concat(t[2]),
+ "".concat(t[0], ".").concat(t[1], ".").concat(t[3]),
+ "".concat(t[0], ".").concat(t[2], ".").concat(t[1]),
+ "".concat(t[0], ".").concat(t[2], ".").concat(t[3]),
+ "".concat(t[0], ".").concat(t[3], ".").concat(t[1]),
+ "".concat(t[0], ".").concat(t[3], ".").concat(t[2]),
+ "".concat(t[1], ".").concat(t[0], ".").concat(t[2]),
+ "".concat(t[1], ".").concat(t[0], ".").concat(t[3]),
+ "".concat(t[1], ".").concat(t[2], ".").concat(t[0]),
+ "".concat(t[1], ".").concat(t[2], ".").concat(t[3]),
+ "".concat(t[1], ".").concat(t[3], ".").concat(t[0]),
+ "".concat(t[1], ".").concat(t[3], ".").concat(t[2]),
+ "".concat(t[2], ".").concat(t[0], ".").concat(t[1]),
+ "".concat(t[2], ".").concat(t[0], ".").concat(t[3]),
+ "".concat(t[2], ".").concat(t[1], ".").concat(t[0]),
+ "".concat(t[2], ".").concat(t[1], ".").concat(t[3]),
+ "".concat(t[2], ".").concat(t[3], ".").concat(t[0]),
+ "".concat(t[2], ".").concat(t[3], ".").concat(t[1]),
+ "".concat(t[3], ".").concat(t[0], ".").concat(t[1]),
+ "".concat(t[3], ".").concat(t[0], ".").concat(t[2]),
+ "".concat(t[3], ".").concat(t[1], ".").concat(t[0]),
+ "".concat(t[3], ".").concat(t[1], ".").concat(t[2]),
+ "".concat(t[3], ".").concat(t[2], ".").concat(t[0]),
+ "".concat(t[3], ".").concat(t[2], ".").concat(t[1]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[1], ".")
+ .concat(t[2], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[1], ".")
+ .concat(t[3], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[2], ".")
+ .concat(t[1], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[2], ".")
+ .concat(t[3], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[3], ".")
+ .concat(t[1], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[0], ".")
+ .concat(t[3], ".")
+ .concat(t[2], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[0], ".")
+ .concat(t[2], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[0], ".")
+ .concat(t[3], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[2], ".")
+ .concat(t[0], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[2], ".")
+ .concat(t[3], ".")
+ .concat(t[0]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[3], ".")
+ .concat(t[0], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[1], ".")
+ .concat(t[3], ".")
+ .concat(t[2], ".")
+ .concat(t[0]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[0], ".")
+ .concat(t[1], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[0], ".")
+ .concat(t[3], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[1], ".")
+ .concat(t[0], ".")
+ .concat(t[3]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[1], ".")
+ .concat(t[3], ".")
+ .concat(t[0]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[3], ".")
+ .concat(t[0], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[2], ".")
+ .concat(t[3], ".")
+ .concat(t[1], ".")
+ .concat(t[0]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[0], ".")
+ .concat(t[1], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[0], ".")
+ .concat(t[2], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[1], ".")
+ .concat(t[0], ".")
+ .concat(t[2]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[1], ".")
+ .concat(t[2], ".")
+ .concat(t[0]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[2], ".")
+ .concat(t[0], ".")
+ .concat(t[1]),
+ ""
+ .concat(t[3], ".")
+ .concat(t[2], ".")
+ .concat(t[1], ".")
+ .concat(t[0]),
+ ]
+ : void 0),
+ m[r]
+ );
+ })(
+ e.filter(function (e) {
+ return "token" !== e;
+ })
+ ).reduce(function (e, t) {
+ return d(d({}, e), n[t]);
+ }, t);
+ }
+ function y(e) {
+ return e.join(" ");
+ }
+ function v(e) {
+ var t = e.node,
+ n = e.stylesheet,
+ r = e.style,
+ o = void 0 === r ? {} : r,
+ s = e.useInlineStyles,
+ i = e.key,
+ a = t.properties,
+ l = t.type,
+ c = t.tagName,
+ u = t.value;
+ if ("text" === l) return u;
+ if (c) {
+ var f,
+ m = (function (e, t) {
+ var n = 0;
+ return function (r) {
+ return (
+ (n += 1),
+ r.map(function (r, o) {
+ return v({
+ node: r,
+ stylesheet: e,
+ useInlineStyles: t,
+ key: "code-segment-".concat(n, "-").concat(o),
+ });
+ })
+ );
+ };
+ })(n, s);
+ if (s) {
+ var b = Object.keys(n).reduce(function (e, t) {
+ return (
+ t.split(".").forEach(function (t) {
+ e.includes(t) || e.push(t);
+ }),
+ e
+ );
+ }, []),
+ w =
+ a.className && a.className.includes("token")
+ ? ["token"]
+ : [],
+ E =
+ a.className &&
+ w.concat(
+ a.className.filter(function (e) {
+ return !b.includes(e);
+ })
+ );
+ f = d(
+ d({}, a),
+ {},
+ {
+ className: y(E) || void 0,
+ style: g(a.className, Object.assign({}, a.style, o), n),
+ }
+ );
+ } else f = d(d({}, a), {}, { className: y(a.className) });
+ var x = m(t.children);
+ return p.createElement(c, (0, h.Z)({ key: i }, f), x);
+ }
+ }
+ const b = function (e, t) {
+ return -1 !== e.listLanguages().indexOf(t);
+ };
+ var w = [
+ "language",
+ "children",
+ "style",
+ "customStyle",
+ "codeTagProps",
+ "useInlineStyles",
+ "showLineNumbers",
+ "showInlineLineNumbers",
+ "startingLineNumber",
+ "lineNumberContainerStyle",
+ "lineNumberStyle",
+ "wrapLines",
+ "wrapLongLines",
+ "lineProps",
+ "renderer",
+ "PreTag",
+ "CodeTag",
+ "code",
+ "astGenerator",
+ ];
+ function E(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function x(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? E(Object(n), !0).forEach(function (t) {
+ (0, u.Z)(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(
+ e,
+ Object.getOwnPropertyDescriptors(n)
+ )
+ : E(Object(n)).forEach(function (t) {
+ Object.defineProperty(
+ e,
+ t,
+ Object.getOwnPropertyDescriptor(n, t)
+ );
+ });
+ }
+ return e;
+ }
+ var S = /\n/g;
+ function _(e) {
+ var t = e.codeString,
+ n = e.codeStyle,
+ r = e.containerStyle,
+ o = void 0 === r ? { float: "left", paddingRight: "10px" } : r,
+ s = e.numberStyle,
+ i = void 0 === s ? {} : s,
+ a = e.startingLineNumber;
+ return p.createElement(
+ "code",
+ { style: Object.assign({}, n, o) },
+ (function (e) {
+ var t = e.lines,
+ n = e.startingLineNumber,
+ r = e.style;
+ return t.map(function (e, t) {
+ var o = t + n;
+ return p.createElement(
+ "span",
+ {
+ key: "line-".concat(t),
+ className: "react-syntax-highlighter-line-number",
+ style: "function" == typeof r ? r(o) : r,
+ },
+ "".concat(o, "\n")
+ );
+ });
+ })({
+ lines: t.replace(/\n$/, "").split("\n"),
+ style: i,
+ startingLineNumber: a,
+ })
+ );
+ }
+ function j(e, t) {
+ return {
+ type: "element",
+ tagName: "span",
+ properties: {
+ key: "line-number--".concat(e),
+ className: [
+ "comment",
+ "linenumber",
+ "react-syntax-highlighter-line-number",
+ ],
+ style: t,
+ },
+ children: [{ type: "text", value: e }],
+ };
+ }
+ function O(e, t, n) {
+ var r,
+ o = {
+ display: "inline-block",
+ minWidth: ((r = n), "".concat(r.toString().length, ".25em")),
+ paddingRight: "1em",
+ textAlign: "right",
+ userSelect: "none",
+ },
+ s = "function" == typeof e ? e(t) : e;
+ return x(x({}, o), s);
+ }
+ function k(e) {
+ var t = e.children,
+ n = e.lineNumber,
+ r = e.lineNumberStyle,
+ o = e.largestLineNumber,
+ s = e.showInlineLineNumbers,
+ i = e.lineProps,
+ a = void 0 === i ? {} : i,
+ l = e.className,
+ c = void 0 === l ? [] : l,
+ u = e.showLineNumbers,
+ p = e.wrapLongLines,
+ h = "function" == typeof a ? a(n) : a;
+ if (((h.className = c), n && s)) {
+ var f = O(r, n, o);
+ t.unshift(j(n, f));
+ }
+ return (
+ p & u && (h.style = x(x({}, h.style), {}, { display: "flex" })),
+ { type: "element", tagName: "span", properties: h, children: t }
+ );
+ }
+ function A(e) {
+ for (
+ var t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : [],
+ n =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : [],
+ r = 0;
+ r < e.length;
+ r++
+ ) {
+ var o = e[r];
+ if ("text" === o.type)
+ n.push(k({ children: [o], className: c(new Set(t)) }));
+ else if (o.children) {
+ var s = t.concat(o.properties.className);
+ A(o.children, s).forEach(function (e) {
+ return n.push(e);
+ });
+ }
+ }
+ return n;
+ }
+ function C(e, t, n, r, o, s, i, a, l) {
+ var c,
+ u = A(e.value),
+ p = [],
+ h = -1,
+ f = 0;
+ function d(e, s) {
+ var c =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : [];
+ return t || c.length > 0
+ ? (function (e, t) {
+ return k({
+ children: e,
+ lineNumber: t,
+ lineNumberStyle: a,
+ largestLineNumber: i,
+ showInlineLineNumbers: o,
+ lineProps: n,
+ className:
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : [],
+ showLineNumbers: r,
+ wrapLongLines: l,
+ });
+ })(e, s, c)
+ : (function (e, t) {
+ if (r && t && o) {
+ var n = O(a, t, i);
+ e.unshift(j(t, n));
+ }
+ return e;
+ })(e, s);
+ }
+ for (
+ var m = function () {
+ var e = u[f],
+ t = e.children[0].value;
+ if (t.match(S)) {
+ var n = t.split("\n");
+ n.forEach(function (t, o) {
+ var i = r && p.length + s,
+ a = { type: "text", value: "".concat(t, "\n") };
+ if (0 === o) {
+ var l = d(
+ u.slice(h + 1, f).concat(
+ k({
+ children: [a],
+ className: e.properties.className,
+ })
+ ),
+ i
+ );
+ p.push(l);
+ } else if (o === n.length - 1) {
+ var c =
+ u[f + 1] && u[f + 1].children && u[f + 1].children[0],
+ m = { type: "text", value: "".concat(t) };
+ if (c) {
+ var g = k({
+ children: [m],
+ className: e.properties.className,
+ });
+ u.splice(f + 1, 0, g);
+ } else {
+ var y = d([m], i, e.properties.className);
+ p.push(y);
+ }
+ } else {
+ var v = d([a], i, e.properties.className);
+ p.push(v);
+ }
+ }),
+ (h = f);
+ }
+ f++;
+ };
+ f < u.length;
+
+ )
+ m();
+ if (h !== u.length - 1) {
+ var g = u.slice(h + 1, u.length);
+ if (g && g.length) {
+ var y = d(g, r && p.length + s);
+ p.push(y);
+ }
+ }
+ return t ? p : (c = []).concat.apply(c, p);
+ }
+ function P(e) {
+ var t = e.rows,
+ n = e.stylesheet,
+ r = e.useInlineStyles;
+ return t.map(function (e, t) {
+ return v({
+ node: e,
+ stylesheet: n,
+ useInlineStyles: r,
+ key: "code-segement".concat(t),
+ });
+ });
+ }
+ function N(e) {
+ return e && void 0 !== e.highlightAuto;
+ }
+ var I,
+ T,
+ R = n(96470),
+ M =
+ ((I = R),
+ (T = {}),
+ function (e) {
+ var t = e.language,
+ n = e.children,
+ r = e.style,
+ o = void 0 === r ? T : r,
+ s = e.customStyle,
+ i = void 0 === s ? {} : s,
+ l = e.codeTagProps,
+ c =
+ void 0 === l
+ ? {
+ className: t ? "language-".concat(t) : void 0,
+ style: x(
+ x({}, o['code[class*="language-"]']),
+ o['code[class*="language-'.concat(t, '"]')]
+ ),
+ }
+ : l,
+ u = e.useInlineStyles,
+ h = void 0 === u || u,
+ f = e.showLineNumbers,
+ d = void 0 !== f && f,
+ m = e.showInlineLineNumbers,
+ g = void 0 === m || m,
+ y = e.startingLineNumber,
+ v = void 0 === y ? 1 : y,
+ E = e.lineNumberContainerStyle,
+ S = e.lineNumberStyle,
+ j = void 0 === S ? {} : S,
+ O = e.wrapLines,
+ k = e.wrapLongLines,
+ A = void 0 !== k && k,
+ R = e.lineProps,
+ M = void 0 === R ? {} : R,
+ D = e.renderer,
+ F = e.PreTag,
+ L = void 0 === F ? "pre" : F,
+ B = e.CodeTag,
+ $ = void 0 === B ? "code" : B,
+ q = e.code,
+ U = void 0 === q ? (Array.isArray(n) ? n[0] : n) || "" : q,
+ z = e.astGenerator,
+ V = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = (0, a.Z)(e, t);
+ if (Object.getOwnPropertySymbols) {
+ var s = Object.getOwnPropertySymbols(e);
+ for (r = 0; r < s.length; r++)
+ (n = s[r]),
+ t.indexOf(n) >= 0 ||
+ (Object.prototype.propertyIsEnumerable.call(e, n) &&
+ (o[n] = e[n]));
+ }
+ return o;
+ })(e, w);
+ z = z || I;
+ var W = d
+ ? p.createElement(_, {
+ containerStyle: E,
+ codeStyle: c.style || {},
+ numberStyle: j,
+ startingLineNumber: v,
+ codeString: U,
+ })
+ : null,
+ J = o.hljs ||
+ o['pre[class*="language-"]'] || { backgroundColor: "#fff" },
+ K = N(z) ? "hljs" : "prismjs",
+ H = h
+ ? Object.assign({}, V, { style: Object.assign({}, J, i) })
+ : Object.assign({}, V, {
+ className: V.className
+ ? "".concat(K, " ").concat(V.className)
+ : K,
+ style: Object.assign({}, i),
+ });
+ if (
+ ((c.style = x(
+ x({}, c.style),
+ {},
+ A ? { whiteSpace: "pre-wrap" } : { whiteSpace: "pre" }
+ )),
+ !z)
+ )
+ return p.createElement(L, H, W, p.createElement($, c, U));
+ ((void 0 === O && D) || A) && (O = !0), (D = D || P);
+ var G = [{ type: "text", value: U }],
+ Z = (function (e) {
+ var t = e.astGenerator,
+ n = e.language,
+ r = e.code,
+ o = e.defaultCodeValue;
+ if (N(t)) {
+ var s = b(t, n);
+ return "text" === n
+ ? { value: o, language: "text" }
+ : s
+ ? t.highlight(n, r)
+ : t.highlightAuto(r);
+ }
+ try {
+ return n && "text" !== n
+ ? { value: t.highlight(r, n) }
+ : { value: o };
+ } catch (e) {
+ return { value: o };
+ }
+ })({
+ astGenerator: z,
+ language: t,
+ code: U,
+ defaultCodeValue: G,
+ });
+ null === Z.language && (Z.value = G);
+ var Y = C(Z, O, M, d, g, v, Z.value.length + v, j, A);
+ return p.createElement(
+ L,
+ H,
+ p.createElement(
+ $,
+ c,
+ !g && W,
+ D({ rows: Y, stylesheet: o, useInlineStyles: h })
+ )
+ );
+ });
+ M.registerLanguage = R.registerLanguage;
+ const D = M;
+ var F = n(96344);
+ const L = n.n(F)();
+ var B = n(82026);
+ const $ = n.n(B)();
+ var q = n(42157);
+ const U = n.n(q)();
+ var z = n(61519);
+ const V = n.n(z)();
+ var W = n(54587);
+ const J = n.n(W)();
+ var K = n(30786);
+ const H = n.n(K)();
+ var G = n(66336);
+ const Z = n.n(G)(),
+ Y = {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ background: "#333",
+ color: "white",
+ },
+ "hljs-name": { fontWeight: "bold" },
+ "hljs-strong": { fontWeight: "bold" },
+ "hljs-code": { fontStyle: "italic", color: "#888" },
+ "hljs-emphasis": { fontStyle: "italic" },
+ "hljs-tag": { color: "#62c8f3" },
+ "hljs-variable": { color: "#ade5fc" },
+ "hljs-template-variable": { color: "#ade5fc" },
+ "hljs-selector-id": { color: "#ade5fc" },
+ "hljs-selector-class": { color: "#ade5fc" },
+ "hljs-string": { color: "#a2fca2" },
+ "hljs-bullet": { color: "#d36363" },
+ "hljs-type": { color: "#ffa" },
+ "hljs-title": { color: "#ffa" },
+ "hljs-section": { color: "#ffa" },
+ "hljs-attribute": { color: "#ffa" },
+ "hljs-quote": { color: "#ffa" },
+ "hljs-built_in": { color: "#ffa" },
+ "hljs-builtin-name": { color: "#ffa" },
+ "hljs-number": { color: "#d36363" },
+ "hljs-symbol": { color: "#d36363" },
+ "hljs-keyword": { color: "#fcc28c" },
+ "hljs-selector-tag": { color: "#fcc28c" },
+ "hljs-literal": { color: "#fcc28c" },
+ "hljs-comment": { color: "#888" },
+ "hljs-deletion": { color: "#333", backgroundColor: "#fc9b9b" },
+ "hljs-regexp": { color: "#c6b4f0" },
+ "hljs-link": { color: "#c6b4f0" },
+ "hljs-meta": { color: "#fc9b9b" },
+ "hljs-addition": { backgroundColor: "#a2fca2", color: "#333" },
+ };
+ D.registerLanguage("json", $),
+ D.registerLanguage("js", L),
+ D.registerLanguage("xml", U),
+ D.registerLanguage("yaml", J),
+ D.registerLanguage("http", H),
+ D.registerLanguage("bash", V),
+ D.registerLanguage("powershell", Z),
+ D.registerLanguage("javascript", L);
+ const X = {
+ agate: Y,
+ arta: {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ background: "#222",
+ color: "#aaa",
+ },
+ "hljs-subst": { color: "#aaa" },
+ "hljs-section": { color: "#fff", fontWeight: "bold" },
+ "hljs-comment": { color: "#444" },
+ "hljs-quote": { color: "#444" },
+ "hljs-meta": { color: "#444" },
+ "hljs-string": { color: "#ffcc33" },
+ "hljs-symbol": { color: "#ffcc33" },
+ "hljs-bullet": { color: "#ffcc33" },
+ "hljs-regexp": { color: "#ffcc33" },
+ "hljs-number": { color: "#00cc66" },
+ "hljs-addition": { color: "#00cc66" },
+ "hljs-built_in": { color: "#32aaee" },
+ "hljs-builtin-name": { color: "#32aaee" },
+ "hljs-literal": { color: "#32aaee" },
+ "hljs-type": { color: "#32aaee" },
+ "hljs-template-variable": { color: "#32aaee" },
+ "hljs-attribute": { color: "#32aaee" },
+ "hljs-link": { color: "#32aaee" },
+ "hljs-keyword": { color: "#6644aa" },
+ "hljs-selector-tag": { color: "#6644aa" },
+ "hljs-name": { color: "#6644aa" },
+ "hljs-selector-id": { color: "#6644aa" },
+ "hljs-selector-class": { color: "#6644aa" },
+ "hljs-title": { color: "#bb1166" },
+ "hljs-variable": { color: "#bb1166" },
+ "hljs-deletion": { color: "#bb1166" },
+ "hljs-template-tag": { color: "#bb1166" },
+ "hljs-doctag": { fontWeight: "bold" },
+ "hljs-strong": { fontWeight: "bold" },
+ "hljs-emphasis": { fontStyle: "italic" },
+ },
+ monokai: {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ background: "#272822",
+ color: "#ddd",
+ },
+ "hljs-tag": { color: "#f92672" },
+ "hljs-keyword": { color: "#f92672", fontWeight: "bold" },
+ "hljs-selector-tag": { color: "#f92672", fontWeight: "bold" },
+ "hljs-literal": { color: "#f92672", fontWeight: "bold" },
+ "hljs-strong": { color: "#f92672" },
+ "hljs-name": { color: "#f92672" },
+ "hljs-code": { color: "#66d9ef" },
+ "hljs-class .hljs-title": { color: "white" },
+ "hljs-attribute": { color: "#bf79db" },
+ "hljs-symbol": { color: "#bf79db" },
+ "hljs-regexp": { color: "#bf79db" },
+ "hljs-link": { color: "#bf79db" },
+ "hljs-string": { color: "#a6e22e" },
+ "hljs-bullet": { color: "#a6e22e" },
+ "hljs-subst": { color: "#a6e22e" },
+ "hljs-title": { color: "#a6e22e", fontWeight: "bold" },
+ "hljs-section": { color: "#a6e22e", fontWeight: "bold" },
+ "hljs-emphasis": { color: "#a6e22e" },
+ "hljs-type": { color: "#a6e22e", fontWeight: "bold" },
+ "hljs-built_in": { color: "#a6e22e" },
+ "hljs-builtin-name": { color: "#a6e22e" },
+ "hljs-selector-attr": { color: "#a6e22e" },
+ "hljs-selector-pseudo": { color: "#a6e22e" },
+ "hljs-addition": { color: "#a6e22e" },
+ "hljs-variable": { color: "#a6e22e" },
+ "hljs-template-tag": { color: "#a6e22e" },
+ "hljs-template-variable": { color: "#a6e22e" },
+ "hljs-comment": { color: "#75715e" },
+ "hljs-quote": { color: "#75715e" },
+ "hljs-deletion": { color: "#75715e" },
+ "hljs-meta": { color: "#75715e" },
+ "hljs-doctag": { fontWeight: "bold" },
+ "hljs-selector-id": { fontWeight: "bold" },
+ },
+ nord: {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ background: "#2E3440",
+ color: "#D8DEE9",
+ },
+ "hljs-subst": { color: "#D8DEE9" },
+ "hljs-selector-tag": { color: "#81A1C1" },
+ "hljs-selector-id": { color: "#8FBCBB", fontWeight: "bold" },
+ "hljs-selector-class": { color: "#8FBCBB" },
+ "hljs-selector-attr": { color: "#8FBCBB" },
+ "hljs-selector-pseudo": { color: "#88C0D0" },
+ "hljs-addition": {
+ backgroundColor: "rgba(163, 190, 140, 0.5)",
+ },
+ "hljs-deletion": { backgroundColor: "rgba(191, 97, 106, 0.5)" },
+ "hljs-built_in": { color: "#8FBCBB" },
+ "hljs-type": { color: "#8FBCBB" },
+ "hljs-class": { color: "#8FBCBB" },
+ "hljs-function": { color: "#88C0D0" },
+ "hljs-function > .hljs-title": { color: "#88C0D0" },
+ "hljs-keyword": { color: "#81A1C1" },
+ "hljs-literal": { color: "#81A1C1" },
+ "hljs-symbol": { color: "#81A1C1" },
+ "hljs-number": { color: "#B48EAD" },
+ "hljs-regexp": { color: "#EBCB8B" },
+ "hljs-string": { color: "#A3BE8C" },
+ "hljs-title": { color: "#8FBCBB" },
+ "hljs-params": { color: "#D8DEE9" },
+ "hljs-bullet": { color: "#81A1C1" },
+ "hljs-code": { color: "#8FBCBB" },
+ "hljs-emphasis": { fontStyle: "italic" },
+ "hljs-formula": { color: "#8FBCBB" },
+ "hljs-strong": { fontWeight: "bold" },
+ "hljs-link:hover": { textDecoration: "underline" },
+ "hljs-quote": { color: "#4C566A" },
+ "hljs-comment": { color: "#4C566A" },
+ "hljs-doctag": { color: "#8FBCBB" },
+ "hljs-meta": { color: "#5E81AC" },
+ "hljs-meta-keyword": { color: "#5E81AC" },
+ "hljs-meta-string": { color: "#A3BE8C" },
+ "hljs-attr": { color: "#8FBCBB" },
+ "hljs-attribute": { color: "#D8DEE9" },
+ "hljs-builtin-name": { color: "#81A1C1" },
+ "hljs-name": { color: "#81A1C1" },
+ "hljs-section": { color: "#88C0D0" },
+ "hljs-tag": { color: "#81A1C1" },
+ "hljs-variable": { color: "#D8DEE9" },
+ "hljs-template-variable": { color: "#D8DEE9" },
+ "hljs-template-tag": { color: "#5E81AC" },
+ "abnf .hljs-attribute": { color: "#88C0D0" },
+ "abnf .hljs-symbol": { color: "#EBCB8B" },
+ "apache .hljs-attribute": { color: "#88C0D0" },
+ "apache .hljs-section": { color: "#81A1C1" },
+ "arduino .hljs-built_in": { color: "#88C0D0" },
+ "aspectj .hljs-meta": { color: "#D08770" },
+ "aspectj > .hljs-title": { color: "#88C0D0" },
+ "bnf .hljs-attribute": { color: "#8FBCBB" },
+ "clojure .hljs-name": { color: "#88C0D0" },
+ "clojure .hljs-symbol": { color: "#EBCB8B" },
+ "coq .hljs-built_in": { color: "#88C0D0" },
+ "cpp .hljs-meta-string": { color: "#8FBCBB" },
+ "css .hljs-built_in": { color: "#88C0D0" },
+ "css .hljs-keyword": { color: "#D08770" },
+ "diff .hljs-meta": { color: "#8FBCBB" },
+ "ebnf .hljs-attribute": { color: "#8FBCBB" },
+ "glsl .hljs-built_in": { color: "#88C0D0" },
+ "groovy .hljs-meta:not(:first-child)": { color: "#D08770" },
+ "haxe .hljs-meta": { color: "#D08770" },
+ "java .hljs-meta": { color: "#D08770" },
+ "ldif .hljs-attribute": { color: "#8FBCBB" },
+ "lisp .hljs-name": { color: "#88C0D0" },
+ "lua .hljs-built_in": { color: "#88C0D0" },
+ "moonscript .hljs-built_in": { color: "#88C0D0" },
+ "nginx .hljs-attribute": { color: "#88C0D0" },
+ "nginx .hljs-section": { color: "#5E81AC" },
+ "pf .hljs-built_in": { color: "#88C0D0" },
+ "processing .hljs-built_in": { color: "#88C0D0" },
+ "scss .hljs-keyword": { color: "#81A1C1" },
+ "stylus .hljs-keyword": { color: "#81A1C1" },
+ "swift .hljs-meta": { color: "#D08770" },
+ "vim .hljs-built_in": { color: "#88C0D0", fontStyle: "italic" },
+ "yaml .hljs-meta": { color: "#D08770" },
+ },
+ obsidian: {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ background: "#282b2e",
+ color: "#e0e2e4",
+ },
+ "hljs-keyword": { color: "#93c763", fontWeight: "bold" },
+ "hljs-selector-tag": { color: "#93c763", fontWeight: "bold" },
+ "hljs-literal": { color: "#93c763", fontWeight: "bold" },
+ "hljs-selector-id": { color: "#93c763" },
+ "hljs-number": { color: "#ffcd22" },
+ "hljs-attribute": { color: "#668bb0" },
+ "hljs-code": { color: "white" },
+ "hljs-class .hljs-title": { color: "white" },
+ "hljs-section": { color: "white", fontWeight: "bold" },
+ "hljs-regexp": { color: "#d39745" },
+ "hljs-link": { color: "#d39745" },
+ "hljs-meta": { color: "#557182" },
+ "hljs-tag": { color: "#8cbbad" },
+ "hljs-name": { color: "#8cbbad", fontWeight: "bold" },
+ "hljs-bullet": { color: "#8cbbad" },
+ "hljs-subst": { color: "#8cbbad" },
+ "hljs-emphasis": { color: "#8cbbad" },
+ "hljs-type": { color: "#8cbbad", fontWeight: "bold" },
+ "hljs-built_in": { color: "#8cbbad" },
+ "hljs-selector-attr": { color: "#8cbbad" },
+ "hljs-selector-pseudo": { color: "#8cbbad" },
+ "hljs-addition": { color: "#8cbbad" },
+ "hljs-variable": { color: "#8cbbad" },
+ "hljs-template-tag": { color: "#8cbbad" },
+ "hljs-template-variable": { color: "#8cbbad" },
+ "hljs-string": { color: "#ec7600" },
+ "hljs-symbol": { color: "#ec7600" },
+ "hljs-comment": { color: "#818e96" },
+ "hljs-quote": { color: "#818e96" },
+ "hljs-deletion": { color: "#818e96" },
+ "hljs-selector-class": { color: "#A082BD" },
+ "hljs-doctag": { fontWeight: "bold" },
+ "hljs-title": { fontWeight: "bold" },
+ "hljs-strong": { fontWeight: "bold" },
+ },
+ "tomorrow-night": {
+ "hljs-comment": { color: "#969896" },
+ "hljs-quote": { color: "#969896" },
+ "hljs-variable": { color: "#cc6666" },
+ "hljs-template-variable": { color: "#cc6666" },
+ "hljs-tag": { color: "#cc6666" },
+ "hljs-name": { color: "#cc6666" },
+ "hljs-selector-id": { color: "#cc6666" },
+ "hljs-selector-class": { color: "#cc6666" },
+ "hljs-regexp": { color: "#cc6666" },
+ "hljs-deletion": { color: "#cc6666" },
+ "hljs-number": { color: "#de935f" },
+ "hljs-built_in": { color: "#de935f" },
+ "hljs-builtin-name": { color: "#de935f" },
+ "hljs-literal": { color: "#de935f" },
+ "hljs-type": { color: "#de935f" },
+ "hljs-params": { color: "#de935f" },
+ "hljs-meta": { color: "#de935f" },
+ "hljs-link": { color: "#de935f" },
+ "hljs-attribute": { color: "#f0c674" },
+ "hljs-string": { color: "#b5bd68" },
+ "hljs-symbol": { color: "#b5bd68" },
+ "hljs-bullet": { color: "#b5bd68" },
+ "hljs-addition": { color: "#b5bd68" },
+ "hljs-title": { color: "#81a2be" },
+ "hljs-section": { color: "#81a2be" },
+ "hljs-keyword": { color: "#b294bb" },
+ "hljs-selector-tag": { color: "#b294bb" },
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ background: "#1d1f21",
+ color: "#c5c8c6",
+ padding: "0.5em",
+ },
+ "hljs-emphasis": { fontStyle: "italic" },
+ "hljs-strong": { fontWeight: "bold" },
+ },
+ idea: {
+ hljs: {
+ display: "block",
+ overflowX: "auto",
+ padding: "0.5em",
+ color: "#000",
+ background: "#fff",
+ },
+ "hljs-subst": { fontWeight: "normal", color: "#000" },
+ "hljs-title": { fontWeight: "normal", color: "#000" },
+ "hljs-comment": { color: "#808080", fontStyle: "italic" },
+ "hljs-quote": { color: "#808080", fontStyle: "italic" },
+ "hljs-meta": { color: "#808000" },
+ "hljs-tag": { background: "#efefef" },
+ "hljs-section": { fontWeight: "bold", color: "#000080" },
+ "hljs-name": { fontWeight: "bold", color: "#000080" },
+ "hljs-literal": { fontWeight: "bold", color: "#000080" },
+ "hljs-keyword": { fontWeight: "bold", color: "#000080" },
+ "hljs-selector-tag": { fontWeight: "bold", color: "#000080" },
+ "hljs-type": { fontWeight: "bold", color: "#000080" },
+ "hljs-selector-id": { fontWeight: "bold", color: "#000080" },
+ "hljs-selector-class": { fontWeight: "bold", color: "#000080" },
+ "hljs-attribute": { fontWeight: "bold", color: "#0000ff" },
+ "hljs-number": { fontWeight: "normal", color: "#0000ff" },
+ "hljs-regexp": { fontWeight: "normal", color: "#0000ff" },
+ "hljs-link": { fontWeight: "normal", color: "#0000ff" },
+ "hljs-string": { color: "#008000", fontWeight: "bold" },
+ "hljs-symbol": {
+ color: "#000",
+ background: "#d0eded",
+ fontStyle: "italic",
+ },
+ "hljs-bullet": {
+ color: "#000",
+ background: "#d0eded",
+ fontStyle: "italic",
+ },
+ "hljs-formula": {
+ color: "#000",
+ background: "#d0eded",
+ fontStyle: "italic",
+ },
+ "hljs-doctag": { textDecoration: "underline" },
+ "hljs-variable": { color: "#660e7a" },
+ "hljs-template-variable": { color: "#660e7a" },
+ "hljs-addition": { background: "#baeeba" },
+ "hljs-deletion": { background: "#ffc8bd" },
+ "hljs-emphasis": { fontStyle: "italic" },
+ "hljs-strong": { fontWeight: "bold" },
+ },
+ },
+ Q = o()(X),
+ ee = (e) =>
+ i()(Q).call(Q, e)
+ ? X[e]
+ : (console.warn(
+ `Request style '${e}' is not available, returning default instead`
+ ),
+ Y);
+ },
+ 90242: (e, t, n) => {
+ "use strict";
+ n.d(t, {
+ AF: () => ae,
+ Ay: () => fe,
+ D$: () => De,
+ DR: () => ve,
+ GZ: () => je,
+ HP: () => he,
+ Ik: () => Ee,
+ J6: () => Ne,
+ Kn: () => ce,
+ LQ: () => le,
+ Nm: () => ke,
+ O2: () => Ue,
+ Pz: () => Me,
+ Q2: () => de,
+ QG: () => Ce,
+ UG: () => xe,
+ Uj: () => Be,
+ V9: () => Fe,
+ Wl: () => ue,
+ XV: () => Re,
+ Xb: () => $e,
+ Zl: () => be,
+ _5: () => me,
+ be: () => Oe,
+ cz: () => Le,
+ gp: () => ye,
+ hW: () => Ae,
+ iQ: () => ge,
+ kJ: () => pe,
+ mz: () => se,
+ nX: () => Ie,
+ oG: () => ie,
+ oJ: () => Pe,
+ po: () => Te,
+ r3: () => Se,
+ wh: () => _e,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(74386),
+ l = n.n(a),
+ c = n(86),
+ u = n.n(c),
+ p = n(14418),
+ h = n.n(p),
+ f = n(28222),
+ d = n.n(f),
+ m = (n(11189), n(24282)),
+ g = n.n(m),
+ y = n(76986),
+ v = n.n(y),
+ b = n(2578),
+ w = n.n(b),
+ E = (n(24278), n(39022), n(92039)),
+ x = n.n(E),
+ S = (n(58118), n(11882)),
+ _ = n.n(S),
+ j = n(51679),
+ O = n.n(j),
+ k = n(27043),
+ A = n.n(k),
+ C = n(81607),
+ P = n.n(C),
+ N = n(35627),
+ I = n.n(N),
+ T = n(43393),
+ R = n.n(T),
+ M = n(17967),
+ D = n(68929),
+ F = n.n(D),
+ L = n(11700),
+ B = n.n(L),
+ $ = n(88306),
+ q = n.n($),
+ U = n(13311),
+ z = n.n(U),
+ V = (n(59704), n(77813)),
+ W = n.n(V),
+ J = n(23560),
+ K = n.n(J),
+ H = n(27504),
+ G = n(8269),
+ Z = n.n(G),
+ Y = n(19069),
+ X = n(92282),
+ Q = n.n(X),
+ ee = n(89072),
+ te = n.n(ee),
+ ne = n(48764).Buffer;
+ const re = "default",
+ oe = (e) => R().Iterable.isIterable(e);
+ function se(e) {
+ return ce(e) ? (oe(e) ? e.toJS() : e) : {};
+ }
+ function ie(e) {
+ var t, n;
+ if (oe(e)) return e;
+ if (e instanceof H.Z.File) return e;
+ if (!ce(e)) return e;
+ if (o()(e))
+ return i()((n = R().Seq(e)))
+ .call(n, ie)
+ .toList();
+ if (K()(l()(e))) {
+ var r;
+ const t = (function (e) {
+ if (!K()(l()(e))) return e;
+ const t = {},
+ n = "_**[]",
+ r = {};
+ for (let o of l()(e).call(e))
+ if (t[o[0]] || (r[o[0]] && r[o[0]].containsMultiple)) {
+ if (!r[o[0]]) {
+ (r[o[0]] = { containsMultiple: !0, length: 1 }),
+ (t[`${o[0]}${n}${r[o[0]].length}`] = t[o[0]]),
+ delete t[o[0]];
+ }
+ (r[o[0]].length += 1),
+ (t[`${o[0]}${n}${r[o[0]].length}`] = o[1]);
+ } else t[o[0]] = o[1];
+ return t;
+ })(e);
+ return i()((r = R().OrderedMap(t))).call(r, ie);
+ }
+ return i()((t = R().OrderedMap(e))).call(t, ie);
+ }
+ function ae(e) {
+ return o()(e) ? e : [e];
+ }
+ function le(e) {
+ return "function" == typeof e;
+ }
+ function ce(e) {
+ return !!e && "object" == typeof e;
+ }
+ function ue(e) {
+ return "function" == typeof e;
+ }
+ function pe(e) {
+ return o()(e);
+ }
+ const he = q();
+ function fe(e, t) {
+ var n;
+ return g()((n = d()(e))).call(
+ n,
+ (n, r) => ((n[r] = t(e[r], r)), n),
+ {}
+ );
+ }
+ function de(e, t) {
+ var n;
+ return g()((n = d()(e))).call(
+ n,
+ (n, r) => {
+ let o = t(e[r], r);
+ return o && "object" == typeof o && v()(n, o), n;
+ },
+ {}
+ );
+ }
+ function me(e) {
+ return (t) => {
+ let { dispatch: n, getState: r } = t;
+ return (t) => (n) => "function" == typeof n ? n(e()) : t(n);
+ };
+ }
+ function ge(e) {
+ var t;
+ let n = e.keySeq();
+ return n.contains(re)
+ ? re
+ : w()((t = h()(n).call(n, (e) => "2" === (e + "")[0])))
+ .call(t)
+ .first();
+ }
+ function ye(e, t) {
+ if (!R().Iterable.isIterable(e)) return R().List();
+ let n = e.getIn(o()(t) ? t : [t]);
+ return R().List.isList(n) ? n : R().List();
+ }
+ function ve(e) {
+ let t,
+ n = [
+ /filename\*=[^']+'\w*'"([^"]+)";?/i,
+ /filename\*=[^']+'\w*'([^;]+);?/i,
+ /filename="([^;]*);?"/i,
+ /filename=([^;]*);?/i,
+ ];
+ if (
+ (x()(n).call(n, (n) => ((t = n.exec(e)), null !== t)),
+ null !== t && t.length > 1)
+ )
+ try {
+ return decodeURIComponent(t[1]);
+ } catch (e) {
+ console.error(e);
+ }
+ return null;
+ }
+ function be(e) {
+ return (t = e.replace(/\.[^./]*$/, "")), B()(F()(t));
+ var t;
+ }
+ function we(e, t, n, r, s) {
+ if (!t) return [];
+ let a = [],
+ l = t.get("nullable"),
+ c = t.get("required"),
+ p = t.get("maximum"),
+ f = t.get("minimum"),
+ d = t.get("type"),
+ m = t.get("format"),
+ g = t.get("maxLength"),
+ y = t.get("minLength"),
+ v = t.get("uniqueItems"),
+ b = t.get("maxItems"),
+ w = t.get("minItems"),
+ E = t.get("pattern");
+ const S = n || !0 === c,
+ _ = null != e;
+ if (
+ (l && null === e) ||
+ !d ||
+ !(S || (_ && "array" === d) || !(!S && !_))
+ )
+ return [];
+ let j = "string" === d && e,
+ O = "array" === d && o()(e) && e.length,
+ k = "array" === d && R().List.isList(e) && e.count();
+ const A = [
+ j,
+ O,
+ k,
+ "array" === d && "string" == typeof e && e,
+ "file" === d && e instanceof H.Z.File,
+ "boolean" === d && (e || !1 === e),
+ "number" === d && (e || 0 === e),
+ "integer" === d && (e || 0 === e),
+ "object" === d && "object" == typeof e && null !== e,
+ "object" === d && "string" == typeof e && e,
+ ],
+ C = x()(A).call(A, (e) => !!e);
+ if (S && !C && !r)
+ return a.push("Required field is not provided"), a;
+ if ("object" === d && (null === s || "application/json" === s)) {
+ let n = e;
+ if ("string" == typeof e)
+ try {
+ n = JSON.parse(e);
+ } catch (e) {
+ return a.push("Parameter string value must be valid JSON"), a;
+ }
+ var P;
+ if (
+ (t &&
+ t.has("required") &&
+ ue(c.isList) &&
+ c.isList() &&
+ u()(c).call(c, (e) => {
+ void 0 === n[e] &&
+ a.push({
+ propKey: e,
+ error: "Required property not found",
+ });
+ }),
+ t && t.has("properties"))
+ )
+ u()((P = t.get("properties"))).call(P, (e, t) => {
+ const o = we(n[t], e, !1, r, s);
+ a.push(...i()(o).call(o, (e) => ({ propKey: t, error: e })));
+ });
+ }
+ if (E) {
+ let t = ((e, t) => {
+ if (!new RegExp(t).test(e))
+ return "Value must follow pattern " + t;
+ })(e, E);
+ t && a.push(t);
+ }
+ if (w && "array" === d) {
+ let t = ((e, t) => {
+ if ((!e && t >= 1) || (e && e.length < t))
+ return `Array must contain at least ${t} item${
+ 1 === t ? "" : "s"
+ }`;
+ })(e, w);
+ t && a.push(t);
+ }
+ if (b && "array" === d) {
+ let t = ((e, t) => {
+ if (e && e.length > t)
+ return `Array must not contain more then ${t} item${
+ 1 === t ? "" : "s"
+ }`;
+ })(e, b);
+ t && a.push({ needRemove: !0, error: t });
+ }
+ if (v && "array" === d) {
+ let t = ((e, t) => {
+ if (e && ("true" === t || !0 === t)) {
+ const t = (0, T.fromJS)(e),
+ n = t.toSet();
+ if (e.length > n.size) {
+ let e = (0, T.Set)();
+ if (
+ (u()(t).call(t, (n, r) => {
+ h()(t).call(t, (e) =>
+ ue(e.equals) ? e.equals(n) : e === n
+ ).size > 1 && (e = e.add(r));
+ }),
+ 0 !== e.size)
+ )
+ return i()(e)
+ .call(e, (e) => ({
+ index: e,
+ error: "No duplicates allowed.",
+ }))
+ .toArray();
+ }
+ }
+ })(e, v);
+ t && a.push(...t);
+ }
+ if (g || 0 === g) {
+ let t = ((e, t) => {
+ if (e.length > t)
+ return `Value must be no longer than ${t} character${
+ 1 !== t ? "s" : ""
+ }`;
+ })(e, g);
+ t && a.push(t);
+ }
+ if (y) {
+ let t = ((e, t) => {
+ if (e.length < t)
+ return `Value must be at least ${t} character${
+ 1 !== t ? "s" : ""
+ }`;
+ })(e, y);
+ t && a.push(t);
+ }
+ if (p || 0 === p) {
+ let t = ((e, t) => {
+ if (e > t) return `Value must be less than ${t}`;
+ })(e, p);
+ t && a.push(t);
+ }
+ if (f || 0 === f) {
+ let t = ((e, t) => {
+ if (e < t) return `Value must be greater than ${t}`;
+ })(e, f);
+ t && a.push(t);
+ }
+ if ("string" === d) {
+ let t;
+ if (
+ ((t =
+ "date-time" === m
+ ? ((e) => {
+ if (isNaN(Date.parse(e)))
+ return "Value must be a DateTime";
+ })(e)
+ : "uuid" === m
+ ? ((e) => {
+ if (
+ ((e = e.toString().toLowerCase()),
+ !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(
+ e
+ ))
+ )
+ return "Value must be a Guid";
+ })(e)
+ : ((e) => {
+ if (e && "string" != typeof e)
+ return "Value must be a string";
+ })(e)),
+ !t)
+ )
+ return a;
+ a.push(t);
+ } else if ("boolean" === d) {
+ let t = ((e) => {
+ if ("true" !== e && "false" !== e && !0 !== e && !1 !== e)
+ return "Value must be a boolean";
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ("number" === d) {
+ let t = ((e) => {
+ if (!/^-?\d+(\.?\d+)?$/.test(e))
+ return "Value must be a number";
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ("integer" === d) {
+ let t = ((e) => {
+ if (!/^-?\d+$/.test(e)) return "Value must be an integer";
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ("array" === d) {
+ if (!O && !k) return a;
+ e &&
+ u()(e).call(e, (e, n) => {
+ const o = we(e, t.get("items"), !1, r, s);
+ a.push(...i()(o).call(o, (e) => ({ index: n, error: e })));
+ });
+ } else if ("file" === d) {
+ let t = ((e) => {
+ if (e && !(e instanceof H.Z.File))
+ return "Value must be a file";
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ }
+ return a;
+ }
+ const Ee = function (e, t) {
+ let { isOAS3: n = !1, bypassRequiredCheck: r = !1 } =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {},
+ o = e.get("required"),
+ { schema: s, parameterContentMediaType: i } = (0, Y.Z)(e, {
+ isOAS3: n,
+ });
+ return we(t, s, o, r, i);
+ },
+ xe = () => {
+ let e = {},
+ t = H.Z.location.search;
+ if (!t) return {};
+ if ("" != t) {
+ let n = t.substr(1).split("&");
+ for (let t in n)
+ Object.prototype.hasOwnProperty.call(n, t) &&
+ ((t = n[t].split("=")),
+ (e[decodeURIComponent(t[0])] =
+ (t[1] && decodeURIComponent(t[1])) || ""));
+ }
+ return e;
+ },
+ Se = (e) => {
+ let t;
+ return (
+ (t = e instanceof ne ? e : ne.from(e.toString(), "utf-8")),
+ t.toString("base64")
+ );
+ },
+ _e = {
+ operationsSorter: {
+ alpha: (e, t) => e.get("path").localeCompare(t.get("path")),
+ method: (e, t) =>
+ e.get("method").localeCompare(t.get("method")),
+ },
+ tagsSorter: { alpha: (e, t) => e.localeCompare(t) },
+ },
+ je = (e) => {
+ let t = [];
+ for (let n in e) {
+ let r = e[n];
+ void 0 !== r &&
+ "" !== r &&
+ t.push(
+ [n, "=", encodeURIComponent(r).replace(/%20/g, "+")].join(
+ ""
+ )
+ );
+ }
+ return t.join("&");
+ },
+ Oe = (e, t, n) => !!z()(n, (n) => W()(e[n], t[n]));
+ function ke(e) {
+ return "string" != typeof e || "" === e ? "" : (0, M.Nm)(e);
+ }
+ function Ae(e) {
+ return !(
+ !e ||
+ _()(e).call(e, "localhost") >= 0 ||
+ _()(e).call(e, "127.0.0.1") >= 0 ||
+ "none" === e
+ );
+ }
+ function Ce(e) {
+ if (!R().OrderedMap.isOrderedMap(e)) return null;
+ if (!e.size) return null;
+ const t = O()(e).call(
+ e,
+ (e, t) =>
+ A()(t).call(t, "2") && d()(e.get("content") || {}).length > 0
+ ),
+ n = e.get("default") || R().OrderedMap(),
+ r = (n.get("content") || R().OrderedMap()).keySeq().toJS().length
+ ? n
+ : null;
+ return t || r;
+ }
+ const Pe = (e) =>
+ "string" == typeof e || e instanceof String
+ ? P()(e).call(e).replace(/\s/g, "%20")
+ : "",
+ Ne = (e) => Z()(Pe(e).replace(/%20/g, "_")),
+ Ie = (e) => h()(e).call(e, (e, t) => /^x-/.test(t)),
+ Te = (e) =>
+ h()(e).call(e, (e, t) =>
+ /^pattern|maxLength|minLength|maximum|minimum/.test(t)
+ );
+ function Re(e, t) {
+ var n;
+ let r =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : () => !0;
+ if ("object" != typeof e || o()(e) || null === e || !t) return e;
+ const s = v()({}, e);
+ return (
+ u()((n = d()(s))).call(n, (e) => {
+ e === t && r(s[e], e) ? delete s[e] : (s[e] = Re(s[e], t, r));
+ }),
+ s
+ );
+ }
+ function Me(e) {
+ if ("string" == typeof e) return e;
+ if (
+ (e && e.toJS && (e = e.toJS()),
+ "object" == typeof e && null !== e)
+ )
+ try {
+ return I()(e, null, 2);
+ } catch (t) {
+ return String(e);
+ }
+ return null == e ? "" : e.toString();
+ }
+ function De(e) {
+ return "number" == typeof e ? e.toString() : e;
+ }
+ function Fe(e) {
+ let { returnAll: t = !1, allowHashes: n = !0 } =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ if (!R().Map.isMap(e))
+ throw new Error(
+ "paramToIdentifier: received a non-Im.Map parameter as input"
+ );
+ const r = e.get("name"),
+ o = e.get("in");
+ let s = [];
+ return (
+ e &&
+ e.hashCode &&
+ o &&
+ r &&
+ n &&
+ s.push(`${o}.${r}.hash-${e.hashCode()}`),
+ o && r && s.push(`${o}.${r}`),
+ s.push(r),
+ t ? s : s[0] || ""
+ );
+ }
+ function Le(e, t) {
+ var n;
+ const r = Fe(e, { returnAll: !0 });
+ return h()((n = i()(r).call(r, (e) => t[e]))).call(
+ n,
+ (e) => void 0 !== e
+ )[0];
+ }
+ function Be() {
+ return qe(Q()(32).toString("base64"));
+ }
+ function $e(e) {
+ return qe(te()("sha256").update(e).digest("base64"));
+ }
+ function qe(e) {
+ return e.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
+ }
+ const Ue = (e) => !e || !(!oe(e) || !e.isEmpty());
+ },
+ 2518: (e, t, n) => {
+ "use strict";
+ function r(e) {
+ return (function (e) {
+ try {
+ return !!JSON.parse(e);
+ } catch (e) {
+ return null;
+ }
+ })(e)
+ ? "json"
+ : null;
+ }
+ n.d(t, { O: () => r });
+ },
+ 63543: (e, t, n) => {
+ "use strict";
+ n.d(t, { mn: () => a });
+ var r = n(63460),
+ o = n.n(r);
+ function s(e) {
+ return e.match(/^(?:[a-z]+:)?\/\//i);
+ }
+ function i(e, t) {
+ return e
+ ? s(e)
+ ? (function (e) {
+ return e.match(/^\/\//i)
+ ? `${window.location.protocol}${e}`
+ : e;
+ })(e)
+ : new (o())(e, t).href
+ : t;
+ }
+ function a(e, t) {
+ let { selectedServer: n = "" } =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ try {
+ return (function (e, t) {
+ let { selectedServer: n = "" } =
+ arguments.length > 2 && void 0 !== arguments[2]
+ ? arguments[2]
+ : {};
+ if (!e) return;
+ if (s(e)) return e;
+ const r = i(n, t);
+ return s(r)
+ ? new (o())(e, r).href
+ : new (o())(e, window.location.href).href;
+ })(e, t, { selectedServer: n });
+ } catch {
+ return;
+ }
+ }
+ },
+ 27504: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => r });
+ const r = (function () {
+ var e = {
+ location: {},
+ history: {},
+ open: () => {},
+ close: () => {},
+ File: function () {},
+ FormData: function () {},
+ };
+ if ("undefined" == typeof window) return e;
+ try {
+ e = window;
+ for (var t of ["File", "Blob", "FormData"])
+ t in window && (e[t] = window[t]);
+ } catch (e) {
+ console.error(e);
+ }
+ return e;
+ })();
+ },
+ 19069: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => u });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(43393),
+ l = n.n(a);
+ const c = l().Set.of(
+ "type",
+ "format",
+ "items",
+ "default",
+ "maximum",
+ "exclusiveMaximum",
+ "minimum",
+ "exclusiveMinimum",
+ "maxLength",
+ "minLength",
+ "pattern",
+ "maxItems",
+ "minItems",
+ "uniqueItems",
+ "enum",
+ "multipleOf"
+ );
+ function u(e) {
+ let { isOAS3: t } =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ if (!l().Map.isMap(e))
+ return { schema: l().Map(), parameterContentMediaType: null };
+ if (!t)
+ return "body" === e.get("in")
+ ? {
+ schema: e.get("schema", l().Map()),
+ parameterContentMediaType: null,
+ }
+ : {
+ schema: o()(e).call(e, (e, t) => i()(c).call(c, t)),
+ parameterContentMediaType: null,
+ };
+ if (e.get("content")) {
+ const t = e.get("content", l().Map({})).keySeq().first();
+ return {
+ schema: e.getIn(["content", t, "schema"], l().Map()),
+ parameterContentMediaType: t,
+ };
+ }
+ return {
+ schema: e.get("schema") ? e.get("schema", l().Map()) : l().Map(),
+ parameterContentMediaType: null,
+ };
+ }
+ },
+ 60314: (e, t, n) => {
+ "use strict";
+ n.d(t, { Z: () => x });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(2250),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(8712),
+ u = n.n(c),
+ p = n(51679),
+ h = n.n(p),
+ f = n(12373),
+ d = n.n(f),
+ m = n(18492),
+ g = n.n(m),
+ y = n(88306),
+ v = n.n(y);
+ const b = (e) => (t) =>
+ o()(e) &&
+ o()(t) &&
+ e.length === t.length &&
+ i()(e).call(e, (e, n) => e === t[n]),
+ w = function () {
+ for (
+ var e = arguments.length, t = new Array(e), n = 0;
+ n < e;
+ n++
+ )
+ t[n] = arguments[n];
+ return t;
+ };
+ class E extends g() {
+ delete(e) {
+ const t = l()(u()(this).call(this)),
+ n = h()(t).call(t, b(e));
+ return super.delete(n);
+ }
+ get(e) {
+ const t = l()(u()(this).call(this)),
+ n = h()(t).call(t, b(e));
+ return super.get(n);
+ }
+ has(e) {
+ const t = l()(u()(this).call(this));
+ return -1 !== d()(t).call(t, b(e));
+ }
+ }
+ const x = function (e) {
+ let t =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : w;
+ const { Cache: n } = v();
+ v().Cache = E;
+ const r = v()(e, t);
+ return (v().Cache = n), r;
+ };
+ },
+ 79742: (e, t) => {
+ "use strict";
+ (t.byteLength = function (e) {
+ var t = a(e),
+ n = t[0],
+ r = t[1];
+ return (3 * (n + r)) / 4 - r;
+ }),
+ (t.toByteArray = function (e) {
+ var t,
+ n,
+ s = a(e),
+ i = s[0],
+ l = s[1],
+ c = new o(
+ (function (e, t, n) {
+ return (3 * (t + n)) / 4 - n;
+ })(0, i, l)
+ ),
+ u = 0,
+ p = l > 0 ? i - 4 : i;
+ for (n = 0; n < p; n += 4)
+ (t =
+ (r[e.charCodeAt(n)] << 18) |
+ (r[e.charCodeAt(n + 1)] << 12) |
+ (r[e.charCodeAt(n + 2)] << 6) |
+ r[e.charCodeAt(n + 3)]),
+ (c[u++] = (t >> 16) & 255),
+ (c[u++] = (t >> 8) & 255),
+ (c[u++] = 255 & t);
+ 2 === l &&
+ ((t =
+ (r[e.charCodeAt(n)] << 2) | (r[e.charCodeAt(n + 1)] >> 4)),
+ (c[u++] = 255 & t));
+ 1 === l &&
+ ((t =
+ (r[e.charCodeAt(n)] << 10) |
+ (r[e.charCodeAt(n + 1)] << 4) |
+ (r[e.charCodeAt(n + 2)] >> 2)),
+ (c[u++] = (t >> 8) & 255),
+ (c[u++] = 255 & t));
+ return c;
+ }),
+ (t.fromByteArray = function (e) {
+ for (
+ var t,
+ r = e.length,
+ o = r % 3,
+ s = [],
+ i = 16383,
+ a = 0,
+ c = r - o;
+ a < c;
+ a += i
+ )
+ s.push(l(e, a, a + i > c ? c : a + i));
+ 1 === o
+ ? ((t = e[r - 1]), s.push(n[t >> 2] + n[(t << 4) & 63] + "=="))
+ : 2 === o &&
+ ((t = (e[r - 2] << 8) + e[r - 1]),
+ s.push(
+ n[t >> 10] + n[(t >> 4) & 63] + n[(t << 2) & 63] + "="
+ ));
+ return s.join("");
+ });
+ for (
+ var n = [],
+ r = [],
+ o = "undefined" != typeof Uint8Array ? Uint8Array : Array,
+ s =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
+ i = 0;
+ i < 64;
+ ++i
+ )
+ (n[i] = s[i]), (r[s.charCodeAt(i)] = i);
+ function a(e) {
+ var t = e.length;
+ if (t % 4 > 0)
+ throw new Error("Invalid string. Length must be a multiple of 4");
+ var n = e.indexOf("=");
+ return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)];
+ }
+ function l(e, t, r) {
+ for (var o, s, i = [], a = t; a < r; a += 3)
+ (o =
+ ((e[a] << 16) & 16711680) +
+ ((e[a + 1] << 8) & 65280) +
+ (255 & e[a + 2])),
+ i.push(
+ n[((s = o) >> 18) & 63] +
+ n[(s >> 12) & 63] +
+ n[(s >> 6) & 63] +
+ n[63 & s]
+ );
+ return i.join("");
+ }
+ (r["-".charCodeAt(0)] = 62), (r["_".charCodeAt(0)] = 63);
+ },
+ 48764: (e, t, n) => {
+ "use strict";
+ const r = n(79742),
+ o = n(80645),
+ s =
+ "function" == typeof Symbol && "function" == typeof Symbol.for
+ ? Symbol.for("nodejs.util.inspect.custom")
+ : null;
+ (t.Buffer = l),
+ (t.SlowBuffer = function (e) {
+ +e != e && (e = 0);
+ return l.alloc(+e);
+ }),
+ (t.INSPECT_MAX_BYTES = 50);
+ const i = 2147483647;
+ function a(e) {
+ if (e > i)
+ throw new RangeError(
+ 'The value "' + e + '" is invalid for option "size"'
+ );
+ const t = new Uint8Array(e);
+ return Object.setPrototypeOf(t, l.prototype), t;
+ }
+ function l(e, t, n) {
+ if ("number" == typeof e) {
+ if ("string" == typeof t)
+ throw new TypeError(
+ 'The "string" argument must be of type string. Received type number'
+ );
+ return p(e);
+ }
+ return c(e, t, n);
+ }
+ function c(e, t, n) {
+ if ("string" == typeof e)
+ return (function (e, t) {
+ ("string" == typeof t && "" !== t) || (t = "utf8");
+ if (!l.isEncoding(t))
+ throw new TypeError("Unknown encoding: " + t);
+ const n = 0 | m(e, t);
+ let r = a(n);
+ const o = r.write(e, t);
+ o !== n && (r = r.slice(0, o));
+ return r;
+ })(e, t);
+ if (ArrayBuffer.isView(e))
+ return (function (e) {
+ if (G(e, Uint8Array)) {
+ const t = new Uint8Array(e);
+ return f(t.buffer, t.byteOffset, t.byteLength);
+ }
+ return h(e);
+ })(e);
+ if (null == e)
+ throw new TypeError(
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " +
+ typeof e
+ );
+ if (G(e, ArrayBuffer) || (e && G(e.buffer, ArrayBuffer)))
+ return f(e, t, n);
+ if (
+ "undefined" != typeof SharedArrayBuffer &&
+ (G(e, SharedArrayBuffer) || (e && G(e.buffer, SharedArrayBuffer)))
+ )
+ return f(e, t, n);
+ if ("number" == typeof e)
+ throw new TypeError(
+ 'The "value" argument must not be of type number. Received type number'
+ );
+ const r = e.valueOf && e.valueOf();
+ if (null != r && r !== e) return l.from(r, t, n);
+ const o = (function (e) {
+ if (l.isBuffer(e)) {
+ const t = 0 | d(e.length),
+ n = a(t);
+ return 0 === n.length || e.copy(n, 0, 0, t), n;
+ }
+ if (void 0 !== e.length)
+ return "number" != typeof e.length || Z(e.length) ? a(0) : h(e);
+ if ("Buffer" === e.type && Array.isArray(e.data))
+ return h(e.data);
+ })(e);
+ if (o) return o;
+ if (
+ "undefined" != typeof Symbol &&
+ null != Symbol.toPrimitive &&
+ "function" == typeof e[Symbol.toPrimitive]
+ )
+ return l.from(e[Symbol.toPrimitive]("string"), t, n);
+ throw new TypeError(
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " +
+ typeof e
+ );
+ }
+ function u(e) {
+ if ("number" != typeof e)
+ throw new TypeError('"size" argument must be of type number');
+ if (e < 0)
+ throw new RangeError(
+ 'The value "' + e + '" is invalid for option "size"'
+ );
+ }
+ function p(e) {
+ return u(e), a(e < 0 ? 0 : 0 | d(e));
+ }
+ function h(e) {
+ const t = e.length < 0 ? 0 : 0 | d(e.length),
+ n = a(t);
+ for (let r = 0; r < t; r += 1) n[r] = 255 & e[r];
+ return n;
+ }
+ function f(e, t, n) {
+ if (t < 0 || e.byteLength < t)
+ throw new RangeError('"offset" is outside of buffer bounds');
+ if (e.byteLength < t + (n || 0))
+ throw new RangeError('"length" is outside of buffer bounds');
+ let r;
+ return (
+ (r =
+ void 0 === t && void 0 === n
+ ? new Uint8Array(e)
+ : void 0 === n
+ ? new Uint8Array(e, t)
+ : new Uint8Array(e, t, n)),
+ Object.setPrototypeOf(r, l.prototype),
+ r
+ );
+ }
+ function d(e) {
+ if (e >= i)
+ throw new RangeError(
+ "Attempt to allocate Buffer larger than maximum size: 0x" +
+ i.toString(16) +
+ " bytes"
+ );
+ return 0 | e;
+ }
+ function m(e, t) {
+ if (l.isBuffer(e)) return e.length;
+ if (ArrayBuffer.isView(e) || G(e, ArrayBuffer)) return e.byteLength;
+ if ("string" != typeof e)
+ throw new TypeError(
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' +
+ typeof e
+ );
+ const n = e.length,
+ r = arguments.length > 2 && !0 === arguments[2];
+ if (!r && 0 === n) return 0;
+ let o = !1;
+ for (;;)
+ switch (t) {
+ case "ascii":
+ case "latin1":
+ case "binary":
+ return n;
+ case "utf8":
+ case "utf-8":
+ return J(e).length;
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return 2 * n;
+ case "hex":
+ return n >>> 1;
+ case "base64":
+ return K(e).length;
+ default:
+ if (o) return r ? -1 : J(e).length;
+ (t = ("" + t).toLowerCase()), (o = !0);
+ }
+ }
+ function g(e, t, n) {
+ let r = !1;
+ if (((void 0 === t || t < 0) && (t = 0), t > this.length))
+ return "";
+ if (
+ ((void 0 === n || n > this.length) && (n = this.length), n <= 0)
+ )
+ return "";
+ if ((n >>>= 0) <= (t >>>= 0)) return "";
+ for (e || (e = "utf8"); ; )
+ switch (e) {
+ case "hex":
+ return P(this, t, n);
+ case "utf8":
+ case "utf-8":
+ return O(this, t, n);
+ case "ascii":
+ return A(this, t, n);
+ case "latin1":
+ case "binary":
+ return C(this, t, n);
+ case "base64":
+ return j(this, t, n);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return N(this, t, n);
+ default:
+ if (r) throw new TypeError("Unknown encoding: " + e);
+ (e = (e + "").toLowerCase()), (r = !0);
+ }
+ }
+ function y(e, t, n) {
+ const r = e[t];
+ (e[t] = e[n]), (e[n] = r);
+ }
+ function v(e, t, n, r, o) {
+ if (0 === e.length) return -1;
+ if (
+ ("string" == typeof n
+ ? ((r = n), (n = 0))
+ : n > 2147483647
+ ? (n = 2147483647)
+ : n < -2147483648 && (n = -2147483648),
+ Z((n = +n)) && (n = o ? 0 : e.length - 1),
+ n < 0 && (n = e.length + n),
+ n >= e.length)
+ ) {
+ if (o) return -1;
+ n = e.length - 1;
+ } else if (n < 0) {
+ if (!o) return -1;
+ n = 0;
+ }
+ if (("string" == typeof t && (t = l.from(t, r)), l.isBuffer(t)))
+ return 0 === t.length ? -1 : b(e, t, n, r, o);
+ if ("number" == typeof t)
+ return (
+ (t &= 255),
+ "function" == typeof Uint8Array.prototype.indexOf
+ ? o
+ ? Uint8Array.prototype.indexOf.call(e, t, n)
+ : Uint8Array.prototype.lastIndexOf.call(e, t, n)
+ : b(e, [t], n, r, o)
+ );
+ throw new TypeError("val must be string, number or Buffer");
+ }
+ function b(e, t, n, r, o) {
+ let s,
+ i = 1,
+ a = e.length,
+ l = t.length;
+ if (
+ void 0 !== r &&
+ ("ucs2" === (r = String(r).toLowerCase()) ||
+ "ucs-2" === r ||
+ "utf16le" === r ||
+ "utf-16le" === r)
+ ) {
+ if (e.length < 2 || t.length < 2) return -1;
+ (i = 2), (a /= 2), (l /= 2), (n /= 2);
+ }
+ function c(e, t) {
+ return 1 === i ? e[t] : e.readUInt16BE(t * i);
+ }
+ if (o) {
+ let r = -1;
+ for (s = n; s < a; s++)
+ if (c(e, s) === c(t, -1 === r ? 0 : s - r)) {
+ if ((-1 === r && (r = s), s - r + 1 === l)) return r * i;
+ } else -1 !== r && (s -= s - r), (r = -1);
+ } else
+ for (n + l > a && (n = a - l), s = n; s >= 0; s--) {
+ let n = !0;
+ for (let r = 0; r < l; r++)
+ if (c(e, s + r) !== c(t, r)) {
+ n = !1;
+ break;
+ }
+ if (n) return s;
+ }
+ return -1;
+ }
+ function w(e, t, n, r) {
+ n = Number(n) || 0;
+ const o = e.length - n;
+ r ? (r = Number(r)) > o && (r = o) : (r = o);
+ const s = t.length;
+ let i;
+ for (r > s / 2 && (r = s / 2), i = 0; i < r; ++i) {
+ const r = parseInt(t.substr(2 * i, 2), 16);
+ if (Z(r)) return i;
+ e[n + i] = r;
+ }
+ return i;
+ }
+ function E(e, t, n, r) {
+ return H(J(t, e.length - n), e, n, r);
+ }
+ function x(e, t, n, r) {
+ return H(
+ (function (e) {
+ const t = [];
+ for (let n = 0; n < e.length; ++n)
+ t.push(255 & e.charCodeAt(n));
+ return t;
+ })(t),
+ e,
+ n,
+ r
+ );
+ }
+ function S(e, t, n, r) {
+ return H(K(t), e, n, r);
+ }
+ function _(e, t, n, r) {
+ return H(
+ (function (e, t) {
+ let n, r, o;
+ const s = [];
+ for (let i = 0; i < e.length && !((t -= 2) < 0); ++i)
+ (n = e.charCodeAt(i)),
+ (r = n >> 8),
+ (o = n % 256),
+ s.push(o),
+ s.push(r);
+ return s;
+ })(t, e.length - n),
+ e,
+ n,
+ r
+ );
+ }
+ function j(e, t, n) {
+ return 0 === t && n === e.length
+ ? r.fromByteArray(e)
+ : r.fromByteArray(e.slice(t, n));
+ }
+ function O(e, t, n) {
+ n = Math.min(e.length, n);
+ const r = [];
+ let o = t;
+ for (; o < n; ) {
+ const t = e[o];
+ let s = null,
+ i = t > 239 ? 4 : t > 223 ? 3 : t > 191 ? 2 : 1;
+ if (o + i <= n) {
+ let n, r, a, l;
+ switch (i) {
+ case 1:
+ t < 128 && (s = t);
+ break;
+ case 2:
+ (n = e[o + 1]),
+ 128 == (192 & n) &&
+ ((l = ((31 & t) << 6) | (63 & n)), l > 127 && (s = l));
+ break;
+ case 3:
+ (n = e[o + 1]),
+ (r = e[o + 2]),
+ 128 == (192 & n) &&
+ 128 == (192 & r) &&
+ ((l = ((15 & t) << 12) | ((63 & n) << 6) | (63 & r)),
+ l > 2047 && (l < 55296 || l > 57343) && (s = l));
+ break;
+ case 4:
+ (n = e[o + 1]),
+ (r = e[o + 2]),
+ (a = e[o + 3]),
+ 128 == (192 & n) &&
+ 128 == (192 & r) &&
+ 128 == (192 & a) &&
+ ((l =
+ ((15 & t) << 18) |
+ ((63 & n) << 12) |
+ ((63 & r) << 6) |
+ (63 & a)),
+ l > 65535 && l < 1114112 && (s = l));
+ }
+ }
+ null === s
+ ? ((s = 65533), (i = 1))
+ : s > 65535 &&
+ ((s -= 65536),
+ r.push(((s >>> 10) & 1023) | 55296),
+ (s = 56320 | (1023 & s))),
+ r.push(s),
+ (o += i);
+ }
+ return (function (e) {
+ const t = e.length;
+ if (t <= k) return String.fromCharCode.apply(String, e);
+ let n = "",
+ r = 0;
+ for (; r < t; )
+ n += String.fromCharCode.apply(String, e.slice(r, (r += k)));
+ return n;
+ })(r);
+ }
+ (t.kMaxLength = i),
+ (l.TYPED_ARRAY_SUPPORT = (function () {
+ try {
+ const e = new Uint8Array(1),
+ t = {
+ foo: function () {
+ return 42;
+ },
+ };
+ return (
+ Object.setPrototypeOf(t, Uint8Array.prototype),
+ Object.setPrototypeOf(e, t),
+ 42 === e.foo()
+ );
+ } catch (e) {
+ return !1;
+ }
+ })()),
+ l.TYPED_ARRAY_SUPPORT ||
+ "undefined" == typeof console ||
+ "function" != typeof console.error ||
+ console.error(
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
+ ),
+ Object.defineProperty(l.prototype, "parent", {
+ enumerable: !0,
+ get: function () {
+ if (l.isBuffer(this)) return this.buffer;
+ },
+ }),
+ Object.defineProperty(l.prototype, "offset", {
+ enumerable: !0,
+ get: function () {
+ if (l.isBuffer(this)) return this.byteOffset;
+ },
+ }),
+ (l.poolSize = 8192),
+ (l.from = function (e, t, n) {
+ return c(e, t, n);
+ }),
+ Object.setPrototypeOf(l.prototype, Uint8Array.prototype),
+ Object.setPrototypeOf(l, Uint8Array),
+ (l.alloc = function (e, t, n) {
+ return (function (e, t, n) {
+ return (
+ u(e),
+ e <= 0
+ ? a(e)
+ : void 0 !== t
+ ? "string" == typeof n
+ ? a(e).fill(t, n)
+ : a(e).fill(t)
+ : a(e)
+ );
+ })(e, t, n);
+ }),
+ (l.allocUnsafe = function (e) {
+ return p(e);
+ }),
+ (l.allocUnsafeSlow = function (e) {
+ return p(e);
+ }),
+ (l.isBuffer = function (e) {
+ return null != e && !0 === e._isBuffer && e !== l.prototype;
+ }),
+ (l.compare = function (e, t) {
+ if (
+ (G(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)),
+ G(t, Uint8Array) && (t = l.from(t, t.offset, t.byteLength)),
+ !l.isBuffer(e) || !l.isBuffer(t))
+ )
+ throw new TypeError(
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
+ );
+ if (e === t) return 0;
+ let n = e.length,
+ r = t.length;
+ for (let o = 0, s = Math.min(n, r); o < s; ++o)
+ if (e[o] !== t[o]) {
+ (n = e[o]), (r = t[o]);
+ break;
+ }
+ return n < r ? -1 : r < n ? 1 : 0;
+ }),
+ (l.isEncoding = function (e) {
+ switch (String(e).toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "latin1":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return !0;
+ default:
+ return !1;
+ }
+ }),
+ (l.concat = function (e, t) {
+ if (!Array.isArray(e))
+ throw new TypeError(
+ '"list" argument must be an Array of Buffers'
+ );
+ if (0 === e.length) return l.alloc(0);
+ let n;
+ if (void 0 === t)
+ for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
+ const r = l.allocUnsafe(t);
+ let o = 0;
+ for (n = 0; n < e.length; ++n) {
+ let t = e[n];
+ if (G(t, Uint8Array))
+ o + t.length > r.length
+ ? (l.isBuffer(t) || (t = l.from(t)), t.copy(r, o))
+ : Uint8Array.prototype.set.call(r, t, o);
+ else {
+ if (!l.isBuffer(t))
+ throw new TypeError(
+ '"list" argument must be an Array of Buffers'
+ );
+ t.copy(r, o);
+ }
+ o += t.length;
+ }
+ return r;
+ }),
+ (l.byteLength = m),
+ (l.prototype._isBuffer = !0),
+ (l.prototype.swap16 = function () {
+ const e = this.length;
+ if (e % 2 != 0)
+ throw new RangeError(
+ "Buffer size must be a multiple of 16-bits"
+ );
+ for (let t = 0; t < e; t += 2) y(this, t, t + 1);
+ return this;
+ }),
+ (l.prototype.swap32 = function () {
+ const e = this.length;
+ if (e % 4 != 0)
+ throw new RangeError(
+ "Buffer size must be a multiple of 32-bits"
+ );
+ for (let t = 0; t < e; t += 4)
+ y(this, t, t + 3), y(this, t + 1, t + 2);
+ return this;
+ }),
+ (l.prototype.swap64 = function () {
+ const e = this.length;
+ if (e % 8 != 0)
+ throw new RangeError(
+ "Buffer size must be a multiple of 64-bits"
+ );
+ for (let t = 0; t < e; t += 8)
+ y(this, t, t + 7),
+ y(this, t + 1, t + 6),
+ y(this, t + 2, t + 5),
+ y(this, t + 3, t + 4);
+ return this;
+ }),
+ (l.prototype.toString = function () {
+ const e = this.length;
+ return 0 === e
+ ? ""
+ : 0 === arguments.length
+ ? O(this, 0, e)
+ : g.apply(this, arguments);
+ }),
+ (l.prototype.toLocaleString = l.prototype.toString),
+ (l.prototype.equals = function (e) {
+ if (!l.isBuffer(e))
+ throw new TypeError("Argument must be a Buffer");
+ return this === e || 0 === l.compare(this, e);
+ }),
+ (l.prototype.inspect = function () {
+ let e = "";
+ const n = t.INSPECT_MAX_BYTES;
+ return (
+ (e = this.toString("hex", 0, n)
+ .replace(/(.{2})/g, "$1 ")
+ .trim()),
+ this.length > n && (e += " ... "),
+ ""
+ );
+ }),
+ s && (l.prototype[s] = l.prototype.inspect),
+ (l.prototype.compare = function (e, t, n, r, o) {
+ if (
+ (G(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)),
+ !l.isBuffer(e))
+ )
+ throw new TypeError(
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' +
+ typeof e
+ );
+ if (
+ (void 0 === t && (t = 0),
+ void 0 === n && (n = e ? e.length : 0),
+ void 0 === r && (r = 0),
+ void 0 === o && (o = this.length),
+ t < 0 || n > e.length || r < 0 || o > this.length)
+ )
+ throw new RangeError("out of range index");
+ if (r >= o && t >= n) return 0;
+ if (r >= o) return -1;
+ if (t >= n) return 1;
+ if (this === e) return 0;
+ let s = (o >>>= 0) - (r >>>= 0),
+ i = (n >>>= 0) - (t >>>= 0);
+ const a = Math.min(s, i),
+ c = this.slice(r, o),
+ u = e.slice(t, n);
+ for (let e = 0; e < a; ++e)
+ if (c[e] !== u[e]) {
+ (s = c[e]), (i = u[e]);
+ break;
+ }
+ return s < i ? -1 : i < s ? 1 : 0;
+ }),
+ (l.prototype.includes = function (e, t, n) {
+ return -1 !== this.indexOf(e, t, n);
+ }),
+ (l.prototype.indexOf = function (e, t, n) {
+ return v(this, e, t, n, !0);
+ }),
+ (l.prototype.lastIndexOf = function (e, t, n) {
+ return v(this, e, t, n, !1);
+ }),
+ (l.prototype.write = function (e, t, n, r) {
+ if (void 0 === t) (r = "utf8"), (n = this.length), (t = 0);
+ else if (void 0 === n && "string" == typeof t)
+ (r = t), (n = this.length), (t = 0);
+ else {
+ if (!isFinite(t))
+ throw new Error(
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
+ );
+ (t >>>= 0),
+ isFinite(n)
+ ? ((n >>>= 0), void 0 === r && (r = "utf8"))
+ : ((r = n), (n = void 0));
+ }
+ const o = this.length - t;
+ if (
+ ((void 0 === n || n > o) && (n = o),
+ (e.length > 0 && (n < 0 || t < 0)) || t > this.length)
+ )
+ throw new RangeError("Attempt to write outside buffer bounds");
+ r || (r = "utf8");
+ let s = !1;
+ for (;;)
+ switch (r) {
+ case "hex":
+ return w(this, e, t, n);
+ case "utf8":
+ case "utf-8":
+ return E(this, e, t, n);
+ case "ascii":
+ case "latin1":
+ case "binary":
+ return x(this, e, t, n);
+ case "base64":
+ return S(this, e, t, n);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return _(this, e, t, n);
+ default:
+ if (s) throw new TypeError("Unknown encoding: " + r);
+ (r = ("" + r).toLowerCase()), (s = !0);
+ }
+ }),
+ (l.prototype.toJSON = function () {
+ return {
+ type: "Buffer",
+ data: Array.prototype.slice.call(this._arr || this, 0),
+ };
+ });
+ const k = 4096;
+ function A(e, t, n) {
+ let r = "";
+ n = Math.min(e.length, n);
+ for (let o = t; o < n; ++o) r += String.fromCharCode(127 & e[o]);
+ return r;
+ }
+ function C(e, t, n) {
+ let r = "";
+ n = Math.min(e.length, n);
+ for (let o = t; o < n; ++o) r += String.fromCharCode(e[o]);
+ return r;
+ }
+ function P(e, t, n) {
+ const r = e.length;
+ (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
+ let o = "";
+ for (let r = t; r < n; ++r) o += Y[e[r]];
+ return o;
+ }
+ function N(e, t, n) {
+ const r = e.slice(t, n);
+ let o = "";
+ for (let e = 0; e < r.length - 1; e += 2)
+ o += String.fromCharCode(r[e] + 256 * r[e + 1]);
+ return o;
+ }
+ function I(e, t, n) {
+ if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
+ if (e + t > n)
+ throw new RangeError("Trying to access beyond buffer length");
+ }
+ function T(e, t, n, r, o, s) {
+ if (!l.isBuffer(e))
+ throw new TypeError(
+ '"buffer" argument must be a Buffer instance'
+ );
+ if (t > o || t < s)
+ throw new RangeError('"value" argument is out of bounds');
+ if (n + r > e.length) throw new RangeError("Index out of range");
+ }
+ function R(e, t, n, r, o) {
+ U(t, r, o, e, n, 7);
+ let s = Number(t & BigInt(4294967295));
+ (e[n++] = s),
+ (s >>= 8),
+ (e[n++] = s),
+ (s >>= 8),
+ (e[n++] = s),
+ (s >>= 8),
+ (e[n++] = s);
+ let i = Number((t >> BigInt(32)) & BigInt(4294967295));
+ return (
+ (e[n++] = i),
+ (i >>= 8),
+ (e[n++] = i),
+ (i >>= 8),
+ (e[n++] = i),
+ (i >>= 8),
+ (e[n++] = i),
+ n
+ );
+ }
+ function M(e, t, n, r, o) {
+ U(t, r, o, e, n, 7);
+ let s = Number(t & BigInt(4294967295));
+ (e[n + 7] = s),
+ (s >>= 8),
+ (e[n + 6] = s),
+ (s >>= 8),
+ (e[n + 5] = s),
+ (s >>= 8),
+ (e[n + 4] = s);
+ let i = Number((t >> BigInt(32)) & BigInt(4294967295));
+ return (
+ (e[n + 3] = i),
+ (i >>= 8),
+ (e[n + 2] = i),
+ (i >>= 8),
+ (e[n + 1] = i),
+ (i >>= 8),
+ (e[n] = i),
+ n + 8
+ );
+ }
+ function D(e, t, n, r, o, s) {
+ if (n + r > e.length) throw new RangeError("Index out of range");
+ if (n < 0) throw new RangeError("Index out of range");
+ }
+ function F(e, t, n, r, s) {
+ return (
+ (t = +t),
+ (n >>>= 0),
+ s || D(e, 0, n, 4),
+ o.write(e, t, n, r, 23, 4),
+ n + 4
+ );
+ }
+ function L(e, t, n, r, s) {
+ return (
+ (t = +t),
+ (n >>>= 0),
+ s || D(e, 0, n, 8),
+ o.write(e, t, n, r, 52, 8),
+ n + 8
+ );
+ }
+ (l.prototype.slice = function (e, t) {
+ const n = this.length;
+ (e = ~~e) < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n),
+ (t = void 0 === t ? n : ~~t) < 0
+ ? (t += n) < 0 && (t = 0)
+ : t > n && (t = n),
+ t < e && (t = e);
+ const r = this.subarray(e, t);
+ return Object.setPrototypeOf(r, l.prototype), r;
+ }),
+ (l.prototype.readUintLE = l.prototype.readUIntLE =
+ function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e],
+ o = 1,
+ s = 0;
+ for (; ++s < t && (o *= 256); ) r += this[e + s] * o;
+ return r;
+ }),
+ (l.prototype.readUintBE = l.prototype.readUIntBE =
+ function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e + --t],
+ o = 1;
+ for (; t > 0 && (o *= 256); ) r += this[e + --t] * o;
+ return r;
+ }),
+ (l.prototype.readUint8 = l.prototype.readUInt8 =
+ function (e, t) {
+ return (e >>>= 0), t || I(e, 1, this.length), this[e];
+ }),
+ (l.prototype.readUint16LE = l.prototype.readUInt16LE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 2, this.length),
+ this[e] | (this[e + 1] << 8)
+ );
+ }),
+ (l.prototype.readUint16BE = l.prototype.readUInt16BE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 2, this.length),
+ (this[e] << 8) | this[e + 1]
+ );
+ }),
+ (l.prototype.readUint32LE = l.prototype.readUInt32LE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) +
+ 16777216 * this[e + 3]
+ );
+ }),
+ (l.prototype.readUint32BE = l.prototype.readUInt32BE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ 16777216 * this[e] +
+ ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3])
+ );
+ }),
+ (l.prototype.readBigUInt64LE = X(function (e) {
+ z((e >>>= 0), "offset");
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r =
+ t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24,
+ o =
+ this[++e] + 256 * this[++e] + 65536 * this[++e] + n * 2 ** 24;
+ return BigInt(r) + (BigInt(o) << BigInt(32));
+ })),
+ (l.prototype.readBigUInt64BE = X(function (e) {
+ z((e >>>= 0), "offset");
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r =
+ t * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + this[++e],
+ o =
+ this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n;
+ return (BigInt(r) << BigInt(32)) + BigInt(o);
+ })),
+ (l.prototype.readIntLE = function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e],
+ o = 1,
+ s = 0;
+ for (; ++s < t && (o *= 256); ) r += this[e + s] * o;
+ return (o *= 128), r >= o && (r -= Math.pow(2, 8 * t)), r;
+ }),
+ (l.prototype.readIntBE = function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = t,
+ o = 1,
+ s = this[e + --r];
+ for (; r > 0 && (o *= 256); ) s += this[e + --r] * o;
+ return (o *= 128), s >= o && (s -= Math.pow(2, 8 * t)), s;
+ }),
+ (l.prototype.readInt8 = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 1, this.length),
+ 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
+ );
+ }),
+ (l.prototype.readInt16LE = function (e, t) {
+ (e >>>= 0), t || I(e, 2, this.length);
+ const n = this[e] | (this[e + 1] << 8);
+ return 32768 & n ? 4294901760 | n : n;
+ }),
+ (l.prototype.readInt16BE = function (e, t) {
+ (e >>>= 0), t || I(e, 2, this.length);
+ const n = this[e + 1] | (this[e] << 8);
+ return 32768 & n ? 4294901760 | n : n;
+ }),
+ (l.prototype.readInt32LE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ this[e] |
+ (this[e + 1] << 8) |
+ (this[e + 2] << 16) |
+ (this[e + 3] << 24)
+ );
+ }),
+ (l.prototype.readInt32BE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ (this[e] << 24) |
+ (this[e + 1] << 16) |
+ (this[e + 2] << 8) |
+ this[e + 3]
+ );
+ }),
+ (l.prototype.readBigInt64LE = X(function (e) {
+ z((e >>>= 0), "offset");
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r =
+ this[e + 4] +
+ 256 * this[e + 5] +
+ 65536 * this[e + 6] +
+ (n << 24);
+ return (
+ (BigInt(r) << BigInt(32)) +
+ BigInt(
+ t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24
+ )
+ );
+ })),
+ (l.prototype.readBigInt64BE = X(function (e) {
+ z((e >>>= 0), "offset");
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r =
+ (t << 24) + 65536 * this[++e] + 256 * this[++e] + this[++e];
+ return (
+ (BigInt(r) << BigInt(32)) +
+ BigInt(
+ this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n
+ )
+ );
+ })),
+ (l.prototype.readFloatLE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ o.read(this, e, !0, 23, 4)
+ );
+ }),
+ (l.prototype.readFloatBE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ o.read(this, e, !1, 23, 4)
+ );
+ }),
+ (l.prototype.readDoubleLE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 8, this.length),
+ o.read(this, e, !0, 52, 8)
+ );
+ }),
+ (l.prototype.readDoubleBE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 8, this.length),
+ o.read(this, e, !1, 52, 8)
+ );
+ }),
+ (l.prototype.writeUintLE = l.prototype.writeUIntLE =
+ function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), (n >>>= 0), !r)) {
+ T(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
+ }
+ let o = 1,
+ s = 0;
+ for (this[t] = 255 & e; ++s < n && (o *= 256); )
+ this[t + s] = (e / o) & 255;
+ return t + n;
+ }),
+ (l.prototype.writeUintBE = l.prototype.writeUIntBE =
+ function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), (n >>>= 0), !r)) {
+ T(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
+ }
+ let o = n - 1,
+ s = 1;
+ for (this[t + o] = 255 & e; --o >= 0 && (s *= 256); )
+ this[t + o] = (e / s) & 255;
+ return t + n;
+ }),
+ (l.prototype.writeUint8 = l.prototype.writeUInt8 =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 1, 255, 0),
+ (this[t] = 255 & e),
+ t + 1
+ );
+ }),
+ (l.prototype.writeUint16LE = l.prototype.writeUInt16LE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 65535, 0),
+ (this[t] = 255 & e),
+ (this[t + 1] = e >>> 8),
+ t + 2
+ );
+ }),
+ (l.prototype.writeUint16BE = l.prototype.writeUInt16BE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 65535, 0),
+ (this[t] = e >>> 8),
+ (this[t + 1] = 255 & e),
+ t + 2
+ );
+ }),
+ (l.prototype.writeUint32LE = l.prototype.writeUInt32LE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 4, 4294967295, 0),
+ (this[t + 3] = e >>> 24),
+ (this[t + 2] = e >>> 16),
+ (this[t + 1] = e >>> 8),
+ (this[t] = 255 & e),
+ t + 4
+ );
+ }),
+ (l.prototype.writeUint32BE = l.prototype.writeUInt32BE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 4, 4294967295, 0),
+ (this[t] = e >>> 24),
+ (this[t + 1] = e >>> 16),
+ (this[t + 2] = e >>> 8),
+ (this[t + 3] = 255 & e),
+ t + 4
+ );
+ }),
+ (l.prototype.writeBigUInt64LE = X(function (e, t = 0) {
+ return R(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
+ })),
+ (l.prototype.writeBigUInt64BE = X(function (e, t = 0) {
+ return M(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
+ })),
+ (l.prototype.writeIntLE = function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), !r)) {
+ const r = Math.pow(2, 8 * n - 1);
+ T(this, e, t, n, r - 1, -r);
+ }
+ let o = 0,
+ s = 1,
+ i = 0;
+ for (this[t] = 255 & e; ++o < n && (s *= 256); )
+ e < 0 && 0 === i && 0 !== this[t + o - 1] && (i = 1),
+ (this[t + o] = (((e / s) >> 0) - i) & 255);
+ return t + n;
+ }),
+ (l.prototype.writeIntBE = function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), !r)) {
+ const r = Math.pow(2, 8 * n - 1);
+ T(this, e, t, n, r - 1, -r);
+ }
+ let o = n - 1,
+ s = 1,
+ i = 0;
+ for (this[t + o] = 255 & e; --o >= 0 && (s *= 256); )
+ e < 0 && 0 === i && 0 !== this[t + o + 1] && (i = 1),
+ (this[t + o] = (((e / s) >> 0) - i) & 255);
+ return t + n;
+ }),
+ (l.prototype.writeInt8 = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 1, 127, -128),
+ e < 0 && (e = 255 + e + 1),
+ (this[t] = 255 & e),
+ t + 1
+ );
+ }),
+ (l.prototype.writeInt16LE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 32767, -32768),
+ (this[t] = 255 & e),
+ (this[t + 1] = e >>> 8),
+ t + 2
+ );
+ }),
+ (l.prototype.writeInt16BE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 32767, -32768),
+ (this[t] = e >>> 8),
+ (this[t + 1] = 255 & e),
+ t + 2
+ );
+ }),
+ (l.prototype.writeInt32LE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 4, 2147483647, -2147483648),
+ (this[t] = 255 & e),
+ (this[t + 1] = e >>> 8),
+ (this[t + 2] = e >>> 16),
+ (this[t + 3] = e >>> 24),
+ t + 4
+ );
+ }),
+ (l.prototype.writeInt32BE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 4, 2147483647, -2147483648),
+ e < 0 && (e = 4294967295 + e + 1),
+ (this[t] = e >>> 24),
+ (this[t + 1] = e >>> 16),
+ (this[t + 2] = e >>> 8),
+ (this[t + 3] = 255 & e),
+ t + 4
+ );
+ }),
+ (l.prototype.writeBigInt64LE = X(function (e, t = 0) {
+ return R(
+ this,
+ e,
+ t,
+ -BigInt("0x8000000000000000"),
+ BigInt("0x7fffffffffffffff")
+ );
+ })),
+ (l.prototype.writeBigInt64BE = X(function (e, t = 0) {
+ return M(
+ this,
+ e,
+ t,
+ -BigInt("0x8000000000000000"),
+ BigInt("0x7fffffffffffffff")
+ );
+ })),
+ (l.prototype.writeFloatLE = function (e, t, n) {
+ return F(this, e, t, !0, n);
+ }),
+ (l.prototype.writeFloatBE = function (e, t, n) {
+ return F(this, e, t, !1, n);
+ }),
+ (l.prototype.writeDoubleLE = function (e, t, n) {
+ return L(this, e, t, !0, n);
+ }),
+ (l.prototype.writeDoubleBE = function (e, t, n) {
+ return L(this, e, t, !1, n);
+ }),
+ (l.prototype.copy = function (e, t, n, r) {
+ if (!l.isBuffer(e))
+ throw new TypeError("argument should be a Buffer");
+ if (
+ (n || (n = 0),
+ r || 0 === r || (r = this.length),
+ t >= e.length && (t = e.length),
+ t || (t = 0),
+ r > 0 && r < n && (r = n),
+ r === n)
+ )
+ return 0;
+ if (0 === e.length || 0 === this.length) return 0;
+ if (t < 0) throw new RangeError("targetStart out of bounds");
+ if (n < 0 || n >= this.length)
+ throw new RangeError("Index out of range");
+ if (r < 0) throw new RangeError("sourceEnd out of bounds");
+ r > this.length && (r = this.length),
+ e.length - t < r - n && (r = e.length - t + n);
+ const o = r - n;
+ return (
+ this === e &&
+ "function" == typeof Uint8Array.prototype.copyWithin
+ ? this.copyWithin(t, n, r)
+ : Uint8Array.prototype.set.call(e, this.subarray(n, r), t),
+ o
+ );
+ }),
+ (l.prototype.fill = function (e, t, n, r) {
+ if ("string" == typeof e) {
+ if (
+ ("string" == typeof t
+ ? ((r = t), (t = 0), (n = this.length))
+ : "string" == typeof n && ((r = n), (n = this.length)),
+ void 0 !== r && "string" != typeof r)
+ )
+ throw new TypeError("encoding must be a string");
+ if ("string" == typeof r && !l.isEncoding(r))
+ throw new TypeError("Unknown encoding: " + r);
+ if (1 === e.length) {
+ const t = e.charCodeAt(0);
+ (("utf8" === r && t < 128) || "latin1" === r) && (e = t);
+ }
+ } else
+ "number" == typeof e
+ ? (e &= 255)
+ : "boolean" == typeof e && (e = Number(e));
+ if (t < 0 || this.length < t || this.length < n)
+ throw new RangeError("Out of range index");
+ if (n <= t) return this;
+ let o;
+ if (
+ ((t >>>= 0),
+ (n = void 0 === n ? this.length : n >>> 0),
+ e || (e = 0),
+ "number" == typeof e)
+ )
+ for (o = t; o < n; ++o) this[o] = e;
+ else {
+ const s = l.isBuffer(e) ? e : l.from(e, r),
+ i = s.length;
+ if (0 === i)
+ throw new TypeError(
+ 'The value "' + e + '" is invalid for argument "value"'
+ );
+ for (o = 0; o < n - t; ++o) this[o + t] = s[o % i];
+ }
+ return this;
+ });
+ const B = {};
+ function $(e, t, n) {
+ B[e] = class extends n {
+ constructor() {
+ super(),
+ Object.defineProperty(this, "message", {
+ value: t.apply(this, arguments),
+ writable: !0,
+ configurable: !0,
+ }),
+ (this.name = `${this.name} [${e}]`),
+ this.stack,
+ delete this.name;
+ }
+ get code() {
+ return e;
+ }
+ set code(e) {
+ Object.defineProperty(this, "code", {
+ configurable: !0,
+ enumerable: !0,
+ value: e,
+ writable: !0,
+ });
+ }
+ toString() {
+ return `${this.name} [${e}]: ${this.message}`;
+ }
+ };
+ }
+ function q(e) {
+ let t = "",
+ n = e.length;
+ const r = "-" === e[0] ? 1 : 0;
+ for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
+ return `${e.slice(0, n)}${t}`;
+ }
+ function U(e, t, n, r, o, s) {
+ if (e > n || e < t) {
+ const r = "bigint" == typeof t ? "n" : "";
+ let o;
+ throw (
+ ((o =
+ s > 3
+ ? 0 === t || t === BigInt(0)
+ ? `>= 0${r} and < 2${r} ** ${8 * (s + 1)}${r}`
+ : `>= -(2${r} ** ${8 * (s + 1) - 1}${r}) and < 2 ** ${
+ 8 * (s + 1) - 1
+ }${r}`
+ : `>= ${t}${r} and <= ${n}${r}`),
+ new B.ERR_OUT_OF_RANGE("value", o, e))
+ );
+ }
+ !(function (e, t, n) {
+ z(t, "offset"),
+ (void 0 !== e[t] && void 0 !== e[t + n]) ||
+ V(t, e.length - (n + 1));
+ })(r, o, s);
+ }
+ function z(e, t) {
+ if ("number" != typeof e)
+ throw new B.ERR_INVALID_ARG_TYPE(t, "number", e);
+ }
+ function V(e, t, n) {
+ if (Math.floor(e) !== e)
+ throw (
+ (z(e, n),
+ new B.ERR_OUT_OF_RANGE(n || "offset", "an integer", e))
+ );
+ if (t < 0) throw new B.ERR_BUFFER_OUT_OF_BOUNDS();
+ throw new B.ERR_OUT_OF_RANGE(
+ n || "offset",
+ `>= ${n ? 1 : 0} and <= ${t}`,
+ e
+ );
+ }
+ $(
+ "ERR_BUFFER_OUT_OF_BOUNDS",
+ function (e) {
+ return e
+ ? `${e} is outside of buffer bounds`
+ : "Attempt to access memory outside buffer bounds";
+ },
+ RangeError
+ ),
+ $(
+ "ERR_INVALID_ARG_TYPE",
+ function (e, t) {
+ return `The "${e}" argument must be of type number. Received type ${typeof t}`;
+ },
+ TypeError
+ ),
+ $(
+ "ERR_OUT_OF_RANGE",
+ function (e, t, n) {
+ let r = `The value of "${e}" is out of range.`,
+ o = n;
+ return (
+ Number.isInteger(n) && Math.abs(n) > 2 ** 32
+ ? (o = q(String(n)))
+ : "bigint" == typeof n &&
+ ((o = String(n)),
+ (n > BigInt(2) ** BigInt(32) ||
+ n < -(BigInt(2) ** BigInt(32))) &&
+ (o = q(o)),
+ (o += "n")),
+ (r += ` It must be ${t}. Received ${o}`),
+ r
+ );
+ },
+ RangeError
+ );
+ const W = /[^+/0-9A-Za-z-_]/g;
+ function J(e, t) {
+ let n;
+ t = t || 1 / 0;
+ const r = e.length;
+ let o = null;
+ const s = [];
+ for (let i = 0; i < r; ++i) {
+ if (((n = e.charCodeAt(i)), n > 55295 && n < 57344)) {
+ if (!o) {
+ if (n > 56319) {
+ (t -= 3) > -1 && s.push(239, 191, 189);
+ continue;
+ }
+ if (i + 1 === r) {
+ (t -= 3) > -1 && s.push(239, 191, 189);
+ continue;
+ }
+ o = n;
+ continue;
+ }
+ if (n < 56320) {
+ (t -= 3) > -1 && s.push(239, 191, 189), (o = n);
+ continue;
+ }
+ n = 65536 + (((o - 55296) << 10) | (n - 56320));
+ } else o && (t -= 3) > -1 && s.push(239, 191, 189);
+ if (((o = null), n < 128)) {
+ if ((t -= 1) < 0) break;
+ s.push(n);
+ } else if (n < 2048) {
+ if ((t -= 2) < 0) break;
+ s.push((n >> 6) | 192, (63 & n) | 128);
+ } else if (n < 65536) {
+ if ((t -= 3) < 0) break;
+ s.push((n >> 12) | 224, ((n >> 6) & 63) | 128, (63 & n) | 128);
+ } else {
+ if (!(n < 1114112)) throw new Error("Invalid code point");
+ if ((t -= 4) < 0) break;
+ s.push(
+ (n >> 18) | 240,
+ ((n >> 12) & 63) | 128,
+ ((n >> 6) & 63) | 128,
+ (63 & n) | 128
+ );
+ }
+ }
+ return s;
+ }
+ function K(e) {
+ return r.toByteArray(
+ (function (e) {
+ if (
+ (e = (e = e.split("=")[0]).trim().replace(W, "")).length < 2
+ )
+ return "";
+ for (; e.length % 4 != 0; ) e += "=";
+ return e;
+ })(e)
+ );
+ }
+ function H(e, t, n, r) {
+ let o;
+ for (o = 0; o < r && !(o + n >= t.length || o >= e.length); ++o)
+ t[o + n] = e[o];
+ return o;
+ }
+ function G(e, t) {
+ return (
+ e instanceof t ||
+ (null != e &&
+ null != e.constructor &&
+ null != e.constructor.name &&
+ e.constructor.name === t.name)
+ );
+ }
+ function Z(e) {
+ return e != e;
+ }
+ const Y = (function () {
+ const e = "0123456789abcdef",
+ t = new Array(256);
+ for (let n = 0; n < 16; ++n) {
+ const r = 16 * n;
+ for (let o = 0; o < 16; ++o) t[r + o] = e[n] + e[o];
+ }
+ return t;
+ })();
+ function X(e) {
+ return "undefined" == typeof BigInt ? Q : e;
+ }
+ function Q() {
+ throw new Error("BigInt not supported");
+ }
+ },
+ 21924: (e, t, n) => {
+ "use strict";
+ var r = n(40210),
+ o = n(55559),
+ s = o(r("String.prototype.indexOf"));
+ e.exports = function (e, t) {
+ var n = r(e, !!t);
+ return "function" == typeof n && s(e, ".prototype.") > -1
+ ? o(n)
+ : n;
+ };
+ },
+ 55559: (e, t, n) => {
+ "use strict";
+ var r = n(58612),
+ o = n(40210),
+ s = o("%Function.prototype.apply%"),
+ i = o("%Function.prototype.call%"),
+ a = o("%Reflect.apply%", !0) || r.call(i, s),
+ l = o("%Object.getOwnPropertyDescriptor%", !0),
+ c = o("%Object.defineProperty%", !0),
+ u = o("%Math.max%");
+ if (c)
+ try {
+ c({}, "a", { value: 1 });
+ } catch (e) {
+ c = null;
+ }
+ e.exports = function (e) {
+ var t = a(r, i, arguments);
+ l &&
+ c &&
+ l(t, "length").configurable &&
+ c(t, "length", {
+ value: 1 + u(0, e.length - (arguments.length - 1)),
+ });
+ return t;
+ };
+ var p = function () {
+ return a(r, s, arguments);
+ };
+ c ? c(e.exports, "apply", { value: p }) : (e.exports.apply = p);
+ },
+ 94184: (e, t) => {
+ var n;
+ !(function () {
+ "use strict";
+ var r = {}.hasOwnProperty;
+ function o() {
+ for (var e = [], t = 0; t < arguments.length; t++) {
+ var n = arguments[t];
+ if (n) {
+ var s = typeof n;
+ if ("string" === s || "number" === s) e.push(n);
+ else if (Array.isArray(n)) {
+ if (n.length) {
+ var i = o.apply(null, n);
+ i && e.push(i);
+ }
+ } else if ("object" === s) {
+ if (
+ n.toString !== Object.prototype.toString &&
+ !n.toString.toString().includes("[native code]")
+ ) {
+ e.push(n.toString());
+ continue;
+ }
+ for (var a in n) r.call(n, a) && n[a] && e.push(a);
+ }
+ }
+ }
+ return e.join(" ");
+ }
+ e.exports
+ ? ((o.default = o), (e.exports = o))
+ : void 0 ===
+ (n = function () {
+ return o;
+ }.apply(t, [])) || (e.exports = n);
+ })();
+ },
+ 76489: (e, t) => {
+ "use strict";
+ (t.parse = function (e, t) {
+ if ("string" != typeof e)
+ throw new TypeError("argument str must be a string");
+ var n = {},
+ r = (t || {}).decode || o,
+ s = 0;
+ for (; s < e.length; ) {
+ var a = e.indexOf("=", s);
+ if (-1 === a) break;
+ var l = e.indexOf(";", s);
+ if (-1 === l) l = e.length;
+ else if (l < a) {
+ s = e.lastIndexOf(";", a - 1) + 1;
+ continue;
+ }
+ var c = e.slice(s, a).trim();
+ if (void 0 === n[c]) {
+ var u = e.slice(a + 1, l).trim();
+ 34 === u.charCodeAt(0) && (u = u.slice(1, -1)),
+ (n[c] = i(u, r));
+ }
+ s = l + 1;
+ }
+ return n;
+ }),
+ (t.serialize = function (e, t, o) {
+ var i = o || {},
+ a = i.encode || s;
+ if ("function" != typeof a)
+ throw new TypeError("option encode is invalid");
+ if (!r.test(e)) throw new TypeError("argument name is invalid");
+ var l = a(t);
+ if (l && !r.test(l))
+ throw new TypeError("argument val is invalid");
+ var c = e + "=" + l;
+ if (null != i.maxAge) {
+ var u = i.maxAge - 0;
+ if (isNaN(u) || !isFinite(u))
+ throw new TypeError("option maxAge is invalid");
+ c += "; Max-Age=" + Math.floor(u);
+ }
+ if (i.domain) {
+ if (!r.test(i.domain))
+ throw new TypeError("option domain is invalid");
+ c += "; Domain=" + i.domain;
+ }
+ if (i.path) {
+ if (!r.test(i.path))
+ throw new TypeError("option path is invalid");
+ c += "; Path=" + i.path;
+ }
+ if (i.expires) {
+ var p = i.expires;
+ if (
+ !(function (e) {
+ return "[object Date]" === n.call(e) || e instanceof Date;
+ })(p) ||
+ isNaN(p.valueOf())
+ )
+ throw new TypeError("option expires is invalid");
+ c += "; Expires=" + p.toUTCString();
+ }
+ i.httpOnly && (c += "; HttpOnly");
+ i.secure && (c += "; Secure");
+ if (i.priority) {
+ switch (
+ "string" == typeof i.priority
+ ? i.priority.toLowerCase()
+ : i.priority
+ ) {
+ case "low":
+ c += "; Priority=Low";
+ break;
+ case "medium":
+ c += "; Priority=Medium";
+ break;
+ case "high":
+ c += "; Priority=High";
+ break;
+ default:
+ throw new TypeError("option priority is invalid");
+ }
+ }
+ if (i.sameSite) {
+ switch (
+ "string" == typeof i.sameSite
+ ? i.sameSite.toLowerCase()
+ : i.sameSite
+ ) {
+ case !0:
+ c += "; SameSite=Strict";
+ break;
+ case "lax":
+ c += "; SameSite=Lax";
+ break;
+ case "strict":
+ c += "; SameSite=Strict";
+ break;
+ case "none":
+ c += "; SameSite=None";
+ break;
+ default:
+ throw new TypeError("option sameSite is invalid");
+ }
+ }
+ return c;
+ });
+ var n = Object.prototype.toString,
+ r = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
+ function o(e) {
+ return -1 !== e.indexOf("%") ? decodeURIComponent(e) : e;
+ }
+ function s(e) {
+ return encodeURIComponent(e);
+ }
+ function i(e, t) {
+ try {
+ return t(e);
+ } catch (t) {
+ return e;
+ }
+ }
+ },
+ 20640: (e, t, n) => {
+ "use strict";
+ var r = n(11742),
+ o = { "text/plain": "Text", "text/html": "Url", default: "Text" };
+ e.exports = function (e, t) {
+ var n,
+ s,
+ i,
+ a,
+ l,
+ c,
+ u = !1;
+ t || (t = {}), (n = t.debug || !1);
+ try {
+ if (
+ ((i = r()),
+ (a = document.createRange()),
+ (l = document.getSelection()),
+ ((c = document.createElement("span")).textContent = e),
+ (c.ariaHidden = "true"),
+ (c.style.all = "unset"),
+ (c.style.position = "fixed"),
+ (c.style.top = 0),
+ (c.style.clip = "rect(0, 0, 0, 0)"),
+ (c.style.whiteSpace = "pre"),
+ (c.style.webkitUserSelect = "text"),
+ (c.style.MozUserSelect = "text"),
+ (c.style.msUserSelect = "text"),
+ (c.style.userSelect = "text"),
+ c.addEventListener("copy", function (r) {
+ if ((r.stopPropagation(), t.format))
+ if ((r.preventDefault(), void 0 === r.clipboardData)) {
+ n && console.warn("unable to use e.clipboardData"),
+ n && console.warn("trying IE specific stuff"),
+ window.clipboardData.clearData();
+ var s = o[t.format] || o.default;
+ window.clipboardData.setData(s, e);
+ } else
+ r.clipboardData.clearData(),
+ r.clipboardData.setData(t.format, e);
+ t.onCopy && (r.preventDefault(), t.onCopy(r.clipboardData));
+ }),
+ document.body.appendChild(c),
+ a.selectNodeContents(c),
+ l.addRange(a),
+ !document.execCommand("copy"))
+ )
+ throw new Error("copy command was unsuccessful");
+ u = !0;
+ } catch (r) {
+ n && console.error("unable to copy using execCommand: ", r),
+ n && console.warn("trying IE specific stuff");
+ try {
+ window.clipboardData.setData(t.format || "text", e),
+ t.onCopy && t.onCopy(window.clipboardData),
+ (u = !0);
+ } catch (r) {
+ n && console.error("unable to copy using clipboardData: ", r),
+ n && console.error("falling back to prompt"),
+ (s = (function (e) {
+ var t =
+ (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") +
+ "+C";
+ return e.replace(/#{\s*key\s*}/g, t);
+ })(
+ "message" in t
+ ? t.message
+ : "Copy to clipboard: #{key}, Enter"
+ )),
+ window.prompt(s, e);
+ }
+ } finally {
+ l &&
+ ("function" == typeof l.removeRange
+ ? l.removeRange(a)
+ : l.removeAllRanges()),
+ c && document.body.removeChild(c),
+ i();
+ }
+ return u;
+ };
+ },
+ 90093: (e, t, n) => {
+ var r = n(28196);
+ e.exports = r;
+ },
+ 3688: (e, t, n) => {
+ var r = n(11955);
+ e.exports = r;
+ },
+ 83838: (e, t, n) => {
+ var r = n(46279);
+ e.exports = r;
+ },
+ 15684: (e, t, n) => {
+ var r = n(19373);
+ e.exports = r;
+ },
+ 81331: (e, t, n) => {
+ var r = n(52759);
+ e.exports = r;
+ },
+ 65362: (e, t, n) => {
+ var r = n(63383);
+ e.exports = r;
+ },
+ 91254: (e, t, n) => {
+ var r = n(57396);
+ e.exports = r;
+ },
+ 43536: (e, t, n) => {
+ var r = n(41910);
+ e.exports = r;
+ },
+ 37331: (e, t, n) => {
+ var r = n(79427);
+ e.exports = r;
+ },
+ 68522: (e, t, n) => {
+ var r = n(62857);
+ e.exports = r;
+ },
+ 73151: (e, t, n) => {
+ var r = n(9534);
+ e.exports = r;
+ },
+ 45012: (e, t, n) => {
+ var r = n(23059);
+ e.exports = r;
+ },
+ 80281: (e, t, n) => {
+ var r = n(92547);
+ n(97522), n(43975), n(45414), (e.exports = r);
+ },
+ 40031: (e, t, n) => {
+ var r = n(46509);
+ e.exports = r;
+ },
+ 17487: (e, t, n) => {
+ var r = n(35774);
+ e.exports = r;
+ },
+ 54493: (e, t, n) => {
+ n(77971), n(53242);
+ var r = n(54058);
+ e.exports = r.Array.from;
+ },
+ 24034: (e, t, n) => {
+ n(92737);
+ var r = n(54058);
+ e.exports = r.Array.isArray;
+ },
+ 15367: (e, t, n) => {
+ n(85906);
+ var r = n(35703);
+ e.exports = r("Array").concat;
+ },
+ 12710: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r("Array").entries;
+ },
+ 51459: (e, t, n) => {
+ n(48851);
+ var r = n(35703);
+ e.exports = r("Array").every;
+ },
+ 6172: (e, t, n) => {
+ n(80290);
+ var r = n(35703);
+ e.exports = r("Array").fill;
+ },
+ 62383: (e, t, n) => {
+ n(21501);
+ var r = n(35703);
+ e.exports = r("Array").filter;
+ },
+ 60009: (e, t, n) => {
+ n(44929);
+ var r = n(35703);
+ e.exports = r("Array").findIndex;
+ },
+ 17671: (e, t, n) => {
+ n(80833);
+ var r = n(35703);
+ e.exports = r("Array").find;
+ },
+ 99324: (e, t, n) => {
+ n(2437);
+ var r = n(35703);
+ e.exports = r("Array").forEach;
+ },
+ 80991: (e, t, n) => {
+ n(97690);
+ var r = n(35703);
+ e.exports = r("Array").includes;
+ },
+ 8700: (e, t, n) => {
+ n(99076);
+ var r = n(35703);
+ e.exports = r("Array").indexOf;
+ },
+ 95909: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r("Array").keys;
+ },
+ 6442: (e, t, n) => {
+ n(75915);
+ var r = n(35703);
+ e.exports = r("Array").lastIndexOf;
+ },
+ 23866: (e, t, n) => {
+ n(68787);
+ var r = n(35703);
+ e.exports = r("Array").map;
+ },
+ 9896: (e, t, n) => {
+ n(48528);
+ var r = n(35703);
+ e.exports = r("Array").push;
+ },
+ 52999: (e, t, n) => {
+ n(81876);
+ var r = n(35703);
+ e.exports = r("Array").reduce;
+ },
+ 24900: (e, t, n) => {
+ n(60186);
+ var r = n(35703);
+ e.exports = r("Array").slice;
+ },
+ 3824: (e, t, n) => {
+ n(36026);
+ var r = n(35703);
+ e.exports = r("Array").some;
+ },
+ 2948: (e, t, n) => {
+ n(4115);
+ var r = n(35703);
+ e.exports = r("Array").sort;
+ },
+ 78209: (e, t, n) => {
+ n(98611);
+ var r = n(35703);
+ e.exports = r("Array").splice;
+ },
+ 14423: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r("Array").values;
+ },
+ 81103: (e, t, n) => {
+ n(95160);
+ var r = n(54058);
+ e.exports = r.Date.now;
+ },
+ 27700: (e, t, n) => {
+ n(73381);
+ var r = n(35703);
+ e.exports = r("Function").bind;
+ },
+ 16246: (e, t, n) => {
+ var r = n(7046),
+ o = n(27700),
+ s = Function.prototype;
+ e.exports = function (e) {
+ var t = e.bind;
+ return e === s || (r(s, e) && t === s.bind) ? o : t;
+ };
+ },
+ 56043: (e, t, n) => {
+ var r = n(7046),
+ o = n(15367),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.concat;
+ return e === s || (r(s, e) && t === s.concat) ? o : t;
+ };
+ },
+ 13160: (e, t, n) => {
+ var r = n(7046),
+ o = n(51459),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.every;
+ return e === s || (r(s, e) && t === s.every) ? o : t;
+ };
+ },
+ 80446: (e, t, n) => {
+ var r = n(7046),
+ o = n(6172),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.fill;
+ return e === s || (r(s, e) && t === s.fill) ? o : t;
+ };
+ },
+ 2480: (e, t, n) => {
+ var r = n(7046),
+ o = n(62383),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.filter;
+ return e === s || (r(s, e) && t === s.filter) ? o : t;
+ };
+ },
+ 7147: (e, t, n) => {
+ var r = n(7046),
+ o = n(60009),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.findIndex;
+ return e === s || (r(s, e) && t === s.findIndex) ? o : t;
+ };
+ },
+ 32236: (e, t, n) => {
+ var r = n(7046),
+ o = n(17671),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.find;
+ return e === s || (r(s, e) && t === s.find) ? o : t;
+ };
+ },
+ 58557: (e, t, n) => {
+ var r = n(7046),
+ o = n(80991),
+ s = n(21631),
+ i = Array.prototype,
+ a = String.prototype;
+ e.exports = function (e) {
+ var t = e.includes;
+ return e === i || (r(i, e) && t === i.includes)
+ ? o
+ : "string" == typeof e || e === a || (r(a, e) && t === a.includes)
+ ? s
+ : t;
+ };
+ },
+ 34570: (e, t, n) => {
+ var r = n(7046),
+ o = n(8700),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.indexOf;
+ return e === s || (r(s, e) && t === s.indexOf) ? o : t;
+ };
+ },
+ 57564: (e, t, n) => {
+ var r = n(7046),
+ o = n(6442),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.lastIndexOf;
+ return e === s || (r(s, e) && t === s.lastIndexOf) ? o : t;
+ };
+ },
+ 88287: (e, t, n) => {
+ var r = n(7046),
+ o = n(23866),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.map;
+ return e === s || (r(s, e) && t === s.map) ? o : t;
+ };
+ },
+ 93993: (e, t, n) => {
+ var r = n(7046),
+ o = n(9896),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.push;
+ return e === s || (r(s, e) && t === s.push) ? o : t;
+ };
+ },
+ 68025: (e, t, n) => {
+ var r = n(7046),
+ o = n(52999),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.reduce;
+ return e === s || (r(s, e) && t === s.reduce) ? o : t;
+ };
+ },
+ 59257: (e, t, n) => {
+ var r = n(7046),
+ o = n(80454),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.repeat;
+ return "string" == typeof e ||
+ e === s ||
+ (r(s, e) && t === s.repeat)
+ ? o
+ : t;
+ };
+ },
+ 69601: (e, t, n) => {
+ var r = n(7046),
+ o = n(24900),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.slice;
+ return e === s || (r(s, e) && t === s.slice) ? o : t;
+ };
+ },
+ 28299: (e, t, n) => {
+ var r = n(7046),
+ o = n(3824),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.some;
+ return e === s || (r(s, e) && t === s.some) ? o : t;
+ };
+ },
+ 69355: (e, t, n) => {
+ var r = n(7046),
+ o = n(2948),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.sort;
+ return e === s || (r(s, e) && t === s.sort) ? o : t;
+ };
+ },
+ 18339: (e, t, n) => {
+ var r = n(7046),
+ o = n(78209),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.splice;
+ return e === s || (r(s, e) && t === s.splice) ? o : t;
+ };
+ },
+ 71611: (e, t, n) => {
+ var r = n(7046),
+ o = n(3269),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.startsWith;
+ return "string" == typeof e ||
+ e === s ||
+ (r(s, e) && t === s.startsWith)
+ ? o
+ : t;
+ };
+ },
+ 62774: (e, t, n) => {
+ var r = n(7046),
+ o = n(13348),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.trim;
+ return "string" == typeof e || e === s || (r(s, e) && t === s.trim)
+ ? o
+ : t;
+ };
+ },
+ 84426: (e, t, n) => {
+ n(32619);
+ var r = n(54058),
+ o = n(79730);
+ r.JSON || (r.JSON = { stringify: JSON.stringify }),
+ (e.exports = function (e, t, n) {
+ return o(r.JSON.stringify, null, arguments);
+ });
+ },
+ 91018: (e, t, n) => {
+ n(66274), n(37501), n(55967), n(77971);
+ var r = n(54058);
+ e.exports = r.Map;
+ },
+ 97849: (e, t, n) => {
+ n(54973), (e.exports = Math.pow(2, -52));
+ },
+ 3820: (e, t, n) => {
+ n(30800);
+ var r = n(54058);
+ e.exports = r.Number.isInteger;
+ },
+ 45999: (e, t, n) => {
+ n(49221);
+ var r = n(54058);
+ e.exports = r.Object.assign;
+ },
+ 7702: (e, t, n) => {
+ n(74979);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t) {
+ return r.defineProperties(e, t);
+ });
+ r.defineProperties.sham && (o.sham = !0);
+ },
+ 48171: (e, t, n) => {
+ n(86450);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t, n) {
+ return r.defineProperty(e, t, n);
+ });
+ r.defineProperty.sham && (o.sham = !0);
+ },
+ 73081: (e, t, n) => {
+ n(94366);
+ var r = n(54058);
+ e.exports = r.Object.entries;
+ },
+ 7699: (e, t, n) => {
+ n(66274), n(28387);
+ var r = n(54058);
+ e.exports = r.Object.fromEntries;
+ },
+ 286: (e, t, n) => {
+ n(46924);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t) {
+ return r.getOwnPropertyDescriptor(e, t);
+ });
+ r.getOwnPropertyDescriptor.sham && (o.sham = !0);
+ },
+ 92766: (e, t, n) => {
+ n(88482);
+ var r = n(54058);
+ e.exports = r.Object.getOwnPropertyDescriptors;
+ },
+ 30498: (e, t, n) => {
+ n(35824);
+ var r = n(54058);
+ e.exports = r.Object.getOwnPropertySymbols;
+ },
+ 48494: (e, t, n) => {
+ n(21724);
+ var r = n(54058);
+ e.exports = r.Object.keys;
+ },
+ 98430: (e, t, n) => {
+ n(26614);
+ var r = n(54058);
+ e.exports = r.Object.values;
+ },
+ 52956: (e, t, n) => {
+ n(47627),
+ n(66274),
+ n(55967),
+ n(98881),
+ n(4560),
+ n(91302),
+ n(44349),
+ n(77971);
+ var r = n(54058);
+ e.exports = r.Promise;
+ },
+ 76998: (e, t, n) => {
+ n(66274), n(55967), n(69008), n(77971);
+ var r = n(54058);
+ e.exports = r.Set;
+ },
+ 97089: (e, t, n) => {
+ n(74679);
+ var r = n(54058);
+ e.exports = r.String.raw;
+ },
+ 21631: (e, t, n) => {
+ n(11035);
+ var r = n(35703);
+ e.exports = r("String").includes;
+ },
+ 80454: (e, t, n) => {
+ n(60986);
+ var r = n(35703);
+ e.exports = r("String").repeat;
+ },
+ 3269: (e, t, n) => {
+ n(94761);
+ var r = n(35703);
+ e.exports = r("String").startsWith;
+ },
+ 13348: (e, t, n) => {
+ n(57398);
+ var r = n(35703);
+ e.exports = r("String").trim;
+ },
+ 57473: (e, t, n) => {
+ n(85906),
+ n(55967),
+ n(35824),
+ n(8555),
+ n(52615),
+ n(21732),
+ n(35903),
+ n(1825),
+ n(28394),
+ n(45915),
+ n(61766),
+ n(62737),
+ n(89911),
+ n(74315),
+ n(63131),
+ n(64714),
+ n(70659),
+ n(69120),
+ n(79413),
+ n(1502);
+ var r = n(54058);
+ e.exports = r.Symbol;
+ },
+ 24227: (e, t, n) => {
+ n(66274), n(55967), n(77971), n(1825);
+ var r = n(11477);
+ e.exports = r.f("iterator");
+ },
+ 62978: (e, t, n) => {
+ n(18084), n(63131);
+ var r = n(11477);
+ e.exports = r.f("toPrimitive");
+ },
+ 32304: (e, t, n) => {
+ n(66274), n(55967), n(54334);
+ var r = n(54058);
+ e.exports = r.WeakMap;
+ },
+ 29567: (e, t, n) => {
+ n(66274), n(55967), n(1773);
+ var r = n(54058);
+ e.exports = r.WeakSet;
+ },
+ 14122: (e, t, n) => {
+ e.exports = n(89097);
+ },
+ 44442: (e, t, n) => {
+ e.exports = n(51675);
+ },
+ 57152: (e, t, n) => {
+ e.exports = n(82507);
+ },
+ 69447: (e, t, n) => {
+ e.exports = n(628);
+ },
+ 1449: (e, t, n) => {
+ e.exports = n(34501);
+ },
+ 60269: (e, t, n) => {
+ e.exports = n(76936);
+ },
+ 70573: (e, t, n) => {
+ e.exports = n(18180);
+ },
+ 73685: (e, t, n) => {
+ e.exports = n(80621);
+ },
+ 27533: (e, t, n) => {
+ e.exports = n(22948);
+ },
+ 39057: (e, t, n) => {
+ e.exports = n(82108);
+ },
+ 84710: (e, t, n) => {
+ e.exports = n(14058);
+ },
+ 93799: (e, t, n) => {
+ e.exports = n(92093);
+ },
+ 86600: (e, t, n) => {
+ e.exports = n(52201);
+ },
+ 9759: (e, t, n) => {
+ e.exports = n(27398);
+ },
+ 71384: (e, t, n) => {
+ e.exports = n(26189);
+ },
+ 89097: (e, t, n) => {
+ var r = n(90093);
+ e.exports = r;
+ },
+ 51675: (e, t, n) => {
+ var r = n(3688);
+ e.exports = r;
+ },
+ 82507: (e, t, n) => {
+ var r = n(83838);
+ e.exports = r;
+ },
+ 628: (e, t, n) => {
+ var r = n(15684);
+ e.exports = r;
+ },
+ 34501: (e, t, n) => {
+ var r = n(81331);
+ e.exports = r;
+ },
+ 76936: (e, t, n) => {
+ var r = n(65362);
+ e.exports = r;
+ },
+ 18180: (e, t, n) => {
+ var r = n(91254);
+ e.exports = r;
+ },
+ 80621: (e, t, n) => {
+ var r = n(43536);
+ e.exports = r;
+ },
+ 22948: (e, t, n) => {
+ var r = n(37331);
+ e.exports = r;
+ },
+ 82108: (e, t, n) => {
+ var r = n(68522);
+ e.exports = r;
+ },
+ 14058: (e, t, n) => {
+ var r = n(73151);
+ e.exports = r;
+ },
+ 92093: (e, t, n) => {
+ var r = n(45012);
+ e.exports = r;
+ },
+ 52201: (e, t, n) => {
+ var r = n(80281);
+ n(28783),
+ n(97618),
+ n(6989),
+ n(65799),
+ n(46774),
+ n(22731),
+ n(85605),
+ n(31943),
+ n(80620),
+ n(36172),
+ (e.exports = r);
+ },
+ 27398: (e, t, n) => {
+ var r = n(40031);
+ e.exports = r;
+ },
+ 26189: (e, t, n) => {
+ var r = n(17487);
+ e.exports = r;
+ },
+ 24883: (e, t, n) => {
+ var r = n(57475),
+ o = n(69826),
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + " is not a function");
+ };
+ },
+ 174: (e, t, n) => {
+ var r = n(24284),
+ o = n(69826),
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + " is not a constructor");
+ };
+ },
+ 11851: (e, t, n) => {
+ var r = n(57475),
+ o = String,
+ s = TypeError;
+ e.exports = function (e) {
+ if ("object" == typeof e || r(e)) return e;
+ throw s("Can't set " + o(e) + " as a prototype");
+ };
+ },
+ 18479: (e) => {
+ e.exports = function () {};
+ },
+ 5743: (e, t, n) => {
+ var r = n(7046),
+ o = TypeError;
+ e.exports = function (e, t) {
+ if (r(t, e)) return e;
+ throw o("Incorrect invocation");
+ };
+ },
+ 96059: (e, t, n) => {
+ var r = n(10941),
+ o = String,
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + " is not an object");
+ };
+ },
+ 97135: (e, t, n) => {
+ var r = n(95981);
+ e.exports = r(function () {
+ if ("function" == typeof ArrayBuffer) {
+ var e = new ArrayBuffer(8);
+ Object.isExtensible(e) &&
+ Object.defineProperty(e, "a", { value: 8 });
+ }
+ });
+ },
+ 91860: (e, t, n) => {
+ "use strict";
+ var r = n(89678),
+ o = n(59413),
+ s = n(10623);
+ e.exports = function (e) {
+ for (
+ var t = r(this),
+ n = s(t),
+ i = arguments.length,
+ a = o(i > 1 ? arguments[1] : void 0, n),
+ l = i > 2 ? arguments[2] : void 0,
+ c = void 0 === l ? n : o(l, n);
+ c > a;
+
+ )
+ t[a++] = e;
+ return t;
+ };
+ },
+ 56837: (e, t, n) => {
+ "use strict";
+ var r = n(3610).forEach,
+ o = n(34194)("forEach");
+ e.exports = o
+ ? [].forEach
+ : function (e) {
+ return r(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ };
+ },
+ 11354: (e, t, n) => {
+ "use strict";
+ var r = n(86843),
+ o = n(78834),
+ s = n(89678),
+ i = n(75196),
+ a = n(6782),
+ l = n(24284),
+ c = n(10623),
+ u = n(55449),
+ p = n(53476),
+ h = n(22902),
+ f = Array;
+ e.exports = function (e) {
+ var t = s(e),
+ n = l(this),
+ d = arguments.length,
+ m = d > 1 ? arguments[1] : void 0,
+ g = void 0 !== m;
+ g && (m = r(m, d > 2 ? arguments[2] : void 0));
+ var y,
+ v,
+ b,
+ w,
+ E,
+ x,
+ S = h(t),
+ _ = 0;
+ if (!S || (this === f && a(S)))
+ for (y = c(t), v = n ? new this(y) : f(y); y > _; _++)
+ (x = g ? m(t[_], _) : t[_]), u(v, _, x);
+ else
+ for (
+ E = (w = p(t, S)).next, v = n ? new this() : [];
+ !(b = o(E, w)).done;
+ _++
+ )
+ (x = g ? i(w, m, [b.value, _], !0) : b.value), u(v, _, x);
+ return (v.length = _), v;
+ };
+ },
+ 31692: (e, t, n) => {
+ var r = n(74529),
+ o = n(59413),
+ s = n(10623),
+ i = function (e) {
+ return function (t, n, i) {
+ var a,
+ l = r(t),
+ c = s(l),
+ u = o(i, c);
+ if (e && n != n) {
+ for (; c > u; ) if ((a = l[u++]) != a) return !0;
+ } else
+ for (; c > u; u++)
+ if ((e || u in l) && l[u] === n) return e || u || 0;
+ return !e && -1;
+ };
+ };
+ e.exports = { includes: i(!0), indexOf: i(!1) };
+ },
+ 3610: (e, t, n) => {
+ var r = n(86843),
+ o = n(95329),
+ s = n(37026),
+ i = n(89678),
+ a = n(10623),
+ l = n(64692),
+ c = o([].push),
+ u = function (e) {
+ var t = 1 == e,
+ n = 2 == e,
+ o = 3 == e,
+ u = 4 == e,
+ p = 6 == e,
+ h = 7 == e,
+ f = 5 == e || p;
+ return function (d, m, g, y) {
+ for (
+ var v,
+ b,
+ w = i(d),
+ E = s(w),
+ x = r(m, g),
+ S = a(E),
+ _ = 0,
+ j = y || l,
+ O = t ? j(d, S) : n || h ? j(d, 0) : void 0;
+ S > _;
+ _++
+ )
+ if ((f || _ in E) && ((b = x((v = E[_]), _, w)), e))
+ if (t) O[_] = b;
+ else if (b)
+ switch (e) {
+ case 3:
+ return !0;
+ case 5:
+ return v;
+ case 6:
+ return _;
+ case 2:
+ c(O, v);
+ }
+ else
+ switch (e) {
+ case 4:
+ return !1;
+ case 7:
+ c(O, v);
+ }
+ return p ? -1 : o || u ? u : O;
+ };
+ };
+ e.exports = {
+ forEach: u(0),
+ map: u(1),
+ filter: u(2),
+ some: u(3),
+ every: u(4),
+ find: u(5),
+ findIndex: u(6),
+ filterReject: u(7),
+ };
+ },
+ 67145: (e, t, n) => {
+ "use strict";
+ var r = n(79730),
+ o = n(74529),
+ s = n(62435),
+ i = n(10623),
+ a = n(34194),
+ l = Math.min,
+ c = [].lastIndexOf,
+ u = !!c && 1 / [1].lastIndexOf(1, -0) < 0,
+ p = a("lastIndexOf"),
+ h = u || !p;
+ e.exports = h
+ ? function (e) {
+ if (u) return r(c, this, arguments) || 0;
+ var t = o(this),
+ n = i(t),
+ a = n - 1;
+ for (
+ arguments.length > 1 && (a = l(a, s(arguments[1]))),
+ a < 0 && (a = n + a);
+ a >= 0;
+ a--
+ )
+ if (a in t && t[a] === e) return a || 0;
+ return -1;
+ }
+ : c;
+ },
+ 50568: (e, t, n) => {
+ var r = n(95981),
+ o = n(99813),
+ s = n(53385),
+ i = o("species");
+ e.exports = function (e) {
+ return (
+ s >= 51 ||
+ !r(function () {
+ var t = [];
+ return (
+ ((t.constructor = {})[i] = function () {
+ return { foo: 1 };
+ }),
+ 1 !== t[e](Boolean).foo
+ );
+ })
+ );
+ };
+ },
+ 34194: (e, t, n) => {
+ "use strict";
+ var r = n(95981);
+ e.exports = function (e, t) {
+ var n = [][e];
+ return (
+ !!n &&
+ r(function () {
+ n.call(
+ null,
+ t ||
+ function () {
+ return 1;
+ },
+ 1
+ );
+ })
+ );
+ };
+ },
+ 46499: (e, t, n) => {
+ var r = n(24883),
+ o = n(89678),
+ s = n(37026),
+ i = n(10623),
+ a = TypeError,
+ l = function (e) {
+ return function (t, n, l, c) {
+ r(n);
+ var u = o(t),
+ p = s(u),
+ h = i(u),
+ f = e ? h - 1 : 0,
+ d = e ? -1 : 1;
+ if (l < 2)
+ for (;;) {
+ if (f in p) {
+ (c = p[f]), (f += d);
+ break;
+ }
+ if (((f += d), e ? f < 0 : h <= f))
+ throw a("Reduce of empty array with no initial value");
+ }
+ for (; e ? f >= 0 : h > f; f += d)
+ f in p && (c = n(c, p[f], f, u));
+ return c;
+ };
+ };
+ e.exports = { left: l(!1), right: l(!0) };
+ },
+ 89779: (e, t, n) => {
+ "use strict";
+ var r = n(55746),
+ o = n(1052),
+ s = TypeError,
+ i = Object.getOwnPropertyDescriptor,
+ a =
+ r &&
+ !(function () {
+ if (void 0 !== this) return !0;
+ try {
+ Object.defineProperty([], "length", {
+ writable: !1,
+ }).length = 1;
+ } catch (e) {
+ return e instanceof TypeError;
+ }
+ })();
+ e.exports = a
+ ? function (e, t) {
+ if (o(e) && !i(e, "length").writable)
+ throw s("Cannot set read only .length");
+ return (e.length = t);
+ }
+ : function (e, t) {
+ return (e.length = t);
+ };
+ },
+ 15790: (e, t, n) => {
+ var r = n(59413),
+ o = n(10623),
+ s = n(55449),
+ i = Array,
+ a = Math.max;
+ e.exports = function (e, t, n) {
+ for (
+ var l = o(e),
+ c = r(t, l),
+ u = r(void 0 === n ? l : n, l),
+ p = i(a(u - c, 0)),
+ h = 0;
+ c < u;
+ c++, h++
+ )
+ s(p, h, e[c]);
+ return (p.length = h), p;
+ };
+ },
+ 93765: (e, t, n) => {
+ var r = n(95329);
+ e.exports = r([].slice);
+ },
+ 61388: (e, t, n) => {
+ var r = n(15790),
+ o = Math.floor,
+ s = function (e, t) {
+ var n = e.length,
+ l = o(n / 2);
+ return n < 8 ? i(e, t) : a(e, s(r(e, 0, l), t), s(r(e, l), t), t);
+ },
+ i = function (e, t) {
+ for (var n, r, o = e.length, s = 1; s < o; ) {
+ for (r = s, n = e[s]; r && t(e[r - 1], n) > 0; ) e[r] = e[--r];
+ r !== s++ && (e[r] = n);
+ }
+ return e;
+ },
+ a = function (e, t, n, r) {
+ for (
+ var o = t.length, s = n.length, i = 0, a = 0;
+ i < o || a < s;
+
+ )
+ e[i + a] =
+ i < o && a < s
+ ? r(t[i], n[a]) <= 0
+ ? t[i++]
+ : n[a++]
+ : i < o
+ ? t[i++]
+ : n[a++];
+ return e;
+ };
+ e.exports = s;
+ },
+ 5693: (e, t, n) => {
+ var r = n(1052),
+ o = n(24284),
+ s = n(10941),
+ i = n(99813)("species"),
+ a = Array;
+ e.exports = function (e) {
+ var t;
+ return (
+ r(e) &&
+ ((t = e.constructor),
+ ((o(t) && (t === a || r(t.prototype))) ||
+ (s(t) && null === (t = t[i]))) &&
+ (t = void 0)),
+ void 0 === t ? a : t
+ );
+ };
+ },
+ 64692: (e, t, n) => {
+ var r = n(5693);
+ e.exports = function (e, t) {
+ return new (r(e))(0 === t ? 0 : t);
+ };
+ },
+ 75196: (e, t, n) => {
+ var r = n(96059),
+ o = n(7609);
+ e.exports = function (e, t, n, s) {
+ try {
+ return s ? t(r(n)[0], n[1]) : t(n);
+ } catch (t) {
+ o(e, "throw", t);
+ }
+ };
+ },
+ 21385: (e, t, n) => {
+ var r = n(99813)("iterator"),
+ o = !1;
+ try {
+ var s = 0,
+ i = {
+ next: function () {
+ return { done: !!s++ };
+ },
+ return: function () {
+ o = !0;
+ },
+ };
+ (i[r] = function () {
+ return this;
+ }),
+ Array.from(i, function () {
+ throw 2;
+ });
+ } catch (e) {}
+ e.exports = function (e, t) {
+ if (!t && !o) return !1;
+ var n = !1;
+ try {
+ var s = {};
+ (s[r] = function () {
+ return {
+ next: function () {
+ return { done: (n = !0) };
+ },
+ };
+ }),
+ e(s);
+ } catch (e) {}
+ return n;
+ };
+ },
+ 82532: (e, t, n) => {
+ var r = n(95329),
+ o = r({}.toString),
+ s = r("".slice);
+ e.exports = function (e) {
+ return s(o(e), 8, -1);
+ };
+ },
+ 9697: (e, t, n) => {
+ var r = n(22885),
+ o = n(57475),
+ s = n(82532),
+ i = n(99813)("toStringTag"),
+ a = Object,
+ l =
+ "Arguments" ==
+ s(
+ (function () {
+ return arguments;
+ })()
+ );
+ e.exports = r
+ ? s
+ : function (e) {
+ var t, n, r;
+ return void 0 === e
+ ? "Undefined"
+ : null === e
+ ? "Null"
+ : "string" ==
+ typeof (n = (function (e, t) {
+ try {
+ return e[t];
+ } catch (e) {}
+ })((t = a(e)), i))
+ ? n
+ : l
+ ? s(t)
+ : "Object" == (r = s(t)) && o(t.callee)
+ ? "Arguments"
+ : r;
+ };
+ },
+ 85616: (e, t, n) => {
+ "use strict";
+ var r = n(29290),
+ o = n(29202),
+ s = n(94380),
+ i = n(86843),
+ a = n(5743),
+ l = n(82119),
+ c = n(93091),
+ u = n(75105),
+ p = n(23538),
+ h = n(94431),
+ f = n(55746),
+ d = n(21647).fastKey,
+ m = n(45402),
+ g = m.set,
+ y = m.getterFor;
+ e.exports = {
+ getConstructor: function (e, t, n, u) {
+ var p = e(function (e, o) {
+ a(e, h),
+ g(e, {
+ type: t,
+ index: r(null),
+ first: void 0,
+ last: void 0,
+ size: 0,
+ }),
+ f || (e.size = 0),
+ l(o) || c(o, e[u], { that: e, AS_ENTRIES: n });
+ }),
+ h = p.prototype,
+ m = y(t),
+ v = function (e, t, n) {
+ var r,
+ o,
+ s = m(e),
+ i = b(e, t);
+ return (
+ i
+ ? (i.value = n)
+ : ((s.last = i =
+ {
+ index: (o = d(t, !0)),
+ key: t,
+ value: n,
+ previous: (r = s.last),
+ next: void 0,
+ removed: !1,
+ }),
+ s.first || (s.first = i),
+ r && (r.next = i),
+ f ? s.size++ : e.size++,
+ "F" !== o && (s.index[o] = i)),
+ e
+ );
+ },
+ b = function (e, t) {
+ var n,
+ r = m(e),
+ o = d(t);
+ if ("F" !== o) return r.index[o];
+ for (n = r.first; n; n = n.next) if (n.key == t) return n;
+ };
+ return (
+ s(h, {
+ clear: function () {
+ for (var e = m(this), t = e.index, n = e.first; n; )
+ (n.removed = !0),
+ n.previous && (n.previous = n.previous.next = void 0),
+ delete t[n.index],
+ (n = n.next);
+ (e.first = e.last = void 0),
+ f ? (e.size = 0) : (this.size = 0);
+ },
+ delete: function (e) {
+ var t = this,
+ n = m(t),
+ r = b(t, e);
+ if (r) {
+ var o = r.next,
+ s = r.previous;
+ delete n.index[r.index],
+ (r.removed = !0),
+ s && (s.next = o),
+ o && (o.previous = s),
+ n.first == r && (n.first = o),
+ n.last == r && (n.last = s),
+ f ? n.size-- : t.size--;
+ }
+ return !!r;
+ },
+ forEach: function (e) {
+ for (
+ var t,
+ n = m(this),
+ r = i(e, arguments.length > 1 ? arguments[1] : void 0);
+ (t = t ? t.next : n.first);
+
+ )
+ for (r(t.value, t.key, this); t && t.removed; )
+ t = t.previous;
+ },
+ has: function (e) {
+ return !!b(this, e);
+ },
+ }),
+ s(
+ h,
+ n
+ ? {
+ get: function (e) {
+ var t = b(this, e);
+ return t && t.value;
+ },
+ set: function (e, t) {
+ return v(this, 0 === e ? 0 : e, t);
+ },
+ }
+ : {
+ add: function (e) {
+ return v(this, (e = 0 === e ? 0 : e), e);
+ },
+ }
+ ),
+ f &&
+ o(h, "size", {
+ configurable: !0,
+ get: function () {
+ return m(this).size;
+ },
+ }),
+ p
+ );
+ },
+ setStrong: function (e, t, n) {
+ var r = t + " Iterator",
+ o = y(t),
+ s = y(r);
+ u(
+ e,
+ t,
+ function (e, t) {
+ g(this, {
+ type: r,
+ target: e,
+ state: o(e),
+ kind: t,
+ last: void 0,
+ });
+ },
+ function () {
+ for (
+ var e = s(this), t = e.kind, n = e.last;
+ n && n.removed;
+
+ )
+ n = n.previous;
+ return e.target && (e.last = n = n ? n.next : e.state.first)
+ ? p(
+ "keys" == t
+ ? n.key
+ : "values" == t
+ ? n.value
+ : [n.key, n.value],
+ !1
+ )
+ : ((e.target = void 0), p(void 0, !0));
+ },
+ n ? "entries" : "values",
+ !n,
+ !0
+ ),
+ h(t);
+ },
+ };
+ },
+ 8850: (e, t, n) => {
+ "use strict";
+ var r = n(95329),
+ o = n(94380),
+ s = n(21647).getWeakData,
+ i = n(5743),
+ a = n(96059),
+ l = n(82119),
+ c = n(10941),
+ u = n(93091),
+ p = n(3610),
+ h = n(90953),
+ f = n(45402),
+ d = f.set,
+ m = f.getterFor,
+ g = p.find,
+ y = p.findIndex,
+ v = r([].splice),
+ b = 0,
+ w = function (e) {
+ return e.frozen || (e.frozen = new E());
+ },
+ E = function () {
+ this.entries = [];
+ },
+ x = function (e, t) {
+ return g(e.entries, function (e) {
+ return e[0] === t;
+ });
+ };
+ (E.prototype = {
+ get: function (e) {
+ var t = x(this, e);
+ if (t) return t[1];
+ },
+ has: function (e) {
+ return !!x(this, e);
+ },
+ set: function (e, t) {
+ var n = x(this, e);
+ n ? (n[1] = t) : this.entries.push([e, t]);
+ },
+ delete: function (e) {
+ var t = y(this.entries, function (t) {
+ return t[0] === e;
+ });
+ return ~t && v(this.entries, t, 1), !!~t;
+ },
+ }),
+ (e.exports = {
+ getConstructor: function (e, t, n, r) {
+ var p = e(function (e, o) {
+ i(e, f),
+ d(e, { type: t, id: b++, frozen: void 0 }),
+ l(o) || u(o, e[r], { that: e, AS_ENTRIES: n });
+ }),
+ f = p.prototype,
+ g = m(t),
+ y = function (e, t, n) {
+ var r = g(e),
+ o = s(a(t), !0);
+ return !0 === o ? w(r).set(t, n) : (o[r.id] = n), e;
+ };
+ return (
+ o(f, {
+ delete: function (e) {
+ var t = g(this);
+ if (!c(e)) return !1;
+ var n = s(e);
+ return !0 === n
+ ? w(t).delete(e)
+ : n && h(n, t.id) && delete n[t.id];
+ },
+ has: function (e) {
+ var t = g(this);
+ if (!c(e)) return !1;
+ var n = s(e);
+ return !0 === n ? w(t).has(e) : n && h(n, t.id);
+ },
+ }),
+ o(
+ f,
+ n
+ ? {
+ get: function (e) {
+ var t = g(this);
+ if (c(e)) {
+ var n = s(e);
+ return !0 === n
+ ? w(t).get(e)
+ : n
+ ? n[t.id]
+ : void 0;
+ }
+ },
+ set: function (e, t) {
+ return y(this, e, t);
+ },
+ }
+ : {
+ add: function (e) {
+ return y(this, e, !0);
+ },
+ }
+ ),
+ p
+ );
+ },
+ });
+ },
+ 24683: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(21899),
+ s = n(21647),
+ i = n(95981),
+ a = n(32029),
+ l = n(93091),
+ c = n(5743),
+ u = n(57475),
+ p = n(10941),
+ h = n(90904),
+ f = n(65988).f,
+ d = n(3610).forEach,
+ m = n(55746),
+ g = n(45402),
+ y = g.set,
+ v = g.getterFor;
+ e.exports = function (e, t, n) {
+ var g,
+ b = -1 !== e.indexOf("Map"),
+ w = -1 !== e.indexOf("Weak"),
+ E = b ? "set" : "add",
+ x = o[e],
+ S = x && x.prototype,
+ _ = {};
+ if (
+ m &&
+ u(x) &&
+ (w ||
+ (S.forEach &&
+ !i(function () {
+ new x().entries().next();
+ })))
+ ) {
+ var j = (g = t(function (t, n) {
+ y(c(t, j), { type: e, collection: new x() }),
+ null != n && l(n, t[E], { that: t, AS_ENTRIES: b });
+ })).prototype,
+ O = v(e);
+ d(
+ [
+ "add",
+ "clear",
+ "delete",
+ "forEach",
+ "get",
+ "has",
+ "set",
+ "keys",
+ "values",
+ "entries",
+ ],
+ function (e) {
+ var t = "add" == e || "set" == e;
+ !(e in S) ||
+ (w && "clear" == e) ||
+ a(j, e, function (n, r) {
+ var o = O(this).collection;
+ if (!t && w && !p(n)) return "get" == e && void 0;
+ var s = o[e](0 === n ? 0 : n, r);
+ return t ? this : s;
+ });
+ }
+ ),
+ w ||
+ f(j, "size", {
+ configurable: !0,
+ get: function () {
+ return O(this).collection.size;
+ },
+ });
+ } else (g = n.getConstructor(t, e, b, E)), s.enable();
+ return (
+ h(g, e, !1, !0),
+ (_[e] = g),
+ r({ global: !0, forced: !0 }, _),
+ w || n.setStrong(g, e, b),
+ g
+ );
+ };
+ },
+ 23489: (e, t, n) => {
+ var r = n(90953),
+ o = n(31136),
+ s = n(49677),
+ i = n(65988);
+ e.exports = function (e, t, n) {
+ for (var a = o(t), l = i.f, c = s.f, u = 0; u < a.length; u++) {
+ var p = a[u];
+ r(e, p) || (n && r(n, p)) || l(e, p, c(t, p));
+ }
+ };
+ },
+ 67772: (e, t, n) => {
+ var r = n(99813)("match");
+ e.exports = function (e) {
+ var t = /./;
+ try {
+ "/./"[e](t);
+ } catch (n) {
+ try {
+ return (t[r] = !1), "/./"[e](t);
+ } catch (e) {}
+ }
+ return !1;
+ };
+ },
+ 64160: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ function e() {}
+ return (
+ (e.prototype.constructor = null),
+ Object.getPrototypeOf(new e()) !== e.prototype
+ );
+ });
+ },
+ 23538: (e) => {
+ e.exports = function (e, t) {
+ return { value: e, done: t };
+ };
+ },
+ 32029: (e, t, n) => {
+ var r = n(55746),
+ o = n(65988),
+ s = n(31887);
+ e.exports = r
+ ? function (e, t, n) {
+ return o.f(e, t, s(1, n));
+ }
+ : function (e, t, n) {
+ return (e[t] = n), e;
+ };
+ },
+ 31887: (e) => {
+ e.exports = function (e, t) {
+ return {
+ enumerable: !(1 & e),
+ configurable: !(2 & e),
+ writable: !(4 & e),
+ value: t,
+ };
+ };
+ },
+ 55449: (e, t, n) => {
+ "use strict";
+ var r = n(83894),
+ o = n(65988),
+ s = n(31887);
+ e.exports = function (e, t, n) {
+ var i = r(t);
+ i in e ? o.f(e, i, s(0, n)) : (e[i] = n);
+ };
+ },
+ 29202: (e, t, n) => {
+ var r = n(65988);
+ e.exports = function (e, t, n) {
+ return r.f(e, t, n);
+ };
+ },
+ 95929: (e, t, n) => {
+ var r = n(32029);
+ e.exports = function (e, t, n, o) {
+ return o && o.enumerable ? (e[t] = n) : r(e, t, n), e;
+ };
+ },
+ 94380: (e, t, n) => {
+ var r = n(95929);
+ e.exports = function (e, t, n) {
+ for (var o in t)
+ n && n.unsafe && e[o] ? (e[o] = t[o]) : r(e, o, t[o], n);
+ return e;
+ };
+ },
+ 75609: (e, t, n) => {
+ var r = n(21899),
+ o = Object.defineProperty;
+ e.exports = function (e, t) {
+ try {
+ o(r, e, { value: t, configurable: !0, writable: !0 });
+ } catch (n) {
+ r[e] = t;
+ }
+ return t;
+ };
+ },
+ 15863: (e, t, n) => {
+ "use strict";
+ var r = n(69826),
+ o = TypeError;
+ e.exports = function (e, t) {
+ if (!delete e[t])
+ throw o("Cannot delete property " + r(t) + " of " + r(e));
+ };
+ },
+ 55746: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ return (
+ 7 !=
+ Object.defineProperty({}, 1, {
+ get: function () {
+ return 7;
+ },
+ })[1]
+ );
+ });
+ },
+ 76616: (e) => {
+ var t = "object" == typeof document && document.all,
+ n = void 0 === t && void 0 !== t;
+ e.exports = { all: t, IS_HTMLDDA: n };
+ },
+ 61333: (e, t, n) => {
+ var r = n(21899),
+ o = n(10941),
+ s = r.document,
+ i = o(s) && o(s.createElement);
+ e.exports = function (e) {
+ return i ? s.createElement(e) : {};
+ };
+ },
+ 66796: (e) => {
+ var t = TypeError;
+ e.exports = function (e) {
+ if (e > 9007199254740991) throw t("Maximum allowed index exceeded");
+ return e;
+ };
+ },
+ 63281: (e) => {
+ e.exports = {
+ CSSRuleList: 0,
+ CSSStyleDeclaration: 0,
+ CSSValueList: 0,
+ ClientRectList: 0,
+ DOMRectList: 0,
+ DOMStringList: 0,
+ DOMTokenList: 1,
+ DataTransferItemList: 0,
+ FileList: 0,
+ HTMLAllCollection: 0,
+ HTMLCollection: 0,
+ HTMLFormElement: 0,
+ HTMLSelectElement: 0,
+ MediaList: 0,
+ MimeTypeArray: 0,
+ NamedNodeMap: 0,
+ NodeList: 1,
+ PaintRequestList: 0,
+ Plugin: 0,
+ PluginArray: 0,
+ SVGLengthList: 0,
+ SVGNumberList: 0,
+ SVGPathSegList: 0,
+ SVGPointList: 0,
+ SVGStringList: 0,
+ SVGTransformList: 0,
+ SourceBufferList: 0,
+ StyleSheetList: 0,
+ TextTrackCueList: 0,
+ TextTrackList: 0,
+ TouchList: 0,
+ };
+ },
+ 34342: (e, t, n) => {
+ var r = n(2861).match(/firefox\/(\d+)/i);
+ e.exports = !!r && +r[1];
+ },
+ 23321: (e, t, n) => {
+ var r = n(48501),
+ o = n(6049);
+ e.exports =
+ !r &&
+ !o &&
+ "object" == typeof window &&
+ "object" == typeof document;
+ },
+ 56491: (e) => {
+ e.exports =
+ "function" == typeof Bun && Bun && "string" == typeof Bun.version;
+ },
+ 48501: (e) => {
+ e.exports =
+ "object" == typeof Deno && Deno && "object" == typeof Deno.version;
+ },
+ 81046: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /MSIE|Trident/.test(r);
+ },
+ 4470: (e, t, n) => {
+ var r = n(2861);
+ e.exports =
+ /ipad|iphone|ipod/i.test(r) && "undefined" != typeof Pebble;
+ },
+ 22749: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(r);
+ },
+ 6049: (e, t, n) => {
+ var r = n(34155),
+ o = n(82532);
+ e.exports = void 0 !== r && "process" == o(r);
+ },
+ 58045: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /web0s(?!.*chrome)/i.test(r);
+ },
+ 2861: (e) => {
+ e.exports =
+ ("undefined" != typeof navigator && String(navigator.userAgent)) ||
+ "";
+ },
+ 53385: (e, t, n) => {
+ var r,
+ o,
+ s = n(21899),
+ i = n(2861),
+ a = s.process,
+ l = s.Deno,
+ c = (a && a.versions) || (l && l.version),
+ u = c && c.v8;
+ u && (o = (r = u.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])),
+ !o &&
+ i &&
+ (!(r = i.match(/Edge\/(\d+)/)) || r[1] >= 74) &&
+ (r = i.match(/Chrome\/(\d+)/)) &&
+ (o = +r[1]),
+ (e.exports = o);
+ },
+ 18938: (e, t, n) => {
+ var r = n(2861).match(/AppleWebKit\/(\d+)\./);
+ e.exports = !!r && +r[1];
+ },
+ 35703: (e, t, n) => {
+ var r = n(54058);
+ e.exports = function (e) {
+ return r[e + "Prototype"];
+ };
+ },
+ 56759: (e) => {
+ e.exports = [
+ "constructor",
+ "hasOwnProperty",
+ "isPrototypeOf",
+ "propertyIsEnumerable",
+ "toLocaleString",
+ "toString",
+ "valueOf",
+ ];
+ },
+ 53995: (e, t, n) => {
+ var r = n(95329),
+ o = Error,
+ s = r("".replace),
+ i = String(o("zxcasd").stack),
+ a = /\n\s*at [^:]*:[^\n]*/,
+ l = a.test(i);
+ e.exports = function (e, t) {
+ if (l && "string" == typeof e && !o.prepareStackTrace)
+ for (; t--; ) e = s(e, a, "");
+ return e;
+ };
+ },
+ 79585: (e, t, n) => {
+ var r = n(32029),
+ o = n(53995),
+ s = n(18780),
+ i = Error.captureStackTrace;
+ e.exports = function (e, t, n, a) {
+ s && (i ? i(e, t) : r(e, "stack", o(n, a)));
+ };
+ },
+ 18780: (e, t, n) => {
+ var r = n(95981),
+ o = n(31887);
+ e.exports = !r(function () {
+ var e = Error("a");
+ return (
+ !("stack" in e) ||
+ (Object.defineProperty(e, "stack", o(1, 7)), 7 !== e.stack)
+ );
+ });
+ },
+ 76887: (e, t, n) => {
+ "use strict";
+ var r = n(21899),
+ o = n(79730),
+ s = n(97484),
+ i = n(57475),
+ a = n(49677).f,
+ l = n(37252),
+ c = n(54058),
+ u = n(86843),
+ p = n(32029),
+ h = n(90953),
+ f = function (e) {
+ var t = function (n, r, s) {
+ if (this instanceof t) {
+ switch (arguments.length) {
+ case 0:
+ return new e();
+ case 1:
+ return new e(n);
+ case 2:
+ return new e(n, r);
+ }
+ return new e(n, r, s);
+ }
+ return o(e, this, arguments);
+ };
+ return (t.prototype = e.prototype), t;
+ };
+ e.exports = function (e, t) {
+ var n,
+ o,
+ d,
+ m,
+ g,
+ y,
+ v,
+ b,
+ w,
+ E = e.target,
+ x = e.global,
+ S = e.stat,
+ _ = e.proto,
+ j = x ? r : S ? r[E] : (r[E] || {}).prototype,
+ O = x ? c : c[E] || p(c, E, {})[E],
+ k = O.prototype;
+ for (m in t)
+ (o =
+ !(n = l(x ? m : E + (S ? "." : "#") + m, e.forced)) &&
+ j &&
+ h(j, m)),
+ (y = O[m]),
+ o && (v = e.dontCallGetSet ? (w = a(j, m)) && w.value : j[m]),
+ (g = o && v ? v : t[m]),
+ (o && typeof y == typeof g) ||
+ ((b =
+ e.bind && o
+ ? u(g, r)
+ : e.wrap && o
+ ? f(g)
+ : _ && i(g)
+ ? s(g)
+ : g),
+ (e.sham || (g && g.sham) || (y && y.sham)) &&
+ p(b, "sham", !0),
+ p(O, m, b),
+ _ &&
+ (h(c, (d = E + "Prototype")) || p(c, d, {}),
+ p(c[d], m, g),
+ e.real && k && (n || !k[m]) && p(k, m, g)));
+ };
+ },
+ 95981: (e) => {
+ e.exports = function (e) {
+ try {
+ return !!e();
+ } catch (e) {
+ return !0;
+ }
+ };
+ },
+ 45602: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ return Object.isExtensible(Object.preventExtensions({}));
+ });
+ },
+ 79730: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype,
+ s = o.apply,
+ i = o.call;
+ e.exports =
+ ("object" == typeof Reflect && Reflect.apply) ||
+ (r
+ ? i.bind(s)
+ : function () {
+ return i.apply(s, arguments);
+ });
+ },
+ 86843: (e, t, n) => {
+ var r = n(97484),
+ o = n(24883),
+ s = n(18285),
+ i = r(r.bind);
+ e.exports = function (e, t) {
+ return (
+ o(e),
+ void 0 === t
+ ? e
+ : s
+ ? i(e, t)
+ : function () {
+ return e.apply(t, arguments);
+ }
+ );
+ };
+ },
+ 18285: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ var e = function () {}.bind();
+ return "function" != typeof e || e.hasOwnProperty("prototype");
+ });
+ },
+ 98308: (e, t, n) => {
+ "use strict";
+ var r = n(95329),
+ o = n(24883),
+ s = n(10941),
+ i = n(90953),
+ a = n(93765),
+ l = n(18285),
+ c = Function,
+ u = r([].concat),
+ p = r([].join),
+ h = {};
+ e.exports = l
+ ? c.bind
+ : function (e) {
+ var t = o(this),
+ n = t.prototype,
+ r = a(arguments, 1),
+ l = function () {
+ var n = u(r, a(arguments));
+ return this instanceof l
+ ? (function (e, t, n) {
+ if (!i(h, t)) {
+ for (var r = [], o = 0; o < t; o++)
+ r[o] = "a[" + o + "]";
+ h[t] = c("C,a", "return new C(" + p(r, ",") + ")");
+ }
+ return h[t](e, n);
+ })(t, n.length, n)
+ : t.apply(e, n);
+ };
+ return s(n) && (l.prototype = n), l;
+ };
+ },
+ 78834: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype.call;
+ e.exports = r
+ ? o.bind(o)
+ : function () {
+ return o.apply(o, arguments);
+ };
+ },
+ 79417: (e, t, n) => {
+ var r = n(55746),
+ o = n(90953),
+ s = Function.prototype,
+ i = r && Object.getOwnPropertyDescriptor,
+ a = o(s, "name"),
+ l = a && "something" === function () {}.name,
+ c = a && (!r || (r && i(s, "name").configurable));
+ e.exports = { EXISTS: a, PROPER: l, CONFIGURABLE: c };
+ },
+ 45526: (e, t, n) => {
+ var r = n(95329),
+ o = n(24883);
+ e.exports = function (e, t, n) {
+ try {
+ return r(o(Object.getOwnPropertyDescriptor(e, t)[n]));
+ } catch (e) {}
+ };
+ },
+ 97484: (e, t, n) => {
+ var r = n(82532),
+ o = n(95329);
+ e.exports = function (e) {
+ if ("Function" === r(e)) return o(e);
+ };
+ },
+ 95329: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype,
+ s = o.call,
+ i = r && o.bind.bind(s, s);
+ e.exports = r
+ ? i
+ : function (e) {
+ return function () {
+ return s.apply(e, arguments);
+ };
+ };
+ },
+ 626: (e, t, n) => {
+ var r = n(54058),
+ o = n(21899),
+ s = n(57475),
+ i = function (e) {
+ return s(e) ? e : void 0;
+ };
+ e.exports = function (e, t) {
+ return arguments.length < 2
+ ? i(r[e]) || i(o[e])
+ : (r[e] && r[e][t]) || (o[e] && o[e][t]);
+ };
+ },
+ 22902: (e, t, n) => {
+ var r = n(9697),
+ o = n(14229),
+ s = n(82119),
+ i = n(12077),
+ a = n(99813)("iterator");
+ e.exports = function (e) {
+ if (!s(e)) return o(e, a) || o(e, "@@iterator") || i[r(e)];
+ };
+ },
+ 53476: (e, t, n) => {
+ var r = n(78834),
+ o = n(24883),
+ s = n(96059),
+ i = n(69826),
+ a = n(22902),
+ l = TypeError;
+ e.exports = function (e, t) {
+ var n = arguments.length < 2 ? a(e) : t;
+ if (o(n)) return s(r(n, e));
+ throw l(i(e) + " is not iterable");
+ };
+ },
+ 33323: (e, t, n) => {
+ var r = n(95329),
+ o = n(1052),
+ s = n(57475),
+ i = n(82532),
+ a = n(85803),
+ l = r([].push);
+ e.exports = function (e) {
+ if (s(e)) return e;
+ if (o(e)) {
+ for (var t = e.length, n = [], r = 0; r < t; r++) {
+ var c = e[r];
+ "string" == typeof c
+ ? l(n, c)
+ : ("number" != typeof c &&
+ "Number" != i(c) &&
+ "String" != i(c)) ||
+ l(n, a(c));
+ }
+ var u = n.length,
+ p = !0;
+ return function (e, t) {
+ if (p) return (p = !1), t;
+ if (o(this)) return t;
+ for (var r = 0; r < u; r++) if (n[r] === e) return t;
+ };
+ }
+ };
+ },
+ 14229: (e, t, n) => {
+ var r = n(24883),
+ o = n(82119);
+ e.exports = function (e, t) {
+ var n = e[t];
+ return o(n) ? void 0 : r(n);
+ };
+ },
+ 21899: function (e, t, n) {
+ var r = function (e) {
+ return e && e.Math == Math && e;
+ };
+ e.exports =
+ r("object" == typeof globalThis && globalThis) ||
+ r("object" == typeof window && window) ||
+ r("object" == typeof self && self) ||
+ r("object" == typeof n.g && n.g) ||
+ (function () {
+ return this;
+ })() ||
+ this ||
+ Function("return this")();
+ },
+ 90953: (e, t, n) => {
+ var r = n(95329),
+ o = n(89678),
+ s = r({}.hasOwnProperty);
+ e.exports =
+ Object.hasOwn ||
+ function (e, t) {
+ return s(o(e), t);
+ };
+ },
+ 27748: (e) => {
+ e.exports = {};
+ },
+ 34845: (e) => {
+ e.exports = function (e, t) {
+ try {
+ 1 == arguments.length ? console.error(e) : console.error(e, t);
+ } catch (e) {}
+ };
+ },
+ 15463: (e, t, n) => {
+ var r = n(626);
+ e.exports = r("document", "documentElement");
+ },
+ 2840: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981),
+ s = n(61333);
+ e.exports =
+ !r &&
+ !o(function () {
+ return (
+ 7 !=
+ Object.defineProperty(s("div"), "a", {
+ get: function () {
+ return 7;
+ },
+ }).a
+ );
+ });
+ },
+ 37026: (e, t, n) => {
+ var r = n(95329),
+ o = n(95981),
+ s = n(82532),
+ i = Object,
+ a = r("".split);
+ e.exports = o(function () {
+ return !i("z").propertyIsEnumerable(0);
+ })
+ ? function (e) {
+ return "String" == s(e) ? a(e, "") : i(e);
+ }
+ : i;
+ },
+ 81302: (e, t, n) => {
+ var r = n(95329),
+ o = n(57475),
+ s = n(63030),
+ i = r(Function.toString);
+ o(s.inspectSource) ||
+ (s.inspectSource = function (e) {
+ return i(e);
+ }),
+ (e.exports = s.inspectSource);
+ },
+ 53794: (e, t, n) => {
+ var r = n(10941),
+ o = n(32029);
+ e.exports = function (e, t) {
+ r(t) && "cause" in t && o(e, "cause", t.cause);
+ };
+ },
+ 21647: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = n(27748),
+ i = n(10941),
+ a = n(90953),
+ l = n(65988).f,
+ c = n(10946),
+ u = n(684),
+ p = n(91584),
+ h = n(99418),
+ f = n(45602),
+ d = !1,
+ m = h("meta"),
+ g = 0,
+ y = function (e) {
+ l(e, m, { value: { objectID: "O" + g++, weakData: {} } });
+ },
+ v = (e.exports = {
+ enable: function () {
+ (v.enable = function () {}), (d = !0);
+ var e = c.f,
+ t = o([].splice),
+ n = {};
+ (n[m] = 1),
+ e(n).length &&
+ ((c.f = function (n) {
+ for (var r = e(n), o = 0, s = r.length; o < s; o++)
+ if (r[o] === m) {
+ t(r, o, 1);
+ break;
+ }
+ return r;
+ }),
+ r(
+ { target: "Object", stat: !0, forced: !0 },
+ { getOwnPropertyNames: u.f }
+ ));
+ },
+ fastKey: function (e, t) {
+ if (!i(e))
+ return "symbol" == typeof e
+ ? e
+ : ("string" == typeof e ? "S" : "P") + e;
+ if (!a(e, m)) {
+ if (!p(e)) return "F";
+ if (!t) return "E";
+ y(e);
+ }
+ return e[m].objectID;
+ },
+ getWeakData: function (e, t) {
+ if (!a(e, m)) {
+ if (!p(e)) return !0;
+ if (!t) return !1;
+ y(e);
+ }
+ return e[m].weakData;
+ },
+ onFreeze: function (e) {
+ return f && d && p(e) && !a(e, m) && y(e), e;
+ },
+ });
+ s[m] = !0;
+ },
+ 45402: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i = n(47093),
+ a = n(21899),
+ l = n(10941),
+ c = n(32029),
+ u = n(90953),
+ p = n(63030),
+ h = n(44262),
+ f = n(27748),
+ d = "Object already initialized",
+ m = a.TypeError,
+ g = a.WeakMap;
+ if (i || p.state) {
+ var y = p.state || (p.state = new g());
+ (y.get = y.get),
+ (y.has = y.has),
+ (y.set = y.set),
+ (r = function (e, t) {
+ if (y.has(e)) throw m(d);
+ return (t.facade = e), y.set(e, t), t;
+ }),
+ (o = function (e) {
+ return y.get(e) || {};
+ }),
+ (s = function (e) {
+ return y.has(e);
+ });
+ } else {
+ var v = h("state");
+ (f[v] = !0),
+ (r = function (e, t) {
+ if (u(e, v)) throw m(d);
+ return (t.facade = e), c(e, v, t), t;
+ }),
+ (o = function (e) {
+ return u(e, v) ? e[v] : {};
+ }),
+ (s = function (e) {
+ return u(e, v);
+ });
+ }
+ e.exports = {
+ set: r,
+ get: o,
+ has: s,
+ enforce: function (e) {
+ return s(e) ? o(e) : r(e, {});
+ },
+ getterFor: function (e) {
+ return function (t) {
+ var n;
+ if (!l(t) || (n = o(t)).type !== e)
+ throw m("Incompatible receiver, " + e + " required");
+ return n;
+ };
+ },
+ };
+ },
+ 6782: (e, t, n) => {
+ var r = n(99813),
+ o = n(12077),
+ s = r("iterator"),
+ i = Array.prototype;
+ e.exports = function (e) {
+ return void 0 !== e && (o.Array === e || i[s] === e);
+ };
+ },
+ 1052: (e, t, n) => {
+ var r = n(82532);
+ e.exports =
+ Array.isArray ||
+ function (e) {
+ return "Array" == r(e);
+ };
+ },
+ 57475: (e, t, n) => {
+ var r = n(76616),
+ o = r.all;
+ e.exports = r.IS_HTMLDDA
+ ? function (e) {
+ return "function" == typeof e || e === o;
+ }
+ : function (e) {
+ return "function" == typeof e;
+ };
+ },
+ 24284: (e, t, n) => {
+ var r = n(95329),
+ o = n(95981),
+ s = n(57475),
+ i = n(9697),
+ a = n(626),
+ l = n(81302),
+ c = function () {},
+ u = [],
+ p = a("Reflect", "construct"),
+ h = /^\s*(?:class|function)\b/,
+ f = r(h.exec),
+ d = !h.exec(c),
+ m = function (e) {
+ if (!s(e)) return !1;
+ try {
+ return p(c, u, e), !0;
+ } catch (e) {
+ return !1;
+ }
+ },
+ g = function (e) {
+ if (!s(e)) return !1;
+ switch (i(e)) {
+ case "AsyncFunction":
+ case "GeneratorFunction":
+ case "AsyncGeneratorFunction":
+ return !1;
+ }
+ try {
+ return d || !!f(h, l(e));
+ } catch (e) {
+ return !0;
+ }
+ };
+ (g.sham = !0),
+ (e.exports =
+ !p ||
+ o(function () {
+ var e;
+ return (
+ m(m.call) ||
+ !m(Object) ||
+ !m(function () {
+ e = !0;
+ }) ||
+ e
+ );
+ })
+ ? g
+ : m);
+ },
+ 37252: (e, t, n) => {
+ var r = n(95981),
+ o = n(57475),
+ s = /#|\.prototype\./,
+ i = function (e, t) {
+ var n = l[a(e)];
+ return n == u || (n != c && (o(t) ? r(t) : !!t));
+ },
+ a = (i.normalize = function (e) {
+ return String(e).replace(s, ".").toLowerCase();
+ }),
+ l = (i.data = {}),
+ c = (i.NATIVE = "N"),
+ u = (i.POLYFILL = "P");
+ e.exports = i;
+ },
+ 54639: (e, t, n) => {
+ var r = n(10941),
+ o = Math.floor;
+ e.exports =
+ Number.isInteger ||
+ function (e) {
+ return !r(e) && isFinite(e) && o(e) === e;
+ };
+ },
+ 82119: (e) => {
+ e.exports = function (e) {
+ return null == e;
+ };
+ },
+ 10941: (e, t, n) => {
+ var r = n(57475),
+ o = n(76616),
+ s = o.all;
+ e.exports = o.IS_HTMLDDA
+ ? function (e) {
+ return "object" == typeof e ? null !== e : r(e) || e === s;
+ }
+ : function (e) {
+ return "object" == typeof e ? null !== e : r(e);
+ };
+ },
+ 82529: (e) => {
+ e.exports = !0;
+ },
+ 60685: (e, t, n) => {
+ var r = n(10941),
+ o = n(82532),
+ s = n(99813)("match");
+ e.exports = function (e) {
+ var t;
+ return r(e) && (void 0 !== (t = e[s]) ? !!t : "RegExp" == o(e));
+ };
+ },
+ 56664: (e, t, n) => {
+ var r = n(626),
+ o = n(57475),
+ s = n(7046),
+ i = n(32302),
+ a = Object;
+ e.exports = i
+ ? function (e) {
+ return "symbol" == typeof e;
+ }
+ : function (e) {
+ var t = r("Symbol");
+ return o(t) && s(t.prototype, a(e));
+ };
+ },
+ 93091: (e, t, n) => {
+ var r = n(86843),
+ o = n(78834),
+ s = n(96059),
+ i = n(69826),
+ a = n(6782),
+ l = n(10623),
+ c = n(7046),
+ u = n(53476),
+ p = n(22902),
+ h = n(7609),
+ f = TypeError,
+ d = function (e, t) {
+ (this.stopped = e), (this.result = t);
+ },
+ m = d.prototype;
+ e.exports = function (e, t, n) {
+ var g,
+ y,
+ v,
+ b,
+ w,
+ E,
+ x,
+ S = n && n.that,
+ _ = !(!n || !n.AS_ENTRIES),
+ j = !(!n || !n.IS_RECORD),
+ O = !(!n || !n.IS_ITERATOR),
+ k = !(!n || !n.INTERRUPTED),
+ A = r(t, S),
+ C = function (e) {
+ return g && h(g, "normal", e), new d(!0, e);
+ },
+ P = function (e) {
+ return _
+ ? (s(e), k ? A(e[0], e[1], C) : A(e[0], e[1]))
+ : k
+ ? A(e, C)
+ : A(e);
+ };
+ if (j) g = e.iterator;
+ else if (O) g = e;
+ else {
+ if (!(y = p(e))) throw f(i(e) + " is not iterable");
+ if (a(y)) {
+ for (v = 0, b = l(e); b > v; v++)
+ if ((w = P(e[v])) && c(m, w)) return w;
+ return new d(!1);
+ }
+ g = u(e, y);
+ }
+ for (E = j ? e.next : g.next; !(x = o(E, g)).done; ) {
+ try {
+ w = P(x.value);
+ } catch (e) {
+ h(g, "throw", e);
+ }
+ if ("object" == typeof w && w && c(m, w)) return w;
+ }
+ return new d(!1);
+ };
+ },
+ 7609: (e, t, n) => {
+ var r = n(78834),
+ o = n(96059),
+ s = n(14229);
+ e.exports = function (e, t, n) {
+ var i, a;
+ o(e);
+ try {
+ if (!(i = s(e, "return"))) {
+ if ("throw" === t) throw n;
+ return n;
+ }
+ i = r(i, e);
+ } catch (e) {
+ (a = !0), (i = e);
+ }
+ if ("throw" === t) throw n;
+ if (a) throw i;
+ return o(i), n;
+ };
+ },
+ 53847: (e, t, n) => {
+ "use strict";
+ var r = n(35143).IteratorPrototype,
+ o = n(29290),
+ s = n(31887),
+ i = n(90904),
+ a = n(12077),
+ l = function () {
+ return this;
+ };
+ e.exports = function (e, t, n, c) {
+ var u = t + " Iterator";
+ return (
+ (e.prototype = o(r, { next: s(+!c, n) })),
+ i(e, u, !1, !0),
+ (a[u] = l),
+ e
+ );
+ };
+ },
+ 75105: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(82529),
+ i = n(79417),
+ a = n(57475),
+ l = n(53847),
+ c = n(249),
+ u = n(88929),
+ p = n(90904),
+ h = n(32029),
+ f = n(95929),
+ d = n(99813),
+ m = n(12077),
+ g = n(35143),
+ y = i.PROPER,
+ v = i.CONFIGURABLE,
+ b = g.IteratorPrototype,
+ w = g.BUGGY_SAFARI_ITERATORS,
+ E = d("iterator"),
+ x = "keys",
+ S = "values",
+ _ = "entries",
+ j = function () {
+ return this;
+ };
+ e.exports = function (e, t, n, i, d, g, O) {
+ l(n, t, i);
+ var k,
+ A,
+ C,
+ P = function (e) {
+ if (e === d && M) return M;
+ if (!w && e in T) return T[e];
+ switch (e) {
+ case x:
+ case S:
+ case _:
+ return function () {
+ return new n(this, e);
+ };
+ }
+ return function () {
+ return new n(this);
+ };
+ },
+ N = t + " Iterator",
+ I = !1,
+ T = e.prototype,
+ R = T[E] || T["@@iterator"] || (d && T[d]),
+ M = (!w && R) || P(d),
+ D = ("Array" == t && T.entries) || R;
+ if (
+ (D &&
+ (k = c(D.call(new e()))) !== Object.prototype &&
+ k.next &&
+ (s || c(k) === b || (u ? u(k, b) : a(k[E]) || f(k, E, j)),
+ p(k, N, !0, !0),
+ s && (m[N] = j)),
+ y &&
+ d == S &&
+ R &&
+ R.name !== S &&
+ (!s && v
+ ? h(T, "name", S)
+ : ((I = !0),
+ (M = function () {
+ return o(R, this);
+ }))),
+ d)
+ )
+ if (
+ ((A = { values: P(S), keys: g ? M : P(x), entries: P(_) }), O)
+ )
+ for (C in A) (w || I || !(C in T)) && f(T, C, A[C]);
+ else r({ target: t, proto: !0, forced: w || I }, A);
+ return (
+ (s && !O) || T[E] === M || f(T, E, M, { name: d }), (m[t] = M), A
+ );
+ };
+ },
+ 35143: (e, t, n) => {
+ "use strict";
+ var r,
+ o,
+ s,
+ i = n(95981),
+ a = n(57475),
+ l = n(10941),
+ c = n(29290),
+ u = n(249),
+ p = n(95929),
+ h = n(99813),
+ f = n(82529),
+ d = h("iterator"),
+ m = !1;
+ [].keys &&
+ ("next" in (s = [].keys())
+ ? (o = u(u(s))) !== Object.prototype && (r = o)
+ : (m = !0)),
+ !l(r) ||
+ i(function () {
+ var e = {};
+ return r[d].call(e) !== e;
+ })
+ ? (r = {})
+ : f && (r = c(r)),
+ a(r[d]) ||
+ p(r, d, function () {
+ return this;
+ }),
+ (e.exports = { IteratorPrototype: r, BUGGY_SAFARI_ITERATORS: m });
+ },
+ 12077: (e) => {
+ e.exports = {};
+ },
+ 10623: (e, t, n) => {
+ var r = n(43057);
+ e.exports = function (e) {
+ return r(e.length);
+ };
+ },
+ 35331: (e) => {
+ var t = Math.ceil,
+ n = Math.floor;
+ e.exports =
+ Math.trunc ||
+ function (e) {
+ var r = +e;
+ return (r > 0 ? n : t)(r);
+ };
+ },
+ 66132: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i,
+ a,
+ l = n(21899),
+ c = n(86843),
+ u = n(49677).f,
+ p = n(42941).set,
+ h = n(18397),
+ f = n(22749),
+ d = n(4470),
+ m = n(58045),
+ g = n(6049),
+ y = l.MutationObserver || l.WebKitMutationObserver,
+ v = l.document,
+ b = l.process,
+ w = l.Promise,
+ E = u(l, "queueMicrotask"),
+ x = E && E.value;
+ if (!x) {
+ var S = new h(),
+ _ = function () {
+ var e, t;
+ for (g && (e = b.domain) && e.exit(); (t = S.get()); )
+ try {
+ t();
+ } catch (e) {
+ throw (S.head && r(), e);
+ }
+ e && e.enter();
+ };
+ f || g || m || !y || !v
+ ? !d && w && w.resolve
+ ? (((i = w.resolve(void 0)).constructor = w),
+ (a = c(i.then, i)),
+ (r = function () {
+ a(_);
+ }))
+ : g
+ ? (r = function () {
+ b.nextTick(_);
+ })
+ : ((p = c(p, l)),
+ (r = function () {
+ p(_);
+ }))
+ : ((o = !0),
+ (s = v.createTextNode("")),
+ new y(_).observe(s, { characterData: !0 }),
+ (r = function () {
+ s.data = o = !o;
+ })),
+ (x = function (e) {
+ S.head || r(), S.add(e);
+ });
+ }
+ e.exports = x;
+ },
+ 69520: (e, t, n) => {
+ "use strict";
+ var r = n(24883),
+ o = TypeError,
+ s = function (e) {
+ var t, n;
+ (this.promise = new e(function (e, r) {
+ if (void 0 !== t || void 0 !== n)
+ throw o("Bad Promise constructor");
+ (t = e), (n = r);
+ })),
+ (this.resolve = r(t)),
+ (this.reject = r(n));
+ };
+ e.exports.f = function (e) {
+ return new s(e);
+ };
+ },
+ 14649: (e, t, n) => {
+ var r = n(85803);
+ e.exports = function (e, t) {
+ return void 0 === e ? (arguments.length < 2 ? "" : t) : r(e);
+ };
+ },
+ 70344: (e, t, n) => {
+ var r = n(60685),
+ o = TypeError;
+ e.exports = function (e) {
+ if (r(e)) throw o("The method doesn't accept regular expressions");
+ return e;
+ };
+ },
+ 24420: (e, t, n) => {
+ "use strict";
+ var r = n(55746),
+ o = n(95329),
+ s = n(78834),
+ i = n(95981),
+ a = n(14771),
+ l = n(87857),
+ c = n(36760),
+ u = n(89678),
+ p = n(37026),
+ h = Object.assign,
+ f = Object.defineProperty,
+ d = o([].concat);
+ e.exports =
+ !h ||
+ i(function () {
+ if (
+ r &&
+ 1 !==
+ h(
+ { b: 1 },
+ h(
+ f({}, "a", {
+ enumerable: !0,
+ get: function () {
+ f(this, "b", { value: 3, enumerable: !1 });
+ },
+ }),
+ { b: 2 }
+ )
+ ).b
+ )
+ return !0;
+ var e = {},
+ t = {},
+ n = Symbol(),
+ o = "abcdefghijklmnopqrst";
+ return (
+ (e[n] = 7),
+ o.split("").forEach(function (e) {
+ t[e] = e;
+ }),
+ 7 != h({}, e)[n] || a(h({}, t)).join("") != o
+ );
+ })
+ ? function (e, t) {
+ for (
+ var n = u(e), o = arguments.length, i = 1, h = l.f, f = c.f;
+ o > i;
+
+ )
+ for (
+ var m,
+ g = p(arguments[i++]),
+ y = h ? d(a(g), h(g)) : a(g),
+ v = y.length,
+ b = 0;
+ v > b;
+
+ )
+ (m = y[b++]), (r && !s(f, g, m)) || (n[m] = g[m]);
+ return n;
+ }
+ : h;
+ },
+ 29290: (e, t, n) => {
+ var r,
+ o = n(96059),
+ s = n(59938),
+ i = n(56759),
+ a = n(27748),
+ l = n(15463),
+ c = n(61333),
+ u = n(44262),
+ p = "prototype",
+ h = "script",
+ f = u("IE_PROTO"),
+ d = function () {},
+ m = function (e) {
+ return "<" + h + ">" + e + "" + h + ">";
+ },
+ g = function (e) {
+ e.write(m("")), e.close();
+ var t = e.parentWindow.Object;
+ return (e = null), t;
+ },
+ y = function () {
+ try {
+ r = new ActiveXObject("htmlfile");
+ } catch (e) {}
+ var e, t, n;
+ y =
+ "undefined" != typeof document
+ ? document.domain && r
+ ? g(r)
+ : ((t = c("iframe")),
+ (n = "java" + h + ":"),
+ (t.style.display = "none"),
+ l.appendChild(t),
+ (t.src = String(n)),
+ (e = t.contentWindow.document).open(),
+ e.write(m("document.F=Object")),
+ e.close(),
+ e.F)
+ : g(r);
+ for (var o = i.length; o--; ) delete y[p][i[o]];
+ return y();
+ };
+ (a[f] = !0),
+ (e.exports =
+ Object.create ||
+ function (e, t) {
+ var n;
+ return (
+ null !== e
+ ? ((d[p] = o(e)), (n = new d()), (d[p] = null), (n[f] = e))
+ : (n = y()),
+ void 0 === t ? n : s.f(n, t)
+ );
+ });
+ },
+ 59938: (e, t, n) => {
+ var r = n(55746),
+ o = n(83937),
+ s = n(65988),
+ i = n(96059),
+ a = n(74529),
+ l = n(14771);
+ t.f =
+ r && !o
+ ? Object.defineProperties
+ : function (e, t) {
+ i(e);
+ for (var n, r = a(t), o = l(t), c = o.length, u = 0; c > u; )
+ s.f(e, (n = o[u++]), r[n]);
+ return e;
+ };
+ },
+ 65988: (e, t, n) => {
+ var r = n(55746),
+ o = n(2840),
+ s = n(83937),
+ i = n(96059),
+ a = n(83894),
+ l = TypeError,
+ c = Object.defineProperty,
+ u = Object.getOwnPropertyDescriptor,
+ p = "enumerable",
+ h = "configurable",
+ f = "writable";
+ t.f = r
+ ? s
+ ? function (e, t, n) {
+ if (
+ (i(e),
+ (t = a(t)),
+ i(n),
+ "function" == typeof e &&
+ "prototype" === t &&
+ "value" in n &&
+ f in n &&
+ !n[f])
+ ) {
+ var r = u(e, t);
+ r &&
+ r[f] &&
+ ((e[t] = n.value),
+ (n = {
+ configurable: h in n ? n[h] : r[h],
+ enumerable: p in n ? n[p] : r[p],
+ writable: !1,
+ }));
+ }
+ return c(e, t, n);
+ }
+ : c
+ : function (e, t, n) {
+ if ((i(e), (t = a(t)), i(n), o))
+ try {
+ return c(e, t, n);
+ } catch (e) {}
+ if ("get" in n || "set" in n)
+ throw l("Accessors not supported");
+ return "value" in n && (e[t] = n.value), e;
+ };
+ },
+ 49677: (e, t, n) => {
+ var r = n(55746),
+ o = n(78834),
+ s = n(36760),
+ i = n(31887),
+ a = n(74529),
+ l = n(83894),
+ c = n(90953),
+ u = n(2840),
+ p = Object.getOwnPropertyDescriptor;
+ t.f = r
+ ? p
+ : function (e, t) {
+ if (((e = a(e)), (t = l(t)), u))
+ try {
+ return p(e, t);
+ } catch (e) {}
+ if (c(e, t)) return i(!o(s.f, e, t), e[t]);
+ };
+ },
+ 684: (e, t, n) => {
+ var r = n(82532),
+ o = n(74529),
+ s = n(10946).f,
+ i = n(15790),
+ a =
+ "object" == typeof window && window && Object.getOwnPropertyNames
+ ? Object.getOwnPropertyNames(window)
+ : [];
+ e.exports.f = function (e) {
+ return a && "Window" == r(e)
+ ? (function (e) {
+ try {
+ return s(e);
+ } catch (e) {
+ return i(a);
+ }
+ })(e)
+ : s(o(e));
+ };
+ },
+ 10946: (e, t, n) => {
+ var r = n(55629),
+ o = n(56759).concat("length", "prototype");
+ t.f =
+ Object.getOwnPropertyNames ||
+ function (e) {
+ return r(e, o);
+ };
+ },
+ 87857: (e, t) => {
+ t.f = Object.getOwnPropertySymbols;
+ },
+ 249: (e, t, n) => {
+ var r = n(90953),
+ o = n(57475),
+ s = n(89678),
+ i = n(44262),
+ a = n(64160),
+ l = i("IE_PROTO"),
+ c = Object,
+ u = c.prototype;
+ e.exports = a
+ ? c.getPrototypeOf
+ : function (e) {
+ var t = s(e);
+ if (r(t, l)) return t[l];
+ var n = t.constructor;
+ return o(n) && t instanceof n
+ ? n.prototype
+ : t instanceof c
+ ? u
+ : null;
+ };
+ },
+ 91584: (e, t, n) => {
+ var r = n(95981),
+ o = n(10941),
+ s = n(82532),
+ i = n(97135),
+ a = Object.isExtensible,
+ l = r(function () {
+ a(1);
+ });
+ e.exports =
+ l || i
+ ? function (e) {
+ return (
+ !!o(e) && (!i || "ArrayBuffer" != s(e)) && (!a || a(e))
+ );
+ }
+ : a;
+ },
+ 7046: (e, t, n) => {
+ var r = n(95329);
+ e.exports = r({}.isPrototypeOf);
+ },
+ 55629: (e, t, n) => {
+ var r = n(95329),
+ o = n(90953),
+ s = n(74529),
+ i = n(31692).indexOf,
+ a = n(27748),
+ l = r([].push);
+ e.exports = function (e, t) {
+ var n,
+ r = s(e),
+ c = 0,
+ u = [];
+ for (n in r) !o(a, n) && o(r, n) && l(u, n);
+ for (; t.length > c; ) o(r, (n = t[c++])) && (~i(u, n) || l(u, n));
+ return u;
+ };
+ },
+ 14771: (e, t, n) => {
+ var r = n(55629),
+ o = n(56759);
+ e.exports =
+ Object.keys ||
+ function (e) {
+ return r(e, o);
+ };
+ },
+ 36760: (e, t) => {
+ "use strict";
+ var n = {}.propertyIsEnumerable,
+ r = Object.getOwnPropertyDescriptor,
+ o = r && !n.call({ 1: 2 }, 1);
+ t.f = o
+ ? function (e) {
+ var t = r(this, e);
+ return !!t && t.enumerable;
+ }
+ : n;
+ },
+ 88929: (e, t, n) => {
+ var r = n(45526),
+ o = n(96059),
+ s = n(11851);
+ e.exports =
+ Object.setPrototypeOf ||
+ ("__proto__" in {}
+ ? (function () {
+ var e,
+ t = !1,
+ n = {};
+ try {
+ (e = r(Object.prototype, "__proto__", "set"))(n, []),
+ (t = n instanceof Array);
+ } catch (e) {}
+ return function (n, r) {
+ return o(n), s(r), t ? e(n, r) : (n.__proto__ = r), n;
+ };
+ })()
+ : void 0);
+ },
+ 88810: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981),
+ s = n(95329),
+ i = n(249),
+ a = n(14771),
+ l = n(74529),
+ c = s(n(36760).f),
+ u = s([].push),
+ p =
+ r &&
+ o(function () {
+ var e = Object.create(null);
+ return (e[2] = 2), !c(e, 2);
+ }),
+ h = function (e) {
+ return function (t) {
+ for (
+ var n,
+ o = l(t),
+ s = a(o),
+ h = p && null === i(o),
+ f = s.length,
+ d = 0,
+ m = [];
+ f > d;
+
+ )
+ (n = s[d++]),
+ (r && !(h ? n in o : c(o, n))) ||
+ u(m, e ? [n, o[n]] : o[n]);
+ return m;
+ };
+ };
+ e.exports = { entries: h(!0), values: h(!1) };
+ },
+ 95623: (e, t, n) => {
+ "use strict";
+ var r = n(22885),
+ o = n(9697);
+ e.exports = r
+ ? {}.toString
+ : function () {
+ return "[object " + o(this) + "]";
+ };
+ },
+ 39811: (e, t, n) => {
+ var r = n(78834),
+ o = n(57475),
+ s = n(10941),
+ i = TypeError;
+ e.exports = function (e, t) {
+ var n, a;
+ if ("string" === t && o((n = e.toString)) && !s((a = r(n, e))))
+ return a;
+ if (o((n = e.valueOf)) && !s((a = r(n, e)))) return a;
+ if ("string" !== t && o((n = e.toString)) && !s((a = r(n, e))))
+ return a;
+ throw i("Can't convert object to primitive value");
+ };
+ },
+ 31136: (e, t, n) => {
+ var r = n(626),
+ o = n(95329),
+ s = n(10946),
+ i = n(87857),
+ a = n(96059),
+ l = o([].concat);
+ e.exports =
+ r("Reflect", "ownKeys") ||
+ function (e) {
+ var t = s.f(a(e)),
+ n = i.f;
+ return n ? l(t, n(e)) : t;
+ };
+ },
+ 54058: (e) => {
+ e.exports = {};
+ },
+ 40002: (e) => {
+ e.exports = function (e) {
+ try {
+ return { error: !1, value: e() };
+ } catch (e) {
+ return { error: !0, value: e };
+ }
+ };
+ },
+ 67742: (e, t, n) => {
+ var r = n(21899),
+ o = n(6991),
+ s = n(57475),
+ i = n(37252),
+ a = n(81302),
+ l = n(99813),
+ c = n(23321),
+ u = n(48501),
+ p = n(82529),
+ h = n(53385),
+ f = o && o.prototype,
+ d = l("species"),
+ m = !1,
+ g = s(r.PromiseRejectionEvent),
+ y = i("Promise", function () {
+ var e = a(o),
+ t = e !== String(o);
+ if (!t && 66 === h) return !0;
+ if (p && (!f.catch || !f.finally)) return !0;
+ if (!h || h < 51 || !/native code/.test(e)) {
+ var n = new o(function (e) {
+ e(1);
+ }),
+ r = function (e) {
+ e(
+ function () {},
+ function () {}
+ );
+ };
+ if (
+ (((n.constructor = {})[d] = r),
+ !(m = n.then(function () {}) instanceof r))
+ )
+ return !0;
+ }
+ return !t && (c || u) && !g;
+ });
+ e.exports = { CONSTRUCTOR: y, REJECTION_EVENT: g, SUBCLASSING: m };
+ },
+ 6991: (e, t, n) => {
+ var r = n(21899);
+ e.exports = r.Promise;
+ },
+ 56584: (e, t, n) => {
+ var r = n(96059),
+ o = n(10941),
+ s = n(69520);
+ e.exports = function (e, t) {
+ if ((r(e), o(t) && t.constructor === e)) return t;
+ var n = s.f(e);
+ return (0, n.resolve)(t), n.promise;
+ };
+ },
+ 31542: (e, t, n) => {
+ var r = n(6991),
+ o = n(21385),
+ s = n(67742).CONSTRUCTOR;
+ e.exports =
+ s ||
+ !o(function (e) {
+ r.all(e).then(void 0, function () {});
+ });
+ },
+ 18397: (e) => {
+ var t = function () {
+ (this.head = null), (this.tail = null);
+ };
+ (t.prototype = {
+ add: function (e) {
+ var t = { item: e, next: null },
+ n = this.tail;
+ n ? (n.next = t) : (this.head = t), (this.tail = t);
+ },
+ get: function () {
+ var e = this.head;
+ if (e)
+ return (
+ null === (this.head = e.next) && (this.tail = null), e.item
+ );
+ },
+ }),
+ (e.exports = t);
+ },
+ 48219: (e, t, n) => {
+ var r = n(82119),
+ o = TypeError;
+ e.exports = function (e) {
+ if (r(e)) throw o("Can't call method on " + e);
+ return e;
+ };
+ },
+ 37620: (e, t, n) => {
+ "use strict";
+ var r,
+ o = n(21899),
+ s = n(79730),
+ i = n(57475),
+ a = n(56491),
+ l = n(2861),
+ c = n(93765),
+ u = n(18348),
+ p = o.Function,
+ h =
+ /MSIE .\./.test(l) ||
+ (a &&
+ ((r = o.Bun.version.split(".")).length < 3 ||
+ (0 == r[0] && (r[1] < 3 || (3 == r[1] && 0 == r[2])))));
+ e.exports = function (e, t) {
+ var n = t ? 2 : 1;
+ return h
+ ? function (r, o) {
+ var a = u(arguments.length, 1) > n,
+ l = i(r) ? r : p(r),
+ h = a ? c(arguments, n) : [],
+ f = a
+ ? function () {
+ s(l, this, h);
+ }
+ : l;
+ return t ? e(f, o) : e(f);
+ }
+ : e;
+ };
+ },
+ 94431: (e, t, n) => {
+ "use strict";
+ var r = n(626),
+ o = n(29202),
+ s = n(99813),
+ i = n(55746),
+ a = s("species");
+ e.exports = function (e) {
+ var t = r(e);
+ i &&
+ t &&
+ !t[a] &&
+ o(t, a, {
+ configurable: !0,
+ get: function () {
+ return this;
+ },
+ });
+ };
+ },
+ 90904: (e, t, n) => {
+ var r = n(22885),
+ o = n(65988).f,
+ s = n(32029),
+ i = n(90953),
+ a = n(95623),
+ l = n(99813)("toStringTag");
+ e.exports = function (e, t, n, c) {
+ if (e) {
+ var u = n ? e : e.prototype;
+ i(u, l) || o(u, l, { configurable: !0, value: t }),
+ c && !r && s(u, "toString", a);
+ }
+ };
+ },
+ 44262: (e, t, n) => {
+ var r = n(68726),
+ o = n(99418),
+ s = r("keys");
+ e.exports = function (e) {
+ return s[e] || (s[e] = o(e));
+ };
+ },
+ 63030: (e, t, n) => {
+ var r = n(21899),
+ o = n(75609),
+ s = "__core-js_shared__",
+ i = r[s] || o(s, {});
+ e.exports = i;
+ },
+ 68726: (e, t, n) => {
+ var r = n(82529),
+ o = n(63030);
+ (e.exports = function (e, t) {
+ return o[e] || (o[e] = void 0 !== t ? t : {});
+ })("versions", []).push({
+ version: "3.31.1",
+ mode: r ? "pure" : "global",
+ copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
+ license: "https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",
+ source: "https://github.com/zloirock/core-js",
+ });
+ },
+ 70487: (e, t, n) => {
+ var r = n(96059),
+ o = n(174),
+ s = n(82119),
+ i = n(99813)("species");
+ e.exports = function (e, t) {
+ var n,
+ a = r(e).constructor;
+ return void 0 === a || s((n = r(a)[i])) ? t : o(n);
+ };
+ },
+ 64620: (e, t, n) => {
+ var r = n(95329),
+ o = n(62435),
+ s = n(85803),
+ i = n(48219),
+ a = r("".charAt),
+ l = r("".charCodeAt),
+ c = r("".slice),
+ u = function (e) {
+ return function (t, n) {
+ var r,
+ u,
+ p = s(i(t)),
+ h = o(n),
+ f = p.length;
+ return h < 0 || h >= f
+ ? e
+ ? ""
+ : void 0
+ : (r = l(p, h)) < 55296 ||
+ r > 56319 ||
+ h + 1 === f ||
+ (u = l(p, h + 1)) < 56320 ||
+ u > 57343
+ ? e
+ ? a(p, h)
+ : r
+ : e
+ ? c(p, h, h + 2)
+ : u - 56320 + ((r - 55296) << 10) + 65536;
+ };
+ };
+ e.exports = { codeAt: u(!1), charAt: u(!0) };
+ },
+ 73291: (e, t, n) => {
+ var r = n(95329),
+ o = 2147483647,
+ s = /[^\0-\u007E]/,
+ i = /[.\u3002\uFF0E\uFF61]/g,
+ a = "Overflow: input needs wider integers to process",
+ l = RangeError,
+ c = r(i.exec),
+ u = Math.floor,
+ p = String.fromCharCode,
+ h = r("".charCodeAt),
+ f = r([].join),
+ d = r([].push),
+ m = r("".replace),
+ g = r("".split),
+ y = r("".toLowerCase),
+ v = function (e) {
+ return e + 22 + 75 * (e < 26);
+ },
+ b = function (e, t, n) {
+ var r = 0;
+ for (e = n ? u(e / 700) : e >> 1, e += u(e / t); e > 455; )
+ (e = u(e / 35)), (r += 36);
+ return u(r + (36 * e) / (e + 38));
+ },
+ w = function (e) {
+ var t = [];
+ e = (function (e) {
+ for (var t = [], n = 0, r = e.length; n < r; ) {
+ var o = h(e, n++);
+ if (o >= 55296 && o <= 56319 && n < r) {
+ var s = h(e, n++);
+ 56320 == (64512 & s)
+ ? d(t, ((1023 & o) << 10) + (1023 & s) + 65536)
+ : (d(t, o), n--);
+ } else d(t, o);
+ }
+ return t;
+ })(e);
+ var n,
+ r,
+ s = e.length,
+ i = 128,
+ c = 0,
+ m = 72;
+ for (n = 0; n < e.length; n++) (r = e[n]) < 128 && d(t, p(r));
+ var g = t.length,
+ y = g;
+ for (g && d(t, "-"); y < s; ) {
+ var w = o;
+ for (n = 0; n < e.length; n++)
+ (r = e[n]) >= i && r < w && (w = r);
+ var E = y + 1;
+ if (w - i > u((o - c) / E)) throw l(a);
+ for (c += (w - i) * E, i = w, n = 0; n < e.length; n++) {
+ if ((r = e[n]) < i && ++c > o) throw l(a);
+ if (r == i) {
+ for (var x = c, S = 36; ; ) {
+ var _ = S <= m ? 1 : S >= m + 26 ? 26 : S - m;
+ if (x < _) break;
+ var j = x - _,
+ O = 36 - _;
+ d(t, p(v(_ + (j % O)))), (x = u(j / O)), (S += 36);
+ }
+ d(t, p(v(x))), (m = b(c, E, y == g)), (c = 0), y++;
+ }
+ }
+ c++, i++;
+ }
+ return f(t, "");
+ };
+ e.exports = function (e) {
+ var t,
+ n,
+ r = [],
+ o = g(m(y(e), i, "."), ".");
+ for (t = 0; t < o.length; t++)
+ (n = o[t]), d(r, c(s, n) ? "xn--" + w(n) : n);
+ return f(r, ".");
+ };
+ },
+ 16178: (e, t, n) => {
+ "use strict";
+ var r = n(62435),
+ o = n(85803),
+ s = n(48219),
+ i = RangeError;
+ e.exports = function (e) {
+ var t = o(s(this)),
+ n = "",
+ a = r(e);
+ if (a < 0 || a == 1 / 0) throw i("Wrong number of repetitions");
+ for (; a > 0; (a >>>= 1) && (t += t)) 1 & a && (n += t);
+ return n;
+ };
+ },
+ 93093: (e, t, n) => {
+ var r = n(79417).PROPER,
+ o = n(95981),
+ s = n(73483);
+ e.exports = function (e) {
+ return o(function () {
+ return !!s[e]() || "
" !== "
"[e]() || (r && s[e].name !== e);
+ });
+ };
+ },
+ 74853: (e, t, n) => {
+ var r = n(95329),
+ o = n(48219),
+ s = n(85803),
+ i = n(73483),
+ a = r("".replace),
+ l = RegExp("^[" + i + "]+"),
+ c = RegExp("(^|[^" + i + "])[" + i + "]+$"),
+ u = function (e) {
+ return function (t) {
+ var n = s(o(t));
+ return (
+ 1 & e && (n = a(n, l, "")), 2 & e && (n = a(n, c, "$1")), n
+ );
+ };
+ };
+ e.exports = { start: u(1), end: u(2), trim: u(3) };
+ },
+ 63405: (e, t, n) => {
+ var r = n(53385),
+ o = n(95981),
+ s = n(21899).String;
+ e.exports =
+ !!Object.getOwnPropertySymbols &&
+ !o(function () {
+ var e = Symbol();
+ return (
+ !s(e) ||
+ !(Object(e) instanceof Symbol) ||
+ (!Symbol.sham && r && r < 41)
+ );
+ });
+ },
+ 29630: (e, t, n) => {
+ var r = n(78834),
+ o = n(626),
+ s = n(99813),
+ i = n(95929);
+ e.exports = function () {
+ var e = o("Symbol"),
+ t = e && e.prototype,
+ n = t && t.valueOf,
+ a = s("toPrimitive");
+ t &&
+ !t[a] &&
+ i(
+ t,
+ a,
+ function (e) {
+ return r(n, this);
+ },
+ { arity: 1 }
+ );
+ };
+ },
+ 32087: (e, t, n) => {
+ var r = n(626),
+ o = n(95329),
+ s = r("Symbol"),
+ i = s.keyFor,
+ a = o(s.prototype.valueOf);
+ e.exports =
+ s.isRegisteredSymbol ||
+ function (e) {
+ try {
+ return void 0 !== i(a(e));
+ } catch (e) {
+ return !1;
+ }
+ };
+ },
+ 96559: (e, t, n) => {
+ for (
+ var r = n(68726),
+ o = n(626),
+ s = n(95329),
+ i = n(56664),
+ a = n(99813),
+ l = o("Symbol"),
+ c = l.isWellKnownSymbol,
+ u = o("Object", "getOwnPropertyNames"),
+ p = s(l.prototype.valueOf),
+ h = r("wks"),
+ f = 0,
+ d = u(l),
+ m = d.length;
+ f < m;
+ f++
+ )
+ try {
+ var g = d[f];
+ i(l[g]) && a(g);
+ } catch (e) {}
+ e.exports = function (e) {
+ if (c && c(e)) return !0;
+ try {
+ for (var t = p(e), n = 0, r = u(h), o = r.length; n < o; n++)
+ if (h[r[n]] == t) return !0;
+ } catch (e) {}
+ return !1;
+ };
+ },
+ 34680: (e, t, n) => {
+ var r = n(63405);
+ e.exports = r && !!Symbol.for && !!Symbol.keyFor;
+ },
+ 42941: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i,
+ a = n(21899),
+ l = n(79730),
+ c = n(86843),
+ u = n(57475),
+ p = n(90953),
+ h = n(95981),
+ f = n(15463),
+ d = n(93765),
+ m = n(61333),
+ g = n(18348),
+ y = n(22749),
+ v = n(6049),
+ b = a.setImmediate,
+ w = a.clearImmediate,
+ E = a.process,
+ x = a.Dispatch,
+ S = a.Function,
+ _ = a.MessageChannel,
+ j = a.String,
+ O = 0,
+ k = {},
+ A = "onreadystatechange";
+ h(function () {
+ r = a.location;
+ });
+ var C = function (e) {
+ if (p(k, e)) {
+ var t = k[e];
+ delete k[e], t();
+ }
+ },
+ P = function (e) {
+ return function () {
+ C(e);
+ };
+ },
+ N = function (e) {
+ C(e.data);
+ },
+ I = function (e) {
+ a.postMessage(j(e), r.protocol + "//" + r.host);
+ };
+ (b && w) ||
+ ((b = function (e) {
+ g(arguments.length, 1);
+ var t = u(e) ? e : S(e),
+ n = d(arguments, 1);
+ return (
+ (k[++O] = function () {
+ l(t, void 0, n);
+ }),
+ o(O),
+ O
+ );
+ }),
+ (w = function (e) {
+ delete k[e];
+ }),
+ v
+ ? (o = function (e) {
+ E.nextTick(P(e));
+ })
+ : x && x.now
+ ? (o = function (e) {
+ x.now(P(e));
+ })
+ : _ && !y
+ ? ((i = (s = new _()).port2),
+ (s.port1.onmessage = N),
+ (o = c(i.postMessage, i)))
+ : a.addEventListener &&
+ u(a.postMessage) &&
+ !a.importScripts &&
+ r &&
+ "file:" !== r.protocol &&
+ !h(I)
+ ? ((o = I), a.addEventListener("message", N, !1))
+ : (o =
+ A in m("script")
+ ? function (e) {
+ f.appendChild(m("script"))[A] = function () {
+ f.removeChild(this), C(e);
+ };
+ }
+ : function (e) {
+ setTimeout(P(e), 0);
+ })),
+ (e.exports = { set: b, clear: w });
+ },
+ 59413: (e, t, n) => {
+ var r = n(62435),
+ o = Math.max,
+ s = Math.min;
+ e.exports = function (e, t) {
+ var n = r(e);
+ return n < 0 ? o(n + t, 0) : s(n, t);
+ };
+ },
+ 74529: (e, t, n) => {
+ var r = n(37026),
+ o = n(48219);
+ e.exports = function (e) {
+ return r(o(e));
+ };
+ },
+ 62435: (e, t, n) => {
+ var r = n(35331);
+ e.exports = function (e) {
+ var t = +e;
+ return t != t || 0 === t ? 0 : r(t);
+ };
+ },
+ 43057: (e, t, n) => {
+ var r = n(62435),
+ o = Math.min;
+ e.exports = function (e) {
+ return e > 0 ? o(r(e), 9007199254740991) : 0;
+ };
+ },
+ 89678: (e, t, n) => {
+ var r = n(48219),
+ o = Object;
+ e.exports = function (e) {
+ return o(r(e));
+ };
+ },
+ 46935: (e, t, n) => {
+ var r = n(78834),
+ o = n(10941),
+ s = n(56664),
+ i = n(14229),
+ a = n(39811),
+ l = n(99813),
+ c = TypeError,
+ u = l("toPrimitive");
+ e.exports = function (e, t) {
+ if (!o(e) || s(e)) return e;
+ var n,
+ l = i(e, u);
+ if (l) {
+ if (
+ (void 0 === t && (t = "default"),
+ (n = r(l, e, t)),
+ !o(n) || s(n))
+ )
+ return n;
+ throw c("Can't convert object to primitive value");
+ }
+ return void 0 === t && (t = "number"), a(e, t);
+ };
+ },
+ 83894: (e, t, n) => {
+ var r = n(46935),
+ o = n(56664);
+ e.exports = function (e) {
+ var t = r(e, "string");
+ return o(t) ? t : t + "";
+ };
+ },
+ 22885: (e, t, n) => {
+ var r = {};
+ (r[n(99813)("toStringTag")] = "z"),
+ (e.exports = "[object z]" === String(r));
+ },
+ 85803: (e, t, n) => {
+ var r = n(9697),
+ o = String;
+ e.exports = function (e) {
+ if ("Symbol" === r(e))
+ throw TypeError("Cannot convert a Symbol value to a string");
+ return o(e);
+ };
+ },
+ 69826: (e) => {
+ var t = String;
+ e.exports = function (e) {
+ try {
+ return t(e);
+ } catch (e) {
+ return "Object";
+ }
+ };
+ },
+ 99418: (e, t, n) => {
+ var r = n(95329),
+ o = 0,
+ s = Math.random(),
+ i = r((1).toString);
+ e.exports = function (e) {
+ return "Symbol(" + (void 0 === e ? "" : e) + ")_" + i(++o + s, 36);
+ };
+ },
+ 14766: (e, t, n) => {
+ var r = n(95981),
+ o = n(99813),
+ s = n(55746),
+ i = n(82529),
+ a = o("iterator");
+ e.exports = !r(function () {
+ var e = new URL("b?a=1&b=2&c=3", "http://a"),
+ t = e.searchParams,
+ n = new URLSearchParams("a=1&a=2"),
+ r = "";
+ return (
+ (e.pathname = "c%20d"),
+ t.forEach(function (e, n) {
+ t.delete("b"), (r += n + e);
+ }),
+ n.delete("a", 2),
+ (i && (!e.toJSON || !n.has("a", 1) || n.has("a", 2))) ||
+ (!t.size && (i || !s)) ||
+ !t.sort ||
+ "http://a/c%20d?a=1&c=3" !== e.href ||
+ "3" !== t.get("c") ||
+ "a=1" !== String(new URLSearchParams("?a=1")) ||
+ !t[a] ||
+ "a" !== new URL("https://a@b").username ||
+ "b" !==
+ new URLSearchParams(new URLSearchParams("a=b")).get("a") ||
+ "xn--e1aybc" !== new URL("http://тест").host ||
+ "#%D0%B1" !== new URL("http://a#б").hash ||
+ "a1c3" !== r ||
+ "x" !== new URL("http://x", void 0).host
+ );
+ });
+ },
+ 32302: (e, t, n) => {
+ var r = n(63405);
+ e.exports = r && !Symbol.sham && "symbol" == typeof Symbol.iterator;
+ },
+ 83937: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981);
+ e.exports =
+ r &&
+ o(function () {
+ return (
+ 42 !=
+ Object.defineProperty(function () {}, "prototype", {
+ value: 42,
+ writable: !1,
+ }).prototype
+ );
+ });
+ },
+ 18348: (e) => {
+ var t = TypeError;
+ e.exports = function (e, n) {
+ if (e < n) throw t("Not enough arguments");
+ return e;
+ };
+ },
+ 47093: (e, t, n) => {
+ var r = n(21899),
+ o = n(57475),
+ s = r.WeakMap;
+ e.exports = o(s) && /native code/.test(String(s));
+ },
+ 73464: (e, t, n) => {
+ var r = n(54058),
+ o = n(90953),
+ s = n(11477),
+ i = n(65988).f;
+ e.exports = function (e) {
+ var t = r.Symbol || (r.Symbol = {});
+ o(t, e) || i(t, e, { value: s.f(e) });
+ };
+ },
+ 11477: (e, t, n) => {
+ var r = n(99813);
+ t.f = r;
+ },
+ 99813: (e, t, n) => {
+ var r = n(21899),
+ o = n(68726),
+ s = n(90953),
+ i = n(99418),
+ a = n(63405),
+ l = n(32302),
+ c = r.Symbol,
+ u = o("wks"),
+ p = l ? c.for || c : (c && c.withoutSetter) || i;
+ e.exports = function (e) {
+ return (
+ s(u, e) || (u[e] = a && s(c, e) ? c[e] : p("Symbol." + e)), u[e]
+ );
+ };
+ },
+ 73483: (e) => {
+ e.exports = "\t\n\v\f\r \u2028\u2029\ufeff";
+ },
+ 49812: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(7046),
+ s = n(249),
+ i = n(88929),
+ a = n(23489),
+ l = n(29290),
+ c = n(32029),
+ u = n(31887),
+ p = n(53794),
+ h = n(79585),
+ f = n(93091),
+ d = n(14649),
+ m = n(99813)("toStringTag"),
+ g = Error,
+ y = [].push,
+ v = function (e, t) {
+ var n,
+ r = o(b, this);
+ i
+ ? (n = i(g(), r ? s(this) : b))
+ : ((n = r ? this : l(b)), c(n, m, "Error")),
+ void 0 !== t && c(n, "message", d(t)),
+ h(n, v, n.stack, 1),
+ arguments.length > 2 && p(n, arguments[2]);
+ var a = [];
+ return f(e, y, { that: a }), c(n, "errors", a), n;
+ };
+ i ? i(v, g) : a(v, g, { name: !0 });
+ var b = (v.prototype = l(g.prototype, {
+ constructor: u(1, v),
+ message: u(1, ""),
+ name: u(1, "AggregateError"),
+ }));
+ r({ global: !0, constructor: !0, arity: 2 }, { AggregateError: v });
+ },
+ 47627: (e, t, n) => {
+ n(49812);
+ },
+ 85906: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(95981),
+ s = n(1052),
+ i = n(10941),
+ a = n(89678),
+ l = n(10623),
+ c = n(66796),
+ u = n(55449),
+ p = n(64692),
+ h = n(50568),
+ f = n(99813),
+ d = n(53385),
+ m = f("isConcatSpreadable"),
+ g =
+ d >= 51 ||
+ !o(function () {
+ var e = [];
+ return (e[m] = !1), e.concat()[0] !== e;
+ }),
+ y = function (e) {
+ if (!i(e)) return !1;
+ var t = e[m];
+ return void 0 !== t ? !!t : s(e);
+ };
+ r(
+ {
+ target: "Array",
+ proto: !0,
+ arity: 1,
+ forced: !g || !h("concat"),
+ },
+ {
+ concat: function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i = a(this),
+ h = p(i, 0),
+ f = 0;
+ for (t = -1, r = arguments.length; t < r; t++)
+ if (y((s = -1 === t ? i : arguments[t])))
+ for (o = l(s), c(f + o), n = 0; n < o; n++, f++)
+ n in s && u(h, f, s[n]);
+ else c(f + 1), u(h, f++, s);
+ return (h.length = f), h;
+ },
+ }
+ );
+ },
+ 48851: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).every;
+ r(
+ { target: "Array", proto: !0, forced: !n(34194)("every") },
+ {
+ every: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 80290: (e, t, n) => {
+ var r = n(76887),
+ o = n(91860),
+ s = n(18479);
+ r({ target: "Array", proto: !0 }, { fill: o }), s("fill");
+ },
+ 21501: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).filter;
+ r(
+ { target: "Array", proto: !0, forced: !n(50568)("filter") },
+ {
+ filter: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 44929: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).findIndex,
+ s = n(18479),
+ i = "findIndex",
+ a = !0;
+ i in [] &&
+ Array(1)[i](function () {
+ a = !1;
+ }),
+ r(
+ { target: "Array", proto: !0, forced: a },
+ {
+ findIndex: function (e) {
+ return o(
+ this,
+ e,
+ arguments.length > 1 ? arguments[1] : void 0
+ );
+ },
+ }
+ ),
+ s(i);
+ },
+ 80833: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).find,
+ s = n(18479),
+ i = "find",
+ a = !0;
+ i in [] &&
+ Array(1)[i](function () {
+ a = !1;
+ }),
+ r(
+ { target: "Array", proto: !0, forced: a },
+ {
+ find: function (e) {
+ return o(
+ this,
+ e,
+ arguments.length > 1 ? arguments[1] : void 0
+ );
+ },
+ }
+ ),
+ s(i);
+ },
+ 2437: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(56837);
+ r(
+ { target: "Array", proto: !0, forced: [].forEach != o },
+ { forEach: o }
+ );
+ },
+ 53242: (e, t, n) => {
+ var r = n(76887),
+ o = n(11354);
+ r(
+ {
+ target: "Array",
+ stat: !0,
+ forced: !n(21385)(function (e) {
+ Array.from(e);
+ }),
+ },
+ { from: o }
+ );
+ },
+ 97690: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(31692).includes,
+ s = n(95981),
+ i = n(18479);
+ r(
+ {
+ target: "Array",
+ proto: !0,
+ forced: s(function () {
+ return !Array(1).includes();
+ }),
+ },
+ {
+ includes: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ ),
+ i("includes");
+ },
+ 99076: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(97484),
+ s = n(31692).indexOf,
+ i = n(34194),
+ a = o([].indexOf),
+ l = !!a && 1 / a([1], 1, -0) < 0;
+ r(
+ { target: "Array", proto: !0, forced: l || !i("indexOf") },
+ {
+ indexOf: function (e) {
+ var t = arguments.length > 1 ? arguments[1] : void 0;
+ return l ? a(this, e, t) || 0 : s(this, e, t);
+ },
+ }
+ );
+ },
+ 92737: (e, t, n) => {
+ n(76887)({ target: "Array", stat: !0 }, { isArray: n(1052) });
+ },
+ 66274: (e, t, n) => {
+ "use strict";
+ var r = n(74529),
+ o = n(18479),
+ s = n(12077),
+ i = n(45402),
+ a = n(65988).f,
+ l = n(75105),
+ c = n(23538),
+ u = n(82529),
+ p = n(55746),
+ h = "Array Iterator",
+ f = i.set,
+ d = i.getterFor(h);
+ e.exports = l(
+ Array,
+ "Array",
+ function (e, t) {
+ f(this, { type: h, target: r(e), index: 0, kind: t });
+ },
+ function () {
+ var e = d(this),
+ t = e.target,
+ n = e.kind,
+ r = e.index++;
+ return !t || r >= t.length
+ ? ((e.target = void 0), c(void 0, !0))
+ : c("keys" == n ? r : "values" == n ? t[r] : [r, t[r]], !1);
+ },
+ "values"
+ );
+ var m = (s.Arguments = s.Array);
+ if (
+ (o("keys"),
+ o("values"),
+ o("entries"),
+ !u && p && "values" !== m.name)
+ )
+ try {
+ a(m, "name", { value: "values" });
+ } catch (e) {}
+ },
+ 75915: (e, t, n) => {
+ var r = n(76887),
+ o = n(67145);
+ r(
+ { target: "Array", proto: !0, forced: o !== [].lastIndexOf },
+ { lastIndexOf: o }
+ );
+ },
+ 68787: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).map;
+ r(
+ { target: "Array", proto: !0, forced: !n(50568)("map") },
+ {
+ map: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 48528: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(89678),
+ s = n(10623),
+ i = n(89779),
+ a = n(66796);
+ r(
+ {
+ target: "Array",
+ proto: !0,
+ arity: 1,
+ forced:
+ n(95981)(function () {
+ return 4294967297 !== [].push.call({ length: 4294967296 }, 1);
+ }) ||
+ !(function () {
+ try {
+ Object.defineProperty([], "length", {
+ writable: !1,
+ }).push();
+ } catch (e) {
+ return e instanceof TypeError;
+ }
+ })(),
+ },
+ {
+ push: function (e) {
+ var t = o(this),
+ n = s(t),
+ r = arguments.length;
+ a(n + r);
+ for (var l = 0; l < r; l++) (t[n] = arguments[l]), n++;
+ return i(t, n), n;
+ },
+ }
+ );
+ },
+ 81876: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(46499).left,
+ s = n(34194),
+ i = n(53385);
+ r(
+ {
+ target: "Array",
+ proto: !0,
+ forced: (!n(6049) && i > 79 && i < 83) || !s("reduce"),
+ },
+ {
+ reduce: function (e) {
+ var t = arguments.length;
+ return o(this, e, t, t > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 60186: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(1052),
+ s = n(24284),
+ i = n(10941),
+ a = n(59413),
+ l = n(10623),
+ c = n(74529),
+ u = n(55449),
+ p = n(99813),
+ h = n(50568),
+ f = n(93765),
+ d = h("slice"),
+ m = p("species"),
+ g = Array,
+ y = Math.max;
+ r(
+ { target: "Array", proto: !0, forced: !d },
+ {
+ slice: function (e, t) {
+ var n,
+ r,
+ p,
+ h = c(this),
+ d = l(h),
+ v = a(e, d),
+ b = a(void 0 === t ? d : t, d);
+ if (
+ o(h) &&
+ ((n = h.constructor),
+ ((s(n) && (n === g || o(n.prototype))) ||
+ (i(n) && null === (n = n[m]))) &&
+ (n = void 0),
+ n === g || void 0 === n)
+ )
+ return f(h, v, b);
+ for (
+ r = new (void 0 === n ? g : n)(y(b - v, 0)), p = 0;
+ v < b;
+ v++, p++
+ )
+ v in h && u(r, p, h[v]);
+ return (r.length = p), r;
+ },
+ }
+ );
+ },
+ 36026: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(3610).some;
+ r(
+ { target: "Array", proto: !0, forced: !n(34194)("some") },
+ {
+ some: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 4115: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(95329),
+ s = n(24883),
+ i = n(89678),
+ a = n(10623),
+ l = n(15863),
+ c = n(85803),
+ u = n(95981),
+ p = n(61388),
+ h = n(34194),
+ f = n(34342),
+ d = n(81046),
+ m = n(53385),
+ g = n(18938),
+ y = [],
+ v = o(y.sort),
+ b = o(y.push),
+ w = u(function () {
+ y.sort(void 0);
+ }),
+ E = u(function () {
+ y.sort(null);
+ }),
+ x = h("sort"),
+ S = !u(function () {
+ if (m) return m < 70;
+ if (!(f && f > 3)) {
+ if (d) return !0;
+ if (g) return g < 603;
+ var e,
+ t,
+ n,
+ r,
+ o = "";
+ for (e = 65; e < 76; e++) {
+ switch (((t = String.fromCharCode(e)), e)) {
+ case 66:
+ case 69:
+ case 70:
+ case 72:
+ n = 3;
+ break;
+ case 68:
+ case 71:
+ n = 4;
+ break;
+ default:
+ n = 2;
+ }
+ for (r = 0; r < 47; r++) y.push({ k: t + r, v: n });
+ }
+ for (
+ y.sort(function (e, t) {
+ return t.v - e.v;
+ }),
+ r = 0;
+ r < y.length;
+ r++
+ )
+ (t = y[r].k.charAt(0)),
+ o.charAt(o.length - 1) !== t && (o += t);
+ return "DGBEFHACIJK" !== o;
+ }
+ });
+ r(
+ { target: "Array", proto: !0, forced: w || !E || !x || !S },
+ {
+ sort: function (e) {
+ void 0 !== e && s(e);
+ var t = i(this);
+ if (S) return void 0 === e ? v(t) : v(t, e);
+ var n,
+ r,
+ o = [],
+ u = a(t);
+ for (r = 0; r < u; r++) r in t && b(o, t[r]);
+ for (
+ p(
+ o,
+ (function (e) {
+ return function (t, n) {
+ return void 0 === n
+ ? -1
+ : void 0 === t
+ ? 1
+ : void 0 !== e
+ ? +e(t, n) || 0
+ : c(t) > c(n)
+ ? 1
+ : -1;
+ };
+ })(e)
+ ),
+ n = a(o),
+ r = 0;
+ r < n;
+
+ )
+ t[r] = o[r++];
+ for (; r < u; ) l(t, r++);
+ return t;
+ },
+ }
+ );
+ },
+ 98611: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(89678),
+ s = n(59413),
+ i = n(62435),
+ a = n(10623),
+ l = n(89779),
+ c = n(66796),
+ u = n(64692),
+ p = n(55449),
+ h = n(15863),
+ f = n(50568)("splice"),
+ d = Math.max,
+ m = Math.min;
+ r(
+ { target: "Array", proto: !0, forced: !f },
+ {
+ splice: function (e, t) {
+ var n,
+ r,
+ f,
+ g,
+ y,
+ v,
+ b = o(this),
+ w = a(b),
+ E = s(e, w),
+ x = arguments.length;
+ for (
+ 0 === x
+ ? (n = r = 0)
+ : 1 === x
+ ? ((n = 0), (r = w - E))
+ : ((n = x - 2), (r = m(d(i(t), 0), w - E))),
+ c(w + n - r),
+ f = u(b, r),
+ g = 0;
+ g < r;
+ g++
+ )
+ (y = E + g) in b && p(f, g, b[y]);
+ if (((f.length = r), n < r)) {
+ for (g = E; g < w - r; g++)
+ (v = g + n), (y = g + r) in b ? (b[v] = b[y]) : h(b, v);
+ for (g = w; g > w - r + n; g--) h(b, g - 1);
+ } else if (n > r)
+ for (g = w - r; g > E; g--)
+ (v = g + n - 1),
+ (y = g + r - 1) in b ? (b[v] = b[y]) : h(b, v);
+ for (g = 0; g < n; g++) b[g + E] = arguments[g + 2];
+ return l(b, w - r + n), f;
+ },
+ }
+ );
+ },
+ 95160: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = Date,
+ i = o(s.prototype.getTime);
+ r(
+ { target: "Date", stat: !0 },
+ {
+ now: function () {
+ return i(new s());
+ },
+ }
+ );
+ },
+ 18084: () => {},
+ 73381: (e, t, n) => {
+ var r = n(76887),
+ o = n(98308);
+ r(
+ { target: "Function", proto: !0, forced: Function.bind !== o },
+ { bind: o }
+ );
+ },
+ 32619: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(79730),
+ i = n(78834),
+ a = n(95329),
+ l = n(95981),
+ c = n(57475),
+ u = n(56664),
+ p = n(93765),
+ h = n(33323),
+ f = n(63405),
+ d = String,
+ m = o("JSON", "stringify"),
+ g = a(/./.exec),
+ y = a("".charAt),
+ v = a("".charCodeAt),
+ b = a("".replace),
+ w = a((1).toString),
+ E = /[\uD800-\uDFFF]/g,
+ x = /^[\uD800-\uDBFF]$/,
+ S = /^[\uDC00-\uDFFF]$/,
+ _ =
+ !f ||
+ l(function () {
+ var e = o("Symbol")();
+ return (
+ "[null]" != m([e]) ||
+ "{}" != m({ a: e }) ||
+ "{}" != m(Object(e))
+ );
+ }),
+ j = l(function () {
+ return (
+ '"\\udf06\\ud834"' !== m("\udf06\ud834") ||
+ '"\\udead"' !== m("\udead")
+ );
+ }),
+ O = function (e, t) {
+ var n = p(arguments),
+ r = h(t);
+ if (c(r) || (void 0 !== e && !u(e)))
+ return (
+ (n[1] = function (e, t) {
+ if ((c(r) && (t = i(r, this, d(e), t)), !u(t))) return t;
+ }),
+ s(m, null, n)
+ );
+ },
+ k = function (e, t, n) {
+ var r = y(n, t - 1),
+ o = y(n, t + 1);
+ return (g(x, e) && !g(S, o)) || (g(S, e) && !g(x, r))
+ ? "\\u" + w(v(e, 0), 16)
+ : e;
+ };
+ m &&
+ r(
+ { target: "JSON", stat: !0, arity: 3, forced: _ || j },
+ {
+ stringify: function (e, t, n) {
+ var r = p(arguments),
+ o = s(_ ? O : m, null, r);
+ return j && "string" == typeof o ? b(o, E, k) : o;
+ },
+ }
+ );
+ },
+ 69120: (e, t, n) => {
+ var r = n(21899);
+ n(90904)(r.JSON, "JSON", !0);
+ },
+ 23112: (e, t, n) => {
+ "use strict";
+ n(24683)(
+ "Map",
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(85616)
+ );
+ },
+ 37501: (e, t, n) => {
+ n(23112);
+ },
+ 79413: () => {},
+ 54973: (e, t, n) => {
+ n(76887)(
+ {
+ target: "Number",
+ stat: !0,
+ nonConfigurable: !0,
+ nonWritable: !0,
+ },
+ { EPSILON: Math.pow(2, -52) }
+ );
+ },
+ 30800: (e, t, n) => {
+ n(76887)({ target: "Number", stat: !0 }, { isInteger: n(54639) });
+ },
+ 49221: (e, t, n) => {
+ var r = n(76887),
+ o = n(24420);
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ arity: 2,
+ forced: Object.assign !== o,
+ },
+ { assign: o }
+ );
+ },
+ 74979: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(59938).f;
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ forced: Object.defineProperties !== s,
+ sham: !o,
+ },
+ { defineProperties: s }
+ );
+ },
+ 86450: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(65988).f;
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ forced: Object.defineProperty !== s,
+ sham: !o,
+ },
+ { defineProperty: s }
+ );
+ },
+ 94366: (e, t, n) => {
+ var r = n(76887),
+ o = n(88810).entries;
+ r(
+ { target: "Object", stat: !0 },
+ {
+ entries: function (e) {
+ return o(e);
+ },
+ }
+ );
+ },
+ 28387: (e, t, n) => {
+ var r = n(76887),
+ o = n(93091),
+ s = n(55449);
+ r(
+ { target: "Object", stat: !0 },
+ {
+ fromEntries: function (e) {
+ var t = {};
+ return (
+ o(
+ e,
+ function (e, n) {
+ s(t, e, n);
+ },
+ { AS_ENTRIES: !0 }
+ ),
+ t
+ );
+ },
+ }
+ );
+ },
+ 46924: (e, t, n) => {
+ var r = n(76887),
+ o = n(95981),
+ s = n(74529),
+ i = n(49677).f,
+ a = n(55746);
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ forced:
+ !a ||
+ o(function () {
+ i(1);
+ }),
+ sham: !a,
+ },
+ {
+ getOwnPropertyDescriptor: function (e, t) {
+ return i(s(e), t);
+ },
+ }
+ );
+ },
+ 88482: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(31136),
+ i = n(74529),
+ a = n(49677),
+ l = n(55449);
+ r(
+ { target: "Object", stat: !0, sham: !o },
+ {
+ getOwnPropertyDescriptors: function (e) {
+ for (
+ var t, n, r = i(e), o = a.f, c = s(r), u = {}, p = 0;
+ c.length > p;
+
+ )
+ void 0 !== (n = o(r, (t = c[p++]))) && l(u, t, n);
+ return u;
+ },
+ }
+ );
+ },
+ 37144: (e, t, n) => {
+ var r = n(76887),
+ o = n(63405),
+ s = n(95981),
+ i = n(87857),
+ a = n(89678);
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ forced:
+ !o ||
+ s(function () {
+ i.f(1);
+ }),
+ },
+ {
+ getOwnPropertySymbols: function (e) {
+ var t = i.f;
+ return t ? t(a(e)) : [];
+ },
+ }
+ );
+ },
+ 21724: (e, t, n) => {
+ var r = n(76887),
+ o = n(89678),
+ s = n(14771);
+ r(
+ {
+ target: "Object",
+ stat: !0,
+ forced: n(95981)(function () {
+ s(1);
+ }),
+ },
+ {
+ keys: function (e) {
+ return s(o(e));
+ },
+ }
+ );
+ },
+ 55967: () => {},
+ 26614: (e, t, n) => {
+ var r = n(76887),
+ o = n(88810).values;
+ r(
+ { target: "Object", stat: !0 },
+ {
+ values: function (e) {
+ return o(e);
+ },
+ }
+ );
+ },
+ 4560: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: "Promise", stat: !0, forced: n(31542) },
+ {
+ allSettled: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.resolve,
+ c = n.reject,
+ u = a(function () {
+ var n = s(t.resolve),
+ i = [],
+ a = 0,
+ c = 1;
+ l(e, function (e) {
+ var s = a++,
+ l = !1;
+ c++,
+ o(n, t, e).then(
+ function (e) {
+ l ||
+ ((l = !0),
+ (i[s] = { status: "fulfilled", value: e }),
+ --c || r(i));
+ },
+ function (e) {
+ l ||
+ ((l = !0),
+ (i[s] = { status: "rejected", reason: e }),
+ --c || r(i));
+ }
+ );
+ }),
+ --c || r(i);
+ });
+ return u.error && c(u.value), n.promise;
+ },
+ }
+ );
+ },
+ 16890: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: "Promise", stat: !0, forced: n(31542) },
+ {
+ all: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.resolve,
+ c = n.reject,
+ u = a(function () {
+ var n = s(t.resolve),
+ i = [],
+ a = 0,
+ u = 1;
+ l(e, function (e) {
+ var s = a++,
+ l = !1;
+ u++,
+ o(n, t, e).then(function (e) {
+ l || ((l = !0), (i[s] = e), --u || r(i));
+ }, c);
+ }),
+ --u || r(i);
+ });
+ return u.error && c(u.value), n.promise;
+ },
+ }
+ );
+ },
+ 91302: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(626),
+ a = n(69520),
+ l = n(40002),
+ c = n(93091),
+ u = n(31542),
+ p = "No one promise resolved";
+ r(
+ { target: "Promise", stat: !0, forced: u },
+ {
+ any: function (e) {
+ var t = this,
+ n = i("AggregateError"),
+ r = a.f(t),
+ u = r.resolve,
+ h = r.reject,
+ f = l(function () {
+ var r = s(t.resolve),
+ i = [],
+ a = 0,
+ l = 1,
+ f = !1;
+ c(e, function (e) {
+ var s = a++,
+ c = !1;
+ l++,
+ o(r, t, e).then(
+ function (e) {
+ c || f || ((f = !0), u(e));
+ },
+ function (e) {
+ c ||
+ f ||
+ ((c = !0), (i[s] = e), --l || h(new n(i, p)));
+ }
+ );
+ }),
+ --l || h(new n(i, p));
+ });
+ return f.error && h(f.value), r.promise;
+ },
+ }
+ );
+ },
+ 83376: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(82529),
+ s = n(67742).CONSTRUCTOR,
+ i = n(6991),
+ a = n(626),
+ l = n(57475),
+ c = n(95929),
+ u = i && i.prototype;
+ if (
+ (r(
+ { target: "Promise", proto: !0, forced: s, real: !0 },
+ {
+ catch: function (e) {
+ return this.then(void 0, e);
+ },
+ }
+ ),
+ !o && l(i))
+ ) {
+ var p = a("Promise").prototype.catch;
+ u.catch !== p && c(u, "catch", p, { unsafe: !0 });
+ }
+ },
+ 26934: (e, t, n) => {
+ "use strict";
+ var r,
+ o,
+ s,
+ i = n(76887),
+ a = n(82529),
+ l = n(6049),
+ c = n(21899),
+ u = n(78834),
+ p = n(95929),
+ h = n(88929),
+ f = n(90904),
+ d = n(94431),
+ m = n(24883),
+ g = n(57475),
+ y = n(10941),
+ v = n(5743),
+ b = n(70487),
+ w = n(42941).set,
+ E = n(66132),
+ x = n(34845),
+ S = n(40002),
+ _ = n(18397),
+ j = n(45402),
+ O = n(6991),
+ k = n(67742),
+ A = n(69520),
+ C = "Promise",
+ P = k.CONSTRUCTOR,
+ N = k.REJECTION_EVENT,
+ I = k.SUBCLASSING,
+ T = j.getterFor(C),
+ R = j.set,
+ M = O && O.prototype,
+ D = O,
+ F = M,
+ L = c.TypeError,
+ B = c.document,
+ $ = c.process,
+ q = A.f,
+ U = q,
+ z = !!(B && B.createEvent && c.dispatchEvent),
+ V = "unhandledrejection",
+ W = function (e) {
+ var t;
+ return !(!y(e) || !g((t = e.then))) && t;
+ },
+ J = function (e, t) {
+ var n,
+ r,
+ o,
+ s = t.value,
+ i = 1 == t.state,
+ a = i ? e.ok : e.fail,
+ l = e.resolve,
+ c = e.reject,
+ p = e.domain;
+ try {
+ a
+ ? (i || (2 === t.rejection && Y(t), (t.rejection = 1)),
+ !0 === a
+ ? (n = s)
+ : (p && p.enter(), (n = a(s)), p && (p.exit(), (o = !0))),
+ n === e.promise
+ ? c(L("Promise-chain cycle"))
+ : (r = W(n))
+ ? u(r, n, l, c)
+ : l(n))
+ : c(s);
+ } catch (e) {
+ p && !o && p.exit(), c(e);
+ }
+ },
+ K = function (e, t) {
+ e.notified ||
+ ((e.notified = !0),
+ E(function () {
+ for (var n, r = e.reactions; (n = r.get()); ) J(n, e);
+ (e.notified = !1), t && !e.rejection && G(e);
+ }));
+ },
+ H = function (e, t, n) {
+ var r, o;
+ z
+ ? (((r = B.createEvent("Event")).promise = t),
+ (r.reason = n),
+ r.initEvent(e, !1, !0),
+ c.dispatchEvent(r))
+ : (r = { promise: t, reason: n }),
+ !N && (o = c["on" + e])
+ ? o(r)
+ : e === V && x("Unhandled promise rejection", n);
+ },
+ G = function (e) {
+ u(w, c, function () {
+ var t,
+ n = e.facade,
+ r = e.value;
+ if (
+ Z(e) &&
+ ((t = S(function () {
+ l ? $.emit("unhandledRejection", r, n) : H(V, n, r);
+ })),
+ (e.rejection = l || Z(e) ? 2 : 1),
+ t.error)
+ )
+ throw t.value;
+ });
+ },
+ Z = function (e) {
+ return 1 !== e.rejection && !e.parent;
+ },
+ Y = function (e) {
+ u(w, c, function () {
+ var t = e.facade;
+ l
+ ? $.emit("rejectionHandled", t)
+ : H("rejectionhandled", t, e.value);
+ });
+ },
+ X = function (e, t, n) {
+ return function (r) {
+ e(t, r, n);
+ };
+ },
+ Q = function (e, t, n) {
+ e.done ||
+ ((e.done = !0),
+ n && (e = n),
+ (e.value = t),
+ (e.state = 2),
+ K(e, !0));
+ },
+ ee = function (e, t, n) {
+ if (!e.done) {
+ (e.done = !0), n && (e = n);
+ try {
+ if (e.facade === t)
+ throw L("Promise can't be resolved itself");
+ var r = W(t);
+ r
+ ? E(function () {
+ var n = { done: !1 };
+ try {
+ u(r, t, X(ee, n, e), X(Q, n, e));
+ } catch (t) {
+ Q(n, t, e);
+ }
+ })
+ : ((e.value = t), (e.state = 1), K(e, !1));
+ } catch (t) {
+ Q({ done: !1 }, t, e);
+ }
+ }
+ };
+ if (
+ P &&
+ ((F = (D = function (e) {
+ v(this, F), m(e), u(r, this);
+ var t = T(this);
+ try {
+ e(X(ee, t), X(Q, t));
+ } catch (e) {
+ Q(t, e);
+ }
+ }).prototype),
+ ((r = function (e) {
+ R(this, {
+ type: C,
+ done: !1,
+ notified: !1,
+ parent: !1,
+ reactions: new _(),
+ rejection: !1,
+ state: 0,
+ value: void 0,
+ });
+ }).prototype = p(F, "then", function (e, t) {
+ var n = T(this),
+ r = q(b(this, D));
+ return (
+ (n.parent = !0),
+ (r.ok = !g(e) || e),
+ (r.fail = g(t) && t),
+ (r.domain = l ? $.domain : void 0),
+ 0 == n.state
+ ? n.reactions.add(r)
+ : E(function () {
+ J(r, n);
+ }),
+ r.promise
+ );
+ })),
+ (o = function () {
+ var e = new r(),
+ t = T(e);
+ (this.promise = e),
+ (this.resolve = X(ee, t)),
+ (this.reject = X(Q, t));
+ }),
+ (A.f = q =
+ function (e) {
+ return e === D || undefined === e ? new o(e) : U(e);
+ }),
+ !a && g(O) && M !== Object.prototype)
+ ) {
+ (s = M.then),
+ I ||
+ p(
+ M,
+ "then",
+ function (e, t) {
+ var n = this;
+ return new D(function (e, t) {
+ u(s, n, e, t);
+ }).then(e, t);
+ },
+ { unsafe: !0 }
+ );
+ try {
+ delete M.constructor;
+ } catch (e) {}
+ h && h(M, F);
+ }
+ i(
+ { global: !0, constructor: !0, wrap: !0, forced: P },
+ { Promise: D }
+ ),
+ f(D, C, !1, !0),
+ d(C);
+ },
+ 44349: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(82529),
+ s = n(6991),
+ i = n(95981),
+ a = n(626),
+ l = n(57475),
+ c = n(70487),
+ u = n(56584),
+ p = n(95929),
+ h = s && s.prototype;
+ if (
+ (r(
+ {
+ target: "Promise",
+ proto: !0,
+ real: !0,
+ forced:
+ !!s &&
+ i(function () {
+ h.finally.call({ then: function () {} }, function () {});
+ }),
+ },
+ {
+ finally: function (e) {
+ var t = c(this, a("Promise")),
+ n = l(e);
+ return this.then(
+ n
+ ? function (n) {
+ return u(t, e()).then(function () {
+ return n;
+ });
+ }
+ : e,
+ n
+ ? function (n) {
+ return u(t, e()).then(function () {
+ throw n;
+ });
+ }
+ : e
+ );
+ },
+ }
+ ),
+ !o && l(s))
+ ) {
+ var f = a("Promise").prototype.finally;
+ h.finally !== f && p(h, "finally", f, { unsafe: !0 });
+ }
+ },
+ 98881: (e, t, n) => {
+ n(26934), n(16890), n(83376), n(55921), n(64069), n(14482);
+ },
+ 55921: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: "Promise", stat: !0, forced: n(31542) },
+ {
+ race: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.reject,
+ c = a(function () {
+ var i = s(t.resolve);
+ l(e, function (e) {
+ o(i, t, e).then(n.resolve, r);
+ });
+ });
+ return c.error && r(c.value), n.promise;
+ },
+ }
+ );
+ },
+ 64069: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(78834),
+ s = n(69520);
+ r(
+ { target: "Promise", stat: !0, forced: n(67742).CONSTRUCTOR },
+ {
+ reject: function (e) {
+ var t = s.f(this);
+ return o(t.reject, void 0, e), t.promise;
+ },
+ }
+ );
+ },
+ 14482: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(626),
+ s = n(82529),
+ i = n(6991),
+ a = n(67742).CONSTRUCTOR,
+ l = n(56584),
+ c = o("Promise"),
+ u = s && !a;
+ r(
+ { target: "Promise", stat: !0, forced: s || a },
+ {
+ resolve: function (e) {
+ return l(u && this === c ? i : this, e);
+ },
+ }
+ );
+ },
+ 1502: () => {},
+ 82266: (e, t, n) => {
+ "use strict";
+ n(24683)(
+ "Set",
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(85616)
+ );
+ },
+ 69008: (e, t, n) => {
+ n(82266);
+ },
+ 11035: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(95329),
+ s = n(70344),
+ i = n(48219),
+ a = n(85803),
+ l = n(67772),
+ c = o("".indexOf);
+ r(
+ { target: "String", proto: !0, forced: !l("includes") },
+ {
+ includes: function (e) {
+ return !!~c(
+ a(i(this)),
+ a(s(e)),
+ arguments.length > 1 ? arguments[1] : void 0
+ );
+ },
+ }
+ );
+ },
+ 77971: (e, t, n) => {
+ "use strict";
+ var r = n(64620).charAt,
+ o = n(85803),
+ s = n(45402),
+ i = n(75105),
+ a = n(23538),
+ l = "String Iterator",
+ c = s.set,
+ u = s.getterFor(l);
+ i(
+ String,
+ "String",
+ function (e) {
+ c(this, { type: l, string: o(e), index: 0 });
+ },
+ function () {
+ var e,
+ t = u(this),
+ n = t.string,
+ o = t.index;
+ return o >= n.length
+ ? a(void 0, !0)
+ : ((e = r(n, o)), (t.index += e.length), a(e, !1));
+ }
+ );
+ },
+ 74679: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = n(74529),
+ i = n(89678),
+ a = n(85803),
+ l = n(10623),
+ c = o([].push),
+ u = o([].join);
+ r(
+ { target: "String", stat: !0 },
+ {
+ raw: function (e) {
+ var t = s(i(e).raw),
+ n = l(t);
+ if (!n) return "";
+ for (var r = arguments.length, o = [], p = 0; ; ) {
+ if ((c(o, a(t[p++])), p === n)) return u(o, "");
+ p < r && c(o, a(arguments[p]));
+ }
+ },
+ }
+ );
+ },
+ 60986: (e, t, n) => {
+ n(76887)({ target: "String", proto: !0 }, { repeat: n(16178) });
+ },
+ 94761: (e, t, n) => {
+ "use strict";
+ var r,
+ o = n(76887),
+ s = n(97484),
+ i = n(49677).f,
+ a = n(43057),
+ l = n(85803),
+ c = n(70344),
+ u = n(48219),
+ p = n(67772),
+ h = n(82529),
+ f = s("".startsWith),
+ d = s("".slice),
+ m = Math.min,
+ g = p("startsWith");
+ o(
+ {
+ target: "String",
+ proto: !0,
+ forced:
+ !!(
+ h ||
+ g ||
+ ((r = i(String.prototype, "startsWith")), !r || r.writable)
+ ) && !g,
+ },
+ {
+ startsWith: function (e) {
+ var t = l(u(this));
+ c(e);
+ var n = a(
+ m(arguments.length > 1 ? arguments[1] : void 0, t.length)
+ ),
+ r = l(e);
+ return f ? f(t, r, n) : d(t, n, n + r.length) === r;
+ },
+ }
+ );
+ },
+ 57398: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(74853).trim;
+ r(
+ { target: "String", proto: !0, forced: n(93093)("trim") },
+ {
+ trim: function () {
+ return o(this);
+ },
+ }
+ );
+ },
+ 8555: (e, t, n) => {
+ n(73464)("asyncIterator");
+ },
+ 48616: (e, t, n) => {
+ "use strict";
+ var r = n(76887),
+ o = n(21899),
+ s = n(78834),
+ i = n(95329),
+ a = n(82529),
+ l = n(55746),
+ c = n(63405),
+ u = n(95981),
+ p = n(90953),
+ h = n(7046),
+ f = n(96059),
+ d = n(74529),
+ m = n(83894),
+ g = n(85803),
+ y = n(31887),
+ v = n(29290),
+ b = n(14771),
+ w = n(10946),
+ E = n(684),
+ x = n(87857),
+ S = n(49677),
+ _ = n(65988),
+ j = n(59938),
+ O = n(36760),
+ k = n(95929),
+ A = n(29202),
+ C = n(68726),
+ P = n(44262),
+ N = n(27748),
+ I = n(99418),
+ T = n(99813),
+ R = n(11477),
+ M = n(73464),
+ D = n(29630),
+ F = n(90904),
+ L = n(45402),
+ B = n(3610).forEach,
+ $ = P("hidden"),
+ q = "Symbol",
+ U = "prototype",
+ z = L.set,
+ V = L.getterFor(q),
+ W = Object[U],
+ J = o.Symbol,
+ K = J && J[U],
+ H = o.TypeError,
+ G = o.QObject,
+ Z = S.f,
+ Y = _.f,
+ X = E.f,
+ Q = O.f,
+ ee = i([].push),
+ te = C("symbols"),
+ ne = C("op-symbols"),
+ re = C("wks"),
+ oe = !G || !G[U] || !G[U].findChild,
+ se =
+ l &&
+ u(function () {
+ return (
+ 7 !=
+ v(
+ Y({}, "a", {
+ get: function () {
+ return Y(this, "a", { value: 7 }).a;
+ },
+ })
+ ).a
+ );
+ })
+ ? function (e, t, n) {
+ var r = Z(W, t);
+ r && delete W[t], Y(e, t, n), r && e !== W && Y(W, t, r);
+ }
+ : Y,
+ ie = function (e, t) {
+ var n = (te[e] = v(K));
+ return (
+ z(n, { type: q, tag: e, description: t }),
+ l || (n.description = t),
+ n
+ );
+ },
+ ae = function (e, t, n) {
+ e === W && ae(ne, t, n), f(e);
+ var r = m(t);
+ return (
+ f(n),
+ p(te, r)
+ ? (n.enumerable
+ ? (p(e, $) && e[$][r] && (e[$][r] = !1),
+ (n = v(n, { enumerable: y(0, !1) })))
+ : (p(e, $) || Y(e, $, y(1, {})), (e[$][r] = !0)),
+ se(e, r, n))
+ : Y(e, r, n)
+ );
+ },
+ le = function (e, t) {
+ f(e);
+ var n = d(t),
+ r = b(n).concat(he(n));
+ return (
+ B(r, function (t) {
+ (l && !s(ce, n, t)) || ae(e, t, n[t]);
+ }),
+ e
+ );
+ },
+ ce = function (e) {
+ var t = m(e),
+ n = s(Q, this, t);
+ return (
+ !(this === W && p(te, t) && !p(ne, t)) &&
+ (!(
+ n ||
+ !p(this, t) ||
+ !p(te, t) ||
+ (p(this, $) && this[$][t])
+ ) ||
+ n)
+ );
+ },
+ ue = function (e, t) {
+ var n = d(e),
+ r = m(t);
+ if (n !== W || !p(te, r) || p(ne, r)) {
+ var o = Z(n, r);
+ return (
+ !o ||
+ !p(te, r) ||
+ (p(n, $) && n[$][r]) ||
+ (o.enumerable = !0),
+ o
+ );
+ }
+ },
+ pe = function (e) {
+ var t = X(d(e)),
+ n = [];
+ return (
+ B(t, function (e) {
+ p(te, e) || p(N, e) || ee(n, e);
+ }),
+ n
+ );
+ },
+ he = function (e) {
+ var t = e === W,
+ n = X(t ? ne : d(e)),
+ r = [];
+ return (
+ B(n, function (e) {
+ !p(te, e) || (t && !p(W, e)) || ee(r, te[e]);
+ }),
+ r
+ );
+ };
+ c ||
+ (k(
+ (K = (J = function () {
+ if (h(K, this)) throw H("Symbol is not a constructor");
+ var e =
+ arguments.length && void 0 !== arguments[0]
+ ? g(arguments[0])
+ : void 0,
+ t = I(e),
+ n = function (e) {
+ this === W && s(n, ne, e),
+ p(this, $) && p(this[$], t) && (this[$][t] = !1),
+ se(this, t, y(1, e));
+ };
+ return (
+ l && oe && se(W, t, { configurable: !0, set: n }), ie(t, e)
+ );
+ })[U]),
+ "toString",
+ function () {
+ return V(this).tag;
+ }
+ ),
+ k(J, "withoutSetter", function (e) {
+ return ie(I(e), e);
+ }),
+ (O.f = ce),
+ (_.f = ae),
+ (j.f = le),
+ (S.f = ue),
+ (w.f = E.f = pe),
+ (x.f = he),
+ (R.f = function (e) {
+ return ie(T(e), e);
+ }),
+ l &&
+ (A(K, "description", {
+ configurable: !0,
+ get: function () {
+ return V(this).description;
+ },
+ }),
+ a || k(W, "propertyIsEnumerable", ce, { unsafe: !0 }))),
+ r(
+ { global: !0, constructor: !0, wrap: !0, forced: !c, sham: !c },
+ { Symbol: J }
+ ),
+ B(b(re), function (e) {
+ M(e);
+ }),
+ r(
+ { target: q, stat: !0, forced: !c },
+ {
+ useSetter: function () {
+ oe = !0;
+ },
+ useSimple: function () {
+ oe = !1;
+ },
+ }
+ ),
+ r(
+ { target: "Object", stat: !0, forced: !c, sham: !l },
+ {
+ create: function (e, t) {
+ return void 0 === t ? v(e) : le(v(e), t);
+ },
+ defineProperty: ae,
+ defineProperties: le,
+ getOwnPropertyDescriptor: ue,
+ }
+ ),
+ r(
+ { target: "Object", stat: !0, forced: !c },
+ { getOwnPropertyNames: pe }
+ ),
+ D(),
+ F(J, q),
+ (N[$] = !0);
+ },
+ 52615: () => {},
+ 64523: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(90953),
+ i = n(85803),
+ a = n(68726),
+ l = n(34680),
+ c = a("string-to-symbol-registry"),
+ u = a("symbol-to-string-registry");
+ r(
+ { target: "Symbol", stat: !0, forced: !l },
+ {
+ for: function (e) {
+ var t = i(e);
+ if (s(c, t)) return c[t];
+ var n = o("Symbol")(t);
+ return (c[t] = n), (u[n] = t), n;
+ },
+ }
+ );
+ },
+ 21732: (e, t, n) => {
+ n(73464)("hasInstance");
+ },
+ 35903: (e, t, n) => {
+ n(73464)("isConcatSpreadable");
+ },
+ 1825: (e, t, n) => {
+ n(73464)("iterator");
+ },
+ 35824: (e, t, n) => {
+ n(48616), n(64523), n(38608), n(32619), n(37144);
+ },
+ 38608: (e, t, n) => {
+ var r = n(76887),
+ o = n(90953),
+ s = n(56664),
+ i = n(69826),
+ a = n(68726),
+ l = n(34680),
+ c = a("symbol-to-string-registry");
+ r(
+ { target: "Symbol", stat: !0, forced: !l },
+ {
+ keyFor: function (e) {
+ if (!s(e)) throw TypeError(i(e) + " is not a symbol");
+ if (o(c, e)) return c[e];
+ },
+ }
+ );
+ },
+ 45915: (e, t, n) => {
+ n(73464)("matchAll");
+ },
+ 28394: (e, t, n) => {
+ n(73464)("match");
+ },
+ 61766: (e, t, n) => {
+ n(73464)("replace");
+ },
+ 62737: (e, t, n) => {
+ n(73464)("search");
+ },
+ 89911: (e, t, n) => {
+ n(73464)("species");
+ },
+ 74315: (e, t, n) => {
+ n(73464)("split");
+ },
+ 63131: (e, t, n) => {
+ var r = n(73464),
+ o = n(29630);
+ r("toPrimitive"), o();
+ },
+ 64714: (e, t, n) => {
+ var r = n(626),
+ o = n(73464),
+ s = n(90904);
+ o("toStringTag"), s(r("Symbol"), "Symbol");
+ },
+ 70659: (e, t, n) => {
+ n(73464)("unscopables");
+ },
+ 94776: (e, t, n) => {
+ "use strict";
+ var r,
+ o = n(45602),
+ s = n(21899),
+ i = n(95329),
+ a = n(94380),
+ l = n(21647),
+ c = n(24683),
+ u = n(8850),
+ p = n(10941),
+ h = n(45402).enforce,
+ f = n(95981),
+ d = n(47093),
+ m = Object,
+ g = Array.isArray,
+ y = m.isExtensible,
+ v = m.isFrozen,
+ b = m.isSealed,
+ w = m.freeze,
+ E = m.seal,
+ x = {},
+ S = {},
+ _ = !s.ActiveXObject && "ActiveXObject" in s,
+ j = function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ O = c("WeakMap", j, u),
+ k = O.prototype,
+ A = i(k.set);
+ if (d)
+ if (_) {
+ (r = u.getConstructor(j, "WeakMap", !0)), l.enable();
+ var C = i(k.delete),
+ P = i(k.has),
+ N = i(k.get);
+ a(k, {
+ delete: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return (
+ t.frozen || (t.frozen = new r()),
+ C(this, e) || t.frozen.delete(e)
+ );
+ }
+ return C(this, e);
+ },
+ has: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return (
+ t.frozen || (t.frozen = new r()),
+ P(this, e) || t.frozen.has(e)
+ );
+ }
+ return P(this, e);
+ },
+ get: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return (
+ t.frozen || (t.frozen = new r()),
+ P(this, e) ? N(this, e) : t.frozen.get(e)
+ );
+ }
+ return N(this, e);
+ },
+ set: function (e, t) {
+ if (p(e) && !y(e)) {
+ var n = h(this);
+ n.frozen || (n.frozen = new r()),
+ P(this, e) ? A(this, e, t) : n.frozen.set(e, t);
+ } else A(this, e, t);
+ return this;
+ },
+ });
+ } else
+ o &&
+ f(function () {
+ var e = w([]);
+ return A(new O(), e, 1), !v(e);
+ }) &&
+ a(k, {
+ set: function (e, t) {
+ var n;
+ return (
+ g(e) && (v(e) ? (n = x) : b(e) && (n = S)),
+ A(this, e, t),
+ n == x && w(e),
+ n == S && E(e),
+ this
+ );
+ },
+ });
+ },
+ 54334: (e, t, n) => {
+ n(94776);
+ },
+ 31115: (e, t, n) => {
+ "use strict";
+ n(24683)(
+ "WeakSet",
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(8850)
+ );
+ },
+ 1773: (e, t, n) => {
+ n(31115);
+ },
+ 97522: (e, t, n) => {
+ var r = n(99813),
+ o = n(65988).f,
+ s = r("metadata"),
+ i = Function.prototype;
+ void 0 === i[s] && o(i, s, { value: null });
+ },
+ 28783: (e, t, n) => {
+ n(73464)("asyncDispose");
+ },
+ 43975: (e, t, n) => {
+ n(73464)("dispose");
+ },
+ 97618: (e, t, n) => {
+ n(76887)(
+ { target: "Symbol", stat: !0 },
+ { isRegisteredSymbol: n(32087) }
+ );
+ },
+ 22731: (e, t, n) => {
+ n(76887)(
+ { target: "Symbol", stat: !0, name: "isRegisteredSymbol" },
+ { isRegistered: n(32087) }
+ );
+ },
+ 6989: (e, t, n) => {
+ n(76887)(
+ { target: "Symbol", stat: !0, forced: !0 },
+ { isWellKnownSymbol: n(96559) }
+ );
+ },
+ 85605: (e, t, n) => {
+ n(76887)(
+ {
+ target: "Symbol",
+ stat: !0,
+ name: "isWellKnownSymbol",
+ forced: !0,
+ },
+ { isWellKnown: n(96559) }
+ );
+ },
+ 65799: (e, t, n) => {
+ n(73464)("matcher");
+ },
+ 31943: (e, t, n) => {
+ n(73464)("metadataKey");
+ },
+ 45414: (e, t, n) => {
+ n(73464)("metadata");
+ },
+ 46774: (e, t, n) => {
+ n(73464)("observable");
+ },
+ 80620: (e, t, n) => {
+ n(73464)("patternMatch");
+ },
+ 36172: (e, t, n) => {
+ n(73464)("replaceAll");
+ },
+ 7634: (e, t, n) => {
+ n(66274);
+ var r = n(63281),
+ o = n(21899),
+ s = n(9697),
+ i = n(32029),
+ a = n(12077),
+ l = n(99813)("toStringTag");
+ for (var c in r) {
+ var u = o[c],
+ p = u && u.prototype;
+ p && s(p) !== l && i(p, l, c), (a[c] = a.Array);
+ }
+ },
+ 79229: (e, t, n) => {
+ var r = n(76887),
+ o = n(21899),
+ s = n(37620)(o.setInterval, !0);
+ r(
+ { global: !0, bind: !0, forced: o.setInterval !== s },
+ { setInterval: s }
+ );
+ },
+ 17749: (e, t, n) => {
+ var r = n(76887),
+ o = n(21899),
+ s = n(37620)(o.setTimeout, !0);
+ r(
+ { global: !0, bind: !0, forced: o.setTimeout !== s },
+ { setTimeout: s }
+ );
+ },
+ 71249: (e, t, n) => {
+ n(79229), n(17749);
+ },
+ 62524: (e, t, n) => {
+ "use strict";
+ n(66274);
+ var r = n(76887),
+ o = n(21899),
+ s = n(78834),
+ i = n(95329),
+ a = n(55746),
+ l = n(14766),
+ c = n(95929),
+ u = n(29202),
+ p = n(94380),
+ h = n(90904),
+ f = n(53847),
+ d = n(45402),
+ m = n(5743),
+ g = n(57475),
+ y = n(90953),
+ v = n(86843),
+ b = n(9697),
+ w = n(96059),
+ E = n(10941),
+ x = n(85803),
+ S = n(29290),
+ _ = n(31887),
+ j = n(53476),
+ O = n(22902),
+ k = n(18348),
+ A = n(99813),
+ C = n(61388),
+ P = A("iterator"),
+ N = "URLSearchParams",
+ I = N + "Iterator",
+ T = d.set,
+ R = d.getterFor(N),
+ M = d.getterFor(I),
+ D = Object.getOwnPropertyDescriptor,
+ F = function (e) {
+ if (!a) return o[e];
+ var t = D(o, e);
+ return t && t.value;
+ },
+ L = F("fetch"),
+ B = F("Request"),
+ $ = F("Headers"),
+ q = B && B.prototype,
+ U = $ && $.prototype,
+ z = o.RegExp,
+ V = o.TypeError,
+ W = o.decodeURIComponent,
+ J = o.encodeURIComponent,
+ K = i("".charAt),
+ H = i([].join),
+ G = i([].push),
+ Z = i("".replace),
+ Y = i([].shift),
+ X = i([].splice),
+ Q = i("".split),
+ ee = i("".slice),
+ te = /\+/g,
+ ne = Array(4),
+ re = function (e) {
+ return (
+ ne[e - 1] ||
+ (ne[e - 1] = z("((?:%[\\da-f]{2}){" + e + "})", "gi"))
+ );
+ },
+ oe = function (e) {
+ try {
+ return W(e);
+ } catch (t) {
+ return e;
+ }
+ },
+ se = function (e) {
+ var t = Z(e, te, " "),
+ n = 4;
+ try {
+ return W(t);
+ } catch (e) {
+ for (; n; ) t = Z(t, re(n--), oe);
+ return t;
+ }
+ },
+ ie = /[!'()~]|%20/g,
+ ae = {
+ "!": "%21",
+ "'": "%27",
+ "(": "%28",
+ ")": "%29",
+ "~": "%7E",
+ "%20": "+",
+ },
+ le = function (e) {
+ return ae[e];
+ },
+ ce = function (e) {
+ return Z(J(e), ie, le);
+ },
+ ue = f(
+ function (e, t) {
+ T(this, { type: I, iterator: j(R(e).entries), kind: t });
+ },
+ "Iterator",
+ function () {
+ var e = M(this),
+ t = e.kind,
+ n = e.iterator.next(),
+ r = n.value;
+ return (
+ n.done ||
+ (n.value =
+ "keys" === t
+ ? r.key
+ : "values" === t
+ ? r.value
+ : [r.key, r.value]),
+ n
+ );
+ },
+ !0
+ ),
+ pe = function (e) {
+ (this.entries = []),
+ (this.url = null),
+ void 0 !== e &&
+ (E(e)
+ ? this.parseObject(e)
+ : this.parseQuery(
+ "string" == typeof e
+ ? "?" === K(e, 0)
+ ? ee(e, 1)
+ : e
+ : x(e)
+ ));
+ };
+ pe.prototype = {
+ type: N,
+ bindURL: function (e) {
+ (this.url = e), this.update();
+ },
+ parseObject: function (e) {
+ var t,
+ n,
+ r,
+ o,
+ i,
+ a,
+ l,
+ c = O(e);
+ if (c)
+ for (n = (t = j(e, c)).next; !(r = s(n, t)).done; ) {
+ if (
+ ((i = (o = j(w(r.value))).next),
+ (a = s(i, o)).done || (l = s(i, o)).done || !s(i, o).done)
+ )
+ throw V("Expected sequence with length 2");
+ G(this.entries, { key: x(a.value), value: x(l.value) });
+ }
+ else
+ for (var u in e)
+ y(e, u) && G(this.entries, { key: u, value: x(e[u]) });
+ },
+ parseQuery: function (e) {
+ if (e)
+ for (var t, n, r = Q(e, "&"), o = 0; o < r.length; )
+ (t = r[o++]).length &&
+ ((n = Q(t, "=")),
+ G(this.entries, { key: se(Y(n)), value: se(H(n, "=")) }));
+ },
+ serialize: function () {
+ for (var e, t = this.entries, n = [], r = 0; r < t.length; )
+ (e = t[r++]), G(n, ce(e.key) + "=" + ce(e.value));
+ return H(n, "&");
+ },
+ update: function () {
+ (this.entries.length = 0), this.parseQuery(this.url.query);
+ },
+ updateURL: function () {
+ this.url && this.url.update();
+ },
+ };
+ var he = function () {
+ m(this, fe);
+ var e = T(
+ this,
+ new pe(arguments.length > 0 ? arguments[0] : void 0)
+ );
+ a || (this.size = e.entries.length);
+ },
+ fe = he.prototype;
+ if (
+ (p(
+ fe,
+ {
+ append: function (e, t) {
+ var n = R(this);
+ k(arguments.length, 2),
+ G(n.entries, { key: x(e), value: x(t) }),
+ a || this.length++,
+ n.updateURL();
+ },
+ delete: function (e) {
+ for (
+ var t = R(this),
+ n = k(arguments.length, 1),
+ r = t.entries,
+ o = x(e),
+ s = n < 2 ? void 0 : arguments[1],
+ i = void 0 === s ? s : x(s),
+ l = 0;
+ l < r.length;
+
+ ) {
+ var c = r[l];
+ if (c.key !== o || (void 0 !== i && c.value !== i)) l++;
+ else if ((X(r, l, 1), void 0 !== i)) break;
+ }
+ a || (this.size = r.length), t.updateURL();
+ },
+ get: function (e) {
+ var t = R(this).entries;
+ k(arguments.length, 1);
+ for (var n = x(e), r = 0; r < t.length; r++)
+ if (t[r].key === n) return t[r].value;
+ return null;
+ },
+ getAll: function (e) {
+ var t = R(this).entries;
+ k(arguments.length, 1);
+ for (var n = x(e), r = [], o = 0; o < t.length; o++)
+ t[o].key === n && G(r, t[o].value);
+ return r;
+ },
+ has: function (e) {
+ for (
+ var t = R(this).entries,
+ n = k(arguments.length, 1),
+ r = x(e),
+ o = n < 2 ? void 0 : arguments[1],
+ s = void 0 === o ? o : x(o),
+ i = 0;
+ i < t.length;
+
+ ) {
+ var a = t[i++];
+ if (a.key === r && (void 0 === s || a.value === s))
+ return !0;
+ }
+ return !1;
+ },
+ set: function (e, t) {
+ var n = R(this);
+ k(arguments.length, 1);
+ for (
+ var r, o = n.entries, s = !1, i = x(e), l = x(t), c = 0;
+ c < o.length;
+ c++
+ )
+ (r = o[c]).key === i &&
+ (s ? X(o, c--, 1) : ((s = !0), (r.value = l)));
+ s || G(o, { key: i, value: l }),
+ a || (this.size = o.length),
+ n.updateURL();
+ },
+ sort: function () {
+ var e = R(this);
+ C(e.entries, function (e, t) {
+ return e.key > t.key ? 1 : -1;
+ }),
+ e.updateURL();
+ },
+ forEach: function (e) {
+ for (
+ var t,
+ n = R(this).entries,
+ r = v(e, arguments.length > 1 ? arguments[1] : void 0),
+ o = 0;
+ o < n.length;
+
+ )
+ r((t = n[o++]).value, t.key, this);
+ },
+ keys: function () {
+ return new ue(this, "keys");
+ },
+ values: function () {
+ return new ue(this, "values");
+ },
+ entries: function () {
+ return new ue(this, "entries");
+ },
+ },
+ { enumerable: !0 }
+ ),
+ c(fe, P, fe.entries, { name: "entries" }),
+ c(
+ fe,
+ "toString",
+ function () {
+ return R(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ a &&
+ u(fe, "size", {
+ get: function () {
+ return R(this).entries.length;
+ },
+ configurable: !0,
+ enumerable: !0,
+ }),
+ h(he, N),
+ r(
+ { global: !0, constructor: !0, forced: !l },
+ { URLSearchParams: he }
+ ),
+ !l && g($))
+ ) {
+ var de = i(U.has),
+ me = i(U.set),
+ ge = function (e) {
+ if (E(e)) {
+ var t,
+ n = e.body;
+ if (b(n) === N)
+ return (
+ (t = e.headers ? new $(e.headers) : new $()),
+ de(t, "content-type") ||
+ me(
+ t,
+ "content-type",
+ "application/x-www-form-urlencoded;charset=UTF-8"
+ ),
+ S(e, { body: _(0, x(n)), headers: _(0, t) })
+ );
+ }
+ return e;
+ };
+ if (
+ (g(L) &&
+ r(
+ {
+ global: !0,
+ enumerable: !0,
+ dontCallGetSet: !0,
+ forced: !0,
+ },
+ {
+ fetch: function (e) {
+ return L(e, arguments.length > 1 ? ge(arguments[1]) : {});
+ },
+ }
+ ),
+ g(B))
+ ) {
+ var ye = function (e) {
+ return (
+ m(this, q),
+ new B(e, arguments.length > 1 ? ge(arguments[1]) : {})
+ );
+ };
+ (q.constructor = ye),
+ (ye.prototype = q),
+ r(
+ {
+ global: !0,
+ constructor: !0,
+ dontCallGetSet: !0,
+ forced: !0,
+ },
+ { Request: ye }
+ );
+ }
+ }
+ e.exports = { URLSearchParams: he, getState: R };
+ },
+ 16454: () => {},
+ 73305: () => {},
+ 95304: (e, t, n) => {
+ n(62524);
+ },
+ 62337: () => {},
+ 84630: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(95981),
+ i = n(18348),
+ a = n(85803),
+ l = n(14766),
+ c = o("URL");
+ r(
+ {
+ target: "URL",
+ stat: !0,
+ forced: !(
+ l &&
+ s(function () {
+ c.canParse();
+ })
+ ),
+ },
+ {
+ canParse: function (e) {
+ var t = i(arguments.length, 1),
+ n = a(e),
+ r =
+ t < 2 || void 0 === arguments[1] ? void 0 : a(arguments[1]);
+ try {
+ return !!new c(n, r);
+ } catch (e) {
+ return !1;
+ }
+ },
+ }
+ );
+ },
+ 47250: (e, t, n) => {
+ "use strict";
+ n(77971);
+ var r,
+ o = n(76887),
+ s = n(55746),
+ i = n(14766),
+ a = n(21899),
+ l = n(86843),
+ c = n(95329),
+ u = n(95929),
+ p = n(29202),
+ h = n(5743),
+ f = n(90953),
+ d = n(24420),
+ m = n(11354),
+ g = n(15790),
+ y = n(64620).codeAt,
+ v = n(73291),
+ b = n(85803),
+ w = n(90904),
+ E = n(18348),
+ x = n(62524),
+ S = n(45402),
+ _ = S.set,
+ j = S.getterFor("URL"),
+ O = x.URLSearchParams,
+ k = x.getState,
+ A = a.URL,
+ C = a.TypeError,
+ P = a.parseInt,
+ N = Math.floor,
+ I = Math.pow,
+ T = c("".charAt),
+ R = c(/./.exec),
+ M = c([].join),
+ D = c((1).toString),
+ F = c([].pop),
+ L = c([].push),
+ B = c("".replace),
+ $ = c([].shift),
+ q = c("".split),
+ U = c("".slice),
+ z = c("".toLowerCase),
+ V = c([].unshift),
+ W = "Invalid scheme",
+ J = "Invalid host",
+ K = "Invalid port",
+ H = /[a-z]/i,
+ G = /[\d+-.a-z]/i,
+ Z = /\d/,
+ Y = /^0x/i,
+ X = /^[0-7]+$/,
+ Q = /^\d+$/,
+ ee = /^[\da-f]+$/i,
+ te = /[\0\t\n\r #%/:<>?@[\\\]^|]/,
+ ne = /[\0\t\n\r #/:<>?@[\\\]^|]/,
+ re = /^[\u0000-\u0020]+/,
+ oe = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,
+ se = /[\t\n\r]/g,
+ ie = function (e) {
+ var t, n, r, o;
+ if ("number" == typeof e) {
+ for (t = [], n = 0; n < 4; n++) V(t, e % 256), (e = N(e / 256));
+ return M(t, ".");
+ }
+ if ("object" == typeof e) {
+ for (
+ t = "",
+ r = (function (e) {
+ for (
+ var t = null, n = 1, r = null, o = 0, s = 0;
+ s < 8;
+ s++
+ )
+ 0 !== e[s]
+ ? (o > n && ((t = r), (n = o)), (r = null), (o = 0))
+ : (null === r && (r = s), ++o);
+ return o > n && ((t = r), (n = o)), t;
+ })(e),
+ n = 0;
+ n < 8;
+ n++
+ )
+ (o && 0 === e[n]) ||
+ (o && (o = !1),
+ r === n
+ ? ((t += n ? ":" : "::"), (o = !0))
+ : ((t += D(e[n], 16)), n < 7 && (t += ":")));
+ return "[" + t + "]";
+ }
+ return e;
+ },
+ ae = {},
+ le = d({}, ae, { " ": 1, '"': 1, "<": 1, ">": 1, "`": 1 }),
+ ce = d({}, le, { "#": 1, "?": 1, "{": 1, "}": 1 }),
+ ue = d({}, ce, {
+ "/": 1,
+ ":": 1,
+ ";": 1,
+ "=": 1,
+ "@": 1,
+ "[": 1,
+ "\\": 1,
+ "]": 1,
+ "^": 1,
+ "|": 1,
+ }),
+ pe = function (e, t) {
+ var n = y(e, 0);
+ return n > 32 && n < 127 && !f(t, e) ? e : encodeURIComponent(e);
+ },
+ he = {
+ ftp: 21,
+ file: null,
+ http: 80,
+ https: 443,
+ ws: 80,
+ wss: 443,
+ },
+ fe = function (e, t) {
+ var n;
+ return (
+ 2 == e.length &&
+ R(H, T(e, 0)) &&
+ (":" == (n = T(e, 1)) || (!t && "|" == n))
+ );
+ },
+ de = function (e) {
+ var t;
+ return (
+ e.length > 1 &&
+ fe(U(e, 0, 2)) &&
+ (2 == e.length ||
+ "/" === (t = T(e, 2)) ||
+ "\\" === t ||
+ "?" === t ||
+ "#" === t)
+ );
+ },
+ me = function (e) {
+ return "." === e || "%2e" === z(e);
+ },
+ ge = {},
+ ye = {},
+ ve = {},
+ be = {},
+ we = {},
+ Ee = {},
+ xe = {},
+ Se = {},
+ _e = {},
+ je = {},
+ Oe = {},
+ ke = {},
+ Ae = {},
+ Ce = {},
+ Pe = {},
+ Ne = {},
+ Ie = {},
+ Te = {},
+ Re = {},
+ Me = {},
+ De = {},
+ Fe = function (e, t, n) {
+ var r,
+ o,
+ s,
+ i = b(e);
+ if (t) {
+ if ((o = this.parse(i))) throw C(o);
+ this.searchParams = null;
+ } else {
+ if (
+ (void 0 !== n && (r = new Fe(n, !0)),
+ (o = this.parse(i, null, r)))
+ )
+ throw C(o);
+ (s = k(new O())).bindURL(this), (this.searchParams = s);
+ }
+ };
+ Fe.prototype = {
+ type: "URL",
+ parse: function (e, t, n) {
+ var o,
+ s,
+ i,
+ a,
+ l,
+ c = this,
+ u = t || ge,
+ p = 0,
+ h = "",
+ d = !1,
+ y = !1,
+ v = !1;
+ for (
+ e = b(e),
+ t ||
+ ((c.scheme = ""),
+ (c.username = ""),
+ (c.password = ""),
+ (c.host = null),
+ (c.port = null),
+ (c.path = []),
+ (c.query = null),
+ (c.fragment = null),
+ (c.cannotBeABaseURL = !1),
+ (e = B(e, re, "")),
+ (e = B(e, oe, "$1"))),
+ e = B(e, se, ""),
+ o = m(e);
+ p <= o.length;
+
+ ) {
+ switch (((s = o[p]), u)) {
+ case ge:
+ if (!s || !R(H, s)) {
+ if (t) return W;
+ u = ve;
+ continue;
+ }
+ (h += z(s)), (u = ye);
+ break;
+ case ye:
+ if (s && (R(G, s) || "+" == s || "-" == s || "." == s))
+ h += z(s);
+ else {
+ if (":" != s) {
+ if (t) return W;
+ (h = ""), (u = ve), (p = 0);
+ continue;
+ }
+ if (
+ t &&
+ (c.isSpecial() != f(he, h) ||
+ ("file" == h &&
+ (c.includesCredentials() || null !== c.port)) ||
+ ("file" == c.scheme && !c.host))
+ )
+ return;
+ if (((c.scheme = h), t))
+ return void (
+ c.isSpecial() &&
+ he[c.scheme] == c.port &&
+ (c.port = null)
+ );
+ (h = ""),
+ "file" == c.scheme
+ ? (u = Ce)
+ : c.isSpecial() && n && n.scheme == c.scheme
+ ? (u = be)
+ : c.isSpecial()
+ ? (u = Se)
+ : "/" == o[p + 1]
+ ? ((u = we), p++)
+ : ((c.cannotBeABaseURL = !0),
+ L(c.path, ""),
+ (u = Re));
+ }
+ break;
+ case ve:
+ if (!n || (n.cannotBeABaseURL && "#" != s)) return W;
+ if (n.cannotBeABaseURL && "#" == s) {
+ (c.scheme = n.scheme),
+ (c.path = g(n.path)),
+ (c.query = n.query),
+ (c.fragment = ""),
+ (c.cannotBeABaseURL = !0),
+ (u = De);
+ break;
+ }
+ u = "file" == n.scheme ? Ce : Ee;
+ continue;
+ case be:
+ if ("/" != s || "/" != o[p + 1]) {
+ u = Ee;
+ continue;
+ }
+ (u = _e), p++;
+ break;
+ case we:
+ if ("/" == s) {
+ u = je;
+ break;
+ }
+ u = Te;
+ continue;
+ case Ee:
+ if (((c.scheme = n.scheme), s == r))
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = n.query);
+ else if ("/" == s || ("\\" == s && c.isSpecial())) u = xe;
+ else if ("?" == s)
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = ""),
+ (u = Me);
+ else {
+ if ("#" != s) {
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ c.path.length--,
+ (u = Te);
+ continue;
+ }
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = n.query),
+ (c.fragment = ""),
+ (u = De);
+ }
+ break;
+ case xe:
+ if (!c.isSpecial() || ("/" != s && "\\" != s)) {
+ if ("/" != s) {
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (u = Te);
+ continue;
+ }
+ u = je;
+ } else u = _e;
+ break;
+ case Se:
+ if (((u = _e), "/" != s || "/" != T(h, p + 1))) continue;
+ p++;
+ break;
+ case _e:
+ if ("/" != s && "\\" != s) {
+ u = je;
+ continue;
+ }
+ break;
+ case je:
+ if ("@" == s) {
+ d && (h = "%40" + h), (d = !0), (i = m(h));
+ for (var w = 0; w < i.length; w++) {
+ var E = i[w];
+ if (":" != E || v) {
+ var x = pe(E, ue);
+ v ? (c.password += x) : (c.username += x);
+ } else v = !0;
+ }
+ h = "";
+ } else if (
+ s == r ||
+ "/" == s ||
+ "?" == s ||
+ "#" == s ||
+ ("\\" == s && c.isSpecial())
+ ) {
+ if (d && "" == h) return "Invalid authority";
+ (p -= m(h).length + 1), (h = ""), (u = Oe);
+ } else h += s;
+ break;
+ case Oe:
+ case ke:
+ if (t && "file" == c.scheme) {
+ u = Ne;
+ continue;
+ }
+ if (":" != s || y) {
+ if (
+ s == r ||
+ "/" == s ||
+ "?" == s ||
+ "#" == s ||
+ ("\\" == s && c.isSpecial())
+ ) {
+ if (c.isSpecial() && "" == h) return J;
+ if (
+ t &&
+ "" == h &&
+ (c.includesCredentials() || null !== c.port)
+ )
+ return;
+ if ((a = c.parseHost(h))) return a;
+ if (((h = ""), (u = Ie), t)) return;
+ continue;
+ }
+ "[" == s ? (y = !0) : "]" == s && (y = !1), (h += s);
+ } else {
+ if ("" == h) return J;
+ if ((a = c.parseHost(h))) return a;
+ if (((h = ""), (u = Ae), t == ke)) return;
+ }
+ break;
+ case Ae:
+ if (!R(Z, s)) {
+ if (
+ s == r ||
+ "/" == s ||
+ "?" == s ||
+ "#" == s ||
+ ("\\" == s && c.isSpecial()) ||
+ t
+ ) {
+ if ("" != h) {
+ var S = P(h, 10);
+ if (S > 65535) return K;
+ (c.port =
+ c.isSpecial() && S === he[c.scheme] ? null : S),
+ (h = "");
+ }
+ if (t) return;
+ u = Ie;
+ continue;
+ }
+ return K;
+ }
+ h += s;
+ break;
+ case Ce:
+ if (((c.scheme = "file"), "/" == s || "\\" == s)) u = Pe;
+ else {
+ if (!n || "file" != n.scheme) {
+ u = Te;
+ continue;
+ }
+ if (s == r)
+ (c.host = n.host),
+ (c.path = g(n.path)),
+ (c.query = n.query);
+ else if ("?" == s)
+ (c.host = n.host),
+ (c.path = g(n.path)),
+ (c.query = ""),
+ (u = Me);
+ else {
+ if ("#" != s) {
+ de(M(g(o, p), "")) ||
+ ((c.host = n.host),
+ (c.path = g(n.path)),
+ c.shortenPath()),
+ (u = Te);
+ continue;
+ }
+ (c.host = n.host),
+ (c.path = g(n.path)),
+ (c.query = n.query),
+ (c.fragment = ""),
+ (u = De);
+ }
+ }
+ break;
+ case Pe:
+ if ("/" == s || "\\" == s) {
+ u = Ne;
+ break;
+ }
+ n &&
+ "file" == n.scheme &&
+ !de(M(g(o, p), "")) &&
+ (fe(n.path[0], !0)
+ ? L(c.path, n.path[0])
+ : (c.host = n.host)),
+ (u = Te);
+ continue;
+ case Ne:
+ if (
+ s == r ||
+ "/" == s ||
+ "\\" == s ||
+ "?" == s ||
+ "#" == s
+ ) {
+ if (!t && fe(h)) u = Te;
+ else if ("" == h) {
+ if (((c.host = ""), t)) return;
+ u = Ie;
+ } else {
+ if ((a = c.parseHost(h))) return a;
+ if (("localhost" == c.host && (c.host = ""), t)) return;
+ (h = ""), (u = Ie);
+ }
+ continue;
+ }
+ h += s;
+ break;
+ case Ie:
+ if (c.isSpecial()) {
+ if (((u = Te), "/" != s && "\\" != s)) continue;
+ } else if (t || "?" != s)
+ if (t || "#" != s) {
+ if (s != r && ((u = Te), "/" != s)) continue;
+ } else (c.fragment = ""), (u = De);
+ else (c.query = ""), (u = Me);
+ break;
+ case Te:
+ if (
+ s == r ||
+ "/" == s ||
+ ("\\" == s && c.isSpecial()) ||
+ (!t && ("?" == s || "#" == s))
+ ) {
+ if (
+ (".." === (l = z((l = h))) ||
+ "%2e." === l ||
+ ".%2e" === l ||
+ "%2e%2e" === l
+ ? (c.shortenPath(),
+ "/" == s ||
+ ("\\" == s && c.isSpecial()) ||
+ L(c.path, ""))
+ : me(h)
+ ? "/" == s ||
+ ("\\" == s && c.isSpecial()) ||
+ L(c.path, "")
+ : ("file" == c.scheme &&
+ !c.path.length &&
+ fe(h) &&
+ (c.host && (c.host = ""), (h = T(h, 0) + ":")),
+ L(c.path, h)),
+ (h = ""),
+ "file" == c.scheme && (s == r || "?" == s || "#" == s))
+ )
+ for (; c.path.length > 1 && "" === c.path[0]; )
+ $(c.path);
+ "?" == s
+ ? ((c.query = ""), (u = Me))
+ : "#" == s && ((c.fragment = ""), (u = De));
+ } else h += pe(s, ce);
+ break;
+ case Re:
+ "?" == s
+ ? ((c.query = ""), (u = Me))
+ : "#" == s
+ ? ((c.fragment = ""), (u = De))
+ : s != r && (c.path[0] += pe(s, ae));
+ break;
+ case Me:
+ t || "#" != s
+ ? s != r &&
+ ("'" == s && c.isSpecial()
+ ? (c.query += "%27")
+ : (c.query += "#" == s ? "%23" : pe(s, ae)))
+ : ((c.fragment = ""), (u = De));
+ break;
+ case De:
+ s != r && (c.fragment += pe(s, le));
+ }
+ p++;
+ }
+ },
+ parseHost: function (e) {
+ var t, n, r;
+ if ("[" == T(e, 0)) {
+ if ("]" != T(e, e.length - 1)) return J;
+ if (
+ ((t = (function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l = [0, 0, 0, 0, 0, 0, 0, 0],
+ c = 0,
+ u = null,
+ p = 0,
+ h = function () {
+ return T(e, p);
+ };
+ if (":" == h()) {
+ if (":" != T(e, 1)) return;
+ (p += 2), (u = ++c);
+ }
+ for (; h(); ) {
+ if (8 == c) return;
+ if (":" != h()) {
+ for (t = n = 0; n < 4 && R(ee, h()); )
+ (t = 16 * t + P(h(), 16)), p++, n++;
+ if ("." == h()) {
+ if (0 == n) return;
+ if (((p -= n), c > 6)) return;
+ for (r = 0; h(); ) {
+ if (((o = null), r > 0)) {
+ if (!("." == h() && r < 4)) return;
+ p++;
+ }
+ if (!R(Z, h())) return;
+ for (; R(Z, h()); ) {
+ if (((s = P(h(), 10)), null === o)) o = s;
+ else {
+ if (0 == o) return;
+ o = 10 * o + s;
+ }
+ if (o > 255) return;
+ p++;
+ }
+ (l[c] = 256 * l[c] + o),
+ (2 != ++r && 4 != r) || c++;
+ }
+ if (4 != r) return;
+ break;
+ }
+ if (":" == h()) {
+ if ((p++, !h())) return;
+ } else if (h()) return;
+ l[c++] = t;
+ } else {
+ if (null !== u) return;
+ p++, (u = ++c);
+ }
+ }
+ if (null !== u)
+ for (i = c - u, c = 7; 0 != c && i > 0; )
+ (a = l[c]), (l[c--] = l[u + i - 1]), (l[u + --i] = a);
+ else if (8 != c) return;
+ return l;
+ })(U(e, 1, -1))),
+ !t)
+ )
+ return J;
+ this.host = t;
+ } else if (this.isSpecial()) {
+ if (((e = v(e)), R(te, e))) return J;
+ if (
+ ((t = (function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l = q(e, ".");
+ if (
+ (l.length && "" == l[l.length - 1] && l.length--,
+ (t = l.length) > 4)
+ )
+ return e;
+ for (n = [], r = 0; r < t; r++) {
+ if ("" == (o = l[r])) return e;
+ if (
+ ((s = 10),
+ o.length > 1 &&
+ "0" == T(o, 0) &&
+ ((s = R(Y, o) ? 16 : 8), (o = U(o, 8 == s ? 1 : 2))),
+ "" === o)
+ )
+ i = 0;
+ else {
+ if (!R(10 == s ? Q : 8 == s ? X : ee, o)) return e;
+ i = P(o, s);
+ }
+ L(n, i);
+ }
+ for (r = 0; r < t; r++)
+ if (((i = n[r]), r == t - 1)) {
+ if (i >= I(256, 5 - t)) return null;
+ } else if (i > 255) return null;
+ for (a = F(n), r = 0; r < n.length; r++)
+ a += n[r] * I(256, 3 - r);
+ return a;
+ })(e)),
+ null === t)
+ )
+ return J;
+ this.host = t;
+ } else {
+ if (R(ne, e)) return J;
+ for (t = "", n = m(e), r = 0; r < n.length; r++)
+ t += pe(n[r], ae);
+ this.host = t;
+ }
+ },
+ cannotHaveUsernamePasswordPort: function () {
+ return (
+ !this.host || this.cannotBeABaseURL || "file" == this.scheme
+ );
+ },
+ includesCredentials: function () {
+ return "" != this.username || "" != this.password;
+ },
+ isSpecial: function () {
+ return f(he, this.scheme);
+ },
+ shortenPath: function () {
+ var e = this.path,
+ t = e.length;
+ !t ||
+ ("file" == this.scheme && 1 == t && fe(e[0], !0)) ||
+ e.length--;
+ },
+ serialize: function () {
+ var e = this,
+ t = e.scheme,
+ n = e.username,
+ r = e.password,
+ o = e.host,
+ s = e.port,
+ i = e.path,
+ a = e.query,
+ l = e.fragment,
+ c = t + ":";
+ return (
+ null !== o
+ ? ((c += "//"),
+ e.includesCredentials() &&
+ (c += n + (r ? ":" + r : "") + "@"),
+ (c += ie(o)),
+ null !== s && (c += ":" + s))
+ : "file" == t && (c += "//"),
+ (c += e.cannotBeABaseURL
+ ? i[0]
+ : i.length
+ ? "/" + M(i, "/")
+ : ""),
+ null !== a && (c += "?" + a),
+ null !== l && (c += "#" + l),
+ c
+ );
+ },
+ setHref: function (e) {
+ var t = this.parse(e);
+ if (t) throw C(t);
+ this.searchParams.update();
+ },
+ getOrigin: function () {
+ var e = this.scheme,
+ t = this.port;
+ if ("blob" == e)
+ try {
+ return new Le(e.path[0]).origin;
+ } catch (e) {
+ return "null";
+ }
+ return "file" != e && this.isSpecial()
+ ? e + "://" + ie(this.host) + (null !== t ? ":" + t : "")
+ : "null";
+ },
+ getProtocol: function () {
+ return this.scheme + ":";
+ },
+ setProtocol: function (e) {
+ this.parse(b(e) + ":", ge);
+ },
+ getUsername: function () {
+ return this.username;
+ },
+ setUsername: function (e) {
+ var t = m(b(e));
+ if (!this.cannotHaveUsernamePasswordPort()) {
+ this.username = "";
+ for (var n = 0; n < t.length; n++)
+ this.username += pe(t[n], ue);
+ }
+ },
+ getPassword: function () {
+ return this.password;
+ },
+ setPassword: function (e) {
+ var t = m(b(e));
+ if (!this.cannotHaveUsernamePasswordPort()) {
+ this.password = "";
+ for (var n = 0; n < t.length; n++)
+ this.password += pe(t[n], ue);
+ }
+ },
+ getHost: function () {
+ var e = this.host,
+ t = this.port;
+ return null === e ? "" : null === t ? ie(e) : ie(e) + ":" + t;
+ },
+ setHost: function (e) {
+ this.cannotBeABaseURL || this.parse(e, Oe);
+ },
+ getHostname: function () {
+ var e = this.host;
+ return null === e ? "" : ie(e);
+ },
+ setHostname: function (e) {
+ this.cannotBeABaseURL || this.parse(e, ke);
+ },
+ getPort: function () {
+ var e = this.port;
+ return null === e ? "" : b(e);
+ },
+ setPort: function (e) {
+ this.cannotHaveUsernamePasswordPort() ||
+ ("" == (e = b(e)) ? (this.port = null) : this.parse(e, Ae));
+ },
+ getPathname: function () {
+ var e = this.path;
+ return this.cannotBeABaseURL
+ ? e[0]
+ : e.length
+ ? "/" + M(e, "/")
+ : "";
+ },
+ setPathname: function (e) {
+ this.cannotBeABaseURL || ((this.path = []), this.parse(e, Ie));
+ },
+ getSearch: function () {
+ var e = this.query;
+ return e ? "?" + e : "";
+ },
+ setSearch: function (e) {
+ "" == (e = b(e))
+ ? (this.query = null)
+ : ("?" == T(e, 0) && (e = U(e, 1)),
+ (this.query = ""),
+ this.parse(e, Me)),
+ this.searchParams.update();
+ },
+ getSearchParams: function () {
+ return this.searchParams.facade;
+ },
+ getHash: function () {
+ var e = this.fragment;
+ return e ? "#" + e : "";
+ },
+ setHash: function (e) {
+ "" != (e = b(e))
+ ? ("#" == T(e, 0) && (e = U(e, 1)),
+ (this.fragment = ""),
+ this.parse(e, De))
+ : (this.fragment = null);
+ },
+ update: function () {
+ this.query = this.searchParams.serialize() || null;
+ },
+ };
+ var Le = function (e) {
+ var t = h(this, Be),
+ n = E(arguments.length, 1) > 1 ? arguments[1] : void 0,
+ r = _(t, new Fe(e, !1, n));
+ s ||
+ ((t.href = r.serialize()),
+ (t.origin = r.getOrigin()),
+ (t.protocol = r.getProtocol()),
+ (t.username = r.getUsername()),
+ (t.password = r.getPassword()),
+ (t.host = r.getHost()),
+ (t.hostname = r.getHostname()),
+ (t.port = r.getPort()),
+ (t.pathname = r.getPathname()),
+ (t.search = r.getSearch()),
+ (t.searchParams = r.getSearchParams()),
+ (t.hash = r.getHash()));
+ },
+ Be = Le.prototype,
+ $e = function (e, t) {
+ return {
+ get: function () {
+ return j(this)[e]();
+ },
+ set:
+ t &&
+ function (e) {
+ return j(this)[t](e);
+ },
+ configurable: !0,
+ enumerable: !0,
+ };
+ };
+ if (
+ (s &&
+ (p(Be, "href", $e("serialize", "setHref")),
+ p(Be, "origin", $e("getOrigin")),
+ p(Be, "protocol", $e("getProtocol", "setProtocol")),
+ p(Be, "username", $e("getUsername", "setUsername")),
+ p(Be, "password", $e("getPassword", "setPassword")),
+ p(Be, "host", $e("getHost", "setHost")),
+ p(Be, "hostname", $e("getHostname", "setHostname")),
+ p(Be, "port", $e("getPort", "setPort")),
+ p(Be, "pathname", $e("getPathname", "setPathname")),
+ p(Be, "search", $e("getSearch", "setSearch")),
+ p(Be, "searchParams", $e("getSearchParams")),
+ p(Be, "hash", $e("getHash", "setHash"))),
+ u(
+ Be,
+ "toJSON",
+ function () {
+ return j(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ u(
+ Be,
+ "toString",
+ function () {
+ return j(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ A)
+ ) {
+ var qe = A.createObjectURL,
+ Ue = A.revokeObjectURL;
+ qe && u(Le, "createObjectURL", l(qe, A)),
+ Ue && u(Le, "revokeObjectURL", l(Ue, A));
+ }
+ w(Le, "URL"),
+ o(
+ { global: !0, constructor: !0, forced: !i, sham: !s },
+ { URL: Le }
+ );
+ },
+ 33601: (e, t, n) => {
+ n(47250);
+ },
+ 98947: () => {},
+ 24848: (e, t, n) => {
+ var r = n(54493);
+ e.exports = r;
+ },
+ 83363: (e, t, n) => {
+ var r = n(24034);
+ e.exports = r;
+ },
+ 62908: (e, t, n) => {
+ var r = n(12710);
+ e.exports = r;
+ },
+ 49216: (e, t, n) => {
+ var r = n(99324);
+ e.exports = r;
+ },
+ 56668: (e, t, n) => {
+ var r = n(95909);
+ e.exports = r;
+ },
+ 74719: (e, t, n) => {
+ var r = n(14423);
+ e.exports = r;
+ },
+ 57784: (e, t, n) => {
+ var r = n(81103);
+ e.exports = r;
+ },
+ 28196: (e, t, n) => {
+ var r = n(16246);
+ e.exports = r;
+ },
+ 8065: (e, t, n) => {
+ var r = n(56043);
+ e.exports = r;
+ },
+ 57448: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(62908),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.entries;
+ return e === a || (s(a, e) && t === a.entries) || o(l, r(e))
+ ? i
+ : t;
+ };
+ },
+ 29455: (e, t, n) => {
+ var r = n(13160);
+ e.exports = r;
+ },
+ 69743: (e, t, n) => {
+ var r = n(80446);
+ e.exports = r;
+ },
+ 11955: (e, t, n) => {
+ var r = n(2480);
+ e.exports = r;
+ },
+ 96064: (e, t, n) => {
+ var r = n(7147);
+ e.exports = r;
+ },
+ 61577: (e, t, n) => {
+ var r = n(32236);
+ e.exports = r;
+ },
+ 46279: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(49216),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.forEach;
+ return e === a || (s(a, e) && t === a.forEach) || o(l, r(e))
+ ? i
+ : t;
+ };
+ },
+ 33778: (e, t, n) => {
+ var r = n(58557);
+ e.exports = r;
+ },
+ 19373: (e, t, n) => {
+ var r = n(34570);
+ e.exports = r;
+ },
+ 73819: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(56668),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.keys;
+ return e === a || (s(a, e) && t === a.keys) || o(l, r(e)) ? i : t;
+ };
+ },
+ 11022: (e, t, n) => {
+ var r = n(57564);
+ e.exports = r;
+ },
+ 61798: (e, t, n) => {
+ var r = n(88287);
+ e.exports = r;
+ },
+ 52759: (e, t, n) => {
+ var r = n(93993);
+ e.exports = r;
+ },
+ 52527: (e, t, n) => {
+ var r = n(68025);
+ e.exports = r;
+ },
+ 36857: (e, t, n) => {
+ var r = n(59257);
+ e.exports = r;
+ },
+ 82073: (e, t, n) => {
+ var r = n(69601);
+ e.exports = r;
+ },
+ 45286: (e, t, n) => {
+ var r = n(28299);
+ e.exports = r;
+ },
+ 62856: (e, t, n) => {
+ var r = n(69355);
+ e.exports = r;
+ },
+ 2348: (e, t, n) => {
+ var r = n(18339);
+ e.exports = r;
+ },
+ 35178: (e, t, n) => {
+ var r = n(71611);
+ e.exports = r;
+ },
+ 76361: (e, t, n) => {
+ var r = n(62774);
+ e.exports = r;
+ },
+ 71815: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(74719),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.values;
+ return e === a || (s(a, e) && t === a.values) || o(l, r(e)) ? i : t;
+ };
+ },
+ 8933: (e, t, n) => {
+ var r = n(84426);
+ e.exports = r;
+ },
+ 15868: (e, t, n) => {
+ var r = n(91018);
+ n(7634), (e.exports = r);
+ },
+ 14873: (e, t, n) => {
+ var r = n(97849);
+ e.exports = r;
+ },
+ 38849: (e, t, n) => {
+ var r = n(3820);
+ e.exports = r;
+ },
+ 63383: (e, t, n) => {
+ var r = n(45999);
+ e.exports = r;
+ },
+ 57396: (e, t, n) => {
+ var r = n(7702);
+ e.exports = r;
+ },
+ 41910: (e, t, n) => {
+ var r = n(48171);
+ e.exports = r;
+ },
+ 86209: (e, t, n) => {
+ var r = n(73081);
+ e.exports = r;
+ },
+ 53402: (e, t, n) => {
+ var r = n(7699);
+ n(7634), (e.exports = r);
+ },
+ 79427: (e, t, n) => {
+ var r = n(286);
+ e.exports = r;
+ },
+ 62857: (e, t, n) => {
+ var r = n(92766);
+ e.exports = r;
+ },
+ 9534: (e, t, n) => {
+ var r = n(30498);
+ e.exports = r;
+ },
+ 23059: (e, t, n) => {
+ var r = n(48494);
+ e.exports = r;
+ },
+ 47795: (e, t, n) => {
+ var r = n(98430);
+ e.exports = r;
+ },
+ 27460: (e, t, n) => {
+ var r = n(52956);
+ n(7634), (e.exports = r);
+ },
+ 27989: (e, t, n) => {
+ n(71249);
+ var r = n(54058);
+ e.exports = r.setTimeout;
+ },
+ 5519: (e, t, n) => {
+ var r = n(76998);
+ n(7634), (e.exports = r);
+ },
+ 23452: (e, t, n) => {
+ var r = n(97089);
+ e.exports = r;
+ },
+ 92547: (e, t, n) => {
+ var r = n(57473);
+ n(7634), (e.exports = r);
+ },
+ 46509: (e, t, n) => {
+ var r = n(24227);
+ n(7634), (e.exports = r);
+ },
+ 35774: (e, t, n) => {
+ var r = n(62978);
+ e.exports = r;
+ },
+ 57641: (e, t, n) => {
+ var r = n(71459);
+ e.exports = r;
+ },
+ 72010: (e, t, n) => {
+ var r = n(32304);
+ n(7634), (e.exports = r);
+ },
+ 93726: (e, t, n) => {
+ var r = n(29567);
+ n(7634), (e.exports = r);
+ },
+ 47610: (e, t, n) => {
+ n(95304), n(16454), n(73305), n(62337);
+ var r = n(54058);
+ e.exports = r.URLSearchParams;
+ },
+ 71459: (e, t, n) => {
+ n(47610), n(33601), n(84630), n(98947);
+ var r = n(54058);
+ e.exports = r.URL;
+ },
+ 31905: function () {
+ !(function (e) {
+ !(function (t) {
+ var n = "URLSearchParams" in e,
+ r = "Symbol" in e && "iterator" in Symbol,
+ o =
+ "FileReader" in e &&
+ "Blob" in e &&
+ (function () {
+ try {
+ return new Blob(), !0;
+ } catch (e) {
+ return !1;
+ }
+ })(),
+ s = "FormData" in e,
+ i = "ArrayBuffer" in e;
+ if (i)
+ var a = [
+ "[object Int8Array]",
+ "[object Uint8Array]",
+ "[object Uint8ClampedArray]",
+ "[object Int16Array]",
+ "[object Uint16Array]",
+ "[object Int32Array]",
+ "[object Uint32Array]",
+ "[object Float32Array]",
+ "[object Float64Array]",
+ ],
+ l =
+ ArrayBuffer.isView ||
+ function (e) {
+ return (
+ e && a.indexOf(Object.prototype.toString.call(e)) > -1
+ );
+ };
+ function c(e) {
+ if (
+ ("string" != typeof e && (e = String(e)),
+ /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))
+ )
+ throw new TypeError("Invalid character in header field name");
+ return e.toLowerCase();
+ }
+ function u(e) {
+ return "string" != typeof e && (e = String(e)), e;
+ }
+ function p(e) {
+ var t = {
+ next: function () {
+ var t = e.shift();
+ return { done: void 0 === t, value: t };
+ },
+ };
+ return (
+ r &&
+ (t[Symbol.iterator] = function () {
+ return t;
+ }),
+ t
+ );
+ }
+ function h(e) {
+ (this.map = {}),
+ e instanceof h
+ ? e.forEach(function (e, t) {
+ this.append(t, e);
+ }, this)
+ : Array.isArray(e)
+ ? e.forEach(function (e) {
+ this.append(e[0], e[1]);
+ }, this)
+ : e &&
+ Object.getOwnPropertyNames(e).forEach(function (t) {
+ this.append(t, e[t]);
+ }, this);
+ }
+ function f(e) {
+ if (e.bodyUsed)
+ return Promise.reject(new TypeError("Already read"));
+ e.bodyUsed = !0;
+ }
+ function d(e) {
+ return new Promise(function (t, n) {
+ (e.onload = function () {
+ t(e.result);
+ }),
+ (e.onerror = function () {
+ n(e.error);
+ });
+ });
+ }
+ function m(e) {
+ var t = new FileReader(),
+ n = d(t);
+ return t.readAsArrayBuffer(e), n;
+ }
+ function g(e) {
+ if (e.slice) return e.slice(0);
+ var t = new Uint8Array(e.byteLength);
+ return t.set(new Uint8Array(e)), t.buffer;
+ }
+ function y() {
+ return (
+ (this.bodyUsed = !1),
+ (this._initBody = function (e) {
+ var t;
+ (this._bodyInit = e),
+ e
+ ? "string" == typeof e
+ ? (this._bodyText = e)
+ : o && Blob.prototype.isPrototypeOf(e)
+ ? (this._bodyBlob = e)
+ : s && FormData.prototype.isPrototypeOf(e)
+ ? (this._bodyFormData = e)
+ : n && URLSearchParams.prototype.isPrototypeOf(e)
+ ? (this._bodyText = e.toString())
+ : i &&
+ o &&
+ (t = e) &&
+ DataView.prototype.isPrototypeOf(t)
+ ? ((this._bodyArrayBuffer = g(e.buffer)),
+ (this._bodyInit = new Blob([
+ this._bodyArrayBuffer,
+ ])))
+ : i &&
+ (ArrayBuffer.prototype.isPrototypeOf(e) || l(e))
+ ? (this._bodyArrayBuffer = g(e))
+ : (this._bodyText = e =
+ Object.prototype.toString.call(e))
+ : (this._bodyText = ""),
+ this.headers.get("content-type") ||
+ ("string" == typeof e
+ ? this.headers.set(
+ "content-type",
+ "text/plain;charset=UTF-8"
+ )
+ : this._bodyBlob && this._bodyBlob.type
+ ? this.headers.set(
+ "content-type",
+ this._bodyBlob.type
+ )
+ : n &&
+ URLSearchParams.prototype.isPrototypeOf(e) &&
+ this.headers.set(
+ "content-type",
+ "application/x-www-form-urlencoded;charset=UTF-8"
+ ));
+ }),
+ o &&
+ ((this.blob = function () {
+ var e = f(this);
+ if (e) return e;
+ if (this._bodyBlob)
+ return Promise.resolve(this._bodyBlob);
+ if (this._bodyArrayBuffer)
+ return Promise.resolve(
+ new Blob([this._bodyArrayBuffer])
+ );
+ if (this._bodyFormData)
+ throw new Error("could not read FormData body as blob");
+ return Promise.resolve(new Blob([this._bodyText]));
+ }),
+ (this.arrayBuffer = function () {
+ return this._bodyArrayBuffer
+ ? f(this) || Promise.resolve(this._bodyArrayBuffer)
+ : this.blob().then(m);
+ })),
+ (this.text = function () {
+ var e,
+ t,
+ n,
+ r = f(this);
+ if (r) return r;
+ if (this._bodyBlob)
+ return (
+ (e = this._bodyBlob),
+ (t = new FileReader()),
+ (n = d(t)),
+ t.readAsText(e),
+ n
+ );
+ if (this._bodyArrayBuffer)
+ return Promise.resolve(
+ (function (e) {
+ for (
+ var t = new Uint8Array(e),
+ n = new Array(t.length),
+ r = 0;
+ r < t.length;
+ r++
+ )
+ n[r] = String.fromCharCode(t[r]);
+ return n.join("");
+ })(this._bodyArrayBuffer)
+ );
+ if (this._bodyFormData)
+ throw new Error("could not read FormData body as text");
+ return Promise.resolve(this._bodyText);
+ }),
+ s &&
+ (this.formData = function () {
+ return this.text().then(w);
+ }),
+ (this.json = function () {
+ return this.text().then(JSON.parse);
+ }),
+ this
+ );
+ }
+ (h.prototype.append = function (e, t) {
+ (e = c(e)), (t = u(t));
+ var n = this.map[e];
+ this.map[e] = n ? n + ", " + t : t;
+ }),
+ (h.prototype.delete = function (e) {
+ delete this.map[c(e)];
+ }),
+ (h.prototype.get = function (e) {
+ return (e = c(e)), this.has(e) ? this.map[e] : null;
+ }),
+ (h.prototype.has = function (e) {
+ return this.map.hasOwnProperty(c(e));
+ }),
+ (h.prototype.set = function (e, t) {
+ this.map[c(e)] = u(t);
+ }),
+ (h.prototype.forEach = function (e, t) {
+ for (var n in this.map)
+ this.map.hasOwnProperty(n) &&
+ e.call(t, this.map[n], n, this);
+ }),
+ (h.prototype.keys = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push(n);
+ }),
+ p(e)
+ );
+ }),
+ (h.prototype.values = function () {
+ var e = [];
+ return (
+ this.forEach(function (t) {
+ e.push(t);
+ }),
+ p(e)
+ );
+ }),
+ (h.prototype.entries = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push([n, t]);
+ }),
+ p(e)
+ );
+ }),
+ r && (h.prototype[Symbol.iterator] = h.prototype.entries);
+ var v = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
+ function b(e, t) {
+ var n,
+ r,
+ o = (t = t || {}).body;
+ if (e instanceof b) {
+ if (e.bodyUsed) throw new TypeError("Already read");
+ (this.url = e.url),
+ (this.credentials = e.credentials),
+ t.headers || (this.headers = new h(e.headers)),
+ (this.method = e.method),
+ (this.mode = e.mode),
+ (this.signal = e.signal),
+ o ||
+ null == e._bodyInit ||
+ ((o = e._bodyInit), (e.bodyUsed = !0));
+ } else this.url = String(e);
+ if (
+ ((this.credentials =
+ t.credentials || this.credentials || "same-origin"),
+ (!t.headers && this.headers) ||
+ (this.headers = new h(t.headers)),
+ (this.method =
+ ((n = t.method || this.method || "GET"),
+ (r = n.toUpperCase()),
+ v.indexOf(r) > -1 ? r : n)),
+ (this.mode = t.mode || this.mode || null),
+ (this.signal = t.signal || this.signal),
+ (this.referrer = null),
+ ("GET" === this.method || "HEAD" === this.method) && o)
+ )
+ throw new TypeError(
+ "Body not allowed for GET or HEAD requests"
+ );
+ this._initBody(o);
+ }
+ function w(e) {
+ var t = new FormData();
+ return (
+ e
+ .trim()
+ .split("&")
+ .forEach(function (e) {
+ if (e) {
+ var n = e.split("="),
+ r = n.shift().replace(/\+/g, " "),
+ o = n.join("=").replace(/\+/g, " ");
+ t.append(decodeURIComponent(r), decodeURIComponent(o));
+ }
+ }),
+ t
+ );
+ }
+ function E(e, t) {
+ t || (t = {}),
+ (this.type = "default"),
+ (this.status = void 0 === t.status ? 200 : t.status),
+ (this.ok = this.status >= 200 && this.status < 300),
+ (this.statusText = "statusText" in t ? t.statusText : "OK"),
+ (this.headers = new h(t.headers)),
+ (this.url = t.url || ""),
+ this._initBody(e);
+ }
+ (b.prototype.clone = function () {
+ return new b(this, { body: this._bodyInit });
+ }),
+ y.call(b.prototype),
+ y.call(E.prototype),
+ (E.prototype.clone = function () {
+ return new E(this._bodyInit, {
+ status: this.status,
+ statusText: this.statusText,
+ headers: new h(this.headers),
+ url: this.url,
+ });
+ }),
+ (E.error = function () {
+ var e = new E(null, { status: 0, statusText: "" });
+ return (e.type = "error"), e;
+ });
+ var x = [301, 302, 303, 307, 308];
+ (E.redirect = function (e, t) {
+ if (-1 === x.indexOf(t))
+ throw new RangeError("Invalid status code");
+ return new E(null, { status: t, headers: { location: e } });
+ }),
+ (t.DOMException = e.DOMException);
+ try {
+ new t.DOMException();
+ } catch (e) {
+ (t.DOMException = function (e, t) {
+ (this.message = e), (this.name = t);
+ var n = Error(e);
+ this.stack = n.stack;
+ }),
+ (t.DOMException.prototype = Object.create(Error.prototype)),
+ (t.DOMException.prototype.constructor = t.DOMException);
+ }
+ function S(e, n) {
+ return new Promise(function (r, s) {
+ var i = new b(e, n);
+ if (i.signal && i.signal.aborted)
+ return s(new t.DOMException("Aborted", "AbortError"));
+ var a = new XMLHttpRequest();
+ function l() {
+ a.abort();
+ }
+ (a.onload = function () {
+ var e,
+ t,
+ n = {
+ status: a.status,
+ statusText: a.statusText,
+ headers:
+ ((e = a.getAllResponseHeaders() || ""),
+ (t = new h()),
+ e
+ .replace(/\r?\n[\t ]+/g, " ")
+ .split(/\r?\n/)
+ .forEach(function (e) {
+ var n = e.split(":"),
+ r = n.shift().trim();
+ if (r) {
+ var o = n.join(":").trim();
+ t.append(r, o);
+ }
+ }),
+ t),
+ };
+ n.url =
+ "responseURL" in a
+ ? a.responseURL
+ : n.headers.get("X-Request-URL");
+ var o = "response" in a ? a.response : a.responseText;
+ r(new E(o, n));
+ }),
+ (a.onerror = function () {
+ s(new TypeError("Network request failed"));
+ }),
+ (a.ontimeout = function () {
+ s(new TypeError("Network request failed"));
+ }),
+ (a.onabort = function () {
+ s(new t.DOMException("Aborted", "AbortError"));
+ }),
+ a.open(i.method, i.url, !0),
+ "include" === i.credentials
+ ? (a.withCredentials = !0)
+ : "omit" === i.credentials && (a.withCredentials = !1),
+ "responseType" in a && o && (a.responseType = "blob"),
+ i.headers.forEach(function (e, t) {
+ a.setRequestHeader(t, e);
+ }),
+ i.signal &&
+ (i.signal.addEventListener("abort", l),
+ (a.onreadystatechange = function () {
+ 4 === a.readyState &&
+ i.signal.removeEventListener("abort", l);
+ })),
+ a.send(void 0 === i._bodyInit ? null : i._bodyInit);
+ });
+ }
+ (S.polyfill = !0),
+ e.fetch ||
+ ((e.fetch = S),
+ (e.Headers = h),
+ (e.Request = b),
+ (e.Response = E)),
+ (t.Headers = h),
+ (t.Request = b),
+ (t.Response = E),
+ (t.fetch = S),
+ Object.defineProperty(t, "__esModule", { value: !0 });
+ })({});
+ })("undefined" != typeof self ? self : this);
+ },
+ 8269: function (e, t, n) {
+ var r;
+ (r = void 0 !== n.g ? n.g : this),
+ (e.exports = (function (e) {
+ if (e.CSS && e.CSS.escape) return e.CSS.escape;
+ var t = function (e) {
+ if (0 == arguments.length)
+ throw new TypeError("`CSS.escape` requires an argument.");
+ for (
+ var t,
+ n = String(e),
+ r = n.length,
+ o = -1,
+ s = "",
+ i = n.charCodeAt(0);
+ ++o < r;
+
+ )
+ 0 != (t = n.charCodeAt(o))
+ ? (s +=
+ (t >= 1 && t <= 31) ||
+ 127 == t ||
+ (0 == o && t >= 48 && t <= 57) ||
+ (1 == o && t >= 48 && t <= 57 && 45 == i)
+ ? "\\" + t.toString(16) + " "
+ : (0 == o && 1 == r && 45 == t) ||
+ !(
+ t >= 128 ||
+ 45 == t ||
+ 95 == t ||
+ (t >= 48 && t <= 57) ||
+ (t >= 65 && t <= 90) ||
+ (t >= 97 && t <= 122)
+ )
+ ? "\\" + n.charAt(o)
+ : n.charAt(o))
+ : (s += "�");
+ return s;
+ };
+ return e.CSS || (e.CSS = {}), (e.CSS.escape = t), t;
+ })(r));
+ },
+ 27698: (e, t, n) => {
+ "use strict";
+ var r = n(48764).Buffer;
+ function o(e) {
+ return e instanceof r || e instanceof Date || e instanceof RegExp;
+ }
+ function s(e) {
+ if (e instanceof r) {
+ var t = r.alloc ? r.alloc(e.length) : new r(e.length);
+ return e.copy(t), t;
+ }
+ if (e instanceof Date) return new Date(e.getTime());
+ if (e instanceof RegExp) return new RegExp(e);
+ throw new Error("Unexpected situation");
+ }
+ function i(e) {
+ var t = [];
+ return (
+ e.forEach(function (e, n) {
+ "object" == typeof e && null !== e
+ ? Array.isArray(e)
+ ? (t[n] = i(e))
+ : o(e)
+ ? (t[n] = s(e))
+ : (t[n] = l({}, e))
+ : (t[n] = e);
+ }),
+ t
+ );
+ }
+ function a(e, t) {
+ return "__proto__" === t ? void 0 : e[t];
+ }
+ var l = (e.exports = function () {
+ if (arguments.length < 1 || "object" != typeof arguments[0])
+ return !1;
+ if (arguments.length < 2) return arguments[0];
+ var e,
+ t,
+ n = arguments[0];
+ return (
+ Array.prototype.slice.call(arguments, 1).forEach(function (r) {
+ "object" != typeof r ||
+ null === r ||
+ Array.isArray(r) ||
+ Object.keys(r).forEach(function (c) {
+ return (
+ (t = a(n, c)),
+ (e = a(r, c)) === n
+ ? void 0
+ : "object" != typeof e || null === e
+ ? void (n[c] = e)
+ : Array.isArray(e)
+ ? void (n[c] = i(e))
+ : o(e)
+ ? void (n[c] = s(e))
+ : "object" != typeof t || null === t || Array.isArray(t)
+ ? void (n[c] = l({}, e))
+ : void (n[c] = l(t, e))
+ );
+ });
+ }),
+ n
+ );
+ });
+ },
+ 9996: (e) => {
+ "use strict";
+ var t = function (e) {
+ return (
+ (function (e) {
+ return !!e && "object" == typeof e;
+ })(e) &&
+ !(function (e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ "[object RegExp]" === t ||
+ "[object Date]" === t ||
+ (function (e) {
+ return e.$$typeof === n;
+ })(e)
+ );
+ })(e)
+ );
+ };
+ var n =
+ "function" == typeof Symbol && Symbol.for
+ ? Symbol.for("react.element")
+ : 60103;
+ function r(e, t) {
+ return !1 !== t.clone && t.isMergeableObject(e)
+ ? l(((n = e), Array.isArray(n) ? [] : {}), e, t)
+ : e;
+ var n;
+ }
+ function o(e, t, n) {
+ return e.concat(t).map(function (e) {
+ return r(e, n);
+ });
+ }
+ function s(e) {
+ return Object.keys(e).concat(
+ (function (e) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(e).filter(function (t) {
+ return Object.propertyIsEnumerable.call(e, t);
+ })
+ : [];
+ })(e)
+ );
+ }
+ function i(e, t) {
+ try {
+ return t in e;
+ } catch (e) {
+ return !1;
+ }
+ }
+ function a(e, t, n) {
+ var o = {};
+ return (
+ n.isMergeableObject(e) &&
+ s(e).forEach(function (t) {
+ o[t] = r(e[t], n);
+ }),
+ s(t).forEach(function (s) {
+ (function (e, t) {
+ return (
+ i(e, t) &&
+ !(
+ Object.hasOwnProperty.call(e, t) &&
+ Object.propertyIsEnumerable.call(e, t)
+ )
+ );
+ })(e, s) ||
+ (i(e, s) && n.isMergeableObject(t[s])
+ ? (o[s] = (function (e, t) {
+ if (!t.customMerge) return l;
+ var n = t.customMerge(e);
+ return "function" == typeof n ? n : l;
+ })(s, n)(e[s], t[s], n))
+ : (o[s] = r(t[s], n)));
+ }),
+ o
+ );
+ }
+ function l(e, n, s) {
+ ((s = s || {}).arrayMerge = s.arrayMerge || o),
+ (s.isMergeableObject = s.isMergeableObject || t),
+ (s.cloneUnlessOtherwiseSpecified = r);
+ var i = Array.isArray(n);
+ return i === Array.isArray(e)
+ ? i
+ ? s.arrayMerge(e, n, s)
+ : a(e, n, s)
+ : r(n, s);
+ }
+ l.all = function (e, t) {
+ if (!Array.isArray(e))
+ throw new Error("first argument should be an array");
+ return e.reduce(function (e, n) {
+ return l(e, n, t);
+ }, {});
+ };
+ var c = l;
+ e.exports = c;
+ },
+ 27856: function (e) {
+ e.exports = (function () {
+ "use strict";
+ const {
+ entries: e,
+ setPrototypeOf: t,
+ isFrozen: n,
+ getPrototypeOf: r,
+ getOwnPropertyDescriptor: o,
+ } = Object;
+ let { freeze: s, seal: i, create: a } = Object,
+ { apply: l, construct: c } =
+ "undefined" != typeof Reflect && Reflect;
+ l ||
+ (l = function (e, t, n) {
+ return e.apply(t, n);
+ }),
+ s ||
+ (s = function (e) {
+ return e;
+ }),
+ i ||
+ (i = function (e) {
+ return e;
+ }),
+ c ||
+ (c = function (e, t) {
+ return new e(...t);
+ });
+ const u = E(Array.prototype.forEach),
+ p = E(Array.prototype.pop),
+ h = E(Array.prototype.push),
+ f = E(String.prototype.toLowerCase),
+ d = E(String.prototype.toString),
+ m = E(String.prototype.match),
+ g = E(String.prototype.replace),
+ y = E(String.prototype.indexOf),
+ v = E(String.prototype.trim),
+ b = E(RegExp.prototype.test),
+ w = x(TypeError);
+ function E(e) {
+ return function (t) {
+ for (
+ var n = arguments.length,
+ r = new Array(n > 1 ? n - 1 : 0),
+ o = 1;
+ o < n;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ return l(e, t, r);
+ };
+ }
+ function x(e) {
+ return function () {
+ for (
+ var t = arguments.length, n = new Array(t), r = 0;
+ r < t;
+ r++
+ )
+ n[r] = arguments[r];
+ return c(e, n);
+ };
+ }
+ function S(e, r, o) {
+ var s;
+ (o = null !== (s = o) && void 0 !== s ? s : f), t && t(e, null);
+ let i = r.length;
+ for (; i--; ) {
+ let t = r[i];
+ if ("string" == typeof t) {
+ const e = o(t);
+ e !== t && (n(r) || (r[i] = e), (t = e));
+ }
+ e[t] = !0;
+ }
+ return e;
+ }
+ function _(t) {
+ const n = a(null);
+ for (const [r, o] of e(t)) n[r] = o;
+ return n;
+ }
+ function j(e, t) {
+ for (; null !== e; ) {
+ const n = o(e, t);
+ if (n) {
+ if (n.get) return E(n.get);
+ if ("function" == typeof n.value) return E(n.value);
+ }
+ e = r(e);
+ }
+ function n(e) {
+ return console.warn("fallback value for", e), null;
+ }
+ return n;
+ }
+ const O = s([
+ "a",
+ "abbr",
+ "acronym",
+ "address",
+ "area",
+ "article",
+ "aside",
+ "audio",
+ "b",
+ "bdi",
+ "bdo",
+ "big",
+ "blink",
+ "blockquote",
+ "body",
+ "br",
+ "button",
+ "canvas",
+ "caption",
+ "center",
+ "cite",
+ "code",
+ "col",
+ "colgroup",
+ "content",
+ "data",
+ "datalist",
+ "dd",
+ "decorator",
+ "del",
+ "details",
+ "dfn",
+ "dialog",
+ "dir",
+ "div",
+ "dl",
+ "dt",
+ "element",
+ "em",
+ "fieldset",
+ "figcaption",
+ "figure",
+ "font",
+ "footer",
+ "form",
+ "h1",
+ "h2",
+ "h3",
+ "h4",
+ "h5",
+ "h6",
+ "head",
+ "header",
+ "hgroup",
+ "hr",
+ "html",
+ "i",
+ "img",
+ "input",
+ "ins",
+ "kbd",
+ "label",
+ "legend",
+ "li",
+ "main",
+ "map",
+ "mark",
+ "marquee",
+ "menu",
+ "menuitem",
+ "meter",
+ "nav",
+ "nobr",
+ "ol",
+ "optgroup",
+ "option",
+ "output",
+ "p",
+ "picture",
+ "pre",
+ "progress",
+ "q",
+ "rp",
+ "rt",
+ "ruby",
+ "s",
+ "samp",
+ "section",
+ "select",
+ "shadow",
+ "small",
+ "source",
+ "spacer",
+ "span",
+ "strike",
+ "strong",
+ "style",
+ "sub",
+ "summary",
+ "sup",
+ "table",
+ "tbody",
+ "td",
+ "template",
+ "textarea",
+ "tfoot",
+ "th",
+ "thead",
+ "time",
+ "tr",
+ "track",
+ "tt",
+ "u",
+ "ul",
+ "var",
+ "video",
+ "wbr",
+ ]),
+ k = s([
+ "svg",
+ "a",
+ "altglyph",
+ "altglyphdef",
+ "altglyphitem",
+ "animatecolor",
+ "animatemotion",
+ "animatetransform",
+ "circle",
+ "clippath",
+ "defs",
+ "desc",
+ "ellipse",
+ "filter",
+ "font",
+ "g",
+ "glyph",
+ "glyphref",
+ "hkern",
+ "image",
+ "line",
+ "lineargradient",
+ "marker",
+ "mask",
+ "metadata",
+ "mpath",
+ "path",
+ "pattern",
+ "polygon",
+ "polyline",
+ "radialgradient",
+ "rect",
+ "stop",
+ "style",
+ "switch",
+ "symbol",
+ "text",
+ "textpath",
+ "title",
+ "tref",
+ "tspan",
+ "view",
+ "vkern",
+ ]),
+ A = s([
+ "feBlend",
+ "feColorMatrix",
+ "feComponentTransfer",
+ "feComposite",
+ "feConvolveMatrix",
+ "feDiffuseLighting",
+ "feDisplacementMap",
+ "feDistantLight",
+ "feDropShadow",
+ "feFlood",
+ "feFuncA",
+ "feFuncB",
+ "feFuncG",
+ "feFuncR",
+ "feGaussianBlur",
+ "feImage",
+ "feMerge",
+ "feMergeNode",
+ "feMorphology",
+ "feOffset",
+ "fePointLight",
+ "feSpecularLighting",
+ "feSpotLight",
+ "feTile",
+ "feTurbulence",
+ ]),
+ C = s([
+ "animate",
+ "color-profile",
+ "cursor",
+ "discard",
+ "font-face",
+ "font-face-format",
+ "font-face-name",
+ "font-face-src",
+ "font-face-uri",
+ "foreignobject",
+ "hatch",
+ "hatchpath",
+ "mesh",
+ "meshgradient",
+ "meshpatch",
+ "meshrow",
+ "missing-glyph",
+ "script",
+ "set",
+ "solidcolor",
+ "unknown",
+ "use",
+ ]),
+ P = s([
+ "math",
+ "menclose",
+ "merror",
+ "mfenced",
+ "mfrac",
+ "mglyph",
+ "mi",
+ "mlabeledtr",
+ "mmultiscripts",
+ "mn",
+ "mo",
+ "mover",
+ "mpadded",
+ "mphantom",
+ "mroot",
+ "mrow",
+ "ms",
+ "mspace",
+ "msqrt",
+ "mstyle",
+ "msub",
+ "msup",
+ "msubsup",
+ "mtable",
+ "mtd",
+ "mtext",
+ "mtr",
+ "munder",
+ "munderover",
+ "mprescripts",
+ ]),
+ N = s([
+ "maction",
+ "maligngroup",
+ "malignmark",
+ "mlongdiv",
+ "mscarries",
+ "mscarry",
+ "msgroup",
+ "mstack",
+ "msline",
+ "msrow",
+ "semantics",
+ "annotation",
+ "annotation-xml",
+ "mprescripts",
+ "none",
+ ]),
+ I = s(["#text"]),
+ T = s([
+ "accept",
+ "action",
+ "align",
+ "alt",
+ "autocapitalize",
+ "autocomplete",
+ "autopictureinpicture",
+ "autoplay",
+ "background",
+ "bgcolor",
+ "border",
+ "capture",
+ "cellpadding",
+ "cellspacing",
+ "checked",
+ "cite",
+ "class",
+ "clear",
+ "color",
+ "cols",
+ "colspan",
+ "controls",
+ "controlslist",
+ "coords",
+ "crossorigin",
+ "datetime",
+ "decoding",
+ "default",
+ "dir",
+ "disabled",
+ "disablepictureinpicture",
+ "disableremoteplayback",
+ "download",
+ "draggable",
+ "enctype",
+ "enterkeyhint",
+ "face",
+ "for",
+ "headers",
+ "height",
+ "hidden",
+ "high",
+ "href",
+ "hreflang",
+ "id",
+ "inputmode",
+ "integrity",
+ "ismap",
+ "kind",
+ "label",
+ "lang",
+ "list",
+ "loading",
+ "loop",
+ "low",
+ "max",
+ "maxlength",
+ "media",
+ "method",
+ "min",
+ "minlength",
+ "multiple",
+ "muted",
+ "name",
+ "nonce",
+ "noshade",
+ "novalidate",
+ "nowrap",
+ "open",
+ "optimum",
+ "pattern",
+ "placeholder",
+ "playsinline",
+ "poster",
+ "preload",
+ "pubdate",
+ "radiogroup",
+ "readonly",
+ "rel",
+ "required",
+ "rev",
+ "reversed",
+ "role",
+ "rows",
+ "rowspan",
+ "spellcheck",
+ "scope",
+ "selected",
+ "shape",
+ "size",
+ "sizes",
+ "span",
+ "srclang",
+ "start",
+ "src",
+ "srcset",
+ "step",
+ "style",
+ "summary",
+ "tabindex",
+ "title",
+ "translate",
+ "type",
+ "usemap",
+ "valign",
+ "value",
+ "width",
+ "xmlns",
+ "slot",
+ ]),
+ R = s([
+ "accent-height",
+ "accumulate",
+ "additive",
+ "alignment-baseline",
+ "ascent",
+ "attributename",
+ "attributetype",
+ "azimuth",
+ "basefrequency",
+ "baseline-shift",
+ "begin",
+ "bias",
+ "by",
+ "class",
+ "clip",
+ "clippathunits",
+ "clip-path",
+ "clip-rule",
+ "color",
+ "color-interpolation",
+ "color-interpolation-filters",
+ "color-profile",
+ "color-rendering",
+ "cx",
+ "cy",
+ "d",
+ "dx",
+ "dy",
+ "diffuseconstant",
+ "direction",
+ "display",
+ "divisor",
+ "dur",
+ "edgemode",
+ "elevation",
+ "end",
+ "fill",
+ "fill-opacity",
+ "fill-rule",
+ "filter",
+ "filterunits",
+ "flood-color",
+ "flood-opacity",
+ "font-family",
+ "font-size",
+ "font-size-adjust",
+ "font-stretch",
+ "font-style",
+ "font-variant",
+ "font-weight",
+ "fx",
+ "fy",
+ "g1",
+ "g2",
+ "glyph-name",
+ "glyphref",
+ "gradientunits",
+ "gradienttransform",
+ "height",
+ "href",
+ "id",
+ "image-rendering",
+ "in",
+ "in2",
+ "k",
+ "k1",
+ "k2",
+ "k3",
+ "k4",
+ "kerning",
+ "keypoints",
+ "keysplines",
+ "keytimes",
+ "lang",
+ "lengthadjust",
+ "letter-spacing",
+ "kernelmatrix",
+ "kernelunitlength",
+ "lighting-color",
+ "local",
+ "marker-end",
+ "marker-mid",
+ "marker-start",
+ "markerheight",
+ "markerunits",
+ "markerwidth",
+ "maskcontentunits",
+ "maskunits",
+ "max",
+ "mask",
+ "media",
+ "method",
+ "mode",
+ "min",
+ "name",
+ "numoctaves",
+ "offset",
+ "operator",
+ "opacity",
+ "order",
+ "orient",
+ "orientation",
+ "origin",
+ "overflow",
+ "paint-order",
+ "path",
+ "pathlength",
+ "patterncontentunits",
+ "patterntransform",
+ "patternunits",
+ "points",
+ "preservealpha",
+ "preserveaspectratio",
+ "primitiveunits",
+ "r",
+ "rx",
+ "ry",
+ "radius",
+ "refx",
+ "refy",
+ "repeatcount",
+ "repeatdur",
+ "restart",
+ "result",
+ "rotate",
+ "scale",
+ "seed",
+ "shape-rendering",
+ "specularconstant",
+ "specularexponent",
+ "spreadmethod",
+ "startoffset",
+ "stddeviation",
+ "stitchtiles",
+ "stop-color",
+ "stop-opacity",
+ "stroke-dasharray",
+ "stroke-dashoffset",
+ "stroke-linecap",
+ "stroke-linejoin",
+ "stroke-miterlimit",
+ "stroke-opacity",
+ "stroke",
+ "stroke-width",
+ "style",
+ "surfacescale",
+ "systemlanguage",
+ "tabindex",
+ "targetx",
+ "targety",
+ "transform",
+ "transform-origin",
+ "text-anchor",
+ "text-decoration",
+ "text-rendering",
+ "textlength",
+ "type",
+ "u1",
+ "u2",
+ "unicode",
+ "values",
+ "viewbox",
+ "visibility",
+ "version",
+ "vert-adv-y",
+ "vert-origin-x",
+ "vert-origin-y",
+ "width",
+ "word-spacing",
+ "wrap",
+ "writing-mode",
+ "xchannelselector",
+ "ychannelselector",
+ "x",
+ "x1",
+ "x2",
+ "xmlns",
+ "y",
+ "y1",
+ "y2",
+ "z",
+ "zoomandpan",
+ ]),
+ M = s([
+ "accent",
+ "accentunder",
+ "align",
+ "bevelled",
+ "close",
+ "columnsalign",
+ "columnlines",
+ "columnspan",
+ "denomalign",
+ "depth",
+ "dir",
+ "display",
+ "displaystyle",
+ "encoding",
+ "fence",
+ "frame",
+ "height",
+ "href",
+ "id",
+ "largeop",
+ "length",
+ "linethickness",
+ "lspace",
+ "lquote",
+ "mathbackground",
+ "mathcolor",
+ "mathsize",
+ "mathvariant",
+ "maxsize",
+ "minsize",
+ "movablelimits",
+ "notation",
+ "numalign",
+ "open",
+ "rowalign",
+ "rowlines",
+ "rowspacing",
+ "rowspan",
+ "rspace",
+ "rquote",
+ "scriptlevel",
+ "scriptminsize",
+ "scriptsizemultiplier",
+ "selection",
+ "separator",
+ "separators",
+ "stretchy",
+ "subscriptshift",
+ "supscriptshift",
+ "symmetric",
+ "voffset",
+ "width",
+ "xmlns",
+ ]),
+ D = s([
+ "xlink:href",
+ "xml:id",
+ "xlink:title",
+ "xml:space",
+ "xmlns:xlink",
+ ]),
+ F = i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),
+ L = i(/<%[\w\W]*|[\w\W]*%>/gm),
+ B = i(/\${[\w\W]*}/gm),
+ $ = i(/^data-[\-\w.\u00B7-\uFFFF]/),
+ q = i(/^aria-[\-\w]+$/),
+ U = i(
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
+ ),
+ z = i(/^(?:\w+script|data):/i),
+ V = i(
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
+ ),
+ W = i(/^html$/i);
+ var J = Object.freeze({
+ __proto__: null,
+ MUSTACHE_EXPR: F,
+ ERB_EXPR: L,
+ TMPLIT_EXPR: B,
+ DATA_ATTR: $,
+ ARIA_ATTR: q,
+ IS_ALLOWED_URI: U,
+ IS_SCRIPT_OR_DATA: z,
+ ATTR_WHITESPACE: V,
+ DOCTYPE_NAME: W,
+ });
+ const K = () => ("undefined" == typeof window ? null : window),
+ H = function (e, t) {
+ if ("object" != typeof e || "function" != typeof e.createPolicy)
+ return null;
+ let n = null;
+ const r = "data-tt-policy-suffix";
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
+ const o = "dompurify" + (n ? "#" + n : "");
+ try {
+ return e.createPolicy(o, {
+ createHTML: (e) => e,
+ createScriptURL: (e) => e,
+ });
+ } catch (e) {
+ return (
+ console.warn(
+ "TrustedTypes policy " + o + " could not be created."
+ ),
+ null
+ );
+ }
+ };
+ function G() {
+ let t =
+ arguments.length > 0 && void 0 !== arguments[0]
+ ? arguments[0]
+ : K();
+ const n = (e) => G(e);
+ if (
+ ((n.version = "3.0.5"),
+ (n.removed = []),
+ !t || !t.document || 9 !== t.document.nodeType)
+ )
+ return (n.isSupported = !1), n;
+ const r = t.document,
+ o = r.currentScript;
+ let { document: i } = t;
+ const {
+ DocumentFragment: a,
+ HTMLTemplateElement: l,
+ Node: c,
+ Element: E,
+ NodeFilter: x,
+ NamedNodeMap: F = t.NamedNodeMap || t.MozNamedAttrMap,
+ HTMLFormElement: L,
+ DOMParser: B,
+ trustedTypes: $,
+ } = t,
+ q = E.prototype,
+ z = j(q, "cloneNode"),
+ V = j(q, "nextSibling"),
+ Z = j(q, "childNodes"),
+ Y = j(q, "parentNode");
+ if ("function" == typeof l) {
+ const e = i.createElement("template");
+ e.content &&
+ e.content.ownerDocument &&
+ (i = e.content.ownerDocument);
+ }
+ let X,
+ Q = "";
+ const {
+ implementation: ee,
+ createNodeIterator: te,
+ createDocumentFragment: ne,
+ getElementsByTagName: re,
+ } = i,
+ { importNode: oe } = r;
+ let se = {};
+ n.isSupported =
+ "function" == typeof e &&
+ "function" == typeof Y &&
+ ee &&
+ void 0 !== ee.createHTMLDocument;
+ const {
+ MUSTACHE_EXPR: ie,
+ ERB_EXPR: ae,
+ TMPLIT_EXPR: le,
+ DATA_ATTR: ce,
+ ARIA_ATTR: ue,
+ IS_SCRIPT_OR_DATA: pe,
+ ATTR_WHITESPACE: he,
+ } = J;
+ let { IS_ALLOWED_URI: fe } = J,
+ de = null;
+ const me = S({}, [...O, ...k, ...A, ...P, ...I]);
+ let ge = null;
+ const ye = S({}, [...T, ...R, ...M, ...D]);
+ let ve = Object.seal(
+ Object.create(null, {
+ tagNameCheck: {
+ writable: !0,
+ configurable: !1,
+ enumerable: !0,
+ value: null,
+ },
+ attributeNameCheck: {
+ writable: !0,
+ configurable: !1,
+ enumerable: !0,
+ value: null,
+ },
+ allowCustomizedBuiltInElements: {
+ writable: !0,
+ configurable: !1,
+ enumerable: !0,
+ value: !1,
+ },
+ })
+ ),
+ be = null,
+ we = null,
+ Ee = !0,
+ xe = !0,
+ Se = !1,
+ _e = !0,
+ je = !1,
+ Oe = !1,
+ ke = !1,
+ Ae = !1,
+ Ce = !1,
+ Pe = !1,
+ Ne = !1,
+ Ie = !0,
+ Te = !1;
+ const Re = "user-content-";
+ let Me = !0,
+ De = !1,
+ Fe = {},
+ Le = null;
+ const Be = S({}, [
+ "annotation-xml",
+ "audio",
+ "colgroup",
+ "desc",
+ "foreignobject",
+ "head",
+ "iframe",
+ "math",
+ "mi",
+ "mn",
+ "mo",
+ "ms",
+ "mtext",
+ "noembed",
+ "noframes",
+ "noscript",
+ "plaintext",
+ "script",
+ "style",
+ "svg",
+ "template",
+ "thead",
+ "title",
+ "video",
+ "xmp",
+ ]);
+ let $e = null;
+ const qe = S({}, [
+ "audio",
+ "video",
+ "img",
+ "source",
+ "image",
+ "track",
+ ]);
+ let Ue = null;
+ const ze = S({}, [
+ "alt",
+ "class",
+ "for",
+ "id",
+ "label",
+ "name",
+ "pattern",
+ "placeholder",
+ "role",
+ "summary",
+ "title",
+ "value",
+ "style",
+ "xmlns",
+ ]),
+ Ve = "http://www.w3.org/1998/Math/MathML",
+ We = "http://www.w3.org/2000/svg",
+ Je = "http://www.w3.org/1999/xhtml";
+ let Ke = Je,
+ He = !1,
+ Ge = null;
+ const Ze = S({}, [Ve, We, Je], d);
+ let Ye;
+ const Xe = ["application/xhtml+xml", "text/html"],
+ Qe = "text/html";
+ let et,
+ tt = null;
+ const nt = i.createElement("form"),
+ rt = function (e) {
+ return e instanceof RegExp || e instanceof Function;
+ },
+ ot = function (e) {
+ if (!tt || tt !== e) {
+ if (
+ ((e && "object" == typeof e) || (e = {}),
+ (e = _(e)),
+ (Ye = Ye =
+ -1 === Xe.indexOf(e.PARSER_MEDIA_TYPE)
+ ? Qe
+ : e.PARSER_MEDIA_TYPE),
+ (et = "application/xhtml+xml" === Ye ? d : f),
+ (de =
+ "ALLOWED_TAGS" in e ? S({}, e.ALLOWED_TAGS, et) : me),
+ (ge =
+ "ALLOWED_ATTR" in e ? S({}, e.ALLOWED_ATTR, et) : ye),
+ (Ge =
+ "ALLOWED_NAMESPACES" in e
+ ? S({}, e.ALLOWED_NAMESPACES, d)
+ : Ze),
+ (Ue =
+ "ADD_URI_SAFE_ATTR" in e
+ ? S(_(ze), e.ADD_URI_SAFE_ATTR, et)
+ : ze),
+ ($e =
+ "ADD_DATA_URI_TAGS" in e
+ ? S(_(qe), e.ADD_DATA_URI_TAGS, et)
+ : qe),
+ (Le =
+ "FORBID_CONTENTS" in e
+ ? S({}, e.FORBID_CONTENTS, et)
+ : Be),
+ (be = "FORBID_TAGS" in e ? S({}, e.FORBID_TAGS, et) : {}),
+ (we = "FORBID_ATTR" in e ? S({}, e.FORBID_ATTR, et) : {}),
+ (Fe = "USE_PROFILES" in e && e.USE_PROFILES),
+ (Ee = !1 !== e.ALLOW_ARIA_ATTR),
+ (xe = !1 !== e.ALLOW_DATA_ATTR),
+ (Se = e.ALLOW_UNKNOWN_PROTOCOLS || !1),
+ (_e = !1 !== e.ALLOW_SELF_CLOSE_IN_ATTR),
+ (je = e.SAFE_FOR_TEMPLATES || !1),
+ (Oe = e.WHOLE_DOCUMENT || !1),
+ (Ce = e.RETURN_DOM || !1),
+ (Pe = e.RETURN_DOM_FRAGMENT || !1),
+ (Ne = e.RETURN_TRUSTED_TYPE || !1),
+ (Ae = e.FORCE_BODY || !1),
+ (Ie = !1 !== e.SANITIZE_DOM),
+ (Te = e.SANITIZE_NAMED_PROPS || !1),
+ (Me = !1 !== e.KEEP_CONTENT),
+ (De = e.IN_PLACE || !1),
+ (fe = e.ALLOWED_URI_REGEXP || U),
+ (Ke = e.NAMESPACE || Je),
+ (ve = e.CUSTOM_ELEMENT_HANDLING || {}),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) &&
+ (ve.tagNameCheck =
+ e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) &&
+ (ve.attributeNameCheck =
+ e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ "boolean" ==
+ typeof e.CUSTOM_ELEMENT_HANDLING
+ .allowCustomizedBuiltInElements &&
+ (ve.allowCustomizedBuiltInElements =
+ e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),
+ je && (xe = !1),
+ Pe && (Ce = !0),
+ Fe &&
+ ((de = S({}, [...I])),
+ (ge = []),
+ !0 === Fe.html && (S(de, O), S(ge, T)),
+ !0 === Fe.svg && (S(de, k), S(ge, R), S(ge, D)),
+ !0 === Fe.svgFilters && (S(de, A), S(ge, R), S(ge, D)),
+ !0 === Fe.mathMl && (S(de, P), S(ge, M), S(ge, D))),
+ e.ADD_TAGS &&
+ (de === me && (de = _(de)), S(de, e.ADD_TAGS, et)),
+ e.ADD_ATTR &&
+ (ge === ye && (ge = _(ge)), S(ge, e.ADD_ATTR, et)),
+ e.ADD_URI_SAFE_ATTR && S(Ue, e.ADD_URI_SAFE_ATTR, et),
+ e.FORBID_CONTENTS &&
+ (Le === Be && (Le = _(Le)),
+ S(Le, e.FORBID_CONTENTS, et)),
+ Me && (de["#text"] = !0),
+ Oe && S(de, ["html", "head", "body"]),
+ de.table && (S(de, ["tbody"]), delete be.tbody),
+ e.TRUSTED_TYPES_POLICY)
+ ) {
+ if (
+ "function" != typeof e.TRUSTED_TYPES_POLICY.createHTML
+ )
+ throw w(
+ 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'
+ );
+ if (
+ "function" !=
+ typeof e.TRUSTED_TYPES_POLICY.createScriptURL
+ )
+ throw w(
+ 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'
+ );
+ (X = e.TRUSTED_TYPES_POLICY), (Q = X.createHTML(""));
+ } else
+ void 0 === X && (X = H($, o)),
+ null !== X &&
+ "string" == typeof Q &&
+ (Q = X.createHTML(""));
+ s && s(e), (tt = e);
+ }
+ },
+ st = S({}, ["mi", "mo", "mn", "ms", "mtext"]),
+ it = S({}, [
+ "foreignobject",
+ "desc",
+ "title",
+ "annotation-xml",
+ ]),
+ at = S({}, ["title", "style", "font", "a", "script"]),
+ lt = S({}, k);
+ S(lt, A), S(lt, C);
+ const ct = S({}, P);
+ S(ct, N);
+ const ut = function (e) {
+ let t = Y(e);
+ (t && t.tagName) ||
+ (t = { namespaceURI: Ke, tagName: "template" });
+ const n = f(e.tagName),
+ r = f(t.tagName);
+ return (
+ !!Ge[e.namespaceURI] &&
+ (e.namespaceURI === We
+ ? t.namespaceURI === Je
+ ? "svg" === n
+ : t.namespaceURI === Ve
+ ? "svg" === n && ("annotation-xml" === r || st[r])
+ : Boolean(lt[n])
+ : e.namespaceURI === Ve
+ ? t.namespaceURI === Je
+ ? "math" === n
+ : t.namespaceURI === We
+ ? "math" === n && it[r]
+ : Boolean(ct[n])
+ : e.namespaceURI === Je
+ ? !(t.namespaceURI === We && !it[r]) &&
+ !(t.namespaceURI === Ve && !st[r]) &&
+ !ct[n] &&
+ (at[n] || !lt[n])
+ : !(
+ "application/xhtml+xml" !== Ye || !Ge[e.namespaceURI]
+ ))
+ );
+ },
+ pt = function (e) {
+ h(n.removed, { element: e });
+ try {
+ e.parentNode.removeChild(e);
+ } catch (t) {
+ e.remove();
+ }
+ },
+ ht = function (e, t) {
+ try {
+ h(n.removed, { attribute: t.getAttributeNode(e), from: t });
+ } catch (e) {
+ h(n.removed, { attribute: null, from: t });
+ }
+ if ((t.removeAttribute(e), "is" === e && !ge[e]))
+ if (Ce || Pe)
+ try {
+ pt(t);
+ } catch (e) {}
+ else
+ try {
+ t.setAttribute(e, "");
+ } catch (e) {}
+ },
+ ft = function (e) {
+ let t, n;
+ if (Ae) e = " " + e;
+ else {
+ const t = m(e, /^[\r\n\t ]+/);
+ n = t && t[0];
+ }
+ "application/xhtml+xml" === Ye &&
+ Ke === Je &&
+ (e =
+ '' +
+ e +
+ "");
+ const r = X ? X.createHTML(e) : e;
+ if (Ke === Je)
+ try {
+ t = new B().parseFromString(r, Ye);
+ } catch (e) {}
+ if (!t || !t.documentElement) {
+ t = ee.createDocument(Ke, "template", null);
+ try {
+ t.documentElement.innerHTML = He ? Q : r;
+ } catch (e) {}
+ }
+ const o = t.body || t.documentElement;
+ return (
+ e &&
+ n &&
+ o.insertBefore(
+ i.createTextNode(n),
+ o.childNodes[0] || null
+ ),
+ Ke === Je
+ ? re.call(t, Oe ? "html" : "body")[0]
+ : Oe
+ ? t.documentElement
+ : o
+ );
+ },
+ dt = function (e) {
+ return te.call(
+ e.ownerDocument || e,
+ e,
+ x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT,
+ null,
+ !1
+ );
+ },
+ mt = function (e) {
+ return (
+ e instanceof L &&
+ ("string" != typeof e.nodeName ||
+ "string" != typeof e.textContent ||
+ "function" != typeof e.removeChild ||
+ !(e.attributes instanceof F) ||
+ "function" != typeof e.removeAttribute ||
+ "function" != typeof e.setAttribute ||
+ "string" != typeof e.namespaceURI ||
+ "function" != typeof e.insertBefore ||
+ "function" != typeof e.hasChildNodes)
+ );
+ },
+ gt = function (e) {
+ return "object" == typeof c
+ ? e instanceof c
+ : e &&
+ "object" == typeof e &&
+ "number" == typeof e.nodeType &&
+ "string" == typeof e.nodeName;
+ },
+ yt = function (e, t, r) {
+ se[e] &&
+ u(se[e], (e) => {
+ e.call(n, t, r, tt);
+ });
+ },
+ vt = function (e) {
+ let t;
+ if ((yt("beforeSanitizeElements", e, null), mt(e)))
+ return pt(e), !0;
+ const r = et(e.nodeName);
+ if (
+ (yt("uponSanitizeElement", e, {
+ tagName: r,
+ allowedTags: de,
+ }),
+ e.hasChildNodes() &&
+ !gt(e.firstElementChild) &&
+ (!gt(e.content) || !gt(e.content.firstElementChild)) &&
+ b(/<[/\w]/g, e.innerHTML) &&
+ b(/<[/\w]/g, e.textContent))
+ )
+ return pt(e), !0;
+ if (!de[r] || be[r]) {
+ if (!be[r] && wt(r)) {
+ if (
+ ve.tagNameCheck instanceof RegExp &&
+ b(ve.tagNameCheck, r)
+ )
+ return !1;
+ if (
+ ve.tagNameCheck instanceof Function &&
+ ve.tagNameCheck(r)
+ )
+ return !1;
+ }
+ if (Me && !Le[r]) {
+ const t = Y(e) || e.parentNode,
+ n = Z(e) || e.childNodes;
+ if (n && t)
+ for (let r = n.length - 1; r >= 0; --r)
+ t.insertBefore(z(n[r], !0), V(e));
+ }
+ return pt(e), !0;
+ }
+ return e instanceof E && !ut(e)
+ ? (pt(e), !0)
+ : ("noscript" !== r &&
+ "noembed" !== r &&
+ "noframes" !== r) ||
+ !b(/<\/no(script|embed|frames)/i, e.innerHTML)
+ ? (je &&
+ 3 === e.nodeType &&
+ ((t = e.textContent),
+ (t = g(t, ie, " ")),
+ (t = g(t, ae, " ")),
+ (t = g(t, le, " ")),
+ e.textContent !== t &&
+ (h(n.removed, { element: e.cloneNode() }),
+ (e.textContent = t))),
+ yt("afterSanitizeElements", e, null),
+ !1)
+ : (pt(e), !0);
+ },
+ bt = function (e, t, n) {
+ if (Ie && ("id" === t || "name" === t) && (n in i || n in nt))
+ return !1;
+ if (xe && !we[t] && b(ce, t));
+ else if (Ee && b(ue, t));
+ else if (!ge[t] || we[t]) {
+ if (
+ !(
+ (wt(e) &&
+ ((ve.tagNameCheck instanceof RegExp &&
+ b(ve.tagNameCheck, e)) ||
+ (ve.tagNameCheck instanceof Function &&
+ ve.tagNameCheck(e))) &&
+ ((ve.attributeNameCheck instanceof RegExp &&
+ b(ve.attributeNameCheck, t)) ||
+ (ve.attributeNameCheck instanceof Function &&
+ ve.attributeNameCheck(t)))) ||
+ ("is" === t &&
+ ve.allowCustomizedBuiltInElements &&
+ ((ve.tagNameCheck instanceof RegExp &&
+ b(ve.tagNameCheck, n)) ||
+ (ve.tagNameCheck instanceof Function &&
+ ve.tagNameCheck(n))))
+ )
+ )
+ return !1;
+ } else if (Ue[t]);
+ else if (b(fe, g(n, he, "")));
+ else if (
+ ("src" !== t && "xlink:href" !== t && "href" !== t) ||
+ "script" === e ||
+ 0 !== y(n, "data:") ||
+ !$e[e]
+ )
+ if (Se && !b(pe, g(n, he, "")));
+ else if (n) return !1;
+ return !0;
+ },
+ wt = function (e) {
+ return e.indexOf("-") > 0;
+ },
+ Et = function (e) {
+ let t, r, o, s;
+ yt("beforeSanitizeAttributes", e, null);
+ const { attributes: i } = e;
+ if (!i) return;
+ const a = {
+ attrName: "",
+ attrValue: "",
+ keepAttr: !0,
+ allowedAttributes: ge,
+ };
+ for (s = i.length; s--; ) {
+ t = i[s];
+ const { name: l, namespaceURI: c } = t;
+ if (
+ ((r = "value" === l ? t.value : v(t.value)),
+ (o = et(l)),
+ (a.attrName = o),
+ (a.attrValue = r),
+ (a.keepAttr = !0),
+ (a.forceKeepAttr = void 0),
+ yt("uponSanitizeAttribute", e, a),
+ (r = a.attrValue),
+ a.forceKeepAttr)
+ )
+ continue;
+ if ((ht(l, e), !a.keepAttr)) continue;
+ if (!_e && b(/\/>/i, r)) {
+ ht(l, e);
+ continue;
+ }
+ je &&
+ ((r = g(r, ie, " ")),
+ (r = g(r, ae, " ")),
+ (r = g(r, le, " ")));
+ const u = et(e.nodeName);
+ if (bt(u, o, r)) {
+ if (
+ (!Te ||
+ ("id" !== o && "name" !== o) ||
+ (ht(l, e), (r = Re + r)),
+ X &&
+ "object" == typeof $ &&
+ "function" == typeof $.getAttributeType)
+ )
+ if (c);
+ else
+ switch ($.getAttributeType(u, o)) {
+ case "TrustedHTML":
+ r = X.createHTML(r);
+ break;
+ case "TrustedScriptURL":
+ r = X.createScriptURL(r);
+ }
+ try {
+ c ? e.setAttributeNS(c, l, r) : e.setAttribute(l, r),
+ p(n.removed);
+ } catch (e) {}
+ }
+ }
+ yt("afterSanitizeAttributes", e, null);
+ },
+ xt = function e(t) {
+ let n;
+ const r = dt(t);
+ for (
+ yt("beforeSanitizeShadowDOM", t, null);
+ (n = r.nextNode());
+
+ )
+ yt("uponSanitizeShadowNode", n, null),
+ vt(n) || (n.content instanceof a && e(n.content), Et(n));
+ yt("afterSanitizeShadowDOM", t, null);
+ };
+ return (
+ (n.sanitize = function (e) {
+ let t,
+ o,
+ s,
+ i,
+ l =
+ arguments.length > 1 && void 0 !== arguments[1]
+ ? arguments[1]
+ : {};
+ if (
+ ((He = !e),
+ He && (e = "\x3c!--\x3e"),
+ "string" != typeof e && !gt(e))
+ ) {
+ if ("function" != typeof e.toString)
+ throw w("toString is not a function");
+ if ("string" != typeof (e = e.toString()))
+ throw w("dirty is not a string, aborting");
+ }
+ if (!n.isSupported) return e;
+ if (
+ (ke || ot(l),
+ (n.removed = []),
+ "string" == typeof e && (De = !1),
+ De)
+ ) {
+ if (e.nodeName) {
+ const t = et(e.nodeName);
+ if (!de[t] || be[t])
+ throw w(
+ "root node is forbidden and cannot be sanitized in-place"
+ );
+ }
+ } else if (e instanceof c)
+ (t = ft("\x3c!----\x3e")),
+ (o = t.ownerDocument.importNode(e, !0)),
+ (1 === o.nodeType && "BODY" === o.nodeName) ||
+ "HTML" === o.nodeName
+ ? (t = o)
+ : t.appendChild(o);
+ else {
+ if (!Ce && !je && !Oe && -1 === e.indexOf("<"))
+ return X && Ne ? X.createHTML(e) : e;
+ if (((t = ft(e)), !t)) return Ce ? null : Ne ? Q : "";
+ }
+ t && Ae && pt(t.firstChild);
+ const u = dt(De ? e : t);
+ for (; (s = u.nextNode()); )
+ vt(s) || (s.content instanceof a && xt(s.content), Et(s));
+ if (De) return e;
+ if (Ce) {
+ if (Pe)
+ for (i = ne.call(t.ownerDocument); t.firstChild; )
+ i.appendChild(t.firstChild);
+ else i = t;
+ return (
+ (ge.shadowroot || ge.shadowrootmode) &&
+ (i = oe.call(r, i, !0)),
+ i
+ );
+ }
+ let p = Oe ? t.outerHTML : t.innerHTML;
+ return (
+ Oe &&
+ de["!doctype"] &&
+ t.ownerDocument &&
+ t.ownerDocument.doctype &&
+ t.ownerDocument.doctype.name &&
+ b(W, t.ownerDocument.doctype.name) &&
+ (p =
+ "\n" +
+ p),
+ je &&
+ ((p = g(p, ie, " ")),
+ (p = g(p, ae, " ")),
+ (p = g(p, le, " "))),
+ X && Ne ? X.createHTML(p) : p
+ );
+ }),
+ (n.setConfig = function (e) {
+ ot(e), (ke = !0);
+ }),
+ (n.clearConfig = function () {
+ (tt = null), (ke = !1);
+ }),
+ (n.isValidAttribute = function (e, t, n) {
+ tt || ot({});
+ const r = et(e),
+ o = et(t);
+ return bt(r, o, n);
+ }),
+ (n.addHook = function (e, t) {
+ "function" == typeof t &&
+ ((se[e] = se[e] || []), h(se[e], t));
+ }),
+ (n.removeHook = function (e) {
+ if (se[e]) return p(se[e]);
+ }),
+ (n.removeHooks = function (e) {
+ se[e] && (se[e] = []);
+ }),
+ (n.removeAllHooks = function () {
+ se = {};
+ }),
+ n
+ );
+ }
+ return G();
+ })();
+ },
+ 69450: (e) => {
+ "use strict";
+ class t {
+ constructor(e, t) {
+ (this.low = e), (this.high = t), (this.length = 1 + t - e);
+ }
+ overlaps(e) {
+ return !(this.high < e.low || this.low > e.high);
+ }
+ touches(e) {
+ return !(this.high + 1 < e.low || this.low - 1 > e.high);
+ }
+ add(e) {
+ return new t(
+ Math.min(this.low, e.low),
+ Math.max(this.high, e.high)
+ );
+ }
+ subtract(e) {
+ return e.low <= this.low && e.high >= this.high
+ ? []
+ : e.low > this.low && e.high < this.high
+ ? [new t(this.low, e.low - 1), new t(e.high + 1, this.high)]
+ : e.low <= this.low
+ ? [new t(e.high + 1, this.high)]
+ : [new t(this.low, e.low - 1)];
+ }
+ toString() {
+ return this.low == this.high
+ ? this.low.toString()
+ : this.low + "-" + this.high;
+ }
+ }
+ class n {
+ constructor(e, t) {
+ (this.ranges = []),
+ (this.length = 0),
+ null != e && this.add(e, t);
+ }
+ _update_length() {
+ this.length = this.ranges.reduce((e, t) => e + t.length, 0);
+ }
+ add(e, r) {
+ var o = (e) => {
+ for (
+ var t = 0;
+ t < this.ranges.length && !e.touches(this.ranges[t]);
+
+ )
+ t++;
+ for (
+ var n = this.ranges.slice(0, t);
+ t < this.ranges.length && e.touches(this.ranges[t]);
+
+ )
+ (e = e.add(this.ranges[t])), t++;
+ n.push(e),
+ (this.ranges = n.concat(this.ranges.slice(t))),
+ this._update_length();
+ };
+ return (
+ e instanceof n
+ ? e.ranges.forEach(o)
+ : (null == r && (r = e), o(new t(e, r))),
+ this
+ );
+ }
+ subtract(e, r) {
+ var o = (e) => {
+ for (
+ var t = 0;
+ t < this.ranges.length && !e.overlaps(this.ranges[t]);
+
+ )
+ t++;
+ for (
+ var n = this.ranges.slice(0, t);
+ t < this.ranges.length && e.overlaps(this.ranges[t]);
+
+ )
+ (n = n.concat(this.ranges[t].subtract(e))), t++;
+ (this.ranges = n.concat(this.ranges.slice(t))),
+ this._update_length();
+ };
+ return (
+ e instanceof n
+ ? e.ranges.forEach(o)
+ : (null == r && (r = e), o(new t(e, r))),
+ this
+ );
+ }
+ intersect(e, r) {
+ var o = [],
+ s = (e) => {
+ for (
+ var n = 0;
+ n < this.ranges.length && !e.overlaps(this.ranges[n]);
+
+ )
+ n++;
+ for (
+ ;
+ n < this.ranges.length && e.overlaps(this.ranges[n]);
+
+ ) {
+ var r = Math.max(this.ranges[n].low, e.low),
+ s = Math.min(this.ranges[n].high, e.high);
+ o.push(new t(r, s)), n++;
+ }
+ };
+ return (
+ e instanceof n
+ ? e.ranges.forEach(s)
+ : (null == r && (r = e), s(new t(e, r))),
+ (this.ranges = o),
+ this._update_length(),
+ this
+ );
+ }
+ index(e) {
+ for (
+ var t = 0;
+ t < this.ranges.length && this.ranges[t].length <= e;
+
+ )
+ (e -= this.ranges[t].length), t++;
+ return this.ranges[t].low + e;
+ }
+ toString() {
+ return "[ " + this.ranges.join(", ") + " ]";
+ }
+ clone() {
+ return new n(this);
+ }
+ numbers() {
+ return this.ranges.reduce((e, t) => {
+ for (var n = t.low; n <= t.high; ) e.push(n), n++;
+ return e;
+ }, []);
+ }
+ subranges() {
+ return this.ranges.map((e) => ({
+ low: e.low,
+ high: e.high,
+ length: 1 + e.high - e.low,
+ }));
+ }
+ }
+ e.exports = n;
+ },
+ 17187: (e) => {
+ "use strict";
+ var t,
+ n = "object" == typeof Reflect ? Reflect : null,
+ r =
+ n && "function" == typeof n.apply
+ ? n.apply
+ : function (e, t, n) {
+ return Function.prototype.apply.call(e, t, n);
+ };
+ t =
+ n && "function" == typeof n.ownKeys
+ ? n.ownKeys
+ : Object.getOwnPropertySymbols
+ ? function (e) {
+ return Object.getOwnPropertyNames(e).concat(
+ Object.getOwnPropertySymbols(e)
+ );
+ }
+ : function (e) {
+ return Object.getOwnPropertyNames(e);
+ };
+ var o =
+ Number.isNaN ||
+ function (e) {
+ return e != e;
+ };
+ function s() {
+ s.init.call(this);
+ }
+ (e.exports = s),
+ (e.exports.once = function (e, t) {
+ return new Promise(function (n, r) {
+ function o(n) {
+ e.removeListener(t, s), r(n);
+ }
+ function s() {
+ "function" == typeof e.removeListener &&
+ e.removeListener("error", o),
+ n([].slice.call(arguments));
+ }
+ m(e, t, s, { once: !0 }),
+ "error" !== t &&
+ (function (e, t, n) {
+ "function" == typeof e.on && m(e, "error", t, n);
+ })(e, o, { once: !0 });
+ });
+ }),
+ (s.EventEmitter = s),
+ (s.prototype._events = void 0),
+ (s.prototype._eventsCount = 0),
+ (s.prototype._maxListeners = void 0);
+ var i = 10;
+ function a(e) {
+ if ("function" != typeof e)
+ throw new TypeError(
+ 'The "listener" argument must be of type Function. Received type ' +
+ typeof e
+ );
+ }
+ function l(e) {
+ return void 0 === e._maxListeners
+ ? s.defaultMaxListeners
+ : e._maxListeners;
+ }
+ function c(e, t, n, r) {
+ var o, s, i, c;
+ if (
+ (a(n),
+ void 0 === (s = e._events)
+ ? ((s = e._events = Object.create(null)), (e._eventsCount = 0))
+ : (void 0 !== s.newListener &&
+ (e.emit("newListener", t, n.listener ? n.listener : n),
+ (s = e._events)),
+ (i = s[t])),
+ void 0 === i)
+ )
+ (i = s[t] = n), ++e._eventsCount;
+ else if (
+ ("function" == typeof i
+ ? (i = s[t] = r ? [n, i] : [i, n])
+ : r
+ ? i.unshift(n)
+ : i.push(n),
+ (o = l(e)) > 0 && i.length > o && !i.warned)
+ ) {
+ i.warned = !0;
+ var u = new Error(
+ "Possible EventEmitter memory leak detected. " +
+ i.length +
+ " " +
+ String(t) +
+ " listeners added. Use emitter.setMaxListeners() to increase limit"
+ );
+ (u.name = "MaxListenersExceededWarning"),
+ (u.emitter = e),
+ (u.type = t),
+ (u.count = i.length),
+ (c = u),
+ console && console.warn && console.warn(c);
+ }
+ return e;
+ }
+ function u() {
+ if (!this.fired)
+ return (
+ this.target.removeListener(this.type, this.wrapFn),
+ (this.fired = !0),
+ 0 === arguments.length
+ ? this.listener.call(this.target)
+ : this.listener.apply(this.target, arguments)
+ );
+ }
+ function p(e, t, n) {
+ var r = {
+ fired: !1,
+ wrapFn: void 0,
+ target: e,
+ type: t,
+ listener: n,
+ },
+ o = u.bind(r);
+ return (o.listener = n), (r.wrapFn = o), o;
+ }
+ function h(e, t, n) {
+ var r = e._events;
+ if (void 0 === r) return [];
+ var o = r[t];
+ return void 0 === o
+ ? []
+ : "function" == typeof o
+ ? n
+ ? [o.listener || o]
+ : [o]
+ : n
+ ? (function (e) {
+ for (var t = new Array(e.length), n = 0; n < t.length; ++n)
+ t[n] = e[n].listener || e[n];
+ return t;
+ })(o)
+ : d(o, o.length);
+ }
+ function f(e) {
+ var t = this._events;
+ if (void 0 !== t) {
+ var n = t[e];
+ if ("function" == typeof n) return 1;
+ if (void 0 !== n) return n.length;
+ }
+ return 0;
+ }
+ function d(e, t) {
+ for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r];
+ return n;
+ }
+ function m(e, t, n, r) {
+ if ("function" == typeof e.on) r.once ? e.once(t, n) : e.on(t, n);
+ else {
+ if ("function" != typeof e.addEventListener)
+ throw new TypeError(
+ 'The "emitter" argument must be of type EventEmitter. Received type ' +
+ typeof e
+ );
+ e.addEventListener(t, function o(s) {
+ r.once && e.removeEventListener(t, o), n(s);
+ });
+ }
+ }
+ Object.defineProperty(s, "defaultMaxListeners", {
+ enumerable: !0,
+ get: function () {
+ return i;
+ },
+ set: function (e) {
+ if ("number" != typeof e || e < 0 || o(e))
+ throw new RangeError(
+ 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
+ e +
+ "."
+ );
+ i = e;
+ },
+ }),
+ (s.init = function () {
+ (void 0 !== this._events &&
+ this._events !== Object.getPrototypeOf(this)._events) ||
+ ((this._events = Object.create(null)), (this._eventsCount = 0)),
+ (this._maxListeners = this._maxListeners || void 0);
+ }),
+ (s.prototype.setMaxListeners = function (e) {
+ if ("number" != typeof e || e < 0 || o(e))
+ throw new RangeError(
+ 'The value of "n" is out of range. It must be a non-negative number. Received ' +
+ e +
+ "."
+ );
+ return (this._maxListeners = e), this;
+ }),
+ (s.prototype.getMaxListeners = function () {
+ return l(this);
+ }),
+ (s.prototype.emit = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++)
+ t.push(arguments[n]);
+ var o = "error" === e,
+ s = this._events;
+ if (void 0 !== s) o = o && void 0 === s.error;
+ else if (!o) return !1;
+ if (o) {
+ var i;
+ if ((t.length > 0 && (i = t[0]), i instanceof Error)) throw i;
+ var a = new Error(
+ "Unhandled error." + (i ? " (" + i.message + ")" : "")
+ );
+ throw ((a.context = i), a);
+ }
+ var l = s[e];
+ if (void 0 === l) return !1;
+ if ("function" == typeof l) r(l, this, t);
+ else {
+ var c = l.length,
+ u = d(l, c);
+ for (n = 0; n < c; ++n) r(u[n], this, t);
+ }
+ return !0;
+ }),
+ (s.prototype.addListener = function (e, t) {
+ return c(this, e, t, !1);
+ }),
+ (s.prototype.on = s.prototype.addListener),
+ (s.prototype.prependListener = function (e, t) {
+ return c(this, e, t, !0);
+ }),
+ (s.prototype.once = function (e, t) {
+ return a(t), this.on(e, p(this, e, t)), this;
+ }),
+ (s.prototype.prependOnceListener = function (e, t) {
+ return a(t), this.prependListener(e, p(this, e, t)), this;
+ }),
+ (s.prototype.removeListener = function (e, t) {
+ var n, r, o, s, i;
+ if ((a(t), void 0 === (r = this._events))) return this;
+ if (void 0 === (n = r[e])) return this;
+ if (n === t || n.listener === t)
+ 0 == --this._eventsCount
+ ? (this._events = Object.create(null))
+ : (delete r[e],
+ r.removeListener &&
+ this.emit("removeListener", e, n.listener || t));
+ else if ("function" != typeof n) {
+ for (o = -1, s = n.length - 1; s >= 0; s--)
+ if (n[s] === t || n[s].listener === t) {
+ (i = n[s].listener), (o = s);
+ break;
+ }
+ if (o < 0) return this;
+ 0 === o
+ ? n.shift()
+ : (function (e, t) {
+ for (; t + 1 < e.length; t++) e[t] = e[t + 1];
+ e.pop();
+ })(n, o),
+ 1 === n.length && (r[e] = n[0]),
+ void 0 !== r.removeListener &&
+ this.emit("removeListener", e, i || t);
+ }
+ return this;
+ }),
+ (s.prototype.off = s.prototype.removeListener),
+ (s.prototype.removeAllListeners = function (e) {
+ var t, n, r;
+ if (void 0 === (n = this._events)) return this;
+ if (void 0 === n.removeListener)
+ return (
+ 0 === arguments.length
+ ? ((this._events = Object.create(null)),
+ (this._eventsCount = 0))
+ : void 0 !== n[e] &&
+ (0 == --this._eventsCount
+ ? (this._events = Object.create(null))
+ : delete n[e]),
+ this
+ );
+ if (0 === arguments.length) {
+ var o,
+ s = Object.keys(n);
+ for (r = 0; r < s.length; ++r)
+ "removeListener" !== (o = s[r]) && this.removeAllListeners(o);
+ return (
+ this.removeAllListeners("removeListener"),
+ (this._events = Object.create(null)),
+ (this._eventsCount = 0),
+ this
+ );
+ }
+ if ("function" == typeof (t = n[e])) this.removeListener(e, t);
+ else if (void 0 !== t)
+ for (r = t.length - 1; r >= 0; r--)
+ this.removeListener(e, t[r]);
+ return this;
+ }),
+ (s.prototype.listeners = function (e) {
+ return h(this, e, !0);
+ }),
+ (s.prototype.rawListeners = function (e) {
+ return h(this, e, !1);
+ }),
+ (s.listenerCount = function (e, t) {
+ return "function" == typeof e.listenerCount
+ ? e.listenerCount(t)
+ : f.call(e, t);
+ }),
+ (s.prototype.listenerCount = f),
+ (s.prototype.eventNames = function () {
+ return this._eventsCount > 0 ? t(this._events) : [];
+ });
+ },
+ 21102: (e, t, n) => {
+ "use strict";
+ var r = n(46291),
+ o = s(Error);
+ function s(e) {
+ return (t.displayName = e.displayName || e.name), t;
+ function t(t) {
+ return t && (t = r.apply(null, arguments)), new e(t);
+ }
+ }
+ (e.exports = o),
+ (o.eval = s(EvalError)),
+ (o.range = s(RangeError)),
+ (o.reference = s(ReferenceError)),
+ (o.syntax = s(SyntaxError)),
+ (o.type = s(TypeError)),
+ (o.uri = s(URIError)),
+ (o.create = s);
+ },
+ 46291: (e) => {
+ !(function () {
+ var t;
+ function n(e) {
+ for (
+ var t,
+ n,
+ r,
+ o,
+ s = 1,
+ i = [].slice.call(arguments),
+ a = 0,
+ l = e.length,
+ c = "",
+ u = !1,
+ p = !1,
+ h = function () {
+ return i[s++];
+ },
+ f = function () {
+ for (var n = ""; /\d/.test(e[a]); )
+ (n += e[a++]), (t = e[a]);
+ return n.length > 0 ? parseInt(n) : null;
+ };
+ a < l;
+ ++a
+ )
+ if (((t = e[a]), u))
+ switch (
+ ((u = !1),
+ "." == t
+ ? ((p = !1), (t = e[++a]))
+ : "0" == t && "." == e[a + 1]
+ ? ((p = !0), (t = e[(a += 2)]))
+ : (p = !0),
+ (o = f()),
+ t)
+ ) {
+ case "b":
+ c += parseInt(h(), 10).toString(2);
+ break;
+ case "c":
+ c +=
+ "string" == typeof (n = h()) || n instanceof String
+ ? n
+ : String.fromCharCode(parseInt(n, 10));
+ break;
+ case "d":
+ c += parseInt(h(), 10);
+ break;
+ case "f":
+ (r = String(parseFloat(h()).toFixed(o || 6))),
+ (c += p ? r : r.replace(/^0/, ""));
+ break;
+ case "j":
+ c += JSON.stringify(h());
+ break;
+ case "o":
+ c += "0" + parseInt(h(), 10).toString(8);
+ break;
+ case "s":
+ c += h();
+ break;
+ case "x":
+ c += "0x" + parseInt(h(), 10).toString(16);
+ break;
+ case "X":
+ c += "0x" + parseInt(h(), 10).toString(16).toUpperCase();
+ break;
+ default:
+ c += t;
+ }
+ else "%" === t ? (u = !0) : (c += t);
+ return c;
+ }
+ ((t = e.exports = n).format = n),
+ (t.vsprintf = function (e, t) {
+ return n.apply(null, [e].concat(t));
+ }),
+ "undefined" != typeof console &&
+ "function" == typeof console.log &&
+ (t.printf = function () {
+ console.log(n.apply(null, arguments));
+ });
+ })();
+ },
+ 17648: (e) => {
+ "use strict";
+ var t = Array.prototype.slice,
+ n = Object.prototype.toString;
+ e.exports = function (e) {
+ var r = this;
+ if ("function" != typeof r || "[object Function]" !== n.call(r))
+ throw new TypeError(
+ "Function.prototype.bind called on incompatible " + r
+ );
+ for (
+ var o,
+ s = t.call(arguments, 1),
+ i = Math.max(0, r.length - s.length),
+ a = [],
+ l = 0;
+ l < i;
+ l++
+ )
+ a.push("$" + l);
+ if (
+ ((o = Function(
+ "binder",
+ "return function (" +
+ a.join(",") +
+ "){ return binder.apply(this,arguments); }"
+ )(function () {
+ if (this instanceof o) {
+ var n = r.apply(this, s.concat(t.call(arguments)));
+ return Object(n) === n ? n : this;
+ }
+ return r.apply(e, s.concat(t.call(arguments)));
+ })),
+ r.prototype)
+ ) {
+ var c = function () {};
+ (c.prototype = r.prototype),
+ (o.prototype = new c()),
+ (c.prototype = null);
+ }
+ return o;
+ };
+ },
+ 58612: (e, t, n) => {
+ "use strict";
+ var r = n(17648);
+ e.exports = Function.prototype.bind || r;
+ },
+ 40210: (e, t, n) => {
+ "use strict";
+ var r,
+ o = SyntaxError,
+ s = Function,
+ i = TypeError,
+ a = function (e) {
+ try {
+ return s('"use strict"; return (' + e + ").constructor;")();
+ } catch (e) {}
+ },
+ l = Object.getOwnPropertyDescriptor;
+ if (l)
+ try {
+ l({}, "");
+ } catch (e) {
+ l = null;
+ }
+ var c = function () {
+ throw new i();
+ },
+ u = l
+ ? (function () {
+ try {
+ return c;
+ } catch (e) {
+ try {
+ return l(arguments, "callee").get;
+ } catch (e) {
+ return c;
+ }
+ }
+ })()
+ : c,
+ p = n(41405)(),
+ h = n(28185)(),
+ f =
+ Object.getPrototypeOf ||
+ (h
+ ? function (e) {
+ return e.__proto__;
+ }
+ : null),
+ d = {},
+ m = "undefined" != typeof Uint8Array && f ? f(Uint8Array) : r,
+ g = {
+ "%AggregateError%":
+ "undefined" == typeof AggregateError ? r : AggregateError,
+ "%Array%": Array,
+ "%ArrayBuffer%":
+ "undefined" == typeof ArrayBuffer ? r : ArrayBuffer,
+ "%ArrayIteratorPrototype%": p && f ? f([][Symbol.iterator]()) : r,
+ "%AsyncFromSyncIteratorPrototype%": r,
+ "%AsyncFunction%": d,
+ "%AsyncGenerator%": d,
+ "%AsyncGeneratorFunction%": d,
+ "%AsyncIteratorPrototype%": d,
+ "%Atomics%": "undefined" == typeof Atomics ? r : Atomics,
+ "%BigInt%": "undefined" == typeof BigInt ? r : BigInt,
+ "%BigInt64Array%":
+ "undefined" == typeof BigInt64Array ? r : BigInt64Array,
+ "%BigUint64Array%":
+ "undefined" == typeof BigUint64Array ? r : BigUint64Array,
+ "%Boolean%": Boolean,
+ "%DataView%": "undefined" == typeof DataView ? r : DataView,
+ "%Date%": Date,
+ "%decodeURI%": decodeURI,
+ "%decodeURIComponent%": decodeURIComponent,
+ "%encodeURI%": encodeURI,
+ "%encodeURIComponent%": encodeURIComponent,
+ "%Error%": Error,
+ "%eval%": eval,
+ "%EvalError%": EvalError,
+ "%Float32Array%":
+ "undefined" == typeof Float32Array ? r : Float32Array,
+ "%Float64Array%":
+ "undefined" == typeof Float64Array ? r : Float64Array,
+ "%FinalizationRegistry%":
+ "undefined" == typeof FinalizationRegistry
+ ? r
+ : FinalizationRegistry,
+ "%Function%": s,
+ "%GeneratorFunction%": d,
+ "%Int8Array%": "undefined" == typeof Int8Array ? r : Int8Array,
+ "%Int16Array%": "undefined" == typeof Int16Array ? r : Int16Array,
+ "%Int32Array%": "undefined" == typeof Int32Array ? r : Int32Array,
+ "%isFinite%": isFinite,
+ "%isNaN%": isNaN,
+ "%IteratorPrototype%": p && f ? f(f([][Symbol.iterator]())) : r,
+ "%JSON%": "object" == typeof JSON ? JSON : r,
+ "%Map%": "undefined" == typeof Map ? r : Map,
+ "%MapIteratorPrototype%":
+ "undefined" != typeof Map && p && f
+ ? f(new Map()[Symbol.iterator]())
+ : r,
+ "%Math%": Math,
+ "%Number%": Number,
+ "%Object%": Object,
+ "%parseFloat%": parseFloat,
+ "%parseInt%": parseInt,
+ "%Promise%": "undefined" == typeof Promise ? r : Promise,
+ "%Proxy%": "undefined" == typeof Proxy ? r : Proxy,
+ "%RangeError%": RangeError,
+ "%ReferenceError%": ReferenceError,
+ "%Reflect%": "undefined" == typeof Reflect ? r : Reflect,
+ "%RegExp%": RegExp,
+ "%Set%": "undefined" == typeof Set ? r : Set,
+ "%SetIteratorPrototype%":
+ "undefined" != typeof Set && p && f
+ ? f(new Set()[Symbol.iterator]())
+ : r,
+ "%SharedArrayBuffer%":
+ "undefined" == typeof SharedArrayBuffer ? r : SharedArrayBuffer,
+ "%String%": String,
+ "%StringIteratorPrototype%":
+ p && f ? f(""[Symbol.iterator]()) : r,
+ "%Symbol%": p ? Symbol : r,
+ "%SyntaxError%": o,
+ "%ThrowTypeError%": u,
+ "%TypedArray%": m,
+ "%TypeError%": i,
+ "%Uint8Array%": "undefined" == typeof Uint8Array ? r : Uint8Array,
+ "%Uint8ClampedArray%":
+ "undefined" == typeof Uint8ClampedArray ? r : Uint8ClampedArray,
+ "%Uint16Array%":
+ "undefined" == typeof Uint16Array ? r : Uint16Array,
+ "%Uint32Array%":
+ "undefined" == typeof Uint32Array ? r : Uint32Array,
+ "%URIError%": URIError,
+ "%WeakMap%": "undefined" == typeof WeakMap ? r : WeakMap,
+ "%WeakRef%": "undefined" == typeof WeakRef ? r : WeakRef,
+ "%WeakSet%": "undefined" == typeof WeakSet ? r : WeakSet,
+ };
+ if (f)
+ try {
+ null.error;
+ } catch (e) {
+ var y = f(f(e));
+ g["%Error.prototype%"] = y;
+ }
+ var v = function e(t) {
+ var n;
+ if ("%AsyncFunction%" === t) n = a("async function () {}");
+ else if ("%GeneratorFunction%" === t) n = a("function* () {}");
+ else if ("%AsyncGeneratorFunction%" === t)
+ n = a("async function* () {}");
+ else if ("%AsyncGenerator%" === t) {
+ var r = e("%AsyncGeneratorFunction%");
+ r && (n = r.prototype);
+ } else if ("%AsyncIteratorPrototype%" === t) {
+ var o = e("%AsyncGenerator%");
+ o && f && (n = f(o.prototype));
+ }
+ return (g[t] = n), n;
+ },
+ b = {
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
+ "%ArrayPrototype%": ["Array", "prototype"],
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
+ "%AsyncGeneratorPrototype%": [
+ "AsyncGeneratorFunction",
+ "prototype",
+ "prototype",
+ ],
+ "%BooleanPrototype%": ["Boolean", "prototype"],
+ "%DataViewPrototype%": ["DataView", "prototype"],
+ "%DatePrototype%": ["Date", "prototype"],
+ "%ErrorPrototype%": ["Error", "prototype"],
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
+ "%FunctionPrototype%": ["Function", "prototype"],
+ "%Generator%": ["GeneratorFunction", "prototype"],
+ "%GeneratorPrototype%": [
+ "GeneratorFunction",
+ "prototype",
+ "prototype",
+ ],
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
+ "%JSONParse%": ["JSON", "parse"],
+ "%JSONStringify%": ["JSON", "stringify"],
+ "%MapPrototype%": ["Map", "prototype"],
+ "%NumberPrototype%": ["Number", "prototype"],
+ "%ObjectPrototype%": ["Object", "prototype"],
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
+ "%PromisePrototype%": ["Promise", "prototype"],
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
+ "%Promise_all%": ["Promise", "all"],
+ "%Promise_reject%": ["Promise", "reject"],
+ "%Promise_resolve%": ["Promise", "resolve"],
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
+ "%RegExpPrototype%": ["RegExp", "prototype"],
+ "%SetPrototype%": ["Set", "prototype"],
+ "%SharedArrayBufferPrototype%": [
+ "SharedArrayBuffer",
+ "prototype",
+ ],
+ "%StringPrototype%": ["String", "prototype"],
+ "%SymbolPrototype%": ["Symbol", "prototype"],
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
+ "%Uint8ClampedArrayPrototype%": [
+ "Uint8ClampedArray",
+ "prototype",
+ ],
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
+ "%URIErrorPrototype%": ["URIError", "prototype"],
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
+ "%WeakSetPrototype%": ["WeakSet", "prototype"],
+ },
+ w = n(58612),
+ E = n(17642),
+ x = w.call(Function.call, Array.prototype.concat),
+ S = w.call(Function.apply, Array.prototype.splice),
+ _ = w.call(Function.call, String.prototype.replace),
+ j = w.call(Function.call, String.prototype.slice),
+ O = w.call(Function.call, RegExp.prototype.exec),
+ k =
+ /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
+ A = /\\(\\)?/g,
+ C = function (e, t) {
+ var n,
+ r = e;
+ if ((E(b, r) && (r = "%" + (n = b[r])[0] + "%"), E(g, r))) {
+ var s = g[r];
+ if ((s === d && (s = v(r)), void 0 === s && !t))
+ throw new i(
+ "intrinsic " +
+ e +
+ " exists, but is not available. Please file an issue!"
+ );
+ return { alias: n, name: r, value: s };
+ }
+ throw new o("intrinsic " + e + " does not exist!");
+ };
+ e.exports = function (e, t) {
+ if ("string" != typeof e || 0 === e.length)
+ throw new i("intrinsic name must be a non-empty string");
+ if (arguments.length > 1 && "boolean" != typeof t)
+ throw new i('"allowMissing" argument must be a boolean');
+ if (null === O(/^%?[^%]*%?$/, e))
+ throw new o(
+ "`%` may not be present anywhere but at the beginning and end of the intrinsic name"
+ );
+ var n = (function (e) {
+ var t = j(e, 0, 1),
+ n = j(e, -1);
+ if ("%" === t && "%" !== n)
+ throw new o("invalid intrinsic syntax, expected closing `%`");
+ if ("%" === n && "%" !== t)
+ throw new o("invalid intrinsic syntax, expected opening `%`");
+ var r = [];
+ return (
+ _(e, k, function (e, t, n, o) {
+ r[r.length] = n ? _(o, A, "$1") : t || e;
+ }),
+ r
+ );
+ })(e),
+ r = n.length > 0 ? n[0] : "",
+ s = C("%" + r + "%", t),
+ a = s.name,
+ c = s.value,
+ u = !1,
+ p = s.alias;
+ p && ((r = p[0]), S(n, x([0, 1], p)));
+ for (var h = 1, f = !0; h < n.length; h += 1) {
+ var d = n[h],
+ m = j(d, 0, 1),
+ y = j(d, -1);
+ if (
+ ('"' === m ||
+ "'" === m ||
+ "`" === m ||
+ '"' === y ||
+ "'" === y ||
+ "`" === y) &&
+ m !== y
+ )
+ throw new o(
+ "property names with quotes must have matching quotes"
+ );
+ if (
+ (("constructor" !== d && f) || (u = !0),
+ E(g, (a = "%" + (r += "." + d) + "%")))
+ )
+ c = g[a];
+ else if (null != c) {
+ if (!(d in c)) {
+ if (!t)
+ throw new i(
+ "base intrinsic for " +
+ e +
+ " exists, but the property is not available."
+ );
+ return;
+ }
+ if (l && h + 1 >= n.length) {
+ var v = l(c, d);
+ c =
+ (f = !!v) && "get" in v && !("originalValue" in v.get)
+ ? v.get
+ : c[d];
+ } else (f = E(c, d)), (c = c[d]);
+ f && !u && (g[a] = c);
+ }
+ }
+ return c;
+ };
+ },
+ 28185: (e) => {
+ "use strict";
+ var t = { foo: {} },
+ n = Object;
+ e.exports = function () {
+ return (
+ { __proto__: t }.foo === t.foo &&
+ !({ __proto__: null } instanceof n)
+ );
+ };
+ },
+ 41405: (e, t, n) => {
+ "use strict";
+ var r = "undefined" != typeof Symbol && Symbol,
+ o = n(55419);
+ e.exports = function () {
+ return (
+ "function" == typeof r &&
+ "function" == typeof Symbol &&
+ "symbol" == typeof r("foo") &&
+ "symbol" == typeof Symbol("bar") &&
+ o()
+ );
+ };
+ },
+ 55419: (e) => {
+ "use strict";
+ e.exports = function () {
+ if (
+ "function" != typeof Symbol ||
+ "function" != typeof Object.getOwnPropertySymbols
+ )
+ return !1;
+ if ("symbol" == typeof Symbol.iterator) return !0;
+ var e = {},
+ t = Symbol("test"),
+ n = Object(t);
+ if ("string" == typeof t) return !1;
+ if ("[object Symbol]" !== Object.prototype.toString.call(t))
+ return !1;
+ if ("[object Symbol]" !== Object.prototype.toString.call(n))
+ return !1;
+ for (t in ((e[t] = 42), e)) return !1;
+ if ("function" == typeof Object.keys && 0 !== Object.keys(e).length)
+ return !1;
+ if (
+ "function" == typeof Object.getOwnPropertyNames &&
+ 0 !== Object.getOwnPropertyNames(e).length
+ )
+ return !1;
+ var r = Object.getOwnPropertySymbols(e);
+ if (1 !== r.length || r[0] !== t) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
+ if ("function" == typeof Object.getOwnPropertyDescriptor) {
+ var o = Object.getOwnPropertyDescriptor(e, t);
+ if (42 !== o.value || !0 !== o.enumerable) return !1;
+ }
+ return !0;
+ };
+ },
+ 17642: (e, t, n) => {
+ "use strict";
+ var r = n(58612);
+ e.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
+ },
+ 47802: (e) => {
+ function t(e) {
+ return (
+ e instanceof Map
+ ? (e.clear =
+ e.delete =
+ e.set =
+ function () {
+ throw new Error("map is read-only");
+ })
+ : e instanceof Set &&
+ (e.add =
+ e.clear =
+ e.delete =
+ function () {
+ throw new Error("set is read-only");
+ }),
+ Object.freeze(e),
+ Object.getOwnPropertyNames(e).forEach(function (n) {
+ var r = e[n];
+ "object" != typeof r || Object.isFrozen(r) || t(r);
+ }),
+ e
+ );
+ }
+ var n = t,
+ r = t;
+ n.default = r;
+ class o {
+ constructor(e) {
+ void 0 === e.data && (e.data = {}),
+ (this.data = e.data),
+ (this.isMatchIgnored = !1);
+ }
+ ignoreMatch() {
+ this.isMatchIgnored = !0;
+ }
+ }
+ function s(e) {
+ return e
+ .replace(/&/g, "&")
+ .replace(//g, ">")
+ .replace(/"/g, """)
+ .replace(/'/g, "'");
+ }
+ function i(e, ...t) {
+ const n = Object.create(null);
+ for (const t in e) n[t] = e[t];
+ return (
+ t.forEach(function (e) {
+ for (const t in e) n[t] = e[t];
+ }),
+ n
+ );
+ }
+ const a = (e) => !!e.kind;
+ class l {
+ constructor(e, t) {
+ (this.buffer = ""),
+ (this.classPrefix = t.classPrefix),
+ e.walk(this);
+ }
+ addText(e) {
+ this.buffer += s(e);
+ }
+ openNode(e) {
+ if (!a(e)) return;
+ let t = e.kind;
+ e.sublanguage || (t = `${this.classPrefix}${t}`), this.span(t);
+ }
+ closeNode(e) {
+ a(e) && (this.buffer += "");
+ }
+ value() {
+ return this.buffer;
+ }
+ span(e) {
+ this.buffer += ``;
+ }
+ }
+ class c {
+ constructor() {
+ (this.rootNode = { children: [] }),
+ (this.stack = [this.rootNode]);
+ }
+ get top() {
+ return this.stack[this.stack.length - 1];
+ }
+ get root() {
+ return this.rootNode;
+ }
+ add(e) {
+ this.top.children.push(e);
+ }
+ openNode(e) {
+ const t = { kind: e, children: [] };
+ this.add(t), this.stack.push(t);
+ }
+ closeNode() {
+ if (this.stack.length > 1) return this.stack.pop();
+ }
+ closeAllNodes() {
+ for (; this.closeNode(); );
+ }
+ toJSON() {
+ return JSON.stringify(this.rootNode, null, 4);
+ }
+ walk(e) {
+ return this.constructor._walk(e, this.rootNode);
+ }
+ static _walk(e, t) {
+ return (
+ "string" == typeof t
+ ? e.addText(t)
+ : t.children &&
+ (e.openNode(t),
+ t.children.forEach((t) => this._walk(e, t)),
+ e.closeNode(t)),
+ e
+ );
+ }
+ static _collapse(e) {
+ "string" != typeof e &&
+ e.children &&
+ (e.children.every((e) => "string" == typeof e)
+ ? (e.children = [e.children.join("")])
+ : e.children.forEach((e) => {
+ c._collapse(e);
+ }));
+ }
+ }
+ class u extends c {
+ constructor(e) {
+ super(), (this.options = e);
+ }
+ addKeyword(e, t) {
+ "" !== e && (this.openNode(t), this.addText(e), this.closeNode());
+ }
+ addText(e) {
+ "" !== e && this.add(e);
+ }
+ addSublanguage(e, t) {
+ const n = e.root;
+ (n.kind = t), (n.sublanguage = !0), this.add(n);
+ }
+ toHTML() {
+ return new l(this, this.options).value();
+ }
+ finalize() {
+ return !0;
+ }
+ }
+ function p(e) {
+ return e ? ("string" == typeof e ? e : e.source) : null;
+ }
+ const h = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
+ const f = "[a-zA-Z]\\w*",
+ d = "[a-zA-Z_]\\w*",
+ m = "\\b\\d+(\\.\\d+)?",
+ g =
+ "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",
+ y = "\\b(0b[01]+)",
+ v = { begin: "\\\\[\\s\\S]", relevance: 0 },
+ b = {
+ className: "string",
+ begin: "'",
+ end: "'",
+ illegal: "\\n",
+ contains: [v],
+ },
+ w = {
+ className: "string",
+ begin: '"',
+ end: '"',
+ illegal: "\\n",
+ contains: [v],
+ },
+ E = {
+ begin:
+ /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/,
+ },
+ x = function (e, t, n = {}) {
+ const r = i(
+ { className: "comment", begin: e, end: t, contains: [] },
+ n
+ );
+ return (
+ r.contains.push(E),
+ r.contains.push({
+ className: "doctag",
+ begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",
+ relevance: 0,
+ }),
+ r
+ );
+ },
+ S = x("//", "$"),
+ _ = x("/\\*", "\\*/"),
+ j = x("#", "$"),
+ O = { className: "number", begin: m, relevance: 0 },
+ k = { className: "number", begin: g, relevance: 0 },
+ A = { className: "number", begin: y, relevance: 0 },
+ C = {
+ className: "number",
+ begin:
+ m +
+ "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
+ relevance: 0,
+ },
+ P = {
+ begin: /(?=\/[^/\n]*\/)/,
+ contains: [
+ {
+ className: "regexp",
+ begin: /\//,
+ end: /\/[gimuy]*/,
+ illegal: /\n/,
+ contains: [
+ v,
+ { begin: /\[/, end: /\]/, relevance: 0, contains: [v] },
+ ],
+ },
+ ],
+ },
+ N = { className: "title", begin: f, relevance: 0 },
+ I = { className: "title", begin: d, relevance: 0 },
+ T = { begin: "\\.\\s*" + d, relevance: 0 };
+ var R = Object.freeze({
+ __proto__: null,
+ MATCH_NOTHING_RE: /\b\B/,
+ IDENT_RE: f,
+ UNDERSCORE_IDENT_RE: d,
+ NUMBER_RE: m,
+ C_NUMBER_RE: g,
+ BINARY_NUMBER_RE: y,
+ RE_STARTERS_RE:
+ "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
+ SHEBANG: (e = {}) => {
+ const t = /^#![ ]*\//;
+ return (
+ e.binary &&
+ (e.begin = (function (...e) {
+ return e.map((e) => p(e)).join("");
+ })(t, /.*\b/, e.binary, /\b.*/)),
+ i(
+ {
+ className: "meta",
+ begin: t,
+ end: /$/,
+ relevance: 0,
+ "on:begin": (e, t) => {
+ 0 !== e.index && t.ignoreMatch();
+ },
+ },
+ e
+ )
+ );
+ },
+ BACKSLASH_ESCAPE: v,
+ APOS_STRING_MODE: b,
+ QUOTE_STRING_MODE: w,
+ PHRASAL_WORDS_MODE: E,
+ COMMENT: x,
+ C_LINE_COMMENT_MODE: S,
+ C_BLOCK_COMMENT_MODE: _,
+ HASH_COMMENT_MODE: j,
+ NUMBER_MODE: O,
+ C_NUMBER_MODE: k,
+ BINARY_NUMBER_MODE: A,
+ CSS_NUMBER_MODE: C,
+ REGEXP_MODE: P,
+ TITLE_MODE: N,
+ UNDERSCORE_TITLE_MODE: I,
+ METHOD_GUARD: T,
+ END_SAME_AS_BEGIN: function (e) {
+ return Object.assign(e, {
+ "on:begin": (e, t) => {
+ t.data._beginMatch = e[1];
+ },
+ "on:end": (e, t) => {
+ t.data._beginMatch !== e[1] && t.ignoreMatch();
+ },
+ });
+ },
+ });
+ function M(e, t) {
+ "." === e.input[e.index - 1] && t.ignoreMatch();
+ }
+ function D(e, t) {
+ t &&
+ e.beginKeywords &&
+ ((e.begin =
+ "\\b(" +
+ e.beginKeywords.split(" ").join("|") +
+ ")(?!\\.)(?=\\b|\\s)"),
+ (e.__beforeBegin = M),
+ (e.keywords = e.keywords || e.beginKeywords),
+ delete e.beginKeywords,
+ void 0 === e.relevance && (e.relevance = 0));
+ }
+ function F(e, t) {
+ Array.isArray(e.illegal) &&
+ (e.illegal = (function (...e) {
+ return "(" + e.map((e) => p(e)).join("|") + ")";
+ })(...e.illegal));
+ }
+ function L(e, t) {
+ if (e.match) {
+ if (e.begin || e.end)
+ throw new Error("begin & end are not supported with match");
+ (e.begin = e.match), delete e.match;
+ }
+ }
+ function B(e, t) {
+ void 0 === e.relevance && (e.relevance = 1);
+ }
+ const $ = [
+ "of",
+ "and",
+ "for",
+ "in",
+ "not",
+ "or",
+ "if",
+ "then",
+ "parent",
+ "list",
+ "value",
+ ],
+ q = "keyword";
+ function U(e, t, n = q) {
+ const r = {};
+ return (
+ "string" == typeof e
+ ? o(n, e.split(" "))
+ : Array.isArray(e)
+ ? o(n, e)
+ : Object.keys(e).forEach(function (n) {
+ Object.assign(r, U(e[n], t, n));
+ }),
+ r
+ );
+ function o(e, n) {
+ t && (n = n.map((e) => e.toLowerCase())),
+ n.forEach(function (t) {
+ const n = t.split("|");
+ r[n[0]] = [e, z(n[0], n[1])];
+ });
+ }
+ }
+ function z(e, t) {
+ return t
+ ? Number(t)
+ : (function (e) {
+ return $.includes(e.toLowerCase());
+ })(e)
+ ? 0
+ : 1;
+ }
+ function V(e, { plugins: t }) {
+ function n(t, n) {
+ return new RegExp(
+ p(t),
+ "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : "")
+ );
+ }
+ class r {
+ constructor() {
+ (this.matchIndexes = {}),
+ (this.regexes = []),
+ (this.matchAt = 1),
+ (this.position = 0);
+ }
+ addRule(e, t) {
+ (t.position = this.position++),
+ (this.matchIndexes[this.matchAt] = t),
+ this.regexes.push([t, e]),
+ (this.matchAt +=
+ (function (e) {
+ return new RegExp(e.toString() + "|").exec("").length - 1;
+ })(e) + 1);
+ }
+ compile() {
+ 0 === this.regexes.length && (this.exec = () => null);
+ const e = this.regexes.map((e) => e[1]);
+ (this.matcherRe = n(
+ (function (e, t = "|") {
+ let n = 0;
+ return e
+ .map((e) => {
+ n += 1;
+ const t = n;
+ let r = p(e),
+ o = "";
+ for (; r.length > 0; ) {
+ const e = h.exec(r);
+ if (!e) {
+ o += r;
+ break;
+ }
+ (o += r.substring(0, e.index)),
+ (r = r.substring(e.index + e[0].length)),
+ "\\" === e[0][0] && e[1]
+ ? (o += "\\" + String(Number(e[1]) + t))
+ : ((o += e[0]), "(" === e[0] && n++);
+ }
+ return o;
+ })
+ .map((e) => `(${e})`)
+ .join(t);
+ })(e),
+ !0
+ )),
+ (this.lastIndex = 0);
+ }
+ exec(e) {
+ this.matcherRe.lastIndex = this.lastIndex;
+ const t = this.matcherRe.exec(e);
+ if (!t) return null;
+ const n = t.findIndex((e, t) => t > 0 && void 0 !== e),
+ r = this.matchIndexes[n];
+ return t.splice(0, n), Object.assign(t, r);
+ }
+ }
+ class o {
+ constructor() {
+ (this.rules = []),
+ (this.multiRegexes = []),
+ (this.count = 0),
+ (this.lastIndex = 0),
+ (this.regexIndex = 0);
+ }
+ getMatcher(e) {
+ if (this.multiRegexes[e]) return this.multiRegexes[e];
+ const t = new r();
+ return (
+ this.rules.slice(e).forEach(([e, n]) => t.addRule(e, n)),
+ t.compile(),
+ (this.multiRegexes[e] = t),
+ t
+ );
+ }
+ resumingScanAtSamePosition() {
+ return 0 !== this.regexIndex;
+ }
+ considerAll() {
+ this.regexIndex = 0;
+ }
+ addRule(e, t) {
+ this.rules.push([e, t]), "begin" === t.type && this.count++;
+ }
+ exec(e) {
+ const t = this.getMatcher(this.regexIndex);
+ t.lastIndex = this.lastIndex;
+ let n = t.exec(e);
+ if (this.resumingScanAtSamePosition())
+ if (n && n.index === this.lastIndex);
+ else {
+ const t = this.getMatcher(0);
+ (t.lastIndex = this.lastIndex + 1), (n = t.exec(e));
+ }
+ return (
+ n &&
+ ((this.regexIndex += n.position + 1),
+ this.regexIndex === this.count && this.considerAll()),
+ n
+ );
+ }
+ }
+ if (
+ (e.compilerExtensions || (e.compilerExtensions = []),
+ e.contains && e.contains.includes("self"))
+ )
+ throw new Error(
+ "ERR: contains `self` is not supported at the top-level of a language. See documentation."
+ );
+ return (
+ (e.classNameAliases = i(e.classNameAliases || {})),
+ (function t(r, s) {
+ const a = r;
+ if (r.isCompiled) return a;
+ [L].forEach((e) => e(r, s)),
+ e.compilerExtensions.forEach((e) => e(r, s)),
+ (r.__beforeBegin = null),
+ [D, F, B].forEach((e) => e(r, s)),
+ (r.isCompiled = !0);
+ let l = null;
+ if (
+ ("object" == typeof r.keywords &&
+ ((l = r.keywords.$pattern), delete r.keywords.$pattern),
+ r.keywords &&
+ (r.keywords = U(r.keywords, e.case_insensitive)),
+ r.lexemes && l)
+ )
+ throw new Error(
+ "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) "
+ );
+ return (
+ (l = l || r.lexemes || /\w+/),
+ (a.keywordPatternRe = n(l, !0)),
+ s &&
+ (r.begin || (r.begin = /\B|\b/),
+ (a.beginRe = n(r.begin)),
+ r.endSameAsBegin && (r.end = r.begin),
+ r.end || r.endsWithParent || (r.end = /\B|\b/),
+ r.end && (a.endRe = n(r.end)),
+ (a.terminatorEnd = p(r.end) || ""),
+ r.endsWithParent &&
+ s.terminatorEnd &&
+ (a.terminatorEnd +=
+ (r.end ? "|" : "") + s.terminatorEnd)),
+ r.illegal && (a.illegalRe = n(r.illegal)),
+ r.contains || (r.contains = []),
+ (r.contains = [].concat(
+ ...r.contains.map(function (e) {
+ return (function (e) {
+ e.variants &&
+ !e.cachedVariants &&
+ (e.cachedVariants = e.variants.map(function (t) {
+ return i(e, { variants: null }, t);
+ }));
+ if (e.cachedVariants) return e.cachedVariants;
+ if (W(e))
+ return i(e, {
+ starts: e.starts ? i(e.starts) : null,
+ });
+ if (Object.isFrozen(e)) return i(e);
+ return e;
+ })("self" === e ? r : e);
+ })
+ )),
+ r.contains.forEach(function (e) {
+ t(e, a);
+ }),
+ r.starts && t(r.starts, s),
+ (a.matcher = (function (e) {
+ const t = new o();
+ return (
+ e.contains.forEach((e) =>
+ t.addRule(e.begin, { rule: e, type: "begin" })
+ ),
+ e.terminatorEnd &&
+ t.addRule(e.terminatorEnd, { type: "end" }),
+ e.illegal && t.addRule(e.illegal, { type: "illegal" }),
+ t
+ );
+ })(a)),
+ a
+ );
+ })(e)
+ );
+ }
+ function W(e) {
+ return !!e && (e.endsWithParent || W(e.starts));
+ }
+ function J(e) {
+ const t = {
+ props: ["language", "code", "autodetect"],
+ data: function () {
+ return { detectedLanguage: "", unknownLanguage: !1 };
+ },
+ computed: {
+ className() {
+ return this.unknownLanguage
+ ? ""
+ : "hljs " + this.detectedLanguage;
+ },
+ highlighted() {
+ if (!this.autoDetect && !e.getLanguage(this.language))
+ return (
+ console.warn(
+ `The language "${this.language}" you specified could not be found.`
+ ),
+ (this.unknownLanguage = !0),
+ s(this.code)
+ );
+ let t = {};
+ return (
+ this.autoDetect
+ ? ((t = e.highlightAuto(this.code)),
+ (this.detectedLanguage = t.language))
+ : ((t = e.highlight(
+ this.language,
+ this.code,
+ this.ignoreIllegals
+ )),
+ (this.detectedLanguage = this.language)),
+ t.value
+ );
+ },
+ autoDetect() {
+ return (
+ !this.language ||
+ ((e = this.autodetect), Boolean(e || "" === e))
+ );
+ var e;
+ },
+ ignoreIllegals: () => !0,
+ },
+ render(e) {
+ return e("pre", {}, [
+ e("code", {
+ class: this.className,
+ domProps: { innerHTML: this.highlighted },
+ }),
+ ]);
+ },
+ };
+ return {
+ Component: t,
+ VuePlugin: {
+ install(e) {
+ e.component("highlightjs", t);
+ },
+ },
+ };
+ }
+ const K = {
+ "after:highlightElement": ({ el: e, result: t, text: n }) => {
+ const r = G(e);
+ if (!r.length) return;
+ const o = document.createElement("div");
+ (o.innerHTML = t.value),
+ (t.value = (function (e, t, n) {
+ let r = 0,
+ o = "";
+ const i = [];
+ function a() {
+ return e.length && t.length
+ ? e[0].offset !== t[0].offset
+ ? e[0].offset < t[0].offset
+ ? e
+ : t
+ : "start" === t[0].event
+ ? e
+ : t
+ : e.length
+ ? e
+ : t;
+ }
+ function l(e) {
+ function t(e) {
+ return " " + e.nodeName + '="' + s(e.value) + '"';
+ }
+ o +=
+ "<" + H(e) + [].map.call(e.attributes, t).join("") + ">";
+ }
+ function c(e) {
+ o += "" + H(e) + ">";
+ }
+ function u(e) {
+ ("start" === e.event ? l : c)(e.node);
+ }
+ for (; e.length || t.length; ) {
+ let t = a();
+ if (
+ ((o += s(n.substring(r, t[0].offset))),
+ (r = t[0].offset),
+ t === e)
+ ) {
+ i.reverse().forEach(c);
+ do {
+ u(t.splice(0, 1)[0]), (t = a());
+ } while (t === e && t.length && t[0].offset === r);
+ i.reverse().forEach(l);
+ } else
+ "start" === t[0].event ? i.push(t[0].node) : i.pop(),
+ u(t.splice(0, 1)[0]);
+ }
+ return o + s(n.substr(r));
+ })(r, G(o), n));
+ },
+ };
+ function H(e) {
+ return e.nodeName.toLowerCase();
+ }
+ function G(e) {
+ const t = [];
+ return (
+ (function e(n, r) {
+ for (let o = n.firstChild; o; o = o.nextSibling)
+ 3 === o.nodeType
+ ? (r += o.nodeValue.length)
+ : 1 === o.nodeType &&
+ (t.push({ event: "start", offset: r, node: o }),
+ (r = e(o, r)),
+ H(o).match(/br|hr|img|input/) ||
+ t.push({ event: "stop", offset: r, node: o }));
+ return r;
+ })(e, 0),
+ t
+ );
+ }
+ const Z = {},
+ Y = (e) => {
+ console.error(e);
+ },
+ X = (e, ...t) => {
+ console.log(`WARN: ${e}`, ...t);
+ },
+ Q = (e, t) => {
+ Z[`${e}/${t}`] ||
+ (console.log(`Deprecated as of ${e}. ${t}`),
+ (Z[`${e}/${t}`] = !0));
+ },
+ ee = s,
+ te = i,
+ ne = Symbol("nomatch");
+ var re = (function (e) {
+ const t = Object.create(null),
+ r = Object.create(null),
+ s = [];
+ let i = !0;
+ const a = /(^(<[^>]+>|\t|)+|\n)/gm,
+ l =
+ "Could not find the language '{}', did you forget to load/include a language module?",
+ c = { disableAutodetect: !0, name: "Plain text", contains: [] };
+ let p = {
+ noHighlightRe: /^(no-?highlight)$/i,
+ languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
+ classPrefix: "hljs-",
+ tabReplace: null,
+ useBR: !1,
+ languages: null,
+ __emitter: u,
+ };
+ function h(e) {
+ return p.noHighlightRe.test(e);
+ }
+ function f(e, t, n, r) {
+ let o = "",
+ s = "";
+ "object" == typeof t
+ ? ((o = e),
+ (n = t.ignoreIllegals),
+ (s = t.language),
+ (r = void 0))
+ : (Q(
+ "10.7.0",
+ "highlight(lang, code, ...args) has been deprecated."
+ ),
+ Q(
+ "10.7.0",
+ "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"
+ ),
+ (s = e),
+ (o = t));
+ const i = { code: o, language: s };
+ O("before:highlight", i);
+ const a = i.result ? i.result : d(i.language, i.code, n, r);
+ return (a.code = i.code), O("after:highlight", a), a;
+ }
+ function d(e, n, r, a) {
+ function c(e, t) {
+ const n = E.case_insensitive ? t[0].toLowerCase() : t[0];
+ return (
+ Object.prototype.hasOwnProperty.call(e.keywords, n) &&
+ e.keywords[n]
+ );
+ }
+ function u() {
+ null != j.subLanguage
+ ? (function () {
+ if ("" === A) return;
+ let e = null;
+ if ("string" == typeof j.subLanguage) {
+ if (!t[j.subLanguage]) return void k.addText(A);
+ (e = d(j.subLanguage, A, !0, O[j.subLanguage])),
+ (O[j.subLanguage] = e.top);
+ } else
+ e = m(A, j.subLanguage.length ? j.subLanguage : null);
+ j.relevance > 0 && (C += e.relevance),
+ k.addSublanguage(e.emitter, e.language);
+ })()
+ : (function () {
+ if (!j.keywords) return void k.addText(A);
+ let e = 0;
+ j.keywordPatternRe.lastIndex = 0;
+ let t = j.keywordPatternRe.exec(A),
+ n = "";
+ for (; t; ) {
+ n += A.substring(e, t.index);
+ const r = c(j, t);
+ if (r) {
+ const [e, o] = r;
+ if (
+ (k.addText(n),
+ (n = ""),
+ (C += o),
+ e.startsWith("_"))
+ )
+ n += t[0];
+ else {
+ const n = E.classNameAliases[e] || e;
+ k.addKeyword(t[0], n);
+ }
+ } else n += t[0];
+ (e = j.keywordPatternRe.lastIndex),
+ (t = j.keywordPatternRe.exec(A));
+ }
+ (n += A.substr(e)), k.addText(n);
+ })(),
+ (A = "");
+ }
+ function h(e) {
+ return (
+ e.className &&
+ k.openNode(E.classNameAliases[e.className] || e.className),
+ (j = Object.create(e, { parent: { value: j } })),
+ j
+ );
+ }
+ function f(e, t, n) {
+ let r = (function (e, t) {
+ const n = e && e.exec(t);
+ return n && 0 === n.index;
+ })(e.endRe, n);
+ if (r) {
+ if (e["on:end"]) {
+ const n = new o(e);
+ e["on:end"](t, n), n.isMatchIgnored && (r = !1);
+ }
+ if (r) {
+ for (; e.endsParent && e.parent; ) e = e.parent;
+ return e;
+ }
+ }
+ if (e.endsWithParent) return f(e.parent, t, n);
+ }
+ function g(e) {
+ return 0 === j.matcher.regexIndex
+ ? ((A += e[0]), 1)
+ : ((I = !0), 0);
+ }
+ function y(e) {
+ const t = e[0],
+ n = e.rule,
+ r = new o(n),
+ s = [n.__beforeBegin, n["on:begin"]];
+ for (const n of s)
+ if (n && (n(e, r), r.isMatchIgnored)) return g(t);
+ return (
+ n &&
+ n.endSameAsBegin &&
+ (n.endRe = new RegExp(
+ t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"),
+ "m"
+ )),
+ n.skip
+ ? (A += t)
+ : (n.excludeBegin && (A += t),
+ u(),
+ n.returnBegin || n.excludeBegin || (A = t)),
+ h(n),
+ n.returnBegin ? 0 : t.length
+ );
+ }
+ function v(e) {
+ const t = e[0],
+ r = n.substr(e.index),
+ o = f(j, e, r);
+ if (!o) return ne;
+ const s = j;
+ s.skip
+ ? (A += t)
+ : (s.returnEnd || s.excludeEnd || (A += t),
+ u(),
+ s.excludeEnd && (A = t));
+ do {
+ j.className && k.closeNode(),
+ j.skip || j.subLanguage || (C += j.relevance),
+ (j = j.parent);
+ } while (j !== o.parent);
+ return (
+ o.starts &&
+ (o.endSameAsBegin && (o.starts.endRe = o.endRe),
+ h(o.starts)),
+ s.returnEnd ? 0 : t.length
+ );
+ }
+ let b = {};
+ function w(t, o) {
+ const s = o && o[0];
+ if (((A += t), null == s)) return u(), 0;
+ if (
+ "begin" === b.type &&
+ "end" === o.type &&
+ b.index === o.index &&
+ "" === s
+ ) {
+ if (((A += n.slice(o.index, o.index + 1)), !i)) {
+ const t = new Error("0 width match regex");
+ throw ((t.languageName = e), (t.badRule = b.rule), t);
+ }
+ return 1;
+ }
+ if (((b = o), "begin" === o.type)) return y(o);
+ if ("illegal" === o.type && !r) {
+ const e = new Error(
+ 'Illegal lexeme "' +
+ s +
+ '" for mode "' +
+ (j.className || "") +
+ '"'
+ );
+ throw ((e.mode = j), e);
+ }
+ if ("end" === o.type) {
+ const e = v(o);
+ if (e !== ne) return e;
+ }
+ if ("illegal" === o.type && "" === s) return 1;
+ if (N > 1e5 && N > 3 * o.index) {
+ throw new Error(
+ "potential infinite loop, way more iterations than matches"
+ );
+ }
+ return (A += s), s.length;
+ }
+ const E = S(e);
+ if (!E)
+ throw (
+ (Y(l.replace("{}", e)),
+ new Error('Unknown language: "' + e + '"'))
+ );
+ const x = V(E, { plugins: s });
+ let _ = "",
+ j = a || x;
+ const O = {},
+ k = new p.__emitter(p);
+ !(function () {
+ const e = [];
+ for (let t = j; t !== E; t = t.parent)
+ t.className && e.unshift(t.className);
+ e.forEach((e) => k.openNode(e));
+ })();
+ let A = "",
+ C = 0,
+ P = 0,
+ N = 0,
+ I = !1;
+ try {
+ for (j.matcher.considerAll(); ; ) {
+ N++,
+ I ? (I = !1) : j.matcher.considerAll(),
+ (j.matcher.lastIndex = P);
+ const e = j.matcher.exec(n);
+ if (!e) break;
+ const t = w(n.substring(P, e.index), e);
+ P = e.index + t;
+ }
+ return (
+ w(n.substr(P)),
+ k.closeAllNodes(),
+ k.finalize(),
+ (_ = k.toHTML()),
+ {
+ relevance: Math.floor(C),
+ value: _,
+ language: e,
+ illegal: !1,
+ emitter: k,
+ top: j,
+ }
+ );
+ } catch (t) {
+ if (t.message && t.message.includes("Illegal"))
+ return {
+ illegal: !0,
+ illegalBy: {
+ msg: t.message,
+ context: n.slice(P - 100, P + 100),
+ mode: t.mode,
+ },
+ sofar: _,
+ relevance: 0,
+ value: ee(n),
+ emitter: k,
+ };
+ if (i)
+ return {
+ illegal: !1,
+ relevance: 0,
+ value: ee(n),
+ emitter: k,
+ language: e,
+ top: j,
+ errorRaised: t,
+ };
+ throw t;
+ }
+ }
+ function m(e, n) {
+ n = n || p.languages || Object.keys(t);
+ const r = (function (e) {
+ const t = {
+ relevance: 0,
+ emitter: new p.__emitter(p),
+ value: ee(e),
+ illegal: !1,
+ top: c,
+ };
+ return t.emitter.addText(e), t;
+ })(e),
+ o = n
+ .filter(S)
+ .filter(j)
+ .map((t) => d(t, e, !1));
+ o.unshift(r);
+ const s = o.sort((e, t) => {
+ if (e.relevance !== t.relevance)
+ return t.relevance - e.relevance;
+ if (e.language && t.language) {
+ if (S(e.language).supersetOf === t.language) return 1;
+ if (S(t.language).supersetOf === e.language) return -1;
+ }
+ return 0;
+ }),
+ [i, a] = s,
+ l = i;
+ return (l.second_best = a), l;
+ }
+ const g = {
+ "before:highlightElement": ({ el: e }) => {
+ p.useBR &&
+ (e.innerHTML = e.innerHTML
+ .replace(/\n/g, "")
+ .replace(/ /g, "\n"));
+ },
+ "after:highlightElement": ({ result: e }) => {
+ p.useBR && (e.value = e.value.replace(/\n/g, " "));
+ },
+ },
+ y = /^(<[^>]+>|\t)+/gm,
+ v = {
+ "after:highlightElement": ({ result: e }) => {
+ p.tabReplace &&
+ (e.value = e.value.replace(y, (e) =>
+ e.replace(/\t/g, p.tabReplace)
+ ));
+ },
+ };
+ function b(e) {
+ let t = null;
+ const n = (function (e) {
+ let t = e.className + " ";
+ t += e.parentNode ? e.parentNode.className : "";
+ const n = p.languageDetectRe.exec(t);
+ if (n) {
+ const t = S(n[1]);
+ return (
+ t ||
+ (X(l.replace("{}", n[1])),
+ X(
+ "Falling back to no-highlight mode for this block.",
+ e
+ )),
+ t ? n[1] : "no-highlight"
+ );
+ }
+ return t.split(/\s+/).find((e) => h(e) || S(e));
+ })(e);
+ if (h(n)) return;
+ O("before:highlightElement", { el: e, language: n }), (t = e);
+ const o = t.textContent,
+ s = n ? f(o, { language: n, ignoreIllegals: !0 }) : m(o);
+ O("after:highlightElement", { el: e, result: s, text: o }),
+ (e.innerHTML = s.value),
+ (function (e, t, n) {
+ const o = t ? r[t] : n;
+ e.classList.add("hljs"), o && e.classList.add(o);
+ })(e, n, s.language),
+ (e.result = {
+ language: s.language,
+ re: s.relevance,
+ relavance: s.relevance,
+ }),
+ s.second_best &&
+ (e.second_best = {
+ language: s.second_best.language,
+ re: s.second_best.relevance,
+ relavance: s.second_best.relevance,
+ });
+ }
+ const w = () => {
+ if (w.called) return;
+ (w.called = !0),
+ Q(
+ "10.6.0",
+ "initHighlighting() is deprecated. Use highlightAll() instead."
+ );
+ document.querySelectorAll("pre code").forEach(b);
+ };
+ let E = !1;
+ function x() {
+ if ("loading" === document.readyState) return void (E = !0);
+ document.querySelectorAll("pre code").forEach(b);
+ }
+ function S(e) {
+ return (e = (e || "").toLowerCase()), t[e] || t[r[e]];
+ }
+ function _(e, { languageName: t }) {
+ "string" == typeof e && (e = [e]),
+ e.forEach((e) => {
+ r[e.toLowerCase()] = t;
+ });
+ }
+ function j(e) {
+ const t = S(e);
+ return t && !t.disableAutodetect;
+ }
+ function O(e, t) {
+ const n = e;
+ s.forEach(function (e) {
+ e[n] && e[n](t);
+ });
+ }
+ "undefined" != typeof window &&
+ window.addEventListener &&
+ window.addEventListener(
+ "DOMContentLoaded",
+ function () {
+ E && x();
+ },
+ !1
+ ),
+ Object.assign(e, {
+ highlight: f,
+ highlightAuto: m,
+ highlightAll: x,
+ fixMarkup: function (e) {
+ return (
+ Q("10.2.0", "fixMarkup will be removed entirely in v11.0"),
+ Q(
+ "10.2.0",
+ "Please see https://github.com/highlightjs/highlight.js/issues/2534"
+ ),
+ (t = e),
+ p.tabReplace || p.useBR
+ ? t.replace(a, (e) =>
+ "\n" === e
+ ? p.useBR
+ ? " "
+ : e
+ : p.tabReplace
+ ? e.replace(/\t/g, p.tabReplace)
+ : e
+ )
+ : t
+ );
+ var t;
+ },
+ highlightElement: b,
+ highlightBlock: function (e) {
+ return (
+ Q(
+ "10.7.0",
+ "highlightBlock will be removed entirely in v12.0"
+ ),
+ Q("10.7.0", "Please use highlightElement now."),
+ b(e)
+ );
+ },
+ configure: function (e) {
+ e.useBR &&
+ (Q("10.3.0", "'useBR' will be removed entirely in v11.0"),
+ Q(
+ "10.3.0",
+ "Please see https://github.com/highlightjs/highlight.js/issues/2559"
+ )),
+ (p = te(p, e));
+ },
+ initHighlighting: w,
+ initHighlightingOnLoad: function () {
+ Q(
+ "10.6.0",
+ "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."
+ ),
+ (E = !0);
+ },
+ registerLanguage: function (n, r) {
+ let o = null;
+ try {
+ o = r(e);
+ } catch (e) {
+ if (
+ (Y(
+ "Language definition for '{}' could not be registered.".replace(
+ "{}",
+ n
+ )
+ ),
+ !i)
+ )
+ throw e;
+ Y(e), (o = c);
+ }
+ o.name || (o.name = n),
+ (t[n] = o),
+ (o.rawDefinition = r.bind(null, e)),
+ o.aliases && _(o.aliases, { languageName: n });
+ },
+ unregisterLanguage: function (e) {
+ delete t[e];
+ for (const t of Object.keys(r)) r[t] === e && delete r[t];
+ },
+ listLanguages: function () {
+ return Object.keys(t);
+ },
+ getLanguage: S,
+ registerAliases: _,
+ requireLanguage: function (e) {
+ Q(
+ "10.4.0",
+ "requireLanguage will be removed entirely in v11."
+ ),
+ Q(
+ "10.4.0",
+ "Please see https://github.com/highlightjs/highlight.js/pull/2844"
+ );
+ const t = S(e);
+ if (t) return t;
+ throw new Error(
+ "The '{}' language is required, but not loaded.".replace(
+ "{}",
+ e
+ )
+ );
+ },
+ autoDetection: j,
+ inherit: te,
+ addPlugin: function (e) {
+ !(function (e) {
+ e["before:highlightBlock"] &&
+ !e["before:highlightElement"] &&
+ (e["before:highlightElement"] = (t) => {
+ e["before:highlightBlock"](
+ Object.assign({ block: t.el }, t)
+ );
+ }),
+ e["after:highlightBlock"] &&
+ !e["after:highlightElement"] &&
+ (e["after:highlightElement"] = (t) => {
+ e["after:highlightBlock"](
+ Object.assign({ block: t.el }, t)
+ );
+ });
+ })(e),
+ s.push(e);
+ },
+ vuePlugin: J(e).VuePlugin,
+ }),
+ (e.debugMode = function () {
+ i = !1;
+ }),
+ (e.safeMode = function () {
+ i = !0;
+ }),
+ (e.versionString = "10.7.3");
+ for (const e in R) "object" == typeof R[e] && n(R[e]);
+ return (
+ Object.assign(e, R),
+ e.addPlugin(g),
+ e.addPlugin(K),
+ e.addPlugin(v),
+ e
+ );
+ })({});
+ e.exports = re;
+ },
+ 61519: (e) => {
+ function t(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ("string" == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join("");
+ }
+ e.exports = function (e) {
+ const n = {},
+ r = {
+ begin: /\$\{/,
+ end: /\}/,
+ contains: ["self", { begin: /:-/, contains: [n] }],
+ };
+ Object.assign(n, {
+ className: "variable",
+ variants: [
+ { begin: t(/\$[\w\d#@][\w\d_]*/, "(?![\\w\\d])(?![$])") },
+ r,
+ ],
+ });
+ const o = {
+ className: "subst",
+ begin: /\$\(/,
+ end: /\)/,
+ contains: [e.BACKSLASH_ESCAPE],
+ },
+ s = {
+ begin: /<<-?\s*(?=\w+)/,
+ starts: {
+ contains: [
+ e.END_SAME_AS_BEGIN({
+ begin: /(\w+)/,
+ end: /(\w+)/,
+ className: "string",
+ }),
+ ],
+ },
+ },
+ i = {
+ className: "string",
+ begin: /"/,
+ end: /"/,
+ contains: [e.BACKSLASH_ESCAPE, n, o],
+ };
+ o.contains.push(i);
+ const a = {
+ begin: /\$\(\(/,
+ end: /\)\)/,
+ contains: [
+ { begin: /\d+#[0-9a-f]+/, className: "number" },
+ e.NUMBER_MODE,
+ n,
+ ],
+ },
+ l = e.SHEBANG({
+ binary: `(${[
+ "fish",
+ "bash",
+ "zsh",
+ "sh",
+ "csh",
+ "ksh",
+ "tcsh",
+ "dash",
+ "scsh",
+ ].join("|")})`,
+ relevance: 10,
+ }),
+ c = {
+ className: "function",
+ begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
+ returnBegin: !0,
+ contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
+ relevance: 0,
+ };
+ return {
+ name: "Bash",
+ aliases: ["sh", "zsh"],
+ keywords: {
+ $pattern: /\b[a-z._-]+\b/,
+ keyword:
+ "if then else elif fi for while in do done case esac function",
+ literal: "true false",
+ built_in:
+ "break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",
+ },
+ contains: [
+ l,
+ e.SHEBANG(),
+ c,
+ a,
+ e.HASH_COMMENT_MODE,
+ s,
+ i,
+ { className: "", begin: /\\"/ },
+ { className: "string", begin: /'/, end: /'/ },
+ n,
+ ],
+ };
+ };
+ },
+ 30786: (e) => {
+ function t(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ("string" == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join("");
+ }
+ e.exports = function (e) {
+ const n = "HTTP/(2|1\\.[01])",
+ r = {
+ className: "attribute",
+ begin: t("^", /[A-Za-z][A-Za-z0-9-]*/, "(?=\\:\\s)"),
+ starts: {
+ contains: [
+ {
+ className: "punctuation",
+ begin: /: /,
+ relevance: 0,
+ starts: { end: "$", relevance: 0 },
+ },
+ ],
+ },
+ },
+ o = [
+ r,
+ {
+ begin: "\\n\\n",
+ starts: { subLanguage: [], endsWithParent: !0 },
+ },
+ ];
+ return {
+ name: "HTTP",
+ aliases: ["https"],
+ illegal: /\S/,
+ contains: [
+ {
+ begin: "^(?=" + n + " \\d{3})",
+ end: /$/,
+ contains: [
+ { className: "meta", begin: n },
+ { className: "number", begin: "\\b\\d{3}\\b" },
+ ],
+ starts: { end: /\b\B/, illegal: /\S/, contains: o },
+ },
+ {
+ begin: "(?=^[A-Z]+ (.*?) " + n + "$)",
+ end: /$/,
+ contains: [
+ {
+ className: "string",
+ begin: " ",
+ end: " ",
+ excludeBegin: !0,
+ excludeEnd: !0,
+ },
+ { className: "meta", begin: n },
+ { className: "keyword", begin: "[A-Z]+" },
+ ],
+ starts: { end: /\b\B/, illegal: /\S/, contains: o },
+ },
+ e.inherit(r, { relevance: 0 }),
+ ],
+ };
+ };
+ },
+ 96344: (e) => {
+ const t = "[A-Za-z$_][0-9A-Za-z$_]*",
+ n = [
+ "as",
+ "in",
+ "of",
+ "if",
+ "for",
+ "while",
+ "finally",
+ "var",
+ "new",
+ "function",
+ "do",
+ "return",
+ "void",
+ "else",
+ "break",
+ "catch",
+ "instanceof",
+ "with",
+ "throw",
+ "case",
+ "default",
+ "try",
+ "switch",
+ "continue",
+ "typeof",
+ "delete",
+ "let",
+ "yield",
+ "const",
+ "class",
+ "debugger",
+ "async",
+ "await",
+ "static",
+ "import",
+ "from",
+ "export",
+ "extends",
+ ],
+ r = ["true", "false", "null", "undefined", "NaN", "Infinity"],
+ o = [].concat(
+ [
+ "setInterval",
+ "setTimeout",
+ "clearInterval",
+ "clearTimeout",
+ "require",
+ "exports",
+ "eval",
+ "isFinite",
+ "isNaN",
+ "parseFloat",
+ "parseInt",
+ "decodeURI",
+ "decodeURIComponent",
+ "encodeURI",
+ "encodeURIComponent",
+ "escape",
+ "unescape",
+ ],
+ [
+ "arguments",
+ "this",
+ "super",
+ "console",
+ "window",
+ "document",
+ "localStorage",
+ "module",
+ "global",
+ ],
+ [
+ "Intl",
+ "DataView",
+ "Number",
+ "Math",
+ "Date",
+ "String",
+ "RegExp",
+ "Object",
+ "Function",
+ "Boolean",
+ "Error",
+ "Symbol",
+ "Set",
+ "Map",
+ "WeakSet",
+ "WeakMap",
+ "Proxy",
+ "Reflect",
+ "JSON",
+ "Promise",
+ "Float64Array",
+ "Int16Array",
+ "Int32Array",
+ "Int8Array",
+ "Uint16Array",
+ "Uint32Array",
+ "Float32Array",
+ "Array",
+ "Uint8Array",
+ "Uint8ClampedArray",
+ "ArrayBuffer",
+ "BigInt64Array",
+ "BigUint64Array",
+ "BigInt",
+ ],
+ [
+ "EvalError",
+ "InternalError",
+ "RangeError",
+ "ReferenceError",
+ "SyntaxError",
+ "TypeError",
+ "URIError",
+ ]
+ );
+ function s(e) {
+ return i("(?=", e, ")");
+ }
+ function i(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ("string" == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join("");
+ }
+ e.exports = function (e) {
+ const a = t,
+ l = "<>",
+ c = ">",
+ u = {
+ begin: /<[A-Za-z0-9\\._:-]+/,
+ end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
+ isTrulyOpeningTag: (e, t) => {
+ const n = e[0].length + e.index,
+ r = e.input[n];
+ "<" !== r
+ ? ">" === r &&
+ (((e, { after: t }) => {
+ const n = "" + e[0].slice(1);
+ return -1 !== e.input.indexOf(n, t);
+ })(e, { after: n }) ||
+ t.ignoreMatch())
+ : t.ignoreMatch();
+ },
+ },
+ p = { $pattern: t, keyword: n, literal: r, built_in: o },
+ h = "[0-9](_?[0-9])*",
+ f = `\\.(${h})`,
+ d = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",
+ m = {
+ className: "number",
+ variants: [
+ {
+ begin: `(\\b(${d})((${f})|\\.)?|(${f}))[eE][+-]?(${h})\\b`,
+ },
+ { begin: `\\b(${d})\\b((${f})\\b|\\.)?|(${f})\\b` },
+ { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
+ { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
+ { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
+ { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
+ { begin: "\\b0[0-7]+n?\\b" },
+ ],
+ relevance: 0,
+ },
+ g = {
+ className: "subst",
+ begin: "\\$\\{",
+ end: "\\}",
+ keywords: p,
+ contains: [],
+ },
+ y = {
+ begin: "html`",
+ end: "",
+ starts: {
+ end: "`",
+ returnEnd: !1,
+ contains: [e.BACKSLASH_ESCAPE, g],
+ subLanguage: "xml",
+ },
+ },
+ v = {
+ begin: "css`",
+ end: "",
+ starts: {
+ end: "`",
+ returnEnd: !1,
+ contains: [e.BACKSLASH_ESCAPE, g],
+ subLanguage: "css",
+ },
+ },
+ b = {
+ className: "string",
+ begin: "`",
+ end: "`",
+ contains: [e.BACKSLASH_ESCAPE, g],
+ },
+ w = {
+ className: "comment",
+ variants: [
+ e.COMMENT(/\/\*\*(?!\/)/, "\\*/", {
+ relevance: 0,
+ contains: [
+ {
+ className: "doctag",
+ begin: "@[A-Za-z]+",
+ contains: [
+ {
+ className: "type",
+ begin: "\\{",
+ end: "\\}",
+ relevance: 0,
+ },
+ {
+ className: "variable",
+ begin: a + "(?=\\s*(-)|$)",
+ endsParent: !0,
+ relevance: 0,
+ },
+ { begin: /(?=[^\n])\s/, relevance: 0 },
+ ],
+ },
+ ],
+ }),
+ e.C_BLOCK_COMMENT_MODE,
+ e.C_LINE_COMMENT_MODE,
+ ],
+ },
+ E = [
+ e.APOS_STRING_MODE,
+ e.QUOTE_STRING_MODE,
+ y,
+ v,
+ b,
+ m,
+ e.REGEXP_MODE,
+ ];
+ g.contains = E.concat({
+ begin: /\{/,
+ end: /\}/,
+ keywords: p,
+ contains: ["self"].concat(E),
+ });
+ const x = [].concat(w, g.contains),
+ S = x.concat([
+ {
+ begin: /\(/,
+ end: /\)/,
+ keywords: p,
+ contains: ["self"].concat(x),
+ },
+ ]),
+ _ = {
+ className: "params",
+ begin: /\(/,
+ end: /\)/,
+ excludeBegin: !0,
+ excludeEnd: !0,
+ keywords: p,
+ contains: S,
+ };
+ return {
+ name: "Javascript",
+ aliases: ["js", "jsx", "mjs", "cjs"],
+ keywords: p,
+ exports: { PARAMS_CONTAINS: S },
+ illegal: /#(?![$_A-z])/,
+ contains: [
+ e.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }),
+ {
+ label: "use_strict",
+ className: "meta",
+ relevance: 10,
+ begin: /^\s*['"]use (strict|asm)['"]/,
+ },
+ e.APOS_STRING_MODE,
+ e.QUOTE_STRING_MODE,
+ y,
+ v,
+ b,
+ w,
+ m,
+ {
+ begin: i(
+ /[{,\n]\s*/,
+ s(
+ i(
+ /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,
+ a + "\\s*:"
+ )
+ )
+ ),
+ relevance: 0,
+ contains: [
+ { className: "attr", begin: a + s("\\s*:"), relevance: 0 },
+ ],
+ },
+ {
+ begin:
+ "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
+ keywords: "return throw case",
+ contains: [
+ w,
+ e.REGEXP_MODE,
+ {
+ className: "function",
+ begin:
+ "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" +
+ e.UNDERSCORE_IDENT_RE +
+ ")\\s*=>",
+ returnBegin: !0,
+ end: "\\s*=>",
+ contains: [
+ {
+ className: "params",
+ variants: [
+ { begin: e.UNDERSCORE_IDENT_RE, relevance: 0 },
+ { className: null, begin: /\(\s*\)/, skip: !0 },
+ {
+ begin: /\(/,
+ end: /\)/,
+ excludeBegin: !0,
+ excludeEnd: !0,
+ keywords: p,
+ contains: S,
+ },
+ ],
+ },
+ ],
+ },
+ { begin: /,/, relevance: 0 },
+ { className: "", begin: /\s/, end: /\s*/, skip: !0 },
+ {
+ variants: [
+ { begin: l, end: c },
+ {
+ begin: u.begin,
+ "on:begin": u.isTrulyOpeningTag,
+ end: u.end,
+ },
+ ],
+ subLanguage: "xml",
+ contains: [
+ {
+ begin: u.begin,
+ end: u.end,
+ skip: !0,
+ contains: ["self"],
+ },
+ ],
+ },
+ ],
+ relevance: 0,
+ },
+ {
+ className: "function",
+ beginKeywords: "function",
+ end: /[{;]/,
+ excludeEnd: !0,
+ keywords: p,
+ contains: ["self", e.inherit(e.TITLE_MODE, { begin: a }), _],
+ illegal: /%/,
+ },
+ { beginKeywords: "while if switch catch for" },
+ {
+ className: "function",
+ begin:
+ e.UNDERSCORE_IDENT_RE +
+ "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
+ returnBegin: !0,
+ contains: [_, e.inherit(e.TITLE_MODE, { begin: a })],
+ },
+ {
+ variants: [{ begin: "\\." + a }, { begin: "\\$" + a }],
+ relevance: 0,
+ },
+ {
+ className: "class",
+ beginKeywords: "class",
+ end: /[{;=]/,
+ excludeEnd: !0,
+ illegal: /[:"[\]]/,
+ contains: [
+ { beginKeywords: "extends" },
+ e.UNDERSCORE_TITLE_MODE,
+ ],
+ },
+ {
+ begin: /\b(?=constructor)/,
+ end: /[{;]/,
+ excludeEnd: !0,
+ contains: [e.inherit(e.TITLE_MODE, { begin: a }), "self", _],
+ },
+ {
+ begin: "(get|set)\\s+(?=" + a + "\\()",
+ end: /\{/,
+ keywords: "get set",
+ contains: [
+ e.inherit(e.TITLE_MODE, { begin: a }),
+ { begin: /\(\)/ },
+ _,
+ ],
+ },
+ { begin: /\$[(.]/ },
+ ],
+ };
+ };
+ },
+ 82026: (e) => {
+ e.exports = function (e) {
+ const t = { literal: "true false null" },
+ n = [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE],
+ r = [e.QUOTE_STRING_MODE, e.C_NUMBER_MODE],
+ o = {
+ end: ",",
+ endsWithParent: !0,
+ excludeEnd: !0,
+ contains: r,
+ keywords: t,
+ },
+ s = {
+ begin: /\{/,
+ end: /\}/,
+ contains: [
+ {
+ className: "attr",
+ begin: /"/,
+ end: /"/,
+ contains: [e.BACKSLASH_ESCAPE],
+ illegal: "\\n",
+ },
+ e.inherit(o, { begin: /:/ }),
+ ].concat(n),
+ illegal: "\\S",
+ },
+ i = {
+ begin: "\\[",
+ end: "\\]",
+ contains: [e.inherit(o)],
+ illegal: "\\S",
+ };
+ return (
+ r.push(s, i),
+ n.forEach(function (e) {
+ r.push(e);
+ }),
+ { name: "JSON", contains: r, keywords: t, illegal: "\\S" }
+ );
+ };
+ },
+ 66336: (e) => {
+ e.exports = function (e) {
+ const t = {
+ $pattern: /-?[A-z\.\-]+\b/,
+ keyword:
+ "if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",
+ built_in:
+ "ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write",
+ },
+ n = { begin: "`[\\s\\S]", relevance: 0 },
+ r = {
+ className: "variable",
+ variants: [
+ { begin: /\$\B/ },
+ { className: "keyword", begin: /\$this/ },
+ { begin: /\$[\w\d][\w\d_:]*/ },
+ ],
+ },
+ o = {
+ className: "string",
+ variants: [
+ { begin: /"/, end: /"/ },
+ { begin: /@"/, end: /^"@/ },
+ ],
+ contains: [
+ n,
+ r,
+ { className: "variable", begin: /\$[A-z]/, end: /[^A-z]/ },
+ ],
+ },
+ s = {
+ className: "string",
+ variants: [
+ { begin: /'/, end: /'/ },
+ { begin: /@'/, end: /^'@/ },
+ ],
+ },
+ i = e.inherit(e.COMMENT(null, null), {
+ variants: [
+ { begin: /#/, end: /$/ },
+ { begin: /<#/, end: /#>/ },
+ ],
+ contains: [
+ {
+ className: "doctag",
+ variants: [
+ {
+ begin:
+ /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/,
+ },
+ {
+ begin:
+ /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/,
+ },
+ ],
+ },
+ ],
+ }),
+ a = {
+ className: "built_in",
+ variants: [
+ {
+ begin: "(".concat(
+ "Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",
+ ")+(-)[\\w\\d]+"
+ ),
+ },
+ ],
+ },
+ l = {
+ className: "class",
+ beginKeywords: "class enum",
+ end: /\s*[{]/,
+ excludeEnd: !0,
+ relevance: 0,
+ contains: [e.TITLE_MODE],
+ },
+ c = {
+ className: "function",
+ begin: /function\s+/,
+ end: /\s*\{|$/,
+ excludeEnd: !0,
+ returnBegin: !0,
+ relevance: 0,
+ contains: [
+ { begin: "function", relevance: 0, className: "keyword" },
+ {
+ className: "title",
+ begin: /\w[\w\d]*((-)[\w\d]+)*/,
+ relevance: 0,
+ },
+ {
+ begin: /\(/,
+ end: /\)/,
+ className: "params",
+ relevance: 0,
+ contains: [r],
+ },
+ ],
+ },
+ u = {
+ begin: /using\s/,
+ end: /$/,
+ returnBegin: !0,
+ contains: [
+ o,
+ s,
+ {
+ className: "keyword",
+ begin: /(using|assembly|command|module|namespace|type)/,
+ },
+ ],
+ },
+ p = {
+ variants: [
+ {
+ className: "operator",
+ begin: "(".concat(
+ "-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",
+ ")\\b"
+ ),
+ },
+ { className: "literal", begin: /(-)[\w\d]+/, relevance: 0 },
+ ],
+ },
+ h = {
+ className: "function",
+ begin: /\[.*\]\s*[\w]+[ ]??\(/,
+ end: /$/,
+ returnBegin: !0,
+ relevance: 0,
+ contains: [
+ {
+ className: "keyword",
+ begin: "(".concat(
+ t.keyword.toString().replace(/\s/g, "|"),
+ ")\\b"
+ ),
+ endsParent: !0,
+ relevance: 0,
+ },
+ e.inherit(e.TITLE_MODE, { endsParent: !0 }),
+ ],
+ },
+ f = [
+ h,
+ i,
+ n,
+ e.NUMBER_MODE,
+ o,
+ s,
+ a,
+ r,
+ { className: "literal", begin: /\$(null|true|false)\b/ },
+ { className: "selector-tag", begin: /@\B/, relevance: 0 },
+ ],
+ d = {
+ begin: /\[/,
+ end: /\]/,
+ excludeBegin: !0,
+ excludeEnd: !0,
+ relevance: 0,
+ contains: [].concat(
+ "self",
+ f,
+ {
+ begin:
+ "(" +
+ [
+ "string",
+ "char",
+ "byte",
+ "int",
+ "long",
+ "bool",
+ "decimal",
+ "single",
+ "double",
+ "DateTime",
+ "xml",
+ "array",
+ "hashtable",
+ "void",
+ ].join("|") +
+ ")",
+ className: "built_in",
+ relevance: 0,
+ },
+ { className: "type", begin: /[\.\w\d]+/, relevance: 0 }
+ ),
+ };
+ return (
+ h.contains.unshift(d),
+ {
+ name: "PowerShell",
+ aliases: ["ps", "ps1"],
+ case_insensitive: !0,
+ keywords: t,
+ contains: f.concat(l, c, u, p, d),
+ }
+ );
+ };
+ },
+ 42157: (e) => {
+ function t(e) {
+ return e ? ("string" == typeof e ? e : e.source) : null;
+ }
+ function n(e) {
+ return r("(?=", e, ")");
+ }
+ function r(...e) {
+ return e.map((e) => t(e)).join("");
+ }
+ function o(...e) {
+ return "(" + e.map((e) => t(e)).join("|") + ")";
+ }
+ e.exports = function (e) {
+ const t = r(
+ /[A-Z_]/,
+ r("(", /[A-Z0-9_.-]*:/, ")?"),
+ /[A-Z0-9_.-]*/
+ ),
+ s = {
+ className: "symbol",
+ begin: /&[a-z]+;|[0-9]+;|[a-f0-9]+;/,
+ },
+ i = {
+ begin: /\s/,
+ contains: [
+ {
+ className: "meta-keyword",
+ begin: /#?[a-z_][a-z1-9_-]+/,
+ illegal: /\n/,
+ },
+ ],
+ },
+ a = e.inherit(i, { begin: /\(/, end: /\)/ }),
+ l = e.inherit(e.APOS_STRING_MODE, { className: "meta-string" }),
+ c = e.inherit(e.QUOTE_STRING_MODE, { className: "meta-string" }),
+ u = {
+ endsWithParent: !0,
+ illegal: /,
+ relevance: 0,
+ contains: [
+ {
+ className: "attr",
+ begin: /[A-Za-z0-9._:-]+/,
+ relevance: 0,
+ },
+ {
+ begin: /=\s*/,
+ relevance: 0,
+ contains: [
+ {
+ className: "string",
+ endsParent: !0,
+ variants: [
+ { begin: /"/, end: /"/, contains: [s] },
+ { begin: /'/, end: /'/, contains: [s] },
+ { begin: /[^\s"'=<>`]+/ },
+ ],
+ },
+ ],
+ },
+ ],
+ };
+ return {
+ name: "HTML, XML",
+ aliases: [
+ "html",
+ "xhtml",
+ "rss",
+ "atom",
+ "xjb",
+ "xsd",
+ "xsl",
+ "plist",
+ "wsf",
+ "svg",
+ ],
+ case_insensitive: !0,
+ contains: [
+ {
+ className: "meta",
+ begin: //,
+ relevance: 10,
+ contains: [
+ i,
+ c,
+ l,
+ a,
+ {
+ begin: /\[/,
+ end: /\]/,
+ contains: [
+ {
+ className: "meta",
+ begin: //,
+ contains: [i, a, c, l],
+ },
+ ],
+ },
+ ],
+ },
+ e.COMMENT(//, { relevance: 10 }),
+ { begin: //, relevance: 10 },
+ s,
+ {
+ className: "meta",
+ begin: /<\?xml/,
+ end: /\?>/,
+ relevance: 10,
+ },
+ {
+ className: "tag",
+ begin: /