diff --git a/admission-server/README.md b/admission-server/README.md index d0b952abd2..9311f63442 100644 --- a/admission-server/README.md +++ b/admission-server/README.md @@ -10,6 +10,7 @@ pnpm run dev ``` Open the browser and navigate to the following URL: + ``` open http://localhost:3009 ``` @@ -29,16 +30,18 @@ wgc federated-graph create mygraph -r http://127.0.0.1:3001/graphql --admission- ``` 2. Publish a subgraph + ```bash wgc subgraph publish employees --schema ../demo/pkg/subgraphs/employees/subgraph/schema.graphqls --labels team=A ``` 3. Start the router with the same signing key as the admission server + ```yaml version: '1' -graph: +graph: sign_key: 'sign_key' ``` -4. Wait for the log line that says "Config signature validation successful" \ No newline at end of file +4. Wait for the log line that says "Config signature validation successful" diff --git a/admission-server/tsconfig.json b/admission-server/tsconfig.json index d7aca46052..7662665c4d 100644 --- a/admission-server/tsconfig.json +++ b/admission-server/tsconfig.json @@ -5,8 +5,6 @@ "outDir": "./dist", "module": "ESNext", "moduleResolution": "Bundler", - "types": [ - "node" - ] + "types": ["node"] } -} \ No newline at end of file +} diff --git a/cli/package.json b/cli/package.json index 92c08d1c69..03eb63e362 100644 --- a/cli/package.json +++ b/cli/package.json @@ -51,7 +51,7 @@ "@wundergraph/cosmo-connect": "workspace:*", "@wundergraph/cosmo-shared": "workspace:*", "@wundergraph/protographic": "workspace:*", - "ajv": "8.17.1", + "ajv": "8.18.0", "axios": "1.13.5", "boxen": "7.1.1", "cli-progress": "3.12.0", diff --git a/package.json b/package.json index 4ad6f65190..ba067e6672 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "react": "18.3.1", "graphql": "16.9.0", "cross-spawn": "7.0.6", - "next": "15.4.11", + "next": "15.5.15", "zod": "^3.25.0", "debug": "<4.4.2", "supports-color": "<10.2.1", @@ -102,7 +102,9 @@ "minimatch@9.x": "9.0.7", "minimatch@10.x": "10.2.4", "express-rate-limit": "8.2.2", - "serialize-javascript": "7.0.3" + "serialize-javascript": "7.0.3", + "markdown-it": "14.1.1", + "lodash": "4.18.1" }, "patchedDependencies": { "graphql@16.9.0": "patches/graphql@16.9.0.patch" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31e0eb5082..9b143092c1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,7 +8,7 @@ overrides: react: 18.3.1 graphql: 16.9.0 cross-spawn: 7.0.6 - next: 15.4.11 + next: 15.5.15 zod: ^3.25.0 debug: <4.4.2 supports-color: <10.2.1 @@ -39,6 +39,8 @@ overrides: minimatch@10.x: 10.2.4 express-rate-limit: 8.2.2 serialize-javascript: 7.0.3 + markdown-it: 14.1.1 + lodash: 4.18.1 patchedDependencies: graphql@16.9.0: @@ -224,8 +226,8 @@ importers: specifier: workspace:* version: link:../protographic ajv: - specifier: 8.17.1 - version: 8.17.1 + specifier: 8.18.0 + version: 8.18.0 axios: specifier: 1.13.5 version: 1.13.5 @@ -1018,7 +1020,7 @@ importers: version: 0.4.0(@types/react@18.3.3)(react@18.3.1) '@markdoc/next.js': specifier: ^0.3.6 - version: 0.3.6(@markdoc/markdoc@0.4.0(@types/react@18.3.3)(react@18.3.1))(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 0.3.6(@markdoc/markdoc@0.4.0(@types/react@18.3.3)(react@18.3.1))(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@monaco-editor/react': specifier: ^4.6.0 version: 4.6.0(monaco-editor@0.45.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1090,7 +1092,7 @@ importers: version: 1.0.0(@chakra-ui/react@2.8.2(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(framer-motion@11.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(framer-motion@11.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@sentry/nextjs': specifier: ^8.42.0 - version: 8.42.0(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.54.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)(webpack@5.98.0) + version: 8.42.0(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.54.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)(webpack@5.98.0) '@stripe/stripe-js': specifier: ^2.2.1 version: 2.2.2 @@ -1194,11 +1196,11 @@ importers: specifier: ^1.4.0 version: 1.4.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(monaco-editor@0.45.0)(prettier@3.6.2) next: - specifier: 15.4.11 - version: 15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 15.5.15 + version: 15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-themes: specifier: ^0.2.1 - version: 0.2.1(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.2.1(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) posthog-js: specifier: ^1.240.6 version: 1.242.2 @@ -4286,7 +4288,7 @@ packages: resolution: {integrity: sha512-/unW7ejzaxwSg7zq4pxZFaaPjRn09PkjMe8INkR0SN5FvblJnytWKhBorUvdRe3dYXsO2GkN6BARZAfIbaDYMw==} peerDependencies: '@markdoc/markdoc': '*' - next: 15.4.11 + next: 15.5.15 react: 18.3.1 '@microsoft/api-extractor-model@7.33.6': @@ -4384,56 +4386,56 @@ packages: resolution: {integrity: sha512-3fkKj25kEjsfObL6IlKPAlHYPq/oYwUkkQ03zsTTiDjD7vg/RxjdiLeCydqtxHZP0JgsXL3D/X5oAkMGzuUp/Q==} engines: {node: '>=12'} - '@next/env@15.4.11': - resolution: {integrity: sha512-mIYp/091eYfPFezKX7ZPTWqrmSXq+ih6+LcUyKvLmeLQGhlPtot33kuEOd4U+xAA7sFfj21+OtCpIZx0g5SpvQ==} + '@next/env@15.5.15': + resolution: {integrity: sha512-vcmyu5/MyFzN7CdqRHO3uHO44p/QPCZkuTUXroeUmhNP8bL5PHFEhik22JUazt+CDDoD6EpBYRCaS2pISL+/hg==} '@next/eslint-plugin-next@13.4.7': resolution: {integrity: sha512-ANEPltxzXbyyG7CvqxdY4PmeM5+RyWdAJGufTHnU+LA/i3J6IDV2r8Z4onKwskwKEhwqzz5lMaSYGGXLyHX+mg==} - '@next/swc-darwin-arm64@15.4.8': - resolution: {integrity: sha512-Pf6zXp7yyQEn7sqMxur6+kYcywx5up1J849psyET7/8pG2gQTVMjU3NzgIt8SeEP5to3If/SaWmaA6H6ysBr1A==} + '@next/swc-darwin-arm64@15.5.15': + resolution: {integrity: sha512-6PvFO2Tzt10GFK2Ro9tAVEtacMqRmTarYMFKAnV2vYMdwWc73xzmDQyAV7SwEdMhzmiRoo7+m88DuiXlJlGeaw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@15.4.8': - resolution: {integrity: sha512-xla6AOfz68a6kq3gRQccWEvFC/VRGJmA/QuSLENSO7CZX5WIEkSz7r1FdXUjtGCQ1c2M+ndUAH7opdfLK1PQbw==} + '@next/swc-darwin-x64@15.5.15': + resolution: {integrity: sha512-G+YNV+z6FDZTp/+IdGyIMFqalBTaQSnvAA+X/hrt+eaTRFSznRMz9K7rTmzvM6tDmKegNtyzgufZW0HwVzEqaQ==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@15.4.8': - resolution: {integrity: sha512-y3fmp+1Px/SJD+5ntve5QLZnGLycsxsVPkTzAc3zUiXYSOlTPqT8ynfmt6tt4fSo1tAhDPmryXpYKEAcoAPDJw==} + '@next/swc-linux-arm64-gnu@15.5.15': + resolution: {integrity: sha512-eVkrMcVIBqGfXB+QUC7jjZ94Z6uX/dNStbQFabewAnk13Uy18Igd1YZ/GtPRzdhtm7QwC0e6o7zOQecul4iC1w==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@15.4.8': - resolution: {integrity: sha512-DX/L8VHzrr1CfwaVjBQr3GWCqNNFgyWJbeQ10Lx/phzbQo3JNAxUok1DZ8JHRGcL6PgMRgj6HylnLNndxn4Z6A==} + '@next/swc-linux-arm64-musl@15.5.15': + resolution: {integrity: sha512-RwSHKMQ7InLy5GfkY2/n5PcFycKA08qI1VST78n09nN36nUPqCvGSMiLXlfUmzmpQpF6XeBYP2KRWHi0UW3uNg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@15.4.8': - resolution: {integrity: sha512-9fLAAXKAL3xEIFdKdzG5rUSvSiZTLLTCc6JKq1z04DR4zY7DbAPcRvNm3K1inVhTiQCs19ZRAgUerHiVKMZZIA==} + '@next/swc-linux-x64-gnu@15.5.15': + resolution: {integrity: sha512-nplqvY86LakS+eeiuWsNWvfmK8pFcOEW7ZtVRt4QH70lL+0x6LG/m1OpJ/tvrbwjmR8HH9/fH2jzW1GlL03TIg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@15.4.8': - resolution: {integrity: sha512-s45V7nfb5g7dbS7JK6XZDcapicVrMMvX2uYgOHP16QuKH/JA285oy6HcxlKqwUNaFY/UC6EvQ8QZUOo19cBKSA==} + '@next/swc-linux-x64-musl@15.5.15': + resolution: {integrity: sha512-eAgl9NKQ84/sww0v81DQINl/vL2IBxD7sMybd0cWRw6wqgouVI53brVRBrggqBRP/NWeIAE1dm5cbKYoiMlqDQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@15.4.8': - resolution: {integrity: sha512-KjgeQyOAq7t/HzAJcWPGA8X+4WY03uSCZ2Ekk98S9OgCFsb6lfBE3dbUzUuEQAN2THbwYgFfxX2yFTCMm8Kehw==} + '@next/swc-win32-arm64-msvc@15.5.15': + resolution: {integrity: sha512-GJVZC86lzSquh0MtvZT+L7G8+jMnJcldloOjA8Kf3wXvBrvb6OGe2MzPuALxFshSm/IpwUtD2mIoof39ymf52A==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-x64-msvc@15.4.8': - resolution: {integrity: sha512-Exsmf/+42fWVnLMaZHzshukTBxZrSwuuLKFvqhGHJ+mC1AokqieLY/XzAl3jc/CqhXLqLY3RRjkKJ9YnLPcRWg==} + '@next/swc-win32-x64-msvc@15.5.15': + resolution: {integrity: sha512-nFucjVdwlFqxh/JG3hWSJ4p8+YJV7Ii8aPDuBQULB6DzUF4UNZETXLfEUk+oI2zEznWWULPt7MeuTE6xtK1HSA==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -6945,7 +6947,7 @@ packages: resolution: {integrity: sha512-8gZ0kVwaMpNeDg510m/8OSIuPSahP9GaKoFwPqscbvvbk1Hd+9wdW2X6YhdY+KzKiPLmYH/dGU20CvtN0iZqeg==} engines: {node: '>=14.18'} peerDependencies: - next: 15.4.11 + next: 15.5.15 '@sentry/node-core@10.19.0': resolution: {integrity: sha512-m3xTaIDSh1V88K+e1zaGwKKuhDUAHMX1nncJmsGm8Hwg7FLK2fdr7wm9IJaIF0S1E4R38oHC4kZdL+ebrUghDg==} @@ -8263,9 +8265,6 @@ packages: ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - ajv@8.17.1: - resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} - ajv@8.18.0: resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==} @@ -9657,10 +9656,6 @@ packages: entities@2.2.0: resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} - entities@3.0.1: - resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==} - engines: {node: '>=0.12'} - entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} @@ -11452,9 +11447,6 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - linkify-it@4.0.1: - resolution: {integrity: sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==} - linkify-it@5.0.0: resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==} @@ -11641,12 +11633,8 @@ packages: markdown-it-task-lists@2.1.1: resolution: {integrity: sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==} - markdown-it@13.0.2: - resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==} - hasBin: true - - markdown-it@14.1.0: - resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} + markdown-it@14.1.1: + resolution: {integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==} hasBin: true markdown-table@3.0.3: @@ -11721,9 +11709,6 @@ packages: mdn-data@2.27.1: resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} - mdurl@1.0.1: - resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} - mdurl@2.0.0: resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} @@ -12047,12 +12032,12 @@ packages: next-themes@0.2.1: resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==} peerDependencies: - next: 15.4.11 + next: 15.5.15 react: 18.3.1 react-dom: '*' - next@15.4.11: - resolution: {integrity: sha512-IJRyXal45mIsshZI5XJne/intjusslUP1F+FHVBIyMGEqbYtIq1Irdx5vdWBBg58smviPDycmDeV6txsfkv1RQ==} + next@15.5.15: + resolution: {integrity: sha512-VSqCrJwtLVGwAVE0Sb/yikrQfkwkZW9p+lL/J4+xe+G3ZA+QnWPqgcfH1tDUEuk9y+pthzzVFp4L/U8JerMfMQ==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} hasBin: true peerDependencies: @@ -14328,9 +14313,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - uc.micro@1.0.6: - resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} - uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} @@ -16759,7 +16741,7 @@ snapshots: '@commitlint/config-validator@19.8.1': dependencies: '@commitlint/types': 19.8.1 - ajv: 8.17.1 + ajv: 8.18.0 '@commitlint/ensure@19.8.1': dependencies: @@ -17628,8 +17610,8 @@ snapshots: '@fastify/ajv-compiler@3.5.0': dependencies: - ajv: 8.17.1 - ajv-formats: 2.1.1(ajv@8.17.1) + ajv: 8.18.0 + ajv-formats: 2.1.1(ajv@8.18.0) fast-uri: 2.2.0 '@fastify/busboy@2.1.1': {} @@ -17697,7 +17679,7 @@ snapshots: framer-motion: 6.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) graphql-language-service: 5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - markdown-it: 14.1.0 + markdown-it: 14.1.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) set-value: 4.1.0 @@ -18445,11 +18427,11 @@ snapshots: '@types/react': 18.3.3 react: 18.3.1 - '@markdoc/next.js@0.3.6(@markdoc/markdoc@0.4.0(@types/react@18.3.3)(react@18.3.1))(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@markdoc/next.js@0.3.6(@markdoc/markdoc@0.4.0(@types/react@18.3.3)(react@18.3.1))(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: '@markdoc/markdoc': 0.4.0(@types/react@18.3.3)(react@18.3.1) js-yaml: 4.1.1 - next: 15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 '@microsoft/api-extractor-model@7.33.6(@types/node@20.12.12)': @@ -18520,8 +18502,8 @@ snapshots: '@modelcontextprotocol/sdk@1.26.0(zod@3.25.76)': dependencies: '@hono/node-server': 1.19.13(hono@4.12.12) - ajv: 8.17.1 - ajv-formats: 3.0.1(ajv@8.17.1) + ajv: 8.18.0 + ajv-formats: 3.0.1(ajv@8.18.0) content-type: 1.0.5 cors: 2.8.5 cross-spawn: 7.0.6 @@ -18617,34 +18599,34 @@ snapshots: '@n1ru4l/push-pull-async-iterable-iterator@3.2.0': {} - '@next/env@15.4.11': {} + '@next/env@15.5.15': {} '@next/eslint-plugin-next@13.4.7': dependencies: glob: 7.1.7 - '@next/swc-darwin-arm64@15.4.8': + '@next/swc-darwin-arm64@15.5.15': optional: true - '@next/swc-darwin-x64@15.4.8': + '@next/swc-darwin-x64@15.5.15': optional: true - '@next/swc-linux-arm64-gnu@15.4.8': + '@next/swc-linux-arm64-gnu@15.5.15': optional: true - '@next/swc-linux-arm64-musl@15.4.8': + '@next/swc-linux-arm64-musl@15.5.15': optional: true - '@next/swc-linux-x64-gnu@15.4.8': + '@next/swc-linux-x64-gnu@15.5.15': optional: true - '@next/swc-linux-x64-musl@15.4.8': + '@next/swc-linux-x64-musl@15.5.15': optional: true - '@next/swc-win32-arm64-msvc@15.4.8': + '@next/swc-win32-arm64-msvc@15.5.15': optional: true - '@next/swc-win32-x64-msvc@15.4.8': + '@next/swc-win32-x64-msvc@15.5.15': optional: true '@nodelib/fs.scandir@2.1.5': @@ -21620,7 +21602,7 @@ snapshots: '@sentry/core@8.42.0': {} - '@sentry/nextjs@8.42.0(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.54.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)(webpack@5.98.0)': + '@sentry/nextjs@8.42.0(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.54.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)(webpack@5.98.0)': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/instrumentation-http': 0.53.0(@opentelemetry/api@1.9.0) @@ -21634,7 +21616,7 @@ snapshots: '@sentry/vercel-edge': 8.42.0 '@sentry/webpack-plugin': 2.22.6(encoding@0.1.13)(webpack@5.98.0) chalk: 3.0.0 - next: 15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) resolve: 1.22.8 rollup: 3.29.5 stacktrace-parser: 0.1.11 @@ -23469,21 +23451,17 @@ snapshots: optionalDependencies: ajv: 8.18.0 - ajv-formats@2.1.1(ajv@8.17.1): - optionalDependencies: - ajv: 8.17.1 - - ajv-formats@3.0.1(ajv@8.17.1): + ajv-formats@2.1.1(ajv@8.18.0): optionalDependencies: - ajv: 8.17.1 + ajv: 8.18.0 ajv-formats@3.0.1(ajv@8.18.0): optionalDependencies: ajv: 8.18.0 - ajv-keywords@5.1.0(ajv@8.17.1): + ajv-keywords@5.1.0(ajv@8.18.0): dependencies: - ajv: 8.17.1 + ajv: 8.18.0 fast-deep-equal: 3.1.3 ajv@6.12.6: @@ -23493,13 +23471,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ajv@8.17.1: - dependencies: - fast-deep-equal: 3.1.3 - fast-uri: 3.0.6 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - ajv@8.18.0: dependencies: fast-deep-equal: 3.1.3 @@ -23874,7 +23845,7 @@ snapshots: bun-types@1.2.12: dependencies: - '@types/node': 18.19.21 + '@types/node': 20.12.12 optional: true bun-types@1.2.3: @@ -24874,8 +24845,6 @@ snapshots: entities@2.2.0: {} - entities@3.0.1: {} - entities@4.5.0: {} entities@6.0.1: {} @@ -25745,8 +25714,8 @@ snapshots: fast-json-stringify@5.9.1: dependencies: '@fastify/deepmerge': 1.3.0 - ajv: 8.17.1 - ajv-formats: 2.1.1(ajv@8.17.1) + ajv: 8.18.0 + ajv-formats: 2.1.1(ajv@8.18.0) fast-deep-equal: 3.1.3 fast-uri: 2.2.0 json-schema-ref-resolver: 1.0.1 @@ -26235,7 +26204,7 @@ snapshots: '@graphiql/toolkit': 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.19.0))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) graphql-language-service: 5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - markdown-it: 14.1.0 + markdown-it: 14.1.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: @@ -27186,10 +27155,6 @@ snapshots: lines-and-columns@1.2.4: {} - linkify-it@4.0.1: - dependencies: - uc.micro: 1.0.6 - linkify-it@5.0.0: dependencies: uc.micro: 2.1.0 @@ -27380,15 +27345,7 @@ snapshots: markdown-it-task-lists@2.1.1: {} - markdown-it@13.0.2: - dependencies: - argparse: 2.0.1 - entities: 3.0.1 - linkify-it: 4.0.1 - mdurl: 1.0.1 - uc.micro: 1.0.6 - - markdown-it@14.1.0: + markdown-it@14.1.1: dependencies: argparse: 2.0.1 entities: 4.5.0 @@ -27567,8 +27524,6 @@ snapshots: mdn-data@2.27.1: {} - mdurl@1.0.1: {} - mdurl@2.0.0: {} media-typer@1.1.0: {} @@ -27991,15 +27946,15 @@ snapshots: dependencies: type-fest: 2.19.0 - next-themes@0.2.1(next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next-themes@0.2.1(next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - next: 15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - next@15.4.11(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@next/env': 15.4.11 + '@next/env': 15.5.15 '@swc/helpers': 0.5.15 caniuse-lite: 1.0.30001760 postcss: 8.4.31 @@ -28007,23 +27962,23 @@ snapshots: react-dom: 18.3.1(react@18.3.1) styled-jsx: 5.1.6(@babel/core@7.24.5)(babel-plugin-macros@3.1.0)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 15.4.8 - '@next/swc-darwin-x64': 15.4.8 - '@next/swc-linux-arm64-gnu': 15.4.8 - '@next/swc-linux-arm64-musl': 15.4.8 - '@next/swc-linux-x64-gnu': 15.4.8 - '@next/swc-linux-x64-musl': 15.4.8 - '@next/swc-win32-arm64-msvc': 15.4.8 - '@next/swc-win32-x64-msvc': 15.4.8 + '@next/swc-darwin-arm64': 15.5.15 + '@next/swc-darwin-x64': 15.5.15 + '@next/swc-linux-arm64-gnu': 15.5.15 + '@next/swc-linux-arm64-musl': 15.5.15 + '@next/swc-linux-x64-gnu': 15.5.15 + '@next/swc-linux-x64-musl': 15.5.15 + '@next/swc-win32-arm64-msvc': 15.5.15 + '@next/swc-win32-x64-msvc': 15.5.15 '@opentelemetry/api': 1.9.0 sharp: 0.34.5 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros - next@15.4.11(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@15.5.15(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@next/env': 15.4.11 + '@next/env': 15.5.15 '@swc/helpers': 0.5.15 caniuse-lite: 1.0.30001760 postcss: 8.4.31 @@ -28031,14 +27986,14 @@ snapshots: react-dom: 18.3.1(react@18.3.1) styled-jsx: 5.1.6(babel-plugin-macros@3.1.0)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 15.4.8 - '@next/swc-darwin-x64': 15.4.8 - '@next/swc-linux-arm64-gnu': 15.4.8 - '@next/swc-linux-arm64-musl': 15.4.8 - '@next/swc-linux-x64-gnu': 15.4.8 - '@next/swc-linux-x64-musl': 15.4.8 - '@next/swc-win32-arm64-msvc': 15.4.8 - '@next/swc-win32-x64-msvc': 15.4.8 + '@next/swc-darwin-arm64': 15.5.15 + '@next/swc-darwin-x64': 15.5.15 + '@next/swc-linux-arm64-gnu': 15.5.15 + '@next/swc-linux-arm64-musl': 15.5.15 + '@next/swc-linux-x64-gnu': 15.5.15 + '@next/swc-linux-x64-musl': 15.5.15 + '@next/swc-win32-arm64-msvc': 15.5.15 + '@next/swc-win32-x64-msvc': 15.5.15 '@opentelemetry/api': 1.9.1 sharp: 0.34.5 transitivePeerDependencies: @@ -28930,13 +28885,13 @@ snapshots: prosemirror-markdown@1.12.0: dependencies: - markdown-it: 14.1.0 + markdown-it: 14.1.1 prosemirror-model: 1.21.0 prosemirror-markdown@1.13.2: dependencies: '@types/markdown-it': 14.1.2 - markdown-it: 14.1.0 + markdown-it: 14.1.1 prosemirror-model: 1.25.3 prosemirror-menu@1.2.5: @@ -29112,7 +29067,7 @@ snapshots: glob: 10.3.4 log-symbols: 4.1.0 mime-types: 2.1.35 - next: 15.4.11(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 15.5.15(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) normalize-path: 3.0.0 ora: 5.4.1 socket.io: 4.8.1 @@ -29672,9 +29627,9 @@ snapshots: schema-utils@4.3.3: dependencies: '@types/json-schema': 7.0.15 - ajv: 8.17.1 - ajv-formats: 2.1.1(ajv@8.17.1) - ajv-keywords: 5.1.0(ajv@8.17.1) + ajv: 8.18.0 + ajv-formats: 2.1.1(ajv@8.18.0) + ajv-keywords: 5.1.0(ajv@8.18.0) secure-json-parse@2.7.0: {} @@ -30379,7 +30334,7 @@ snapshots: dependencies: '@tiptap/core': 2.4.0(@tiptap/pm@2.1.13) '@types/markdown-it': 12.2.3 - markdown-it: 13.0.2 + markdown-it: 14.1.1 markdown-it-task-lists: 2.1.1 prosemirror-markdown: 1.12.0 @@ -30666,8 +30621,6 @@ snapshots: typescript@5.9.3: {} - uc.micro@1.0.6: {} - uc.micro@2.1.0: {} ufo@1.6.3: {} diff --git a/router/internal/graphiql/graphiql.html b/router/internal/graphiql/graphiql.html index 6dcb088440..7b13107930 100644 --- a/router/internal/graphiql/graphiql.html +++ b/router/internal/graphiql/graphiql.html @@ -74,7 +74,7 @@ * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert). * Released under the MIT License. */ -const{deleteProperty:Tme}=Reflect,Cme=function(e){return"object"==typeof e?null===e:"function"!=typeof e},Sme=function(e){var t,n;return!1!==wme(e)&&("function"==typeof(t=e.constructor)&&(!1!==wme(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))},kme=e=>"object"==typeof e&&null!==e||"function"==typeof e,Ame=e=>{if(!Cme(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Nme=(e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);Ame(r);const i=Pme.cache.get(r)||n();return Pme.cache.set(r,i),i},Fme=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:Nme(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s{if(Ame(t),void 0===n)Tme(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Sme(e[t])&&Sme(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},Pme=(e,t,n,r)=>{if(!t||!kme(e))return e;const i=Fme(t,r);let o=e;for(let a=0;a{Pme.cache=new Map};const Ome=i(Pme),Ime="dismissableLayer.update",Lme="dismissableLayer.pointerDownOutside",Mme="dismissableLayer.focusOutside";let jme;const Rme=q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bme=q.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=q.useContext(Rme),[p,d]=q.useState(null),f=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=q.useState({}),m=hM(t,e=>d(e)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=p?g.indexOf(p):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=v,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=BM(e),r=q.useRef(!1),i=q.useRef(()=>{});return q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ume(Lme,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));E&&!n&&(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())},f),w=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=BM(e),r=q.useRef(!1);return q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Ume(Mme,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())},f);return wj(e=>{b===c.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),q.useEffect(()=>{if(p)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(jme=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Vme(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=jme)}},[p,f,r,c]),q.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Vme())},[p,c]),q.useEffect(()=>{const e=()=>h({});return document.addEventListener(Ime,e),()=>document.removeEventListener(Ime,e)},[]),q.createElement(jM.div,dM({},u,{ref:m,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:NM(e.onFocusCapture,w.onFocusCapture),onBlurCapture:NM(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:NM(e.onPointerDownCapture,D.onPointerDownCapture)}))});function Vme(){const e=new CustomEvent(Ime);document.dispatchEvent(e)}function Ume(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?RM(i,o):i.dispatchEvent(o)}const zme="focusScope.autoFocusOnMount",$me="focusScope.autoFocusOnUnmount",qme={bubbles:!1,cancelable:!0},Hme=q.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=q.useState(null),u=BM(i),c=BM(o),p=q.useRef(null),d=hM(t,e=>l(e)),f=q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;q.useEffect(()=>{if(r){let e=function(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?p.current=t:Qme(p.current,{select:!0})},t=function(e){if(f.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Qme(p.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=s&&s.contains(t)||Qme(s))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,f.paused]),q.useEffect(()=>{if(s){Yme.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(zme,qme);s.addEventListener(zme,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qme(r,{select:t}),document.activeElement!==n)return}((e=Gme(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Qme(s))}return()=>{s.removeEventListener(zme,u),setTimeout(()=>{const e=new CustomEvent($me,qme);s.addEventListener($me,c),s.dispatchEvent(e),e.defaultPrevented||Qme(null!=t?t:document.body,{select:!0}),s.removeEventListener($me,c),Yme.remove(f)},0)}}var e},[s,u,c,f]);const h=q.useCallback(e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=Gme(e),n=Kme(t,e),r=Kme(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&Qme(o,{select:!0})):(e.preventDefault(),n&&Qme(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,f.paused]);return q.createElement(jM.div,dM({tabIndex:-1},a,{ref:d,onKeyDown:h}))});function Gme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kme(e,t){for(const n of e)if(!Wme(n,{upTo:t}))return n}function Wme(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Qme(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Yme=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Xme(e,t),e.unshift(t)},remove(t){var n;e=Xme(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Xme(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Jme(e){const[t,n]=q.useState(void 0);return OM(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}const Zme="Popper",[ege,tge]=FM(Zme),[nge,rge]=ege(Zme),ige=q.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=rge("PopperAnchor",n),a=q.useRef(null),s=hM(t,a);return q.useEffect(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:q.createElement(jM.div,dM({},i,{ref:s}))}),oge="PopperContent",[age,sge]=ege(oge),lge=q.forwardRef((e,t)=>{var n,r,i,o,a,s,l,u;const{__scopePopper:c,side:p="bottom",sideOffset:d=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,onPlaced:E,...D}=e,w=rge(oge,c),[T,C]=q.useState(null),S=hM(t,e=>C(e)),[k,A]=q.useState(null),N=Jme(k),F=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,_=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,P=p+("center"!==f?"-"+f:""),O="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],L=I.length>0,M={padding:O,boundary:I.filter(uge),altBoundary:L},{refs:j,floatingStyles:R,placement:B,isPositioned:V,middlewareData:U}=Nue({strategy:"fixed",placement:P,whileElementsMounted:Eue,elements:{reference:w.anchor},middleware:[Lle({mainAxis:d+_,alignmentAxis:h}),x&&jle({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?Rle():void 0,...M}),x&&_le({...M}),Ble({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),k&&wue({element:k,padding:m}),cge({arrowWidth:F,arrowHeight:_}),b&&Ile({strategy:"referenceHidden"})]}),[z,$]=pge(B),H=BM(E);OM(()=>{V&&(null==H||H())},[V,H]);const G=null===(i=U.arrow)||void 0===i?void 0:i.x,K=null===(o=U.arrow)||void 0===o?void 0:o.y,W=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Q,Y]=q.useState();return OM(()=>{T&&Y(window.getComputedStyle(T).zIndex)},[T]),q.createElement("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:V?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},q.createElement(age,{scope:c,placedSide:z,onArrowChange:A,arrowX:G,arrowY:K,shouldHideArrow:W},q.createElement(jM.div,dM({"data-side":z,"data-align":$},D,{ref:S,style:{...D.style,animation:V?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))});function uge(e){return null!==e}const cge=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),p=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[f,h]=pge(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+p/2,y=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===f?(v=c?m:`${g}px`,b=-d+"px"):"top"===f?(v=c?m:`${g}px`,b=`${l.floating.height+d}px`):"right"===f?(v=-d+"px",b=c?m:`${y}px`):"left"===f&&(v=`${l.floating.width+d}px`,b=c?m:`${y}px`),{data:{x:v,y:b}}}});function pge(e){const[t,n="center"]=e.split("-");return[t,n]}const dge=e=>{const{__scopePopper:t,children:n}=e,[r,i]=q.useState(null);return q.createElement(nge,{scope:t,anchor:r,onAnchorChange:i},n)},fge=ige,hge=lge,mge=q.forwardRef((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?up.createPortal(q.createElement(jM.div,dM({},i,{ref:t})),r):null}),gge=["Enter"," "],yge=["ArrowUp","PageDown","End"],vge=["ArrowDown","PageUp","Home",...yge],bge="Menu",[xge,Ege,Dge]=PM(bge),[wge,Tge]=FM(bge,[Dge,tge,YM]),Cge=tge(),Sge=YM(),[kge,Age]=wge(bge),[Nge,Fge]=wge(bge),_ge=q.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cge(n);return q.createElement(fge,dM({},i,r,{ref:t}))}),Pge="MenuPortal",[Oge,Ige]=wge(Pge,{forceMount:void 0}),Lge="MenuContent",[Mge,jge]=wge(Lge),Rge=q.forwardRef((e,t)=>{const n=Ige(Lge,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Age(Lge,e.__scopeMenu),a=Fge(Lge,e.__scopeMenu);return q.createElement(xge.Provider,{scope:e.__scopeMenu},q.createElement(aj,{present:r||o.open},q.createElement(xge.Slot,{scope:e.__scopeMenu},a.modal?q.createElement(Bge,dM({},i,{ref:t})):q.createElement(Vge,dM({},i,{ref:t})))))}),Bge=q.forwardRef((e,t)=>{const n=Age(Lge,e.__scopeMenu),r=q.useRef(null),i=hM(t,r);return q.useEffect(()=>{const e=r.current;if(e)return zR(e)},[]),q.createElement(Uge,dM({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:NM(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Vge=q.forwardRef((e,t)=>{const n=Age(Lge,e.__scopeMenu);return q.createElement(Uge,dM({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Uge=q.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...m}=e,g=Age(Lge,n),y=Fge(Lge,n),v=Cge(n),b=Sge(n),x=Ege(n),[E,D]=q.useState(null),w=q.useRef(null),T=hM(t,w,g.onContentChange),C=q.useRef(0),S=q.useRef(""),k=q.useRef(0),A=q.useRef(null),N=q.useRef("right"),F=q.useRef(0),_=h?LR:q.Fragment,P=h?{as:mM,allowPinchZoom:!0}:void 0,O=e=>{var t,n;const r=S.current+e,i=x().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,o=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(o,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===i.length&&(a=a.filter(e=>e!==n));const u=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};q.useEffect(()=>()=>window.clearTimeout(C.current),[]),qj();const I=q.useCallback(e=>{var t,n;return N.current===(null===(t=A.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;or!=u>r&&n<(l-e)*(r-s)/(u-s)+e&&(i=!i)}return i}(n,t)}(e,null===(n=A.current)||void 0===n?void 0:n.area)},[]);return q.createElement(Mge,{scope:n,searchRef:S,onItemEnter:q.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:q.useCallback(e=>{var t;I(e)||(null===(t=w.current)||void 0===t||t.focus(),D(null))},[I]),onTriggerLeave:q.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:k,onPointerGraceIntentChange:q.useCallback(e=>{A.current=e},[])},q.createElement(_,P,q.createElement(Hme,{asChild:!0,trapped:i,onMountAutoFocus:NM(o,e=>{var t;e.preventDefault(),null===(t=w.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},q.createElement(Bme,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:d,onDismiss:f},q.createElement(ij,dM({asChild:!0},b,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:NM(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()})}),q.createElement(hge,dM({role:"menu","aria-orientation":"vertical","data-state":(L=g.open,L?"open":"closed"),"data-radix-menu-content":"",dir:y.dir},v,m,{ref:T,style:{outline:"none",...m.style},onKeyDown:NM(m.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&O(e.key));const i=w.current;if(e.target!==i)return;if(!vge.includes(e.key))return;e.preventDefault();const o=x().filter(e=>!e.disabled).map(e=>e.ref.current);yge.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)}),onBlur:NM(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),S.current="")}),onPointerMove:NM(e.onPointerMove,Jge(e=>{const t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>F.current?"right":"left";N.current=t,F.current=e.clientX}}))})))))));var L}),zge="MenuItem",$ge="menu.itemSelect",qge=q.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=q.useRef(null),a=Fge(zge,e.__scopeMenu),s=jge(zge,e.__scopeMenu),l=hM(t,o),u=q.useRef(!1);return q.createElement(Hge,dM({},i,{ref:l,disabled:n,onClick:NM(e.onClick,()=>{const e=o.current;if(!n&&e){const t=new CustomEvent($ge,{bubbles:!0,cancelable:!0});e.addEventListener($ge,e=>null==r?void 0:r(e),{once:!0}),RM(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:NM(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:NM(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||gge.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),Hge=q.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=jge(zge,n),s=Sge(n),l=q.useRef(null),u=hM(t,l),[c,p]=q.useState(!1),[d,f]=q.useState("");return q.useEffect(()=>{const e=l.current;var t;e&&f((null!==(t=e.textContent)&&void 0!==t?t:"").trim())},[o.children]),q.createElement(xge.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:d},q.createElement(oj,dM({asChild:!0},s,{focusable:!r}),q.createElement(jM.div,dM({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:NM(e.onPointerMove,Jge(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}})),onPointerLeave:NM(e.onPointerLeave,Jge(e=>a.onItemLeave(e))),onFocus:NM(e.onFocus,()=>p(!0)),onBlur:NM(e.onBlur,()=>p(!1))}))))}),[Gge,Kge]=wge("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),[Wge,Qge]=wge("MenuItemIndicator",{checked:!1}),[Yge,Xge]=wge("MenuSub");function Jge(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Zge=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=Cge(t),[l,u]=q.useState(null),c=q.useRef(!1),p=BM(o),d=zM(i);return q.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),q.createElement(dge,s,q.createElement(kge,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u},q.createElement(Nge,{scope:t,onClose:q.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:c,dir:d,modal:a},r)))},eye=_ge,tye=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=Age(Pge,t);return q.createElement(Oge,{scope:t,forceMount:n},q.createElement(aj,{present:n||o.open},q.createElement(mge,{asChild:!0,container:i},r)))},nye=Rge,rye=qge,iye="DropdownMenu",[oye]=FM(iye,[Tge]),aye=Tge(),[sye,lye]=oye(iye),uye=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=aye(t),u=q.useRef(null),[c=!1,p]=VM({prop:i,defaultProp:o,onChange:a});return q.createElement(sye,{scope:t,triggerId:MM(),triggerRef:u,contentId:MM(),open:c,onOpenChange:p,onOpenToggle:q.useCallback(()=>p(e=>!e),[p]),modal:s},q.createElement(Zge,dM({},l,{open:c,onOpenChange:p,dir:r,modal:s}),n))},cye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=lye("DropdownMenuTrigger",n),a=aye(n);return q.createElement(eye,dM({asChild:!0},a),q.createElement(jM.button,dM({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:fM(t,o.triggerRef),onPointerDown:NM(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:NM(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),pye=e=>{const{__scopeDropdownMenu:t,...n}=e,r=aye(t);return q.createElement(tye,dM({},r,n))},dye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lye("DropdownMenuContent",n),o=aye(n),a=q.useRef(!1);return q.createElement(nye,dM({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:NM(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:NM(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),fye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=aye(n);return q.createElement(rye,dM({},i,r,{ref:t}))}),hye={};function mye(e,t){"string"!=typeof t&&(t=mye.defaultChars);const n=function(e){let t=hye[e];if(t)return t;t=hye[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);t.push(e)}for(let n=0;n=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+91114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}mye.defaultChars=";/?:@&=+$,#",mye.componentChars="";const gye={};function yye(e,t,n){"string"!=typeof t&&(n=t,t=yye.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=gye[e];if(t)return t;t=gye[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);/^[0-9a-z]$/i.test(e)?t.push(e):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&t<=57343){if(t>=55296&&t<=56319&&o+1=56320&&t<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}function vye(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bye(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}yye.defaultChars=";/?:@&=+$,-_.!~*'()#",yye.componentChars="-_.!~*'()";const xye=/^([a-z0-9.+-]+:)/i,Eye=/:[0-9]*$/,Dye=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wye=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Tye=["'"].concat(wye),Cye=["%","/","?",";","#"].concat(Tye),Sye=["/","?","#"],kye=/^[+a-z0-9A-Z_-]{0,63}$/,Aye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Nye={javascript:!0,"javascript:":!0},Fye={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _ye(e,t){if(e&&e instanceof bye)return e;const n=new bye;return n.parse(e,t),n}bye.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=Dye.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=xye.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&Nye[a]||(o=o.substr(2),this.slashes=!0)),!Nye[a]&&(i||a&&!Fye[a])){let e,t,n=-1;for(let s=0;s127?r+="x":r+=n[e];if(!r.match(kye)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(Aye);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Fye[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bye.prototype.parseHost=function(e){let t=Eye.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Pye=Object.freeze(Object.defineProperty({__proto__:null,decode:mye,encode:yye,format:vye,parse:_ye},Symbol.toStringTag,{value:"Module"})),Oye=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Iye=/[\0-\x1F\x7F-\x9F]/,Lye=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Mye=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jye=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Rye=Object.freeze(Object.defineProperty({__proto__:null,Any:Oye,Cc:Iye,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:Lye,S:Mye,Z:jye},Symbol.toStringTag,{value:"Module"})),Bye=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Vye=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Uye;const zye=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$ye=null!==(Uye=String.fromCodePoint)&&void 0!==Uye?Uye:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var qye,Hye;(Hye=qye||(qye={}))[Hye.NUM=35]="NUM",Hye[Hye.SEMI=59]="SEMI",Hye[Hye.EQUALS=61]="EQUALS",Hye[Hye.ZERO=48]="ZERO",Hye[Hye.NINE=57]="NINE",Hye[Hye.LOWER_A=97]="LOWER_A",Hye[Hye.LOWER_F=102]="LOWER_F",Hye[Hye.LOWER_X=120]="LOWER_X",Hye[Hye.LOWER_Z=122]="LOWER_Z",Hye[Hye.UPPER_A=65]="UPPER_A",Hye[Hye.UPPER_F=70]="UPPER_F",Hye[Hye.UPPER_Z=90]="UPPER_Z";var Gye,Kye,Wye,Qye,Yye,Xye;function Jye(e){return e>=qye.ZERO&&e<=qye.NINE}function Zye(e){return e>=qye.UPPER_A&&e<=qye.UPPER_F||e>=qye.LOWER_A&&e<=qye.LOWER_F}function eve(e){return e===qye.EQUALS||function(e){return e>=qye.UPPER_A&&e<=qye.UPPER_Z||e>=qye.LOWER_A&&e<=qye.LOWER_Z||Jye(e)}(e)}(Kye=Gye||(Gye={}))[Kye.VALUE_LENGTH=49152]="VALUE_LENGTH",Kye[Kye.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Kye[Kye.JUMP_TABLE=127]="JUMP_TABLE",(Qye=Wye||(Wye={}))[Qye.EntityStart=0]="EntityStart",Qye[Qye.NumericStart=1]="NumericStart",Qye[Qye.NumericDecimal=2]="NumericDecimal",Qye[Qye.NumericHex=3]="NumericHex",Qye[Qye.NamedEntity=4]="NamedEntity",(Xye=Yye||(Yye={}))[Xye.Legacy=0]="Legacy",Xye[Xye.Strict=1]="Strict",Xye[Xye.Attribute=2]="Attribute";class tve{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Wye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yye.Strict}startEntity(e){this.decodeMode=e,this.state=Wye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Wye.EntityStart:return e.charCodeAt(t)===qye.NUM?(this.state=Wye.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Wye.NamedEntity,this.stateNamedEntity(e,t));case Wye.NumericStart:return this.stateNumericStart(e,t);case Wye.NumericDecimal:return this.stateNumericDecimal(e,t);case Wye.NumericHex:return this.stateNumericHex(e,t);case Wye.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===qye.LOWER_X?(this.state=Wye.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Wye.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=zye.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==qye.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&Gye.VALUE_LENGTH)>>14;for(;t>14,0!==i){if(o===qye.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Yye.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&Gye.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~Gye.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Wye.NamedEntity:return 0===this.result||this.decodeMode===Yye.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Wye.NumericDecimal:return this.emitNumericEntity(0,2);case Wye.NumericHex:return this.emitNumericEntity(0,3);case Wye.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wye.EntityStart:return 0}}}function nve(e){let t="";const n=new tve(e,e=>t+=$ye(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function rve(e,t,n,r){const i=(t&Gye.BRANCH_LENGTH)>>7,o=t&Gye.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(nr))return e[t+i];s=t-1}}return-1}const ive=nve(Bye);function ove(e,t=Yye.Legacy){return ive(e,t)}function ave(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}nve(Vye);const sve=Object.prototype.hasOwnProperty;function lve(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function uve(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function cve(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function pve(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const dve=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,fve=new RegExp(dve.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),hve=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function mve(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(fve,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&hve.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return cve(n)?pve(n):e}const n=ove(e);return n!==e?n:e}(e,n)})}const gve=/[&<>"]/,yve=/[&<>"]/g,vve={"&":"&","<":"<",">":">",'"':"""};function bve(e){return vve[e]}function xve(e){return gve.test(e)?e.replace(yve,bve):e}const Eve=/[.?*+^$[\]\\(){}|-]/g;function Dve(e){switch(e){case 9:case 32:return!0}return!1}function wve(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Tve(e){return Lye.test(e)||Mye.test(e)}function Cve(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Sve(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const kve={mdurl:Pye,ucmicro:Rye},Ave=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:uve,assign:lve,escapeHtml:xve,escapeRE:function(e){return e.replace(Eve,"\\$&")},fromCodePoint:pve,has:function(e,t){return sve.call(e,t)},isMdAsciiPunct:Cve,isPunctChar:Tve,isSpace:Dve,isString:ave,isValidEntityCode:cve,isWhiteSpace:wve,lib:kve,normalizeReference:Sve,unescapeAll:mve,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(dve,"$1")}},Symbol.toStringTag,{value:"Module"}));const Nve=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:function(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=mve(e.slice(t,i)),o.pos=i,o.ok=!0),o},parseLinkLabel:function(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;o"+xve(o.content)+""},Fve.code_block=function(e,t,n,r,i){const o=e[t];return""+xve(e[t].content)+"\n"},Fve.fence=function(e,t,n,r,i){const o=e[t],a=o.info?mve(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||xve(o.content),0===s.indexOf("${s}\n`}return`
${s}
\n`},Fve.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Fve.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},Fve.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},Fve.text=function(e,t){return xve(e[t].content)},Fve.html_block=function(e,t){return e[t].content},Fve.html_inline=function(e,t){return e[t].content},_ve.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">",i},_ve.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o=0&&(n=this.attrs[t][1]),n},Ove.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Ive.prototype.Token=Ove;const Lve=/\r\n?|\n/g,Mve=/\0/g;function jve(e){return/^\s]/i.test(e)}function Rve(e){return/^<\/a\s*>/i.test(e)}const Bve=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vve=/\((c|tm|r)\)/i,Uve=/\((c|tm|r)\)/gi,zve={c:"©",r:"®",tm:"™"};function $ve(e,t){return zve[t.toLowerCase()]}function qve(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Uve,$ve)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function Hve(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Bve.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const Gve=/['"]/,Kve=/['"]/g;function Wve(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Qve(e,t){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l=48&&h<=57&&(d=p=!1),p&&d&&(p=g,d=y),p||d){if(d)for(n=r.length-1;n>=0;n--){let p=r[n];if(r[n].level=0;o--){const a=r[o];if("link_close"!==a.type){if("html_inline"===a.type&&(jve(a.content)&&i>0&&i--,Rve(a.content)&&i++),!(i>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const i=a.content;let s=e.md.linkify.match(i);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===r[o-1].type&&(s=s.slice(1));for(let t=0;tc){const t=new e.Token("text","",0);t.content=i.slice(c,a),t.level=u,l.push(t)}const p=new e.Token("link_open","a",1);p.attrs=[["href",r]],p.level=u++,p.markup="linkify",p.info="auto",l.push(p);const d=new e.Token("text","",0);d.content=o,d.level=u,l.push(d);const f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",l.push(f),c=s[t].lastIndex}if(c=0;t--)"inline"===e.tokens[t].type&&(Vve.test(e.tokens[t].content)&&qve(e.tokens[t].children),Bve.test(e.tokens[t].content)&&Hve(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Gve.test(e.tokens[t].content)&&Qve(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o0&&this.level++,this.tokens.push(r),r},Jve.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Jve.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!Dve(this.src.charCodeAt(--e)))return e+1;return e},Jve.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Jve.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;an?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},Jve.prototype.Token=Ove;function Zve(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ebe(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ibe="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",obe=new RegExp("^(?:"+rbe+"|"+ibe+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),abe=new RegExp("^(?:"+rbe+"|"+ibe+")"),sbe=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^\x3C!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(abe.source+"\\s*$"),/^$/,!1]];const lbe=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!Dve(s))return!1;if(45===a&&Dve(s))return!1;for(;o=4)return!1;u=ebe(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const p=u.length;if(0===p||p!==c.length)return!1;if(r)return!0;const d=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let y=0;y=4)break;if(u=ebe(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=p-u.length,g>65536)break;if(i===t+2){e.push("tbody_open","tbody",1).map=m=[t+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let p=t,d=!1;for(;(p++,!(p>=n))&&(i=s=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],!(i=4||(i=e.skipChars(i,a),i-s=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],p=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let f,h=!1;for(f=t;f=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[f]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[f]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[f]),e.bMarks[f]=i;i=o,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(t?1:0),u.push(e.sCount[f]),e.sCount[f]=a-r,c.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f];continue}if(h)break;let r=!1;for(let i=0,o=p.length;i";const y=[t,0];g.map=y,e.md.block.tokenize(e,t,f),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=d,y[1]=e.line;for(let v=0;v=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(f=!0),(d=nbe(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(a,d-1)),f&&1!==p)return!1}else{if(!((d=tbe(e,l))>=0))return!1;c=!1}if(f&&e.skipSpaces(d)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(d-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==p&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let y=!1;const v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l=i?1:r-t,f>4&&(f=1);const m=t+f;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,d-1));const b=e.tight,x=e.tShift[l],E=e.sCount[l],D=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=p-e.bMarks[l],e.sCount[l]=r,p>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!y||(u=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=D,e.tShift[l]=x,e.sCount[l]=E,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]=4)break;let w=!1;for(let i=0,o=v.length;i=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let a=0,s=r.length;a=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i6||ii&&Dve(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i=n))&&!(e.sCount[a]=o){e.line=n;break}const t=e.line;let l=!1;for(let o=0;o=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},cbe.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o?@[]^_`{|}~-".split("").forEach(function(e){fbe[e.charCodeAt(0)]=1});const mbe={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const ybe={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let o=0;o\x00-\x20]*)$/;const xbe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ebe=/^&([a-z][a-z0-9]{1,31});/i;function Dbe(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;as;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const wbe=[["text",function(e,t){let n=e.pos;for(;n0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(dbe);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==fbe[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n=p)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h=p||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h=0?r=e.src.slice(l,h++):h=f+1):h=f+1,r||(r=e.src.slice(d,f)),o=e.env.references[Sve(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=d,e.posMax=f;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=p,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const p=e.pos,d=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const f=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o=d)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o=d||41!==e.src.charCodeAt(o))return e.pos=p,!1;o++}else{if(void 0===e.env.references)return!1;if(o=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(f,h)),a=e.env.references[Sve(i)],!a)return e.pos=p,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(f,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=d,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(bbe.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(vbe.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(obe);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(xbe);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=cve(t)?pve(t):pve(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Ebe);if(r){const n=ove(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Tbe=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Dbe(e.delimiters);for(let r=0;r0&&r++,"text"===i[t].type&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Cbe.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Cbe.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Pbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Obe(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Oye.source,t.src_Cc=Iye.source,t.src_Z=jye.source,t.src_P=Lye.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===kbe(n))return!function(e){return"[object RegExp]"===kbe(e)}(n.validate)?Abe(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Abe(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===kbe(e)}(n)?o(t,n):i.push(t)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Nbe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Ibe(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Lbe(e,t){const n=new Ibe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Mbe(e,t){if(!(this instanceof Mbe))return new Mbe(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Fbe.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Sbe({},Fbe,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Sbe({},_be,e),this.__compiled__={},this.__tlds__=Pbe,this.__tlds_replaced__=!1,this.re={},Obe(this)}Mbe.prototype.add=function(e,t){return this.__schemas__[e]=t,Obe(this),this},Mbe.prototype.set=function(e){return this.__opts__=Sbe(this.__opts__,e),this},Mbe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},Mbe.prototype.pretest=function(e){return this.re.pretest.test(e)},Mbe.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Mbe.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Lbe(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Lbe(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Mbe.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Lbe(this,0)):null},Mbe.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Obe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Obe(this),this)},Mbe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Mbe.prototype.onCompile=function(){};const jbe=2147483647,Rbe=36,Bbe=/^xn--/,Vbe=/[^\0-\x7F]/,Ube=/[\x2E\u3002\uFF0E\uFF61]/g,zbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$be=Math.floor,qbe=String.fromCharCode;function Hbe(e){throw new RangeError(zbe[e])}function Gbe(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(Ube,".")).split("."),t).join(".");return r+i}function Kbe(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&n=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Rbe},Qbe=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Ybe=function(e,t,n){let r=0;for(e=n?$be(e/700):e>>1,e+=$be(e/t);e>455;r+=Rbe)e=$be(e/35);return $be(r+36*e/(e+38))},Xbe=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&Hbe("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Hbe("invalid-input");const a=Wbe(e.charCodeAt(s++));a>=Rbe&&Hbe("invalid-input"),a>$be((jbe-r)/t)&&Hbe("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a$be(jbe/u)&&Hbe("overflow"),t*=u}const l=t.length+1;o=Ybe(r-a,l,0==a),$be(r/l)>jbe-i&&Hbe("overflow"),i+=$be(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Jbe=function(e){const t=[],n=(e=Kbe(e)).length;let r=128,i=0,o=72;for(const l of e)l<128&&t.push(qbe(l));const a=t.length;let s=a;for(a&&t.push("-");s=r&&t$be((jbe-i)/l)&&Hbe("overflow"),i+=(n-r)*l,r=n;for(const u of e)if(ujbe&&Hbe("overflow"),u===r){let e=i;for(let n=Rbe;;n+=Rbe){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=Zbe(t.hostname)}catch(n){}return yye(vye(t))}function sxe(e){const t=_ye(e,!0);if(t.hostname&&(!t.protocol||oxe.indexOf(t.protocol)>=0))try{t.hostname=exe(t.hostname)}catch(n){}return mye(vye(t),mye.defaultChars+"%")}function lxe(e,t){if(!(this instanceof lxe))return new lxe(e,t);t||ave(e)||(t=e||{},e="default"),this.inline=new Cbe,this.block=new ube,this.core=new Xve,this.renderer=new _ve,this.linkify=new Mbe,this.validateLink=ixe,this.normalizeLink=axe,this.normalizeLinkText=sxe,this.utils=Ave,this.helpers=lve({},Nve),this.options={},this.configure(e),t&&this.set(t)}lxe.prototype.set=function(e){return lve(this.options,e),this},lxe.prototype.configure=function(e){const t=this;if(ave(e)){const t=e;if(!(e=txe[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},lxe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},lxe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},lxe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},lxe.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},lxe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},lxe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},lxe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var uxe=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},cxe={measureLayout:uxe(["layout","layoutId","drag"]),animation:uxe(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:uxe(["exit"]),drag:uxe(["drag","dragControls"]),focus:uxe(["whileFocus"]),hover:uxe(["whileHover","onHoverStart","onHoverEnd"]),tap:uxe(["whileTap","onTap","onTapStart","onTapCancel"]),pan:uxe(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:uxe(["whileInView","onViewportEnter","onViewportLeave"])};var pxe=function(){},dxe=q.createContext({strict:!1}),fxe=Object.keys(cxe),hxe=fxe.length;var mxe=q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),gxe=q.createContext({});var yxe=q.createContext(null),vxe="undefined"!=typeof document,bxe=vxe?q.useLayoutEffect:q.useEffect,xxe={current:null},Exe=!1;function Dxe(){return!Exe&&function(){if(Exe=!0,vxe)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return xxe.current=e.matches};e.addListener(t),t()}else xxe.current=!1}(),Yj(q.useState(xxe.current),1)[0]}function wxe(e,t,n,r){var i,o,a=q.useContext(dxe),s=q.useContext(gxe).visualElement,l=q.useContext(yxe),u=(i=Dxe(),"never"!==(o=q.useContext(mxe).reducedMotion)&&("always"===o||i)),c=q.useRef(void 0);r||(r=a.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:u}));var p=c.current;return bxe(function(){null==p||p.syncRender()}),q.useEffect(function(){var e;null===(e=null==p?void 0:p.animationState)||void 0===e||e.animateChanges()}),bxe(function(){return function(){return null==p?void 0:p.notifyUnmount()}},[]),p}function Txe(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cxe(e){return Array.isArray(e)}function Sxe(e){return"string"==typeof e||Cxe(e)}function kxe(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Axe(e,t,n){var r=e.getProps();return kxe(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function Nxe(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Sxe(e.initial)||Sxe(e.animate)||Sxe(e.whileHover)||Sxe(e.whileDrag)||Sxe(e.whileTap)||Sxe(e.whileFocus)||Sxe(e.exit)}function Fxe(e){return Boolean(Nxe(e)||e.variants)}function _xe(e){var t=function(e,t){if(Nxe(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Sxe(n)?n:void 0,animate:Sxe(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,q.useContext(gxe)),n=t.initial,r=t.animate;return q.useMemo(function(){return{initial:n,animate:r}},[Pxe(n),Pxe(r)])}function Pxe(e){return Array.isArray(e)?e.join(" "):e}function Oxe(e){var t=q.useRef(null);return null===t.current&&(t.current=e()),t.current}var Ixe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lxe=1;var Mxe=q.createContext({}),jxe=q.createContext({});var Rxe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kj(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(H.Component);function Bxe(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?cxe.projectionNodeConstructor=e[t]:cxe[t].Component=e[t])}(t),q.forwardRef(function(e,t){var s=function(e){var t,n=e.layoutId,r=null===(t=q.useContext(Mxe))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Wj(Wj({},e),{layoutId:s});var l=q.useContext(mxe),u=null,c=_xe(e),p=l.isStatic?void 0:Oxe(function(){if(Ixe.hasEverUpdated)return Lxe++}),d=o(e,l.isStatic);return!l.isStatic&&vxe&&(c.visualElement=wxe(a,d,Wj(Wj({},l),e),n),function(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=q.useContext(jxe);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(s)||l&&Txe(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:c,layoutScroll:u}))}(p,e,c.visualElement,r||cxe.projectionNodeConstructor),u=function(e,t){var n=[];if(q.useContext(dxe),!t)return null;for(var r=0;r-1||/[A-Z]/.test(e))}var $xe={};var qxe=["","X","Y","Z"],Hxe=["transformPerspective","x","y","z"];function Gxe(e,t){return Hxe.indexOf(e)-Hxe.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return qxe.forEach(function(t){return Hxe.push(e+t)})});var Kxe=new Set(Hxe);function Wxe(e){return Kxe.has(e)}var Qxe=new Set(["originX","originY","originZ"]);function Yxe(e){return Qxe.has(e)}function Xxe(e,t){var n=t.layout,r=t.layoutId;return Wxe(e)||Yxe(e)||(n||void 0!==r)&&(!!$xe[e]||"opacity"===e)}var Jxe=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Zxe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function eEe(e){return e.startsWith("--")}var tEe=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const nEe=(e,t)=>n=>Math.max(Math.min(n,t),e),rEe=e=>e%1?Number(e.toFixed(5)):e,iEe=/(-)?([\d]*\.?[\d])+/g,oEe=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,aEe=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function sEe(e){return"string"==typeof e}const lEe={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},uEe=Object.assign(Object.assign({},lEe),{transform:nEe(0,1)}),cEe=Object.assign(Object.assign({},lEe),{default:1}),pEe=e=>({test:t=>sEe(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),dEe=pEe("deg"),fEe=pEe("%"),hEe=pEe("px"),mEe=pEe("vh"),gEe=pEe("vw"),yEe=Object.assign(Object.assign({},fEe),{parse:e=>fEe.parse(e)/100,transform:e=>fEe.transform(100*e)}),vEe=(e,t)=>n=>Boolean(sEe(n)&&aEe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),bEe=(e,t,n)=>r=>{if(!sEe(r))return r;const[i,o,a,s]=r.match(iEe);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},xEe={test:vEe("hsl","hue"),parse:bEe("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+fEe.transform(rEe(t))+", "+fEe.transform(rEe(n))+", "+rEe(uEe.transform(r))+")"},EEe=nEe(0,255),DEe=Object.assign(Object.assign({},lEe),{transform:e=>Math.round(EEe(e))}),wEe={test:vEe("rgb","red"),parse:bEe("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+DEe.transform(e)+", "+DEe.transform(t)+", "+DEe.transform(n)+", "+rEe(uEe.transform(r))+")"};const TEe={test:vEe("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:wEe.transform},CEe={test:e=>wEe.test(e)||TEe.test(e)||xEe.test(e),parse:e=>wEe.test(e)?wEe.parse(e):xEe.test(e)?xEe.parse(e):TEe.parse(e),transform:e=>sEe(e)?e:e.hasOwnProperty("red")?wEe.transform(e):xEe.transform(e)},SEe="${c}",kEe="${n}";function AEe(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(oEe);r&&(n=r.length,e=e.replace(oEe,SEe),t.push(...r.map(CEe.parse)));const i=e.match(iEe);return i&&(e=e.replace(iEe,kEe),t.push(...i.map(lEe.parse))),{values:t,numColors:n,tokenised:e}}function NEe(e){return AEe(e).values}function FEe(e){const{values:t,numColors:n,tokenised:r}=AEe(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e;const PEe={test:function(e){var t,n,r,i;return isNaN(e)&&sEe(e)&&(null!==(n=null===(t=e.match(iEe))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(oEe))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:NEe,createTransformer:FEe,getAnimatableNone:function(e){const t=NEe(e);return FEe(e)(t.map(_Ee))}},OEe=new Set(["brightness","contrast","saturate","opacity"]);function IEe(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(iEe)||[];if(!r)return e;const i=n.replace(r,"");let o=OEe.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LEe=/([a-z-]*)\(.*?\)/g,MEe=Object.assign(Object.assign({},PEe),{getAnimatableNone:e=>{const t=e.match(LEe);return t?t.map(IEe).join(" "):e}});var jEe=Wj(Wj({},lEe),{transform:Math.round}),REe={borderWidth:hEe,borderTopWidth:hEe,borderRightWidth:hEe,borderBottomWidth:hEe,borderLeftWidth:hEe,borderRadius:hEe,radius:hEe,borderTopLeftRadius:hEe,borderTopRightRadius:hEe,borderBottomRightRadius:hEe,borderBottomLeftRadius:hEe,width:hEe,maxWidth:hEe,height:hEe,maxHeight:hEe,size:hEe,top:hEe,right:hEe,bottom:hEe,left:hEe,padding:hEe,paddingTop:hEe,paddingRight:hEe,paddingBottom:hEe,paddingLeft:hEe,margin:hEe,marginTop:hEe,marginRight:hEe,marginBottom:hEe,marginLeft:hEe,rotate:dEe,rotateX:dEe,rotateY:dEe,rotateZ:dEe,scale:cEe,scaleX:cEe,scaleY:cEe,scaleZ:cEe,skew:dEe,skewX:dEe,skewY:dEe,distance:hEe,translateX:hEe,translateY:hEe,translateZ:hEe,x:hEe,y:hEe,z:hEe,perspective:hEe,transformPerspective:hEe,opacity:uEe,originX:yEe,originY:yEe,originZ:hEe,zIndex:jEe,fillOpacity:uEe,strokeOpacity:uEe,numOctaves:jEe};function BEe(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,p=!1,d=!0;for(var f in t){var h=t[f];if(eEe(f))a[f]=h;else{var m=REe[f],g=tEe(h,m);if(Wxe(f)){if(c=!0,s[f]=g,l.push(f),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else Yxe(f)?(u[f]=g,p=!0):o[f]=g}}c?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(Gxe);for(var p=!1,d=o.length,f=0;fMath.min(Math.max(n,e),t),UDe=.001;function zDe({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=VDe(.05,1,a),e=VDe(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e,o=r-n,s=qDe(t,a),l=Math.exp(-i);return UDe-o/s*l},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=qDe(Math.pow(t,2),a);return(-i(t)+UDe>0?-1:1)*((o-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<$De;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const $De=12;function qDe(e,t){return e*Math.sqrt(1-t*t)}const HDe=["duration","bounce"],GDe=["stiffness","damping","mass"];function KDe(e,t){return t.some(t=>void 0!==e[t])}function WDe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Qj(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:d}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!KDe(e,GDe)&&KDe(e,HDe)){const n=zDe(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),f=QDe,h=QDe;function m(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=qDe(a,o);f=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)f=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);f=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=f(e);if(d)a.done=e>=p;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}WDe.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const QDe=e=>0,YDe=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},XDe=(e,t,n)=>-n*e+n*t+e;function JDe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZDe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=JDe(s,r,e+1/3),o=JDe(s,r,e),a=JDe(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const ewe=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},twe=[TEe,wEe,xEe],nwe=e=>twe.find(t=>t.test(e)),rwe=(e,t)=>{let n=nwe(e),r=nwe(t),i=n.parse(e),o=r.parse(t);n===xEe&&(i=ZDe(i),n=wEe),r===xEe&&(o=ZDe(o),r=wEe);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=ewe(i[t],o[t],e));return a.alpha=XDe(i.alpha,o.alpha,e),n.transform(a)}},iwe=e=>"number"==typeof e,owe=(e,t)=>n=>t(e(n)),awe=(...e)=>e.reduce(owe);function swe(e,t){return iwe(e)?n=>XDe(e,t,n):CEe.test(e)?rwe(e,t):pwe(e,t)}const lwe=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>swe(e,t[n]));return e=>{for(let t=0;t{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=swe(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function cwe(e){const t=PEe.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a{const n=PEe.createTransformer(t),r=cwe(e),i=cwe(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?awe(lwe(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},dwe=(e,t)=>n=>XDe(e,t,n);function fwe(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?dwe:"string"==typeof o?CEe.test(o)?rwe:pwe:Array.isArray(o)?lwe:"object"==typeof o?uwe:void 0);var o;const a=e.length-1;for(let s=0;se[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=fwe(t,r,i),s=2===o?function([e,t],[n]){return r=>n(YDe(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti||t===r);t++);o=t-1}const s=YDe(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(VDe(e[0],e[o-1],t)):s}const mwe=e=>t=>1-e(1-t),gwe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ywe=e=>t=>t*t*((e+1)*t-e),vwe=4/11,bwe=8/11,xwe=e=>e,Ewe=(Dwe=2,e=>Math.pow(e,Dwe));var Dwe;const wwe=mwe(Ewe),Twe=gwe(Ewe),Cwe=e=>1-Math.sin(Math.acos(e)),Swe=mwe(Cwe),kwe=gwe(Swe),Awe=ywe(1.525),Nwe=mwe(Awe),Fwe=gwe(Awe),_we=(e=>{const t=ywe(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Pwe=4356/361,Owe=35442/1805,Iwe=16061/1805,Lwe=e=>{if(1===e||0===e)return e;const t=e*e;return et||Twe).splice(0,e.length-1)}function Rwe({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(a),i);function l(){return hwe(s,a,{ease:Array.isArray(n)?n:jwe(a,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}const Bwe={keyframes:Rwe,spring:WDe,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};const Vwe=1/60*1e3,Uwe="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),zwe="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Uwe()),Vwe);let $we=!0,qwe=!1,Hwe=!1;const Gwe={delta:0,timestamp:0},Kwe=["read","update","preRender","render","postRender"],Wwe=Kwe.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nqwe=!0),e),{}),Qwe=Kwe.reduce((e,t)=>{const n=Wwe[t];return e[t]=(e,t=!1,r=!1)=>(qwe||eTe(),n.schedule(e,t,r)),e},{}),Ywe=Kwe.reduce((e,t)=>(e[t]=Wwe[t].cancel,e),{}),Xwe=Kwe.reduce((e,t)=>(e[t]=()=>Wwe[t].process(Gwe),e),{}),Jwe=e=>Wwe[e].process(Gwe),Zwe=e=>{qwe=!1,Gwe.delta=$we?Vwe:Math.max(Math.min(e-Gwe.timestamp,40),1),Gwe.timestamp=e,Hwe=!0,Kwe.forEach(Jwe),Hwe=!1,qwe&&($we=!1,zwe(Zwe))},eTe=()=>{qwe=!0,$we=!0,Hwe||zwe(Zwe)},tTe=()=>Gwe;function nTe(e,t,n=0){return e-t-n}const rTe=e=>{const t=({delta:t})=>e(t);return{start:()=>Qwe.update(t,!0),stop:()=>Ywe.update(t)}};function iTe(e){var t,n,{from:r,autoplay:i=!0,driver:o=rTe,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:p,onComplete:d,onRepeat:f,onUpdate:h}=e,m=Qj(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,v,{to:b}=m,x=0,E=m.duration,D=!1,w=!0;const T=function(e){if(Array.isArray(e.to))return Rwe;if(Bwe[e.type])return Bwe[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Rwe:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?WDe:Rwe}(m);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=hwe([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=T(Object.assign(Object.assign({},m),{from:r,to:b}));function S(){x++,"reverse"===l?(w=x%2==0,a=function(e,t,n=0,r=!0){return r?nTe(t+-e,t,n):t-(e-t)+n}(a,E,u,w)):(a=nTe(a,E,u),"mirror"===l&&C.flipTarget()),D=!1,f&&f()}function k(e){if(w||(e=-e),a+=e,!D){const e=C.next(Math.max(0,a));y=e.value,v&&(y=v(y)),D=w?e.done:a<=0}null==h||h(y),D&&(0===x&&(null!=E||(E=a)),x=t+n:e<=-n}(a,E,u,w)&&S():(g.stop(),d&&d()))}return i&&(null==c||c(),g=o(k),g.start()),{stop:()=>{null==p||p(),g.stop()}}}function oTe(e,t){return t?e*(1e3/t):0}const aTe=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),sTe=e=>aTe(e)&&e.hasOwnProperty("z"),lTe=(e,t)=>Math.abs(e-t);function uTe(e,t){if(iwe(e)&&iwe(t))return lTe(e,t);if(aTe(e)&&aTe(t)){const n=lTe(e.x,t.x),r=lTe(e.y,t.y),i=sTe(e)&&sTe(t)?lTe(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const cTe=(e,t)=>1-3*t+3*e,pTe=(e,t)=>3*t-6*e,dTe=e=>3*e,fTe=(e,t,n)=>((cTe(t,n)*e+pTe(t,n))*e+dTe(t))*e,hTe=(e,t,n)=>3*cTe(t,n)*e*e+2*pTe(t,n)*e+dTe(t);const mTe=.1;function gTe(e,t,n,r){if(e===t&&n===r)return xwe;const i=new Float32Array(11);for(let a=0;a<11;++a)i[a]=fTe(a*mTe,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=mTe;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*mTe,s=hTe(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=hTe(t,n,r);if(0===i)return t;t-=(fTe(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=fTe(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+mTe,e,n)}return e=>0===e||1===e?e:fTe(o(e),t,r)}var yTe=new WeakMap,vTe=new WeakMap,bTe=function(e){var t;null===(t=yTe.get(e.target))||void 0===t||t(e)},xTe=function(e){e.forEach(bTe)};function ETe(e,t,n){var r=function(e){var t=e.root,n=Qj(e,["root"]),r=t||document;vTe.has(r)||vTe.set(r,{});var i=vTe.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(xTe,Wj({root:t},n))),i[o]}(t);return yTe.set(e,n),r.observe(e),function(){yTe.delete(e),r.unobserve(e)}}var DTe={some:0,all:1};function wTe(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=void 0===a?"some":a,l=r.once;q.useEffect(function(){if(e){var r={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof s?s:DTe[s]};return ETe(n.getInstance(),r,function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(hDe.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[e,i,o,s])}function TTe(e,t,n,r){var i=r.fallback,o=void 0===i||i;q.useEffect(function(){e&&o&&requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(hDe.InView,!0)})},[e])}var CTe=function(e){return function(t){return e(t),null}},STe={inView:CTe(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=q.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?TTe:wTe)(l,s.current,t,a)}),tap:CTe(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=q.useRef(!1),l=q.useRef(null),u={passive:!(n||t||r||h)};function c(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function p(){var e;return c(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(hDe.Tap,!1),!MDe()}function d(e,n){p()&&(RDe(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){p()&&(null==r||r(e,t))}function h(e,t){var r;c(),s.current||(s.current=!0,l.current=awe(FDe(window,"pointerup",d,u),FDe(window,"pointercancel",f,u)),null===(r=o.animationState)||void 0===r||r.setActive(hDe.Tap,!0),null==n||n(e,t))}_De(o,"pointerdown",a?h:void 0,u),BDe(c)}),focus:CTe(function(e){var t=e.whileFocus,n=e.visualElement;bDe(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(hDe.Focus,!0)}:void 0),bDe(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(hDe.Focus,!1)}:void 0)}),hover:CTe(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;_De(i,"pointerenter",t||r?jDe(i,!0,t):void 0,{passive:!t}),_De(i,"pointerleave",n||r?jDe(i,!1,n):void 0,{passive:!n})})},kTe=0,ATe=function(){return kTe++};function NTe(){var e=q.useContext(yxe);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Oxe(ATe);q.useEffect(function(){return r(i)},[]);return!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function FTe(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;re<.5?.5*(1-Lwe(1-2*e)):.5*Lwe(2*e-1)+.5,bounceOut:Lwe},OTe=function(e){if(Array.isArray(e)){e.length;var t=Yj(e,4);return gTe(t[0],t[1],t[2],t[3])}return"string"==typeof e?PTe[e]:e},ITe=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!PEe.test(t)||t.startsWith("url(")))},LTe=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},MTe=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},jTe=function(){return{type:"keyframes",ease:"linear",duration:.3}},RTe=function(e){return{type:"keyframes",duration:.8,values:e}},BTe={x:LTe,y:LTe,z:LTe,rotate:LTe,rotateX:LTe,rotateY:LTe,rotateZ:LTe,scaleX:MTe,scaleY:MTe,scale:MTe,opacity:jTe,backgroundColor:jTe,color:jTe,default:MTe},VTe=Wj(Wj({},REe),{color:CEe,backgroundColor:CEe,outlineColor:CEe,fill:CEe,stroke:CEe,borderColor:CEe,borderTopColor:CEe,borderRightColor:CEe,borderBottomColor:CEe,borderLeftColor:CEe,filter:MEe,WebkitFilter:MEe}),UTe=function(e){return VTe[e]};function zTe(e,t){var n,r=UTe(e);return r!==MEe&&(r=PEe),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function $Te(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=Qj(e,["ease","times","yoyo","flip","loop"]),s=Wj({},a);return n&&(s.offset=n),a.duration&&(s.duration=_Te(a.duration)),a.repeatDelay&&(s.repeatDelay=_Te(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(OTe):OTe(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function qTe(e,t,n){var r,i,o,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Xj([],Yj(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Qj(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Wj(Wj({},e),(i=n,o=t.to,a=lDe(o)?RTe:BTe[i]||BTe.default,Wj({to:o},a(o))))),Wj(Wj({},t),$Te(e))}function HTe(e,t,n,r,i){var o,a=WTe(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=ITe(e,n);return"none"===s&&l&&"string"==typeof n?s=zTe(e,n):GTe(s)&&"string"==typeof n?s=KTe(n):!Array.isArray(n)&>e(n)&&"string"==typeof s&&(n=KTe(s)),ITe(e,s)&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:d,onStop:f}){let h;function m(e){return void 0!==n&&er}function g(e){return void 0===n?r:void 0===r||Math.abs(n-e){var n;null==p||p(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:d,onStop:f}))}function v(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;void 0!==u&&(r=u(r));const a=g(r),s=a===n?-1:1;let c,p;const d=e=>{c=p,p=e,t=oTe(e-c,tTe().delta),(1===s&&e>a||-1===s&&enull==h?void 0:h.stop()}}(Wj(Wj({},r),a)):iTe(Wj(Wj({},qTe(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=uDe(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function GTe(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function KTe(e){return"number"==typeof e?0:zTe("",e)}function WTe(e,t){return e[t]||e.default||e}function QTe(e,t,n,r){return void 0===r&&(r={}),t.start(function(i){var o,a,s=HTe(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(WTe(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?o=window.setTimeout(u,_Te(l)):u(),function(){clearTimeout(o),null==a||a.stop()}})}var YTe=function(e){return/^\-?\d*\.?\d+$/.test(e)},XTe=function(e){return/^0[^.\s]+$/.test(e)};function JTe(e,t){-1===e.indexOf(t)&&e.push(t)}function ZTe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var eCe=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return JTe(this.subscriptions,e),function(){return ZTe(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;ih&&y,D=Array.isArray(g)?g:[g],w=D.reduce(a,{});!1===v&&(w={});var T=m.prevResolvedValues,C=void 0===T?{}:T,S=Wj(Wj({},C),w),k=function(e){E=!0,d.delete(e),m.needsAnimating[e]=!0};for(var A in S){var N=w[A],F=C[A];f.hasOwnProperty(A)||(N!==F?lDe(N)&&lDe(F)?!FTe(N,F)||x?k(A):m.protectedKeys[A]=!0:void 0!==N?k(A):d.add(A):void 0!==N&&d.has(A)?k(A):m.protectedKeys[A]=!0)}m.prevProp=g,m.prevResolvedValues=w,m.isActive&&(f=Wj(Wj({},f),w)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&p.push.apply(p,Xj([],Yj(D.map(function(e){return{animation:e,options:Wj({type:i},t)}})),!1))},g=0;g=3;if(t||n){var i=e.point,o=tTe().timestamp;r.history.push(Wj(Wj({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=DCe(t,r.transformPagePoint),xDe(e)&&0===e.buttons?r.handlePointerUp(e,t):Qwe.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=TCe(DCe(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(EDe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=DCe(CDe(e),this.transformPagePoint),a=o.point,s=tTe().timestamp;this.history=[Wj(Wj({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,TCe(o,this.history)),this.removeListeners=awe(FDe(window,"pointermove",this.handlePointerMove),FDe(window,"pointerup",this.handlePointerUp),FDe(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ywe.update(this.updatePoint)},e}();function DCe(e,t){return t?{point:t(e.point)}:e}function wCe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function TCe(e,t){var n=e.point;return{point:n,delta:wCe(n,SCe(t)),offset:wCe(n,CCe(t)),velocity:kCe(t,.1)}}function CCe(e){return e[0]}function SCe(e){return e[e.length-1]}function kCe(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=SCe(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_Te(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ACe(e){return e.max-e.min}function NCe(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),uTe(e,t)t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(hDe.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&oSe(e,r,this.currentDirection)){var i,o,a,s,l,u=this.getAxisMotionValue(e),c=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=c,o=this.constraints[e],a=this.elastic[e],s=o.min,l=o.max,void 0!==s&&il&&(i=a?XDe(l,i,a.max):Math.min(i,l)),c=i),u.set(c)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Txe(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:LCe(e.x,r,o),y:LCe(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=jCe),!1===e?e=0:!0===e&&(e=jCe),{x:RCe(e,"left","right"),y:RCe(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&UCe(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Txe(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o,a,s,l,u,c=(o=r,a=i.root,s=this.visualElement.getTransformPagePoint(),l=nSe(o,s),(u=a.scroll)&&(XCe(l.x,u.x),XCe(l.y,u.y)),l),p=function(e,t){return{x:MCe(e.x,t.x),y:MCe(e.y,t.y)}}(i.layout.actual,c);if(n){var d=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(p));this.hasMutatedConstraints=!!d,d&&(p=zCe(d))}return p},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=UCe(function(n){var l;if(oSe(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var p=o?200:1e6,d=o?40:1e7,f=Wj(Wj({type:"inertia",velocity:i?e[n]:0,bounceStiffness:p,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,f)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return QTe(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;UCe(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;UCe(function(n){if(oSe(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-XDe(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(Txe(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};UCe(function(e){var n,r,i,o,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],i=.5,o=ACe(n),(s=ACe(r))>o?i=YDe(r.min,r.max-o,n.min):o>s&&(i=YDe(n.min,n.max-s,r.min)),VDe(0,1,i))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),UCe(function(e){if(oSe(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(XDe(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;rSe.set(this.visualElement,this);var n=FDe(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),r=function(){Txe(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=vDe(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(UCe(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?jCe:u,p=e.dragMomentum,d=void 0===p||p;return Wj(Wj({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function oSe(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var aSe={pan:CTe(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,s=q.useRef(null),l=q.useContext(mxe).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};q.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),_De(o,"pointerdown",a&&function(e){s.current=new ECe(e,u,{transformPagePoint:l})}),BDe(function(){return s.current&&s.current.end()})}),drag:CTe(function(e){var t=e.dragControls,n=e.visualElement,r=Oxe(function(){return new iSe(n)});q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),q.useEffect(function(){return r.addListeners()},[r])})},sSe=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var lSe=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,f=e.props,h=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var v,b,x=!1,E=g.latestValues,D=g.renderState,w=function(){var e=sSe.map(function(){return new eCe}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){sSe.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+sSe[t]]=function(t){return e.add(t)},n["notify"+sSe[t]]=function(){for(var t=[],n=0;n=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=TSe[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);vSe(r,s[n]),e[n]=TSe[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=Yj(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}};function SSe(e,t,n,r){return function(e){return Object.keys(e).some(ySe)}(t)?CSe(e,t,n,r):{target:t,transitionEnd:r}}var kSe=function(e,t,n,r){var i=function(e,t,n){var r,i=Qj(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=Wj({},n)),e.forEachValue(function(e){var t=e.get();if(pSe(t)){var n=fSe(t,o);n&&e.set(n)}}),i){var s=i[a];if(pSe(s)){var l=fSe(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return SSe(e,t=i.target,n,r=i.transitionEnd)};var ASe={treeType:"dom",readValueFromInstance:function(e,t){if(Wxe(t)){var n=UTe(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(eEe(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return nSe(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=Qj(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=uCe(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var u=0;u5)return i;var l=PEe.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,p=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=p;var d=XDe(c,p,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var f=l(s);if(o){var h=0;f=f.replace(ISe,function(){var e=a[h];return h++,e})}return f}},MSe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kj(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=jSe,Object.assign($xe,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(Wj(Wj({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ixe.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Qwe.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(H.Component);var jSe={borderRadius:Wj(Wj({},OSe),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:OSe,borderTopRightRadius:OSe,borderBottomLeftRadius:OSe,borderBottomRightRadius:OSe,boxShadow:LSe},RSe={measureLayout:function(e){var t=Yj(NTe(),2),n=t[0],r=t[1],i=q.useContext(Mxe);return H.createElement(MSe,Wj({},e,{layoutGroup:i,switchLayoutGroup:q.useContext(jxe),isPresent:n,safeToRemove:r}))}};var BSe=["TopLeft","TopRight","BottomLeft","BottomRight"],VSe=BSe.length,USe=function(e){return"string"==typeof e?parseFloat(e):e},zSe=function(e){return"number"==typeof e||hEe.test(e)};function $Se(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var qSe=GSe(0,.5,Swe),HSe=GSe(.5,.95,xwe);function GSe(e,t,n){return function(r){return rt?1:n(YDe(e,t,r))}}function KSe(e,t){e.min=t.min,e.max=t.max}function WSe(e,t){KSe(e.x,t.x),KSe(e.y,t.y)}function QSe(e,t,n,r,i){return e=KCe(e-=t,1/n,r),void 0!==i&&(e=KCe(e,1/i,r)),e}function YSe(e,t,n,r,i){var o=Yj(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),fEe.test(t)&&(t=parseFloat(t),t=XDe(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=XDe(o.min,o.max,r);e===o&&(s-=t),e.min=QSe(e.min,t,n,s,i),e.max=QSe(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var XSe=["x","scaleX","originX"],JSe=["y","scaleY","originY"];function ZSe(e,t,n,r){YSe(e.x,t,XSe,null==n?void 0:n.x,null==r?void 0:r.x),YSe(e.y,t,JSe,null==n?void 0:n.y,null==r?void 0:r.y)}function eke(e){return 0===e.translate&&1===e.scale}function tke(e){return eke(e.x)&&eke(e.y)}function nke(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var rke=function(){function e(){this.members=[]}return e.prototype.add=function(e){JTe(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(ZTe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function ike(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(u,", ").concat(c,")"))?"none":o}var oke=function(e,t){return e.depth-t.depth},ake=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){JTe(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ZTe(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(oke),this.isDirty=!1,this.children.forEach(e)},e}();function ske(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(hke),i.nodes.forEach(mke)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Xj(Xj([],Yj(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function wke(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Tke(e){wke(e.x),wke(e.y)}var Cke=ske({attachResizeListener:function(e,t){return vDe(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Ske={current:void 0},kke=ske({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Ske.current){var e=new Cke(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ske.current=e}return Ske.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ake=Wj(Wj(Wj(Wj({},xCe),STe),aSe),RSe),Nke=Vxe(function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=zxe(e)?gDe:yDe;return Wj(Wj({},s),{preloadedFeatures:n,useRender:ZEe(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Ake,_Se,kke)}),Fke=q.createContext(null);function _ke(e,t,n,r){if(!r)return e;var i=e.findIndex(function(e){return e.value===t});if(-1===i)return e;var o=r>0?1:-1,a=e[i+o];if(!a)return e;var s=e[i],l=a.layout,u=XDe(l.min,l.max,.5);return 1===o&&s.layout.max+n>u||-1===o&&s.layout.min+n=0&&i(((e,t,n)=>{t in e?zke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let qke=new class{constructor(){$ke(this,"current",this.detect()),$ke(this,"handoffState","pending"),$ke(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Hke=(e,t)=>{qke.isServer?q.useEffect(e,t):q.useLayoutEffect(e,t)};function Gke(e){let t=q.useRef(e);return Hke(()=>{t.current=e},[e]),t}function Kke(e,t){let[n,r]=q.useState(e),i=Gke(e);return Hke(()=>r(i.current),[i,r,...t]),n}function Wke(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Wke();return e(t),this.add(()=>t.dispose())},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Qke(){let[e]=q.useState(Wke);return q.useEffect(()=>()=>e.dispose(),[e]),e}let Yke=function(e){let t=Gke(e);return H.useCallback((...e)=>t.current(...e),[t])};var Xke;let Jke=null!=(Xke=H.useId)?Xke:function(){let e=function(){let[e,t]=q.useState(qke.isHandoffComplete);return e&&!1===qke.isHandoffComplete&&t(!1),q.useEffect(()=>{!0!==e&&t(!0)},[e]),q.useEffect(()=>qke.handoff(),[]),e}(),[t,n]=H.useState(e?()=>qke.nextId():null);return Hke(()=>{null===t&&n(qke.nextId())},[t]),null!=t?""+t:void 0};function Zke(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zke),r}function eAe(e){return qke.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let tAe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var nAe,rAe,iAe=((rAe=iAe||{})[rAe.First=1]="First",rAe[rAe.Previous=2]="Previous",rAe[rAe.Next=4]="Next",rAe[rAe.Last=8]="Last",rAe[rAe.WrapAround=16]="WrapAround",rAe[rAe.NoScroll=32]="NoScroll",rAe),oAe=((nAe=oAe||{})[nAe.Error=0]="Error",nAe[nAe.Overflow=1]="Overflow",nAe[nAe.Success=2]="Success",nAe[nAe.Underflow=3]="Underflow",nAe),aAe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(aAe||{}),sAe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sAe||{});var lAe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(lAe||{});function uAe(e,t,n){let r=Gke(t);q.useEffect(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function cAe(e,t,n=!0){let r=q.useRef(!1);function i(n,i){if(!r.current||n.defaultPrevented)return;let o=i(n);if(null===o||!o.getRootNode().contains(o))return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=eAe(e))?void 0:n.body)&&Zke(t,{0:()=>e.matches(tAe),1(){let t=e;for(;null!==t;){if(t.matches(tAe))return!0;t=t.parentElement}return!1}})}(o,sAe.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}q.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let o=q.useRef(null);uAe("mousedown",e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),uAe("click",e=>{o.current&&(i(e,()=>o.current),o.current=null)},!0),function(e,t,n){let r=Gke(t);q.useEffect(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}("blur",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function pAe(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function dAe(e,t){let[n,r]=q.useState(()=>pAe(e));return Hke(()=>{r(pAe(e))},[e.type,e.as]),Hke(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let fAe=Symbol();function hAe(...e){let t=q.useRef(e);q.useEffect(()=>{t.current=e},[e]);let n=Yke(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[fAe]))?void 0:n}var mAe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(mAe||{});function gAe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,r)=>!(-1!==i&&r.length-n-1>=i)&&!t.resolveDisabled(e));return-1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=i)&&!t.resolveDisabled(e));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return-1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?r:o}function yAe(...e){return e.filter(Boolean).join(" ")}var vAe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vAe||{}),bAe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bAe||{});function xAe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a}){let s=DAe(t,e);if(o)return EAe(s,n,r,a);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=s;if(e)return EAe(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return Zke(e?0:1,{0:()=>null,1:()=>EAe({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return EAe(s,n,r,a)}function EAe(e,t={},n,r){let{as:i=n,children:o,refName:a="ref",...s}=CAe(e,["unmount","static"]),l=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof o?o(t):o;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(c["data-headlessui-state"]=n.join(" "))}if(i===q.Fragment&&Object.keys(TAe(s)).length>0){if(!q.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>yAe(null==e?void 0:e.className(...t),s.className):yAe(null==e?void 0:e.className,s.className),n=t?{className:t}:{};return q.cloneElement(u,Object.assign({},DAe(u.props,TAe(CAe(s,["ref"]))),c,l,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,l.ref),n))}return q.createElement(i,Object.assign({},CAe(s,["ref"]),i!==q.Fragment&&l,i!==q.Fragment&&c),u)}function DAe(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function wAe(e){var t;return Object.assign(q.forwardRef(e),{displayName:null!=(t=e.displayName)?t:e.name})}function TAe(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function CAe(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function SAe(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}function kAe(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))NAe(n,AAe(t,r),i);return n}function AAe(e,t){return e?e+"["+t+"]":t}function NAe(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())NAe(e,AAe(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):kAe(n,t,e)}var FAe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(FAe||{});let _Ae=wAe(function(e,t){let{features:n=1,...r}=e;return xAe({ourProps:{ref:t,"aria-hidden":!(2&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}),PAe=q.createContext(null);PAe.displayName="OpenClosedContext";var OAe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(OAe||{});function IAe({value:e,children:t}){return H.createElement(PAe.Provider,{value:e},t)}var LAe,MAe=((LAe=MAe||{}).Space=" ",LAe.Enter="Enter",LAe.Escape="Escape",LAe.Backspace="Backspace",LAe.Delete="Delete",LAe.ArrowLeft="ArrowLeft",LAe.ArrowUp="ArrowUp",LAe.ArrowRight="ArrowRight",LAe.ArrowDown="ArrowDown",LAe.Home="Home",LAe.End="End",LAe.PageUp="PageUp",LAe.PageDown="PageDown",LAe.Tab="Tab",LAe);function jAe(e,t){let n=q.useRef([]),r=Yke(e);q.useEffect(()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}},[r,...t])}function RAe(e){return[e.screenX,e.screenY]}function BAe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}var VAe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VAe||{}),UAe=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(UAe||{}),zAe=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(zAe||{}),$Ae=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))($Ae||{});function qAe(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return-1===i&&(i=null),{options:r,activeOptionIndex:i}}let HAe={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:t}=e.dataRef.current,r=e.options.findIndex(e=>t(e.dataRef.current.value));-1!==r&&(n=r)}return{...e,comboboxState:0,activeOptionIndex:n}},2(e,t){var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.disabled||null!=(r=e.dataRef.current)&&r.optionsRef.current&&(null==(i=e.dataRef.current)||!i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let a=qAe(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let s=gAe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:s,activationTrigger:null!=(o=t.trigger)?o:1}},3:(e,t)=>{var n,r;let i={id:t.id,dataRef:t.dataRef},o=qAe(e,e=>[...e,i]);null===e.activeOptionIndex&&null!=(n=e.dataRef.current)&&n.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(i));let a={...e,...o,activationTrigger:1};return null!=(r=e.dataRef.current)&&r.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},4:(e,t)=>{let n=qAe(e,e=>{let n=e.findIndex(e=>e.id===t.id);return-1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},GAe=q.createContext(null);function KAe(e){let t=q.useContext(GAe);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,KAe),t}return t}GAe.displayName="ComboboxActionsContext";let WAe=q.createContext(null);function QAe(e){let t=q.useContext(WAe);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,QAe),t}return t}function YAe(e,t){return Zke(t.type,HAe,e,t)}WAe.displayName="ComboboxDataContext";let XAe=q.Fragment;let JAe=vAe.RenderStrategy|vAe.Static;let ZAe=wAe(function(e,t){let{value:n,defaultValue:r,onChange:i,form:o,name:a,by:s=(e,t)=>e===t,disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:p=!1,...d}=e,[f=(p?[]:void 0),h]=function(e,t,n){let[r,i]=q.useState(n),o=void 0!==e,a=q.useRef(o),s=q.useRef(!1),l=q.useRef(!1);return!o||a.current||s.current?!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,Yke(e=>(o||i(e),null==t?void 0:t(e)))]}(n,i,r),[m,g]=q.useReducer(YAe,{dataRef:q.createRef(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),y=q.useRef(!1),v=q.useRef({static:!1,hold:!1}),b=q.useRef(null),x=q.useRef(null),E=q.useRef(null),D=q.useRef(null),w=Yke("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),T=q.useCallback(e=>Zke(C.mode,{1:()=>f.some(t=>w(t,e)),0:()=>w(f,e)}),[f]),C=q.useMemo(()=>({...m,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:E,optionsRef:D,value:f,defaultValue:r,disabled:l,mode:p?1:0,get activeOptionIndex(){if(y.current&&null===m.activeOptionIndex&&m.options.length>0){let e=m.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return m.activeOptionIndex},compare:w,isSelected:T,nullable:c,__demoMode:u}),[f,r,l,p,c,u,m]),S=q.useRef(null!==C.activeOptionIndex?C.options[C.activeOptionIndex]:null);q.useEffect(()=>{let e=null!==C.activeOptionIndex?C.options[C.activeOptionIndex]:null;S.current!==e&&(S.current=e)}),Hke(()=>{m.dataRef.current=C},[C]),cAe([C.buttonRef,C.inputRef,C.optionsRef],()=>M.closeCombobox(),0===C.comboboxState);let k=q.useMemo(()=>({open:0===C.comboboxState,disabled:l,activeIndex:C.activeOptionIndex,activeOption:null===C.activeOptionIndex?null:C.options[C.activeOptionIndex].dataRef.current.value,value:f}),[C,l,f]),A=Yke(e=>{let t=C.options.find(t=>t.id===e);t&&L(t.dataRef.current.value)}),N=Yke(()=>{if(null!==C.activeOptionIndex){let{dataRef:e,id:t}=C.options[C.activeOptionIndex];L(e.current.value),M.goToOption(mAe.Specific,t)}}),F=Yke(()=>{g({type:0}),y.current=!0}),_=Yke(()=>{g({type:1}),y.current=!1}),P=Yke((e,t,n)=>(y.current=!1,e===mAe.Specific?g({type:2,focus:mAe.Specific,id:t,trigger:n}):g({type:2,focus:e,trigger:n}))),O=Yke((e,t)=>(g({type:3,id:e,dataRef:t}),()=>{var t;(null==(t=S.current)?void 0:t.id)===e&&(y.current=!0),g({type:4,id:e})})),I=Yke(e=>(g({type:5,id:e}),()=>g({type:5,id:null}))),L=Yke(e=>Zke(C.mode,{0:()=>null==h?void 0:h(e),1(){let t=C.value.slice(),n=t.findIndex(t=>w(t,e));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}})),M=q.useMemo(()=>({onChange:L,registerOption:O,registerLabel:I,goToOption:P,closeCombobox:_,openCombobox:F,selectActiveOption:N,selectOption:A}),[]),j=null===t?{}:{ref:t},R=q.useRef(null),B=Qke();return q.useEffect(()=>{R.current&&void 0!==r&&B.addEventListener(R.current,"reset",()=>{L(r)})},[R,L]),H.createElement(GAe.Provider,{value:M},H.createElement(WAe.Provider,{value:C},H.createElement(IAe,{value:Zke(C.comboboxState,{0:OAe.Open,1:OAe.Closed})},null!=a&&null!=f&&kAe({[a]:f}).map(([e,t],n)=>H.createElement(_Ae,{features:FAe.Hidden,ref:0===n?e=>{var t;R.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...TAe({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})})),xAe({ourProps:j,theirProps:d,slot:k,defaultTag:XAe,name:"Combobox"}))))}),eNe=wAe(function(e,t){var n;let r=QAe("Combobox.Button"),i=KAe("Combobox.Button"),o=hAe(r.buttonRef,t),a=Jke(),{id:s=`headlessui-combobox-button-${a}`,...l}=e,u=Qke(),c=Yke(e=>{switch(e.key){case MAe.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&i.openCombobox(),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case MAe.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(i.openCombobox(),u.nextFrame(()=>{r.value||i.goToOption(mAe.Last)})),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case MAe.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),i.closeCombobox(),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),p=Yke(e=>{if(SAe(e.currentTarget))return e.preventDefault();0===r.comboboxState?i.closeCombobox():(e.preventDefault(),i.openCombobox()),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),d=Kke(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),f=q.useMemo(()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value}),[r]);return xAe({ourProps:{ref:o,id:s,type:dAe(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":d,disabled:r.disabled,onClick:p,onKeyDown:c},theirProps:l,slot:f,defaultTag:"button",name:"Combobox.Button"})}),tNe=wAe(function(e,t){var n,r,i,o;let a=Jke(),{id:s=`headlessui-combobox-input-${a}`,onChange:l,displayValue:u,type:c="text",...p}=e,d=QAe("Combobox.Input"),f=KAe("Combobox.Input"),h=hAe(d.inputRef,t),m=q.useRef(!1),g=Qke();var y;jAe(([e,t],[n,r])=>{m.current||d.inputRef.current&&(0===r&&1===t||e!==n)&&(d.inputRef.current.value=e)},["function"==typeof u&&void 0!==d.value?null!=(y=u(d.value))?y:"":"string"==typeof d.value?d.value:"",d.comboboxState]),jAe(([e],[t])=>{if(0===e&&1===t){let e=d.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}},[d.comboboxState]);let v=q.useRef(!1),b=q.useRef(null),x=Yke(()=>{v.current=!0}),E=Yke(()=>{g.nextFrame(()=>{v.current=!1,b.current&&(f.openCombobox(),null==l||l(b.current),b.current=null)})}),D=Yke(e=>{switch(m.current=!0,e.key){case MAe.Backspace:case MAe.Delete:if(0!==d.mode||!d.nullable)return;let t=e.currentTarget;g.requestAnimationFrame(()=>{""===t.value&&(f.onChange(null),d.optionsRef.current&&(d.optionsRef.current.scrollTop=0),f.goToOption(mAe.Nothing))});break;case MAe.Enter:if(m.current=!1,0!==d.comboboxState||v.current)return;if(e.preventDefault(),e.stopPropagation(),null===d.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===d.mode&&f.closeCombobox();break;case MAe.ArrowDown:return m.current=!1,e.preventDefault(),e.stopPropagation(),Zke(d.comboboxState,{0:()=>{f.goToOption(mAe.Next)},1:()=>{f.openCombobox()}});case MAe.ArrowUp:return m.current=!1,e.preventDefault(),e.stopPropagation(),Zke(d.comboboxState,{0:()=>{f.goToOption(mAe.Previous)},1:()=>{f.openCombobox(),g.nextFrame(()=>{d.value||f.goToOption(mAe.Last)})}});case MAe.Home:if(e.shiftKey)break;return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.First);case MAe.PageUp:return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.First);case MAe.End:if(e.shiftKey)break;return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.Last);case MAe.PageDown:return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.Last);case MAe.Escape:return m.current=!1,0!==d.comboboxState?void 0:(e.preventDefault(),d.optionsRef.current&&!d.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case MAe.Tab:if(m.current=!1,0!==d.comboboxState)return;0===d.mode&&f.selectActiveOption(),f.closeCombobox()}}),w=Yke(e=>{v.current?b.current=e:(f.openCombobox(),null==l||l(e))}),T=Yke(()=>{m.current=!1}),C=Kke(()=>{if(d.labelId)return[d.labelId].join(" ")},[d.labelId]),S=q.useMemo(()=>({open:0===d.comboboxState,disabled:d.disabled}),[d]);return xAe({ourProps:{ref:h,id:s,role:"combobox",type:c,"aria-controls":null==(n=d.optionsRef.current)?void 0:n.id,"aria-expanded":d.disabled?void 0:0===d.comboboxState,"aria-activedescendant":null===d.activeOptionIndex||null==(r=d.options[d.activeOptionIndex])?void 0:r.id,"aria-labelledby":C,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(i=e.defaultValue)?i:void 0!==d.defaultValue?null==u?void 0:u(d.defaultValue):null)?o:d.defaultValue,disabled:d.disabled,onCompositionStart:x,onCompositionEnd:E,onKeyDown:D,onChange:w,onBlur:T},theirProps:p,slot:S,defaultTag:"input",name:"Combobox.Input"})}),nNe=wAe(function(e,t){let n=Jke(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=QAe("Combobox.Label"),a=KAe("Combobox.Label"),s=hAe(o.labelRef,t);Hke(()=>a.registerLabel(r),[r]);let l=Yke(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}),u=q.useMemo(()=>({open:0===o.comboboxState,disabled:o.disabled}),[o]);return xAe({ourProps:{ref:s,id:r,onClick:l},theirProps:i,slot:u,defaultTag:"label",name:"Combobox.Label"})}),rNe=wAe(function(e,t){let n=Jke(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,a=QAe("Combobox.Options"),s=hAe(a.optionsRef,t),l=q.useContext(PAe),u=null!==l?(l&OAe.Open)===OAe.Open:0===a.comboboxState;Hke(()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t},[a.optionsPropsRef,e.static]),Hke(()=>{a.optionsPropsRef.current.hold=i},[a.optionsPropsRef,i]),function({container:e,accept:t,walk:n,enabled:r=!0}){let i=q.useRef(t),o=q.useRef(n);q.useEffect(()=>{i.current=t,o.current=n},[t,n]),Hke(()=>{if(!e||!r)return;let t=eAe(e);if(!t)return;let n=i.current,a=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[e,r,i,o])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Kke(()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id},[a.labelId,a.buttonRef.current]),p=q.useMemo(()=>({open:0===a.comboboxState}),[a]);return xAe({ourProps:{"aria-labelledby":c,role:"listbox","aria-multiselectable":1===a.mode||void 0,id:r,ref:s},theirProps:o,slot:p,defaultTag:"ul",features:JAe,visible:u,name:"Combobox.Options"})}),iNe=wAe(function(e,t){var n,r;let i=Jke(),{id:o=`headlessui-combobox-option-${i}`,disabled:a=!1,value:s,...l}=e,u=QAe("Combobox.Option"),c=KAe("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===o,d=u.isSelected(s),f=q.useRef(null),h=Gke({disabled:a,value:s,domRef:f,textValue:null==(r=null==(n=f.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),m=hAe(t,f),g=Yke(()=>c.selectOption(o));Hke(()=>c.registerOption(o,h),[h,o]);let y=q.useRef(!u.__demoMode);Hke(()=>{if(!u.__demoMode)return;let e=Wke();return e.requestAnimationFrame(()=>{y.current=!0}),e.dispose},[]),Hke(()=>{if(0!==u.comboboxState||!p||!y.current||0===u.activationTrigger)return;let e=Wke();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let v=Yke(e=>{if(a)return e.preventDefault();g(),0===u.mode&&c.closeCombobox(),BAe()||requestAnimationFrame(()=>{var e;return null==(e=u.inputRef.current)?void 0:e.focus()})}),b=Yke(()=>{if(a)return c.goToOption(mAe.Nothing);c.goToOption(mAe.Specific,o)}),x=function(){let e=q.useRef([-1,-1]);return{wasMoved(t){let n=RAe(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=RAe(t)}}}(),E=Yke(e=>x.update(e)),D=Yke(e=>{x.wasMoved(e)&&(a||p||c.goToOption(mAe.Specific,o,0))}),w=Yke(e=>{x.wasMoved(e)&&(a||p&&(u.optionsPropsRef.current.hold||c.goToOption(mAe.Nothing)))}),T=q.useMemo(()=>({active:p,selected:d,disabled:a}),[p,d,a]);return xAe({ourProps:{id:o,ref:m,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":d,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:E,onMouseEnter:E,onPointerMove:D,onMouseMove:D,onPointerLeave:w,onMouseLeave:w},theirProps:l,slot:T,defaultTag:"li",name:"Combobox.Option"})}),oNe=Object.assign(ZAe,{Input:tNe,Button:eNe,Label:nNe,Options:rNe,Option:iNe});var aNe=Object.defineProperty,sNe=(e,t)=>aNe(e,"name",{value:t,configurable:!0});function lNe(e){const t=q.createContext(null);return t.displayName=e,t}function uNe(e){function t(n){var r;const i=q.useContext(e);if(null===i&&null!=n&&n.nonNull)throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return sNe(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}sNe(lNe,"createNullableContext"),sNe(uNe,"createContextHook");const cNe=lNe("StorageContext");function pNe(e){const t=q.useRef(!0),[n,r]=q.useState(new Gpe(e.storage));return q.useEffect(()=>{t.current?t.current=!1:r(new Gpe(e.storage))},[e.storage]),ee.jsx(cNe.Provider,{value:n,children:e.children})}sNe(pNe,"StorageContextProvider");const dNe=uNe(cNe),fNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),hNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),mNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),gNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),yNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1 1L12.9998 12.9997"}),q.createElement("path",{d:"M13 1L1.00079 13.0003"})),"SvgClose"),vNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),q.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),bNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),xNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgDeprecatedEnumValue"),ENe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),DNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),"SvgDirective"),wNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),"SvgDocsFilled"),TNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),q.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),CNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgEnumValue"),SNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),kNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),q.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),q.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),"SvgHistory"),ANe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),q.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),NNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgKeyboardShortcut"),FNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),q.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),_Ne=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),PNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),q.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),ONe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),"SvgPlay"),INe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),"SvgPlus"),LNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),q.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),"SvgPrettify"),MNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),q.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),q.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),q.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),"SvgReload"),jNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),"SvgRootType"),RNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),"SvgSettings"),BNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),"SvgStarFilled"),VNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),"SvgStar"),UNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),zNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},void 0===e?q.createElement("title",{id:t},"trash icon"):e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),"SvgTrash"),$Ne=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),qNe=EFe(fNe),HNe=EFe(hNe),GNe=EFe(mNe),KNe=EFe(gNe),WNe=EFe(yNe),QNe=EFe(vNe),YNe=EFe(bNe),XNe=EFe(xNe),JNe=EFe(ENe),ZNe=EFe(DNe),eFe=EFe(wNe,"filled docs icon"),tFe=EFe(TNe),nFe=EFe(CNe),rFe=EFe(SNe),iFe=EFe(kNe),oFe=EFe(ANe),aFe=EFe(NNe),sFe=EFe(FNe),lFe=EFe(_Ne),uFe=EFe(PNe),cFe=EFe(ONe),pFe=EFe(INe),dFe=EFe(LNe),fFe=EFe(MNe),hFe=EFe(jNe),mFe=EFe(RNe),gFe=EFe(BNe,"filled star icon"),yFe=EFe(VNe),vFe=EFe(UNe),bFe=EFe(zNe,"trash icon"),xFe=EFe($Ne);function EFe(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){function n(n){return ee.jsx(e,{title:t,...n})}return sNe(n,"IconComponent"),n.displayName=e.name,n}sNe(EFe,"generateIcon");const DFe=q.forwardRef((e,t)=>ee.jsx("button",{...e,ref:t,className:upe("graphiql-un-styled",e.className)}));DFe.displayName="UnStyledButton";const wFe=q.forwardRef((e,t)=>ee.jsx("button",{...e,ref:t,className:upe("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));wFe.displayName="Button";const TFe=q.forwardRef((e,t)=>ee.jsx("div",{...e,ref:t,className:upe("graphiql-button-group",e.className)}));TFe.displayName="ButtonGroup";const CFe=sNe((e,t)=>Object.entries(t).reduce((e,[t,n])=>(e[t]=n,e),e),"createComponentGroup"),SFe=q.forwardRef((e,t)=>ee.jsx(bB,{asChild:!0,children:ee.jsxs(DFe,{...e,ref:t,type:"button",className:upe("graphiql-dialog-close",e.className),children:[ee.jsx(oce,{children:"Close dialog"}),ee.jsx(WNe,{})]})}));function kFe({children:e,...t}){return ee.jsx(dB,{...t,children:ee.jsxs(hB,{children:[ee.jsx(mB,{className:"graphiql-dialog-overlay"}),ee.jsx(gB,{className:"graphiql-dialog",children:e})]})})}SFe.displayName="Dialog.Close",sNe(kFe,"DialogRoot");const AFe=CFe(kFe,{Close:SFe,Title:yB,Trigger:fB,Description:vB}),NFe=q.forwardRef((e,t)=>ee.jsx(cye,{asChild:!0,children:ee.jsx("button",{...e,ref:t,className:upe("graphiql-un-styled",e.className)})}));function FFe({children:e,align:t="start",sideOffset:n=5,className:r,...i}){return ee.jsx(pye,{children:ee.jsx(dye,{align:t,sideOffset:n,className:upe("graphiql-dropdown-content",r),...i,children:e})})}NFe.displayName="DropdownMenuButton",sNe(FFe,"Content");const _Fe=sNe(({className:e,children:t,...n})=>ee.jsx(fye,{className:upe("graphiql-dropdown-item",e),...n,children:t}),"Item"),PFe=CFe(uye,{Button:NFe,Item:_Fe,Content:FFe}),OFe=new lxe({breaks:!0,linkify:!0}),IFe=q.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>ee.jsx("div",{...r,ref:i,className:upe(`graphiql-markdown-${n}`,t&&"graphiql-markdown-preview",r.className),dangerouslySetInnerHTML:{__html:OFe.render(e)}}));IFe.displayName="MarkdownContent";const LFe=q.forwardRef((e,t)=>ee.jsx("div",{...e,ref:t,className:upe("graphiql-spinner",e.className)}));function MFe({children:e,align:t="start",side:n="bottom",sideOffset:r=5,label:i}){return ee.jsxs(Oce,{children:[ee.jsx(Ice,{asChild:!0,children:e}),ee.jsx(Lce,{children:ee.jsx(Mce,{className:"graphiql-tooltip",align:t,side:n,sideOffset:r,children:i})})]})}LFe.displayName="Spinner",sNe(MFe,"TooltipRoot");const jFe=CFe(MFe,{Provider:Pce}),RFe=q.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>ee.jsx(Uke.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:upe("graphiql-tab",e&&"graphiql-tab-active",r),children:n}));RFe.displayName="Tab";const BFe=q.forwardRef((e,t)=>ee.jsx(DFe,{...e,ref:t,type:"button",className:upe("graphiql-tab-button",e.className),children:e.children}));BFe.displayName="Tab.Button";const VFe=q.forwardRef((e,t)=>ee.jsx(jFe,{label:"Close Tab",children:ee.jsx(DFe,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:upe("graphiql-tab-close",e.className),children:ee.jsx(WNe,{})})}));VFe.displayName="Tab.Close";const UFe=CFe(RFe,{Button:BFe,Close:VFe}),zFe=q.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>ee.jsx(Uke.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:upe("graphiql-tabs",r),children:n}));zFe.displayName="Tabs";const $Fe=lNe("HistoryContext");function qFe(e){var t;const n=dNe(),r=q.useRef(new Qpe(n||new Gpe(null),e.maxHistoryLength||GFe)),[i,o]=q.useState((null==(t=r.current)?void 0:t.queries)||[]),a=q.useCallback(e=>{var t;null==(t=r.current)||t.updateHistory(e),o(r.current.queries)},[]),s=q.useCallback((e,t)=>{r.current.editLabel(e,t),o(r.current.queries)},[]),l=q.useCallback(e=>{r.current.toggleFavorite(e),o(r.current.queries)},[]),u=q.useCallback(e=>e,[]),c=q.useCallback((e,t=!1)=>{r.current.deleteHistory(e,t),o(r.current.queries)},[]),p=q.useMemo(()=>({addToHistory:a,editLabel:s,items:i,toggleFavorite:l,setActive:u,deleteFromHistory:c}),[a,s,i,l,u,c]);return ee.jsx($Fe.Provider,{value:p,children:e.children})}sNe(qFe,"HistoryContextProvider");const HFe=uNe($Fe),GFe=20;function KFe(){const{items:e,deleteFromHistory:t}=HFe({nonNull:!0});let n=e.slice().map((e,t)=>({...e,index:t})).reverse();const r=n.filter(e=>e.favorite);r.length&&(n=n.filter(e=>!e.favorite));const[i,o]=q.useState(null);q.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const a=q.useCallback(()=>{try{for(const e of n)t(e,!0);o("success")}catch{o("error")}},[t,n]);return ee.jsxs("section",{"aria-label":"History",className:"graphiql-history",children:[ee.jsxs("div",{className:"graphiql-history-header",children:["History",(i||n.length>0)&&ee.jsx(wFe,{type:"button",state:i||void 0,disabled:!n.length,onClick:a,children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),!!r.length&&ee.jsx("ul",{className:"graphiql-history-items",children:r.map(e=>ee.jsx(WFe,{item:e},e.index))}),!!r.length&&!!n.length&&ee.jsx("div",{className:"graphiql-history-item-spacer"}),!!n.length&&ee.jsx("ul",{className:"graphiql-history-items",children:n.map(e=>ee.jsx(WFe,{item:e},e.index))})]})}function WFe(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=HFe({nonNull:!0,caller:WFe}),{headerEditor:o,queryEditor:a,variableEditor:s}=zPe({nonNull:!0,caller:WFe}),l=q.useRef(null),u=q.useRef(null),[c,p]=q.useState(!1);q.useEffect(()=>{var e;c&&(null==(e=l.current)||e.focus())},[c]);const d=e.item.label||e.item.operationName||QFe(e.item.query),f=q.useCallback(()=>{var n;p(!1);const{index:r,...i}=e.item;t({...i,label:null==(n=l.current)?void 0:n.value},r)},[t,e.item]),h=q.useCallback(()=>{p(!1)},[]),m=q.useCallback(e=>{e.stopPropagation(),p(!0)},[]),g=q.useCallback(()=>{const{query:t,variables:n,headers:r}=e.item;null==a||a.setValue(t??""),null==s||s.setValue(n??""),null==o||o.setValue(r??""),i(e.item)},[o,e.item,a,i,s]),y=q.useCallback(t=>{t.stopPropagation(),r(e.item)},[e.item,r]),v=q.useCallback(t=>{t.stopPropagation(),n(e.item)},[e.item,n]);return ee.jsx("li",{className:upe("graphiql-history-item",c&&"editable"),children:c?ee.jsxs(ee.Fragment,{children:[ee.jsx("input",{type:"text",defaultValue:e.item.label,ref:l,onKeyDown:n=>{"Esc"===n.key?p(!1):"Enter"===n.key&&(p(!1),t({...e.item,label:n.currentTarget.value}))},placeholder:"Type a label"}),ee.jsx(DFe,{type:"button",ref:u,onClick:f,children:"Save"}),ee.jsx(DFe,{type:"button",ref:u,onClick:h,children:ee.jsx(WNe,{})})]}):ee.jsxs(ee.Fragment,{children:[ee.jsx(jFe,{label:"Set active",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-label",onClick:g,"aria-label":"Set active",children:d})}),ee.jsx(jFe,{label:"Edit label",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:m,"aria-label":"Edit label",children:ee.jsx(uFe,{"aria-hidden":"true"})})}),ee.jsx(jFe,{label:e.item.favorite?"Remove favorite":"Add favorite",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:v,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?ee.jsx(gFe,{"aria-hidden":"true"}):ee.jsx(yFe,{"aria-hidden":"true"})})}),ee.jsx(jFe,{label:"Delete from history",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:y,"aria-label":"Delete from history",children:ee.jsx(bFe,{"aria-hidden":"true"})})})]})})}function QFe(e){return null==e?void 0:e.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}sNe(KFe,"History"),sNe(WFe,"HistoryItem"),sNe(QFe,"formatQuery");const YFe=lNe("ExecutionContext");function XFe({fetcher:e,getDefaultFieldNames:t,children:n,operationName:r}){if(!e)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:i,headerEditor:o,queryEditor:a,responseEditor:s,variableEditor:l,updateActiveTabValues:u}=zPe({nonNull:!0,caller:XFe}),c=HFe(),p=iPe({getDefaultFieldNames:t,caller:XFe}),[d,f]=q.useState(!1),[h,m]=q.useState(null),g=q.useRef(0),y=q.useCallback(()=>{null==h||h.unsubscribe(),f(!1),m(null)},[h]),v=q.useCallback(async()=>{if(!a||!s)return;if(h)return void y();const t=sNe(e=>{s.setValue(e),u({response:e})},"setResponse");g.current+=1;const n=g.current;let d=p()||a.getValue();const v=null==l?void 0:l.getValue();let b;try{b=ZFe({json:v,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(w){return void t(w instanceof Error?w.message:`${w}`)}const x=null==o?void 0:o.getValue();let E;try{E=ZFe({json:x,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(w){return void t(w instanceof Error?w.message:`${w}`)}if(i){const e=a.documentAST?((e,t)=>{if(!t)return[];const n=new Map,r=new Set;sd.visit(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add(cme(t.get(a)));const o=[];for(const a of i)sd.visit(a,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(cme(t.get(e.name.value))),r.add(e.name.value))}}),n.has(a.name.value)||o.push(a);return o})(a.documentAST,i):[];e.length>0&&(d+="\n"+e.map(e=>sd.print(e)).join("\n"))}t(""),f(!0);const D=r??a.operationName??void 0;null==c||c.addToHistory({query:d,variables:v,headers:x,operationName:D});try{const r={},i=sNe(e=>{if(n!==g.current)return;let i=!!Array.isArray(e)&&e;if(!i&&"object"==typeof e&&null!==e&&"hasNext"in e&&(i=[e]),i){for(const e of i)e_e(r,e);f(!1),t(Bpe(r))}else{const n=Bpe(e);f(!1),t(n)}},"handleResponse"),o=e({query:d,variables:b,operationName:D},{headers:E??void 0,documentAST:a.documentAST??void 0}),s=await Promise.resolve(o);if(dpe(s))m(s.subscribe({next(e){i(e)},error(e){f(!1),e&&t(Rpe(e)),m(null)},complete(){f(!1),m(null)}}));else if(fpe(s)){m({unsubscribe:()=>{var e,t;return null==(t=(e=s[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});for await(const e of s)i(e);f(!1),m(null)}else i(s)}catch(w){f(!1),t(Rpe(w)),m(null)}},[p,i,e,o,c,r,a,s,y,h,u,l]),b=!!h,x=q.useMemo(()=>({isFetching:d,isSubscribed:b,operationName:r??null,run:v,stop:y}),[d,b,r,v,y]);return ee.jsx(YFe.Provider,{value:x,children:n})}sNe(XFe,"ExecutionContextProvider");const JFe=uNe(YFe);function ZFe({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(ht){throw new Error(`${t}: ${ht instanceof Error?ht.message:ht}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}function e_e(e,t){const n=["data",...t.path??[]];if(t.items)for(const r of t.items)Ome(e,n.join("."),r),n[n.length-1]++;if(t.data&&Ome(e,n.join("."),t.data,{merge:!0}),t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&Ome(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const r of t.incremental)e_e(e,r)}sNe(ZFe,"tryParseJsonObject"),sNe(e_e,"mergeIncrementalResult");const t_e="graphiql",n_e="sublime";let r_e=!1;"object"==typeof window&&(r_e=0===window.navigator.platform.toLowerCase().indexOf("mac"));const i_e={[r_e?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function o_e(e,t){const n=await spe(()=>Promise.resolve().then(()=>cUe),void 0,import.meta.url).then(e=>e.c).then(e=>"function"==typeof e?e:e.default);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[spe(()=>Promise.resolve().then(()=>gUe),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>SUe),void 0,import.meta.url).then(e=>e.m),spe(()=>Promise.resolve().then(()=>PUe),void 0,import.meta.url).then(e=>e.c),spe(()=>Promise.resolve().then(()=>RUe),void 0,import.meta.url).then(e=>e.b),spe(()=>Promise.resolve().then(()=>KUe),void 0,import.meta.url).then(e=>e.f),spe(()=>Promise.resolve().then(()=>ZUe),void 0,import.meta.url).then(e=>e.l),spe(()=>Promise.resolve().then(()=>uze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Eze),void 0,import.meta.url).then(e=>e.j),spe(()=>Promise.resolve().then(()=>mze),void 0,import.meta.url).then(e=>e.d),spe(()=>Promise.resolve().then(()=>kze),void 0,import.meta.url).then(e=>e.s),...e]),n}sNe(o_e,"importCodeMirror");const a_e=sNe(e=>e?sd.print(e):"","printDefault");function s_e({field:e}){if(!("defaultValue"in e)||void 0===e.defaultValue)return null;const t=sd.astFromValue(e.defaultValue,e.type);return t?ee.jsxs(ee.Fragment,{children:[" = ",ee.jsx("span",{className:"graphiql-doc-explorer-default-value",children:a_e(t)})]}):null}sNe(s_e,"DefaultValue");const l_e=lNe("SchemaContext");function u_e(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:t,headerEditor:n}=zPe({nonNull:!0,caller:u_e}),[r,i]=q.useState(),[o,a]=q.useState(!1),[s,l]=q.useState(null),u=q.useRef(0);q.useEffect(()=>{i(sd.isSchema(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),u.current++},[e.schema]);const c=q.useRef(t);q.useEffect(()=>{n&&(c.current=n.getValue())});const{introspectionQuery:p,introspectionQueryName:d,introspectionQuerySansSubscriptions:f}=p_e({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:h,onSchemaChange:m,dangerouslyAssumeSchemaIsValid:g,children:y}=e,v=q.useCallback(()=>{if(sd.isSchema(e.schema)||null===e.schema)return;const t=++u.current,n=e.schema;async function r(){if(n)return n;const e=d_e(c.current);if(!e.isValidJSON)return void l("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=hpe(h({query:p,operationName:d},t));if(!ppe(r))return void l("Fetcher did not return a Promise for introspection.");a(!0),l(null);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=hpe(h({query:f,operationName:d},t));if(!ppe(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(a(!1),null!=i&&i.data&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:Bpe(i);l(o)}sNe(r,"fetchIntrospectionData"),r().then(e=>{if(t===u.current&&e)try{const t=sd.buildClientSchema(e);i(t),null==m||m(t)}catch(n){l(Rpe(n))}}).catch(e=>{t===u.current&&(l(Rpe(e)),a(!1))})},[h,d,p,f,m,e.schema]);q.useEffect(()=>{v()},[v]),q.useEffect(()=>{function e(e){e.ctrlKey&&"R"===e.key&&v()}return sNe(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)});const b=q.useMemo(()=>!r||g?[]:sd.validateSchema(r),[r,g]),x=q.useMemo(()=>({fetchError:s,introspect:v,isFetching:o,schema:r,validationErrors:b}),[s,v,o,r,b]);return ee.jsx(l_e.Provider,{value:x,children:y})}sNe(u_e,"SchemaContextProvider");const c_e=uNe(l_e);function p_e({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return q.useMemo(()=>{const r=t||"IntrospectionQuery";let i=sd.getIntrospectionQuery({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}},[e,t,n])}function d_e(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}sNe(p_e,"useIntrospectionQuery"),sNe(d_e,"parseHeaderString");const f_e={name:"Docs"},h_e=lNe("ExplorerContext");function m_e(e){const{schema:t,validationErrors:n}=c_e({nonNull:!0,caller:m_e}),[r,i]=q.useState([f_e]),o=q.useCallback(e=>{i(t=>t.at(-1).def===e.def?t:[...t,e])},[]),a=q.useCallback(()=>{i(e=>e.length>1?e.slice(0,-1):e)},[]),s=q.useCallback(()=>{i(e=>1===e.length?e:[f_e])},[]);q.useEffect(()=>{null==t||n.length>0?s():i(e=>{if(1===e.length)return e;const n=[f_e];let r=null;for(const i of e)if(i!==f_e)if(i.def)if(sd.isNamedType(i.def)){const e=t.getType(i.def.name);if(!e)break;n.push({name:i.name,def:e}),r=e}else{if(null===r)break;if(sd.isObjectType(r)||sd.isInputObjectType(r)){const e=r.getFields()[i.name];if(!e)break;n.push({name:i.name,def:e})}else{if(sd.isScalarType(r)||sd.isEnumType(r)||sd.isInterfaceType(r)||sd.isUnionType(r))break;{const e=r;if(!e.args.find(e=>e.name===i.name))break;n.push({name:i.name,def:e})}}}else r=null,n.push(i);return n})},[s,t,n]);const l=q.useMemo(()=>({explorerNavStack:r,push:o,pop:a,reset:s}),[r,o,a,s]);return ee.jsx(h_e.Provider,{value:l,children:e.children})}sNe(m_e,"ExplorerContextProvider");const g_e=uNe(h_e);function y_e(e,t){return sd.isNonNullType(e)?ee.jsxs(ee.Fragment,{children:[y_e(e.ofType,t),"!"]}):sd.isListType(e)?ee.jsxs(ee.Fragment,{children:["[",y_e(e.ofType,t),"]"]}):t(e)}function v_e(e){const{push:t}=g_e({nonNull:!0,caller:v_e});return e.type?y_e(e.type,e=>ee.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name})):null}function b_e({arg:e,showDefaultValue:t,inline:n}){const r=ee.jsxs("span",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:e.name}),": ",ee.jsx(v_e,{type:e.type}),!1!==t&&ee.jsx(s_e,{field:e})]});return n?r:ee.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[r,e.description?ee.jsx(IFe,{type:"description",children:e.description}):null,e.deprecationReason?ee.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[ee.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),ee.jsx(IFe,{type:"deprecation",children:e.deprecationReason})]}):null]})}function x_e(e){return e.children?ee.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[ee.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),ee.jsx(IFe,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}function E_e({directive:e}){return ee.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}function D_e(e){const t=w_e[e.title];return ee.jsxs("div",{children:[ee.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[ee.jsx(t,{}),e.title]}),ee.jsx("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}sNe(y_e,"renderType"),sNe(v_e,"TypeLink"),sNe(b_e,"Argument"),sNe(x_e,"DeprecationReason"),sNe(E_e,"Directive"),sNe(D_e,"ExplorerSection");const w_e={Arguments:qNe,"Deprecated Arguments":YNe,"Deprecated Enum Values":XNe,"Deprecated Fields":JNe,Directives:ZNe,"Enum Values":nFe,Fields:rFe,Implements:oFe,Implementations:xFe,"Possible Types":xFe,"Root Types":hFe,Type:xFe,"All Schema Types":xFe};function T_e(e){return ee.jsxs(ee.Fragment,{children:[e.field.description?ee.jsx(IFe,{type:"description",children:e.field.description}):null,ee.jsx(x_e,{preview:!1,children:e.field.deprecationReason}),ee.jsx(D_e,{title:"Type",children:ee.jsx(v_e,{type:e.field.type})}),ee.jsx(C_e,{field:e.field}),ee.jsx(S_e,{field:e.field})]})}function C_e({field:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!("args"in e))return null;const i=[],o=[];for(const a of e.args)a.deprecationReason?o.push(a):i.push(a);return ee.jsxs(ee.Fragment,{children:[i.length>0?ee.jsx(D_e,{title:"Arguments",children:i.map(e=>ee.jsx(b_e,{arg:e},e.name))}):null,o.length>0?t||0===i.length?ee.jsx(D_e,{title:"Deprecated Arguments",children:o.map(e=>ee.jsx(b_e,{arg:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Arguments"}):null]})}function S_e({field:e}){var t;const n=(null==(t=e.astNode)?void 0:t.directives)||[];return n&&0!==n.length?ee.jsx(D_e,{title:"Directives",children:n.map(e=>ee.jsx("div",{children:ee.jsx(E_e,{directive:e})},e.name.value))}):null}function k_e(e){var t,n,r,i;const o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),s=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r),l=e.schema.getTypeMap(),u=[null==o?void 0:o.name,null==a?void 0:a.name,null==s?void 0:s.name];return ee.jsxs(ee.Fragment,{children:[ee.jsx(IFe,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),ee.jsxs(D_e,{title:"Root Types",children:[o?ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",ee.jsx(v_e,{type:o})]}):null,a&&ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",ee.jsx(v_e,{type:a})]}),s&&ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",ee.jsx(v_e,{type:s})]})]}),ee.jsx(D_e,{title:"All Schema Types",children:l&&ee.jsx("div",{children:Object.values(l).map(e=>u.includes(e.name)||e.name.startsWith("__")?null:ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))})})]})}function A_e(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}function N_e(){const{explorerNavStack:e,push:t}=g_e({nonNull:!0,caller:N_e}),n=q.useRef(null),r=F_e(),[i,o]=q.useState(""),[a,s]=q.useState(r(i)),l=q.useMemo(()=>A_e(200,e=>{s(r(e))}),[r]);q.useEffect(()=>{l(i)},[l,i]),q.useEffect(()=>{function e(e){var t;e.metaKey&&"k"===e.key&&(null==(t=n.current)||t.focus())}return sNe(e,"handleKeyDown"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);const u=e.at(-1),c=q.useCallback(e=>{t("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},[t]),p=q.useRef(!1),d=q.useCallback(e=>{p.current="focus"===e.type},[]);return 1===e.length||sd.isObjectType(u.def)||sd.isInterfaceType(u.def)||sd.isInputObjectType(u.def)?ee.jsxs(oNe,{as:"div",className:"graphiql-doc-explorer-search",onChange:c,"data-state":p?void 0:"idle","aria-label":`Search ${u.name}...`,children:[ee.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var e;null==(e=n.current)||e.focus()},children:[ee.jsx(sFe,{}),ee.jsx(oNe.Input,{autoComplete:"off",onFocus:d,onBlur:d,onChange:e=>o(e.target.value),placeholder:"⌘ K",ref:n,value:i,"data-cy":"doc-explorer-input"})]}),p.current&&ee.jsxs(oNe.Options,{"data-cy":"doc-explorer-list",children:[a.within.length+a.types.length+a.fields.length===0?ee.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):a.within.map((e,t)=>ee.jsx(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:ee.jsx(O_e,{field:e.field,argument:e.argument})},`within-${t}`)),a.within.length>0&&a.types.length+a.fields.length>0?ee.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,a.types.map((e,t)=>ee.jsx(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:ee.jsx(P_e,{type:e.type})},`type-${t}`)),a.fields.map((e,t)=>ee.jsxs(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:[ee.jsx(P_e,{type:e.type}),".",ee.jsx(O_e,{field:e.field,argument:e.argument})]},`field-${t}`))]})]}):null}function F_e(e){const{explorerNavStack:t}=g_e({nonNull:!0,caller:e||F_e}),{schema:n}=c_e({nonNull:!0,caller:e||F_e}),r=t.at(-1);return q.useCallback(e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const i=r.def,o=n.getTypeMap();let a=Object.keys(o);i&&(a=a.filter(e=>e!==i.name),a.unshift(i.name));for(const n of a){if(t.within.length+t.types.length+t.fields.length>=100)break;const r=o[n];if(i!==r&&__e(n,e)&&t.types.push({type:r}),!sd.isObjectType(r)&&!sd.isInterfaceType(r)&&!sd.isInputObjectType(r))continue;const a=r.getFields();for(const n in a){const o=a[n];let s;if(!__e(n,e)){if(!("args"in o))continue;if(s=o.args.filter(t=>__e(t.name,e)),0===s.length)continue}t[i===r?"within":"fields"].push(...s?s.map(e=>({type:r,field:o,argument:e})):[{type:r,field:o}])}}return t},[r.def,n])}function __e(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch{return e.toLowerCase().includes(t.toLowerCase())}}function P_e(e){return ee.jsx("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function O_e({field:e,argument:t}){return ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{className:"graphiql-doc-explorer-search-field",children:e.name}),t?ee.jsxs(ee.Fragment,{children:["(",ee.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:t.name}),":"," ",y_e(t.type,e=>ee.jsx(P_e,{type:e})),")"]}):null]})}function I_e(e){const{push:t}=g_e({nonNull:!0});return ee.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}function L_e(e){return sd.isNamedType(e.type)?ee.jsxs(ee.Fragment,{children:[e.type.description?ee.jsx(IFe,{type:"description",children:e.type.description}):null,ee.jsx(M_e,{type:e.type}),ee.jsx(j_e,{type:e.type}),ee.jsx(B_e,{type:e.type}),ee.jsx(U_e,{type:e.type})]}):null}function M_e({type:e}){return sd.isObjectType(e)&&e.getInterfaces().length>0?ee.jsx(D_e,{title:"Implements",children:e.getInterfaces().map(e=>ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))}):null}function j_e({type:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!sd.isObjectType(e)&&!sd.isInterfaceType(e)&&!sd.isInputObjectType(e))return null;const i=e.getFields(),o=[],a=[];for(const s of Object.keys(i).map(e=>i[e]))s.deprecationReason?a.push(s):o.push(s);return ee.jsxs(ee.Fragment,{children:[o.length>0?ee.jsx(D_e,{title:"Fields",children:o.map(e=>ee.jsx(R_e,{field:e},e.name))}):null,a.length>0?t||0===o.length?ee.jsx(D_e,{title:"Deprecated Fields",children:a.map(e=>ee.jsx(R_e,{field:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Fields"}):null]})}function R_e({field:e}){const t="args"in e?e.args.filter(e=>!e.deprecationReason):[];return ee.jsxs("div",{className:"graphiql-doc-explorer-item",children:[ee.jsxs("div",{children:[ee.jsx(I_e,{field:e}),t.length>0?ee.jsxs(ee.Fragment,{children:["(",ee.jsx("span",{children:t.map(e=>1===t.length?ee.jsx(b_e,{arg:e,inline:!0},e.name):ee.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:ee.jsx(b_e,{arg:e,inline:!0})},e.name))}),")"]}):null,": ",ee.jsx(v_e,{type:e.type}),ee.jsx(s_e,{field:e})]}),e.description?ee.jsx(IFe,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,ee.jsx(x_e,{children:e.deprecationReason})]})}function B_e({type:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!sd.isEnumType(e))return null;const i=[],o=[];for(const a of e.getValues())a.deprecationReason?o.push(a):i.push(a);return ee.jsxs(ee.Fragment,{children:[i.length>0?ee.jsx(D_e,{title:"Enum Values",children:i.map(e=>ee.jsx(V_e,{value:e},e.name))}):null,o.length>0?t||0===i.length?ee.jsx(D_e,{title:"Deprecated Enum Values",children:o.map(e=>ee.jsx(V_e,{value:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Values"}):null]})}function V_e({value:e}){return ee.jsxs("div",{className:"graphiql-doc-explorer-item",children:[ee.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:e.name}),e.description?ee.jsx(IFe,{type:"description",children:e.description}):null,e.deprecationReason?ee.jsx(IFe,{type:"deprecation",children:e.deprecationReason}):null]})}function U_e({type:e}){const{schema:t}=c_e({nonNull:!0});return t&&sd.isAbstractType(e)?ee.jsx(D_e,{title:sd.isInterfaceType(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map(e=>ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))}):null}function z_e(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=c_e({nonNull:!0,caller:z_e}),{explorerNavStack:i,pop:o}=g_e({nonNull:!0,caller:z_e}),a=i.at(-1);let s,l=null;return e?l=ee.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):r.length>0?l=ee.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}):t?l=ee.jsx(LFe,{}):n?1===i.length?l=ee.jsx(k_e,{schema:n}):sd.isType(a.def)?l=ee.jsx(L_e,{type:a.def}):a.def&&(l=ee.jsx(T_e,{field:a.def})):l=ee.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),i.length>1&&(s=i.at(-2).name),ee.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[ee.jsxs("div",{className:"graphiql-doc-explorer-header",children:[ee.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[s&&ee.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),o()},"aria-label":`Go back to ${s}`,children:[ee.jsx(GNe,{}),s]}),ee.jsx("div",{className:"graphiql-doc-explorer-title",children:a.name})]}),ee.jsx(N_e,{},a.name)]}),ee.jsx("div",{className:"graphiql-doc-explorer-content",children:l})]})}sNe(T_e,"FieldDocumentation"),sNe(C_e,"Arguments"),sNe(S_e,"Directives"),sNe(k_e,"SchemaDocumentation"),sNe(A_e,"debounce"),sNe(N_e,"Search"),sNe(F_e,"useSearchResults"),sNe(__e,"isMatch"),sNe(P_e,"Type"),sNe(O_e,"Field$1"),sNe(I_e,"FieldLink"),sNe(L_e,"TypeDocumentation"),sNe(M_e,"ImplementsInterfaces"),sNe(j_e,"Fields"),sNe(R_e,"Field"),sNe(B_e,"EnumValues"),sNe(V_e,"EnumValue"),sNe(U_e,"PossibleTypes"),sNe(z_e,"DocExplorer");const $_e={title:"Documentation Explorer",icon:sNe(function(){const e=K_e();return(null==e?void 0:e.visiblePlugin)===$_e?ee.jsx(eFe,{}):ee.jsx(tFe,{})},"Icon"),content:z_e},q_e={title:"History",icon:iFe,content:KFe},H_e=lNe("PluginContext");function G_e(e){const t=dNe(),n=g_e(),r=HFe(),i=!!n,o=!!r,a=q.useMemo(()=>{const t=[],n={};i&&(t.push($_e),n[$_e.title]=!0),o&&(t.push(q_e),n[q_e.title]=!0);for(const r of e.plugins||[]){if("string"!=typeof r.title||!r.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[r.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${r.title}'`);t.push(r),n[r.title]=!0}return t},[i,o,e.plugins]),[s,l]=q.useState(()=>{const n=null==t?void 0:t.get(W_e);return a.find(e=>e.title===n)||(n&&(null==t||t.set(W_e,"")),e.visiblePlugin&&a.find(t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:u,children:c}=e,p=q.useCallback(e=>{const t=e&&a.find(t=>("string"==typeof e?t.title:t)===e)||null;l(e=>t===e?e:(null==u||u(t),t))},[u,a]);q.useEffect(()=>{e.visiblePlugin&&p(e.visiblePlugin)},[a,e.visiblePlugin,p]);const d=q.useMemo(()=>({plugins:a,setVisiblePlugin:p,visiblePlugin:s}),[a,p,s]);return ee.jsx(H_e.Provider,{value:d,children:c})}sNe(G_e,"PluginContextProvider");const K_e=uNe(H_e),W_e="visiblePlugin";function Q_e(e,t,n,r,i,o){function a(e){if(!(n&&r&&i&&e.currentTarget instanceof HTMLElement))return;const t=e.currentTarget.textContent||"",a=n.getType(t);a&&(i.setVisiblePlugin($_e),r.push({name:a.name,def:a}),null==o||o(a))}o_e([],{useCommonAddons:!1}).then(e=>{let n,r,i,o,s,l,u,c,p;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const d=document.createElement("header");d.className="CodeMirror-hint-information-header",n.append(d),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",d.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",d.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const f=document.createElement("span");f.className="CodeMirror-hint-information-deprecation-label",f.textContent="Deprecated",c.append(f),p=document.createElement("div"),p.className="CodeMirror-hint-information-deprecation-reason",c.append(p);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=sNe(()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")},"handleScroll");let y;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",y=sNe(t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",y),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,p=null,y=null)},"onRemoveFn"))}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=sNe(e=>{sd.isNonNullType(e)?(l.textContent="!"+l.textContent,t(e.ofType)):sd.isListType(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name},"renderType");o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=OFe.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&p&&(e.deprecationReason?(c.style.display="block",p.innerHTML=OFe.render(e.deprecationReason)):(c.style.display="none",p.innerHTML=""))})}),sNe(a,"onClickHintInformation")}function Y_e(e,t){q.useEffect(()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},[e,t])}function X_e(e,t,n){q.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}function J_e(e,t,n,r,i){const{updateActiveTabValues:o}=zPe({nonNull:!0,caller:i}),a=dNe();q.useEffect(()=>{if(!e)return;const i=A_e(500,e=>{!a||null===n||a.set(n,e)}),s=A_e(100,e=>{o({[r]:e})}),l=sNe((e,n)=>{if(!n)return;const r=e.getValue();i(r),s(r),null==t||t(r)},"handleChange");return e.on("change",l),()=>e.off("change",l)},[t,e,a,n,r,o])}function Z_e(e,t,n){const{schema:r}=c_e({nonNull:!0,caller:n}),i=g_e(),o=K_e();q.useEffect(()=>{if(!e)return;const n=sNe((e,n)=>{Q_e(0,n,r,i,o,e=>{null==t||t({kind:"Type",type:e,schema:r||void 0})})},"handleCompletion");return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},[t,e,i,o,r])}function ePe(e,t,n){q.useEffect(()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},[e,t,n])}function tPe({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=zPe({nonNull:!0,caller:e||tPe});return q.useCallback(()=>{if(!n)return;const e=n.getValue();pM(e),null==t||t(e)},[n,t])}function nPe({caller:e}={}){const{queryEditor:t}=zPe({nonNull:!0,caller:e||nPe}),{schema:n}=c_e({nonNull:!0,caller:nPe});return q.useCallback(()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();!e||!r||t.setValue(sd.print(Hpe(e,n)))},[t,n])}function rPe({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=zPe({nonNull:!0,caller:e||rPe});return q.useCallback(()=>{if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=sd.print(sd.parse(e));n!==e&&t.setValue(n)}},[t,r,n])}function iPe({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=c_e({nonNull:!0,caller:t||iPe}),{queryEditor:r}=zPe({nonNull:!0,caller:t||iPe});return q.useCallback(()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=Vpe(n,t,e);return i&&i.length>0&&r.operation(()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map(({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(const e of a)e.clear()},7e3);let s=t;for(const{index:r,string:o}of i)r{const t=zPe({nonNull:!0})[`${e}Editor`];let n="";const r=(null==t?void 0:t.getValue())??!1;r&&r.length>0&&(n=r);const i=q.useCallback(e=>null==t?void 0:t.setValue(e),[t]);return q.useMemo(()=>[n,i],[n,i])},"useEditorState"),aPe=sNe(()=>oPe("query"),"useOperationsEditorState");function sPe([e,t]){const n=q.useRef({pending:null,last:e}),[r,i]=q.useState(e);q.useEffect(()=>{n.current.last===e||(n.current.last=e,null===n.current.pending?i(e):n.current.pending===e?(n.current.pending=null,e!==r&&(n.current.pending=r,t(r))):(n.current.pending=null,i(e)))},[e,r,t]);const o=q.useCallback(e=>{i(e),null===n.current.pending&&n.current.last!==e&&(n.current.pending=e,t(e))},[t]);return q.useMemo(()=>[r,o],[r,o])}function lPe({editorTheme:e=t_e,keyMap:t=n_e,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:a,setHeaderEditor:s,shouldPersistHeaders:l}=zPe({nonNull:!0,caller:i||lPe}),u=JFe(),c=nPe({caller:i||lPe}),p=rPe({caller:i||lPe}),d=q.useRef(null);return q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>Ize),void 0,import.meta.url).then(e=>e.j)]).then(n=>{if(!t)return;const i=d.current;if(!i)return;const a=n(i,{value:o,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!r&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:i_e});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:i})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:i})},"Alt-Space"(){a.showHint({completeSingle:!1,container:i})},"Shift-Space"(){a.showHint({completeSingle:!1,container:i})}}),a.on("keyup",(e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}),s(a)}),()=>{t=!1}},[e,o,r,s]),X_e(a,"keyMap",t),J_e(a,n,l?uPe:null,"headers",lPe),ePe(a,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ePe(a,["Shift-Ctrl-P"],p),ePe(a,["Shift-Ctrl-M"],c),d}sNe(sPe,"useOptimisticState"),sNe(lPe,"useHeaderEditor");const uPe="headers",cPe=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),pPe=new RegExp("["+cPe.join("")+"]","g");function dPe(e){return e.replace(pPe," ")}function fPe({editorTheme:e=t_e,keyMap:t=n_e,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},a){const{schema:s}=c_e({nonNull:!0,caller:a||fPe}),{externalFragments:l,initialQuery:u,queryEditor:c,setOperationName:p,setQueryEditor:d,validationRules:f,variableEditor:h,updateActiveTabValues:m}=zPe({nonNull:!0,caller:a||fPe}),g=JFe(),y=dNe(),v=g_e(),b=K_e(),x=tPe({caller:a||fPe,onCopyQuery:r}),E=nPe({caller:a||fPe}),D=rPe({caller:a||fPe}),w=q.useRef(null),T=q.useRef(),C=q.useRef(()=>{});q.useEffect(()=>{C.current=e=>{if(v&&b){switch(b.setVisiblePlugin($_e),e.kind){case"Type":v.push({name:e.type.name,def:e.type});break;case"Field":v.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&v.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&v.push({name:e.type.name,def:e.type})}null==n||n(e)}}},[v,n,b]),q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>Vze),void 0,import.meta.url).then(e=>e.c),spe(()=>Promise.resolve().then(()=>Gze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Kze),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Yze),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>F$e),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>V$e),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>G$e),void 0,import.meta.url)]).then(n=>{if(!t)return;T.current=n;const r=w.current;if(!r)return;const i=n(r,{value:u,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0,autocompleteOptions:{mode:Ghe.EXECUTABLE}},info:{schema:void 0,renderDescription:e=>OFe.render(e),onClick(e){C.current(e)}},jump:{schema:void 0,onClick(e){C.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...i_e,"Cmd-S"(){},"Ctrl-S"(){}}});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",(e,t)=>{yPe.test(t.key)&&e.execCommand("autocomplete")});let a=!1;i.on("startCompletion",()=>{a=!0}),i.on("endCompletion",()=>{a=!1}),i.on("keydown",(e,t)=>{"Escape"===t.key&&a&&t.stopPropagation()}),i.on("beforeChange",(e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(dPe);null==(n=t.update)||n.call(t,t.from,t.to,e)}}),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,d(i)}),()=>{t=!1}},[e,u,o,d]),X_e(c,"keyMap",t),q.useEffect(()=>{if(!c)return;function e(e){var t;const n=function(e,t){if(t)try{const n=sd.parse(t);return Object.assign(Object.assign({},fme(n,e)),{documentAST:n})}catch(qqe){return}}(s,e.getValue()),r=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n{const n=t.getValue();null==y||y.set(vPe,n);const r=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==y||y.set(bPe,o.operationName)),null==i||i(n,null==o?void 0:o.documentAST),null!=o&&o.operationName&&r!==o.operationName&&p(o.operationName),m({query:n,operationName:(null==o?void 0:o.operationName)??null})});return e(c),c.on("change",t),()=>c.off("change",t)},[i,c,s,p,y,h,m]),hPe(c,s??null,T),mPe(c,f??null,T),gPe(c,l,T),Z_e(c,n||null,fPe);const S=null==g?void 0:g.run,k=q.useCallback(()=>{var e;if(!(S&&c&&c.operations&&c.hasFocus()))return void(null==S||S());const t=c.indexFromPos(c.getCursor());let n;for(const r of c.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==c.operationName&&p(n),S()},[c,S,p]);return ePe(c,["Cmd-Enter","Ctrl-Enter"],k),ePe(c,["Shift-Ctrl-C"],x),ePe(c,["Shift-Ctrl-P","Shift-Ctrl-F"],D),ePe(c,["Shift-Ctrl-M"],E),w}function hPe(e,t,n){q.useEffect(()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function mPe(e,t,n){q.useEffect(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function gPe(e,t,n){const r=q.useMemo(()=>[...t.values()],[t]);q.useEffect(()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)},[e,r,n])}sNe(dPe,"normalizeWhitespace"),sNe(fPe,"useQueryEditor"),sNe(hPe,"useSynchronizeSchema"),sNe(mPe,"useSynchronizeValidationRules"),sNe(gPe,"useSynchronizeExternalFragments");const yPe=/^[a-zA-Z0-9_@(]$/,vPe="query",bPe="operationName";function xPe({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:a,shouldPersistHeaders:s}){const l=null==a?void 0:a.get(jPe);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=s?n:void 0;if(EPe(e)){const r=OPe({query:i,variables:o,headers:t});let a=-1;for(let t=0;t=0)e.activeTabIndex=a;else{const t=i?IPe(i):null;e.tabs.push({id:PPe(),hash:r,title:t||MPe,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(FPe)}}}function EPe(e){return e&&"object"==typeof e&&!Array.isArray(e)&&wPe(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(DPe)}function DPe(e){return e&&"object"==typeof e&&!Array.isArray(e)&&TPe(e,"id")&&TPe(e,"title")&&CPe(e,"query")&&CPe(e,"variables")&&CPe(e,"headers")&&CPe(e,"operationName")&&CPe(e,"response")}function wPe(e,t){return t in e&&"number"==typeof e[t]}function TPe(e,t){return t in e&&"string"==typeof e[t]}function CPe(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function SPe({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return q.useCallback(i=>{const o=(null==e?void 0:e.getValue())??null,a=(null==t?void 0:t.getValue())??null,s=(null==n?void 0:n.getValue())??null,l=(null==e?void 0:e.operationName)??null;return _Pe(i,{query:o,variables:a,headers:s,response:(null==r?void 0:r.getValue())??null,operationName:l})},[e,t,n,r])}function kPe(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function APe({storage:e,shouldPersistHeaders:t}){const n=q.useMemo(()=>A_e(500,t=>{null==e||e.set(jPe,t)}),[e]);return q.useCallback(e=>{n(kPe(e,t))},[t,n])}function NPe({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return q.useCallback(({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(i??""),null==t||t.setValue(o??""),null==n||n.setValue(a??""),null==r||r.setValue(s??"")},[n,e,r,t])}function FPe({query:e=null,variables:t=null,headers:n=null}={}){return{id:PPe(),hash:OPe({query:e,variables:t,headers:n}),title:e&&IPe(e)||MPe,query:e,variables:t,headers:n,operationName:null,response:null}}function _Pe(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:OPe(i),title:i.operationName||(i.query?IPe(i.query):void 0)||MPe}})}}function PPe(){const e=sNe(()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function OPe(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function IPe(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}function LPe(e){const t=null==e?void 0:e.get(jPe);if(t){const n=JSON.parse(t);null==e||e.set(jPe,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}sNe(xPe,"getDefaultTabState"),sNe(EPe,"isTabsState"),sNe(DPe,"isTabState"),sNe(wPe,"hasNumberKey"),sNe(TPe,"hasStringKey"),sNe(CPe,"hasStringOrNullKey"),sNe(SPe,"useSynchronizeActiveTabValues"),sNe(kPe,"serializeTabState"),sNe(APe,"useStoreTabs"),sNe(NPe,"useSetEditorValues"),sNe(FPe,"createTab"),sNe(_Pe,"setPropertiesInActiveTab"),sNe(PPe,"guid"),sNe(OPe,"hashFromTabContents"),sNe(IPe,"fuzzyExtractOperationName"),sNe(LPe,"clearHeadersFromTabs");const MPe="",jPe="tabState";function RPe({editorTheme:e=t_e,keyMap:t=n_e,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:a,variableEditor:s,setVariableEditor:l}=zPe({nonNull:!0,caller:o||RPe}),u=JFe(),c=nPe({caller:o||RPe}),p=rPe({caller:o||RPe}),d=q.useRef(null),f=q.useRef();return q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>rqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Iqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Bqe),void 0,import.meta.url)]).then(n=>{if(!t)return;f.current=n;const r=d.current;if(!r)return;const o=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:i_e});o.addKeyMap({"Cmd-Space"(){o.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){o.showHint({completeSingle:!1,container:r})},"Alt-Space"(){o.showHint({completeSingle:!1,container:r})},"Shift-Space"(){o.showHint({completeSingle:!1,container:r})}}),o.on("keyup",(e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}),l(o)}),()=>{t=!1}},[e,a,i,l]),X_e(s,"keyMap",t),J_e(s,r,BPe,"variables",RPe),Z_e(s,n||null,RPe),ePe(s,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ePe(s,["Shift-Ctrl-P"],p),ePe(s,["Shift-Ctrl-M"],c),d}sNe(RPe,"useVariableEditor");const BPe="variables",VPe=lNe("EditorContext");function UPe(e){const t=dNe(),[n,r]=q.useState(null),[i,o]=q.useState(null),[a,s]=q.useState(null),[l,u]=q.useState(null),[c,p]=q.useState(()=>{const n=null!==(null==t?void 0:t.get($Pe));return!1!==e.shouldPersistHeaders&&n?"true"===(null==t?void 0:t.get($Pe)):!!e.shouldPersistHeaders});Y_e(n,e.headers),Y_e(i,e.query),Y_e(a,e.response),Y_e(l,e.variables);const d=APe({storage:t,shouldPersistHeaders:c}),[f]=q.useState(()=>{const n=e.query??(null==t?void 0:t.get(vPe))??null,r=e.variables??(null==t?void 0:t.get(BPe))??null,i=e.headers??(null==t?void 0:t.get(uPe))??null,o=e.response??"",a=xPe({query:n,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||qPe,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:c});return d(a),{query:n??(0===a.activeTabIndex?a.tabs[0].query:null)??"",variables:r??"",headers:i??e.defaultHeaders??"",response:o,tabState:a}}),[h,m]=q.useState(f.tabState),g=q.useCallback(e=>{if(e){null==t||t.set(uPe,(null==n?void 0:n.getValue())??"");const e=kPe(h,!0);null==t||t.set(jPe,e)}else null==t||t.set(uPe,""),LPe(t);p(e),null==t||t.set($Pe,e.toString())},[t,h,n]),y=q.useRef();q.useEffect(()=>{const t=!!e.shouldPersistHeaders;(null==y?void 0:y.current)!==t&&(g(t),y.current=t)},[e.shouldPersistHeaders,g]);const v=SPe({queryEditor:i,variableEditor:l,headerEditor:n,responseEditor:a}),b=NPe({queryEditor:i,variableEditor:l,headerEditor:n,responseEditor:a}),{onTabChange:x,defaultHeaders:E,children:D}=e,w=q.useCallback(()=>{m(e=>{const t=v(e),n={tabs:[...t.tabs,FPe({headers:E})],activeTabIndex:t.tabs.length};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[E,x,b,d,v]),T=q.useCallback(e=>{m(t=>{const n={...t,activeTabIndex:e};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[x,b,d]),C=q.useCallback(e=>{m(t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return d(r),b(r.tabs[r.activeTabIndex]),null==x||x(r),r})},[x,b,d]),S=q.useCallback(e=>{m(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[x,b,d]),k=q.useCallback(e=>{m(t=>{const n=_Pe(t,e);return d(n),null==x||x(n),n})},[x,d]),{onEditOperationName:A}=e,N=q.useCallback(e=>{i&&(i.operationName=e,k({operationName:e}),null==A||A(e))},[A,i,k]),F=q.useMemo(()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)sd.visit(sd.parse(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t},[e.externalFragments]),_=q.useMemo(()=>e.validationRules||[],[e.validationRules]),P=q.useMemo(()=>({...h,addTab:w,changeTab:T,moveTab:C,closeTab:S,updateActiveTabValues:k,headerEditor:n,queryEditor:i,responseEditor:a,variableEditor:l,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:s,setVariableEditor:u,setOperationName:N,initialQuery:f.query,initialVariables:f.variables,initialHeaders:f.headers,initialResponse:f.response,externalFragments:F,validationRules:_,shouldPersistHeaders:c,setShouldPersistHeaders:g}),[h,w,T,C,S,k,n,i,a,l,N,f,F,_,c,g]);return ee.jsx(VPe.Provider,{value:P,children:D})}sNe(UPe,"EditorContextProvider");const zPe=uNe(VPe),$Pe="shouldPersistHeaders",qPe='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function HPe({isHidden:e,...t}){const{headerEditor:n}=zPe({nonNull:!0,caller:HPe}),r=lPe(t,HPe);return q.useEffect(()=>{e||null==n||n.refresh()},[n,e]),ee.jsx("div",{className:upe("graphiql-editor",e&&"hidden"),ref:r})}function GPe(e){var t;const[n,r]=q.useState({width:null,height:null}),[i,o]=q.useState(null),a=q.useRef(null),s=null==(t=KPe(e.token))?void 0:t.href;q.useEffect(()=>{if(a.current){if(!s)return r({width:null,height:null}),void o(null);fetch(s,{method:"HEAD"}).then(e=>{o(e.headers.get("Content-Type"))}).catch(()=>{o(null)})}},[s]);const l=null!==n.width&&null!==n.height?ee.jsxs("div",{children:[n.width,"x",n.height,null===i?null:" "+i]}):null;return ee.jsxs("div",{children:[ee.jsx("img",{onLoad:()=>{var e,t;r({width:(null==(e=a.current)?void 0:e.naturalWidth)??null,height:(null==(t=a.current)?void 0:t.naturalHeight)??null})},ref:a,src:s}),l]})}function KPe(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:e}=window;return new URL(t,e.protocol+"//"+e.host)}catch{return}}function WPe(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function QPe(e){const t=fPe(e,QPe);return ee.jsx("div",{className:"graphiql-editor",ref:t})}function YPe({responseTooltip:e,editorTheme:t=t_e,keyMap:n=n_e}={},r){const{fetchError:i,validationErrors:o}=c_e({nonNull:!0,caller:r||YPe}),{initialResponse:a,responseEditor:s,setResponseEditor:l}=zPe({nonNull:!0,caller:r||YPe}),u=q.useRef(null),c=q.useRef(e);return q.useEffect(()=>{c.current=e},[e]),q.useEffect(()=>{let e=!0;return o_e([spe(()=>Promise.resolve().then(()=>KUe),void 0,import.meta.url).then(e=>e.f),spe(()=>Promise.resolve().then(()=>RUe),void 0,import.meta.url).then(e=>e.b),spe(()=>Promise.resolve().then(()=>mze),void 0,import.meta.url).then(e=>e.d),spe(()=>Promise.resolve().then(()=>Gze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>uze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Eze),void 0,import.meta.url).then(e=>e.j),spe(()=>Promise.resolve().then(()=>kze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>zqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>y$e),void 0,import.meta.url)],{useCommonAddons:!1}).then(n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",(e,t,n,i)=>{const o=[],a=c.current;return a&&o.push(ee.jsx(a,{pos:i,token:e})),GPe.shouldRender(e)&&o.push(ee.jsx(GPe,{token:e},"image-preview")),o.length?(up.render(o,r),r):(up.unmountComponentAtNode(r),null)});const i=u.current;if(!i)return;const o=n(i,{value:a,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:i_e});l(o)}),()=>{e=!1}},[t,a,l]),X_e(s,"keyMap",n),q.useEffect(()=>{i&&(null==s||s.setValue(i)),o.length>0&&(null==s||s.setValue(Rpe(o)))},[s,i,o]),u}function XPe(e){const t=YPe(e,XPe);return ee.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}function JPe({isHidden:e,...t}){const{variableEditor:n}=zPe({nonNull:!0,caller:JPe}),r=RPe(t,JPe);return q.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),ee.jsx("div",{className:upe("graphiql-editor",e&&"hidden"),ref:r})}function ZPe({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,fetcher:a,getDefaultFieldNames:s,headers:l,inputValueDeprecation:u,introspectionQueryName:c,maxHistoryLength:p,onEditOperationName:d,onSchemaChange:f,onTabChange:h,onTogglePluginVisibility:m,operationName:g,plugins:y,query:v,response:b,schema:x,schemaDescription:E,shouldPersistHeaders:D,storage:w,validationRules:T,variables:C,visiblePlugin:S}){return ee.jsx(pNe,{storage:w,children:ee.jsx(qFe,{maxHistoryLength:p,children:ee.jsx(UPe,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:l,onEditOperationName:d,onTabChange:h,query:v,response:b,shouldPersistHeaders:D,validationRules:T,variables:C,children:ee.jsx(u_e,{dangerouslyAssumeSchemaIsValid:t,fetcher:a,inputValueDeprecation:u,introspectionQueryName:c,onSchemaChange:f,schema:x,schemaDescription:E,children:ee.jsx(XFe,{getDefaultFieldNames:s,fetcher:a,operationName:g,children:ee.jsx(m_e,{children:ee.jsx(G_e,{onTogglePluginVisibility:m,plugins:y,visiblePlugin:S,children:e})})})})})})})}function eOe(){const e=dNe(),[t,n]=q.useState(()=>{if(!e)return null;const t=e.get(tOe);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"==typeof t&&e.set(tOe,""),null}});q.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=q.useCallback(t=>{null==e||e.set(tOe,t||""),n(t)},[e]);return q.useMemo(()=>({theme:t,setTheme:r}),[t,r])}sNe(HPe,"HeaderEditor"),sNe(GPe,"ImagePreview"),GPe.shouldRender=sNe(function(e){const t=KPe(e);return!!t&&WPe(t)},"shouldRender"),sNe(KPe,"tokenToURL"),sNe(WPe,"isImageURL"),sNe(QPe,"QueryEditor"),sNe(YPe,"useResponseEditor"),sNe(XPe,"ResponseEditor"),sNe(JPe,"VariableEditor"),sNe(ZPe,"GraphiQLProvider"),sNe(eOe,"useTheme");const tOe="theme";function nOe({defaultSizeRelation:e=rOe,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:a}){const s=dNe(),l=q.useMemo(()=>A_e(500,e=>{a&&(null==s||s.set(a,e))}),[s,a]),[u,c]=q.useState(()=>{const e=a&&(null==s?void 0:s.get(a));return e===iOe||"first"===n?"first":e===oOe||"second"===n?"second":null}),p=q.useCallback(e=>{e!==u&&(c(e),null==r||r(e))},[u,r]),d=q.useRef(null),f=q.useRef(null),h=q.useRef(null),m=q.useRef(`${e}`);q.useLayoutEffect(()=>{const e=a&&(null==s?void 0:s.get(a))||m.current;d.current&&(d.current.style.display="flex",d.current.style.flex=e===iOe||e===oOe?m.current:e),h.current&&(h.current.style.display="flex",h.current.style.flex="1"),f.current&&(f.current.style.display="flex")},[t,s,a]);const g=q.useCallback(e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",d.current)){const e=parseFloat(d.current.style.flex);(!Number.isFinite(e)||e<1)&&(d.current.style.flex="1")}},[]),y=q.useCallback(e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",s&&a)){const e=s.get(a);d.current&&e!==iOe&&e!==oOe&&(d.current.style.flex=e||m.current)}},[s,a]);return q.useLayoutEffect(()=>{"first"===u?g("first"):y("first"),"second"===u?g("second"):y("second")},[u,g,y]),q.useEffect(()=>{if(!f.current||!d.current||!h.current)return;const e=f.current,n=d.current,r=n.parentElement,a="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",u="horizontal"===t?"right":"bottom",c="horizontal"===t?"clientWidth":"clientHeight";function g(t){t.preventDefault();const d=t[a]-e.getBoundingClientRect()[s];function f(t){if(0===t.buttons)return h();const f=t[a]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[u]-t[a]+d-e[c];if(f{e.removeEventListener("mousedown",g),e.removeEventListener("dblclick",y)}},[t,p,i,o,l]),q.useMemo(()=>({dragBarRef:f,hiddenElement:u,firstRef:d,setHiddenElement:c,secondRef:h}),[u,c])}sNe(nOe,"useDragResize");const rOe=1,iOe="hide-first",oOe="hide-second",aOe=q.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=q.useState(null),a=q.useCallback(e=>{try{null==t||t(e),o(null)}catch(n){o(n instanceof Error?n:new Error(`Toolbar button click failed: ${n}`))}},[t]);return ee.jsx(jFe,{label:e,children:ee.jsx(DFe,{...n,ref:r,type:"button",className:upe("graphiql-toolbar-button",i&&"error",n.className),onClick:a,"aria-label":i?i.message:e,"aria-invalid":i?"true":n["aria-invalid"]})})});function sOe(){const{queryEditor:e,setOperationName:t}=zPe({nonNull:!0,caller:sOe}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:a}=JFe({nonNull:!0,caller:sOe}),s=(null==e?void 0:e.operations)||[],l=s.length>1&&"string"!=typeof i,u=n||r,c=(u?"Stop":"Execute")+" query (Ctrl-Enter)",p={type:"button",className:"graphiql-execute-button",children:u?ee.jsx(vFe,{}):ee.jsx(cFe,{}),"aria-label":c};return l&&!u?ee.jsxs(PFe,{children:[ee.jsx(jFe,{label:c,children:ee.jsx(PFe.Button,{...p})}),ee.jsx(PFe.Content,{children:s.map((n,r)=>{const i=n.name?n.name.value:``;return ee.jsx(PFe.Item,{onSelect:()=>{var r;const i=null==(r=n.name)?void 0:r.value;e&&i&&i!==e.operationName&&t(i),o()},children:i},`${i}-${r}`)})})]}):ee.jsx(jFe,{label:c,children:ee.jsx("button",{...p,onClick:()=>{u?a():o()}})})}aOe.displayName="ToolbarButton",sNe(sOe,"ExecuteButton");const lOe=sNe(({button:e,children:t,label:n,...r})=>ee.jsxs(PFe,{...r,children:[ee.jsx(jFe,{label:n,children:ee.jsx(PFe.Button,{className:upe("graphiql-un-styled graphiql-toolbar-menu",r.className),"aria-label":n,children:e})}),ee.jsx(PFe.Content,{children:t})]}),"ToolbarMenuRoot");CFe(lOe,{Item:PFe.Item});var uOe={},cOe={};Object.defineProperty(cOe,"__esModule",{value:!0});var pOe="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},dOe=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch($qe){i=!0,o=$qe}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),fOe=Object.assign||function(e){for(var t=1;t0?""+t+i:t;var a=r.type.toString(),s={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:o}},type:(0,gOe.parseType)(a),directives:[]},l=void 0,u={};if(null!=n){var c=(0,gOe.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===n}));if(u[r]=u[r]+1||1,i)return i.defaultValue}}),p="NonNullType"===s.type.kind?fOe({},s,{type:s.type.type}):s;l=fOe({},p,{defaultValue:c})}else l=s;var d=Object.entries(u).filter(function(e){var t=dOe(e,2);return t[0],t[1]<2}).map(function(e){var t=dOe(e,2),n=t[0];return t[1],n});if(l){var f=e.props.setArgValue(l,!1);if(f){var h=f.definitions.find(function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value}),m=[].concat(vOe(h.variableDefinitions||[]),[l]).filter(function(e){return-1===d.indexOf(e.variable.name.value)}),g=fOe({},h,{variableDefinitions:m}),y=f.definitions.map(function(e){return h===e?g:e}),v=fOe({},f,{definitions:y});e.props.onCommit(v)}}},u=n&&"Variable"===n.kind,c=this.state.displayArgActions?mOe.createElement("button",{type:"submit",className:"toolbar-button",title:u?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),u?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===t});if(r){var i=r.defaultValue,o=e.props.setArgValue(i,{commit:!1});if(o){var a=o.definitions.find(function(t){return t.name.value===e.props.definition.name.value});if(!a)return;var s=0;(0,gOe.visit)(a,{Variable:function(e){e.name.value===t&&(s+=1)}});var l=a.variableDefinitions||[];s<2&&(l=l.filter(function(e){return e.variable.name.value!==t}));var u=fOe({},a,{variableDefinitions:l}),c=o.definitions.map(function(e){return a===e?u:e}),p=fOe({},o,{definitions:c});e.props.onCommit(p)}}}}():l()},style:i.styles.actionButtonStyle},mOe.createElement("span",{style:{color:i.colors.variable}},"$")):null;return mOe.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":o.name,className:"graphiql-explorer-"+r.name},mOe.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,gOe.isInputObjectType)(o)?mOe.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):mOe.createElement(AOe,{checked:!!n,styleConfig:this.props.styleConfig}),mOe.createElement("span",{style:{color:i.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,FOe(r)?"*":"",": ",c," ")," "),a||mOe.createElement("span",null)," ")}}]),e}(),BOe=function(){function e(){var t,n,r;bOe(this,e);for(var i=arguments.length,o=Array(i),a=0;a0&&t.setState({displayFieldActions:!0})},onMouseLeave:function(){return t.setState({displayFieldActions:!1})}},(0,gOe.isObjectType)(l)?mOe.createElement("span",null,s?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,gOe.isObjectType)(l)?null:mOe.createElement(AOe,{checked:!!s,styleConfig:this.props.styleConfig}),mOe.createElement("span",{style:{color:a.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?mOe.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(e){e.preventDefault(),e.stopPropagation();var n=l.name+"Fragment",r=(p||[]).filter(function(e){return e.name.value.startsWith(n)}).length;r>0&&(n=""+n+r);var i=s&&s.selectionSet?s.selectionSet.selections:[],o=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:l.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},u=t._modifyChildSelections(o,!1);if(u){var c=fOe({},u,{definitions:[].concat(vOe(u.definitions),[a])});t.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:fOe({},a.styles.actionButtonStyle)},mOe.createElement("span",null,"…")):null),s&&u.length?mOe.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},u.map(function(e){return mOe.createElement(MOe,{key:e.name,parentField:r,arg:e,selection:s,modifyArguments:t._setArguments,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition})})):null);if(s&&((0,gOe.isObjectType)(l)||(0,gOe.isInterfaceType)(l)||(0,gOe.isUnionType)(l))){var f=(0,gOe.isUnionType)(l)?{}:l.getFields(),h=s&&s.selectionSet?s.selectionSet.selections:[];return mOe.createElement("div",{className:"graphiql-explorer-"+r.name},d,mOe.createElement("div",{style:{marginLeft:16}},p?p.map(function(e){var n=i.getType(e.typeCondition.name.value),r=e.name.value;return n?mOe.createElement(VOe,{key:r,fragment:e,selections:h,modifySelections:t._modifyChildSelections,schema:i,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit}):null}):null,Object.keys(f).sort().map(function(n){return mOe.createElement(e,{key:n,field:f[n],selections:h,modifySelections:t._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition,availableFragments:t.props.availableFragments})}),(0,gOe.isInterfaceType)(l)||(0,gOe.isUnionType)(l)?i.getPossibleTypes(l).map(function(e){return mOe.createElement(BOe,{key:e.name,implementingType:e,selections:h,modifySelections:t._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition})}):null))}return d}}]),e}();var qOe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},HOe=null;function GOe(e){if(HOe&&HOe[0]===e)return HOe[1];var t=function(e){try{return e.trim()?(0,gOe.parse)(e,{noLocation:!0}):null}catch(c2){return new Error(c2)}}(e);return t?t instanceof Error?HOe?HOe[1]:qOe:(HOe=[e,t],t):qOe}var KOe={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},WOe=function(){function e(){var t,n,r;bOe(this,e);for(var i=arguments.length,o=Array(i),a=0;aq.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),rIe=({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z",strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",strokeLinecap:"round",strokeLinejoin:"round"})),iIe=({title:e,titleId:t,...n})=>q.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),oIe=({title:e,titleId:t,...n})=>q.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),q.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),aIe={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},sIe=H.createElement(nIe,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),lIe=H.createElement(nIe,{style:{width:"var(--px-16)"}}),uIe=H.createElement(iIe,{style:{marginRight:"var(--px-4)"}}),cIe=H.createElement(oIe,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),pIe={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}};function dIe(e){const{setOperationName:t}=zPe({nonNull:!0}),{schema:n}=c_e({nonNull:!0}),{run:r}=JFe({nonNull:!0}),i=q.useCallback(e=>{e&&t(e),r()},[r,t]),[o,a]=sPe(aPe());return H.createElement(eIe,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:aIe,arrowOpen:sIe,arrowClosed:lIe,checkboxUnchecked:uIe,checkboxChecked:cIe,styles:pIe,query:o,onEdit:a,...e})}function fIe(e){return{title:"GraphiQL Explorer",icon:rIe,content:()=>H.createElement(dIe,{...e})}}var hIe=function(){return hIe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};if(parseInt(H.version.slice(0,2),10)<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));function gIe(e){var t,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultTabs,o=e.externalFragments,a=e.fetcher,s=e.getDefaultFieldNames,l=e.headers,u=e.inputValueDeprecation,c=e.introspectionQueryName,p=e.maxHistoryLength,d=e.onEditOperationName,f=e.onSchemaChange,h=e.onTabChange,m=e.onTogglePluginVisibility,g=e.operationName,y=e.plugins,v=e.query,b=e.response,x=e.schema,E=e.schemaDescription,D=e.shouldPersistHeaders,w=e.storage,T=e.validationRules,C=e.variables,S=e.visiblePlugin,k=e.defaultHeaders,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&H.createElement(H.Fragment,null,a.tabs.map(function(e,t){return H.createElement(UFe,{key:e.id,value:e,isActive:t===a.activeTabIndex},H.createElement(UFe.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(t),onClick:function(){s.stop(),a.changeTab(t)}},e.title),H.createElement(UFe.Close,{onClick:function(){a.activeTabIndex===t&&s.stop(),a.closeTab(t)}}))}),Y)),H.createElement("div",{className:"graphiql-session-header-right"},1===a.tabs.length&&Y,P)),H.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(a.activeTabIndex)},H.createElement("div",{ref:x.firstRef},H.createElement("div",{className:"graphiql-editors".concat(1===a.tabs.length?" full-height":"")},H.createElement("div",{ref:E.firstRef},H.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},H.createElement(QPe,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:L,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),H.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},H.createElement(sOe,null),O))),H.createElement("div",{ref:E.dragBarRef},H.createElement("div",{className:"graphiql-editor-tools"},H.createElement(DFe,{type:"button",className:"variables"===w&&"second"!==E.hiddenElement?"active":"",onClick:G,"data-name":"variables"},"Variables"),o&&H.createElement(DFe,{type:"button",className:"headers"===w&&"second"!==E.hiddenElement?"active":"",onClick:G,"data-name":"headers"},"Headers"),H.createElement(jFe,{label:"second"===E.hiddenElement?"Show editor tools":"Hide editor tools"},H.createElement(DFe,{type:"button",onClick:K,"aria-label":"second"===E.hiddenElement?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},"second"===E.hiddenElement?H.createElement(KNe,{className:"graphiql-chevron-icon","aria-hidden":"true"}):H.createElement(HNe,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),H.createElement("div",{ref:E.secondRef},H.createElement("section",{className:"graphiql-editor-tool","aria-label":"variables"===w?"Variables":"Headers"},H.createElement(JPe,{editorTheme:e.editorTheme,isHidden:"variables"!==w,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:L,readOnly:e.readOnly}),o&&H.createElement(HPe,{editorTheme:e.editorTheme,isHidden:"headers"!==w,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),H.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:x.dragBarRef}),H.createElement("div",{ref:x.secondRef},H.createElement("div",{className:"graphiql-response"},s.isFetching?H.createElement(LFe,null):null,H.createElement(XPe,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),I))))),H.createElement(AFe,{open:"short-keys"===S,onOpenChange:W},H.createElement("div",{className:"graphiql-dialog-header"},H.createElement(AFe.Title,{className:"graphiql-dialog-title"},"Short Keys"),H.createElement(AFe.Close,null)),H.createElement("div",{className:"graphiql-dialog-section"},H.createElement(EIe,{keyMap:e.keyMap||"sublime"}))),H.createElement(AFe,{open:"settings"===S,onOpenChange:Q},H.createElement("div",{className:"graphiql-dialog-header"},H.createElement(AFe.Title,{className:"graphiql-dialog-title"},"Settings"),H.createElement(AFe.Close,null)),e.showPersistHeadersSettings?H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",H.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),H.createElement(TFe,null,H.createElement(wFe,{type:"button",id:"enable-persist-headers",className:a.shouldPersistHeaders?"active":"","data-value":"true",onClick:j},"On"),H.createElement(wFe,{type:"button",id:"disable-persist-headers",className:a.shouldPersistHeaders?"":"active",onClick:j},"Off"))):null,!p&&H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface appears.")),H.createElement(TFe,null,H.createElement(wFe,{type:"button",className:null===g?"active":"",onClick:R},"System"),H.createElement(wFe,{type:"button",className:"light"===g?"active":"","data-theme":"light",onClick:R},"Light"),H.createElement(wFe,{type:"button",className:"dark"===g?"active":"","data-theme":"dark",onClick:R},"Dark"))),u?H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),H.createElement(wFe,{type:"button",state:N||void 0,disabled:"success"===N,onClick:M},{success:"Cleared data",error:"Failed"}[N]||"Clear data")):null)))}var bIe="undefined"!=typeof window&&0===window.navigator.platform.toLowerCase().indexOf("mac")?"Cmd":"Ctrl",xIe=Object.entries({"Search in editor":[bIe,"F"],"Search in documentation":[bIe,"K"],"Execute query":[bIe,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function EIe(e){var t=e.keyMap;return H.createElement("div",null,H.createElement("table",{className:"graphiql-table"},H.createElement("thead",null,H.createElement("tr",null,H.createElement("th",null,"Short Key"),H.createElement("th",null,"Function"))),H.createElement("tbody",null,xIe.map(function(e){var t=mIe(e,2),n=t[0],r=t[1];return H.createElement("tr",{key:n},H.createElement("td",null,r.map(function(e,t,n){return H.createElement(q.Fragment,{key:e},H.createElement("code",{className:"graphiql-key"},e),t!==n.length-1&&" + ")})),H.createElement("td",null,n))}))),H.createElement("p",null,"The editors use"," ",H.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",H.createElement("em",null,"i"),"QL uses"," ",H.createElement("code",null,t),"."))}function DIe(e){return H.createElement("div",{className:"graphiql-logo"},e.children||H.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",H.createElement("em",null,"i"),"QL"))}function wIe(e){return H.createElement(H.Fragment,null,e.children)}function TIe(e){return H.createElement("div",{className:"graphiql-footer"},e.children)}function CIe(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}function SIe(e){return JS({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"}}]})(e)}function kIe(e){return JS({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"}}]})(e)}function AIe(e){return JS({attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M13 15.5v-6.5a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v4"}},{tag:"path",attr:{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h7"}},{tag:"path",attr:{d:"M16 9h2"}},{tag:"path",attr:{d:"M15 19l2 2l4 -4"}}]})(e)}function NIe(e,[t,n]){return Math.min(n,Math.max(t,e))}function FIe(e){const t=q.useRef({value:e,previous:e});return q.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}DIe.displayName="GraphiQLLogo",wIe.displayName="GraphiQLToolbar",TIe.displayName="GraphiQLFooter";const _Ie=q.forwardRef((e,t)=>q.createElement(jM.span,dM({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),PIe=[" ","Enter","ArrowUp","ArrowDown"],OIe=[" ","Enter"],IIe="Select",[LIe,MIe,jIe]=PM(IIe),[RIe]=FM(IIe,[jIe,tge]),BIe=tge(),[VIe,UIe]=RIe(IIe),[zIe,$Ie]=RIe(IIe),qIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=BIe(n),a=UIe("SelectTrigger",n),s=a.disabled||r,l=hM(t,a.onTriggerChange),u=MIe(n),[c,p,d]=yLe(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=vLe(t,e,n);void 0!==r&&a.onValueChange(r.value)}),f=()=>{s||(a.onOpenChange(!0),d())};return q.createElement(fge,dM({asChild:!0},o),q.createElement(jM.button,dM({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":void 0===a.value?"":void 0},i,{ref:l,onClick:NM(i.onClick,e=>{e.currentTarget.focus()}),onPointerDown:NM(i.onPointerDown,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(f(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:NM(i.onKeyDown,e=>{const t=""!==c.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||PIe.includes(e.key)&&(f(),e.preventDefault())})})))}),HIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a,...s}=e,l=UIe("SelectValue",n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==o,p=hM(t,l.onValueNodeChange);return OM(()=>{u(c)},[u,c]),q.createElement(jM.span,dM({},s,{ref:p,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:o)}),GIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return q.createElement(jM.span,dM({"aria-hidden":!0},i,{ref:t}),r||"▼")}),KIe="SelectContent",WIe=q.forwardRef((e,t)=>{const n=UIe(KIe,e.__scopeSelect),[r,i]=q.useState();if(OM(()=>{i(new DocumentFragment)},[]),!n.open){const t=r;return t?lp.createPortal(q.createElement(YIe,{scope:e.__scopeSelect},q.createElement(LIe.Slot,{scope:e.__scopeSelect},q.createElement("div",null,e.children))),t):null}return q.createElement(JIe,dM({},e,{ref:t}))}),QIe=10,[YIe,XIe]=RIe(KIe),JIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,v=UIe(KIe,n),[b,x]=q.useState(null),[E,D]=q.useState(null),w=hM(t,e=>x(e)),[T,C]=q.useState(null),[S,k]=q.useState(null),A=MIe(n),[N,F]=q.useState(!1),_=q.useRef(!1);q.useEffect(()=>{if(b)return zR(b)},[b]),qj();const P=q.useCallback(e=>{const[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(const o of e){if(o===i)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&E&&(E.scrollTop=0),o===r&&E&&(E.scrollTop=E.scrollHeight),null==o||o.focus(),document.activeElement!==i)return}},[A,E]),O=q.useCallback(()=>P([T,b]),[P,T,b]);q.useEffect(()=>{N&&O()},[N,O]);const{onOpenChange:I,triggerPointerDownPosRef:L}=v;q.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=L.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(o=L.current)||void 0===o?void 0:o.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||I(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,I,L]),q.useEffect(()=>{const e=()=>I(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[I]);const[M,j]=yLe(e=>{const t=A().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=vLe(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),R=q.useCallback((e,t,n)=>{const r=!_.current&&!n;(void 0!==v.value&&v.value===t||r)&&(C(e),r&&(_.current=!0))},[v.value]),B=q.useCallback(()=>null==b?void 0:b.focus(),[b]),V=q.useCallback((e,t,n)=>{const r=!_.current&&!n;(void 0!==v.value&&v.value===t||r)&&k(e)},[v.value]),U="popper"===r?eLe:ZIe,z=U===eLe?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return q.createElement(YIe,{scope:n,content:b,viewport:E,onViewportChange:D,itemRefCallback:R,selectedItem:T,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:O,selectedItemText:S,position:r,isPositioned:N,searchRef:M},q.createElement(LR,{as:mM,allowPinchZoom:!0},q.createElement(Hme,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:NM(i,e=>{var t;null===(t=v.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},q.createElement(Bme,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},q.createElement(U,dM({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:e=>e.preventDefault()},y,z,{onPlaced:()=>F(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:NM(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||j(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})}))))))}),ZIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=UIe(KIe,n),a=XIe(KIe,n),[s,l]=q.useState(null),[u,c]=q.useState(null),p=hM(t,e=>c(e)),d=MIe(n),f=q.useRef(!1),h=q.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:v}=a,b=q.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if("rtl"!==o.dir){const r=i.left-t.left,o=n.left-r,a=e.left-o,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-QIe,p=NIe(o,[QIe,c-u]);s.style.minWidth=l+"px",s.style.left=p+"px"}else{const r=t.right-i.right,o=window.innerWidth-n.right-r,a=window.innerWidth-e.right-o,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-QIe,p=NIe(o,[QIe,c-u]);s.style.minWidth=l+"px",s.style.right=p+"px"}const a=d(),l=window.innerHeight-2*QIe,c=m.scrollHeight,p=window.getComputedStyle(u),h=parseInt(p.borderTopWidth,10),v=parseInt(p.paddingTop,10),b=parseInt(p.borderBottomWidth,10),x=h+v+c+parseInt(p.paddingBottom,10)+b,E=Math.min(5*g.offsetHeight,x),D=window.getComputedStyle(m),w=parseInt(D.paddingTop,10),T=parseInt(D.paddingBottom,10),C=e.top+e.height/2-QIe,S=l-C,k=g.offsetHeight/2,A=h+v+(g.offsetTop+k),N=x-A;if(A<=C){const e=g===a[a.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(S,k+(e?T:0)+t+b);s.style.height=n+"px"}else{const e=g===a[0].ref.current;s.style.top="0px";const t=Math.max(C,h+m.offsetTop+(e?w:0)+k)+N;s.style.height=t+"px",m.scrollTop=A-C+m.offsetTop}s.style.margin=`${QIe}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame(()=>f.current=!0)}},[d,o.trigger,o.valueNode,s,u,m,g,y,o.dir,r]);OM(()=>b(),[b]);const[x,E]=q.useState();OM(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const D=q.useCallback(e=>{e&&!0===h.current&&(b(),null==v||v(),h.current=!1)},[b,v]);return q.createElement(tLe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:D},q.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},q.createElement(jM.div,dM({},i,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),eLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=QIe,...o}=e,a=BIe(n);return q.createElement(hge,dM({},a,o,{ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[tLe,nLe]=RIe(KIe,{}),rLe="SelectViewport",iLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=XIe(rLe,n),o=nLe(rLe,n),a=hM(t,i.onViewportChange),s=q.useRef(0);return q.createElement(q.Fragment,null,q.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),q.createElement(LIe.Slot,{scope:n},q.createElement(jM.div,dM({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:NM(r.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*QIe,i=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),a=Math.max(i,o);if(a0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop})}))))}),[oLe,aLe]=RIe("SelectGroup"),sLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=aLe("SelectLabel",n);return q.createElement(jM.div,dM({id:i.id},r,{ref:t}))}),lLe="SelectItem",[uLe,cLe]=RIe(lLe),pLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,s=UIe(lLe,n),l=XIe(lLe,n),u=s.value===r,[c,p]=q.useState(null!=o?o:""),[d,f]=q.useState(!1),h=hM(t,e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,i)}),m=MM(),g=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};return q.createElement(uLe,{scope:n,value:r,disabled:i,textId:m,isSelected:u,onItemTextChange:q.useCallback(e=>{p(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},q.createElement(LIe.ItemSlot,{scope:n,value:r,disabled:i,textValue:c},q.createElement(jM.div,dM({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:h,onFocus:NM(a.onFocus,()=>f(!0)),onBlur:NM(a.onBlur,()=>f(!1)),onPointerUp:NM(a.onPointerUp,g),onPointerMove:NM(a.onPointerMove,e=>{var t;i?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:NM(a.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))}),onKeyDown:NM(a.onKeyDown,e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(OIe.includes(e.key)&&g()," "===e.key&&e.preventDefault())})}))))}),dLe="SelectItemText",fLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=UIe(dLe,n),s=XIe(dLe,n),l=cLe(dLe,n),u=$Ie(dLe,n),[c,p]=q.useState(null),d=hM(t,e=>p(e),l.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)}),f=null==c?void 0:c.textContent,h=q.useMemo(()=>q.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return OM(()=>(m(h),()=>g(h)),[m,g,h]),q.createElement(q.Fragment,null,q.createElement(jM.span,dM({id:l.textId},o,{ref:d})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?lp.createPortal(o.children,a.valueNode):null)}),hLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cLe("SelectItemIndicator",n).isSelected?q.createElement(jM.span,dM({"aria-hidden":!0},r,{ref:t})):null}),mLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return q.createElement(jM.div,dM({"aria-hidden":!0},r,{ref:t}))}),gLe=q.forwardRef((e,t)=>{const{value:n,...r}=e,i=q.useRef(null),o=hM(t,i),a=FIe(n);return q.useEffect(()=>{const e=i.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[a,n]),q.createElement(_Ie,{asChild:!0},q.createElement("select",dM({},r,{ref:o,defaultValue:n})))});function yLe(e){const t=BM(e),n=q.useRef(""),r=q.useRef(0),i=q.useCallback(e=>{const i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),o=q.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function vLe(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=(a=e,s=Math.max(i,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(o=o.filter(e=>e!==n));const l=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}gLe.displayName="BubbleSelect";const bLe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:p,disabled:d,required:f}=e,h=BIe(t),[m,g]=q.useState(null),[y,v]=q.useState(null),[b,x]=q.useState(!1),E=zM(u),[D=!1,w]=VM({prop:r,defaultProp:i,onChange:o}),[T,C]=VM({prop:a,defaultProp:s,onChange:l}),S=q.useRef(null),k=!m||Boolean(m.closest("form")),[A,N]=q.useState(new Set),F=Array.from(A).map(e=>e.props.value).join(";");return q.createElement(dge,h,q.createElement(VIe,{required:f,scope:t,trigger:m,onTriggerChange:g,valueNode:y,onValueNodeChange:v,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:MM(),value:T,onValueChange:C,open:D,onOpenChange:w,dir:E,triggerPointerDownPosRef:S,disabled:d},q.createElement(LIe.Provider,{scope:t},q.createElement(zIe,{scope:e.__scopeSelect,onNativeOptionAdd:q.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:q.useCallback(e=>{N(t=>{const n=new Set(t);return n.delete(e),n})},[])},n)),k?q.createElement(gLe,{key:F,"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:p,value:T,onChange:e=>C(e.target.value),disabled:d},void 0===T?q.createElement("option",{value:""}):null,Array.from(A)):null))},xLe=qIe,ELe=HIe,DLe=GIe,wLe=e=>q.createElement(mge,dM({asChild:!0},e)),TLe=WIe,CLe=iLe,SLe=sLe,kLe=pLe,ALe=fLe,NLe=hLe,FLe=mLe;const _Le="ScrollArea",[PLe]=FM(_Le),[OLe,ILe]=PLe(_Le),LLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=q.useState(null),[u,c]=q.useState(null),[p,d]=q.useState(null),[f,h]=q.useState(null),[m,g]=q.useState(null),[y,v]=q.useState(0),[b,x]=q.useState(0),[E,D]=q.useState(!1),[w,T]=q.useState(!1),C=hM(t,e=>l(e)),S=zM(i);return q.createElement(OLe,{scope:n,type:r,dir:S,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:p,onContentChange:d,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:E,onScrollbarXEnabledChange:D,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:x},q.createElement(jM.div,dM({dir:S},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),MLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...i}=e,o=ILe("ScrollAreaViewport",n),a=hM(t,q.useRef(null),o.onViewportChange);return q.createElement(q.Fragment,null,q.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),q.createElement(jM.div,dM({"data-radix-scroll-area-viewport":""},i,{ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),q.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),jLe="ScrollAreaScrollbar",RLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return q.useEffect(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?q.createElement(BLe,dM({},r,{ref:t,forceMount:n})):"scroll"===i.type?q.createElement(VLe,dM({},r,{ref:t,forceMount:n})):"auto"===i.type?q.createElement(ULe,dM({},r,{ref:t,forceMount:n})):"always"===i.type?q.createElement(zLe,dM({},r,{ref:t})):null}),BLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),[o,a]=q.useState(!1);return q.useEffect(()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),q.createElement(aj,{present:n||o},q.createElement(ULe,dM({"data-state":o?"visible":"hidden"},r,{ref:t})))}),VLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),o="horizontal"===e.orientation,a=iMe(()=>l("SCROLL_END"),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},q.useReducer((e,t)=>{const n=c[e][t];return null!=n?n:e},u));var u,c;return q.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,l]),q.useEffect(()=>{const e=i.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[i.viewport,o,l,a]),q.createElement(aj,{present:n||"hidden"!==s},q.createElement(zLe,dM({"data-state":"hidden"===s?"hidden":"visible"},r,{ref:t,onPointerEnter:NM(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:NM(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),ULe=q.forwardRef((e,t)=>{const n=ILe(jLe,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=q.useState(!1),s="horizontal"===e.orientation,l=iMe(()=>{if(n.viewport){const e=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,i=ILe(jLe,e.__scopeScrollArea),o=q.useRef(null),a=q.useRef(0),[s,l]=q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=JLe(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function p(e,t){return function(e,t,n,r="ltr"){const i=ZLe(n),o=i/2,a=t||o,s=i-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,p="ltr"===r?[0,c]:[-1*c,0];return tMe([l,u],p)(e)}(e,a.current,s,t)}return"horizontal"===n?q.createElement($Le,dM({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const e=eMe(i.viewport.scrollLeft,s,i.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=p(e,i.dir))}})):"vertical"===n?q.createElement(qLe,dM({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const e=eMe(i.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=p(e))}})):null}),$Le=q.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=ILe(jLe,e.__scopeScrollArea),[a,s]=q.useState(),l=q.useRef(null),u=hM(t,l,o.onScrollbarXChange);return q.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),q.createElement(KLe,dM({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ZLe(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),nMe(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:XLe(a.paddingLeft),paddingEnd:XLe(a.paddingRight)}})}}))}),qLe=q.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=ILe(jLe,e.__scopeScrollArea),[a,s]=q.useState(),l=q.useRef(null),u=hM(t,l,o.onScrollbarYChange);return q.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),q.createElement(KLe,dM({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ZLe(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),nMe(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:XLe(a.paddingTop),paddingEnd:XLe(a.paddingBottom)}})}}))}),[HLe,GLe]=PLe(jLe),KLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:p,...d}=e,f=ILe(jLe,n),[h,m]=q.useState(null),g=hM(t,e=>m(e)),y=q.useRef(null),v=q.useRef(""),b=f.viewport,x=r.content-r.viewport,E=BM(c),D=BM(l),w=iMe(p,10);function T(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;u({x:t,y:n})}}return q.useEffect(()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,h,x,E]),q.useEffect(D,[r,D]),oMe(h,w),oMe(f.content,w),q.createElement(HLe,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:BM(o),onThumbPointerUp:BM(a),onThumbPositionChange:D,onThumbPointerDown:BM(s)},q.createElement(jM.div,dM({},d,{ref:g,style:{position:"absolute",...d.style},onPointerDown:NM(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),T(e)}}),onPointerMove:NM(e.onPointerMove,T),onPointerUp:NM(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null})})))}),WLe="ScrollAreaThumb",QLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=GLe(WLe,e.__scopeScrollArea);return q.createElement(aj,{present:n||i.hasThumb},q.createElement(YLe,dM({ref:t},r)))}),YLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,o=ILe(WLe,n),a=GLe(WLe,n),{onThumbPositionChange:s}=a,l=hM(t,e=>a.onThumbChange(e)),u=q.useRef(),c=iMe(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{const e=o.viewport;if(e){const t=()=>{if(c(),!u.current){const t=rMe(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),q.createElement(jM.div,dM({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:NM(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:NM(e.onPointerUp,a.onThumbPointerUp)}))});function XLe(e){return e?parseInt(e,10):0}function JLe(e,t){const n=e/t;return isNaN(n)?0:n}function ZLe(e){const t=JLe(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function eMe(e,t,n="ltr"){const r=ZLe(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-r,l=NIe(e,"ltr"===n?[0,a]:[-1*a,0]);return tMe([0,a],[0,s])(l)}function tMe(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function nMe(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function iMe(e,t){const n=BM(e),r=q.useRef(0);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function oMe(e,t){const n=BM(t);OM(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}const aMe=LLe,sMe=MLe,lMe=RLe,uMe=QLe,cMe=bLe,pMe=ELe,dMe=q.forwardRef(({className:e,children:t,...n},r)=>ee.jsxs(xLe,{ref:r,className:ed("flex h-9 w-full items-center justify-between rounded-md border border-input px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground hover:border-input-active focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,ee.jsx(DLe,{asChild:!0,children:ee.jsx(OL,{className:"ml-2 h-4 w-4 flex-shrink-0 opacity-50"})})]}));dMe.displayName=xLe.displayName;const fMe=q.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>ee.jsx(wLe,{children:ee.jsx(TLe,{ref:i,className:ed("relative z-50 w-full min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:ee.jsxs(aMe,{className:"h-full w-full",type:"auto",children:[ee.jsx(CLe,{asChild:!0,children:ee.jsx(sMe,{style:{overflowY:void 0},className:ed("p-1","popper"===n&&"max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)] max-w-[var(--radix-select-content-available-width)]"),children:t})}),ee.jsx(lMe,{className:"w-2",orientation:"vertical",children:ee.jsx(uMe,{className:"rounded-md bg-stone-300 hover:bg-stone-400 dark:bg-secondary dark:hover:bg-muted"})})]})})}));fMe.displayName=TLe.displayName;q.forwardRef(({className:e,...t},n)=>ee.jsx(SLe,{ref:n,className:ed("px-2 py-1.5 text-sm font-semibold",e),...t})).displayName=SLe.displayName;const hMe=q.forwardRef(({className:e,children:t,...n},r)=>ee.jsxs(kLe,{ref:r,className:ed("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent",e),...n,children:[ee.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:ee.jsx(NLe,{children:ee.jsx(LL,{className:"h-4 w-4"})})}),ee.jsx(ALe,{asChild:!0,children:ee.jsx("p",{className:"whitespace-pre-wrap",children:t})})]}));hMe.displayName=kLe.displayName;function mMe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gMe(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 yMe(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;oee.jsx(FLe,{ref:n,className:ed("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=FLe.displayName;var SMe=wMe(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),kMe={changes:function(e,t){return TMe(t)||SMe("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&SMe("changeField"),t},selector:function(e){CMe(e)||SMe("selectorType")},handler:function(e){CMe(e)||TMe(e)||SMe("handlerType"),TMe(e)&&Object.values(e).some(function(e){return!CMe(e)})&&SMe("handlersType")},initial:function(e){e||SMe("initialIsRequired"),TMe(e)||SMe("initialType"),function(e){return!Object.keys(e).length}(e)&&SMe("initialContent")}};function AMe(e,t){return CMe(t)?t(e.current):t}function NMe(e,t){return e.current=DMe(DMe({},e.current),t),t}function FMe(e,t,n){return CMe(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var _Me={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kMe.initial(e),kMe.handler(t);var n={current:e},r=wMe(FMe)(n,t),i=wMe(NMe)(n),o=wMe(kMe.changes)(e),a=wMe(AMe)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return kMe.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n=PMe.length?PMe.apply(this,r):function(){for(var n=arguments.length,i=new Array(n),o=0;o{r.current=!1}:e,t)};function oje(){}function aje(e,t,n,r){return function(e,t){return e.editor.getModel(sje(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?sje(e,r):void 0)}(e,t,n,r)}function sje(e,t){return e.Uri.parse(t)}var lje=function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:p={},height:d="100%",width:f="100%",className:h,wrapperProps:m={},beforeMount:g=oje,onMount:y=oje}){let[v,b]=q.useState(!1),[x,E]=q.useState(!0),D=q.useRef(null),w=q.useRef(null),T=q.useRef(null),C=q.useRef(y),S=q.useRef(g),k=q.useRef(!1);rje(()=>{let e=YMe.init();return e.then(e=>(w.current=e)&&E(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>D.current?function(){var e,t,n,r;let i=null==(e=D.current)?void 0:e.getModel();s||null==(t=null==i?void 0:i.original)||t.dispose(),l||null==(n=null==i?void 0:i.modified)||n.dispose(),null==(r=D.current)||r.dispose()}():e.cancel()}),ije(()=>{if(D.current&&w.current){let t=D.current.getOriginalEditor(),i=aje(w.current,e||"",r||n||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],v),ije(()=>{if(D.current&&w.current){let e=D.current.getModifiedEditor(),r=aje(w.current,t||"",i||n||"text",a||"");r!==e.getModel()&&e.setModel(r)}},[a],v),ije(()=>{let e=D.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),ije(()=>{var t,n;null==(n=null==(t=D.current)?void 0:t.getModel())||n.original.setValue(e||"")},[e],v),ije(()=>{let{original:e,modified:t}=D.current.getModel();w.current.editor.setModelLanguage(e,r||n||"text"),w.current.editor.setModelLanguage(t,i||n||"text")},[n,r,i],v),ije(()=>{var e;null==(e=w.current)||e.editor.setTheme(u)},[u],v),ije(()=>{var e;null==(e=D.current)||e.updateOptions(p)},[p],v);let A=q.useCallback(()=>{var s;if(!w.current)return;S.current(w.current);let l=aje(w.current,e||"",r||n||"text",o||""),u=aje(w.current,t||"",i||n||"text",a||"");null==(s=D.current)||s.setModel({original:l,modified:u})},[n,t,i,e,r,o,a]),N=q.useCallback(()=>{var e;!k.current&&T.current&&(D.current=w.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...p}),A(),null==(e=w.current)||e.editor.setTheme(u),b(!0),k.current=!0)},[p,u,A]);return q.useEffect(()=>{v&&C.current(D.current,w.current)},[v]),q.useEffect(()=>{!x&&!v&&N()},[x,v,N]),H.createElement(nje,{width:f,height:d,isEditorReady:v,loading:c,_ref:T,className:h,wrapperProps:m})};q.memo(lje);var uje=function(){let[e,t]=q.useState(YMe.__getMonacoInstance());return rje(()=>{let n;return e||(n=YMe.init(),n.then(e=>{t(e)})),()=>null==n?void 0:n.cancel()}),e};var cje=function(e){let t=q.useRef();return q.useEffect(()=>{t.current=e},[e]),t.current},pje=new Map;var dje=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:p=!0,keepCurrentModel:d=!1,width:f="100%",height:h="100%",className:m,wrapperProps:g={},beforeMount:y=oje,onMount:v=oje,onChange:b,onValidate:x=oje}){let[E,D]=q.useState(!1),[w,T]=q.useState(!0),C=q.useRef(null),S=q.useRef(null),k=q.useRef(null),A=q.useRef(v),N=q.useRef(y),F=q.useRef(),_=q.useRef(r),P=cje(o),O=q.useRef(!1),I=q.useRef(!1);rje(()=>{let e=YMe.init();return e.then(e=>(C.current=e)&&T(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>{return S.current?(null==(t=F.current)||t.dispose(),d?p&&pje.set(o,S.current.saveViewState()):null==(n=S.current.getModel())||n.dispose(),void S.current.dispose()):e.cancel();var t,n}}),ije(()=>{var a,s,l,u;let c=aje(C.current,e||r||"",t||i||"",o||n||"");c!==(null==(a=S.current)?void 0:a.getModel())&&(p&&pje.set(P,null==(s=S.current)?void 0:s.saveViewState()),null==(l=S.current)||l.setModel(c),p&&(null==(u=S.current)||u.restoreViewState(pje.get(o))))},[o],E),ije(()=>{var e;null==(e=S.current)||e.updateOptions(u)},[u],E),ije(()=>{!S.current||void 0===r||(S.current.getOption(C.current.editor.EditorOption.readOnly)?S.current.setValue(r):r!==S.current.getValue()&&(I.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),S.current.pushUndoStop(),I.current=!1))},[r],E),ije(()=>{var e,t;let n=null==(e=S.current)?void 0:e.getModel();n&&i&&(null==(t=C.current)||t.editor.setModelLanguage(n,i))},[i],E),ije(()=>{var e;void 0!==s&&(null==(e=S.current)||e.revealLine(s))},[s],E),ije(()=>{var e;null==(e=C.current)||e.editor.setTheme(a)},[a],E);let L=q.useCallback(()=>{var l;if(k.current&&C.current&&!O.current){N.current(C.current);let d=o||n,f=aje(C.current,r||e||"",t||i||"",d||"");S.current=null==(l=C.current)?void 0:l.editor.create(k.current,{model:f,automaticLayout:!0,...u},c),p&&S.current.restoreViewState(pje.get(d)),C.current.editor.setTheme(a),void 0!==s&&S.current.revealLine(s),D(!0),O.current=!0}},[e,t,n,r,i,o,u,c,p,a,s]);return q.useEffect(()=>{E&&A.current(S.current,C.current)},[E]),q.useEffect(()=>{!w&&!E&&L()},[w,E,L]),_.current=r,q.useEffect(()=>{var e,t;E&&b&&(null==(e=F.current)||e.dispose(),F.current=null==(t=S.current)?void 0:t.onDidChangeModelContent(e=>{I.current||b(S.current.getValue(),e)}))},[E,b]),q.useEffect(()=>{if(E){let e=C.current.editor.onDidChangeMarkers(e=>{var t;let n=null==(t=S.current.getModel())?void 0:t.uri;if(n&&e.find(e=>e.path===n.path)){let e=C.current.editor.getModelMarkers({resource:n});null==x||x(e)}});return()=>{null==e||e.dispose()}}return()=>{}},[E,x]),H.createElement(nje,{width:f,height:h,isEditorReady:E,loading:l,_ref:k,className:m,wrapperProps:g})},fje=q.memo(dje);const hje={base:"vs-dark",inherit:!0,rules:[{background:"011627",token:""},{foreground:"637777",token:"comment"},{foreground:"addb67",token:"string"},{foreground:"ecc48d",token:"vstring.quoted"},{foreground:"ecc48d",token:"variable.other.readwrite.js"},{foreground:"5ca7e4",token:"string.regexp"},{foreground:"5ca7e4",token:"string.regexp keyword.other"},{foreground:"5f7e97",token:"meta.function punctuation.separator.comma"},{foreground:"f78c6c",token:"constant.numeric"},{foreground:"f78c6c",token:"constant.character.numeric"},{foreground:"addb67",token:"variable"},{foreground:"c792ea",token:"keyword"},{foreground:"c792ea",token:"punctuation.accessor"},{foreground:"c792ea",token:"storage"},{foreground:"c792ea",token:"meta.var.expr"},{foreground:"c792ea",token:"meta.class meta.method.declaration meta.var.expr storage.type.jsm"},{foreground:"c792ea",token:"storage.type.property.js"},{foreground:"c792ea",token:"storage.type.property.ts"},{foreground:"c792ea",token:"storage.type.property.tsx"},{foreground:"82aaff",token:"storage.type"},{foreground:"ffcb8b",token:"entity.name.class"},{foreground:"ffcb8b",token:"meta.class entity.name.type.class"},{foreground:"addb67",token:"entity.other.inherited-class"},{foreground:"82aaff",token:"entity.name.function"},{foreground:"addb67",token:"punctuation.definition.variable"},{foreground:"d3423e",token:"punctuation.section.embedded"},{foreground:"d6deeb",token:"punctuation.terminator.expression"},{foreground:"d6deeb",token:"punctuation.definition.arguments"},{foreground:"d6deeb",token:"punctuation.definition.array"},{foreground:"d6deeb",token:"punctuation.section.array"},{foreground:"d6deeb",token:"meta.array"},{foreground:"d9f5dd",token:"punctuation.definition.list.begin"},{foreground:"d9f5dd",token:"punctuation.definition.list.end"},{foreground:"d9f5dd",token:"punctuation.separator.arguments"},{foreground:"d9f5dd",token:"punctuation.definition.list"},{foreground:"d3423e",token:"string.template meta.template.expression"},{foreground:"d6deeb",token:"string.template punctuation.definition.string"},{foreground:"c792ea",fontStyle:"italic",token:"italic"},{foreground:"addb67",fontStyle:"bold",token:"bold"},{foreground:"82aaff",token:"constant.language"},{foreground:"82aaff",token:"punctuation.definition.constant"},{foreground:"82aaff",token:"variable.other.constant"},{foreground:"7fdbca",token:"support.function.construct"},{foreground:"7fdbca",token:"keyword.other.new"},{foreground:"82aaff",token:"constant.character"},{foreground:"82aaff",token:"constant.other"},{foreground:"f78c6c",token:"constant.character.escape"},{foreground:"addb67",token:"entity.other.inherited-class"},{foreground:"d7dbe0",token:"variable.parameter"},{foreground:"7fdbca",token:"entity.name.tag"},{foreground:"cc2996",token:"punctuation.definition.tag.html"},{foreground:"cc2996",token:"punctuation.definition.tag.begin"},{foreground:"cc2996",token:"punctuation.definition.tag.end"},{foreground:"addb67",token:"entity.other.attribute-name"},{foreground:"addb67",token:"entity.name.tag.custom"},{foreground:"82aaff",token:"support.function"},{foreground:"82aaff",token:"support.constant"},{foreground:"7fdbca",token:"upport.constant.meta.property-value"},{foreground:"addb67",token:"support.type"},{foreground:"addb67",token:"support.class"},{foreground:"addb67",token:"support.variable.dom"},{foreground:"7fdbca",token:"support.constant"},{foreground:"7fdbca",token:"keyword.other.special-method"},{foreground:"7fdbca",token:"keyword.other.new"},{foreground:"7fdbca",token:"keyword.other.debugger"},{foreground:"7fdbca",token:"keyword.control"},{foreground:"c792ea",token:"keyword.operator.comparison"},{foreground:"c792ea",token:"keyword.control.flow.js"},{foreground:"c792ea",token:"keyword.control.flow.ts"},{foreground:"c792ea",token:"keyword.control.flow.tsx"},{foreground:"c792ea",token:"keyword.control.ruby"},{foreground:"c792ea",token:"keyword.control.module.ruby"},{foreground:"c792ea",token:"keyword.control.class.ruby"},{foreground:"c792ea",token:"keyword.control.def.ruby"},{foreground:"c792ea",token:"keyword.control.loop.js"},{foreground:"c792ea",token:"keyword.control.loop.ts"},{foreground:"c792ea",token:"keyword.control.import.js"},{foreground:"c792ea",token:"keyword.control.import.ts"},{foreground:"c792ea",token:"keyword.control.import.tsx"},{foreground:"c792ea",token:"keyword.control.from.js"},{foreground:"c792ea",token:"keyword.control.from.ts"},{foreground:"c792ea",token:"keyword.control.from.tsx"},{foreground:"ffffff",background:"ff2c83",token:"invalid"},{foreground:"ffffff",background:"d3423e",token:"invalid.deprecated"},{foreground:"7fdbca",token:"keyword.operator"},{foreground:"c792ea",token:"keyword.operator.relational"},{foreground:"c792ea",token:"keyword.operator.assignement"},{foreground:"c792ea",token:"keyword.operator.arithmetic"},{foreground:"c792ea",token:"keyword.operator.bitwise"},{foreground:"c792ea",token:"keyword.operator.increment"},{foreground:"c792ea",token:"keyword.operator.ternary"},{foreground:"637777",token:"comment.line.double-slash"},{foreground:"cdebf7",token:"object"},{foreground:"ff5874",token:"constant.language.null"},{foreground:"d6deeb",token:"meta.brace"},{foreground:"c792ea",token:"meta.delimiter.period"},{foreground:"d9f5dd",token:"punctuation.definition.string"},{foreground:"ff5874",token:"constant.language.boolean"},{foreground:"ffffff",token:"object.comma"},{foreground:"7fdbca",token:"variable.parameter.function"},{foreground:"80cbc4",token:"support.type.vendor.property-name"},{foreground:"80cbc4",token:"support.constant.vendor.property-value"},{foreground:"80cbc4",token:"support.type.property-name"},{foreground:"80cbc4",token:"meta.property-list entity.name.tag"},{foreground:"57eaf1",token:"meta.property-list entity.name.tag.reference"},{foreground:"f78c6c",token:"constant.other.color.rgb-value punctuation.definition.constant"},{foreground:"ffeb95",token:"constant.other.color"},{foreground:"ffeb95",token:"keyword.other.unit"},{foreground:"c792ea",token:"meta.selector"},{foreground:"fad430",token:"entity.other.attribute-name.id"},{foreground:"80cbc4",token:"meta.property-name"},{foreground:"c792ea",token:"entity.name.tag.doctype"},{foreground:"c792ea",token:"meta.tag.sgml.doctype"},{foreground:"d9f5dd",token:"punctuation.definition.parameters"},{foreground:"ecc48d",token:"string.quoted"},{foreground:"ecc48d",token:"string.quoted.double"},{foreground:"ecc48d",token:"string.quoted.single"},{foreground:"addb67",token:"support.constant.math"},{foreground:"addb67",token:"support.type.property-name.json"},{foreground:"addb67",token:"support.constant.json"},{foreground:"c789d6",token:"meta.structure.dictionary.value.json string.quoted.double"},{foreground:"80cbc4",token:"string.quoted.double.json punctuation.definition.string.json"},{foreground:"ff5874",token:"meta.structure.dictionary.json meta.structure.dictionary.value constant.language"},{foreground:"d6deeb",token:"variable.other.ruby"},{foreground:"ecc48d",token:"entity.name.type.class.ruby"},{foreground:"ecc48d",token:"keyword.control.class.ruby"},{foreground:"ecc48d",token:"meta.class.ruby"},{foreground:"7fdbca",token:"constant.language.symbol.hashkey.ruby"},{foreground:"e0eddd",background:"a57706",fontStyle:"italic",token:"meta.diff"},{foreground:"e0eddd",background:"a57706",fontStyle:"italic",token:"meta.diff.header"},{foreground:"ef535090",fontStyle:"italic",token:"markup.deleted"},{foreground:"a2bffc",fontStyle:"italic",token:"markup.changed"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.git"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.from-file"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.to-file"},{foreground:"219186",background:"eae3ca",token:"markup.inserted"},{foreground:"d3201f",token:"other.package.exclude"},{foreground:"d3201f",token:"other.remove"},{foreground:"269186",token:"other.add"},{foreground:"ff5874",token:"constant.language.python"},{foreground:"82aaff",token:"variable.parameter.function.python"},{foreground:"82aaff",token:"meta.function-call.arguments.python"},{foreground:"b2ccd6",token:"meta.function-call.python"},{foreground:"b2ccd6",token:"meta.function-call.generic.python"},{foreground:"d6deeb",token:"punctuation.python"},{foreground:"addb67",token:"entity.name.function.decorator.python"},{foreground:"8eace3",token:"source.python variable.language.special"},{foreground:"82b1ff",token:"markup.heading.markdown"},{foreground:"c792ea",fontStyle:"italic",token:"markup.italic.markdown"},{foreground:"addb67",fontStyle:"bold",token:"markup.bold.markdown"},{foreground:"697098",token:"markup.quote.markdown"},{foreground:"80cbc4",token:"markup.inline.raw.markdown"},{foreground:"ff869a",token:"markup.underline.link.markdown"},{foreground:"ff869a",token:"markup.underline.link.image.markdown"},{foreground:"d6deeb",token:"string.other.link.title.markdown"},{foreground:"d6deeb",token:"string.other.link.description.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.begin.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.end.markdown"},{foreground:"82b1ff",token:"meta.link.inline.markdown punctuation.definition.string"},{foreground:"7fdbca",token:"punctuation.definition.metadata.markdown"},{foreground:"82b1ff",token:"beginning.punctuation.definition.list.markdown"}],colors:{"editor.foreground":"#d6deeb","editor.background":"#0b0510","editor.selectionBackground":"#5f7e9779","editor.lineHighlightBackground":"#010E17","editorCursor.foreground":"#80a4c2","editorWhitespace.foreground":"#2e2040","editorIndentGuide.background":"#5e81ce52","editor.selectionHighlightBorder":"#122d42"}};class mje{constructor(){t(this,"depth",0),t(this,"buf",[])}async print(e){return this.buf=[],this.printText("QueryPlan {"),e.trigger&&(this.depth++,await this.printFetchInfo(e.trigger),this.depth--),await this.printPlanNode(e,!0),this.printText("}"),this.buf.join("\n")}async printPlanNode(e,t){var n;switch(t&&this.depth++,e.kind){case"Single":case"Trigger":await this.printFetchInfo(e.fetch);break;case"Sequence":const t=((null==(n=e.children)?void 0:n.length)||0)>1;t&&this.printText("Sequence {");for(const n of e.children??[])await this.printPlanNode(n,t);t&&this.printText("}");break;case"Parallel":this.printText("Parallel {");for(const n of e.children??[])await this.printPlanNode(n,!0);this.printText("}")}t&&this.depth--}async printFetchInfo(e){var t;const n=null==(t=e.path)?void 0:t.includes(".");n&&(this.printText(`Flatten(path: "${e.path}") {`),this.depth++);let r="Fetch";if("Trigger"===e.kind&&(r=""),this.printText(`${e.kind}${r}(service: "${e.subgraphName}") {`),this.depth++,e.representations&&this.printRepresentations(e.representations),e.query){const t=sd.print(sd.parse(e.query)),n=await Mae(t,{parser:"graphql",plugins:[kne],printWidth:80,tabWidth:4,useTabs:!1});this.printQuery(n.trim())}this.depth--,this.printText("}"),n&&(this.depth--,this.printText("}"))}printQuery(e){const t=e.split("\n");t[0]="{",t[t.length-1]="}",this.printText(...t)}printRepresentations(e){this.printText("{"),this.depth++,e.forEach(e=>{const t=e.fragment.split("\n");this.printText(...t)}),this.depth--,this.printText("} =>")}printText(...e){e.forEach(e=>{this.buf.push(`${" ".repeat(this.depth)}${e}`)})}}const gje=e=>{const[t,n]=q.useState();return q.useEffect(()=>{const e=()=>{const e=document.body;if(e.classList.contains("graphiql-dark"))n("dark");else if(e.classList.contains("graphiql-light"))n("light");else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;n(e?"dark":"light")}e.classList.contains("graphiql-light")?document.documentElement.classList.remove("!dark"):document.documentElement.classList.add("!dark")};e();const t=new MutationObserver(e);return t.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]),e||t},yje=({queryPlan:e})=>{const[t,n]=q.useState([]),[r,i]=q.useState([]);q.useEffect(()=>{const t=[],r=[];t.push({id:"root",type:"fetch",data:{...e},position:{x:0,y:0}});const o=(e,n)=>{var i;null==(i=e.children)||i.forEach(e=>{const i=crypto.randomUUID();t.push({id:i,type:"fetch",data:{...e},position:{x:0,y:0},connectable:!1,deletable:!1}),r.push({id:`${i}-${n}`,source:n,target:i,animated:!0}),o(e,i)})};o(e,"root"),e.trigger&&(t.unshift({id:"trigger",type:"fetch",data:{kind:"Trigger",fetch:e.trigger},position:{x:0,y:0},connectable:!1,deletable:!1}),r.unshift({id:"trigger-root",source:"trigger",target:"root",animated:!0})),n(t),i(r)},[e]);const o=q.useMemo(()=>({fetch:Qce}),[]);return ee.jsx(iL,{children:ee.jsx(Xce,{initialNodes:t,initialEdges:r,nodeTypes:o,direction:"TB",nodeWidth:400,nodeHeight:100})})},vje=()=>{const{plan:e,planError:t,forcedTheme:n}=q.useContext(rpe),[r,i]=q.useState(null);q.useEffect(()=>{(async()=>{if(e){const t=new mje,n=await t.print(e);i(n)}})()},[e]);const[o,a]=q.useState("tree"),s=gje(n),l=uje();return q.useEffect(()=>{l&&("dark"===s?l.editor.setTheme("wg-dark"):l.editor.setTheme("light"))},[s,l]),t?ee.jsx(NL,{icon:ee.jsx(ad,{className:"h-12 w-12"}),title:"Error fetching plan",description:t}):e?ee.jsxs("div",{className:"relative flex h-full w-full flex-1 flex-col font-sans",children:[ee.jsx(bj,{defaultValue:"tree",className:"absolute bottom-3 right-4 z-30 w-max",onValueChange:e=>a(e),children:ee.jsxs(xj,{className:"grid w-full grid-cols-2 shadow-lg",children:[ee.jsx(Ej,{value:"tree",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[ee.jsx(nk,{}),"Tree View"]})}),ee.jsx(Ej,{value:"text",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[ee.jsx(od,{className:"h-4 w-4"}),"Text View"]})})]})}),"tree"===o&&ee.jsx(yje,{queryPlan:e}),"text"===o&&ee.jsx("div",{className:"scrollbar-custom h-full w-full overflow-auto rounded-xl",children:ee.jsx(fje,{theme:"dark"===s?"wg-dark":"light",className:"scrollbar-custom h-full",language:"customLang",value:r||"",options:{fontSize:14,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6},smoothScrolling:!0,padding:{top:21},minimap:{enabled:!1},readOnly:!0},beforeMount:e=>{e.editor.defineTheme("wg-dark",hje),"dark"===s&&e.editor.setTheme("wg-dark"),e.languages.register({id:"customLang"}),e.languages.setMonarchTokensProvider("customLang",{tokenizer:{root:[[/\b(\w+)(?=\s*\(service)/,"keyword"],[/\b(Flatten)(?=\s*\(path)/,"keyword"],[/\b(QueryPlan|Sequence|Parallel)(?=\s*{)/,"keyword"],[new RegExp("(?<=}\\s*\\n\\s*)(\\w+)"),"keyword"],[/(service|path)(\s*:\s*)("[^"]*")/,["identifier","","string.service"]],[/\$[a-zA-Z_]\w*/,"variable"]]}})}})})]}):ee.jsx(NL,{icon:ee.jsx(tk,{}),title:"No query plan found",description:"Include the below header before executing your queries. Router version 0.104.0 or above is required.",actions:ee.jsx(kM,{command:'"X-WG-Include-Query-Plan" : "true"'})})},bje=q.createContext({graphId:"",tabsState:{tabs:[],activeTabIndex:0},view:"response",setView:()=>{}});function xje(e,t,n){var r=this,i=q.useRef(null),o=q.useRef(0),a=q.useRef(null),s=q.useRef([]),l=q.useRef(),u=q.useRef(),c=q.useRef(e),p=q.useRef(!0);c.current=e;var d="undefined"!=typeof window,f=!t&&0!==t&&d;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,v=g?Math.max(+n.maxWait||0,t):null;q.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=q.useMemo(function(){var e=function(e){var t=s.current,n=l.current;return s.current=l.current=null,o.current=e,u.current=c.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(a.current),a.current=f?requestAnimationFrame(e):setTimeout(e,t)},b=function(e){if(!p.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-o.current>=v},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=l.current=null,u.current)},E=function e(){var r=Date.now();if(b(r))return x(r);if(p.current){var a=t-(r-i.current),s=g?Math.min(a,v-(r-o.current)):a;n(e,s)}},D=function(){if(d||y){var c=Date.now(),f=b(c);if(s.current=[].slice.call(arguments),l.current=r,i.current=c,f){if(!a.current&&p.current)return o.current=i.current,n(E,t),h?e(i.current):u.current;if(g)return n(E,t),e(i.current)}return a.current||n(E,t),u.current}};return D.cancel=function(){a.current&&(f?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=l.current=a.current=null},D.isPending=function(){return!!a.current},D.flush=function(){return a.current?x(Date.now()):u.current},D},[h,g,t,v,m,f,d,y]);return b}function Eje(e,t){return e===t}function Dje(e,t){return t}function wje(e,t,n){var r=Eje,i=q.useReducer(Dje,e),o=i[0],a=i[1],s=xje(q.useCallback(function(e){return a(e)},[a]),t,n),l=q.useRef(e);return r(l.current,e)||(s(e),l.current=e),[o,s]}const Tje="undefined"!=typeof window?q.useLayoutEffect:q.useEffect;function Cje(e){const t=q.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Tje(()=>{t.current=e},[e]),q.useCallback((...e)=>t.current(...e),[t])}function Sje(e,t,n,r){const i=q.useRef(t);Tje(()=>{i.current=t},[t]),q.useEffect(()=>{const t=window;if(!t||!t.addEventListener)return;const n=e=>i.current(e);return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}},[e,n,r])}const kje="undefined"==typeof window;function Aje(e,t,n={}){const{initializeWithValue:r=!0}=n,i=q.useCallback(e=>n.serializer?n.serializer(e):JSON.stringify(e),[n]),o=q.useCallback(e=>{if(n.deserializer)return n.deserializer(e);if("undefined"===e)return;const r=t instanceof Function?t():t;let i;try{i=JSON.parse(e)}catch(o){return console.error("Error parsing JSON:",o),r}return i},[n,t]),a=q.useCallback(()=>{const n=t instanceof Function?t():t;if(kje)return n;try{const t=window.localStorage.getItem(e);return t?o(t):n}catch(r){return console.warn(`Error reading localStorage key “${e}”:`,r),n}},[t,e,o]),[s,l]=q.useState(()=>r?a():t instanceof Function?t():t),u=Cje(t=>{kje&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const n=t instanceof Function?t(a()):t;window.localStorage.setItem(e,i(n)),l(n),window.dispatchEvent(new Event("local-storage"))}catch(n){console.warn(`Error setting localStorage key “${e}”:`,n)}}),c=Cje(()=>{kje&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const n=t instanceof Function?t():t;window.localStorage.removeItem(e),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))});q.useEffect(()=>{l(a())},[e]);const p=q.useCallback(t=>{t.key&&t.key!==e||l(a())},[e,a]);return Sje("storage",p),Sje("local-storage",p),[s,u,c]}const{createElement:Nje,createContext:Fje,forwardRef:_je,useCallback:Pje,useContext:Oje,useEffect:Ije,useImperativeHandle:Lje,useLayoutEffect:Mje,useMemo:jje,useRef:Rje,useState:Bje}=G,Vje=G["useId".toString()],Uje=Fje(null);Uje.displayName="PanelGroupContext";const zje=Mje,$je="function"==typeof Vje?Vje:()=>null;let qje=0;function Hje(e=null){const t=$je(),n=Rje(e||t||null);return null===n.current&&(n.current=""+qje++),null!=e?e:n.current}function Gje({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:u,onExpand:c,onResize:p,order:d,style:f,tagName:h="div",...m}){const g=Oje(Uje);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:v,getPanelSize:b,getPanelStyle:x,groupId:E,isPanelCollapsed:D,registerPanel:w,resizePanel:T,unregisterPanel:C}=g,S=Hje(a),k=Rje({callbacks:{onCollapse:u,onExpand:c,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:S,idIsFromProps:void 0!==a,order:d});Rje({didLogMissingDefaultSizeWarning:!1}),zje(()=>{const{callbacks:e,constraints:t}=k.current;k.current.id=S,k.current.idIsFromProps=void 0!==a,k.current.order=d,e.onCollapse=u,e.onExpand=c,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l}),zje(()=>{const e=k.current;return w(e),()=>{C(e)}},[d,S,w,C]),Lje(o,()=>({collapse:()=>{y(k.current)},expand:()=>{v(k.current)},getId:()=>S,getSize:()=>b(k.current),isCollapsed:()=>D(k.current),isExpanded:()=>!D(k.current),resize:e=>{T(k.current,e)}}),[y,v,b,D,S,T]);const A=x(k.current,i);return Nje(h,{...m,children:e,className:t,style:{...A,...f},"data-panel":"","data-panel-id":S,"data-panel-group-id":E,"data-panel-collapsible":void 0,"data-panel-size":void 0})}const Kje=_je((e,t)=>Nje(Gje,{...e,forwardedRef:t}));function Wje(e,t="Assertion failed!"){if(!e)throw console.error(t),Error(t)}Gje.displayName="Panel",Kje.displayName="forwardRef(Panel)";function Qje(e,t,n=10){const r=(e=parseFloat(e.toFixed(n)))-(t=parseFloat(t.toFixed(n)));return 0===r?0:r>0?1:-1}function Yje(e,t,n){return 0===Qje(e,t,n)}function Xje({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];Wje(null!=r);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;if(Qje(n,s)<0)if(o){n=Qje(n,(i+s)/2)<0?i:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function Jje({delta:e,layout:t,panelConstraints:n,pivotIndices:r,trigger:i}){if(Yje(e,0))return t;const o=[...t],[a,s]=r;Wje(null!=a),Wje(null!=s);let l=0;if("keyboard"===i){{const r=e<0?s:a,i=n[r];if(Wje(i),i.collapsible){const i=t[r];Wje(null!=i);const o=n[r];Wje(o);const{collapsedSize:a=0,minSize:s=0}=o;if(Yje(i,a)){const t=s-i;Qje(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?a:s,i=n[r];Wje(i);const{collapsible:o}=i;if(o){const i=t[r];Wje(null!=i);const o=n[r];Wje(o);const{collapsedSize:a=0,minSize:s=0}=o;if(Yje(i,s)){const t=i-a;Qje(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?s:a,o=0;for(;;){const e=t[i];Wje(null!=e);if(o+=Xje({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const l=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-l:l}{let r=e<0?a:s;for(;r>=0&&r=0))break;e<0?r--:r++}}if(Yje(l,0))return t;{const r=e<0?s:a,i=t[r];Wje(null!=i);const u=i+l,c=Xje({panelConstraints:n,panelIndex:r,size:u});if(o[r]=c,!Yje(c,u)){let t=u-c;let r=e<0?s:a;for(;r>=0&&r0?r--:r++}}}return Yje(o.reduce((e,t)=>t+e,0),100)?o:t}function Zje({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];Wje(null!=s),t.forEach((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,i=l):(o+=u,a+=l)});return{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function eRe(e){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function tRe(e,t){const n=eRe(e).findIndex(e=>e.getAttribute("data-panel-resize-handle-id")===t);return null!=n?n:null}function nRe(e,t){const n=tRe(e,t);return null!=n?[n,n+1]:[-1,-1]}function rRe(e){const t=document.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return t||null}function iRe(e){const t=document.querySelector(`[data-panel-resize-handle-id="${e}"]`);return t||null}function oRe({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,setLayout:o}){Rje({didWarnAboutMissingResizeHandle:!1}),zje(()=>{const e=eRe(n);for(let t=0;t{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,i]),Ije(()=>{const e=t.current;Wje(e);const{panelDataArray:i}=e;Wje(null!=rRe(n),`No group found for id "${n}"`);const a=eRe(n);Wje(a);const s=a.map(e=>{const t=e.getAttribute("data-panel-resize-handle-id");Wje(t);const[a,s]=function(e,t,n){var r,i,o,a;const s=iRe(t),l=eRe(e),u=s?l.indexOf(s):-1;return[null!==(r=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==r?r:null,null!==(o=null===(a=n[u+1])||void 0===a?void 0:a.id)&&void 0!==o?o:null]}(n,t,i);if(null==a||null==s)return()=>{};const l=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const s=i.findIndex(e=>e.id===a);if(s>=0){const e=i[s];Wje(e);const a=r[s],{collapsedSize:l=0,collapsible:u,minSize:c=0}=e.constraints;if(null!=a&&u){const e=Jje({delta:Yje(a,l)?c-l:l-a,layout:r,panelConstraints:i.map(e=>e.constraints),pivotIndices:nRe(n,t),trigger:"keyboard"});r!==e&&o(e)}}break}}};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}});return()=>{s.forEach(e=>e())}},[e,t,n,r,i,o])}function aRe(e,t){if(e.length!==t.length)return!1;for(let n=0;n{const i=e[r];Wje(i);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,c),u&&(e||r)&&(!r||null!=c&&c!==l||t===l||r(),!e||null!=c&&c===l||t!==l||e())}})}function fRe(e,t){if(e.length!==t.length)return!1;for(let n=0;nlocalStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bRe(e){return`react-resizable-panels:${e}`}function xRe(e){return e.map(e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ERe(e,t){try{const n=bRe(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(n){}return null}function DRe(e,t,n,r,i){var o;const a=bRe(e),s=xRe(t),l=null!==(o=ERe(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(u){console.error(u)}}function wRe({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Yje(r,100))for(let o=0;o(vRe(TRe),TRe.getItem(e)),setItem:(e,t)=>{vRe(TRe),TRe.setItem(e,t)}},CRe={};function SRe({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=TRe,style:u,tagName:c="div",...p}){const d=Hje(o),[f,h]=Bje(null),[m,g]=Bje([]),y=Rje({}),v=Rje(new Map),b=Rje(0),x=Rje({autoSaveId:e,direction:r,dragState:f,id:d,keyboardResizeBy:s,onLayout:a,storage:l}),E=Rje({layout:m,panelDataArray:[],panelDataArrayChanged:!1});Rje({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Lje(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current,i=wRe({layout:e,panelConstraints:r.map(e=>e.constraints)});aRe(n,i)||(g(i),E.current.layout=i,t&&t(i),dRe(r,i,y.current))}}),[]),zje(()=>{x.current.autoSaveId=e,x.current.direction=r,x.current.dragState=f,x.current.id=d,x.current.onLayout=a,x.current.storage=l}),oRe({committedValuesRef:x,eagerValuesRef:E,groupId:d,layout:m,panelDataArray:E.current.panelDataArray,setLayout:g}),Ije(()=>{const{panelDataArray:t}=E.current;if(e){if(0===m.length||m.length!==t.length)return;let n=CRe[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(DRe,100),CRe[e]=n);const r=[...t],i=new Map(v.current);n(e,r,i,m,l)}},[e,m,l]),Ije(()=>{});const D=Pje(e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=NRe(r,e,n);if(Wje(null!=a),a!==o){v.current.set(e.id,a);const l=Jje({delta:ARe(r,e)===r.length-1?a-o:o-a,layout:n,panelConstraints:i,pivotIndices:s,trigger:"imperative-api"});fRe(n,l)||(g(l),E.current.layout=l,t&&t(l),dRe(r,l,y.current))}}},[]),w=Pje(e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,minSize:s=0,pivotIndices:l}=NRe(r,e,n);if(a===o){const o=v.current.get(e.id),u=null!=o&&o>=s?o:s,c=Jje({delta:ARe(r,e)===r.length-1?a-u:u-a,layout:n,panelConstraints:i,pivotIndices:l,trigger:"imperative-api"});fRe(n,c)||(g(c),E.current.layout=c,t&&t(c),dRe(r,c,y.current))}}},[]),T=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=NRe(n,e,t);return Wje(null!=r),r},[]),C=Pje((e,t)=>{const{panelDataArray:n}=E.current,r=ARe(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e:"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:f,layout:m,panelData:n,panelIndex:r})},[f,m]),S=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=NRe(n,e,t);return!0===i&&o===r},[]),k=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=NRe(n,e,t);return Wje(null!=o),!i||o>r},[]),A=Pje(e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),E.current.panelDataArrayChanged=!0},[]);zje(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=x.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=ERe(e,n))&&void 0!==r?r:{})[xRe(t)])&&void 0!==i?i:null}(e,i,n);t&&(v.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map(e=>e.constraints);let r=0,i=100;for(let o=0;oe.constraints)});aRe(r,a)||(g(a),E.current.layout=a,t&&t(a),dRe(i,a,y.current))}});const N=Pje(e=>function(t){t.preventDefault();const{direction:n,dragState:r,id:i,keyboardResizeBy:o,onLayout:a}=x.current,{layout:s,panelDataArray:l}=E.current,{initialLayout:u}=null!=r?r:{},c=nRe(i,e);let p=pRe(t,e,n,r,o);if(0===p)return;const d="horizontal"===n;"rtl"===document.dir&&d&&(p=-p);const f=Jje({delta:p,layout:null!=u?u:s,panelConstraints:l.map(e=>e.constraints),pivotIndices:c,trigger:sRe(t)?"keyboard":"mouse-or-touch"}),h=!fRe(s,f);(lRe(t)||uRe(t))&&b.current!=p&&(b.current=p,yRe(h?d?"horizontal":"vertical":d?p<0?"horizontal-min":"horizontal-max":p<0?"vertical-min":"vertical-max")),h&&(g(f),E.current.layout=f,a&&a(f),dRe(l,f,y.current))},[]),F=Pje((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current,o=i.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=NRe(i,e,r);Wje(null!=a);const l=Jje({delta:ARe(i,e)===i.length-1?a-t:t-a,layout:r,panelConstraints:o,pivotIndices:s,trigger:"imperative-api"});fRe(r,l)||(g(l),E.current.layout=l,n&&n(l),dRe(i,l,y.current))},[]),_=Pje((e,t)=>{const{direction:n}=x.current,{layout:r}=E.current,i=iRe(e);Wje(i);const o=cRe(n,t);h({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),P=Pje(()=>{null!==mRe&&(document.head.removeChild(mRe),hRe=null,mRe=null),h(null)},[]),O=Pje(e=>{const{panelDataArray:t}=E.current,n=ARe(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)},[]),I=jje(()=>({collapsePanel:D,direction:r,dragState:f,expandPanel:w,getPanelSize:T,getPanelStyle:C,groupId:d,isPanelCollapsed:S,isPanelExpanded:k,registerPanel:A,registerResizeHandle:N,resizePanel:F,startDragging:_,stopDragging:P,unregisterPanel:O}),[D,f,r,w,T,C,d,S,k,A,N,F,_,P,O]),L={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Nje(Uje.Provider,{value:I},Nje(c,{...p,children:t,className:n,style:{...L,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":d}))}const kRe=_je((e,t)=>Nje(SRe,{...e,forwardedRef:t}));function ARe(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function NRe(e,t,n){const r=e.map(e=>e.constraints),i=ARe(e,t),o=r[i],a=i===e.length-1?[i-1,i]:[i,i+1];return{...o,panelSize:n[i],pivotIndices:a}}function FRe({children:e=null,className:t="",disabled:n=!1,id:r,onDragging:i,style:o={},tabIndex:a=0,tagName:s="div",...l}){const u=Rje(null),c=Rje({onDragging:i});Ije(()=>{c.current.onDragging=i});const p=Oje(Uje);if(null===p)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:d,dragState:f,groupId:h,registerResizeHandle:m,startDragging:g,stopDragging:y}=p,v=Hje(r),b=(null==f?void 0:f.dragHandleId)===v,[x,E]=Bje(!1),[D,w]=Bje(null),T=Pje(()=>{const e=u.current;Wje(e),e.blur(),y();const{onDragging:t}=c.current;t&&t(!1)},[y]);Ije(()=>{if(n)w(null);else{const e=m(v);w(()=>e)}},[n,v,m]),Ije(()=>{if(n||null==D||!b)return;const e=e=>{D(e)},t=e=>{D(e)},r=u.current;Wje(r);const i=r.ownerDocument;return i.body.addEventListener("contextmenu",T),i.body.addEventListener("mousemove",e),i.body.addEventListener("touchmove",e),i.body.addEventListener("mouseleave",t),window.addEventListener("mouseup",T),window.addEventListener("touchend",T),()=>{i.body.removeEventListener("contextmenu",T),i.body.removeEventListener("mousemove",e),i.body.removeEventListener("touchmove",e),i.body.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",T),window.removeEventListener("touchend",T)}},[d,n,b,D,T]),function({disabled:e,handleId:t,resizeHandler:n}){Ije(()=>{if(e||null==n)return;const r=iRe(t);if(null==r)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=r.getAttribute("data-panel-group-id");Wje(n);const i=eRe(n),o=tRe(n,t);Wje(null!==o),i[e.shiftKey?o>0?o-1:i.length-1:o+1{r.removeEventListener("keydown",i)}},[e,t,n])}({disabled:n,handleId:v,resizeHandler:D});const C={cursor:gRe(d),touchAction:"none",userSelect:"none"};return Nje(s,{...l,children:e,className:t,onBlur:()=>E(!1),onFocus:()=>E(!0),onMouseDown:e=>{g(v,e.nativeEvent);const t=c.current;Wje(t);const{onDragging:n}=t;n&&n(!0)},onMouseUp:T,onTouchCancel:T,onTouchEnd:T,onTouchStart:e=>{g(v,e.nativeEvent);const t=c.current;Wje(t);const{onDragging:n}=t;n&&n(!0)},ref:u,role:"separator",style:{...C,...o},tabIndex:a,"data-panel-group-direction":d,"data-panel-group-id":h,"data-resize-handle":"","data-resize-handle-active":b?"pointer":x?"keyboard":void 0,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":v})}SRe.displayName="PanelGroup",kRe.displayName="forwardRef(PanelGroup)",FRe.displayName="PanelResizeHandle";const _Re=({className:e,...t})=>ee.jsx(kRe,{className:ed("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),PRe=Kje,ORe=({withHandle:e,className:t,...n})=>ee.jsx(FRe,{className:ed("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&ee.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:ee.jsx(QL,{className:"h-2.5 w-2.5"})})});var IRe={exports:{}},LRe={exports:{}};const MRe=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var jRe;function RRe(){return jRe||(jRe=1,LRe.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r&&r.crypto&&(n=r.crypto),!n)try{n=MRe}catch($qe){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch($qe){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch($qe){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},f=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(c2){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*l,o);if(l){for(var p=0;p>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),$Re.exports;var e}var HRe,GRe={exports:{}};function KRe(){return HRe||(HRe=1,GRe.exports=(e=RRe(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16)),GRe.exports;var e}var WRe,QRe={exports:{}};function YRe(){return WRe||(WRe=1,QRe.exports=(e=RRe(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l>>6*(3-l)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],x=e[t+9],E=e[t+10],D=e[t+11],w=e[t+12],T=e[t+13],C=e[t+14],S=e[t+15],k=o[0],A=o[1],N=o[2],F=o[3];k=u(k,A,N,F,a,7,s[0]),F=u(F,k,A,N,l,12,s[1]),N=u(N,F,k,A,f,17,s[2]),A=u(A,N,F,k,h,22,s[3]),k=u(k,A,N,F,m,7,s[4]),F=u(F,k,A,N,g,12,s[5]),N=u(N,F,k,A,y,17,s[6]),A=u(A,N,F,k,v,22,s[7]),k=u(k,A,N,F,b,7,s[8]),F=u(F,k,A,N,x,12,s[9]),N=u(N,F,k,A,E,17,s[10]),A=u(A,N,F,k,D,22,s[11]),k=u(k,A,N,F,w,7,s[12]),F=u(F,k,A,N,T,12,s[13]),N=u(N,F,k,A,C,17,s[14]),k=c(k,A=u(A,N,F,k,S,22,s[15]),N,F,l,5,s[16]),F=c(F,k,A,N,y,9,s[17]),N=c(N,F,k,A,D,14,s[18]),A=c(A,N,F,k,a,20,s[19]),k=c(k,A,N,F,g,5,s[20]),F=c(F,k,A,N,E,9,s[21]),N=c(N,F,k,A,S,14,s[22]),A=c(A,N,F,k,m,20,s[23]),k=c(k,A,N,F,x,5,s[24]),F=c(F,k,A,N,C,9,s[25]),N=c(N,F,k,A,h,14,s[26]),A=c(A,N,F,k,b,20,s[27]),k=c(k,A,N,F,T,5,s[28]),F=c(F,k,A,N,f,9,s[29]),N=c(N,F,k,A,v,14,s[30]),k=p(k,A=c(A,N,F,k,w,20,s[31]),N,F,g,4,s[32]),F=p(F,k,A,N,b,11,s[33]),N=p(N,F,k,A,D,16,s[34]),A=p(A,N,F,k,C,23,s[35]),k=p(k,A,N,F,l,4,s[36]),F=p(F,k,A,N,m,11,s[37]),N=p(N,F,k,A,v,16,s[38]),A=p(A,N,F,k,E,23,s[39]),k=p(k,A,N,F,T,4,s[40]),F=p(F,k,A,N,a,11,s[41]),N=p(N,F,k,A,h,16,s[42]),A=p(A,N,F,k,y,23,s[43]),k=p(k,A,N,F,x,4,s[44]),F=p(F,k,A,N,w,11,s[45]),N=p(N,F,k,A,S,16,s[46]),k=d(k,A=p(A,N,F,k,f,23,s[47]),N,F,a,6,s[48]),F=d(F,k,A,N,v,10,s[49]),N=d(N,F,k,A,C,15,s[50]),A=d(A,N,F,k,g,21,s[51]),k=d(k,A,N,F,w,6,s[52]),F=d(F,k,A,N,h,10,s[53]),N=d(N,F,k,A,E,15,s[54]),A=d(A,N,F,k,l,21,s[55]),k=d(k,A,N,F,b,6,s[56]),F=d(F,k,A,N,S,10,s[57]),N=d(N,F,k,A,y,15,s[58]),A=d(A,N,F,k,T,21,s[59]),k=d(k,A,N,F,m,6,s[60]),F=d(F,k,A,N,D,10,s[61]),N=d(N,F,k,A,f,15,s[62]),A=d(A,N,F,k,x,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+A|0,o[2]=o[2]+N|0,o[3]=o[3]+F|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function p(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5)),tBe.exports;var e}var rBe,iBe={exports:{}};function oBe(){return rBe||(rBe=1,iBe.exports=(s=RRe(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,i=e.algo,o=[],a=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|e[t+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var p=(r<<5|r>>>27)+l+o[u];p+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a),s.SHA1)),iBe.exports;var e,t,n,r,i,o,a,s}var aBe,sBe={exports:{}};function lBe(){return aBe||(aBe=1,sBe.exports=(e=RRe(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],p=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var h=u[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[f-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=m+u[f-7]+y+u[f-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&p)+l[f]+u[f];d=p,p=c,c=s,s=a+x|0,a=o,o=i,i=r,r=x+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(c),n.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256)),sBe.exports;var e}var uBe,cBe={exports:{}};var pBe,dBe={exports:{}};function fBe(){return pBe||(pBe=1,dBe.exports=(e=RRe(),URe(),function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],p=n[6],d=n[7],f=r.high,h=r.low,m=i.high,g=i.low,y=o.high,v=o.low,b=a.high,x=a.low,E=s.high,D=s.low,w=c.high,T=c.low,C=p.high,S=p.low,k=d.high,A=d.low,N=f,F=h,_=m,P=g,O=y,I=v,L=b,M=x,j=E,R=D,B=w,V=T,U=C,z=S,$=k,q=A,H=0;H<80;H++){var G,K,W=u[H];if(H<16)K=W.high=0|e[t+2*H],G=W.low=0|e[t+2*H+1];else{var Q=u[H-15],Y=Q.high,X=Q.low,J=(Y>>>1|X<<31)^(Y>>>8|X<<24)^Y>>>7,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^(X>>>7|Y<<25),ee=u[H-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=u[H-7],ae=oe.high,se=oe.low,le=u[H-16],ue=le.high,ce=le.low;K=(K=(K=J+ae+((G=Z+se)>>>0>>0?1:0))+re+((G+=ie)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=K,W.low=G}var pe,de=j&B^~j&U,fe=R&V^~R&z,he=N&_^N&O^_&O,me=F&P^F&I^P&I,ge=(N>>>28|F<<4)^(N<<30|F>>>2)^(N<<25|F>>>7),ye=(F>>>28|N<<4)^(F<<30|N>>>2)^(F<<25|N>>>7),ve=(j>>>14|R<<18)^(j>>>18|R<<14)^(j<<23|R>>>9),be=(R>>>14|j<<18)^(R>>>18|j<<14)^(R<<23|j>>>9),xe=l[H],Ee=xe.high,De=xe.low,we=$+ve+((pe=q+be)>>>0>>0?1:0),Te=ye+me;$=U,q=z,U=B,z=V,B=j,V=R,j=L+(we=(we=(we=we+de+((pe+=fe)>>>0>>0?1:0))+Ee+((pe+=De)>>>0>>0?1:0))+K+((pe+=G)>>>0>>0?1:0))+((R=M+pe|0)>>>0>>0?1:0)|0,L=O,M=I,O=_,I=P,_=N,P=F,N=we+(ge+he+(Te>>>0>>0?1:0))+((F=pe+Te|0)>>>0>>0?1:0)|0}h=r.low=h+F,r.high=f+N+(h>>>0>>0?1:0),g=i.low=g+P,i.high=m+_+(g>>>0

>>0?1:0),v=o.low=v+I,o.high=y+O+(v>>>0>>0?1:0),x=a.low=x+M,a.high=b+L+(x>>>0>>0?1:0),D=s.low=D+R,s.high=E+j+(D>>>0>>0?1:0),T=c.low=T+V,c.high=w+B+(T>>>0>>0?1:0),S=p.low=S+z,p.high=C+U+(S>>>0>>0?1:0),A=d.low=A+q,d.high=k+$+(A>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(c),t.HmacSHA512=n._createHmacHelper(c)}(),e.SHA512)),dBe.exports;var e}var hBe,mBe={exports:{}};var gBe,yBe={exports:{}};function vBe(){return gBe||(gBe=1,yBe.exports=(e=RRe(),URe(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64.Word,s=n.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,p=0,d=0;d<7;d++){if(1&i){var f=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(A=n[i]).high^=a,A.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,h=0,m=0;m<5;m++)f^=(A=n[d+5*m]).high,h^=A.low;var g=p[d];g.high=f,g.low=h}for(d=0;d<5;d++){var y=p[(d+4)%5],v=p[(d+1)%5],b=v.high,x=v.low;for(f=y.high^(b<<1|x>>>31),h=y.low^(x<<1|b>>>31),m=0;m<5;m++)(A=n[d+5*m]).high^=f,A.low^=h}for(var E=1;E<25;E++){var D=(A=n[E]).high,w=A.low,T=l[E];T<32?(f=D<>>32-T,h=w<>>32-T):(f=w<>>64-T,h=D<>>64-T);var C=p[u[E]];C.high=f,C.low=h}var S=p[0],k=n[0];for(S.high=k.high,S.low=k.low,d=0;d<5;d++)for(m=0;m<5;m++){var A=n[E=d+5*m],N=p[E],F=p[(d+1)%5+5*m],_=p[(d+2)%5+5*m];A.high=N.high^~F.high&_.high,A.low=N.low^~F.low&_.low}A=n[0];var P=c[s];A.high^=P.high,A.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(d)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(d),n.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3)),yBe.exports;var e}var bBe,xBe={exports:{}};var EBe,DBe={exports:{}};function wBe(){return EBe||(EBe=1,DBe.exports=(e=RRe(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,u=0;u>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:f,padding:h}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=u.create({keySize:t+n,hasher:i}).compute(e,r);else var a=u.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()))),FBe.exports;var e}var PBe,OBe={exports:{}};var IBe,LBe={exports:{}};var MBe,jBe={exports:{}};function RBe(){return MBe||(MBe=1,jBe.exports=(e=RRe(),_Be(), +const{deleteProperty:Tme}=Reflect,Cme=function(e){return"object"==typeof e?null===e:"function"!=typeof e},Sme=function(e){var t,n;return!1!==wme(e)&&("function"==typeof(t=e.constructor)&&(!1!==wme(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))},kme=e=>"object"==typeof e&&null!==e||"function"==typeof e,Ame=e=>{if(!Cme(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Nme=(e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);Ame(r);const i=Pme.cache.get(r)||n();return Pme.cache.set(r,i),i},Fme=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:Nme(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s{if(Ame(t),void 0===n)Tme(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Sme(e[t])&&Sme(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},Pme=(e,t,n,r)=>{if(!t||!kme(e))return e;const i=Fme(t,r);let o=e;for(let a=0;a{Pme.cache=new Map};const Ome=i(Pme),Ime="dismissableLayer.update",Lme="dismissableLayer.pointerDownOutside",Mme="dismissableLayer.focusOutside";let jme;const Rme=q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bme=q.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=q.useContext(Rme),[p,d]=q.useState(null),f=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=q.useState({}),m=hM(t,e=>d(e)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=p?g.indexOf(p):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=v,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=BM(e),r=q.useRef(!1),i=q.useRef(()=>{});return q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ume(Lme,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));E&&!n&&(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())},f),w=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=BM(e),r=q.useRef(!1);return q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Ume(Mme,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())},f);return wj(e=>{b===c.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),q.useEffect(()=>{if(p)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(jme=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Vme(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=jme)}},[p,f,r,c]),q.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Vme())},[p,c]),q.useEffect(()=>{const e=()=>h({});return document.addEventListener(Ime,e),()=>document.removeEventListener(Ime,e)},[]),q.createElement(jM.div,dM({},u,{ref:m,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:NM(e.onFocusCapture,w.onFocusCapture),onBlurCapture:NM(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:NM(e.onPointerDownCapture,D.onPointerDownCapture)}))});function Vme(){const e=new CustomEvent(Ime);document.dispatchEvent(e)}function Ume(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?RM(i,o):i.dispatchEvent(o)}const zme="focusScope.autoFocusOnMount",$me="focusScope.autoFocusOnUnmount",qme={bubbles:!1,cancelable:!0},Hme=q.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=q.useState(null),u=BM(i),c=BM(o),p=q.useRef(null),d=hM(t,e=>l(e)),f=q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;q.useEffect(()=>{if(r){let e=function(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?p.current=t:Qme(p.current,{select:!0})},t=function(e){if(f.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Qme(p.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=s&&s.contains(t)||Qme(s))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,f.paused]),q.useEffect(()=>{if(s){Yme.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(zme,qme);s.addEventListener(zme,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qme(r,{select:t}),document.activeElement!==n)return}((e=Gme(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Qme(s))}return()=>{s.removeEventListener(zme,u),setTimeout(()=>{const e=new CustomEvent($me,qme);s.addEventListener($me,c),s.dispatchEvent(e),e.defaultPrevented||Qme(null!=t?t:document.body,{select:!0}),s.removeEventListener($me,c),Yme.remove(f)},0)}}var e},[s,u,c,f]);const h=q.useCallback(e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=Gme(e),n=Kme(t,e),r=Kme(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&Qme(o,{select:!0})):(e.preventDefault(),n&&Qme(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,f.paused]);return q.createElement(jM.div,dM({tabIndex:-1},a,{ref:d,onKeyDown:h}))});function Gme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kme(e,t){for(const n of e)if(!Wme(n,{upTo:t}))return n}function Wme(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Qme(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Yme=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Xme(e,t),e.unshift(t)},remove(t){var n;e=Xme(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Xme(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Jme(e){const[t,n]=q.useState(void 0);return OM(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}const Zme="Popper",[ege,tge]=FM(Zme),[nge,rge]=ege(Zme),ige=q.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=rge("PopperAnchor",n),a=q.useRef(null),s=hM(t,a);return q.useEffect(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:q.createElement(jM.div,dM({},i,{ref:s}))}),oge="PopperContent",[age,sge]=ege(oge),lge=q.forwardRef((e,t)=>{var n,r,i,o,a,s,l,u;const{__scopePopper:c,side:p="bottom",sideOffset:d=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,onPlaced:E,...D}=e,w=rge(oge,c),[T,C]=q.useState(null),S=hM(t,e=>C(e)),[k,A]=q.useState(null),N=Jme(k),F=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,_=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,P=p+("center"!==f?"-"+f:""),O="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],L=I.length>0,M={padding:O,boundary:I.filter(uge),altBoundary:L},{refs:j,floatingStyles:R,placement:B,isPositioned:V,middlewareData:U}=Nue({strategy:"fixed",placement:P,whileElementsMounted:Eue,elements:{reference:w.anchor},middleware:[Lle({mainAxis:d+_,alignmentAxis:h}),x&&jle({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?Rle():void 0,...M}),x&&_le({...M}),Ble({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),k&&wue({element:k,padding:m}),cge({arrowWidth:F,arrowHeight:_}),b&&Ile({strategy:"referenceHidden"})]}),[z,$]=pge(B),H=BM(E);OM(()=>{V&&(null==H||H())},[V,H]);const G=null===(i=U.arrow)||void 0===i?void 0:i.x,K=null===(o=U.arrow)||void 0===o?void 0:o.y,W=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Q,Y]=q.useState();return OM(()=>{T&&Y(window.getComputedStyle(T).zIndex)},[T]),q.createElement("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:V?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},q.createElement(age,{scope:c,placedSide:z,onArrowChange:A,arrowX:G,arrowY:K,shouldHideArrow:W},q.createElement(jM.div,dM({"data-side":z,"data-align":$},D,{ref:S,style:{...D.style,animation:V?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))});function uge(e){return null!==e}const cge=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),p=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[f,h]=pge(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+p/2,y=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===f?(v=c?m:`${g}px`,b=-d+"px"):"top"===f?(v=c?m:`${g}px`,b=`${l.floating.height+d}px`):"right"===f?(v=-d+"px",b=c?m:`${y}px`):"left"===f&&(v=`${l.floating.width+d}px`,b=c?m:`${y}px`),{data:{x:v,y:b}}}});function pge(e){const[t,n="center"]=e.split("-");return[t,n]}const dge=e=>{const{__scopePopper:t,children:n}=e,[r,i]=q.useState(null);return q.createElement(nge,{scope:t,anchor:r,onAnchorChange:i},n)},fge=ige,hge=lge,mge=q.forwardRef((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?up.createPortal(q.createElement(jM.div,dM({},i,{ref:t})),r):null}),gge=["Enter"," "],yge=["ArrowUp","PageDown","End"],vge=["ArrowDown","PageUp","Home",...yge],bge="Menu",[xge,Ege,Dge]=PM(bge),[wge,Tge]=FM(bge,[Dge,tge,YM]),Cge=tge(),Sge=YM(),[kge,Age]=wge(bge),[Nge,Fge]=wge(bge),_ge=q.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cge(n);return q.createElement(fge,dM({},i,r,{ref:t}))}),Pge="MenuPortal",[Oge,Ige]=wge(Pge,{forceMount:void 0}),Lge="MenuContent",[Mge,jge]=wge(Lge),Rge=q.forwardRef((e,t)=>{const n=Ige(Lge,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Age(Lge,e.__scopeMenu),a=Fge(Lge,e.__scopeMenu);return q.createElement(xge.Provider,{scope:e.__scopeMenu},q.createElement(aj,{present:r||o.open},q.createElement(xge.Slot,{scope:e.__scopeMenu},a.modal?q.createElement(Bge,dM({},i,{ref:t})):q.createElement(Vge,dM({},i,{ref:t})))))}),Bge=q.forwardRef((e,t)=>{const n=Age(Lge,e.__scopeMenu),r=q.useRef(null),i=hM(t,r);return q.useEffect(()=>{const e=r.current;if(e)return zR(e)},[]),q.createElement(Uge,dM({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:NM(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Vge=q.forwardRef((e,t)=>{const n=Age(Lge,e.__scopeMenu);return q.createElement(Uge,dM({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Uge=q.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...m}=e,g=Age(Lge,n),y=Fge(Lge,n),v=Cge(n),b=Sge(n),x=Ege(n),[E,D]=q.useState(null),w=q.useRef(null),T=hM(t,w,g.onContentChange),C=q.useRef(0),S=q.useRef(""),k=q.useRef(0),A=q.useRef(null),N=q.useRef("right"),F=q.useRef(0),_=h?LR:q.Fragment,P=h?{as:mM,allowPinchZoom:!0}:void 0,O=e=>{var t,n;const r=S.current+e,i=x().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,o=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(o,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===i.length&&(a=a.filter(e=>e!==n));const u=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};q.useEffect(()=>()=>window.clearTimeout(C.current),[]),qj();const I=q.useCallback(e=>{var t,n;return N.current===(null===(t=A.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;or!=u>r&&n<(l-e)*(r-s)/(u-s)+e&&(i=!i)}return i}(n,t)}(e,null===(n=A.current)||void 0===n?void 0:n.area)},[]);return q.createElement(Mge,{scope:n,searchRef:S,onItemEnter:q.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:q.useCallback(e=>{var t;I(e)||(null===(t=w.current)||void 0===t||t.focus(),D(null))},[I]),onTriggerLeave:q.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:k,onPointerGraceIntentChange:q.useCallback(e=>{A.current=e},[])},q.createElement(_,P,q.createElement(Hme,{asChild:!0,trapped:i,onMountAutoFocus:NM(o,e=>{var t;e.preventDefault(),null===(t=w.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},q.createElement(Bme,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:d,onDismiss:f},q.createElement(ij,dM({asChild:!0},b,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:NM(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()})}),q.createElement(hge,dM({role:"menu","aria-orientation":"vertical","data-state":(L=g.open,L?"open":"closed"),"data-radix-menu-content":"",dir:y.dir},v,m,{ref:T,style:{outline:"none",...m.style},onKeyDown:NM(m.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&O(e.key));const i=w.current;if(e.target!==i)return;if(!vge.includes(e.key))return;e.preventDefault();const o=x().filter(e=>!e.disabled).map(e=>e.ref.current);yge.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)}),onBlur:NM(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),S.current="")}),onPointerMove:NM(e.onPointerMove,Jge(e=>{const t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>F.current?"right":"left";N.current=t,F.current=e.clientX}}))})))))));var L}),zge="MenuItem",$ge="menu.itemSelect",qge=q.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=q.useRef(null),a=Fge(zge,e.__scopeMenu),s=jge(zge,e.__scopeMenu),l=hM(t,o),u=q.useRef(!1);return q.createElement(Hge,dM({},i,{ref:l,disabled:n,onClick:NM(e.onClick,()=>{const e=o.current;if(!n&&e){const t=new CustomEvent($ge,{bubbles:!0,cancelable:!0});e.addEventListener($ge,e=>null==r?void 0:r(e),{once:!0}),RM(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:NM(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:NM(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||gge.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),Hge=q.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=jge(zge,n),s=Sge(n),l=q.useRef(null),u=hM(t,l),[c,p]=q.useState(!1),[d,f]=q.useState("");return q.useEffect(()=>{const e=l.current;var t;e&&f((null!==(t=e.textContent)&&void 0!==t?t:"").trim())},[o.children]),q.createElement(xge.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:d},q.createElement(oj,dM({asChild:!0},s,{focusable:!r}),q.createElement(jM.div,dM({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:NM(e.onPointerMove,Jge(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}})),onPointerLeave:NM(e.onPointerLeave,Jge(e=>a.onItemLeave(e))),onFocus:NM(e.onFocus,()=>p(!0)),onBlur:NM(e.onBlur,()=>p(!1))}))))}),[Gge,Kge]=wge("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),[Wge,Qge]=wge("MenuItemIndicator",{checked:!1}),[Yge,Xge]=wge("MenuSub");function Jge(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Zge=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=Cge(t),[l,u]=q.useState(null),c=q.useRef(!1),p=BM(o),d=zM(i);return q.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),q.createElement(dge,s,q.createElement(kge,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u},q.createElement(Nge,{scope:t,onClose:q.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:c,dir:d,modal:a},r)))},eye=_ge,tye=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=Age(Pge,t);return q.createElement(Oge,{scope:t,forceMount:n},q.createElement(aj,{present:n||o.open},q.createElement(mge,{asChild:!0,container:i},r)))},nye=Rge,rye=qge,iye="DropdownMenu",[oye]=FM(iye,[Tge]),aye=Tge(),[sye,lye]=oye(iye),uye=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=aye(t),u=q.useRef(null),[c=!1,p]=VM({prop:i,defaultProp:o,onChange:a});return q.createElement(sye,{scope:t,triggerId:MM(),triggerRef:u,contentId:MM(),open:c,onOpenChange:p,onOpenToggle:q.useCallback(()=>p(e=>!e),[p]),modal:s},q.createElement(Zge,dM({},l,{open:c,onOpenChange:p,dir:r,modal:s}),n))},cye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=lye("DropdownMenuTrigger",n),a=aye(n);return q.createElement(eye,dM({asChild:!0},a),q.createElement(jM.button,dM({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:fM(t,o.triggerRef),onPointerDown:NM(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:NM(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),pye=e=>{const{__scopeDropdownMenu:t,...n}=e,r=aye(t);return q.createElement(tye,dM({},r,n))},dye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lye("DropdownMenuContent",n),o=aye(n),a=q.useRef(!1);return q.createElement(nye,dM({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:NM(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:NM(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),fye=q.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=aye(n);return q.createElement(rye,dM({},i,r,{ref:t}))}),hye={};function mye(e,t){"string"!=typeof t&&(t=mye.defaultChars);const n=function(e){let t=hye[e];if(t)return t;t=hye[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);t.push(e)}for(let n=0;n=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+91114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}mye.defaultChars=";/?:@&=+$,#",mye.componentChars="";const gye={};function yye(e,t,n){"string"!=typeof t&&(n=t,t=yye.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=gye[e];if(t)return t;t=gye[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);/^[0-9a-z]$/i.test(e)?t.push(e):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&t<=57343){if(t>=55296&&t<=56319&&o+1=56320&&t<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}function vye(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bye(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}yye.defaultChars=";/?:@&=+$,-_.!~*'()#",yye.componentChars="-_.!~*'()";const xye=/^([a-z0-9.+-]+:)/i,Eye=/:[0-9]*$/,Dye=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wye=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Tye=["'"].concat(wye),Cye=["%","/","?",";","#"].concat(Tye),Sye=["/","?","#"],kye=/^[+a-z0-9A-Z_-]{0,63}$/,Aye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Nye={javascript:!0,"javascript:":!0},Fye={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _ye(e,t){if(e&&e instanceof bye)return e;const n=new bye;return n.parse(e,t),n}bye.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=Dye.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=xye.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&Nye[a]||(o=o.substr(2),this.slashes=!0)),!Nye[a]&&(i||a&&!Fye[a])){let e,t,n=-1;for(let s=0;s127?r+="x":r+=n[e];if(!r.match(kye)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(Aye);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Fye[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bye.prototype.parseHost=function(e){let t=Eye.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Pye=Object.freeze(Object.defineProperty({__proto__:null,decode:mye,encode:yye,format:vye,parse:_ye},Symbol.toStringTag,{value:"Module"})),Oye=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Iye=/[\0-\x1F\x7F-\x9F]/,Lye=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Mye=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jye=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Rye=Object.freeze(Object.defineProperty({__proto__:null,Any:Oye,Cc:Iye,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:Lye,S:Mye,Z:jye},Symbol.toStringTag,{value:"Module"})),Bye=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Vye=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Uye;const zye=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$ye=null!==(Uye=String.fromCodePoint)&&void 0!==Uye?Uye:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var qye,Hye;(Hye=qye||(qye={}))[Hye.NUM=35]="NUM",Hye[Hye.SEMI=59]="SEMI",Hye[Hye.EQUALS=61]="EQUALS",Hye[Hye.ZERO=48]="ZERO",Hye[Hye.NINE=57]="NINE",Hye[Hye.LOWER_A=97]="LOWER_A",Hye[Hye.LOWER_F=102]="LOWER_F",Hye[Hye.LOWER_X=120]="LOWER_X",Hye[Hye.LOWER_Z=122]="LOWER_Z",Hye[Hye.UPPER_A=65]="UPPER_A",Hye[Hye.UPPER_F=70]="UPPER_F",Hye[Hye.UPPER_Z=90]="UPPER_Z";var Gye,Kye,Wye,Qye,Yye,Xye;function Jye(e){return e>=qye.ZERO&&e<=qye.NINE}function Zye(e){return e>=qye.UPPER_A&&e<=qye.UPPER_F||e>=qye.LOWER_A&&e<=qye.LOWER_F}function eve(e){return e===qye.EQUALS||function(e){return e>=qye.UPPER_A&&e<=qye.UPPER_Z||e>=qye.LOWER_A&&e<=qye.LOWER_Z||Jye(e)}(e)}(Kye=Gye||(Gye={}))[Kye.VALUE_LENGTH=49152]="VALUE_LENGTH",Kye[Kye.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Kye[Kye.JUMP_TABLE=127]="JUMP_TABLE",(Qye=Wye||(Wye={}))[Qye.EntityStart=0]="EntityStart",Qye[Qye.NumericStart=1]="NumericStart",Qye[Qye.NumericDecimal=2]="NumericDecimal",Qye[Qye.NumericHex=3]="NumericHex",Qye[Qye.NamedEntity=4]="NamedEntity",(Xye=Yye||(Yye={}))[Xye.Legacy=0]="Legacy",Xye[Xye.Strict=1]="Strict",Xye[Xye.Attribute=2]="Attribute";class tve{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Wye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yye.Strict}startEntity(e){this.decodeMode=e,this.state=Wye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Wye.EntityStart:return e.charCodeAt(t)===qye.NUM?(this.state=Wye.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Wye.NamedEntity,this.stateNamedEntity(e,t));case Wye.NumericStart:return this.stateNumericStart(e,t);case Wye.NumericDecimal:return this.stateNumericDecimal(e,t);case Wye.NumericHex:return this.stateNumericHex(e,t);case Wye.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===qye.LOWER_X?(this.state=Wye.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Wye.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=zye.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==qye.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&Gye.VALUE_LENGTH)>>14;for(;t>14,0!==i){if(o===qye.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Yye.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&Gye.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~Gye.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Wye.NamedEntity:return 0===this.result||this.decodeMode===Yye.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Wye.NumericDecimal:return this.emitNumericEntity(0,2);case Wye.NumericHex:return this.emitNumericEntity(0,3);case Wye.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wye.EntityStart:return 0}}}function nve(e){let t="";const n=new tve(e,e=>t+=$ye(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function rve(e,t,n,r){const i=(t&Gye.BRANCH_LENGTH)>>7,o=t&Gye.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(nr))return e[t+i];s=t-1}}return-1}const ive=nve(Bye);function ove(e,t=Yye.Legacy){return ive(e,t)}function ave(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}nve(Vye);const sve=Object.prototype.hasOwnProperty;function lve(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function uve(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function cve(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function pve(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const dve=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,fve=new RegExp(dve.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),hve=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function mve(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(fve,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&hve.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return cve(n)?pve(n):e}const n=ove(e);return n!==e?n:e}(e,n)})}const gve=/[&<>"]/,yve=/[&<>"]/g,vve={"&":"&","<":"<",">":">",'"':"""};function bve(e){return vve[e]}function xve(e){return gve.test(e)?e.replace(yve,bve):e}const Eve=/[.?*+^$[\]\\(){}|-]/g;function Dve(e){switch(e){case 9:case 32:return!0}return!1}function wve(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Tve(e){return Lye.test(e)||Mye.test(e)}function Cve(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Sve(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const kve={mdurl:Pye,ucmicro:Rye},Ave=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:uve,assign:lve,escapeHtml:xve,escapeRE:function(e){return e.replace(Eve,"\\$&")},fromCodePoint:pve,has:function(e,t){return sve.call(e,t)},isMdAsciiPunct:Cve,isPunctChar:Tve,isSpace:Dve,isString:ave,isValidEntityCode:cve,isWhiteSpace:wve,lib:kve,normalizeReference:Sve,unescapeAll:mve,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(dve,"$1")}},Symbol.toStringTag,{value:"Module"}));const Nve=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:function(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=mve(e.slice(t,i)),o.pos=i,o.ok=!0),o},parseLinkLabel:function(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;o"+xve(o.content)+""},Fve.code_block=function(e,t,n,r,i){const o=e[t];return""+xve(e[t].content)+"\n"},Fve.fence=function(e,t,n,r,i){const o=e[t],a=o.info?mve(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||xve(o.content),0===s.indexOf("${s}\n`}return`

${s}
\n`},Fve.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Fve.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},Fve.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},Fve.text=function(e,t){return xve(e[t].content)},Fve.html_block=function(e,t){return e[t].content},Fve.html_inline=function(e,t){return e[t].content},_ve.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">",i},_ve.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o=0&&(n=this.attrs[t][1]),n},Ove.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Ive.prototype.Token=Ove;const Lve=/\r\n?|\n/g,Mve=/\0/g;function jve(e){return/^\s]/i.test(e)}function Rve(e){return/^<\/a\s*>/i.test(e)}const Bve=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vve=/\((c|tm|r)\)/i,Uve=/\((c|tm|r)\)/gi,zve={c:"©",r:"®",tm:"™"};function $ve(e,t){return zve[t.toLowerCase()]}function qve(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Uve,$ve)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function Hve(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Bve.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const Gve=/['"]/,Kve=/['"]/g;function Wve(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Qve(e,t){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l=48&&h<=57&&(d=p=!1),p&&d&&(p=g,d=y),p||d){if(d)for(n=r.length-1;n>=0;n--){let p=r[n];if(r[n].level=0;o--){const a=r[o];if("link_close"!==a.type){if("html_inline"===a.type&&(jve(a.content)&&i>0&&i--,Rve(a.content)&&i++),!(i>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const i=a.content;let s=e.md.linkify.match(i);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===r[o-1].type&&(s=s.slice(1));for(let t=0;tc){const t=new e.Token("text","",0);t.content=i.slice(c,a),t.level=u,l.push(t)}const p=new e.Token("link_open","a",1);p.attrs=[["href",r]],p.level=u++,p.markup="linkify",p.info="auto",l.push(p);const d=new e.Token("text","",0);d.content=o,d.level=u,l.push(d);const f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",l.push(f),c=s[t].lastIndex}if(c=0;t--)"inline"===e.tokens[t].type&&(Vve.test(e.tokens[t].content)&&qve(e.tokens[t].children),Bve.test(e.tokens[t].content)&&Hve(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Gve.test(e.tokens[t].content)&&Qve(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o0&&this.level++,this.tokens.push(r),r},Jve.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Jve.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!Dve(this.src.charCodeAt(--e)))return e+1;return e},Jve.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Jve.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;an?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},Jve.prototype.Token=Ove;function Zve(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ebe(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ibe="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",obe=new RegExp("^(?:"+rbe+"|"+ibe+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),abe=new RegExp("^(?:"+rbe+"|"+ibe+")"),sbe=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^\x3C!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(abe.source+"\\s*$"),/^$/,!1]];const lbe=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!Dve(s))return!1;if(45===a&&Dve(s))return!1;for(;o=4)return!1;u=ebe(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const p=u.length;if(0===p||p!==c.length)return!1;if(r)return!0;const d=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let y=0;y=4)break;if(u=ebe(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=p-u.length,g>65536)break;if(i===t+2){e.push("tbody_open","tbody",1).map=m=[t+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let p=t,d=!1;for(;(p++,!(p>=n))&&(i=s=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],!(i=4||(i=e.skipChars(i,a),i-s=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],p=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let f,h=!1;for(f=t;f=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[f]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[f]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[f]),e.bMarks[f]=i;i=o,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(t?1:0),u.push(e.sCount[f]),e.sCount[f]=a-r,c.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f];continue}if(h)break;let r=!1;for(let i=0,o=p.length;i";const y=[t,0];g.map=y,e.md.block.tokenize(e,t,f),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=d,y[1]=e.line;for(let v=0;v=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(f=!0),(d=nbe(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(a,d-1)),f&&1!==p)return!1}else{if(!((d=tbe(e,l))>=0))return!1;c=!1}if(f&&e.skipSpaces(d)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(d-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==p&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let y=!1;const v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l=i?1:r-t,f>4&&(f=1);const m=t+f;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,d-1));const b=e.tight,x=e.tShift[l],E=e.sCount[l],D=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=p-e.bMarks[l],e.sCount[l]=r,p>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!y||(u=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=D,e.tShift[l]=x,e.sCount[l]=E,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]=4)break;let w=!1;for(let i=0,o=v.length;i=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let a=0,s=r.length;a=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i6||ii&&Dve(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i=n))&&!(e.sCount[a]=o){e.line=n;break}const t=e.line;let l=!1;for(let o=0;o=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},cbe.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o?@[]^_`{|}~-".split("").forEach(function(e){fbe[e.charCodeAt(0)]=1});const mbe={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const ybe={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let o=0;o\x00-\x20]*)$/;const xbe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ebe=/^&([a-z][a-z0-9]{1,31});/i;function Dbe(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;as;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const wbe=[["text",function(e,t){let n=e.pos;for(;n0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(dbe);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;let s=a.length;for(;s>0&&42===a.charCodeAt(s-1);)s--;s!==a.length&&(a=a.slice(0,s));const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==fbe[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n=p)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h=p||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h=0?r=e.src.slice(l,h++):h=f+1):h=f+1,r||(r=e.src.slice(d,f)),o=e.env.references[Sve(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=d,e.posMax=f;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=p,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const p=e.pos,d=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const f=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o=d)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o=d||41!==e.src.charCodeAt(o))return e.pos=p,!1;o++}else{if(void 0===e.env.references)return!1;if(o=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(f,h)),a=e.env.references[Sve(i)],!a)return e.pos=p,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(f,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=d,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(bbe.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(vbe.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(obe);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(xbe);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=cve(t)?pve(t):pve(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Ebe);if(r){const n=ove(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Tbe=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Dbe(e.delimiters);for(let r=0;r0&&r++,"text"===i[t].type&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Cbe.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Cbe.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Pbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Obe(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Oye.source,t.src_Cc=Iye.source,t.src_Z=jye.source,t.src_P=Lye.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===kbe(n))return!function(e){return"[object RegExp]"===kbe(e)}(n.validate)?Abe(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Abe(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===kbe(e)}(n)?o(t,n):i.push(t)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Nbe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Ibe(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Lbe(e,t){const n=new Ibe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Mbe(e,t){if(!(this instanceof Mbe))return new Mbe(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Fbe.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Sbe({},Fbe,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Sbe({},_be,e),this.__compiled__={},this.__tlds__=Pbe,this.__tlds_replaced__=!1,this.re={},Obe(this)}Mbe.prototype.add=function(e,t){return this.__schemas__[e]=t,Obe(this),this},Mbe.prototype.set=function(e){return this.__opts__=Sbe(this.__opts__,e),this},Mbe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},Mbe.prototype.pretest=function(e){return this.re.pretest.test(e)},Mbe.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Mbe.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Lbe(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Lbe(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Mbe.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Lbe(this,0)):null},Mbe.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Obe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Obe(this),this)},Mbe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Mbe.prototype.onCompile=function(){};const jbe=2147483647,Rbe=36,Bbe=/^xn--/,Vbe=/[^\0-\x7F]/,Ube=/[\x2E\u3002\uFF0E\uFF61]/g,zbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$be=Math.floor,qbe=String.fromCharCode;function Hbe(e){throw new RangeError(zbe[e])}function Gbe(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(Ube,".")).split("."),t).join(".");return r+i}function Kbe(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&n=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Rbe},Qbe=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Ybe=function(e,t,n){let r=0;for(e=n?$be(e/700):e>>1,e+=$be(e/t);e>455;r+=Rbe)e=$be(e/35);return $be(r+36*e/(e+38))},Xbe=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&Hbe("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Hbe("invalid-input");const a=Wbe(e.charCodeAt(s++));a>=Rbe&&Hbe("invalid-input"),a>$be((jbe-r)/t)&&Hbe("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a$be(jbe/u)&&Hbe("overflow"),t*=u}const l=t.length+1;o=Ybe(r-a,l,0==a),$be(r/l)>jbe-i&&Hbe("overflow"),i+=$be(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Jbe=function(e){const t=[],n=(e=Kbe(e)).length;let r=128,i=0,o=72;for(const l of e)l<128&&t.push(qbe(l));const a=t.length;let s=a;for(a&&t.push("-");s=r&&t$be((jbe-i)/l)&&Hbe("overflow"),i+=(n-r)*l,r=n;for(const u of e)if(ujbe&&Hbe("overflow"),u===r){let e=i;for(let n=Rbe;;n+=Rbe){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=Zbe(t.hostname)}catch(n){}return yye(vye(t))}function sxe(e){const t=_ye(e,!0);if(t.hostname&&(!t.protocol||oxe.indexOf(t.protocol)>=0))try{t.hostname=exe(t.hostname)}catch(n){}return mye(vye(t),mye.defaultChars+"%")}function lxe(e,t){if(!(this instanceof lxe))return new lxe(e,t);t||ave(e)||(t=e||{},e="default"),this.inline=new Cbe,this.block=new ube,this.core=new Xve,this.renderer=new _ve,this.linkify=new Mbe,this.validateLink=ixe,this.normalizeLink=axe,this.normalizeLinkText=sxe,this.utils=Ave,this.helpers=lve({},Nve),this.options={},this.configure(e),t&&this.set(t)}lxe.prototype.set=function(e){return lve(this.options,e),this},lxe.prototype.configure=function(e){const t=this;if(ave(e)){const t=e;if(!(e=txe[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},lxe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},lxe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},lxe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},lxe.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},lxe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},lxe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},lxe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var uxe=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},cxe={measureLayout:uxe(["layout","layoutId","drag"]),animation:uxe(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:uxe(["exit"]),drag:uxe(["drag","dragControls"]),focus:uxe(["whileFocus"]),hover:uxe(["whileHover","onHoverStart","onHoverEnd"]),tap:uxe(["whileTap","onTap","onTapStart","onTapCancel"]),pan:uxe(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:uxe(["whileInView","onViewportEnter","onViewportLeave"])};var pxe=function(){},dxe=q.createContext({strict:!1}),fxe=Object.keys(cxe),hxe=fxe.length;var mxe=q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),gxe=q.createContext({});var yxe=q.createContext(null),vxe="undefined"!=typeof document,bxe=vxe?q.useLayoutEffect:q.useEffect,xxe={current:null},Exe=!1;function Dxe(){return!Exe&&function(){if(Exe=!0,vxe)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return xxe.current=e.matches};e.addListener(t),t()}else xxe.current=!1}(),Yj(q.useState(xxe.current),1)[0]}function wxe(e,t,n,r){var i,o,a=q.useContext(dxe),s=q.useContext(gxe).visualElement,l=q.useContext(yxe),u=(i=Dxe(),"never"!==(o=q.useContext(mxe).reducedMotion)&&("always"===o||i)),c=q.useRef(void 0);r||(r=a.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:u}));var p=c.current;return bxe(function(){null==p||p.syncRender()}),q.useEffect(function(){var e;null===(e=null==p?void 0:p.animationState)||void 0===e||e.animateChanges()}),bxe(function(){return function(){return null==p?void 0:p.notifyUnmount()}},[]),p}function Txe(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cxe(e){return Array.isArray(e)}function Sxe(e){return"string"==typeof e||Cxe(e)}function kxe(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Axe(e,t,n){var r=e.getProps();return kxe(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,n){return t[n]=e.getVelocity()}),t}(e))}function Nxe(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Sxe(e.initial)||Sxe(e.animate)||Sxe(e.whileHover)||Sxe(e.whileDrag)||Sxe(e.whileTap)||Sxe(e.whileFocus)||Sxe(e.exit)}function Fxe(e){return Boolean(Nxe(e)||e.variants)}function _xe(e){var t=function(e,t){if(Nxe(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Sxe(n)?n:void 0,animate:Sxe(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,q.useContext(gxe)),n=t.initial,r=t.animate;return q.useMemo(function(){return{initial:n,animate:r}},[Pxe(n),Pxe(r)])}function Pxe(e){return Array.isArray(e)?e.join(" "):e}function Oxe(e){var t=q.useRef(null);return null===t.current&&(t.current=e()),t.current}var Ixe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lxe=1;var Mxe=q.createContext({}),jxe=q.createContext({});var Rxe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kj(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(H.Component);function Bxe(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?cxe.projectionNodeConstructor=e[t]:cxe[t].Component=e[t])}(t),q.forwardRef(function(e,t){var s=function(e){var t,n=e.layoutId,r=null===(t=q.useContext(Mxe))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Wj(Wj({},e),{layoutId:s});var l=q.useContext(mxe),u=null,c=_xe(e),p=l.isStatic?void 0:Oxe(function(){if(Ixe.hasEverUpdated)return Lxe++}),d=o(e,l.isStatic);return!l.isStatic&&vxe&&(c.visualElement=wxe(a,d,Wj(Wj({},l),e),n),function(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=q.useContext(jxe);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(s)||l&&Txe(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:c,layoutScroll:u}))}(p,e,c.visualElement,r||cxe.projectionNodeConstructor),u=function(e,t){var n=[];if(q.useContext(dxe),!t)return null;for(var r=0;r-1||/[A-Z]/.test(e))}var $xe={};var qxe=["","X","Y","Z"],Hxe=["transformPerspective","x","y","z"];function Gxe(e,t){return Hxe.indexOf(e)-Hxe.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return qxe.forEach(function(t){return Hxe.push(e+t)})});var Kxe=new Set(Hxe);function Wxe(e){return Kxe.has(e)}var Qxe=new Set(["originX","originY","originZ"]);function Yxe(e){return Qxe.has(e)}function Xxe(e,t){var n=t.layout,r=t.layoutId;return Wxe(e)||Yxe(e)||(n||void 0!==r)&&(!!$xe[e]||"opacity"===e)}var Jxe=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Zxe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function eEe(e){return e.startsWith("--")}var tEe=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const nEe=(e,t)=>n=>Math.max(Math.min(n,t),e),rEe=e=>e%1?Number(e.toFixed(5)):e,iEe=/(-)?([\d]*\.?[\d])+/g,oEe=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,aEe=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function sEe(e){return"string"==typeof e}const lEe={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},uEe=Object.assign(Object.assign({},lEe),{transform:nEe(0,1)}),cEe=Object.assign(Object.assign({},lEe),{default:1}),pEe=e=>({test:t=>sEe(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),dEe=pEe("deg"),fEe=pEe("%"),hEe=pEe("px"),mEe=pEe("vh"),gEe=pEe("vw"),yEe=Object.assign(Object.assign({},fEe),{parse:e=>fEe.parse(e)/100,transform:e=>fEe.transform(100*e)}),vEe=(e,t)=>n=>Boolean(sEe(n)&&aEe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),bEe=(e,t,n)=>r=>{if(!sEe(r))return r;const[i,o,a,s]=r.match(iEe);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},xEe={test:vEe("hsl","hue"),parse:bEe("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+fEe.transform(rEe(t))+", "+fEe.transform(rEe(n))+", "+rEe(uEe.transform(r))+")"},EEe=nEe(0,255),DEe=Object.assign(Object.assign({},lEe),{transform:e=>Math.round(EEe(e))}),wEe={test:vEe("rgb","red"),parse:bEe("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+DEe.transform(e)+", "+DEe.transform(t)+", "+DEe.transform(n)+", "+rEe(uEe.transform(r))+")"};const TEe={test:vEe("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:wEe.transform},CEe={test:e=>wEe.test(e)||TEe.test(e)||xEe.test(e),parse:e=>wEe.test(e)?wEe.parse(e):xEe.test(e)?xEe.parse(e):TEe.parse(e),transform:e=>sEe(e)?e:e.hasOwnProperty("red")?wEe.transform(e):xEe.transform(e)},SEe="${c}",kEe="${n}";function AEe(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(oEe);r&&(n=r.length,e=e.replace(oEe,SEe),t.push(...r.map(CEe.parse)));const i=e.match(iEe);return i&&(e=e.replace(iEe,kEe),t.push(...i.map(lEe.parse))),{values:t,numColors:n,tokenised:e}}function NEe(e){return AEe(e).values}function FEe(e){const{values:t,numColors:n,tokenised:r}=AEe(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e;const PEe={test:function(e){var t,n,r,i;return isNaN(e)&&sEe(e)&&(null!==(n=null===(t=e.match(iEe))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(oEe))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:NEe,createTransformer:FEe,getAnimatableNone:function(e){const t=NEe(e);return FEe(e)(t.map(_Ee))}},OEe=new Set(["brightness","contrast","saturate","opacity"]);function IEe(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(iEe)||[];if(!r)return e;const i=n.replace(r,"");let o=OEe.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LEe=/([a-z-]*)\(.*?\)/g,MEe=Object.assign(Object.assign({},PEe),{getAnimatableNone:e=>{const t=e.match(LEe);return t?t.map(IEe).join(" "):e}});var jEe=Wj(Wj({},lEe),{transform:Math.round}),REe={borderWidth:hEe,borderTopWidth:hEe,borderRightWidth:hEe,borderBottomWidth:hEe,borderLeftWidth:hEe,borderRadius:hEe,radius:hEe,borderTopLeftRadius:hEe,borderTopRightRadius:hEe,borderBottomRightRadius:hEe,borderBottomLeftRadius:hEe,width:hEe,maxWidth:hEe,height:hEe,maxHeight:hEe,size:hEe,top:hEe,right:hEe,bottom:hEe,left:hEe,padding:hEe,paddingTop:hEe,paddingRight:hEe,paddingBottom:hEe,paddingLeft:hEe,margin:hEe,marginTop:hEe,marginRight:hEe,marginBottom:hEe,marginLeft:hEe,rotate:dEe,rotateX:dEe,rotateY:dEe,rotateZ:dEe,scale:cEe,scaleX:cEe,scaleY:cEe,scaleZ:cEe,skew:dEe,skewX:dEe,skewY:dEe,distance:hEe,translateX:hEe,translateY:hEe,translateZ:hEe,x:hEe,y:hEe,z:hEe,perspective:hEe,transformPerspective:hEe,opacity:uEe,originX:yEe,originY:yEe,originZ:hEe,zIndex:jEe,fillOpacity:uEe,strokeOpacity:uEe,numOctaves:jEe};function BEe(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,p=!1,d=!0;for(var f in t){var h=t[f];if(eEe(f))a[f]=h;else{var m=REe[f],g=tEe(h,m);if(Wxe(f)){if(c=!0,s[f]=g,l.push(f),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else Yxe(f)?(u[f]=g,p=!0):o[f]=g}}c?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(Gxe);for(var p=!1,d=o.length,f=0;fMath.min(Math.max(n,e),t),UDe=.001;function zDe({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=VDe(.05,1,a),e=VDe(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e,o=r-n,s=qDe(t,a),l=Math.exp(-i);return UDe-o/s*l},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=qDe(Math.pow(t,2),a);return(-i(t)+UDe>0?-1:1)*((o-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<$De;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const $De=12;function qDe(e,t){return e*Math.sqrt(1-t*t)}const HDe=["duration","bounce"],GDe=["stiffness","damping","mass"];function KDe(e,t){return t.some(t=>void 0!==e[t])}function WDe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Qj(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:d}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!KDe(e,GDe)&&KDe(e,HDe)){const n=zDe(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),f=QDe,h=QDe;function m(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=qDe(a,o);f=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)f=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);f=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=f(e);if(d)a.done=e>=p;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}WDe.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const QDe=e=>0,YDe=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},XDe=(e,t,n)=>-n*e+n*t+e;function JDe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZDe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=JDe(s,r,e+1/3),o=JDe(s,r,e),a=JDe(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const ewe=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},twe=[TEe,wEe,xEe],nwe=e=>twe.find(t=>t.test(e)),rwe=(e,t)=>{let n=nwe(e),r=nwe(t),i=n.parse(e),o=r.parse(t);n===xEe&&(i=ZDe(i),n=wEe),r===xEe&&(o=ZDe(o),r=wEe);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=ewe(i[t],o[t],e));return a.alpha=XDe(i.alpha,o.alpha,e),n.transform(a)}},iwe=e=>"number"==typeof e,owe=(e,t)=>n=>t(e(n)),awe=(...e)=>e.reduce(owe);function swe(e,t){return iwe(e)?n=>XDe(e,t,n):CEe.test(e)?rwe(e,t):pwe(e,t)}const lwe=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>swe(e,t[n]));return e=>{for(let t=0;t{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=swe(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function cwe(e){const t=PEe.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a{const n=PEe.createTransformer(t),r=cwe(e),i=cwe(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?awe(lwe(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},dwe=(e,t)=>n=>XDe(e,t,n);function fwe(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?dwe:"string"==typeof o?CEe.test(o)?rwe:pwe:Array.isArray(o)?lwe:"object"==typeof o?uwe:void 0);var o;const a=e.length-1;for(let s=0;se[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=fwe(t,r,i),s=2===o?function([e,t],[n]){return r=>n(YDe(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti||t===r);t++);o=t-1}const s=YDe(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(VDe(e[0],e[o-1],t)):s}const mwe=e=>t=>1-e(1-t),gwe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ywe=e=>t=>t*t*((e+1)*t-e),vwe=4/11,bwe=8/11,xwe=e=>e,Ewe=(Dwe=2,e=>Math.pow(e,Dwe));var Dwe;const wwe=mwe(Ewe),Twe=gwe(Ewe),Cwe=e=>1-Math.sin(Math.acos(e)),Swe=mwe(Cwe),kwe=gwe(Swe),Awe=ywe(1.525),Nwe=mwe(Awe),Fwe=gwe(Awe),_we=(e=>{const t=ywe(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Pwe=4356/361,Owe=35442/1805,Iwe=16061/1805,Lwe=e=>{if(1===e||0===e)return e;const t=e*e;return et||Twe).splice(0,e.length-1)}function Rwe({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(a),i);function l(){return hwe(s,a,{ease:Array.isArray(n)?n:jwe(a,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}const Bwe={keyframes:Rwe,spring:WDe,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};const Vwe=1/60*1e3,Uwe="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),zwe="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Uwe()),Vwe);let $we=!0,qwe=!1,Hwe=!1;const Gwe={delta:0,timestamp:0},Kwe=["read","update","preRender","render","postRender"],Wwe=Kwe.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nqwe=!0),e),{}),Qwe=Kwe.reduce((e,t)=>{const n=Wwe[t];return e[t]=(e,t=!1,r=!1)=>(qwe||eTe(),n.schedule(e,t,r)),e},{}),Ywe=Kwe.reduce((e,t)=>(e[t]=Wwe[t].cancel,e),{}),Xwe=Kwe.reduce((e,t)=>(e[t]=()=>Wwe[t].process(Gwe),e),{}),Jwe=e=>Wwe[e].process(Gwe),Zwe=e=>{qwe=!1,Gwe.delta=$we?Vwe:Math.max(Math.min(e-Gwe.timestamp,40),1),Gwe.timestamp=e,Hwe=!0,Kwe.forEach(Jwe),Hwe=!1,qwe&&($we=!1,zwe(Zwe))},eTe=()=>{qwe=!0,$we=!0,Hwe||zwe(Zwe)},tTe=()=>Gwe;function nTe(e,t,n=0){return e-t-n}const rTe=e=>{const t=({delta:t})=>e(t);return{start:()=>Qwe.update(t,!0),stop:()=>Ywe.update(t)}};function iTe(e){var t,n,{from:r,autoplay:i=!0,driver:o=rTe,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:p,onComplete:d,onRepeat:f,onUpdate:h}=e,m=Qj(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,v,{to:b}=m,x=0,E=m.duration,D=!1,w=!0;const T=function(e){if(Array.isArray(e.to))return Rwe;if(Bwe[e.type])return Bwe[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Rwe:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?WDe:Rwe}(m);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=hwe([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=T(Object.assign(Object.assign({},m),{from:r,to:b}));function S(){x++,"reverse"===l?(w=x%2==0,a=function(e,t,n=0,r=!0){return r?nTe(t+-e,t,n):t-(e-t)+n}(a,E,u,w)):(a=nTe(a,E,u),"mirror"===l&&C.flipTarget()),D=!1,f&&f()}function k(e){if(w||(e=-e),a+=e,!D){const e=C.next(Math.max(0,a));y=e.value,v&&(y=v(y)),D=w?e.done:a<=0}null==h||h(y),D&&(0===x&&(null!=E||(E=a)),x=t+n:e<=-n}(a,E,u,w)&&S():(g.stop(),d&&d()))}return i&&(null==c||c(),g=o(k),g.start()),{stop:()=>{null==p||p(),g.stop()}}}function oTe(e,t){return t?e*(1e3/t):0}const aTe=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),sTe=e=>aTe(e)&&e.hasOwnProperty("z"),lTe=(e,t)=>Math.abs(e-t);function uTe(e,t){if(iwe(e)&&iwe(t))return lTe(e,t);if(aTe(e)&&aTe(t)){const n=lTe(e.x,t.x),r=lTe(e.y,t.y),i=sTe(e)&&sTe(t)?lTe(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const cTe=(e,t)=>1-3*t+3*e,pTe=(e,t)=>3*t-6*e,dTe=e=>3*e,fTe=(e,t,n)=>((cTe(t,n)*e+pTe(t,n))*e+dTe(t))*e,hTe=(e,t,n)=>3*cTe(t,n)*e*e+2*pTe(t,n)*e+dTe(t);const mTe=.1;function gTe(e,t,n,r){if(e===t&&n===r)return xwe;const i=new Float32Array(11);for(let a=0;a<11;++a)i[a]=fTe(a*mTe,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=mTe;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*mTe,s=hTe(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=hTe(t,n,r);if(0===i)return t;t-=(fTe(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=fTe(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+mTe,e,n)}return e=>0===e||1===e?e:fTe(o(e),t,r)}var yTe=new WeakMap,vTe=new WeakMap,bTe=function(e){var t;null===(t=yTe.get(e.target))||void 0===t||t(e)},xTe=function(e){e.forEach(bTe)};function ETe(e,t,n){var r=function(e){var t=e.root,n=Qj(e,["root"]),r=t||document;vTe.has(r)||vTe.set(r,{});var i=vTe.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(xTe,Wj({root:t},n))),i[o]}(t);return yTe.set(e,n),r.observe(e),function(){yTe.delete(e),r.unobserve(e)}}var DTe={some:0,all:1};function wTe(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=void 0===a?"some":a,l=r.once;q.useEffect(function(){if(e){var r={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof s?s:DTe[s]};return ETe(n.getInstance(),r,function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(hDe.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[e,i,o,s])}function TTe(e,t,n,r){var i=r.fallback,o=void 0===i||i;q.useEffect(function(){e&&o&&requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(hDe.InView,!0)})},[e])}var CTe=function(e){return function(t){return e(t),null}},STe={inView:CTe(function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=q.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?TTe:wTe)(l,s.current,t,a)}),tap:CTe(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=q.useRef(!1),l=q.useRef(null),u={passive:!(n||t||r||h)};function c(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function p(){var e;return c(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(hDe.Tap,!1),!MDe()}function d(e,n){p()&&(RDe(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function f(e,t){p()&&(null==r||r(e,t))}function h(e,t){var r;c(),s.current||(s.current=!0,l.current=awe(FDe(window,"pointerup",d,u),FDe(window,"pointercancel",f,u)),null===(r=o.animationState)||void 0===r||r.setActive(hDe.Tap,!0),null==n||n(e,t))}_De(o,"pointerdown",a?h:void 0,u),BDe(c)}),focus:CTe(function(e){var t=e.whileFocus,n=e.visualElement;bDe(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(hDe.Focus,!0)}:void 0),bDe(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(hDe.Focus,!1)}:void 0)}),hover:CTe(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;_De(i,"pointerenter",t||r?jDe(i,!0,t):void 0,{passive:!t}),_De(i,"pointerleave",n||r?jDe(i,!1,n):void 0,{passive:!n})})},kTe=0,ATe=function(){return kTe++};function NTe(){var e=q.useContext(yxe);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Oxe(ATe);q.useEffect(function(){return r(i)},[]);return!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function FTe(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;re<.5?.5*(1-Lwe(1-2*e)):.5*Lwe(2*e-1)+.5,bounceOut:Lwe},OTe=function(e){if(Array.isArray(e)){e.length;var t=Yj(e,4);return gTe(t[0],t[1],t[2],t[3])}return"string"==typeof e?PTe[e]:e},ITe=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!PEe.test(t)||t.startsWith("url(")))},LTe=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},MTe=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},jTe=function(){return{type:"keyframes",ease:"linear",duration:.3}},RTe=function(e){return{type:"keyframes",duration:.8,values:e}},BTe={x:LTe,y:LTe,z:LTe,rotate:LTe,rotateX:LTe,rotateY:LTe,rotateZ:LTe,scaleX:MTe,scaleY:MTe,scale:MTe,opacity:jTe,backgroundColor:jTe,color:jTe,default:MTe},VTe=Wj(Wj({},REe),{color:CEe,backgroundColor:CEe,outlineColor:CEe,fill:CEe,stroke:CEe,borderColor:CEe,borderTopColor:CEe,borderRightColor:CEe,borderBottomColor:CEe,borderLeftColor:CEe,filter:MEe,WebkitFilter:MEe}),UTe=function(e){return VTe[e]};function zTe(e,t){var n,r=UTe(e);return r!==MEe&&(r=PEe),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function $Te(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=Qj(e,["ease","times","yoyo","flip","loop"]),s=Wj({},a);return n&&(s.offset=n),a.duration&&(s.duration=_Te(a.duration)),a.repeatDelay&&(s.repeatDelay=_Te(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(OTe):OTe(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function qTe(e,t,n){var r,i,o,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Xj([],Yj(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Qj(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Wj(Wj({},e),(i=n,o=t.to,a=lDe(o)?RTe:BTe[i]||BTe.default,Wj({to:o},a(o))))),Wj(Wj({},t),$Te(e))}function HTe(e,t,n,r,i){var o,a=WTe(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=ITe(e,n);return"none"===s&&l&&"string"==typeof n?s=zTe(e,n):GTe(s)&&"string"==typeof n?s=KTe(n):!Array.isArray(n)&>e(n)&&"string"==typeof s&&(n=KTe(s)),ITe(e,s)&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:d,onStop:f}){let h;function m(e){return void 0!==n&&er}function g(e){return void 0===n?r:void 0===r||Math.abs(n-e){var n;null==p||p(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:d,onStop:f}))}function v(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;void 0!==u&&(r=u(r));const a=g(r),s=a===n?-1:1;let c,p;const d=e=>{c=p,p=e,t=oTe(e-c,tTe().delta),(1===s&&e>a||-1===s&&enull==h?void 0:h.stop()}}(Wj(Wj({},r),a)):iTe(Wj(Wj({},qTe(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=uDe(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function GTe(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function KTe(e){return"number"==typeof e?0:zTe("",e)}function WTe(e,t){return e[t]||e.default||e}function QTe(e,t,n,r){return void 0===r&&(r={}),t.start(function(i){var o,a,s=HTe(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(WTe(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?o=window.setTimeout(u,_Te(l)):u(),function(){clearTimeout(o),null==a||a.stop()}})}var YTe=function(e){return/^\-?\d*\.?\d+$/.test(e)},XTe=function(e){return/^0[^.\s]+$/.test(e)};function JTe(e,t){-1===e.indexOf(t)&&e.push(t)}function ZTe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var eCe=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return JTe(this.subscriptions,e),function(){return ZTe(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;ih&&y,D=Array.isArray(g)?g:[g],w=D.reduce(a,{});!1===v&&(w={});var T=m.prevResolvedValues,C=void 0===T?{}:T,S=Wj(Wj({},C),w),k=function(e){E=!0,d.delete(e),m.needsAnimating[e]=!0};for(var A in S){var N=w[A],F=C[A];f.hasOwnProperty(A)||(N!==F?lDe(N)&&lDe(F)?!FTe(N,F)||x?k(A):m.protectedKeys[A]=!0:void 0!==N?k(A):d.add(A):void 0!==N&&d.has(A)?k(A):m.protectedKeys[A]=!0)}m.prevProp=g,m.prevResolvedValues=w,m.isActive&&(f=Wj(Wj({},f),w)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&p.push.apply(p,Xj([],Yj(D.map(function(e){return{animation:e,options:Wj({type:i},t)}})),!1))},g=0;g=3;if(t||n){var i=e.point,o=tTe().timestamp;r.history.push(Wj(Wj({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=DCe(t,r.transformPagePoint),xDe(e)&&0===e.buttons?r.handlePointerUp(e,t):Qwe.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=TCe(DCe(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(EDe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=DCe(CDe(e),this.transformPagePoint),a=o.point,s=tTe().timestamp;this.history=[Wj(Wj({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,TCe(o,this.history)),this.removeListeners=awe(FDe(window,"pointermove",this.handlePointerMove),FDe(window,"pointerup",this.handlePointerUp),FDe(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ywe.update(this.updatePoint)},e}();function DCe(e,t){return t?{point:t(e.point)}:e}function wCe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function TCe(e,t){var n=e.point;return{point:n,delta:wCe(n,SCe(t)),offset:wCe(n,CCe(t)),velocity:kCe(t,.1)}}function CCe(e){return e[0]}function SCe(e){return e[e.length-1]}function kCe(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=SCe(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_Te(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ACe(e){return e.max-e.min}function NCe(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),uTe(e,t)t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(hDe.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&oSe(e,r,this.currentDirection)){var i,o,a,s,l,u=this.getAxisMotionValue(e),c=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=c,o=this.constraints[e],a=this.elastic[e],s=o.min,l=o.max,void 0!==s&&il&&(i=a?XDe(l,i,a.max):Math.min(i,l)),c=i),u.set(c)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Txe(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:LCe(e.x,r,o),y:LCe(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=jCe),!1===e?e=0:!0===e&&(e=jCe),{x:RCe(e,"left","right"),y:RCe(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&UCe(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Txe(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o,a,s,l,u,c=(o=r,a=i.root,s=this.visualElement.getTransformPagePoint(),l=nSe(o,s),(u=a.scroll)&&(XCe(l.x,u.x),XCe(l.y,u.y)),l),p=function(e,t){return{x:MCe(e.x,t.x),y:MCe(e.y,t.y)}}(i.layout.actual,c);if(n){var d=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(p));this.hasMutatedConstraints=!!d,d&&(p=zCe(d))}return p},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=UCe(function(n){var l;if(oSe(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var p=o?200:1e6,d=o?40:1e7,f=Wj(Wj({type:"inertia",velocity:i?e[n]:0,bounceStiffness:p,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,f)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return QTe(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;UCe(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;UCe(function(n){if(oSe(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-XDe(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(Txe(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};UCe(function(e){var n,r,i,o,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],i=.5,o=ACe(n),(s=ACe(r))>o?i=YDe(r.min,r.max-o,n.min):o>s&&(i=YDe(n.min,n.max-s,r.min)),VDe(0,1,i))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),UCe(function(e){if(oSe(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(XDe(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;rSe.set(this.visualElement,this);var n=FDe(this.visualElement.getInstance(),"pointerdown",function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),r=function(){Txe(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=vDe(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(UCe(function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))}),t.visualElement.syncRender())}),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?jCe:u,p=e.dragMomentum,d=void 0===p||p;return Wj(Wj({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function oSe(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var aSe={pan:CTe(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,s=q.useRef(null),l=q.useContext(mxe).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};q.useEffect(function(){null!==s.current&&s.current.updateHandlers(u)}),_De(o,"pointerdown",a&&function(e){s.current=new ECe(e,u,{transformPagePoint:l})}),BDe(function(){return s.current&&s.current.end()})}),drag:CTe(function(e){var t=e.dragControls,n=e.visualElement,r=Oxe(function(){return new iSe(n)});q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),q.useEffect(function(){return r.addListeners()},[r])})},sSe=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var lSe=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,f=e.props,h=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var v,b,x=!1,E=g.latestValues,D=g.renderState,w=function(){var e=sSe.map(function(){return new eCe}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){sSe.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+sSe[t]]=function(t){return e.add(t)},n["notify"+sSe[t]]=function(){for(var t=[],n=0;n=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=TSe[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);vSe(r,s[n]),e[n]=TSe[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=Yj(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}};function SSe(e,t,n,r){return function(e){return Object.keys(e).some(ySe)}(t)?CSe(e,t,n,r):{target:t,transitionEnd:r}}var kSe=function(e,t,n,r){var i=function(e,t,n){var r,i=Qj(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=Wj({},n)),e.forEachValue(function(e){var t=e.get();if(pSe(t)){var n=fSe(t,o);n&&e.set(n)}}),i){var s=i[a];if(pSe(s)){var l=fSe(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return SSe(e,t=i.target,n,r=i.transitionEnd)};var ASe={treeType:"dom",readValueFromInstance:function(e,t){if(Wxe(t)){var n=UTe(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(eEe(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return nSe(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=Qj(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=uCe(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var u=0;u5)return i;var l=PEe.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,p=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=p;var d=XDe(c,p,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var f=l(s);if(o){var h=0;f=f.replace(ISe,function(){var e=a[h];return h++,e})}return f}},MSe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kj(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=jSe,Object.assign($xe,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(Wj(Wj({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ixe.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Qwe.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(H.Component);var jSe={borderRadius:Wj(Wj({},OSe),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:OSe,borderTopRightRadius:OSe,borderBottomLeftRadius:OSe,borderBottomRightRadius:OSe,boxShadow:LSe},RSe={measureLayout:function(e){var t=Yj(NTe(),2),n=t[0],r=t[1],i=q.useContext(Mxe);return H.createElement(MSe,Wj({},e,{layoutGroup:i,switchLayoutGroup:q.useContext(jxe),isPresent:n,safeToRemove:r}))}};var BSe=["TopLeft","TopRight","BottomLeft","BottomRight"],VSe=BSe.length,USe=function(e){return"string"==typeof e?parseFloat(e):e},zSe=function(e){return"number"==typeof e||hEe.test(e)};function $Se(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var qSe=GSe(0,.5,Swe),HSe=GSe(.5,.95,xwe);function GSe(e,t,n){return function(r){return rt?1:n(YDe(e,t,r))}}function KSe(e,t){e.min=t.min,e.max=t.max}function WSe(e,t){KSe(e.x,t.x),KSe(e.y,t.y)}function QSe(e,t,n,r,i){return e=KCe(e-=t,1/n,r),void 0!==i&&(e=KCe(e,1/i,r)),e}function YSe(e,t,n,r,i){var o=Yj(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),fEe.test(t)&&(t=parseFloat(t),t=XDe(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=XDe(o.min,o.max,r);e===o&&(s-=t),e.min=QSe(e.min,t,n,s,i),e.max=QSe(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var XSe=["x","scaleX","originX"],JSe=["y","scaleY","originY"];function ZSe(e,t,n,r){YSe(e.x,t,XSe,null==n?void 0:n.x,null==r?void 0:r.x),YSe(e.y,t,JSe,null==n?void 0:n.y,null==r?void 0:r.y)}function eke(e){return 0===e.translate&&1===e.scale}function tke(e){return eke(e.x)&&eke(e.y)}function nke(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var rke=function(){function e(){this.members=[]}return e.prototype.add=function(e){JTe(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(ZTe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex(function(t){return e===t});if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function ike(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(u,", ").concat(c,")"))?"none":o}var oke=function(e,t){return e.depth-t.depth},ake=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){JTe(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ZTe(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(oke),this.isDirty=!1,this.children.forEach(e)},e}();function ske(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(hke),i.nodes.forEach(mke)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Xj(Xj([],Yj(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function wke(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Tke(e){wke(e.x),wke(e.y)}var Cke=ske({attachResizeListener:function(e,t){return vDe(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Ske={current:void 0},kke=ske({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Ske.current){var e=new Cke(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ske.current=e}return Ske.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Ake=Wj(Wj(Wj(Wj({},xCe),STe),aSe),RSe),Nke=Vxe(function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=zxe(e)?gDe:yDe;return Wj(Wj({},s),{preloadedFeatures:n,useRender:ZEe(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Ake,_Se,kke)}),Fke=q.createContext(null);function _ke(e,t,n,r){if(!r)return e;var i=e.findIndex(function(e){return e.value===t});if(-1===i)return e;var o=r>0?1:-1,a=e[i+o];if(!a)return e;var s=e[i],l=a.layout,u=XDe(l.min,l.max,.5);return 1===o&&s.layout.max+n>u||-1===o&&s.layout.min+n=0&&i(((e,t,n)=>{t in e?zke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let qke=new class{constructor(){$ke(this,"current",this.detect()),$ke(this,"handoffState","pending"),$ke(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Hke=(e,t)=>{qke.isServer?q.useEffect(e,t):q.useLayoutEffect(e,t)};function Gke(e){let t=q.useRef(e);return Hke(()=>{t.current=e},[e]),t}function Kke(e,t){let[n,r]=q.useState(e),i=Gke(e);return Hke(()=>r(i.current),[i,r,...t]),n}function Wke(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Wke();return e(t),this.add(()=>t.dispose())},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Qke(){let[e]=q.useState(Wke);return q.useEffect(()=>()=>e.dispose(),[e]),e}let Yke=function(e){let t=Gke(e);return H.useCallback((...e)=>t.current(...e),[t])};var Xke;let Jke=null!=(Xke=H.useId)?Xke:function(){let e=function(){let[e,t]=q.useState(qke.isHandoffComplete);return e&&!1===qke.isHandoffComplete&&t(!1),q.useEffect(()=>{!0!==e&&t(!0)},[e]),q.useEffect(()=>qke.handoff(),[]),e}(),[t,n]=H.useState(e?()=>qke.nextId():null);return Hke(()=>{null===t&&n(qke.nextId())},[t]),null!=t?""+t:void 0};function Zke(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zke),r}function eAe(e){return qke.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let tAe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var nAe,rAe,iAe=((rAe=iAe||{})[rAe.First=1]="First",rAe[rAe.Previous=2]="Previous",rAe[rAe.Next=4]="Next",rAe[rAe.Last=8]="Last",rAe[rAe.WrapAround=16]="WrapAround",rAe[rAe.NoScroll=32]="NoScroll",rAe),oAe=((nAe=oAe||{})[nAe.Error=0]="Error",nAe[nAe.Overflow=1]="Overflow",nAe[nAe.Success=2]="Success",nAe[nAe.Underflow=3]="Underflow",nAe),aAe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(aAe||{}),sAe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sAe||{});var lAe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(lAe||{});function uAe(e,t,n){let r=Gke(t);q.useEffect(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function cAe(e,t,n=!0){let r=q.useRef(!1);function i(n,i){if(!r.current||n.defaultPrevented)return;let o=i(n);if(null===o||!o.getRootNode().contains(o))return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=eAe(e))?void 0:n.body)&&Zke(t,{0:()=>e.matches(tAe),1(){let t=e;for(;null!==t;){if(t.matches(tAe))return!0;t=t.parentElement}return!1}})}(o,sAe.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}q.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let o=q.useRef(null);uAe("mousedown",e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),uAe("click",e=>{o.current&&(i(e,()=>o.current),o.current=null)},!0),function(e,t,n){let r=Gke(t);q.useEffect(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}("blur",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function pAe(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function dAe(e,t){let[n,r]=q.useState(()=>pAe(e));return Hke(()=>{r(pAe(e))},[e.type,e.as]),Hke(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let fAe=Symbol();function hAe(...e){let t=q.useRef(e);q.useEffect(()=>{t.current=e},[e]);let n=Yke(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[fAe]))?void 0:n}var mAe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(mAe||{});function gAe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,r)=>!(-1!==i&&r.length-n-1>=i)&&!t.resolveDisabled(e));return-1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=i)&&!t.resolveDisabled(e));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return-1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?r:o}function yAe(...e){return e.filter(Boolean).join(" ")}var vAe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vAe||{}),bAe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bAe||{});function xAe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a}){let s=DAe(t,e);if(o)return EAe(s,n,r,a);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=s;if(e)return EAe(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return Zke(e?0:1,{0:()=>null,1:()=>EAe({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return EAe(s,n,r,a)}function EAe(e,t={},n,r){let{as:i=n,children:o,refName:a="ref",...s}=CAe(e,["unmount","static"]),l=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof o?o(t):o;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(c["data-headlessui-state"]=n.join(" "))}if(i===q.Fragment&&Object.keys(TAe(s)).length>0){if(!q.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>yAe(null==e?void 0:e.className(...t),s.className):yAe(null==e?void 0:e.className,s.className),n=t?{className:t}:{};return q.cloneElement(u,Object.assign({},DAe(u.props,TAe(CAe(s,["ref"]))),c,l,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,l.ref),n))}return q.createElement(i,Object.assign({},CAe(s,["ref"]),i!==q.Fragment&&l,i!==q.Fragment&&c),u)}function DAe(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function wAe(e){var t;return Object.assign(q.forwardRef(e),{displayName:null!=(t=e.displayName)?t:e.name})}function TAe(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function CAe(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function SAe(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}function kAe(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))NAe(n,AAe(t,r),i);return n}function AAe(e,t){return e?e+"["+t+"]":t}function NAe(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())NAe(e,AAe(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):kAe(n,t,e)}var FAe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(FAe||{});let _Ae=wAe(function(e,t){let{features:n=1,...r}=e;return xAe({ourProps:{ref:t,"aria-hidden":!(2&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}),PAe=q.createContext(null);PAe.displayName="OpenClosedContext";var OAe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(OAe||{});function IAe({value:e,children:t}){return H.createElement(PAe.Provider,{value:e},t)}var LAe,MAe=((LAe=MAe||{}).Space=" ",LAe.Enter="Enter",LAe.Escape="Escape",LAe.Backspace="Backspace",LAe.Delete="Delete",LAe.ArrowLeft="ArrowLeft",LAe.ArrowUp="ArrowUp",LAe.ArrowRight="ArrowRight",LAe.ArrowDown="ArrowDown",LAe.Home="Home",LAe.End="End",LAe.PageUp="PageUp",LAe.PageDown="PageDown",LAe.Tab="Tab",LAe);function jAe(e,t){let n=q.useRef([]),r=Yke(e);q.useEffect(()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}},[r,...t])}function RAe(e){return[e.screenX,e.screenY]}function BAe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}var VAe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VAe||{}),UAe=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(UAe||{}),zAe=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(zAe||{}),$Ae=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))($Ae||{});function qAe(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return-1===i&&(i=null),{options:r,activeOptionIndex:i}}let HAe={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:t}=e.dataRef.current,r=e.options.findIndex(e=>t(e.dataRef.current.value));-1!==r&&(n=r)}return{...e,comboboxState:0,activeOptionIndex:n}},2(e,t){var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.disabled||null!=(r=e.dataRef.current)&&r.optionsRef.current&&(null==(i=e.dataRef.current)||!i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let a=qAe(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let s=gAe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:s,activationTrigger:null!=(o=t.trigger)?o:1}},3:(e,t)=>{var n,r;let i={id:t.id,dataRef:t.dataRef},o=qAe(e,e=>[...e,i]);null===e.activeOptionIndex&&null!=(n=e.dataRef.current)&&n.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(i));let a={...e,...o,activationTrigger:1};return null!=(r=e.dataRef.current)&&r.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},4:(e,t)=>{let n=qAe(e,e=>{let n=e.findIndex(e=>e.id===t.id);return-1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},GAe=q.createContext(null);function KAe(e){let t=q.useContext(GAe);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,KAe),t}return t}GAe.displayName="ComboboxActionsContext";let WAe=q.createContext(null);function QAe(e){let t=q.useContext(WAe);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,QAe),t}return t}function YAe(e,t){return Zke(t.type,HAe,e,t)}WAe.displayName="ComboboxDataContext";let XAe=q.Fragment;let JAe=vAe.RenderStrategy|vAe.Static;let ZAe=wAe(function(e,t){let{value:n,defaultValue:r,onChange:i,form:o,name:a,by:s=(e,t)=>e===t,disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:p=!1,...d}=e,[f=(p?[]:void 0),h]=function(e,t,n){let[r,i]=q.useState(n),o=void 0!==e,a=q.useRef(o),s=q.useRef(!1),l=q.useRef(!1);return!o||a.current||s.current?!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,Yke(e=>(o||i(e),null==t?void 0:t(e)))]}(n,i,r),[m,g]=q.useReducer(YAe,{dataRef:q.createRef(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),y=q.useRef(!1),v=q.useRef({static:!1,hold:!1}),b=q.useRef(null),x=q.useRef(null),E=q.useRef(null),D=q.useRef(null),w=Yke("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),T=q.useCallback(e=>Zke(C.mode,{1:()=>f.some(t=>w(t,e)),0:()=>w(f,e)}),[f]),C=q.useMemo(()=>({...m,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:E,optionsRef:D,value:f,defaultValue:r,disabled:l,mode:p?1:0,get activeOptionIndex(){if(y.current&&null===m.activeOptionIndex&&m.options.length>0){let e=m.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return m.activeOptionIndex},compare:w,isSelected:T,nullable:c,__demoMode:u}),[f,r,l,p,c,u,m]),S=q.useRef(null!==C.activeOptionIndex?C.options[C.activeOptionIndex]:null);q.useEffect(()=>{let e=null!==C.activeOptionIndex?C.options[C.activeOptionIndex]:null;S.current!==e&&(S.current=e)}),Hke(()=>{m.dataRef.current=C},[C]),cAe([C.buttonRef,C.inputRef,C.optionsRef],()=>M.closeCombobox(),0===C.comboboxState);let k=q.useMemo(()=>({open:0===C.comboboxState,disabled:l,activeIndex:C.activeOptionIndex,activeOption:null===C.activeOptionIndex?null:C.options[C.activeOptionIndex].dataRef.current.value,value:f}),[C,l,f]),A=Yke(e=>{let t=C.options.find(t=>t.id===e);t&&L(t.dataRef.current.value)}),N=Yke(()=>{if(null!==C.activeOptionIndex){let{dataRef:e,id:t}=C.options[C.activeOptionIndex];L(e.current.value),M.goToOption(mAe.Specific,t)}}),F=Yke(()=>{g({type:0}),y.current=!0}),_=Yke(()=>{g({type:1}),y.current=!1}),P=Yke((e,t,n)=>(y.current=!1,e===mAe.Specific?g({type:2,focus:mAe.Specific,id:t,trigger:n}):g({type:2,focus:e,trigger:n}))),O=Yke((e,t)=>(g({type:3,id:e,dataRef:t}),()=>{var t;(null==(t=S.current)?void 0:t.id)===e&&(y.current=!0),g({type:4,id:e})})),I=Yke(e=>(g({type:5,id:e}),()=>g({type:5,id:null}))),L=Yke(e=>Zke(C.mode,{0:()=>null==h?void 0:h(e),1(){let t=C.value.slice(),n=t.findIndex(t=>w(t,e));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}})),M=q.useMemo(()=>({onChange:L,registerOption:O,registerLabel:I,goToOption:P,closeCombobox:_,openCombobox:F,selectActiveOption:N,selectOption:A}),[]),j=null===t?{}:{ref:t},R=q.useRef(null),B=Qke();return q.useEffect(()=>{R.current&&void 0!==r&&B.addEventListener(R.current,"reset",()=>{L(r)})},[R,L]),H.createElement(GAe.Provider,{value:M},H.createElement(WAe.Provider,{value:C},H.createElement(IAe,{value:Zke(C.comboboxState,{0:OAe.Open,1:OAe.Closed})},null!=a&&null!=f&&kAe({[a]:f}).map(([e,t],n)=>H.createElement(_Ae,{features:FAe.Hidden,ref:0===n?e=>{var t;R.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...TAe({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})})),xAe({ourProps:j,theirProps:d,slot:k,defaultTag:XAe,name:"Combobox"}))))}),eNe=wAe(function(e,t){var n;let r=QAe("Combobox.Button"),i=KAe("Combobox.Button"),o=hAe(r.buttonRef,t),a=Jke(),{id:s=`headlessui-combobox-button-${a}`,...l}=e,u=Qke(),c=Yke(e=>{switch(e.key){case MAe.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&i.openCombobox(),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case MAe.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(i.openCombobox(),u.nextFrame(()=>{r.value||i.goToOption(mAe.Last)})),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case MAe.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),i.closeCombobox(),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),p=Yke(e=>{if(SAe(e.currentTarget))return e.preventDefault();0===r.comboboxState?i.closeCombobox():(e.preventDefault(),i.openCombobox()),u.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),d=Kke(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),f=q.useMemo(()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value}),[r]);return xAe({ourProps:{ref:o,id:s,type:dAe(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":d,disabled:r.disabled,onClick:p,onKeyDown:c},theirProps:l,slot:f,defaultTag:"button",name:"Combobox.Button"})}),tNe=wAe(function(e,t){var n,r,i,o;let a=Jke(),{id:s=`headlessui-combobox-input-${a}`,onChange:l,displayValue:u,type:c="text",...p}=e,d=QAe("Combobox.Input"),f=KAe("Combobox.Input"),h=hAe(d.inputRef,t),m=q.useRef(!1),g=Qke();var y;jAe(([e,t],[n,r])=>{m.current||d.inputRef.current&&(0===r&&1===t||e!==n)&&(d.inputRef.current.value=e)},["function"==typeof u&&void 0!==d.value?null!=(y=u(d.value))?y:"":"string"==typeof d.value?d.value:"",d.comboboxState]),jAe(([e],[t])=>{if(0===e&&1===t){let e=d.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}},[d.comboboxState]);let v=q.useRef(!1),b=q.useRef(null),x=Yke(()=>{v.current=!0}),E=Yke(()=>{g.nextFrame(()=>{v.current=!1,b.current&&(f.openCombobox(),null==l||l(b.current),b.current=null)})}),D=Yke(e=>{switch(m.current=!0,e.key){case MAe.Backspace:case MAe.Delete:if(0!==d.mode||!d.nullable)return;let t=e.currentTarget;g.requestAnimationFrame(()=>{""===t.value&&(f.onChange(null),d.optionsRef.current&&(d.optionsRef.current.scrollTop=0),f.goToOption(mAe.Nothing))});break;case MAe.Enter:if(m.current=!1,0!==d.comboboxState||v.current)return;if(e.preventDefault(),e.stopPropagation(),null===d.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===d.mode&&f.closeCombobox();break;case MAe.ArrowDown:return m.current=!1,e.preventDefault(),e.stopPropagation(),Zke(d.comboboxState,{0:()=>{f.goToOption(mAe.Next)},1:()=>{f.openCombobox()}});case MAe.ArrowUp:return m.current=!1,e.preventDefault(),e.stopPropagation(),Zke(d.comboboxState,{0:()=>{f.goToOption(mAe.Previous)},1:()=>{f.openCombobox(),g.nextFrame(()=>{d.value||f.goToOption(mAe.Last)})}});case MAe.Home:if(e.shiftKey)break;return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.First);case MAe.PageUp:return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.First);case MAe.End:if(e.shiftKey)break;return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.Last);case MAe.PageDown:return m.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(mAe.Last);case MAe.Escape:return m.current=!1,0!==d.comboboxState?void 0:(e.preventDefault(),d.optionsRef.current&&!d.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case MAe.Tab:if(m.current=!1,0!==d.comboboxState)return;0===d.mode&&f.selectActiveOption(),f.closeCombobox()}}),w=Yke(e=>{v.current?b.current=e:(f.openCombobox(),null==l||l(e))}),T=Yke(()=>{m.current=!1}),C=Kke(()=>{if(d.labelId)return[d.labelId].join(" ")},[d.labelId]),S=q.useMemo(()=>({open:0===d.comboboxState,disabled:d.disabled}),[d]);return xAe({ourProps:{ref:h,id:s,role:"combobox",type:c,"aria-controls":null==(n=d.optionsRef.current)?void 0:n.id,"aria-expanded":d.disabled?void 0:0===d.comboboxState,"aria-activedescendant":null===d.activeOptionIndex||null==(r=d.options[d.activeOptionIndex])?void 0:r.id,"aria-labelledby":C,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(i=e.defaultValue)?i:void 0!==d.defaultValue?null==u?void 0:u(d.defaultValue):null)?o:d.defaultValue,disabled:d.disabled,onCompositionStart:x,onCompositionEnd:E,onKeyDown:D,onChange:w,onBlur:T},theirProps:p,slot:S,defaultTag:"input",name:"Combobox.Input"})}),nNe=wAe(function(e,t){let n=Jke(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=QAe("Combobox.Label"),a=KAe("Combobox.Label"),s=hAe(o.labelRef,t);Hke(()=>a.registerLabel(r),[r]);let l=Yke(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}),u=q.useMemo(()=>({open:0===o.comboboxState,disabled:o.disabled}),[o]);return xAe({ourProps:{ref:s,id:r,onClick:l},theirProps:i,slot:u,defaultTag:"label",name:"Combobox.Label"})}),rNe=wAe(function(e,t){let n=Jke(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,a=QAe("Combobox.Options"),s=hAe(a.optionsRef,t),l=q.useContext(PAe),u=null!==l?(l&OAe.Open)===OAe.Open:0===a.comboboxState;Hke(()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t},[a.optionsPropsRef,e.static]),Hke(()=>{a.optionsPropsRef.current.hold=i},[a.optionsPropsRef,i]),function({container:e,accept:t,walk:n,enabled:r=!0}){let i=q.useRef(t),o=q.useRef(n);q.useEffect(()=>{i.current=t,o.current=n},[t,n]),Hke(()=>{if(!e||!r)return;let t=eAe(e);if(!t)return;let n=i.current,a=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[e,r,i,o])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Kke(()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id},[a.labelId,a.buttonRef.current]),p=q.useMemo(()=>({open:0===a.comboboxState}),[a]);return xAe({ourProps:{"aria-labelledby":c,role:"listbox","aria-multiselectable":1===a.mode||void 0,id:r,ref:s},theirProps:o,slot:p,defaultTag:"ul",features:JAe,visible:u,name:"Combobox.Options"})}),iNe=wAe(function(e,t){var n,r;let i=Jke(),{id:o=`headlessui-combobox-option-${i}`,disabled:a=!1,value:s,...l}=e,u=QAe("Combobox.Option"),c=KAe("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===o,d=u.isSelected(s),f=q.useRef(null),h=Gke({disabled:a,value:s,domRef:f,textValue:null==(r=null==(n=f.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),m=hAe(t,f),g=Yke(()=>c.selectOption(o));Hke(()=>c.registerOption(o,h),[h,o]);let y=q.useRef(!u.__demoMode);Hke(()=>{if(!u.__demoMode)return;let e=Wke();return e.requestAnimationFrame(()=>{y.current=!0}),e.dispose},[]),Hke(()=>{if(0!==u.comboboxState||!p||!y.current||0===u.activationTrigger)return;let e=Wke();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let v=Yke(e=>{if(a)return e.preventDefault();g(),0===u.mode&&c.closeCombobox(),BAe()||requestAnimationFrame(()=>{var e;return null==(e=u.inputRef.current)?void 0:e.focus()})}),b=Yke(()=>{if(a)return c.goToOption(mAe.Nothing);c.goToOption(mAe.Specific,o)}),x=function(){let e=q.useRef([-1,-1]);return{wasMoved(t){let n=RAe(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=RAe(t)}}}(),E=Yke(e=>x.update(e)),D=Yke(e=>{x.wasMoved(e)&&(a||p||c.goToOption(mAe.Specific,o,0))}),w=Yke(e=>{x.wasMoved(e)&&(a||p&&(u.optionsPropsRef.current.hold||c.goToOption(mAe.Nothing)))}),T=q.useMemo(()=>({active:p,selected:d,disabled:a}),[p,d,a]);return xAe({ourProps:{id:o,ref:m,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":d,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:E,onMouseEnter:E,onPointerMove:D,onMouseMove:D,onPointerLeave:w,onMouseLeave:w},theirProps:l,slot:T,defaultTag:"li",name:"Combobox.Option"})}),oNe=Object.assign(ZAe,{Input:tNe,Button:eNe,Label:nNe,Options:rNe,Option:iNe});var aNe=Object.defineProperty,sNe=(e,t)=>aNe(e,"name",{value:t,configurable:!0});function lNe(e){const t=q.createContext(null);return t.displayName=e,t}function uNe(e){function t(n){var r;const i=q.useContext(e);if(null===i&&null!=n&&n.nonNull)throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return sNe(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}sNe(lNe,"createNullableContext"),sNe(uNe,"createContextHook");const cNe=lNe("StorageContext");function pNe(e){const t=q.useRef(!0),[n,r]=q.useState(new Gpe(e.storage));return q.useEffect(()=>{t.current?t.current=!1:r(new Gpe(e.storage))},[e.storage]),ee.jsx(cNe.Provider,{value:n,children:e.children})}sNe(pNe,"StorageContextProvider");const dNe=uNe(cNe),fNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),hNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),mNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),gNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),yNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1 1L12.9998 12.9997"}),q.createElement("path",{d:"M13 1L1.00079 13.0003"})),"SvgClose"),vNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),q.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),bNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),xNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgDeprecatedEnumValue"),ENe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),DNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),"SvgDirective"),wNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),"SvgDocsFilled"),TNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),q.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),CNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgEnumValue"),SNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),kNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),q.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),q.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),"SvgHistory"),ANe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),q.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),NNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgKeyboardShortcut"),FNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),q.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),_Ne=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),q.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),PNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),q.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),ONe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),"SvgPlay"),INe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),"SvgPlus"),LNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),q.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),q.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),"SvgPrettify"),MNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),q.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),q.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),q.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),"SvgReload"),jNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),q.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),"SvgRootType"),RNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),"SvgSettings"),BNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),"SvgStarFilled"),VNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),"SvgStar"),UNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),zNe=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},void 0===e?q.createElement("title",{id:t},"trash icon"):e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),"SvgTrash"),$Ne=sNe(({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),q.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),qNe=EFe(fNe),HNe=EFe(hNe),GNe=EFe(mNe),KNe=EFe(gNe),WNe=EFe(yNe),QNe=EFe(vNe),YNe=EFe(bNe),XNe=EFe(xNe),JNe=EFe(ENe),ZNe=EFe(DNe),eFe=EFe(wNe,"filled docs icon"),tFe=EFe(TNe),nFe=EFe(CNe),rFe=EFe(SNe),iFe=EFe(kNe),oFe=EFe(ANe),aFe=EFe(NNe),sFe=EFe(FNe),lFe=EFe(_Ne),uFe=EFe(PNe),cFe=EFe(ONe),pFe=EFe(INe),dFe=EFe(LNe),fFe=EFe(MNe),hFe=EFe(jNe),mFe=EFe(RNe),gFe=EFe(BNe,"filled star icon"),yFe=EFe(VNe),vFe=EFe(UNe),bFe=EFe(zNe,"trash icon"),xFe=EFe($Ne);function EFe(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){function n(n){return ee.jsx(e,{title:t,...n})}return sNe(n,"IconComponent"),n.displayName=e.name,n}sNe(EFe,"generateIcon");const DFe=q.forwardRef((e,t)=>ee.jsx("button",{...e,ref:t,className:upe("graphiql-un-styled",e.className)}));DFe.displayName="UnStyledButton";const wFe=q.forwardRef((e,t)=>ee.jsx("button",{...e,ref:t,className:upe("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));wFe.displayName="Button";const TFe=q.forwardRef((e,t)=>ee.jsx("div",{...e,ref:t,className:upe("graphiql-button-group",e.className)}));TFe.displayName="ButtonGroup";const CFe=sNe((e,t)=>Object.entries(t).reduce((e,[t,n])=>(e[t]=n,e),e),"createComponentGroup"),SFe=q.forwardRef((e,t)=>ee.jsx(bB,{asChild:!0,children:ee.jsxs(DFe,{...e,ref:t,type:"button",className:upe("graphiql-dialog-close",e.className),children:[ee.jsx(oce,{children:"Close dialog"}),ee.jsx(WNe,{})]})}));function kFe({children:e,...t}){return ee.jsx(dB,{...t,children:ee.jsxs(hB,{children:[ee.jsx(mB,{className:"graphiql-dialog-overlay"}),ee.jsx(gB,{className:"graphiql-dialog",children:e})]})})}SFe.displayName="Dialog.Close",sNe(kFe,"DialogRoot");const AFe=CFe(kFe,{Close:SFe,Title:yB,Trigger:fB,Description:vB}),NFe=q.forwardRef((e,t)=>ee.jsx(cye,{asChild:!0,children:ee.jsx("button",{...e,ref:t,className:upe("graphiql-un-styled",e.className)})}));function FFe({children:e,align:t="start",sideOffset:n=5,className:r,...i}){return ee.jsx(pye,{children:ee.jsx(dye,{align:t,sideOffset:n,className:upe("graphiql-dropdown-content",r),...i,children:e})})}NFe.displayName="DropdownMenuButton",sNe(FFe,"Content");const _Fe=sNe(({className:e,children:t,...n})=>ee.jsx(fye,{className:upe("graphiql-dropdown-item",e),...n,children:t}),"Item"),PFe=CFe(uye,{Button:NFe,Item:_Fe,Content:FFe}),OFe=new lxe({breaks:!0,linkify:!0}),IFe=q.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>ee.jsx("div",{...r,ref:i,className:upe(`graphiql-markdown-${n}`,t&&"graphiql-markdown-preview",r.className),dangerouslySetInnerHTML:{__html:OFe.render(e)}}));IFe.displayName="MarkdownContent";const LFe=q.forwardRef((e,t)=>ee.jsx("div",{...e,ref:t,className:upe("graphiql-spinner",e.className)}));function MFe({children:e,align:t="start",side:n="bottom",sideOffset:r=5,label:i}){return ee.jsxs(Oce,{children:[ee.jsx(Ice,{asChild:!0,children:e}),ee.jsx(Lce,{children:ee.jsx(Mce,{className:"graphiql-tooltip",align:t,side:n,sideOffset:r,children:i})})]})}LFe.displayName="Spinner",sNe(MFe,"TooltipRoot");const jFe=CFe(MFe,{Provider:Pce}),RFe=q.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>ee.jsx(Uke.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:upe("graphiql-tab",e&&"graphiql-tab-active",r),children:n}));RFe.displayName="Tab";const BFe=q.forwardRef((e,t)=>ee.jsx(DFe,{...e,ref:t,type:"button",className:upe("graphiql-tab-button",e.className),children:e.children}));BFe.displayName="Tab.Button";const VFe=q.forwardRef((e,t)=>ee.jsx(jFe,{label:"Close Tab",children:ee.jsx(DFe,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:upe("graphiql-tab-close",e.className),children:ee.jsx(WNe,{})})}));VFe.displayName="Tab.Close";const UFe=CFe(RFe,{Button:BFe,Close:VFe}),zFe=q.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>ee.jsx(Uke.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:upe("graphiql-tabs",r),children:n}));zFe.displayName="Tabs";const $Fe=lNe("HistoryContext");function qFe(e){var t;const n=dNe(),r=q.useRef(new Qpe(n||new Gpe(null),e.maxHistoryLength||GFe)),[i,o]=q.useState((null==(t=r.current)?void 0:t.queries)||[]),a=q.useCallback(e=>{var t;null==(t=r.current)||t.updateHistory(e),o(r.current.queries)},[]),s=q.useCallback((e,t)=>{r.current.editLabel(e,t),o(r.current.queries)},[]),l=q.useCallback(e=>{r.current.toggleFavorite(e),o(r.current.queries)},[]),u=q.useCallback(e=>e,[]),c=q.useCallback((e,t=!1)=>{r.current.deleteHistory(e,t),o(r.current.queries)},[]),p=q.useMemo(()=>({addToHistory:a,editLabel:s,items:i,toggleFavorite:l,setActive:u,deleteFromHistory:c}),[a,s,i,l,u,c]);return ee.jsx($Fe.Provider,{value:p,children:e.children})}sNe(qFe,"HistoryContextProvider");const HFe=uNe($Fe),GFe=20;function KFe(){const{items:e,deleteFromHistory:t}=HFe({nonNull:!0});let n=e.slice().map((e,t)=>({...e,index:t})).reverse();const r=n.filter(e=>e.favorite);r.length&&(n=n.filter(e=>!e.favorite));const[i,o]=q.useState(null);q.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const a=q.useCallback(()=>{try{for(const e of n)t(e,!0);o("success")}catch{o("error")}},[t,n]);return ee.jsxs("section",{"aria-label":"History",className:"graphiql-history",children:[ee.jsxs("div",{className:"graphiql-history-header",children:["History",(i||n.length>0)&&ee.jsx(wFe,{type:"button",state:i||void 0,disabled:!n.length,onClick:a,children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),!!r.length&&ee.jsx("ul",{className:"graphiql-history-items",children:r.map(e=>ee.jsx(WFe,{item:e},e.index))}),!!r.length&&!!n.length&&ee.jsx("div",{className:"graphiql-history-item-spacer"}),!!n.length&&ee.jsx("ul",{className:"graphiql-history-items",children:n.map(e=>ee.jsx(WFe,{item:e},e.index))})]})}function WFe(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=HFe({nonNull:!0,caller:WFe}),{headerEditor:o,queryEditor:a,variableEditor:s}=zPe({nonNull:!0,caller:WFe}),l=q.useRef(null),u=q.useRef(null),[c,p]=q.useState(!1);q.useEffect(()=>{var e;c&&(null==(e=l.current)||e.focus())},[c]);const d=e.item.label||e.item.operationName||QFe(e.item.query),f=q.useCallback(()=>{var n;p(!1);const{index:r,...i}=e.item;t({...i,label:null==(n=l.current)?void 0:n.value},r)},[t,e.item]),h=q.useCallback(()=>{p(!1)},[]),m=q.useCallback(e=>{e.stopPropagation(),p(!0)},[]),g=q.useCallback(()=>{const{query:t,variables:n,headers:r}=e.item;null==a||a.setValue(t??""),null==s||s.setValue(n??""),null==o||o.setValue(r??""),i(e.item)},[o,e.item,a,i,s]),y=q.useCallback(t=>{t.stopPropagation(),r(e.item)},[e.item,r]),v=q.useCallback(t=>{t.stopPropagation(),n(e.item)},[e.item,n]);return ee.jsx("li",{className:upe("graphiql-history-item",c&&"editable"),children:c?ee.jsxs(ee.Fragment,{children:[ee.jsx("input",{type:"text",defaultValue:e.item.label,ref:l,onKeyDown:n=>{"Esc"===n.key?p(!1):"Enter"===n.key&&(p(!1),t({...e.item,label:n.currentTarget.value}))},placeholder:"Type a label"}),ee.jsx(DFe,{type:"button",ref:u,onClick:f,children:"Save"}),ee.jsx(DFe,{type:"button",ref:u,onClick:h,children:ee.jsx(WNe,{})})]}):ee.jsxs(ee.Fragment,{children:[ee.jsx(jFe,{label:"Set active",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-label",onClick:g,"aria-label":"Set active",children:d})}),ee.jsx(jFe,{label:"Edit label",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:m,"aria-label":"Edit label",children:ee.jsx(uFe,{"aria-hidden":"true"})})}),ee.jsx(jFe,{label:e.item.favorite?"Remove favorite":"Add favorite",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:v,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?ee.jsx(gFe,{"aria-hidden":"true"}):ee.jsx(yFe,{"aria-hidden":"true"})})}),ee.jsx(jFe,{label:"Delete from history",children:ee.jsx(DFe,{type:"button",className:"graphiql-history-item-action",onClick:y,"aria-label":"Delete from history",children:ee.jsx(bFe,{"aria-hidden":"true"})})})]})})}function QFe(e){return null==e?void 0:e.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}sNe(KFe,"History"),sNe(WFe,"HistoryItem"),sNe(QFe,"formatQuery");const YFe=lNe("ExecutionContext");function XFe({fetcher:e,getDefaultFieldNames:t,children:n,operationName:r}){if(!e)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:i,headerEditor:o,queryEditor:a,responseEditor:s,variableEditor:l,updateActiveTabValues:u}=zPe({nonNull:!0,caller:XFe}),c=HFe(),p=iPe({getDefaultFieldNames:t,caller:XFe}),[d,f]=q.useState(!1),[h,m]=q.useState(null),g=q.useRef(0),y=q.useCallback(()=>{null==h||h.unsubscribe(),f(!1),m(null)},[h]),v=q.useCallback(async()=>{if(!a||!s)return;if(h)return void y();const t=sNe(e=>{s.setValue(e),u({response:e})},"setResponse");g.current+=1;const n=g.current;let d=p()||a.getValue();const v=null==l?void 0:l.getValue();let b;try{b=ZFe({json:v,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(w){return void t(w instanceof Error?w.message:`${w}`)}const x=null==o?void 0:o.getValue();let E;try{E=ZFe({json:x,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(w){return void t(w instanceof Error?w.message:`${w}`)}if(i){const e=a.documentAST?((e,t)=>{if(!t)return[];const n=new Map,r=new Set;sd.visit(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add(cme(t.get(a)));const o=[];for(const a of i)sd.visit(a,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(cme(t.get(e.name.value))),r.add(e.name.value))}}),n.has(a.name.value)||o.push(a);return o})(a.documentAST,i):[];e.length>0&&(d+="\n"+e.map(e=>sd.print(e)).join("\n"))}t(""),f(!0);const D=r??a.operationName??void 0;null==c||c.addToHistory({query:d,variables:v,headers:x,operationName:D});try{const r={},i=sNe(e=>{if(n!==g.current)return;let i=!!Array.isArray(e)&&e;if(!i&&"object"==typeof e&&null!==e&&"hasNext"in e&&(i=[e]),i){for(const e of i)e_e(r,e);f(!1),t(Bpe(r))}else{const n=Bpe(e);f(!1),t(n)}},"handleResponse"),o=e({query:d,variables:b,operationName:D},{headers:E??void 0,documentAST:a.documentAST??void 0}),s=await Promise.resolve(o);if(dpe(s))m(s.subscribe({next(e){i(e)},error(e){f(!1),e&&t(Rpe(e)),m(null)},complete(){f(!1),m(null)}}));else if(fpe(s)){m({unsubscribe:()=>{var e,t;return null==(t=(e=s[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});for await(const e of s)i(e);f(!1),m(null)}else i(s)}catch(w){f(!1),t(Rpe(w)),m(null)}},[p,i,e,o,c,r,a,s,y,h,u,l]),b=!!h,x=q.useMemo(()=>({isFetching:d,isSubscribed:b,operationName:r??null,run:v,stop:y}),[d,b,r,v,y]);return ee.jsx(YFe.Provider,{value:x,children:n})}sNe(XFe,"ExecutionContextProvider");const JFe=uNe(YFe);function ZFe({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(ht){throw new Error(`${t}: ${ht instanceof Error?ht.message:ht}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}function e_e(e,t){const n=["data",...t.path??[]];if(t.items)for(const r of t.items)Ome(e,n.join("."),r),n[n.length-1]++;if(t.data&&Ome(e,n.join("."),t.data,{merge:!0}),t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&Ome(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const r of t.incremental)e_e(e,r)}sNe(ZFe,"tryParseJsonObject"),sNe(e_e,"mergeIncrementalResult");const t_e="graphiql",n_e="sublime";let r_e=!1;"object"==typeof window&&(r_e=0===window.navigator.platform.toLowerCase().indexOf("mac"));const i_e={[r_e?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function o_e(e,t){const n=await spe(()=>Promise.resolve().then(()=>cUe),void 0,import.meta.url).then(e=>e.c).then(e=>"function"==typeof e?e:e.default);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[spe(()=>Promise.resolve().then(()=>gUe),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>SUe),void 0,import.meta.url).then(e=>e.m),spe(()=>Promise.resolve().then(()=>PUe),void 0,import.meta.url).then(e=>e.c),spe(()=>Promise.resolve().then(()=>RUe),void 0,import.meta.url).then(e=>e.b),spe(()=>Promise.resolve().then(()=>KUe),void 0,import.meta.url).then(e=>e.f),spe(()=>Promise.resolve().then(()=>ZUe),void 0,import.meta.url).then(e=>e.l),spe(()=>Promise.resolve().then(()=>uze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Eze),void 0,import.meta.url).then(e=>e.j),spe(()=>Promise.resolve().then(()=>mze),void 0,import.meta.url).then(e=>e.d),spe(()=>Promise.resolve().then(()=>kze),void 0,import.meta.url).then(e=>e.s),...e]),n}sNe(o_e,"importCodeMirror");const a_e=sNe(e=>e?sd.print(e):"","printDefault");function s_e({field:e}){if(!("defaultValue"in e)||void 0===e.defaultValue)return null;const t=sd.astFromValue(e.defaultValue,e.type);return t?ee.jsxs(ee.Fragment,{children:[" = ",ee.jsx("span",{className:"graphiql-doc-explorer-default-value",children:a_e(t)})]}):null}sNe(s_e,"DefaultValue");const l_e=lNe("SchemaContext");function u_e(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:t,headerEditor:n}=zPe({nonNull:!0,caller:u_e}),[r,i]=q.useState(),[o,a]=q.useState(!1),[s,l]=q.useState(null),u=q.useRef(0);q.useEffect(()=>{i(sd.isSchema(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),u.current++},[e.schema]);const c=q.useRef(t);q.useEffect(()=>{n&&(c.current=n.getValue())});const{introspectionQuery:p,introspectionQueryName:d,introspectionQuerySansSubscriptions:f}=p_e({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:h,onSchemaChange:m,dangerouslyAssumeSchemaIsValid:g,children:y}=e,v=q.useCallback(()=>{if(sd.isSchema(e.schema)||null===e.schema)return;const t=++u.current,n=e.schema;async function r(){if(n)return n;const e=d_e(c.current);if(!e.isValidJSON)return void l("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=hpe(h({query:p,operationName:d},t));if(!ppe(r))return void l("Fetcher did not return a Promise for introspection.");a(!0),l(null);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=hpe(h({query:f,operationName:d},t));if(!ppe(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(a(!1),null!=i&&i.data&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:Bpe(i);l(o)}sNe(r,"fetchIntrospectionData"),r().then(e=>{if(t===u.current&&e)try{const t=sd.buildClientSchema(e);i(t),null==m||m(t)}catch(n){l(Rpe(n))}}).catch(e=>{t===u.current&&(l(Rpe(e)),a(!1))})},[h,d,p,f,m,e.schema]);q.useEffect(()=>{v()},[v]),q.useEffect(()=>{function e(e){e.ctrlKey&&"R"===e.key&&v()}return sNe(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)});const b=q.useMemo(()=>!r||g?[]:sd.validateSchema(r),[r,g]),x=q.useMemo(()=>({fetchError:s,introspect:v,isFetching:o,schema:r,validationErrors:b}),[s,v,o,r,b]);return ee.jsx(l_e.Provider,{value:x,children:y})}sNe(u_e,"SchemaContextProvider");const c_e=uNe(l_e);function p_e({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return q.useMemo(()=>{const r=t||"IntrospectionQuery";let i=sd.getIntrospectionQuery({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}},[e,t,n])}function d_e(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}sNe(p_e,"useIntrospectionQuery"),sNe(d_e,"parseHeaderString");const f_e={name:"Docs"},h_e=lNe("ExplorerContext");function m_e(e){const{schema:t,validationErrors:n}=c_e({nonNull:!0,caller:m_e}),[r,i]=q.useState([f_e]),o=q.useCallback(e=>{i(t=>t.at(-1).def===e.def?t:[...t,e])},[]),a=q.useCallback(()=>{i(e=>e.length>1?e.slice(0,-1):e)},[]),s=q.useCallback(()=>{i(e=>1===e.length?e:[f_e])},[]);q.useEffect(()=>{null==t||n.length>0?s():i(e=>{if(1===e.length)return e;const n=[f_e];let r=null;for(const i of e)if(i!==f_e)if(i.def)if(sd.isNamedType(i.def)){const e=t.getType(i.def.name);if(!e)break;n.push({name:i.name,def:e}),r=e}else{if(null===r)break;if(sd.isObjectType(r)||sd.isInputObjectType(r)){const e=r.getFields()[i.name];if(!e)break;n.push({name:i.name,def:e})}else{if(sd.isScalarType(r)||sd.isEnumType(r)||sd.isInterfaceType(r)||sd.isUnionType(r))break;{const e=r;if(!e.args.find(e=>e.name===i.name))break;n.push({name:i.name,def:e})}}}else r=null,n.push(i);return n})},[s,t,n]);const l=q.useMemo(()=>({explorerNavStack:r,push:o,pop:a,reset:s}),[r,o,a,s]);return ee.jsx(h_e.Provider,{value:l,children:e.children})}sNe(m_e,"ExplorerContextProvider");const g_e=uNe(h_e);function y_e(e,t){return sd.isNonNullType(e)?ee.jsxs(ee.Fragment,{children:[y_e(e.ofType,t),"!"]}):sd.isListType(e)?ee.jsxs(ee.Fragment,{children:["[",y_e(e.ofType,t),"]"]}):t(e)}function v_e(e){const{push:t}=g_e({nonNull:!0,caller:v_e});return e.type?y_e(e.type,e=>ee.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name})):null}function b_e({arg:e,showDefaultValue:t,inline:n}){const r=ee.jsxs("span",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:e.name}),": ",ee.jsx(v_e,{type:e.type}),!1!==t&&ee.jsx(s_e,{field:e})]});return n?r:ee.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[r,e.description?ee.jsx(IFe,{type:"description",children:e.description}):null,e.deprecationReason?ee.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[ee.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),ee.jsx(IFe,{type:"deprecation",children:e.deprecationReason})]}):null]})}function x_e(e){return e.children?ee.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[ee.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),ee.jsx(IFe,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}function E_e({directive:e}){return ee.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}function D_e(e){const t=w_e[e.title];return ee.jsxs("div",{children:[ee.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[ee.jsx(t,{}),e.title]}),ee.jsx("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}sNe(y_e,"renderType"),sNe(v_e,"TypeLink"),sNe(b_e,"Argument"),sNe(x_e,"DeprecationReason"),sNe(E_e,"Directive"),sNe(D_e,"ExplorerSection");const w_e={Arguments:qNe,"Deprecated Arguments":YNe,"Deprecated Enum Values":XNe,"Deprecated Fields":JNe,Directives:ZNe,"Enum Values":nFe,Fields:rFe,Implements:oFe,Implementations:xFe,"Possible Types":xFe,"Root Types":hFe,Type:xFe,"All Schema Types":xFe};function T_e(e){return ee.jsxs(ee.Fragment,{children:[e.field.description?ee.jsx(IFe,{type:"description",children:e.field.description}):null,ee.jsx(x_e,{preview:!1,children:e.field.deprecationReason}),ee.jsx(D_e,{title:"Type",children:ee.jsx(v_e,{type:e.field.type})}),ee.jsx(C_e,{field:e.field}),ee.jsx(S_e,{field:e.field})]})}function C_e({field:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!("args"in e))return null;const i=[],o=[];for(const a of e.args)a.deprecationReason?o.push(a):i.push(a);return ee.jsxs(ee.Fragment,{children:[i.length>0?ee.jsx(D_e,{title:"Arguments",children:i.map(e=>ee.jsx(b_e,{arg:e},e.name))}):null,o.length>0?t||0===i.length?ee.jsx(D_e,{title:"Deprecated Arguments",children:o.map(e=>ee.jsx(b_e,{arg:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Arguments"}):null]})}function S_e({field:e}){var t;const n=(null==(t=e.astNode)?void 0:t.directives)||[];return n&&0!==n.length?ee.jsx(D_e,{title:"Directives",children:n.map(e=>ee.jsx("div",{children:ee.jsx(E_e,{directive:e})},e.name.value))}):null}function k_e(e){var t,n,r,i;const o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),s=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r),l=e.schema.getTypeMap(),u=[null==o?void 0:o.name,null==a?void 0:a.name,null==s?void 0:s.name];return ee.jsxs(ee.Fragment,{children:[ee.jsx(IFe,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),ee.jsxs(D_e,{title:"Root Types",children:[o?ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",ee.jsx(v_e,{type:o})]}):null,a&&ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",ee.jsx(v_e,{type:a})]}),s&&ee.jsxs("div",{children:[ee.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",ee.jsx(v_e,{type:s})]})]}),ee.jsx(D_e,{title:"All Schema Types",children:l&&ee.jsx("div",{children:Object.values(l).map(e=>u.includes(e.name)||e.name.startsWith("__")?null:ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))})})]})}function A_e(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}function N_e(){const{explorerNavStack:e,push:t}=g_e({nonNull:!0,caller:N_e}),n=q.useRef(null),r=F_e(),[i,o]=q.useState(""),[a,s]=q.useState(r(i)),l=q.useMemo(()=>A_e(200,e=>{s(r(e))}),[r]);q.useEffect(()=>{l(i)},[l,i]),q.useEffect(()=>{function e(e){var t;e.metaKey&&"k"===e.key&&(null==(t=n.current)||t.focus())}return sNe(e,"handleKeyDown"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);const u=e.at(-1),c=q.useCallback(e=>{t("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},[t]),p=q.useRef(!1),d=q.useCallback(e=>{p.current="focus"===e.type},[]);return 1===e.length||sd.isObjectType(u.def)||sd.isInterfaceType(u.def)||sd.isInputObjectType(u.def)?ee.jsxs(oNe,{as:"div",className:"graphiql-doc-explorer-search",onChange:c,"data-state":p?void 0:"idle","aria-label":`Search ${u.name}...`,children:[ee.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var e;null==(e=n.current)||e.focus()},children:[ee.jsx(sFe,{}),ee.jsx(oNe.Input,{autoComplete:"off",onFocus:d,onBlur:d,onChange:e=>o(e.target.value),placeholder:"⌘ K",ref:n,value:i,"data-cy":"doc-explorer-input"})]}),p.current&&ee.jsxs(oNe.Options,{"data-cy":"doc-explorer-list",children:[a.within.length+a.types.length+a.fields.length===0?ee.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):a.within.map((e,t)=>ee.jsx(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:ee.jsx(O_e,{field:e.field,argument:e.argument})},`within-${t}`)),a.within.length>0&&a.types.length+a.fields.length>0?ee.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,a.types.map((e,t)=>ee.jsx(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:ee.jsx(P_e,{type:e.type})},`type-${t}`)),a.fields.map((e,t)=>ee.jsxs(oNe.Option,{value:e,"data-cy":"doc-explorer-option",children:[ee.jsx(P_e,{type:e.type}),".",ee.jsx(O_e,{field:e.field,argument:e.argument})]},`field-${t}`))]})]}):null}function F_e(e){const{explorerNavStack:t}=g_e({nonNull:!0,caller:e||F_e}),{schema:n}=c_e({nonNull:!0,caller:e||F_e}),r=t.at(-1);return q.useCallback(e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const i=r.def,o=n.getTypeMap();let a=Object.keys(o);i&&(a=a.filter(e=>e!==i.name),a.unshift(i.name));for(const n of a){if(t.within.length+t.types.length+t.fields.length>=100)break;const r=o[n];if(i!==r&&__e(n,e)&&t.types.push({type:r}),!sd.isObjectType(r)&&!sd.isInterfaceType(r)&&!sd.isInputObjectType(r))continue;const a=r.getFields();for(const n in a){const o=a[n];let s;if(!__e(n,e)){if(!("args"in o))continue;if(s=o.args.filter(t=>__e(t.name,e)),0===s.length)continue}t[i===r?"within":"fields"].push(...s?s.map(e=>({type:r,field:o,argument:e})):[{type:r,field:o}])}}return t},[r.def,n])}function __e(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch{return e.toLowerCase().includes(t.toLowerCase())}}function P_e(e){return ee.jsx("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function O_e({field:e,argument:t}){return ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{className:"graphiql-doc-explorer-search-field",children:e.name}),t?ee.jsxs(ee.Fragment,{children:["(",ee.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:t.name}),":"," ",y_e(t.type,e=>ee.jsx(P_e,{type:e})),")"]}):null]})}function I_e(e){const{push:t}=g_e({nonNull:!0});return ee.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}function L_e(e){return sd.isNamedType(e.type)?ee.jsxs(ee.Fragment,{children:[e.type.description?ee.jsx(IFe,{type:"description",children:e.type.description}):null,ee.jsx(M_e,{type:e.type}),ee.jsx(j_e,{type:e.type}),ee.jsx(B_e,{type:e.type}),ee.jsx(U_e,{type:e.type})]}):null}function M_e({type:e}){return sd.isObjectType(e)&&e.getInterfaces().length>0?ee.jsx(D_e,{title:"Implements",children:e.getInterfaces().map(e=>ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))}):null}function j_e({type:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!sd.isObjectType(e)&&!sd.isInterfaceType(e)&&!sd.isInputObjectType(e))return null;const i=e.getFields(),o=[],a=[];for(const s of Object.keys(i).map(e=>i[e]))s.deprecationReason?a.push(s):o.push(s);return ee.jsxs(ee.Fragment,{children:[o.length>0?ee.jsx(D_e,{title:"Fields",children:o.map(e=>ee.jsx(R_e,{field:e},e.name))}):null,a.length>0?t||0===o.length?ee.jsx(D_e,{title:"Deprecated Fields",children:a.map(e=>ee.jsx(R_e,{field:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Fields"}):null]})}function R_e({field:e}){const t="args"in e?e.args.filter(e=>!e.deprecationReason):[];return ee.jsxs("div",{className:"graphiql-doc-explorer-item",children:[ee.jsxs("div",{children:[ee.jsx(I_e,{field:e}),t.length>0?ee.jsxs(ee.Fragment,{children:["(",ee.jsx("span",{children:t.map(e=>1===t.length?ee.jsx(b_e,{arg:e,inline:!0},e.name):ee.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:ee.jsx(b_e,{arg:e,inline:!0})},e.name))}),")"]}):null,": ",ee.jsx(v_e,{type:e.type}),ee.jsx(s_e,{field:e})]}),e.description?ee.jsx(IFe,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,ee.jsx(x_e,{children:e.deprecationReason})]})}function B_e({type:e}){const[t,n]=q.useState(!1),r=q.useCallback(()=>{n(!0)},[]);if(!sd.isEnumType(e))return null;const i=[],o=[];for(const a of e.getValues())a.deprecationReason?o.push(a):i.push(a);return ee.jsxs(ee.Fragment,{children:[i.length>0?ee.jsx(D_e,{title:"Enum Values",children:i.map(e=>ee.jsx(V_e,{value:e},e.name))}):null,o.length>0?t||0===i.length?ee.jsx(D_e,{title:"Deprecated Enum Values",children:o.map(e=>ee.jsx(V_e,{value:e},e.name))}):ee.jsx(wFe,{type:"button",onClick:r,children:"Show Deprecated Values"}):null]})}function V_e({value:e}){return ee.jsxs("div",{className:"graphiql-doc-explorer-item",children:[ee.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:e.name}),e.description?ee.jsx(IFe,{type:"description",children:e.description}):null,e.deprecationReason?ee.jsx(IFe,{type:"deprecation",children:e.deprecationReason}):null]})}function U_e({type:e}){const{schema:t}=c_e({nonNull:!0});return t&&sd.isAbstractType(e)?ee.jsx(D_e,{title:sd.isInterfaceType(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map(e=>ee.jsx("div",{children:ee.jsx(v_e,{type:e})},e.name))}):null}function z_e(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=c_e({nonNull:!0,caller:z_e}),{explorerNavStack:i,pop:o}=g_e({nonNull:!0,caller:z_e}),a=i.at(-1);let s,l=null;return e?l=ee.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):r.length>0?l=ee.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}):t?l=ee.jsx(LFe,{}):n?1===i.length?l=ee.jsx(k_e,{schema:n}):sd.isType(a.def)?l=ee.jsx(L_e,{type:a.def}):a.def&&(l=ee.jsx(T_e,{field:a.def})):l=ee.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),i.length>1&&(s=i.at(-2).name),ee.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[ee.jsxs("div",{className:"graphiql-doc-explorer-header",children:[ee.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[s&&ee.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),o()},"aria-label":`Go back to ${s}`,children:[ee.jsx(GNe,{}),s]}),ee.jsx("div",{className:"graphiql-doc-explorer-title",children:a.name})]}),ee.jsx(N_e,{},a.name)]}),ee.jsx("div",{className:"graphiql-doc-explorer-content",children:l})]})}sNe(T_e,"FieldDocumentation"),sNe(C_e,"Arguments"),sNe(S_e,"Directives"),sNe(k_e,"SchemaDocumentation"),sNe(A_e,"debounce"),sNe(N_e,"Search"),sNe(F_e,"useSearchResults"),sNe(__e,"isMatch"),sNe(P_e,"Type"),sNe(O_e,"Field$1"),sNe(I_e,"FieldLink"),sNe(L_e,"TypeDocumentation"),sNe(M_e,"ImplementsInterfaces"),sNe(j_e,"Fields"),sNe(R_e,"Field"),sNe(B_e,"EnumValues"),sNe(V_e,"EnumValue"),sNe(U_e,"PossibleTypes"),sNe(z_e,"DocExplorer");const $_e={title:"Documentation Explorer",icon:sNe(function(){const e=K_e();return(null==e?void 0:e.visiblePlugin)===$_e?ee.jsx(eFe,{}):ee.jsx(tFe,{})},"Icon"),content:z_e},q_e={title:"History",icon:iFe,content:KFe},H_e=lNe("PluginContext");function G_e(e){const t=dNe(),n=g_e(),r=HFe(),i=!!n,o=!!r,a=q.useMemo(()=>{const t=[],n={};i&&(t.push($_e),n[$_e.title]=!0),o&&(t.push(q_e),n[q_e.title]=!0);for(const r of e.plugins||[]){if("string"!=typeof r.title||!r.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[r.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${r.title}'`);t.push(r),n[r.title]=!0}return t},[i,o,e.plugins]),[s,l]=q.useState(()=>{const n=null==t?void 0:t.get(W_e);return a.find(e=>e.title===n)||(n&&(null==t||t.set(W_e,"")),e.visiblePlugin&&a.find(t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:u,children:c}=e,p=q.useCallback(e=>{const t=e&&a.find(t=>("string"==typeof e?t.title:t)===e)||null;l(e=>t===e?e:(null==u||u(t),t))},[u,a]);q.useEffect(()=>{e.visiblePlugin&&p(e.visiblePlugin)},[a,e.visiblePlugin,p]);const d=q.useMemo(()=>({plugins:a,setVisiblePlugin:p,visiblePlugin:s}),[a,p,s]);return ee.jsx(H_e.Provider,{value:d,children:c})}sNe(G_e,"PluginContextProvider");const K_e=uNe(H_e),W_e="visiblePlugin";function Q_e(e,t,n,r,i,o){function a(e){if(!(n&&r&&i&&e.currentTarget instanceof HTMLElement))return;const t=e.currentTarget.textContent||"",a=n.getType(t);a&&(i.setVisiblePlugin($_e),r.push({name:a.name,def:a}),null==o||o(a))}o_e([],{useCommonAddons:!1}).then(e=>{let n,r,i,o,s,l,u,c,p;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const d=document.createElement("header");d.className="CodeMirror-hint-information-header",n.append(d),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",d.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",d.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const f=document.createElement("span");f.className="CodeMirror-hint-information-deprecation-label",f.textContent="Deprecated",c.append(f),p=document.createElement("div"),p.className="CodeMirror-hint-information-deprecation-reason",c.append(p);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=sNe(()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")},"handleScroll");let y;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",y=sNe(t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",y),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,p=null,y=null)},"onRemoveFn"))}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=sNe(e=>{sd.isNonNullType(e)?(l.textContent="!"+l.textContent,t(e.ofType)):sd.isListType(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name},"renderType");o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=OFe.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&p&&(e.deprecationReason?(c.style.display="block",p.innerHTML=OFe.render(e.deprecationReason)):(c.style.display="none",p.innerHTML=""))})}),sNe(a,"onClickHintInformation")}function Y_e(e,t){q.useEffect(()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},[e,t])}function X_e(e,t,n){q.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}function J_e(e,t,n,r,i){const{updateActiveTabValues:o}=zPe({nonNull:!0,caller:i}),a=dNe();q.useEffect(()=>{if(!e)return;const i=A_e(500,e=>{!a||null===n||a.set(n,e)}),s=A_e(100,e=>{o({[r]:e})}),l=sNe((e,n)=>{if(!n)return;const r=e.getValue();i(r),s(r),null==t||t(r)},"handleChange");return e.on("change",l),()=>e.off("change",l)},[t,e,a,n,r,o])}function Z_e(e,t,n){const{schema:r}=c_e({nonNull:!0,caller:n}),i=g_e(),o=K_e();q.useEffect(()=>{if(!e)return;const n=sNe((e,n)=>{Q_e(0,n,r,i,o,e=>{null==t||t({kind:"Type",type:e,schema:r||void 0})})},"handleCompletion");return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},[t,e,i,o,r])}function ePe(e,t,n){q.useEffect(()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},[e,t,n])}function tPe({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=zPe({nonNull:!0,caller:e||tPe});return q.useCallback(()=>{if(!n)return;const e=n.getValue();pM(e),null==t||t(e)},[n,t])}function nPe({caller:e}={}){const{queryEditor:t}=zPe({nonNull:!0,caller:e||nPe}),{schema:n}=c_e({nonNull:!0,caller:nPe});return q.useCallback(()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();!e||!r||t.setValue(sd.print(Hpe(e,n)))},[t,n])}function rPe({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=zPe({nonNull:!0,caller:e||rPe});return q.useCallback(()=>{if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=sd.print(sd.parse(e));n!==e&&t.setValue(n)}},[t,r,n])}function iPe({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=c_e({nonNull:!0,caller:t||iPe}),{queryEditor:r}=zPe({nonNull:!0,caller:t||iPe});return q.useCallback(()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=Vpe(n,t,e);return i&&i.length>0&&r.operation(()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map(({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(const e of a)e.clear()},7e3);let s=t;for(const{index:r,string:o}of i)r{const t=zPe({nonNull:!0})[`${e}Editor`];let n="";const r=(null==t?void 0:t.getValue())??!1;r&&r.length>0&&(n=r);const i=q.useCallback(e=>null==t?void 0:t.setValue(e),[t]);return q.useMemo(()=>[n,i],[n,i])},"useEditorState"),aPe=sNe(()=>oPe("query"),"useOperationsEditorState");function sPe([e,t]){const n=q.useRef({pending:null,last:e}),[r,i]=q.useState(e);q.useEffect(()=>{n.current.last===e||(n.current.last=e,null===n.current.pending?i(e):n.current.pending===e?(n.current.pending=null,e!==r&&(n.current.pending=r,t(r))):(n.current.pending=null,i(e)))},[e,r,t]);const o=q.useCallback(e=>{i(e),null===n.current.pending&&n.current.last!==e&&(n.current.pending=e,t(e))},[t]);return q.useMemo(()=>[r,o],[r,o])}function lPe({editorTheme:e=t_e,keyMap:t=n_e,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:a,setHeaderEditor:s,shouldPersistHeaders:l}=zPe({nonNull:!0,caller:i||lPe}),u=JFe(),c=nPe({caller:i||lPe}),p=rPe({caller:i||lPe}),d=q.useRef(null);return q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>Ize),void 0,import.meta.url).then(e=>e.j)]).then(n=>{if(!t)return;const i=d.current;if(!i)return;const a=n(i,{value:o,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!r&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:i_e});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:i})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:i})},"Alt-Space"(){a.showHint({completeSingle:!1,container:i})},"Shift-Space"(){a.showHint({completeSingle:!1,container:i})}}),a.on("keyup",(e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}),s(a)}),()=>{t=!1}},[e,o,r,s]),X_e(a,"keyMap",t),J_e(a,n,l?uPe:null,"headers",lPe),ePe(a,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ePe(a,["Shift-Ctrl-P"],p),ePe(a,["Shift-Ctrl-M"],c),d}sNe(sPe,"useOptimisticState"),sNe(lPe,"useHeaderEditor");const uPe="headers",cPe=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),pPe=new RegExp("["+cPe.join("")+"]","g");function dPe(e){return e.replace(pPe," ")}function fPe({editorTheme:e=t_e,keyMap:t=n_e,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},a){const{schema:s}=c_e({nonNull:!0,caller:a||fPe}),{externalFragments:l,initialQuery:u,queryEditor:c,setOperationName:p,setQueryEditor:d,validationRules:f,variableEditor:h,updateActiveTabValues:m}=zPe({nonNull:!0,caller:a||fPe}),g=JFe(),y=dNe(),v=g_e(),b=K_e(),x=tPe({caller:a||fPe,onCopyQuery:r}),E=nPe({caller:a||fPe}),D=rPe({caller:a||fPe}),w=q.useRef(null),T=q.useRef(),C=q.useRef(()=>{});q.useEffect(()=>{C.current=e=>{if(v&&b){switch(b.setVisiblePlugin($_e),e.kind){case"Type":v.push({name:e.type.name,def:e.type});break;case"Field":v.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&v.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&v.push({name:e.type.name,def:e.type})}null==n||n(e)}}},[v,n,b]),q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>Vze),void 0,import.meta.url).then(e=>e.c),spe(()=>Promise.resolve().then(()=>Gze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Kze),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Yze),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>F$e),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>V$e),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>G$e),void 0,import.meta.url)]).then(n=>{if(!t)return;T.current=n;const r=w.current;if(!r)return;const i=n(r,{value:u,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0,autocompleteOptions:{mode:Ghe.EXECUTABLE}},info:{schema:void 0,renderDescription:e=>OFe.render(e),onClick(e){C.current(e)}},jump:{schema:void 0,onClick(e){C.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...i_e,"Cmd-S"(){},"Ctrl-S"(){}}});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",(e,t)=>{yPe.test(t.key)&&e.execCommand("autocomplete")});let a=!1;i.on("startCompletion",()=>{a=!0}),i.on("endCompletion",()=>{a=!1}),i.on("keydown",(e,t)=>{"Escape"===t.key&&a&&t.stopPropagation()}),i.on("beforeChange",(e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(dPe);null==(n=t.update)||n.call(t,t.from,t.to,e)}}),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,d(i)}),()=>{t=!1}},[e,u,o,d]),X_e(c,"keyMap",t),q.useEffect(()=>{if(!c)return;function e(e){var t;const n=function(e,t){if(t)try{const n=sd.parse(t);return Object.assign(Object.assign({},fme(n,e)),{documentAST:n})}catch(qqe){return}}(s,e.getValue()),r=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n{const n=t.getValue();null==y||y.set(vPe,n);const r=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==y||y.set(bPe,o.operationName)),null==i||i(n,null==o?void 0:o.documentAST),null!=o&&o.operationName&&r!==o.operationName&&p(o.operationName),m({query:n,operationName:(null==o?void 0:o.operationName)??null})});return e(c),c.on("change",t),()=>c.off("change",t)},[i,c,s,p,y,h,m]),hPe(c,s??null,T),mPe(c,f??null,T),gPe(c,l,T),Z_e(c,n||null,fPe);const S=null==g?void 0:g.run,k=q.useCallback(()=>{var e;if(!(S&&c&&c.operations&&c.hasFocus()))return void(null==S||S());const t=c.indexFromPos(c.getCursor());let n;for(const r of c.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==c.operationName&&p(n),S()},[c,S,p]);return ePe(c,["Cmd-Enter","Ctrl-Enter"],k),ePe(c,["Shift-Ctrl-C"],x),ePe(c,["Shift-Ctrl-P","Shift-Ctrl-F"],D),ePe(c,["Shift-Ctrl-M"],E),w}function hPe(e,t,n){q.useEffect(()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function mPe(e,t,n){q.useEffect(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function gPe(e,t,n){const r=q.useMemo(()=>[...t.values()],[t]);q.useEffect(()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)},[e,r,n])}sNe(dPe,"normalizeWhitespace"),sNe(fPe,"useQueryEditor"),sNe(hPe,"useSynchronizeSchema"),sNe(mPe,"useSynchronizeValidationRules"),sNe(gPe,"useSynchronizeExternalFragments");const yPe=/^[a-zA-Z0-9_@(]$/,vPe="query",bPe="operationName";function xPe({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:a,shouldPersistHeaders:s}){const l=null==a?void 0:a.get(jPe);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=s?n:void 0;if(EPe(e)){const r=OPe({query:i,variables:o,headers:t});let a=-1;for(let t=0;t=0)e.activeTabIndex=a;else{const t=i?IPe(i):null;e.tabs.push({id:PPe(),hash:r,title:t||MPe,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(FPe)}}}function EPe(e){return e&&"object"==typeof e&&!Array.isArray(e)&&wPe(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(DPe)}function DPe(e){return e&&"object"==typeof e&&!Array.isArray(e)&&TPe(e,"id")&&TPe(e,"title")&&CPe(e,"query")&&CPe(e,"variables")&&CPe(e,"headers")&&CPe(e,"operationName")&&CPe(e,"response")}function wPe(e,t){return t in e&&"number"==typeof e[t]}function TPe(e,t){return t in e&&"string"==typeof e[t]}function CPe(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function SPe({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return q.useCallback(i=>{const o=(null==e?void 0:e.getValue())??null,a=(null==t?void 0:t.getValue())??null,s=(null==n?void 0:n.getValue())??null,l=(null==e?void 0:e.operationName)??null;return _Pe(i,{query:o,variables:a,headers:s,response:(null==r?void 0:r.getValue())??null,operationName:l})},[e,t,n,r])}function kPe(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function APe({storage:e,shouldPersistHeaders:t}){const n=q.useMemo(()=>A_e(500,t=>{null==e||e.set(jPe,t)}),[e]);return q.useCallback(e=>{n(kPe(e,t))},[t,n])}function NPe({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return q.useCallback(({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(i??""),null==t||t.setValue(o??""),null==n||n.setValue(a??""),null==r||r.setValue(s??"")},[n,e,r,t])}function FPe({query:e=null,variables:t=null,headers:n=null}={}){return{id:PPe(),hash:OPe({query:e,variables:t,headers:n}),title:e&&IPe(e)||MPe,query:e,variables:t,headers:n,operationName:null,response:null}}function _Pe(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:OPe(i),title:i.operationName||(i.query?IPe(i.query):void 0)||MPe}})}}function PPe(){const e=sNe(()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function OPe(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function IPe(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}function LPe(e){const t=null==e?void 0:e.get(jPe);if(t){const n=JSON.parse(t);null==e||e.set(jPe,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}sNe(xPe,"getDefaultTabState"),sNe(EPe,"isTabsState"),sNe(DPe,"isTabState"),sNe(wPe,"hasNumberKey"),sNe(TPe,"hasStringKey"),sNe(CPe,"hasStringOrNullKey"),sNe(SPe,"useSynchronizeActiveTabValues"),sNe(kPe,"serializeTabState"),sNe(APe,"useStoreTabs"),sNe(NPe,"useSetEditorValues"),sNe(FPe,"createTab"),sNe(_Pe,"setPropertiesInActiveTab"),sNe(PPe,"guid"),sNe(OPe,"hashFromTabContents"),sNe(IPe,"fuzzyExtractOperationName"),sNe(LPe,"clearHeadersFromTabs");const MPe="",jPe="tabState";function RPe({editorTheme:e=t_e,keyMap:t=n_e,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:a,variableEditor:s,setVariableEditor:l}=zPe({nonNull:!0,caller:o||RPe}),u=JFe(),c=nPe({caller:o||RPe}),p=rPe({caller:o||RPe}),d=q.useRef(null),f=q.useRef();return q.useEffect(()=>{let t=!0;return o_e([spe(()=>Promise.resolve().then(()=>rqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Iqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>Bqe),void 0,import.meta.url)]).then(n=>{if(!t)return;f.current=n;const r=d.current;if(!r)return;const o=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!i&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:i_e});o.addKeyMap({"Cmd-Space"(){o.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){o.showHint({completeSingle:!1,container:r})},"Alt-Space"(){o.showHint({completeSingle:!1,container:r})},"Shift-Space"(){o.showHint({completeSingle:!1,container:r})}}),o.on("keyup",(e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}),l(o)}),()=>{t=!1}},[e,a,i,l]),X_e(s,"keyMap",t),J_e(s,r,BPe,"variables",RPe),Z_e(s,n||null,RPe),ePe(s,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ePe(s,["Shift-Ctrl-P"],p),ePe(s,["Shift-Ctrl-M"],c),d}sNe(RPe,"useVariableEditor");const BPe="variables",VPe=lNe("EditorContext");function UPe(e){const t=dNe(),[n,r]=q.useState(null),[i,o]=q.useState(null),[a,s]=q.useState(null),[l,u]=q.useState(null),[c,p]=q.useState(()=>{const n=null!==(null==t?void 0:t.get($Pe));return!1!==e.shouldPersistHeaders&&n?"true"===(null==t?void 0:t.get($Pe)):!!e.shouldPersistHeaders});Y_e(n,e.headers),Y_e(i,e.query),Y_e(a,e.response),Y_e(l,e.variables);const d=APe({storage:t,shouldPersistHeaders:c}),[f]=q.useState(()=>{const n=e.query??(null==t?void 0:t.get(vPe))??null,r=e.variables??(null==t?void 0:t.get(BPe))??null,i=e.headers??(null==t?void 0:t.get(uPe))??null,o=e.response??"",a=xPe({query:n,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||qPe,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:c});return d(a),{query:n??(0===a.activeTabIndex?a.tabs[0].query:null)??"",variables:r??"",headers:i??e.defaultHeaders??"",response:o,tabState:a}}),[h,m]=q.useState(f.tabState),g=q.useCallback(e=>{if(e){null==t||t.set(uPe,(null==n?void 0:n.getValue())??"");const e=kPe(h,!0);null==t||t.set(jPe,e)}else null==t||t.set(uPe,""),LPe(t);p(e),null==t||t.set($Pe,e.toString())},[t,h,n]),y=q.useRef();q.useEffect(()=>{const t=!!e.shouldPersistHeaders;(null==y?void 0:y.current)!==t&&(g(t),y.current=t)},[e.shouldPersistHeaders,g]);const v=SPe({queryEditor:i,variableEditor:l,headerEditor:n,responseEditor:a}),b=NPe({queryEditor:i,variableEditor:l,headerEditor:n,responseEditor:a}),{onTabChange:x,defaultHeaders:E,children:D}=e,w=q.useCallback(()=>{m(e=>{const t=v(e),n={tabs:[...t.tabs,FPe({headers:E})],activeTabIndex:t.tabs.length};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[E,x,b,d,v]),T=q.useCallback(e=>{m(t=>{const n={...t,activeTabIndex:e};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[x,b,d]),C=q.useCallback(e=>{m(t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return d(r),b(r.tabs[r.activeTabIndex]),null==x||x(r),r})},[x,b,d]),S=q.useCallback(e=>{m(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return d(n),b(n.tabs[n.activeTabIndex]),null==x||x(n),n})},[x,b,d]),k=q.useCallback(e=>{m(t=>{const n=_Pe(t,e);return d(n),null==x||x(n),n})},[x,d]),{onEditOperationName:A}=e,N=q.useCallback(e=>{i&&(i.operationName=e,k({operationName:e}),null==A||A(e))},[A,i,k]),F=q.useMemo(()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)sd.visit(sd.parse(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t},[e.externalFragments]),_=q.useMemo(()=>e.validationRules||[],[e.validationRules]),P=q.useMemo(()=>({...h,addTab:w,changeTab:T,moveTab:C,closeTab:S,updateActiveTabValues:k,headerEditor:n,queryEditor:i,responseEditor:a,variableEditor:l,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:s,setVariableEditor:u,setOperationName:N,initialQuery:f.query,initialVariables:f.variables,initialHeaders:f.headers,initialResponse:f.response,externalFragments:F,validationRules:_,shouldPersistHeaders:c,setShouldPersistHeaders:g}),[h,w,T,C,S,k,n,i,a,l,N,f,F,_,c,g]);return ee.jsx(VPe.Provider,{value:P,children:D})}sNe(UPe,"EditorContextProvider");const zPe=uNe(VPe),$Pe="shouldPersistHeaders",qPe='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function HPe({isHidden:e,...t}){const{headerEditor:n}=zPe({nonNull:!0,caller:HPe}),r=lPe(t,HPe);return q.useEffect(()=>{e||null==n||n.refresh()},[n,e]),ee.jsx("div",{className:upe("graphiql-editor",e&&"hidden"),ref:r})}function GPe(e){var t;const[n,r]=q.useState({width:null,height:null}),[i,o]=q.useState(null),a=q.useRef(null),s=null==(t=KPe(e.token))?void 0:t.href;q.useEffect(()=>{if(a.current){if(!s)return r({width:null,height:null}),void o(null);fetch(s,{method:"HEAD"}).then(e=>{o(e.headers.get("Content-Type"))}).catch(()=>{o(null)})}},[s]);const l=null!==n.width&&null!==n.height?ee.jsxs("div",{children:[n.width,"x",n.height,null===i?null:" "+i]}):null;return ee.jsxs("div",{children:[ee.jsx("img",{onLoad:()=>{var e,t;r({width:(null==(e=a.current)?void 0:e.naturalWidth)??null,height:(null==(t=a.current)?void 0:t.naturalHeight)??null})},ref:a,src:s}),l]})}function KPe(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:e}=window;return new URL(t,e.protocol+"//"+e.host)}catch{return}}function WPe(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function QPe(e){const t=fPe(e,QPe);return ee.jsx("div",{className:"graphiql-editor",ref:t})}function YPe({responseTooltip:e,editorTheme:t=t_e,keyMap:n=n_e}={},r){const{fetchError:i,validationErrors:o}=c_e({nonNull:!0,caller:r||YPe}),{initialResponse:a,responseEditor:s,setResponseEditor:l}=zPe({nonNull:!0,caller:r||YPe}),u=q.useRef(null),c=q.useRef(e);return q.useEffect(()=>{c.current=e},[e]),q.useEffect(()=>{let e=!0;return o_e([spe(()=>Promise.resolve().then(()=>KUe),void 0,import.meta.url).then(e=>e.f),spe(()=>Promise.resolve().then(()=>RUe),void 0,import.meta.url).then(e=>e.b),spe(()=>Promise.resolve().then(()=>mze),void 0,import.meta.url).then(e=>e.d),spe(()=>Promise.resolve().then(()=>Gze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>uze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>Eze),void 0,import.meta.url).then(e=>e.j),spe(()=>Promise.resolve().then(()=>kze),void 0,import.meta.url).then(e=>e.s),spe(()=>Promise.resolve().then(()=>zqe),void 0,import.meta.url),spe(()=>Promise.resolve().then(()=>y$e),void 0,import.meta.url)],{useCommonAddons:!1}).then(n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",(e,t,n,i)=>{const o=[],a=c.current;return a&&o.push(ee.jsx(a,{pos:i,token:e})),GPe.shouldRender(e)&&o.push(ee.jsx(GPe,{token:e},"image-preview")),o.length?(up.render(o,r),r):(up.unmountComponentAtNode(r),null)});const i=u.current;if(!i)return;const o=n(i,{value:a,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:i_e});l(o)}),()=>{e=!1}},[t,a,l]),X_e(s,"keyMap",n),q.useEffect(()=>{i&&(null==s||s.setValue(i)),o.length>0&&(null==s||s.setValue(Rpe(o)))},[s,i,o]),u}function XPe(e){const t=YPe(e,XPe);return ee.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}function JPe({isHidden:e,...t}){const{variableEditor:n}=zPe({nonNull:!0,caller:JPe}),r=RPe(t,JPe);return q.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),ee.jsx("div",{className:upe("graphiql-editor",e&&"hidden"),ref:r})}function ZPe({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,fetcher:a,getDefaultFieldNames:s,headers:l,inputValueDeprecation:u,introspectionQueryName:c,maxHistoryLength:p,onEditOperationName:d,onSchemaChange:f,onTabChange:h,onTogglePluginVisibility:m,operationName:g,plugins:y,query:v,response:b,schema:x,schemaDescription:E,shouldPersistHeaders:D,storage:w,validationRules:T,variables:C,visiblePlugin:S}){return ee.jsx(pNe,{storage:w,children:ee.jsx(qFe,{maxHistoryLength:p,children:ee.jsx(UPe,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:l,onEditOperationName:d,onTabChange:h,query:v,response:b,shouldPersistHeaders:D,validationRules:T,variables:C,children:ee.jsx(u_e,{dangerouslyAssumeSchemaIsValid:t,fetcher:a,inputValueDeprecation:u,introspectionQueryName:c,onSchemaChange:f,schema:x,schemaDescription:E,children:ee.jsx(XFe,{getDefaultFieldNames:s,fetcher:a,operationName:g,children:ee.jsx(m_e,{children:ee.jsx(G_e,{onTogglePluginVisibility:m,plugins:y,visiblePlugin:S,children:e})})})})})})})}function eOe(){const e=dNe(),[t,n]=q.useState(()=>{if(!e)return null;const t=e.get(tOe);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"==typeof t&&e.set(tOe,""),null}});q.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=q.useCallback(t=>{null==e||e.set(tOe,t||""),n(t)},[e]);return q.useMemo(()=>({theme:t,setTheme:r}),[t,r])}sNe(HPe,"HeaderEditor"),sNe(GPe,"ImagePreview"),GPe.shouldRender=sNe(function(e){const t=KPe(e);return!!t&&WPe(t)},"shouldRender"),sNe(KPe,"tokenToURL"),sNe(WPe,"isImageURL"),sNe(QPe,"QueryEditor"),sNe(YPe,"useResponseEditor"),sNe(XPe,"ResponseEditor"),sNe(JPe,"VariableEditor"),sNe(ZPe,"GraphiQLProvider"),sNe(eOe,"useTheme");const tOe="theme";function nOe({defaultSizeRelation:e=rOe,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:a}){const s=dNe(),l=q.useMemo(()=>A_e(500,e=>{a&&(null==s||s.set(a,e))}),[s,a]),[u,c]=q.useState(()=>{const e=a&&(null==s?void 0:s.get(a));return e===iOe||"first"===n?"first":e===oOe||"second"===n?"second":null}),p=q.useCallback(e=>{e!==u&&(c(e),null==r||r(e))},[u,r]),d=q.useRef(null),f=q.useRef(null),h=q.useRef(null),m=q.useRef(`${e}`);q.useLayoutEffect(()=>{const e=a&&(null==s?void 0:s.get(a))||m.current;d.current&&(d.current.style.display="flex",d.current.style.flex=e===iOe||e===oOe?m.current:e),h.current&&(h.current.style.display="flex",h.current.style.flex="1"),f.current&&(f.current.style.display="flex")},[t,s,a]);const g=q.useCallback(e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",d.current)){const e=parseFloat(d.current.style.flex);(!Number.isFinite(e)||e<1)&&(d.current.style.flex="1")}},[]),y=q.useCallback(e=>{const t="first"===e?d.current:h.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",s&&a)){const e=s.get(a);d.current&&e!==iOe&&e!==oOe&&(d.current.style.flex=e||m.current)}},[s,a]);return q.useLayoutEffect(()=>{"first"===u?g("first"):y("first"),"second"===u?g("second"):y("second")},[u,g,y]),q.useEffect(()=>{if(!f.current||!d.current||!h.current)return;const e=f.current,n=d.current,r=n.parentElement,a="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",u="horizontal"===t?"right":"bottom",c="horizontal"===t?"clientWidth":"clientHeight";function g(t){t.preventDefault();const d=t[a]-e.getBoundingClientRect()[s];function f(t){if(0===t.buttons)return h();const f=t[a]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[u]-t[a]+d-e[c];if(f{e.removeEventListener("mousedown",g),e.removeEventListener("dblclick",y)}},[t,p,i,o,l]),q.useMemo(()=>({dragBarRef:f,hiddenElement:u,firstRef:d,setHiddenElement:c,secondRef:h}),[u,c])}sNe(nOe,"useDragResize");const rOe=1,iOe="hide-first",oOe="hide-second",aOe=q.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=q.useState(null),a=q.useCallback(e=>{try{null==t||t(e),o(null)}catch(n){o(n instanceof Error?n:new Error(`Toolbar button click failed: ${n}`))}},[t]);return ee.jsx(jFe,{label:e,children:ee.jsx(DFe,{...n,ref:r,type:"button",className:upe("graphiql-toolbar-button",i&&"error",n.className),onClick:a,"aria-label":i?i.message:e,"aria-invalid":i?"true":n["aria-invalid"]})})});function sOe(){const{queryEditor:e,setOperationName:t}=zPe({nonNull:!0,caller:sOe}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:a}=JFe({nonNull:!0,caller:sOe}),s=(null==e?void 0:e.operations)||[],l=s.length>1&&"string"!=typeof i,u=n||r,c=(u?"Stop":"Execute")+" query (Ctrl-Enter)",p={type:"button",className:"graphiql-execute-button",children:u?ee.jsx(vFe,{}):ee.jsx(cFe,{}),"aria-label":c};return l&&!u?ee.jsxs(PFe,{children:[ee.jsx(jFe,{label:c,children:ee.jsx(PFe.Button,{...p})}),ee.jsx(PFe.Content,{children:s.map((n,r)=>{const i=n.name?n.name.value:``;return ee.jsx(PFe.Item,{onSelect:()=>{var r;const i=null==(r=n.name)?void 0:r.value;e&&i&&i!==e.operationName&&t(i),o()},children:i},`${i}-${r}`)})})]}):ee.jsx(jFe,{label:c,children:ee.jsx("button",{...p,onClick:()=>{u?a():o()}})})}aOe.displayName="ToolbarButton",sNe(sOe,"ExecuteButton");const lOe=sNe(({button:e,children:t,label:n,...r})=>ee.jsxs(PFe,{...r,children:[ee.jsx(jFe,{label:n,children:ee.jsx(PFe.Button,{className:upe("graphiql-un-styled graphiql-toolbar-menu",r.className),"aria-label":n,children:e})}),ee.jsx(PFe.Content,{children:t})]}),"ToolbarMenuRoot");CFe(lOe,{Item:PFe.Item});var uOe={},cOe={};Object.defineProperty(cOe,"__esModule",{value:!0});var pOe="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},dOe=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch($qe){i=!0,o=$qe}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),fOe=Object.assign||function(e){for(var t=1;t0?""+t+i:t;var a=r.type.toString(),s={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:o}},type:(0,gOe.parseType)(a),directives:[]},l=void 0,u={};if(null!=n){var c=(0,gOe.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===n}));if(u[r]=u[r]+1||1,i)return i.defaultValue}}),p="NonNullType"===s.type.kind?fOe({},s,{type:s.type.type}):s;l=fOe({},p,{defaultValue:c})}else l=s;var d=Object.entries(u).filter(function(e){var t=dOe(e,2);return t[0],t[1]<2}).map(function(e){var t=dOe(e,2),n=t[0];return t[1],n});if(l){var f=e.props.setArgValue(l,!1);if(f){var h=f.definitions.find(function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value}),m=[].concat(vOe(h.variableDefinitions||[]),[l]).filter(function(e){return-1===d.indexOf(e.variable.name.value)}),g=fOe({},h,{variableDefinitions:m}),y=f.definitions.map(function(e){return h===e?g:e}),v=fOe({},f,{definitions:y});e.props.onCommit(v)}}},u=n&&"Variable"===n.kind,c=this.state.displayArgActions?mOe.createElement("button",{type:"submit",className:"toolbar-button",title:u?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),u?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===t});if(r){var i=r.defaultValue,o=e.props.setArgValue(i,{commit:!1});if(o){var a=o.definitions.find(function(t){return t.name.value===e.props.definition.name.value});if(!a)return;var s=0;(0,gOe.visit)(a,{Variable:function(e){e.name.value===t&&(s+=1)}});var l=a.variableDefinitions||[];s<2&&(l=l.filter(function(e){return e.variable.name.value!==t}));var u=fOe({},a,{variableDefinitions:l}),c=o.definitions.map(function(e){return a===e?u:e}),p=fOe({},o,{definitions:c});e.props.onCommit(p)}}}}():l()},style:i.styles.actionButtonStyle},mOe.createElement("span",{style:{color:i.colors.variable}},"$")):null;return mOe.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":o.name,className:"graphiql-explorer-"+r.name},mOe.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,gOe.isInputObjectType)(o)?mOe.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):mOe.createElement(AOe,{checked:!!n,styleConfig:this.props.styleConfig}),mOe.createElement("span",{style:{color:i.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,FOe(r)?"*":"",": ",c," ")," "),a||mOe.createElement("span",null)," ")}}]),e}(),BOe=function(){function e(){var t,n,r;bOe(this,e);for(var i=arguments.length,o=Array(i),a=0;a0&&t.setState({displayFieldActions:!0})},onMouseLeave:function(){return t.setState({displayFieldActions:!1})}},(0,gOe.isObjectType)(l)?mOe.createElement("span",null,s?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,gOe.isObjectType)(l)?null:mOe.createElement(AOe,{checked:!!s,styleConfig:this.props.styleConfig}),mOe.createElement("span",{style:{color:a.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?mOe.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(e){e.preventDefault(),e.stopPropagation();var n=l.name+"Fragment",r=(p||[]).filter(function(e){return e.name.value.startsWith(n)}).length;r>0&&(n=""+n+r);var i=s&&s.selectionSet?s.selectionSet.selections:[],o=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:l.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},u=t._modifyChildSelections(o,!1);if(u){var c=fOe({},u,{definitions:[].concat(vOe(u.definitions),[a])});t.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:fOe({},a.styles.actionButtonStyle)},mOe.createElement("span",null,"…")):null),s&&u.length?mOe.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},u.map(function(e){return mOe.createElement(MOe,{key:e.name,parentField:r,arg:e,selection:s,modifyArguments:t._setArguments,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition})})):null);if(s&&((0,gOe.isObjectType)(l)||(0,gOe.isInterfaceType)(l)||(0,gOe.isUnionType)(l))){var f=(0,gOe.isUnionType)(l)?{}:l.getFields(),h=s&&s.selectionSet?s.selectionSet.selections:[];return mOe.createElement("div",{className:"graphiql-explorer-"+r.name},d,mOe.createElement("div",{style:{marginLeft:16}},p?p.map(function(e){var n=i.getType(e.typeCondition.name.value),r=e.name.value;return n?mOe.createElement(VOe,{key:r,fragment:e,selections:h,modifySelections:t._modifyChildSelections,schema:i,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit}):null}):null,Object.keys(f).sort().map(function(n){return mOe.createElement(e,{key:n,field:f[n],selections:h,modifySelections:t._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition,availableFragments:t.props.availableFragments})}),(0,gOe.isInterfaceType)(l)||(0,gOe.isUnionType)(l)?i.getPossibleTypes(l).map(function(e){return mOe.createElement(BOe,{key:e.name,implementingType:e,selections:h,modifySelections:t._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:t.props.getDefaultScalarArgValue,makeDefaultArg:t.props.makeDefaultArg,onRunOperation:t.props.onRunOperation,styleConfig:t.props.styleConfig,onCommit:t.props.onCommit,definition:t.props.definition})}):null))}return d}}]),e}();var qOe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},HOe=null;function GOe(e){if(HOe&&HOe[0]===e)return HOe[1];var t=function(e){try{return e.trim()?(0,gOe.parse)(e,{noLocation:!0}):null}catch(c2){return new Error(c2)}}(e);return t?t instanceof Error?HOe?HOe[1]:qOe:(HOe=[e,t],t):qOe}var KOe={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},WOe=function(){function e(){var t,n,r;bOe(this,e);for(var i=arguments.length,o=Array(i),a=0;aq.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),rIe=({title:e,titleId:t,...n})=>q.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z",strokeLinecap:"round",strokeLinejoin:"round"}),q.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",strokeLinecap:"round",strokeLinejoin:"round"})),iIe=({title:e,titleId:t,...n})=>q.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),oIe=({title:e,titleId:t,...n})=>q.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":t,...n},e?q.createElement("title",{id:t},e):null,q.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),q.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),aIe={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},sIe=H.createElement(nIe,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),lIe=H.createElement(nIe,{style:{width:"var(--px-16)"}}),uIe=H.createElement(iIe,{style:{marginRight:"var(--px-4)"}}),cIe=H.createElement(oIe,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),pIe={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}};function dIe(e){const{setOperationName:t}=zPe({nonNull:!0}),{schema:n}=c_e({nonNull:!0}),{run:r}=JFe({nonNull:!0}),i=q.useCallback(e=>{e&&t(e),r()},[r,t]),[o,a]=sPe(aPe());return H.createElement(eIe,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:aIe,arrowOpen:sIe,arrowClosed:lIe,checkboxUnchecked:uIe,checkboxChecked:cIe,styles:pIe,query:o,onEdit:a,...e})}function fIe(e){return{title:"GraphiQL Explorer",icon:rIe,content:()=>H.createElement(dIe,{...e})}}var hIe=function(){return hIe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};if(parseInt(H.version.slice(0,2),10)<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));function gIe(e){var t,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultTabs,o=e.externalFragments,a=e.fetcher,s=e.getDefaultFieldNames,l=e.headers,u=e.inputValueDeprecation,c=e.introspectionQueryName,p=e.maxHistoryLength,d=e.onEditOperationName,f=e.onSchemaChange,h=e.onTabChange,m=e.onTogglePluginVisibility,g=e.operationName,y=e.plugins,v=e.query,b=e.response,x=e.schema,E=e.schemaDescription,D=e.shouldPersistHeaders,w=e.storage,T=e.validationRules,C=e.variables,S=e.visiblePlugin,k=e.defaultHeaders,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&H.createElement(H.Fragment,null,a.tabs.map(function(e,t){return H.createElement(UFe,{key:e.id,value:e,isActive:t===a.activeTabIndex},H.createElement(UFe.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(t),onClick:function(){s.stop(),a.changeTab(t)}},e.title),H.createElement(UFe.Close,{onClick:function(){a.activeTabIndex===t&&s.stop(),a.closeTab(t)}}))}),Y)),H.createElement("div",{className:"graphiql-session-header-right"},1===a.tabs.length&&Y,P)),H.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(a.activeTabIndex)},H.createElement("div",{ref:x.firstRef},H.createElement("div",{className:"graphiql-editors".concat(1===a.tabs.length?" full-height":"")},H.createElement("div",{ref:E.firstRef},H.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},H.createElement(QPe,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:L,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),H.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},H.createElement(sOe,null),O))),H.createElement("div",{ref:E.dragBarRef},H.createElement("div",{className:"graphiql-editor-tools"},H.createElement(DFe,{type:"button",className:"variables"===w&&"second"!==E.hiddenElement?"active":"",onClick:G,"data-name":"variables"},"Variables"),o&&H.createElement(DFe,{type:"button",className:"headers"===w&&"second"!==E.hiddenElement?"active":"",onClick:G,"data-name":"headers"},"Headers"),H.createElement(jFe,{label:"second"===E.hiddenElement?"Show editor tools":"Hide editor tools"},H.createElement(DFe,{type:"button",onClick:K,"aria-label":"second"===E.hiddenElement?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},"second"===E.hiddenElement?H.createElement(KNe,{className:"graphiql-chevron-icon","aria-hidden":"true"}):H.createElement(HNe,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),H.createElement("div",{ref:E.secondRef},H.createElement("section",{className:"graphiql-editor-tool","aria-label":"variables"===w?"Variables":"Headers"},H.createElement(JPe,{editorTheme:e.editorTheme,isHidden:"variables"!==w,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:L,readOnly:e.readOnly}),o&&H.createElement(HPe,{editorTheme:e.editorTheme,isHidden:"headers"!==w,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),H.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:x.dragBarRef}),H.createElement("div",{ref:x.secondRef},H.createElement("div",{className:"graphiql-response"},s.isFetching?H.createElement(LFe,null):null,H.createElement(XPe,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),I))))),H.createElement(AFe,{open:"short-keys"===S,onOpenChange:W},H.createElement("div",{className:"graphiql-dialog-header"},H.createElement(AFe.Title,{className:"graphiql-dialog-title"},"Short Keys"),H.createElement(AFe.Close,null)),H.createElement("div",{className:"graphiql-dialog-section"},H.createElement(EIe,{keyMap:e.keyMap||"sublime"}))),H.createElement(AFe,{open:"settings"===S,onOpenChange:Q},H.createElement("div",{className:"graphiql-dialog-header"},H.createElement(AFe.Title,{className:"graphiql-dialog-title"},"Settings"),H.createElement(AFe.Close,null)),e.showPersistHeadersSettings?H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",H.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),H.createElement(TFe,null,H.createElement(wFe,{type:"button",id:"enable-persist-headers",className:a.shouldPersistHeaders?"active":"","data-value":"true",onClick:j},"On"),H.createElement(wFe,{type:"button",id:"disable-persist-headers",className:a.shouldPersistHeaders?"":"active",onClick:j},"Off"))):null,!p&&H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface appears.")),H.createElement(TFe,null,H.createElement(wFe,{type:"button",className:null===g?"active":"",onClick:R},"System"),H.createElement(wFe,{type:"button",className:"light"===g?"active":"","data-theme":"light",onClick:R},"Light"),H.createElement(wFe,{type:"button",className:"dark"===g?"active":"","data-theme":"dark",onClick:R},"Dark"))),u?H.createElement("div",{className:"graphiql-dialog-section"},H.createElement("div",null,H.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),H.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),H.createElement(wFe,{type:"button",state:N||void 0,disabled:"success"===N,onClick:M},{success:"Cleared data",error:"Failed"}[N]||"Clear data")):null)))}var bIe="undefined"!=typeof window&&0===window.navigator.platform.toLowerCase().indexOf("mac")?"Cmd":"Ctrl",xIe=Object.entries({"Search in editor":[bIe,"F"],"Search in documentation":[bIe,"K"],"Execute query":[bIe,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function EIe(e){var t=e.keyMap;return H.createElement("div",null,H.createElement("table",{className:"graphiql-table"},H.createElement("thead",null,H.createElement("tr",null,H.createElement("th",null,"Short Key"),H.createElement("th",null,"Function"))),H.createElement("tbody",null,xIe.map(function(e){var t=mIe(e,2),n=t[0],r=t[1];return H.createElement("tr",{key:n},H.createElement("td",null,r.map(function(e,t,n){return H.createElement(q.Fragment,{key:e},H.createElement("code",{className:"graphiql-key"},e),t!==n.length-1&&" + ")})),H.createElement("td",null,n))}))),H.createElement("p",null,"The editors use"," ",H.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",H.createElement("em",null,"i"),"QL uses"," ",H.createElement("code",null,t),"."))}function DIe(e){return H.createElement("div",{className:"graphiql-logo"},e.children||H.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",H.createElement("em",null,"i"),"QL"))}function wIe(e){return H.createElement(H.Fragment,null,e.children)}function TIe(e){return H.createElement("div",{className:"graphiql-footer"},e.children)}function CIe(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}function SIe(e){return JS({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"}}]})(e)}function kIe(e){return JS({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"}}]})(e)}function AIe(e){return JS({attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M13 15.5v-6.5a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v4"}},{tag:"path",attr:{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h7"}},{tag:"path",attr:{d:"M16 9h2"}},{tag:"path",attr:{d:"M15 19l2 2l4 -4"}}]})(e)}function NIe(e,[t,n]){return Math.min(n,Math.max(t,e))}function FIe(e){const t=q.useRef({value:e,previous:e});return q.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}DIe.displayName="GraphiQLLogo",wIe.displayName="GraphiQLToolbar",TIe.displayName="GraphiQLFooter";const _Ie=q.forwardRef((e,t)=>q.createElement(jM.span,dM({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),PIe=[" ","Enter","ArrowUp","ArrowDown"],OIe=[" ","Enter"],IIe="Select",[LIe,MIe,jIe]=PM(IIe),[RIe]=FM(IIe,[jIe,tge]),BIe=tge(),[VIe,UIe]=RIe(IIe),[zIe,$Ie]=RIe(IIe),qIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=BIe(n),a=UIe("SelectTrigger",n),s=a.disabled||r,l=hM(t,a.onTriggerChange),u=MIe(n),[c,p,d]=yLe(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=vLe(t,e,n);void 0!==r&&a.onValueChange(r.value)}),f=()=>{s||(a.onOpenChange(!0),d())};return q.createElement(fge,dM({asChild:!0},o),q.createElement(jM.button,dM({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":void 0===a.value?"":void 0},i,{ref:l,onClick:NM(i.onClick,e=>{e.currentTarget.focus()}),onPointerDown:NM(i.onPointerDown,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(f(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:NM(i.onKeyDown,e=>{const t=""!==c.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||PIe.includes(e.key)&&(f(),e.preventDefault())})})))}),HIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a,...s}=e,l=UIe("SelectValue",n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==o,p=hM(t,l.onValueNodeChange);return OM(()=>{u(c)},[u,c]),q.createElement(jM.span,dM({},s,{ref:p,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:o)}),GIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return q.createElement(jM.span,dM({"aria-hidden":!0},i,{ref:t}),r||"▼")}),KIe="SelectContent",WIe=q.forwardRef((e,t)=>{const n=UIe(KIe,e.__scopeSelect),[r,i]=q.useState();if(OM(()=>{i(new DocumentFragment)},[]),!n.open){const t=r;return t?lp.createPortal(q.createElement(YIe,{scope:e.__scopeSelect},q.createElement(LIe.Slot,{scope:e.__scopeSelect},q.createElement("div",null,e.children))),t):null}return q.createElement(JIe,dM({},e,{ref:t}))}),QIe=10,[YIe,XIe]=RIe(KIe),JIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,v=UIe(KIe,n),[b,x]=q.useState(null),[E,D]=q.useState(null),w=hM(t,e=>x(e)),[T,C]=q.useState(null),[S,k]=q.useState(null),A=MIe(n),[N,F]=q.useState(!1),_=q.useRef(!1);q.useEffect(()=>{if(b)return zR(b)},[b]),qj();const P=q.useCallback(e=>{const[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(const o of e){if(o===i)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&E&&(E.scrollTop=0),o===r&&E&&(E.scrollTop=E.scrollHeight),null==o||o.focus(),document.activeElement!==i)return}},[A,E]),O=q.useCallback(()=>P([T,b]),[P,T,b]);q.useEffect(()=>{N&&O()},[N,O]);const{onOpenChange:I,triggerPointerDownPosRef:L}=v;q.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=L.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(o=L.current)||void 0===o?void 0:o.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||I(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,I,L]),q.useEffect(()=>{const e=()=>I(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[I]);const[M,j]=yLe(e=>{const t=A().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=vLe(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),R=q.useCallback((e,t,n)=>{const r=!_.current&&!n;(void 0!==v.value&&v.value===t||r)&&(C(e),r&&(_.current=!0))},[v.value]),B=q.useCallback(()=>null==b?void 0:b.focus(),[b]),V=q.useCallback((e,t,n)=>{const r=!_.current&&!n;(void 0!==v.value&&v.value===t||r)&&k(e)},[v.value]),U="popper"===r?eLe:ZIe,z=U===eLe?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return q.createElement(YIe,{scope:n,content:b,viewport:E,onViewportChange:D,itemRefCallback:R,selectedItem:T,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:O,selectedItemText:S,position:r,isPositioned:N,searchRef:M},q.createElement(LR,{as:mM,allowPinchZoom:!0},q.createElement(Hme,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:NM(i,e=>{var t;null===(t=v.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},q.createElement(Bme,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},q.createElement(U,dM({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:e=>e.preventDefault()},y,z,{onPlaced:()=>F(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:NM(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||j(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})}))))))}),ZIe=q.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=UIe(KIe,n),a=XIe(KIe,n),[s,l]=q.useState(null),[u,c]=q.useState(null),p=hM(t,e=>c(e)),d=MIe(n),f=q.useRef(!1),h=q.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:v}=a,b=q.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if("rtl"!==o.dir){const r=i.left-t.left,o=n.left-r,a=e.left-o,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-QIe,p=NIe(o,[QIe,c-u]);s.style.minWidth=l+"px",s.style.left=p+"px"}else{const r=t.right-i.right,o=window.innerWidth-n.right-r,a=window.innerWidth-e.right-o,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-QIe,p=NIe(o,[QIe,c-u]);s.style.minWidth=l+"px",s.style.right=p+"px"}const a=d(),l=window.innerHeight-2*QIe,c=m.scrollHeight,p=window.getComputedStyle(u),h=parseInt(p.borderTopWidth,10),v=parseInt(p.paddingTop,10),b=parseInt(p.borderBottomWidth,10),x=h+v+c+parseInt(p.paddingBottom,10)+b,E=Math.min(5*g.offsetHeight,x),D=window.getComputedStyle(m),w=parseInt(D.paddingTop,10),T=parseInt(D.paddingBottom,10),C=e.top+e.height/2-QIe,S=l-C,k=g.offsetHeight/2,A=h+v+(g.offsetTop+k),N=x-A;if(A<=C){const e=g===a[a.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(S,k+(e?T:0)+t+b);s.style.height=n+"px"}else{const e=g===a[0].ref.current;s.style.top="0px";const t=Math.max(C,h+m.offsetTop+(e?w:0)+k)+N;s.style.height=t+"px",m.scrollTop=A-C+m.offsetTop}s.style.margin=`${QIe}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame(()=>f.current=!0)}},[d,o.trigger,o.valueNode,s,u,m,g,y,o.dir,r]);OM(()=>b(),[b]);const[x,E]=q.useState();OM(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const D=q.useCallback(e=>{e&&!0===h.current&&(b(),null==v||v(),h.current=!1)},[b,v]);return q.createElement(tLe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:D},q.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},q.createElement(jM.div,dM({},i,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),eLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=QIe,...o}=e,a=BIe(n);return q.createElement(hge,dM({},a,o,{ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[tLe,nLe]=RIe(KIe,{}),rLe="SelectViewport",iLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=XIe(rLe,n),o=nLe(rLe,n),a=hM(t,i.onViewportChange),s=q.useRef(0);return q.createElement(q.Fragment,null,q.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),q.createElement(LIe.Slot,{scope:n},q.createElement(jM.div,dM({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:NM(r.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*QIe,i=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),a=Math.max(i,o);if(a0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop})}))))}),[oLe,aLe]=RIe("SelectGroup"),sLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=aLe("SelectLabel",n);return q.createElement(jM.div,dM({id:i.id},r,{ref:t}))}),lLe="SelectItem",[uLe,cLe]=RIe(lLe),pLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,s=UIe(lLe,n),l=XIe(lLe,n),u=s.value===r,[c,p]=q.useState(null!=o?o:""),[d,f]=q.useState(!1),h=hM(t,e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,i)}),m=MM(),g=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};return q.createElement(uLe,{scope:n,value:r,disabled:i,textId:m,isSelected:u,onItemTextChange:q.useCallback(e=>{p(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},q.createElement(LIe.ItemSlot,{scope:n,value:r,disabled:i,textValue:c},q.createElement(jM.div,dM({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:h,onFocus:NM(a.onFocus,()=>f(!0)),onBlur:NM(a.onBlur,()=>f(!1)),onPointerUp:NM(a.onPointerUp,g),onPointerMove:NM(a.onPointerMove,e=>{var t;i?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:NM(a.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))}),onKeyDown:NM(a.onKeyDown,e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(OIe.includes(e.key)&&g()," "===e.key&&e.preventDefault())})}))))}),dLe="SelectItemText",fLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=UIe(dLe,n),s=XIe(dLe,n),l=cLe(dLe,n),u=$Ie(dLe,n),[c,p]=q.useState(null),d=hM(t,e=>p(e),l.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)}),f=null==c?void 0:c.textContent,h=q.useMemo(()=>q.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return OM(()=>(m(h),()=>g(h)),[m,g,h]),q.createElement(q.Fragment,null,q.createElement(jM.span,dM({id:l.textId},o,{ref:d})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?lp.createPortal(o.children,a.valueNode):null)}),hLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cLe("SelectItemIndicator",n).isSelected?q.createElement(jM.span,dM({"aria-hidden":!0},r,{ref:t})):null}),mLe=q.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return q.createElement(jM.div,dM({"aria-hidden":!0},r,{ref:t}))}),gLe=q.forwardRef((e,t)=>{const{value:n,...r}=e,i=q.useRef(null),o=hM(t,i),a=FIe(n);return q.useEffect(()=>{const e=i.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[a,n]),q.createElement(_Ie,{asChild:!0},q.createElement("select",dM({},r,{ref:o,defaultValue:n})))});function yLe(e){const t=BM(e),n=q.useRef(""),r=q.useRef(0),i=q.useCallback(e=>{const i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),o=q.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function vLe(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=(a=e,s=Math.max(i,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(o=o.filter(e=>e!==n));const l=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}gLe.displayName="BubbleSelect";const bLe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:p,disabled:d,required:f}=e,h=BIe(t),[m,g]=q.useState(null),[y,v]=q.useState(null),[b,x]=q.useState(!1),E=zM(u),[D=!1,w]=VM({prop:r,defaultProp:i,onChange:o}),[T,C]=VM({prop:a,defaultProp:s,onChange:l}),S=q.useRef(null),k=!m||Boolean(m.closest("form")),[A,N]=q.useState(new Set),F=Array.from(A).map(e=>e.props.value).join(";");return q.createElement(dge,h,q.createElement(VIe,{required:f,scope:t,trigger:m,onTriggerChange:g,valueNode:y,onValueNodeChange:v,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:MM(),value:T,onValueChange:C,open:D,onOpenChange:w,dir:E,triggerPointerDownPosRef:S,disabled:d},q.createElement(LIe.Provider,{scope:t},q.createElement(zIe,{scope:e.__scopeSelect,onNativeOptionAdd:q.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:q.useCallback(e=>{N(t=>{const n=new Set(t);return n.delete(e),n})},[])},n)),k?q.createElement(gLe,{key:F,"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:p,value:T,onChange:e=>C(e.target.value),disabled:d},void 0===T?q.createElement("option",{value:""}):null,Array.from(A)):null))},xLe=qIe,ELe=HIe,DLe=GIe,wLe=e=>q.createElement(mge,dM({asChild:!0},e)),TLe=WIe,CLe=iLe,SLe=sLe,kLe=pLe,ALe=fLe,NLe=hLe,FLe=mLe;const _Le="ScrollArea",[PLe]=FM(_Le),[OLe,ILe]=PLe(_Le),LLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=q.useState(null),[u,c]=q.useState(null),[p,d]=q.useState(null),[f,h]=q.useState(null),[m,g]=q.useState(null),[y,v]=q.useState(0),[b,x]=q.useState(0),[E,D]=q.useState(!1),[w,T]=q.useState(!1),C=hM(t,e=>l(e)),S=zM(i);return q.createElement(OLe,{scope:n,type:r,dir:S,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:p,onContentChange:d,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:E,onScrollbarXEnabledChange:D,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:x},q.createElement(jM.div,dM({dir:S},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),MLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...i}=e,o=ILe("ScrollAreaViewport",n),a=hM(t,q.useRef(null),o.onViewportChange);return q.createElement(q.Fragment,null,q.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),q.createElement(jM.div,dM({"data-radix-scroll-area-viewport":""},i,{ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),q.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),jLe="ScrollAreaScrollbar",RLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return q.useEffect(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?q.createElement(BLe,dM({},r,{ref:t,forceMount:n})):"scroll"===i.type?q.createElement(VLe,dM({},r,{ref:t,forceMount:n})):"auto"===i.type?q.createElement(ULe,dM({},r,{ref:t,forceMount:n})):"always"===i.type?q.createElement(zLe,dM({},r,{ref:t})):null}),BLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),[o,a]=q.useState(!1);return q.useEffect(()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),q.createElement(aj,{present:n||o},q.createElement(ULe,dM({"data-state":o?"visible":"hidden"},r,{ref:t})))}),VLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ILe(jLe,e.__scopeScrollArea),o="horizontal"===e.orientation,a=iMe(()=>l("SCROLL_END"),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},q.useReducer((e,t)=>{const n=c[e][t];return null!=n?n:e},u));var u,c;return q.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,l]),q.useEffect(()=>{const e=i.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[i.viewport,o,l,a]),q.createElement(aj,{present:n||"hidden"!==s},q.createElement(zLe,dM({"data-state":"hidden"===s?"hidden":"visible"},r,{ref:t,onPointerEnter:NM(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:NM(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),ULe=q.forwardRef((e,t)=>{const n=ILe(jLe,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=q.useState(!1),s="horizontal"===e.orientation,l=iMe(()=>{if(n.viewport){const e=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,i=ILe(jLe,e.__scopeScrollArea),o=q.useRef(null),a=q.useRef(0),[s,l]=q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=JLe(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function p(e,t){return function(e,t,n,r="ltr"){const i=ZLe(n),o=i/2,a=t||o,s=i-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,p="ltr"===r?[0,c]:[-1*c,0];return tMe([l,u],p)(e)}(e,a.current,s,t)}return"horizontal"===n?q.createElement($Le,dM({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const e=eMe(i.viewport.scrollLeft,s,i.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=p(e,i.dir))}})):"vertical"===n?q.createElement(qLe,dM({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const e=eMe(i.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=p(e))}})):null}),$Le=q.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=ILe(jLe,e.__scopeScrollArea),[a,s]=q.useState(),l=q.useRef(null),u=hM(t,l,o.onScrollbarXChange);return q.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),q.createElement(KLe,dM({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ZLe(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),nMe(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:XLe(a.paddingLeft),paddingEnd:XLe(a.paddingRight)}})}}))}),qLe=q.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=ILe(jLe,e.__scopeScrollArea),[a,s]=q.useState(),l=q.useRef(null),u=hM(t,l,o.onScrollbarYChange);return q.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),q.createElement(KLe,dM({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ZLe(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),nMe(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:XLe(a.paddingTop),paddingEnd:XLe(a.paddingBottom)}})}}))}),[HLe,GLe]=PLe(jLe),KLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:p,...d}=e,f=ILe(jLe,n),[h,m]=q.useState(null),g=hM(t,e=>m(e)),y=q.useRef(null),v=q.useRef(""),b=f.viewport,x=r.content-r.viewport,E=BM(c),D=BM(l),w=iMe(p,10);function T(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;u({x:t,y:n})}}return q.useEffect(()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,h,x,E]),q.useEffect(D,[r,D]),oMe(h,w),oMe(f.content,w),q.createElement(HLe,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:BM(o),onThumbPointerUp:BM(a),onThumbPositionChange:D,onThumbPointerDown:BM(s)},q.createElement(jM.div,dM({},d,{ref:g,style:{position:"absolute",...d.style},onPointerDown:NM(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),T(e)}}),onPointerMove:NM(e.onPointerMove,T),onPointerUp:NM(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null})})))}),WLe="ScrollAreaThumb",QLe=q.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=GLe(WLe,e.__scopeScrollArea);return q.createElement(aj,{present:n||i.hasThumb},q.createElement(YLe,dM({ref:t},r)))}),YLe=q.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,o=ILe(WLe,n),a=GLe(WLe,n),{onThumbPositionChange:s}=a,l=hM(t,e=>a.onThumbChange(e)),u=q.useRef(),c=iMe(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{const e=o.viewport;if(e){const t=()=>{if(c(),!u.current){const t=rMe(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),q.createElement(jM.div,dM({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:NM(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:NM(e.onPointerUp,a.onThumbPointerUp)}))});function XLe(e){return e?parseInt(e,10):0}function JLe(e,t){const n=e/t;return isNaN(n)?0:n}function ZLe(e){const t=JLe(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function eMe(e,t,n="ltr"){const r=ZLe(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-r,l=NIe(e,"ltr"===n?[0,a]:[-1*a,0]);return tMe([0,a],[0,s])(l)}function tMe(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function nMe(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function iMe(e,t){const n=BM(e),r=q.useRef(0);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function oMe(e,t){const n=BM(t);OM(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}const aMe=LLe,sMe=MLe,lMe=RLe,uMe=QLe,cMe=bLe,pMe=ELe,dMe=q.forwardRef(({className:e,children:t,...n},r)=>ee.jsxs(xLe,{ref:r,className:ed("flex h-9 w-full items-center justify-between rounded-md border border-input px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground hover:border-input-active focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,ee.jsx(DLe,{asChild:!0,children:ee.jsx(OL,{className:"ml-2 h-4 w-4 flex-shrink-0 opacity-50"})})]}));dMe.displayName=xLe.displayName;const fMe=q.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>ee.jsx(wLe,{children:ee.jsx(TLe,{ref:i,className:ed("relative z-50 w-full min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:ee.jsxs(aMe,{className:"h-full w-full",type:"auto",children:[ee.jsx(CLe,{asChild:!0,children:ee.jsx(sMe,{style:{overflowY:void 0},className:ed("p-1","popper"===n&&"max-h-[var(--radix-select-content-available-height)] w-full min-w-[var(--radix-select-trigger-width)] max-w-[var(--radix-select-content-available-width)]"),children:t})}),ee.jsx(lMe,{className:"w-2",orientation:"vertical",children:ee.jsx(uMe,{className:"rounded-md bg-stone-300 hover:bg-stone-400 dark:bg-secondary dark:hover:bg-muted"})})]})})}));fMe.displayName=TLe.displayName;q.forwardRef(({className:e,...t},n)=>ee.jsx(SLe,{ref:n,className:ed("px-2 py-1.5 text-sm font-semibold",e),...t})).displayName=SLe.displayName;const hMe=q.forwardRef(({className:e,children:t,...n},r)=>ee.jsxs(kLe,{ref:r,className:ed("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent",e),...n,children:[ee.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:ee.jsx(NLe,{children:ee.jsx(LL,{className:"h-4 w-4"})})}),ee.jsx(ALe,{asChild:!0,children:ee.jsx("p",{className:"whitespace-pre-wrap",children:t})})]}));hMe.displayName=kLe.displayName;function mMe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gMe(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 yMe(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;oee.jsx(FLe,{ref:n,className:ed("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=FLe.displayName;var SMe=wMe(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),kMe={changes:function(e,t){return TMe(t)||SMe("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&SMe("changeField"),t},selector:function(e){CMe(e)||SMe("selectorType")},handler:function(e){CMe(e)||TMe(e)||SMe("handlerType"),TMe(e)&&Object.values(e).some(function(e){return!CMe(e)})&&SMe("handlersType")},initial:function(e){e||SMe("initialIsRequired"),TMe(e)||SMe("initialType"),function(e){return!Object.keys(e).length}(e)&&SMe("initialContent")}};function AMe(e,t){return CMe(t)?t(e.current):t}function NMe(e,t){return e.current=DMe(DMe({},e.current),t),t}function FMe(e,t,n){return CMe(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var _Me={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kMe.initial(e),kMe.handler(t);var n={current:e},r=wMe(FMe)(n,t),i=wMe(NMe)(n),o=wMe(kMe.changes)(e),a=wMe(AMe)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return kMe.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n=PMe.length?PMe.apply(this,r):function(){for(var n=arguments.length,i=new Array(n),o=0;o{r.current=!1}:e,t)};function oje(){}function aje(e,t,n,r){return function(e,t){return e.editor.getModel(sje(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?sje(e,r):void 0)}(e,t,n,r)}function sje(e,t){return e.Uri.parse(t)}var lje=function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:p={},height:d="100%",width:f="100%",className:h,wrapperProps:m={},beforeMount:g=oje,onMount:y=oje}){let[v,b]=q.useState(!1),[x,E]=q.useState(!0),D=q.useRef(null),w=q.useRef(null),T=q.useRef(null),C=q.useRef(y),S=q.useRef(g),k=q.useRef(!1);rje(()=>{let e=YMe.init();return e.then(e=>(w.current=e)&&E(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>D.current?function(){var e,t,n,r;let i=null==(e=D.current)?void 0:e.getModel();s||null==(t=null==i?void 0:i.original)||t.dispose(),l||null==(n=null==i?void 0:i.modified)||n.dispose(),null==(r=D.current)||r.dispose()}():e.cancel()}),ije(()=>{if(D.current&&w.current){let t=D.current.getOriginalEditor(),i=aje(w.current,e||"",r||n||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],v),ije(()=>{if(D.current&&w.current){let e=D.current.getModifiedEditor(),r=aje(w.current,t||"",i||n||"text",a||"");r!==e.getModel()&&e.setModel(r)}},[a],v),ije(()=>{let e=D.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),ije(()=>{var t,n;null==(n=null==(t=D.current)?void 0:t.getModel())||n.original.setValue(e||"")},[e],v),ije(()=>{let{original:e,modified:t}=D.current.getModel();w.current.editor.setModelLanguage(e,r||n||"text"),w.current.editor.setModelLanguage(t,i||n||"text")},[n,r,i],v),ije(()=>{var e;null==(e=w.current)||e.editor.setTheme(u)},[u],v),ije(()=>{var e;null==(e=D.current)||e.updateOptions(p)},[p],v);let A=q.useCallback(()=>{var s;if(!w.current)return;S.current(w.current);let l=aje(w.current,e||"",r||n||"text",o||""),u=aje(w.current,t||"",i||n||"text",a||"");null==(s=D.current)||s.setModel({original:l,modified:u})},[n,t,i,e,r,o,a]),N=q.useCallback(()=>{var e;!k.current&&T.current&&(D.current=w.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...p}),A(),null==(e=w.current)||e.editor.setTheme(u),b(!0),k.current=!0)},[p,u,A]);return q.useEffect(()=>{v&&C.current(D.current,w.current)},[v]),q.useEffect(()=>{!x&&!v&&N()},[x,v,N]),H.createElement(nje,{width:f,height:d,isEditorReady:v,loading:c,_ref:T,className:h,wrapperProps:m})};q.memo(lje);var uje=function(){let[e,t]=q.useState(YMe.__getMonacoInstance());return rje(()=>{let n;return e||(n=YMe.init(),n.then(e=>{t(e)})),()=>null==n?void 0:n.cancel()}),e};var cje=function(e){let t=q.useRef();return q.useEffect(()=>{t.current=e},[e]),t.current},pje=new Map;var dje=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:p=!0,keepCurrentModel:d=!1,width:f="100%",height:h="100%",className:m,wrapperProps:g={},beforeMount:y=oje,onMount:v=oje,onChange:b,onValidate:x=oje}){let[E,D]=q.useState(!1),[w,T]=q.useState(!0),C=q.useRef(null),S=q.useRef(null),k=q.useRef(null),A=q.useRef(v),N=q.useRef(y),F=q.useRef(),_=q.useRef(r),P=cje(o),O=q.useRef(!1),I=q.useRef(!1);rje(()=>{let e=YMe.init();return e.then(e=>(C.current=e)&&T(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>{return S.current?(null==(t=F.current)||t.dispose(),d?p&&pje.set(o,S.current.saveViewState()):null==(n=S.current.getModel())||n.dispose(),void S.current.dispose()):e.cancel();var t,n}}),ije(()=>{var a,s,l,u;let c=aje(C.current,e||r||"",t||i||"",o||n||"");c!==(null==(a=S.current)?void 0:a.getModel())&&(p&&pje.set(P,null==(s=S.current)?void 0:s.saveViewState()),null==(l=S.current)||l.setModel(c),p&&(null==(u=S.current)||u.restoreViewState(pje.get(o))))},[o],E),ije(()=>{var e;null==(e=S.current)||e.updateOptions(u)},[u],E),ije(()=>{!S.current||void 0===r||(S.current.getOption(C.current.editor.EditorOption.readOnly)?S.current.setValue(r):r!==S.current.getValue()&&(I.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),S.current.pushUndoStop(),I.current=!1))},[r],E),ije(()=>{var e,t;let n=null==(e=S.current)?void 0:e.getModel();n&&i&&(null==(t=C.current)||t.editor.setModelLanguage(n,i))},[i],E),ije(()=>{var e;void 0!==s&&(null==(e=S.current)||e.revealLine(s))},[s],E),ije(()=>{var e;null==(e=C.current)||e.editor.setTheme(a)},[a],E);let L=q.useCallback(()=>{var l;if(k.current&&C.current&&!O.current){N.current(C.current);let d=o||n,f=aje(C.current,r||e||"",t||i||"",d||"");S.current=null==(l=C.current)?void 0:l.editor.create(k.current,{model:f,automaticLayout:!0,...u},c),p&&S.current.restoreViewState(pje.get(d)),C.current.editor.setTheme(a),void 0!==s&&S.current.revealLine(s),D(!0),O.current=!0}},[e,t,n,r,i,o,u,c,p,a,s]);return q.useEffect(()=>{E&&A.current(S.current,C.current)},[E]),q.useEffect(()=>{!w&&!E&&L()},[w,E,L]),_.current=r,q.useEffect(()=>{var e,t;E&&b&&(null==(e=F.current)||e.dispose(),F.current=null==(t=S.current)?void 0:t.onDidChangeModelContent(e=>{I.current||b(S.current.getValue(),e)}))},[E,b]),q.useEffect(()=>{if(E){let e=C.current.editor.onDidChangeMarkers(e=>{var t;let n=null==(t=S.current.getModel())?void 0:t.uri;if(n&&e.find(e=>e.path===n.path)){let e=C.current.editor.getModelMarkers({resource:n});null==x||x(e)}});return()=>{null==e||e.dispose()}}return()=>{}},[E,x]),H.createElement(nje,{width:f,height:h,isEditorReady:E,loading:l,_ref:k,className:m,wrapperProps:g})},fje=q.memo(dje);const hje={base:"vs-dark",inherit:!0,rules:[{background:"011627",token:""},{foreground:"637777",token:"comment"},{foreground:"addb67",token:"string"},{foreground:"ecc48d",token:"vstring.quoted"},{foreground:"ecc48d",token:"variable.other.readwrite.js"},{foreground:"5ca7e4",token:"string.regexp"},{foreground:"5ca7e4",token:"string.regexp keyword.other"},{foreground:"5f7e97",token:"meta.function punctuation.separator.comma"},{foreground:"f78c6c",token:"constant.numeric"},{foreground:"f78c6c",token:"constant.character.numeric"},{foreground:"addb67",token:"variable"},{foreground:"c792ea",token:"keyword"},{foreground:"c792ea",token:"punctuation.accessor"},{foreground:"c792ea",token:"storage"},{foreground:"c792ea",token:"meta.var.expr"},{foreground:"c792ea",token:"meta.class meta.method.declaration meta.var.expr storage.type.jsm"},{foreground:"c792ea",token:"storage.type.property.js"},{foreground:"c792ea",token:"storage.type.property.ts"},{foreground:"c792ea",token:"storage.type.property.tsx"},{foreground:"82aaff",token:"storage.type"},{foreground:"ffcb8b",token:"entity.name.class"},{foreground:"ffcb8b",token:"meta.class entity.name.type.class"},{foreground:"addb67",token:"entity.other.inherited-class"},{foreground:"82aaff",token:"entity.name.function"},{foreground:"addb67",token:"punctuation.definition.variable"},{foreground:"d3423e",token:"punctuation.section.embedded"},{foreground:"d6deeb",token:"punctuation.terminator.expression"},{foreground:"d6deeb",token:"punctuation.definition.arguments"},{foreground:"d6deeb",token:"punctuation.definition.array"},{foreground:"d6deeb",token:"punctuation.section.array"},{foreground:"d6deeb",token:"meta.array"},{foreground:"d9f5dd",token:"punctuation.definition.list.begin"},{foreground:"d9f5dd",token:"punctuation.definition.list.end"},{foreground:"d9f5dd",token:"punctuation.separator.arguments"},{foreground:"d9f5dd",token:"punctuation.definition.list"},{foreground:"d3423e",token:"string.template meta.template.expression"},{foreground:"d6deeb",token:"string.template punctuation.definition.string"},{foreground:"c792ea",fontStyle:"italic",token:"italic"},{foreground:"addb67",fontStyle:"bold",token:"bold"},{foreground:"82aaff",token:"constant.language"},{foreground:"82aaff",token:"punctuation.definition.constant"},{foreground:"82aaff",token:"variable.other.constant"},{foreground:"7fdbca",token:"support.function.construct"},{foreground:"7fdbca",token:"keyword.other.new"},{foreground:"82aaff",token:"constant.character"},{foreground:"82aaff",token:"constant.other"},{foreground:"f78c6c",token:"constant.character.escape"},{foreground:"addb67",token:"entity.other.inherited-class"},{foreground:"d7dbe0",token:"variable.parameter"},{foreground:"7fdbca",token:"entity.name.tag"},{foreground:"cc2996",token:"punctuation.definition.tag.html"},{foreground:"cc2996",token:"punctuation.definition.tag.begin"},{foreground:"cc2996",token:"punctuation.definition.tag.end"},{foreground:"addb67",token:"entity.other.attribute-name"},{foreground:"addb67",token:"entity.name.tag.custom"},{foreground:"82aaff",token:"support.function"},{foreground:"82aaff",token:"support.constant"},{foreground:"7fdbca",token:"upport.constant.meta.property-value"},{foreground:"addb67",token:"support.type"},{foreground:"addb67",token:"support.class"},{foreground:"addb67",token:"support.variable.dom"},{foreground:"7fdbca",token:"support.constant"},{foreground:"7fdbca",token:"keyword.other.special-method"},{foreground:"7fdbca",token:"keyword.other.new"},{foreground:"7fdbca",token:"keyword.other.debugger"},{foreground:"7fdbca",token:"keyword.control"},{foreground:"c792ea",token:"keyword.operator.comparison"},{foreground:"c792ea",token:"keyword.control.flow.js"},{foreground:"c792ea",token:"keyword.control.flow.ts"},{foreground:"c792ea",token:"keyword.control.flow.tsx"},{foreground:"c792ea",token:"keyword.control.ruby"},{foreground:"c792ea",token:"keyword.control.module.ruby"},{foreground:"c792ea",token:"keyword.control.class.ruby"},{foreground:"c792ea",token:"keyword.control.def.ruby"},{foreground:"c792ea",token:"keyword.control.loop.js"},{foreground:"c792ea",token:"keyword.control.loop.ts"},{foreground:"c792ea",token:"keyword.control.import.js"},{foreground:"c792ea",token:"keyword.control.import.ts"},{foreground:"c792ea",token:"keyword.control.import.tsx"},{foreground:"c792ea",token:"keyword.control.from.js"},{foreground:"c792ea",token:"keyword.control.from.ts"},{foreground:"c792ea",token:"keyword.control.from.tsx"},{foreground:"ffffff",background:"ff2c83",token:"invalid"},{foreground:"ffffff",background:"d3423e",token:"invalid.deprecated"},{foreground:"7fdbca",token:"keyword.operator"},{foreground:"c792ea",token:"keyword.operator.relational"},{foreground:"c792ea",token:"keyword.operator.assignement"},{foreground:"c792ea",token:"keyword.operator.arithmetic"},{foreground:"c792ea",token:"keyword.operator.bitwise"},{foreground:"c792ea",token:"keyword.operator.increment"},{foreground:"c792ea",token:"keyword.operator.ternary"},{foreground:"637777",token:"comment.line.double-slash"},{foreground:"cdebf7",token:"object"},{foreground:"ff5874",token:"constant.language.null"},{foreground:"d6deeb",token:"meta.brace"},{foreground:"c792ea",token:"meta.delimiter.period"},{foreground:"d9f5dd",token:"punctuation.definition.string"},{foreground:"ff5874",token:"constant.language.boolean"},{foreground:"ffffff",token:"object.comma"},{foreground:"7fdbca",token:"variable.parameter.function"},{foreground:"80cbc4",token:"support.type.vendor.property-name"},{foreground:"80cbc4",token:"support.constant.vendor.property-value"},{foreground:"80cbc4",token:"support.type.property-name"},{foreground:"80cbc4",token:"meta.property-list entity.name.tag"},{foreground:"57eaf1",token:"meta.property-list entity.name.tag.reference"},{foreground:"f78c6c",token:"constant.other.color.rgb-value punctuation.definition.constant"},{foreground:"ffeb95",token:"constant.other.color"},{foreground:"ffeb95",token:"keyword.other.unit"},{foreground:"c792ea",token:"meta.selector"},{foreground:"fad430",token:"entity.other.attribute-name.id"},{foreground:"80cbc4",token:"meta.property-name"},{foreground:"c792ea",token:"entity.name.tag.doctype"},{foreground:"c792ea",token:"meta.tag.sgml.doctype"},{foreground:"d9f5dd",token:"punctuation.definition.parameters"},{foreground:"ecc48d",token:"string.quoted"},{foreground:"ecc48d",token:"string.quoted.double"},{foreground:"ecc48d",token:"string.quoted.single"},{foreground:"addb67",token:"support.constant.math"},{foreground:"addb67",token:"support.type.property-name.json"},{foreground:"addb67",token:"support.constant.json"},{foreground:"c789d6",token:"meta.structure.dictionary.value.json string.quoted.double"},{foreground:"80cbc4",token:"string.quoted.double.json punctuation.definition.string.json"},{foreground:"ff5874",token:"meta.structure.dictionary.json meta.structure.dictionary.value constant.language"},{foreground:"d6deeb",token:"variable.other.ruby"},{foreground:"ecc48d",token:"entity.name.type.class.ruby"},{foreground:"ecc48d",token:"keyword.control.class.ruby"},{foreground:"ecc48d",token:"meta.class.ruby"},{foreground:"7fdbca",token:"constant.language.symbol.hashkey.ruby"},{foreground:"e0eddd",background:"a57706",fontStyle:"italic",token:"meta.diff"},{foreground:"e0eddd",background:"a57706",fontStyle:"italic",token:"meta.diff.header"},{foreground:"ef535090",fontStyle:"italic",token:"markup.deleted"},{foreground:"a2bffc",fontStyle:"italic",token:"markup.changed"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.git"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.from-file"},{foreground:"a2bffc",fontStyle:"italic",token:"meta.diff.header.to-file"},{foreground:"219186",background:"eae3ca",token:"markup.inserted"},{foreground:"d3201f",token:"other.package.exclude"},{foreground:"d3201f",token:"other.remove"},{foreground:"269186",token:"other.add"},{foreground:"ff5874",token:"constant.language.python"},{foreground:"82aaff",token:"variable.parameter.function.python"},{foreground:"82aaff",token:"meta.function-call.arguments.python"},{foreground:"b2ccd6",token:"meta.function-call.python"},{foreground:"b2ccd6",token:"meta.function-call.generic.python"},{foreground:"d6deeb",token:"punctuation.python"},{foreground:"addb67",token:"entity.name.function.decorator.python"},{foreground:"8eace3",token:"source.python variable.language.special"},{foreground:"82b1ff",token:"markup.heading.markdown"},{foreground:"c792ea",fontStyle:"italic",token:"markup.italic.markdown"},{foreground:"addb67",fontStyle:"bold",token:"markup.bold.markdown"},{foreground:"697098",token:"markup.quote.markdown"},{foreground:"80cbc4",token:"markup.inline.raw.markdown"},{foreground:"ff869a",token:"markup.underline.link.markdown"},{foreground:"ff869a",token:"markup.underline.link.image.markdown"},{foreground:"d6deeb",token:"string.other.link.title.markdown"},{foreground:"d6deeb",token:"string.other.link.description.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.begin.markdown"},{foreground:"82b1ff",token:"punctuation.definition.string.end.markdown"},{foreground:"82b1ff",token:"meta.link.inline.markdown punctuation.definition.string"},{foreground:"7fdbca",token:"punctuation.definition.metadata.markdown"},{foreground:"82b1ff",token:"beginning.punctuation.definition.list.markdown"}],colors:{"editor.foreground":"#d6deeb","editor.background":"#0b0510","editor.selectionBackground":"#5f7e9779","editor.lineHighlightBackground":"#010E17","editorCursor.foreground":"#80a4c2","editorWhitespace.foreground":"#2e2040","editorIndentGuide.background":"#5e81ce52","editor.selectionHighlightBorder":"#122d42"}};class mje{constructor(){t(this,"depth",0),t(this,"buf",[])}async print(e){return this.buf=[],this.printText("QueryPlan {"),e.trigger&&(this.depth++,await this.printFetchInfo(e.trigger),this.depth--),await this.printPlanNode(e,!0),this.printText("}"),this.buf.join("\n")}async printPlanNode(e,t){var n;switch(t&&this.depth++,e.kind){case"Single":case"Trigger":await this.printFetchInfo(e.fetch);break;case"Sequence":const t=((null==(n=e.children)?void 0:n.length)||0)>1;t&&this.printText("Sequence {");for(const n of e.children??[])await this.printPlanNode(n,t);t&&this.printText("}");break;case"Parallel":this.printText("Parallel {");for(const n of e.children??[])await this.printPlanNode(n,!0);this.printText("}")}t&&this.depth--}async printFetchInfo(e){var t;const n=null==(t=e.path)?void 0:t.includes(".");n&&(this.printText(`Flatten(path: "${e.path}") {`),this.depth++);let r="Fetch";if("Trigger"===e.kind&&(r=""),this.printText(`${e.kind}${r}(service: "${e.subgraphName}") {`),this.depth++,e.representations&&this.printRepresentations(e.representations),e.query){const t=sd.print(sd.parse(e.query)),n=await Mae(t,{parser:"graphql",plugins:[kne],printWidth:80,tabWidth:4,useTabs:!1});this.printQuery(n.trim())}this.depth--,this.printText("}"),n&&(this.depth--,this.printText("}"))}printQuery(e){const t=e.split("\n");t[0]="{",t[t.length-1]="}",this.printText(...t)}printRepresentations(e){this.printText("{"),this.depth++,e.forEach(e=>{const t=e.fragment.split("\n");this.printText(...t)}),this.depth--,this.printText("} =>")}printText(...e){e.forEach(e=>{this.buf.push(`${" ".repeat(this.depth)}${e}`)})}}const gje=e=>{const[t,n]=q.useState();return q.useEffect(()=>{const e=()=>{const e=document.body;if(e.classList.contains("graphiql-dark"))n("dark");else if(e.classList.contains("graphiql-light"))n("light");else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;n(e?"dark":"light")}e.classList.contains("graphiql-light")?document.documentElement.classList.remove("!dark"):document.documentElement.classList.add("!dark")};e();const t=new MutationObserver(e);return t.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]),e||t},yje=({queryPlan:e})=>{const[t,n]=q.useState([]),[r,i]=q.useState([]);q.useEffect(()=>{const t=[],r=[];t.push({id:"root",type:"fetch",data:{...e},position:{x:0,y:0}});const o=(e,n)=>{var i;null==(i=e.children)||i.forEach(e=>{const i=crypto.randomUUID();t.push({id:i,type:"fetch",data:{...e},position:{x:0,y:0},connectable:!1,deletable:!1}),r.push({id:`${i}-${n}`,source:n,target:i,animated:!0}),o(e,i)})};o(e,"root"),e.trigger&&(t.unshift({id:"trigger",type:"fetch",data:{kind:"Trigger",fetch:e.trigger},position:{x:0,y:0},connectable:!1,deletable:!1}),r.unshift({id:"trigger-root",source:"trigger",target:"root",animated:!0})),n(t),i(r)},[e]);const o=q.useMemo(()=>({fetch:Qce}),[]);return ee.jsx(iL,{children:ee.jsx(Xce,{initialNodes:t,initialEdges:r,nodeTypes:o,direction:"TB",nodeWidth:400,nodeHeight:100})})},vje=()=>{const{plan:e,planError:t,forcedTheme:n}=q.useContext(rpe),[r,i]=q.useState(null);q.useEffect(()=>{(async()=>{if(e){const t=new mje,n=await t.print(e);i(n)}})()},[e]);const[o,a]=q.useState("tree"),s=gje(n),l=uje();return q.useEffect(()=>{l&&("dark"===s?l.editor.setTheme("wg-dark"):l.editor.setTheme("light"))},[s,l]),t?ee.jsx(NL,{icon:ee.jsx(ad,{className:"h-12 w-12"}),title:"Error fetching plan",description:t}):e?ee.jsxs("div",{className:"relative flex h-full w-full flex-1 flex-col font-sans",children:[ee.jsx(bj,{defaultValue:"tree",className:"absolute bottom-3 right-4 z-30 w-max",onValueChange:e=>a(e),children:ee.jsxs(xj,{className:"grid w-full grid-cols-2 shadow-lg",children:[ee.jsx(Ej,{value:"tree",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[ee.jsx(nk,{}),"Tree View"]})}),ee.jsx(Ej,{value:"text",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[ee.jsx(od,{className:"h-4 w-4"}),"Text View"]})})]})}),"tree"===o&&ee.jsx(yje,{queryPlan:e}),"text"===o&&ee.jsx("div",{className:"scrollbar-custom h-full w-full overflow-auto rounded-xl",children:ee.jsx(fje,{theme:"dark"===s?"wg-dark":"light",className:"scrollbar-custom h-full",language:"customLang",value:r||"",options:{fontSize:14,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6},smoothScrolling:!0,padding:{top:21},minimap:{enabled:!1},readOnly:!0},beforeMount:e=>{e.editor.defineTheme("wg-dark",hje),"dark"===s&&e.editor.setTheme("wg-dark"),e.languages.register({id:"customLang"}),e.languages.setMonarchTokensProvider("customLang",{tokenizer:{root:[[/\b(\w+)(?=\s*\(service)/,"keyword"],[/\b(Flatten)(?=\s*\(path)/,"keyword"],[/\b(QueryPlan|Sequence|Parallel)(?=\s*{)/,"keyword"],[new RegExp("(?<=}\\s*\\n\\s*)(\\w+)"),"keyword"],[/(service|path)(\s*:\s*)("[^"]*")/,["identifier","","string.service"]],[/\$[a-zA-Z_]\w*/,"variable"]]}})}})})]}):ee.jsx(NL,{icon:ee.jsx(tk,{}),title:"No query plan found",description:"Include the below header before executing your queries. Router version 0.104.0 or above is required.",actions:ee.jsx(kM,{command:'"X-WG-Include-Query-Plan" : "true"'})})},bje=q.createContext({graphId:"",tabsState:{tabs:[],activeTabIndex:0},view:"response",setView:()=>{}});function xje(e,t,n){var r=this,i=q.useRef(null),o=q.useRef(0),a=q.useRef(null),s=q.useRef([]),l=q.useRef(),u=q.useRef(),c=q.useRef(e),p=q.useRef(!0);c.current=e;var d="undefined"!=typeof window,f=!t&&0!==t&&d;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,v=g?Math.max(+n.maxWait||0,t):null;q.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=q.useMemo(function(){var e=function(e){var t=s.current,n=l.current;return s.current=l.current=null,o.current=e,u.current=c.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(a.current),a.current=f?requestAnimationFrame(e):setTimeout(e,t)},b=function(e){if(!p.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-o.current>=v},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=l.current=null,u.current)},E=function e(){var r=Date.now();if(b(r))return x(r);if(p.current){var a=t-(r-i.current),s=g?Math.min(a,v-(r-o.current)):a;n(e,s)}},D=function(){if(d||y){var c=Date.now(),f=b(c);if(s.current=[].slice.call(arguments),l.current=r,i.current=c,f){if(!a.current&&p.current)return o.current=i.current,n(E,t),h?e(i.current):u.current;if(g)return n(E,t),e(i.current)}return a.current||n(E,t),u.current}};return D.cancel=function(){a.current&&(f?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=l.current=a.current=null},D.isPending=function(){return!!a.current},D.flush=function(){return a.current?x(Date.now()):u.current},D},[h,g,t,v,m,f,d,y]);return b}function Eje(e,t){return e===t}function Dje(e,t){return t}function wje(e,t,n){var r=Eje,i=q.useReducer(Dje,e),o=i[0],a=i[1],s=xje(q.useCallback(function(e){return a(e)},[a]),t,n),l=q.useRef(e);return r(l.current,e)||(s(e),l.current=e),[o,s]}const Tje="undefined"!=typeof window?q.useLayoutEffect:q.useEffect;function Cje(e){const t=q.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Tje(()=>{t.current=e},[e]),q.useCallback((...e)=>t.current(...e),[t])}function Sje(e,t,n,r){const i=q.useRef(t);Tje(()=>{i.current=t},[t]),q.useEffect(()=>{const t=window;if(!t||!t.addEventListener)return;const n=e=>i.current(e);return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}},[e,n,r])}const kje="undefined"==typeof window;function Aje(e,t,n={}){const{initializeWithValue:r=!0}=n,i=q.useCallback(e=>n.serializer?n.serializer(e):JSON.stringify(e),[n]),o=q.useCallback(e=>{if(n.deserializer)return n.deserializer(e);if("undefined"===e)return;const r=t instanceof Function?t():t;let i;try{i=JSON.parse(e)}catch(o){return console.error("Error parsing JSON:",o),r}return i},[n,t]),a=q.useCallback(()=>{const n=t instanceof Function?t():t;if(kje)return n;try{const t=window.localStorage.getItem(e);return t?o(t):n}catch(r){return console.warn(`Error reading localStorage key “${e}”:`,r),n}},[t,e,o]),[s,l]=q.useState(()=>r?a():t instanceof Function?t():t),u=Cje(t=>{kje&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const n=t instanceof Function?t(a()):t;window.localStorage.setItem(e,i(n)),l(n),window.dispatchEvent(new Event("local-storage"))}catch(n){console.warn(`Error setting localStorage key “${e}”:`,n)}}),c=Cje(()=>{kje&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const n=t instanceof Function?t():t;window.localStorage.removeItem(e),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))});q.useEffect(()=>{l(a())},[e]);const p=q.useCallback(t=>{t.key&&t.key!==e||l(a())},[e,a]);return Sje("storage",p),Sje("local-storage",p),[s,u,c]}const{createElement:Nje,createContext:Fje,forwardRef:_je,useCallback:Pje,useContext:Oje,useEffect:Ije,useImperativeHandle:Lje,useLayoutEffect:Mje,useMemo:jje,useRef:Rje,useState:Bje}=G,Vje=G["useId".toString()],Uje=Fje(null);Uje.displayName="PanelGroupContext";const zje=Mje,$je="function"==typeof Vje?Vje:()=>null;let qje=0;function Hje(e=null){const t=$je(),n=Rje(e||t||null);return null===n.current&&(n.current=""+qje++),null!=e?e:n.current}function Gje({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:u,onExpand:c,onResize:p,order:d,style:f,tagName:h="div",...m}){const g=Oje(Uje);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:v,getPanelSize:b,getPanelStyle:x,groupId:E,isPanelCollapsed:D,registerPanel:w,resizePanel:T,unregisterPanel:C}=g,S=Hje(a),k=Rje({callbacks:{onCollapse:u,onExpand:c,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:S,idIsFromProps:void 0!==a,order:d});Rje({didLogMissingDefaultSizeWarning:!1}),zje(()=>{const{callbacks:e,constraints:t}=k.current;k.current.id=S,k.current.idIsFromProps=void 0!==a,k.current.order=d,e.onCollapse=u,e.onExpand=c,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l}),zje(()=>{const e=k.current;return w(e),()=>{C(e)}},[d,S,w,C]),Lje(o,()=>({collapse:()=>{y(k.current)},expand:()=>{v(k.current)},getId:()=>S,getSize:()=>b(k.current),isCollapsed:()=>D(k.current),isExpanded:()=>!D(k.current),resize:e=>{T(k.current,e)}}),[y,v,b,D,S,T]);const A=x(k.current,i);return Nje(h,{...m,children:e,className:t,style:{...A,...f},"data-panel":"","data-panel-id":S,"data-panel-group-id":E,"data-panel-collapsible":void 0,"data-panel-size":void 0})}const Kje=_je((e,t)=>Nje(Gje,{...e,forwardedRef:t}));function Wje(e,t="Assertion failed!"){if(!e)throw console.error(t),Error(t)}Gje.displayName="Panel",Kje.displayName="forwardRef(Panel)";function Qje(e,t,n=10){const r=(e=parseFloat(e.toFixed(n)))-(t=parseFloat(t.toFixed(n)));return 0===r?0:r>0?1:-1}function Yje(e,t,n){return 0===Qje(e,t,n)}function Xje({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];Wje(null!=r);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;if(Qje(n,s)<0)if(o){n=Qje(n,(i+s)/2)<0?i:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function Jje({delta:e,layout:t,panelConstraints:n,pivotIndices:r,trigger:i}){if(Yje(e,0))return t;const o=[...t],[a,s]=r;Wje(null!=a),Wje(null!=s);let l=0;if("keyboard"===i){{const r=e<0?s:a,i=n[r];if(Wje(i),i.collapsible){const i=t[r];Wje(null!=i);const o=n[r];Wje(o);const{collapsedSize:a=0,minSize:s=0}=o;if(Yje(i,a)){const t=s-i;Qje(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?a:s,i=n[r];Wje(i);const{collapsible:o}=i;if(o){const i=t[r];Wje(null!=i);const o=n[r];Wje(o);const{collapsedSize:a=0,minSize:s=0}=o;if(Yje(i,s)){const t=i-a;Qje(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?s:a,o=0;for(;;){const e=t[i];Wje(null!=e);if(o+=Xje({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const l=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-l:l}{let r=e<0?a:s;for(;r>=0&&r=0))break;e<0?r--:r++}}if(Yje(l,0))return t;{const r=e<0?s:a,i=t[r];Wje(null!=i);const u=i+l,c=Xje({panelConstraints:n,panelIndex:r,size:u});if(o[r]=c,!Yje(c,u)){let t=u-c;let r=e<0?s:a;for(;r>=0&&r0?r--:r++}}}return Yje(o.reduce((e,t)=>t+e,0),100)?o:t}function Zje({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];Wje(null!=s),t.forEach((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,i=l):(o+=u,a+=l)});return{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function eRe(e){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function tRe(e,t){const n=eRe(e).findIndex(e=>e.getAttribute("data-panel-resize-handle-id")===t);return null!=n?n:null}function nRe(e,t){const n=tRe(e,t);return null!=n?[n,n+1]:[-1,-1]}function rRe(e){const t=document.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return t||null}function iRe(e){const t=document.querySelector(`[data-panel-resize-handle-id="${e}"]`);return t||null}function oRe({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,setLayout:o}){Rje({didWarnAboutMissingResizeHandle:!1}),zje(()=>{const e=eRe(n);for(let t=0;t{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,i]),Ije(()=>{const e=t.current;Wje(e);const{panelDataArray:i}=e;Wje(null!=rRe(n),`No group found for id "${n}"`);const a=eRe(n);Wje(a);const s=a.map(e=>{const t=e.getAttribute("data-panel-resize-handle-id");Wje(t);const[a,s]=function(e,t,n){var r,i,o,a;const s=iRe(t),l=eRe(e),u=s?l.indexOf(s):-1;return[null!==(r=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==r?r:null,null!==(o=null===(a=n[u+1])||void 0===a?void 0:a.id)&&void 0!==o?o:null]}(n,t,i);if(null==a||null==s)return()=>{};const l=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const s=i.findIndex(e=>e.id===a);if(s>=0){const e=i[s];Wje(e);const a=r[s],{collapsedSize:l=0,collapsible:u,minSize:c=0}=e.constraints;if(null!=a&&u){const e=Jje({delta:Yje(a,l)?c-l:l-a,layout:r,panelConstraints:i.map(e=>e.constraints),pivotIndices:nRe(n,t),trigger:"keyboard"});r!==e&&o(e)}}break}}};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}});return()=>{s.forEach(e=>e())}},[e,t,n,r,i,o])}function aRe(e,t){if(e.length!==t.length)return!1;for(let n=0;n{const i=e[r];Wje(i);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,c),u&&(e||r)&&(!r||null!=c&&c!==l||t===l||r(),!e||null!=c&&c===l||t!==l||e())}})}function fRe(e,t){if(e.length!==t.length)return!1;for(let n=0;nlocalStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bRe(e){return`react-resizable-panels:${e}`}function xRe(e){return e.map(e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ERe(e,t){try{const n=bRe(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(n){}return null}function DRe(e,t,n,r,i){var o;const a=bRe(e),s=xRe(t),l=null!==(o=ERe(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(u){console.error(u)}}function wRe({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Yje(r,100))for(let o=0;o(vRe(TRe),TRe.getItem(e)),setItem:(e,t)=>{vRe(TRe),TRe.setItem(e,t)}},CRe={};function SRe({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=TRe,style:u,tagName:c="div",...p}){const d=Hje(o),[f,h]=Bje(null),[m,g]=Bje([]),y=Rje({}),v=Rje(new Map),b=Rje(0),x=Rje({autoSaveId:e,direction:r,dragState:f,id:d,keyboardResizeBy:s,onLayout:a,storage:l}),E=Rje({layout:m,panelDataArray:[],panelDataArrayChanged:!1});Rje({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Lje(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current,i=wRe({layout:e,panelConstraints:r.map(e=>e.constraints)});aRe(n,i)||(g(i),E.current.layout=i,t&&t(i),dRe(r,i,y.current))}}),[]),zje(()=>{x.current.autoSaveId=e,x.current.direction=r,x.current.dragState=f,x.current.id=d,x.current.onLayout=a,x.current.storage=l}),oRe({committedValuesRef:x,eagerValuesRef:E,groupId:d,layout:m,panelDataArray:E.current.panelDataArray,setLayout:g}),Ije(()=>{const{panelDataArray:t}=E.current;if(e){if(0===m.length||m.length!==t.length)return;let n=CRe[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(DRe,100),CRe[e]=n);const r=[...t],i=new Map(v.current);n(e,r,i,m,l)}},[e,m,l]),Ije(()=>{});const D=Pje(e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=NRe(r,e,n);if(Wje(null!=a),a!==o){v.current.set(e.id,a);const l=Jje({delta:ARe(r,e)===r.length-1?a-o:o-a,layout:n,panelConstraints:i,pivotIndices:s,trigger:"imperative-api"});fRe(n,l)||(g(l),E.current.layout=l,t&&t(l),dRe(r,l,y.current))}}},[]),w=Pje(e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,minSize:s=0,pivotIndices:l}=NRe(r,e,n);if(a===o){const o=v.current.get(e.id),u=null!=o&&o>=s?o:s,c=Jje({delta:ARe(r,e)===r.length-1?a-u:u-a,layout:n,panelConstraints:i,pivotIndices:l,trigger:"imperative-api"});fRe(n,c)||(g(c),E.current.layout=c,t&&t(c),dRe(r,c,y.current))}}},[]),T=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=NRe(n,e,t);return Wje(null!=r),r},[]),C=Pje((e,t)=>{const{panelDataArray:n}=E.current,r=ARe(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e:"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:f,layout:m,panelData:n,panelIndex:r})},[f,m]),S=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=NRe(n,e,t);return!0===i&&o===r},[]),k=Pje(e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=NRe(n,e,t);return Wje(null!=o),!i||o>r},[]),A=Pje(e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),E.current.panelDataArrayChanged=!0},[]);zje(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=x.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=ERe(e,n))&&void 0!==r?r:{})[xRe(t)])&&void 0!==i?i:null}(e,i,n);t&&(v.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map(e=>e.constraints);let r=0,i=100;for(let o=0;oe.constraints)});aRe(r,a)||(g(a),E.current.layout=a,t&&t(a),dRe(i,a,y.current))}});const N=Pje(e=>function(t){t.preventDefault();const{direction:n,dragState:r,id:i,keyboardResizeBy:o,onLayout:a}=x.current,{layout:s,panelDataArray:l}=E.current,{initialLayout:u}=null!=r?r:{},c=nRe(i,e);let p=pRe(t,e,n,r,o);if(0===p)return;const d="horizontal"===n;"rtl"===document.dir&&d&&(p=-p);const f=Jje({delta:p,layout:null!=u?u:s,panelConstraints:l.map(e=>e.constraints),pivotIndices:c,trigger:sRe(t)?"keyboard":"mouse-or-touch"}),h=!fRe(s,f);(lRe(t)||uRe(t))&&b.current!=p&&(b.current=p,yRe(h?d?"horizontal":"vertical":d?p<0?"horizontal-min":"horizontal-max":p<0?"vertical-min":"vertical-max")),h&&(g(f),E.current.layout=f,a&&a(f),dRe(l,f,y.current))},[]),F=Pje((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current,o=i.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=NRe(i,e,r);Wje(null!=a);const l=Jje({delta:ARe(i,e)===i.length-1?a-t:t-a,layout:r,panelConstraints:o,pivotIndices:s,trigger:"imperative-api"});fRe(r,l)||(g(l),E.current.layout=l,n&&n(l),dRe(i,l,y.current))},[]),_=Pje((e,t)=>{const{direction:n}=x.current,{layout:r}=E.current,i=iRe(e);Wje(i);const o=cRe(n,t);h({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),P=Pje(()=>{null!==mRe&&(document.head.removeChild(mRe),hRe=null,mRe=null),h(null)},[]),O=Pje(e=>{const{panelDataArray:t}=E.current,n=ARe(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)},[]),I=jje(()=>({collapsePanel:D,direction:r,dragState:f,expandPanel:w,getPanelSize:T,getPanelStyle:C,groupId:d,isPanelCollapsed:S,isPanelExpanded:k,registerPanel:A,registerResizeHandle:N,resizePanel:F,startDragging:_,stopDragging:P,unregisterPanel:O}),[D,f,r,w,T,C,d,S,k,A,N,F,_,P,O]),L={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Nje(Uje.Provider,{value:I},Nje(c,{...p,children:t,className:n,style:{...L,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":d}))}const kRe=_je((e,t)=>Nje(SRe,{...e,forwardedRef:t}));function ARe(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function NRe(e,t,n){const r=e.map(e=>e.constraints),i=ARe(e,t),o=r[i],a=i===e.length-1?[i-1,i]:[i,i+1];return{...o,panelSize:n[i],pivotIndices:a}}function FRe({children:e=null,className:t="",disabled:n=!1,id:r,onDragging:i,style:o={},tabIndex:a=0,tagName:s="div",...l}){const u=Rje(null),c=Rje({onDragging:i});Ije(()=>{c.current.onDragging=i});const p=Oje(Uje);if(null===p)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:d,dragState:f,groupId:h,registerResizeHandle:m,startDragging:g,stopDragging:y}=p,v=Hje(r),b=(null==f?void 0:f.dragHandleId)===v,[x,E]=Bje(!1),[D,w]=Bje(null),T=Pje(()=>{const e=u.current;Wje(e),e.blur(),y();const{onDragging:t}=c.current;t&&t(!1)},[y]);Ije(()=>{if(n)w(null);else{const e=m(v);w(()=>e)}},[n,v,m]),Ije(()=>{if(n||null==D||!b)return;const e=e=>{D(e)},t=e=>{D(e)},r=u.current;Wje(r);const i=r.ownerDocument;return i.body.addEventListener("contextmenu",T),i.body.addEventListener("mousemove",e),i.body.addEventListener("touchmove",e),i.body.addEventListener("mouseleave",t),window.addEventListener("mouseup",T),window.addEventListener("touchend",T),()=>{i.body.removeEventListener("contextmenu",T),i.body.removeEventListener("mousemove",e),i.body.removeEventListener("touchmove",e),i.body.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",T),window.removeEventListener("touchend",T)}},[d,n,b,D,T]),function({disabled:e,handleId:t,resizeHandler:n}){Ije(()=>{if(e||null==n)return;const r=iRe(t);if(null==r)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=r.getAttribute("data-panel-group-id");Wje(n);const i=eRe(n),o=tRe(n,t);Wje(null!==o),i[e.shiftKey?o>0?o-1:i.length-1:o+1{r.removeEventListener("keydown",i)}},[e,t,n])}({disabled:n,handleId:v,resizeHandler:D});const C={cursor:gRe(d),touchAction:"none",userSelect:"none"};return Nje(s,{...l,children:e,className:t,onBlur:()=>E(!1),onFocus:()=>E(!0),onMouseDown:e=>{g(v,e.nativeEvent);const t=c.current;Wje(t);const{onDragging:n}=t;n&&n(!0)},onMouseUp:T,onTouchCancel:T,onTouchEnd:T,onTouchStart:e=>{g(v,e.nativeEvent);const t=c.current;Wje(t);const{onDragging:n}=t;n&&n(!0)},ref:u,role:"separator",style:{...C,...o},tabIndex:a,"data-panel-group-direction":d,"data-panel-group-id":h,"data-resize-handle":"","data-resize-handle-active":b?"pointer":x?"keyboard":void 0,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":v})}SRe.displayName="PanelGroup",kRe.displayName="forwardRef(PanelGroup)",FRe.displayName="PanelResizeHandle";const _Re=({className:e,...t})=>ee.jsx(kRe,{className:ed("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),PRe=Kje,ORe=({withHandle:e,className:t,...n})=>ee.jsx(FRe,{className:ed("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&ee.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:ee.jsx(QL,{className:"h-2.5 w-2.5"})})});var IRe={exports:{}},LRe={exports:{}};const MRe=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var jRe;function RRe(){return jRe||(jRe=1,LRe.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r&&r.crypto&&(n=r.crypto),!n)try{n=MRe}catch($qe){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch($qe){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch($qe){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},f=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(c2){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*l,o);if(l){for(var p=0;p>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),$Re.exports;var e}var HRe,GRe={exports:{}};function KRe(){return HRe||(HRe=1,GRe.exports=(e=RRe(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16)),GRe.exports;var e}var WRe,QRe={exports:{}};function YRe(){return WRe||(WRe=1,QRe.exports=(e=RRe(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l>>6*(3-l)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],x=e[t+9],E=e[t+10],D=e[t+11],w=e[t+12],T=e[t+13],C=e[t+14],S=e[t+15],k=o[0],A=o[1],N=o[2],F=o[3];k=u(k,A,N,F,a,7,s[0]),F=u(F,k,A,N,l,12,s[1]),N=u(N,F,k,A,f,17,s[2]),A=u(A,N,F,k,h,22,s[3]),k=u(k,A,N,F,m,7,s[4]),F=u(F,k,A,N,g,12,s[5]),N=u(N,F,k,A,y,17,s[6]),A=u(A,N,F,k,v,22,s[7]),k=u(k,A,N,F,b,7,s[8]),F=u(F,k,A,N,x,12,s[9]),N=u(N,F,k,A,E,17,s[10]),A=u(A,N,F,k,D,22,s[11]),k=u(k,A,N,F,w,7,s[12]),F=u(F,k,A,N,T,12,s[13]),N=u(N,F,k,A,C,17,s[14]),k=c(k,A=u(A,N,F,k,S,22,s[15]),N,F,l,5,s[16]),F=c(F,k,A,N,y,9,s[17]),N=c(N,F,k,A,D,14,s[18]),A=c(A,N,F,k,a,20,s[19]),k=c(k,A,N,F,g,5,s[20]),F=c(F,k,A,N,E,9,s[21]),N=c(N,F,k,A,S,14,s[22]),A=c(A,N,F,k,m,20,s[23]),k=c(k,A,N,F,x,5,s[24]),F=c(F,k,A,N,C,9,s[25]),N=c(N,F,k,A,h,14,s[26]),A=c(A,N,F,k,b,20,s[27]),k=c(k,A,N,F,T,5,s[28]),F=c(F,k,A,N,f,9,s[29]),N=c(N,F,k,A,v,14,s[30]),k=p(k,A=c(A,N,F,k,w,20,s[31]),N,F,g,4,s[32]),F=p(F,k,A,N,b,11,s[33]),N=p(N,F,k,A,D,16,s[34]),A=p(A,N,F,k,C,23,s[35]),k=p(k,A,N,F,l,4,s[36]),F=p(F,k,A,N,m,11,s[37]),N=p(N,F,k,A,v,16,s[38]),A=p(A,N,F,k,E,23,s[39]),k=p(k,A,N,F,T,4,s[40]),F=p(F,k,A,N,a,11,s[41]),N=p(N,F,k,A,h,16,s[42]),A=p(A,N,F,k,y,23,s[43]),k=p(k,A,N,F,x,4,s[44]),F=p(F,k,A,N,w,11,s[45]),N=p(N,F,k,A,S,16,s[46]),k=d(k,A=p(A,N,F,k,f,23,s[47]),N,F,a,6,s[48]),F=d(F,k,A,N,v,10,s[49]),N=d(N,F,k,A,C,15,s[50]),A=d(A,N,F,k,g,21,s[51]),k=d(k,A,N,F,w,6,s[52]),F=d(F,k,A,N,h,10,s[53]),N=d(N,F,k,A,E,15,s[54]),A=d(A,N,F,k,l,21,s[55]),k=d(k,A,N,F,b,6,s[56]),F=d(F,k,A,N,S,10,s[57]),N=d(N,F,k,A,y,15,s[58]),A=d(A,N,F,k,T,21,s[59]),k=d(k,A,N,F,m,6,s[60]),F=d(F,k,A,N,D,10,s[61]),N=d(N,F,k,A,f,15,s[62]),A=d(A,N,F,k,x,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+A|0,o[2]=o[2]+N|0,o[3]=o[3]+F|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function p(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5)),tBe.exports;var e}var rBe,iBe={exports:{}};function oBe(){return rBe||(rBe=1,iBe.exports=(s=RRe(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,i=e.algo,o=[],a=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|e[t+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var p=(r<<5|r>>>27)+l+o[u];p+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a),s.SHA1)),iBe.exports;var e,t,n,r,i,o,a,s}var aBe,sBe={exports:{}};function lBe(){return aBe||(aBe=1,sBe.exports=(e=RRe(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],p=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var h=u[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[f-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=m+u[f-7]+y+u[f-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&p)+l[f]+u[f];d=p,p=c,c=s,s=a+x|0,a=o,o=i,i=r,r=x+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(c),n.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256)),sBe.exports;var e}var uBe,cBe={exports:{}};var pBe,dBe={exports:{}};function fBe(){return pBe||(pBe=1,dBe.exports=(e=RRe(),URe(),function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],p=n[6],d=n[7],f=r.high,h=r.low,m=i.high,g=i.low,y=o.high,v=o.low,b=a.high,x=a.low,E=s.high,D=s.low,w=c.high,T=c.low,C=p.high,S=p.low,k=d.high,A=d.low,N=f,F=h,_=m,P=g,O=y,I=v,L=b,M=x,j=E,R=D,B=w,V=T,U=C,z=S,$=k,q=A,H=0;H<80;H++){var G,K,W=u[H];if(H<16)K=W.high=0|e[t+2*H],G=W.low=0|e[t+2*H+1];else{var Q=u[H-15],Y=Q.high,X=Q.low,J=(Y>>>1|X<<31)^(Y>>>8|X<<24)^Y>>>7,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^(X>>>7|Y<<25),ee=u[H-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=u[H-7],ae=oe.high,se=oe.low,le=u[H-16],ue=le.high,ce=le.low;K=(K=(K=J+ae+((G=Z+se)>>>0>>0?1:0))+re+((G+=ie)>>>0>>0?1:0))+ue+((G+=ce)>>>0>>0?1:0),W.high=K,W.low=G}var pe,de=j&B^~j&U,fe=R&V^~R&z,he=N&_^N&O^_&O,me=F&P^F&I^P&I,ge=(N>>>28|F<<4)^(N<<30|F>>>2)^(N<<25|F>>>7),ye=(F>>>28|N<<4)^(F<<30|N>>>2)^(F<<25|N>>>7),ve=(j>>>14|R<<18)^(j>>>18|R<<14)^(j<<23|R>>>9),be=(R>>>14|j<<18)^(R>>>18|j<<14)^(R<<23|j>>>9),xe=l[H],Ee=xe.high,De=xe.low,we=$+ve+((pe=q+be)>>>0>>0?1:0),Te=ye+me;$=U,q=z,U=B,z=V,B=j,V=R,j=L+(we=(we=(we=we+de+((pe+=fe)>>>0>>0?1:0))+Ee+((pe+=De)>>>0>>0?1:0))+K+((pe+=G)>>>0>>0?1:0))+((R=M+pe|0)>>>0>>0?1:0)|0,L=O,M=I,O=_,I=P,_=N,P=F,N=we+(ge+he+(Te>>>0>>0?1:0))+((F=pe+Te|0)>>>0>>0?1:0)|0}h=r.low=h+F,r.high=f+N+(h>>>0>>0?1:0),g=i.low=g+P,i.high=m+_+(g>>>0

>>0?1:0),v=o.low=v+I,o.high=y+O+(v>>>0>>0?1:0),x=a.low=x+M,a.high=b+L+(x>>>0>>0?1:0),D=s.low=D+R,s.high=E+j+(D>>>0>>0?1:0),T=c.low=T+V,c.high=w+B+(T>>>0>>0?1:0),S=p.low=S+z,p.high=C+U+(S>>>0>>0?1:0),A=d.low=A+q,d.high=k+$+(A>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(c),t.HmacSHA512=n._createHmacHelper(c)}(),e.SHA512)),dBe.exports;var e}var hBe,mBe={exports:{}};var gBe,yBe={exports:{}};function vBe(){return gBe||(gBe=1,yBe.exports=(e=RRe(),URe(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64.Word,s=n.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,p=0,d=0;d<7;d++){if(1&i){var f=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(A=n[i]).high^=a,A.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,h=0,m=0;m<5;m++)f^=(A=n[d+5*m]).high,h^=A.low;var g=p[d];g.high=f,g.low=h}for(d=0;d<5;d++){var y=p[(d+4)%5],v=p[(d+1)%5],b=v.high,x=v.low;for(f=y.high^(b<<1|x>>>31),h=y.low^(x<<1|b>>>31),m=0;m<5;m++)(A=n[d+5*m]).high^=f,A.low^=h}for(var E=1;E<25;E++){var D=(A=n[E]).high,w=A.low,T=l[E];T<32?(f=D<>>32-T,h=w<>>32-T):(f=w<>>64-T,h=D<>>64-T);var C=p[u[E]];C.high=f,C.low=h}var S=p[0],k=n[0];for(S.high=k.high,S.low=k.low,d=0;d<5;d++)for(m=0;m<5;m++){var A=n[E=d+5*m],N=p[E],F=p[(d+1)%5+5*m],_=p[(d+2)%5+5*m];A.high=N.high^~F.high&_.high,A.low=N.low^~F.low&_.low}A=n[0];var P=c[s];A.high^=P.high,A.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(d)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(d),n.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3)),yBe.exports;var e}var bBe,xBe={exports:{}};var EBe,DBe={exports:{}};function wBe(){return EBe||(EBe=1,DBe.exports=(e=RRe(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,u=0;u>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:f,padding:h}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=u.create({keySize:t+n,hasher:i}).compute(e,r);else var a=u.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()))),FBe.exports;var e}var PBe,OBe={exports:{}};var IBe,LBe={exports:{}};var MBe,jBe={exports:{}};function RBe(){return MBe||(MBe=1,jBe.exports=(e=RRe(),_Be(), /** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR diff --git a/studio/package.json b/studio/package.json index 287bf590bb..14fc5095d6 100644 --- a/studio/package.json +++ b/studio/package.json @@ -95,7 +95,7 @@ "lz-string": "^1.5.0", "monaco-editor": "^0.45.0", "monaco-graphql": "^1.4.0", - "next": "15.4.11", + "next": "15.5.15", "next-themes": "^0.2.1", "posthog-js": "^1.240.6", "pretty-bytes": "^6.1.1",