diff --git a/.eslintignore b/.eslintignore index b11bdffd4..fe45d698f 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ build coverage .eslintrc.cjs app-executor/bin/executor-bundle.js +*.bundle.cjs diff --git a/.gitignore b/.gitignore index 0b1c4abc5..c8c89d19b 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,9 @@ packages/app-executor/bin/executor-bundle.js .turbo .idea + +packages/python/rivet.bundle.cjs + +packages/core/meta.json + +packages/python/__pycache__/ diff --git a/.pnp.cjs b/.pnp.cjs index dd18e65f4..9f683688e 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -61,7 +61,7 @@ const RAW_RUNTIME_STATE = ["@octokit/rest", "npm:20.0.1"],\ ["@swc/core", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:1.3.71"],\ ["@types/eslint", "npm:8.44.1"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/yargs", "npm:17.0.24"],\ ["@typescript-eslint/eslint-plugin", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:5.62.0"],\ ["chalk", "npm:5.3.0"],\ @@ -427,7 +427,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/banner", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.1.15"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -454,9 +454,9 @@ const RAW_RUNTIME_STATE = ["@atlaskit/blanket", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:12.4.3"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ ["@atlaskit/codemod-utils", "npm:4.2.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -482,13 +482,13 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/button", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:16.8.2"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/focus-ring", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:1.3.3"],\ ["@atlaskit/interaction-context", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.1.0"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/spinner", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:15.5.0"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -514,11 +514,11 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/checkbox", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.7"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -554,7 +554,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/css-reset", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:6.5.4"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@types/react", "npm:18.2.17"],\ ["fbjs", "npm:3.0.5"],\ @@ -581,15 +581,15 @@ const RAW_RUNTIME_STATE = ["@atlaskit/dropdown-menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.0"],\ ["@atlaskit/button", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:16.8.2"],\ ["@atlaskit/codemod-utils", "npm:4.2.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ - ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.10.1"],\ + ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.7"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/popup", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.0"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/spinner", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:15.5.0"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@atlaskit/visually-hidden", "virtual:8cc09dff0da27a457a97b0f2af0f01aa13a9d8a0d833f059258502ce920bcf4fa8cc86ebfe64da6f4edb1de47213792a993612979de1470c70c0ba949fc5b4b4#npm:1.2.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ @@ -616,11 +616,11 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:2.2.1", {\ - "packageLocation": "./.yarn/__virtual__/@atlaskit-ds-explorations-virtual-f1a77a577f/0/cache/@atlaskit-ds-explorations-npm-2.2.1-64649033dc-3f3dda7ebe.zip/node_modules/@atlaskit/ds-explorations/",\ + ["virtual:5cb6282051b04a9d558daf53934caf5251c38170b825767756a49bd187b77faca08e1d8ecb66541303f8b8c8dd45ab166ad264e7aecf488361c71988961d66c4#npm:2.2.1", {\ + "packageLocation": "./.yarn/__virtual__/@atlaskit-ds-explorations-virtual-3efdc16684/0/cache/@atlaskit-ds-explorations-npm-2.2.1-64649033dc-3f3dda7ebe.zip/node_modules/@atlaskit/ds-explorations/",\ "packageDependencies": [\ - ["@atlaskit/ds-explorations", "virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:2.2.1"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/ds-explorations", "virtual:5cb6282051b04a9d558daf53934caf5251c38170b825767756a49bd187b77faca08e1d8ecb66541303f8b8c8dd45ab166ad264e7aecf488361c71988961d66c4#npm:2.2.1"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -642,10 +642,10 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0", {\ - "packageLocation": "./.yarn/__virtual__/@atlaskit-ds-lib-virtual-d129b011e1/0/cache/@atlaskit-ds-lib-npm-2.2.0-48bdf8d36a-ffb7450b93.zip/node_modules/@atlaskit/ds-lib/",\ + ["virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0", {\ + "packageLocation": "./.yarn/__virtual__/@atlaskit-ds-lib-virtual-0622dc515f/0/cache/@atlaskit-ds-lib-npm-2.2.0-48bdf8d36a-ffb7450b93.zip/node_modules/@atlaskit/ds-lib/",\ "packageDependencies": [\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@types/react", "npm:18.2.17"],\ ["bind-event-listener", "npm:2.1.1"],\ @@ -670,7 +670,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-focus-ring-virtual-1dd085b1ef/0/cache/@atlaskit-focus-ring-npm-1.3.3-136b2bf4ec-37890754cc.zip/node_modules/@atlaskit/focus-ring/",\ "packageDependencies": [\ ["@atlaskit/focus-ring", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:1.3.3"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -697,7 +697,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/form", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:8.11.8"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -728,7 +728,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -764,10 +764,10 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/inline-dialog", "virtual:3a2ad4260fa81d787be46c655798dc39cc26758241978f0c88c5142ce1557dbc67cc5af1f2a25d1d85c0c8d3d85f39d90be874046de73da4225d2fdb66750d8c#npm:13.6.4"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/popper", "virtual:af08a2c59b9c02752d0539cc25f6dccd2f08d6521d71aad9daf6a6271c1bd7d9c26b765190e2e9899c783eb686dc775ea9d11839e14f7aade05fb939a4c8e173#npm:5.5.3"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -802,7 +802,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/inline-dialog", "virtual:3a2ad4260fa81d787be46c655798dc39cc26758241978f0c88c5142ce1557dbc67cc5af1f2a25d1d85c0c8d3d85f39d90be874046de73da4225d2fdb66750d8c#npm:13.6.4"],\ ["@atlaskit/textfield", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:5.6.3"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -846,16 +846,24 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.10.1", {\ - "packageLocation": "./.yarn/__virtual__/@atlaskit-menu-virtual-f71fe55914/0/cache/@atlaskit-menu-npm-1.10.1-b6aa9ff9bc-0ed53112e7.zip/node_modules/@atlaskit/menu/",\ + ["npm:1.9.7", {\ + "packageLocation": "./.yarn/cache/@atlaskit-menu-npm-1.9.7-2916330bf2-3a0c37588d.zip/node_modules/@atlaskit/menu/",\ "packageDependencies": [\ - ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.10.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/menu", "npm:1.9.7"]\ + ],\ + "linkType": "SOFT"\ + }],\ + ["virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.7", {\ + "packageLocation": "./.yarn/__virtual__/@atlaskit-menu-virtual-5cb6282051/0/cache/@atlaskit-menu-npm-1.9.7-2916330bf2-3a0c37588d.zip/node_modules/@atlaskit/menu/",\ + "packageDependencies": [\ + ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.7"],\ + ["@atlaskit/ds-explorations", "virtual:5cb6282051b04a9d558daf53934caf5251c38170b825767756a49bd187b77faca08e1d8ecb66541303f8b8c8dd45ab166ad264e7aecf488361c71988961d66c4#npm:2.2.1"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/focus-ring", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:1.3.3"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -875,12 +883,12 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-menu-virtual-8fb9fe281f/0/cache/@atlaskit-menu-npm-1.10.1-b6aa9ff9bc-0ed53112e7.zip/node_modules/@atlaskit/menu/",\ "packageDependencies": [\ ["@atlaskit/menu", "virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:1.10.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/focus-ring", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:1.3.3"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -912,14 +920,14 @@ const RAW_RUNTIME_STATE = ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ ["@atlaskit/blanket", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:12.4.3"],\ ["@atlaskit/codemod-utils", "npm:4.2.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/focus-ring", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:1.3.3"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/motion", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:1.4.3"],\ ["@atlaskit/portal", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:4.3.4"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -949,7 +957,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-motion-virtual-a3bf2f930f/0/cache/@atlaskit-motion-npm-1.4.3-c711d07f03-2dd1be0d75.zip/node_modules/@atlaskit/motion/",\ "packageDependencies": [\ ["@atlaskit/motion", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:1.4.3"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1011,12 +1019,12 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-popup-virtual-dad695483f/0/cache/@atlaskit-popup-npm-1.9.0-2bbbaaff33-062600459c.zip/node_modules/@atlaskit/popup/",\ "packageDependencies": [\ ["@atlaskit/popup", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/popper", "virtual:af08a2c59b9c02752d0539cc25f6dccd2f08d6521d71aad9daf6a6271c1bd7d9c26b765190e2e9899c783eb686dc775ea9d11839e14f7aade05fb939a4c8e173#npm:5.5.3"],\ ["@atlaskit/portal", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:4.3.4"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1094,7 +1102,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-primitives-virtual-48eae33ad2/0/cache/@atlaskit-primitives-npm-1.3.1-2face53841-83ffa6f8af.zip/node_modules/@atlaskit/primitives/",\ "packageDependencies": [\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@emotion/serialize", "npm:1.1.2"],\ @@ -1126,7 +1134,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/spinner", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:15.5.0"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@atlaskit/visually-hidden", "virtual:8cc09dff0da27a457a97b0f2af0f01aa13a9d8a0d833f059258502ce920bcf4fa8cc86ebfe64da6f4edb1de47213792a993612979de1470c70c0ba949fc5b4b4#npm:1.2.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ @@ -1166,14 +1174,14 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/__virtual__/@atlaskit-side-navigation-virtual-ce667f5ff7/0/cache/@atlaskit-side-navigation-npm-2.0.3-afc9737642-b3e7034732.zip/node_modules/@atlaskit/side-navigation/",\ "packageDependencies": [\ ["@atlaskit/side-navigation", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:2.0.3"],\ - ["@atlaskit/ds-explorations", "virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:2.2.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-explorations", "virtual:5cb6282051b04a9d558daf53934caf5251c38170b825767756a49bd187b77faca08e1d8ecb66541303f8b8c8dd45ab166ad264e7aecf488361c71988961d66c4#npm:2.2.1"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/menu", "virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:1.10.1"],\ ["@atlaskit/motion", "virtual:120d1f0ea54c04fd557178d5b264dbcdec9520c40760e526a7c458ab087b21ccd4d28982ee22e047b24d78997e85160e9b79539980fc80b18fb1c309294e8cdc#npm:1.4.3"],\ ["@atlaskit/primitives", "virtual:ad938f5ac6513e20cbe43a2d9f916792b4f70f052aaa7f0d943af3628b27001dc1992acc6dcf59652e869c40ff18e8d5f70ad5a84e6ad006344d5c87fd48e022#npm:1.3.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1200,7 +1208,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/spinner", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:15.5.0"],\ ["@atlaskit/interaction-context", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.1.0"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1227,9 +1235,9 @@ const RAW_RUNTIME_STATE = ["@atlaskit/tabs", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:13.4.3"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ ["@atlaskit/codemod-utils", "npm:4.2.0"],\ - ["@atlaskit/ds-explorations", "virtual:ce667f5ff7a7f5144dcba8201193da3362d417afd235ddcf16f53c0fbfb93af54c3fb110a70df19d6155c7f61e2b5281754b9b4340fb710f565b15ccc6cafb5f#npm:2.2.1"],\ + ["@atlaskit/ds-explorations", "virtual:5cb6282051b04a9d558daf53934caf5251c38170b825767756a49bd187b77faca08e1d8ecb66541303f8b8c8dd45ab166ad264e7aecf488361c71988961d66c4#npm:2.2.1"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1257,7 +1265,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1285,7 +1293,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1311,8 +1319,8 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ ["@atlaskit/codemod-utils", "npm:4.2.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@types/react", "npm:18.2.17"],\ ["react", "npm:18.2.0"]\ @@ -1337,10 +1345,10 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@atlaskit/toggle", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.9"],\ ["@atlaskit/analytics-next", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:9.1.1"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ ["@types/react", "npm:18.2.17"],\ @@ -1354,6 +1362,13 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@atlaskit/tokens", [\ + ["npm:1.13.1", {\ + "packageLocation": "./.yarn/cache/@atlaskit-tokens-npm-1.13.1-0470117ac0-7d681e19ad.zip/node_modules/@atlaskit/tokens/",\ + "packageDependencies": [\ + ["@atlaskit/tokens", "npm:1.13.1"]\ + ],\ + "linkType": "SOFT"\ + }],\ ["npm:1.20.0", {\ "packageLocation": "./.yarn/cache/@atlaskit-tokens-npm-1.20.0-17eb9f01b8-702e0fae21.zip/node_modules/@atlaskit/tokens/",\ "packageDependencies": [\ @@ -1361,11 +1376,30 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0", {\ - "packageLocation": "./.yarn/__virtual__/@atlaskit-tokens-virtual-82d9fab271/0/cache/@atlaskit-tokens-npm-1.20.0-17eb9f01b8-702e0fae21.zip/node_modules/@atlaskit/tokens/",\ + ["virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1", {\ + "packageLocation": "./.yarn/__virtual__/@atlaskit-tokens-virtual-7cdf63b773/0/cache/@atlaskit-tokens-npm-1.13.1-0470117ac0-7d681e19ad.zip/node_modules/@atlaskit/tokens/",\ + "packageDependencies": [\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ + ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ + ["@babel/runtime", "npm:7.22.5"],\ + ["@babel/traverse", "npm:7.22.8"],\ + ["@babel/types", "npm:7.22.5"],\ + ["@types/react", "npm:18.2.17"],\ + ["bind-event-listener", "npm:2.1.1"],\ + ["react", "npm:18.2.0"]\ + ],\ + "packagePeers": [\ + "@types/react",\ + "react"\ + ],\ + "linkType": "HARD"\ + }],\ + ["virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0", {\ + "packageLocation": "./.yarn/__virtual__/@atlaskit-tokens-virtual-5d11f5ec80/0/cache/@atlaskit-tokens-npm-1.20.0-17eb9f01b8-702e0fae21.zip/node_modules/@atlaskit/tokens/",\ "packageDependencies": [\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ - ["@atlaskit/ds-lib", "virtual:b7eb59f3c8117295a8d08a6614c5fddda20bd22aa1dca10b9923725bbc77ae25692b5b429b477a288ae7e0b4cb36986b7b7f22ec933218c293965ae2911d830f#npm:2.2.0"],\ + ["@atlaskit/tokens", "virtual:48eae33ad237966a6537d44dc884eb683688250c96531ccbc422988b9dc49a4b930c992b8c06a7ccf40aa26736497c036efb1195126a098fd2c82083df0871c9#npm:1.20.0"],\ + ["@atlaskit/ds-lib", "virtual:5d11f5ec806e60b6750874c76ee2e046f695ceebc9404c0ad8fb76b5d16b6c2cb67f91fd8a9fadd34fbd553d6d4a064a9bd765dc92aa65ece3dfaa5be1c29cfe#npm:2.2.0"],\ ["@atlaskit/platform-feature-flags", "npm:0.2.4"],\ ["@babel/runtime", "npm:7.22.5"],\ ["@babel/traverse", "npm:7.22.8"],\ @@ -6561,7 +6595,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@grpc/grpc-js", "npm:1.8.17"],\ ["@grpc/proto-loader", "npm:0.7.7"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -6670,7 +6704,7 @@ const RAW_RUNTIME_STATE = ["@octokit/rest", "npm:20.0.1"],\ ["@swc/core", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:1.3.71"],\ ["@types/eslint", "npm:8.44.1"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/yargs", "npm:17.0.24"],\ ["@typescript-eslint/eslint-plugin", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:5.62.0"],\ ["chalk", "npm:5.3.0"],\ @@ -6704,7 +6738,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/form", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:8.11.8"],\ ["@atlaskit/icon", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:21.12.7"],\ ["@atlaskit/inline-edit", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.3.5"],\ - ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.10.1"],\ + ["@atlaskit/menu", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.7"],\ ["@atlaskit/modal-dialog", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.4"],\ ["@atlaskit/popup", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.9.0"],\ ["@atlaskit/portal", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:4.3.4"],\ @@ -6715,7 +6749,7 @@ const RAW_RUNTIME_STATE = ["@atlaskit/textfield", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:5.6.3"],\ ["@atlaskit/theme", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.0"],\ ["@atlaskit/toggle", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:12.6.9"],\ - ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.20.0"],\ + ["@atlaskit/tokens", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:1.13.1"],\ ["@dnd-kit/core", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:6.0.8"],\ ["@dqbd/tiktoken", "npm:1.0.7"],\ ["@emotion/react", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:11.11.1"],\ @@ -6730,7 +6764,7 @@ const RAW_RUNTIME_STATE = ["@types/jsonpath-plus", "npm:5.0.2"],\ ["@types/lodash-es", "npm:4.17.8"],\ ["@types/marked", "npm:5.0.1"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/react", "npm:18.2.17"],\ ["@types/react-color", "npm:2.17.6"],\ ["@types/react-dom", "npm:18.2.7"],\ @@ -6842,9 +6876,10 @@ const RAW_RUNTIME_STATE = ["@types/jsonpath-plus", "npm:5.0.2"],\ ["@types/lodash", "npm:4.14.196"],\ ["@types/lodash-es", "npm:4.17.8"],\ + ["@types/whatwg-fetch", "npm:0.0.33"],\ ["@types/yaml", "npm:1.9.7"],\ ["@typescript-eslint/eslint-plugin", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:5.62.0"],\ - ["autoevals", "npm:0.0.16"],\ + ["autoevals", "portal:/Users/Shared/ironclad/github/autoevals::locator=%40ironclad%2Frivet%40workspace%3A."],\ ["crypto-js", "npm:4.1.1"],\ ["emittery", "npm:1.0.1"],\ ["emittery-0-13", [\ @@ -6852,10 +6887,12 @@ const RAW_RUNTIME_STATE = "npm:0.13.1"\ ]],\ ["esbuild", "npm:0.18.17"],\ + ["esbuild-plugin-wasm", "npm:1.1.0"],\ ["eslint", "npm:8.46.0"],\ ["eslint-plugin-import", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:2.28.0"],\ ["eslint-plugin-n", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:16.0.1"],\ ["eslint-plugin-promise", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:6.1.1"],\ + ["gpt-tokenizer", "npm:2.1.1"],\ ["jsonpath-plus", "npm:7.2.0"],\ ["lodash", "npm:4.17.21"],\ ["lodash-es", "npm:4.17.21"],\ @@ -6879,6 +6916,7 @@ const RAW_RUNTIME_STATE = ["tsx", "npm:3.12.7"],\ ["type-fest", "npm:4.0.0"],\ ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["whatwg-fetch", "npm:3.6.17"],\ ["yaml", "npm:2.3.1"]\ ],\ "linkType": "SOFT"\ @@ -6895,7 +6933,7 @@ const RAW_RUNTIME_STATE = ["@types/lodash", "npm:4.14.196"],\ ["@types/lodash-es", "npm:4.17.8"],\ ["@types/minimatch", "npm:5.1.2"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/ws", "npm:8.5.5"],\ ["@typescript-eslint/eslint-plugin", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:5.62.0"],\ ["@zilliz/milvus2-sdk-node", "npm:2.2.21"],\ @@ -6932,7 +6970,7 @@ const RAW_RUNTIME_STATE = ["@ironclad/rivet-core", "workspace:packages/core"],\ ["@types/eslint", "npm:8.44.1"],\ ["@types/lodash-es", "npm:4.17.8"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/yaml", "npm:1.9.7"],\ ["@typescript-eslint/eslint-plugin", "virtual:36b10b38a2f3e49d8cd162fbeda8e49e065ae2d0ebbbd25b0a3339d0203e0ec0394d852d27989cf9f4297d5cf181367ebbc4ea51690fe53337f9c0c2783178a4#npm:5.62.0"],\ ["eslint", "npm:8.46.0"],\ @@ -6967,7 +7005,7 @@ const RAW_RUNTIME_STATE = ["@jest/schemas", "npm:29.4.3"],\ ["@types/istanbul-lib-coverage", "npm:2.0.4"],\ ["@types/istanbul-reports", "npm:3.0.1"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/yargs", "npm:17.0.24"],\ ["chalk", "npm:4.1.2"]\ ],\ @@ -8447,7 +8485,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@types/body-parser", "npm:1.19.2"],\ ["@types/connect", "npm:3.4.35"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8457,7 +8495,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-bonjour-npm-3.5.10-2862bada55-e55c443f83.zip/node_modules/@types/bonjour/",\ "packageDependencies": [\ ["@types/bonjour", "npm:3.5.10"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8467,7 +8505,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-connect-npm-3.4.35-7337eee0a3-1fffce36ab.zip/node_modules/@types/connect/",\ "packageDependencies": [\ ["@types/connect", "npm:3.4.35"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8478,7 +8516,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@types/connect-history-api-fallback", "npm:1.5.0"],\ ["@types/express-serve-static-core", "npm:4.17.35"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8541,7 +8579,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-express-serve-static-core-npm-4.17.35-c86e5f6e4a-20d48d5792.zip/node_modules/@types/express-serve-static-core/",\ "packageDependencies": [\ ["@types/express-serve-static-core", "npm:4.17.35"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/qs", "npm:6.9.7"],\ ["@types/range-parser", "npm:1.2.4"],\ ["@types/send", "npm:0.17.1"]\ @@ -8574,7 +8612,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@types/fs-extra", "npm:11.0.1"],\ ["@types/jsonfile", "npm:6.1.1"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8612,7 +8650,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-http-proxy-npm-1.17.11-55ebe38928-a659596bb6.zip/node_modules/@types/http-proxy/",\ "packageDependencies": [\ ["@types/http-proxy", "npm:1.17.11"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8678,7 +8716,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-jsonfile-npm-6.1.1-62ad833c58-512b06e09f.zip/node_modules/@types/jsonfile/",\ "packageDependencies": [\ ["@types/jsonfile", "npm:6.1.1"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8697,7 +8735,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-keyv-npm-3.1.4-a8082ea56b-c1fbfe6e2a.zip/node_modules/@types/keyv/",\ "packageDependencies": [\ ["@types/keyv", "npm:3.1.4"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8804,6 +8842,13 @@ const RAW_RUNTIME_STATE = ["@types/node", "npm:20.4.10"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:20.4.5", {\ + "packageLocation": "./.yarn/cache/@types-node-npm-20.4.5-7555fad0d4-eadcd2049a.zip/node_modules/@types/node/",\ + "packageDependencies": [\ + ["@types/node", "npm:20.4.5"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@types/parse-json", [\ @@ -8953,7 +8998,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-responselike-npm-1.0.0-85dd08af42-f6e2bc61d2.zip/node_modules/@types/responselike/",\ "packageDependencies": [\ ["@types/responselike", "npm:1.0.0"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -8986,7 +9031,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-sax-npm-1.2.4-559564fa4f-cb00928f54.zip/node_modules/@types/sax/",\ "packageDependencies": [\ ["@types/sax", "npm:1.2.4"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -9001,6 +9046,13 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@types/semver", [\ + ["npm:7.3.13", {\ + "packageLocation": "./.yarn/cache/@types-semver-npm-7.3.13-56212b60da-a76156ff60.zip/node_modules/@types/semver/",\ + "packageDependencies": [\ + ["@types/semver", "npm:7.3.13"]\ + ],\ + "linkType": "HARD"\ + }],\ ["npm:7.5.0", {\ "packageLocation": "./.yarn/cache/@types-semver-npm-7.5.0-4823ff34be-dac255fae6.zip/node_modules/@types/semver/",\ "packageDependencies": [\ @@ -9015,7 +9067,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@types/send", "npm:0.17.1"],\ ["@types/mime", "npm:1.3.2"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -9036,7 +9088,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@types/serve-static", "npm:1.15.1"],\ ["@types/mime", "npm:3.0.1"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -9046,7 +9098,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-sockjs-npm-0.3.33-07d624a8b3-5b500c1e86.zip/node_modules/@types/sockjs/",\ "packageDependencies": [\ ["@types/sockjs", "npm:0.3.33"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -9069,6 +9121,25 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@types/whatwg-fetch", [\ + ["npm:0.0.33", {\ + "packageLocation": "./.yarn/cache/@types-whatwg-fetch-npm-0.0.33-6130610c0a-7191607437.zip/node_modules/@types/whatwg-fetch/",\ + "packageDependencies": [\ + ["@types/whatwg-fetch", "npm:0.0.33"],\ + ["@types/whatwg-streams", "npm:0.0.7"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@types/whatwg-streams", [\ + ["npm:0.0.7", {\ + "packageLocation": "./.yarn/cache/@types-whatwg-streams-npm-0.0.7-dbc55a36b5-85e664d160.zip/node_modules/@types/whatwg-streams/",\ + "packageDependencies": [\ + ["@types/whatwg-streams", "npm:0.0.7"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@types/which", [\ ["npm:3.0.0", {\ "packageLocation": "./.yarn/cache/@types-which-npm-3.0.0-3d41ceeb57-601467cc37.zip/node_modules/@types/which/",\ @@ -9092,7 +9163,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/@types-ws-npm-8.5.5-5f5e3bde2d-4bc2ec6ec8.zip/node_modules/@types/ws/",\ "packageDependencies": [\ ["@types/ws", "npm:8.5.5"],\ - ["@types/node", "npm:20.4.10"]\ + ["@types/node", "npm:20.4.5"]\ ],\ "linkType": "HARD"\ }]\ @@ -9487,7 +9558,7 @@ const RAW_RUNTIME_STATE = ["@eslint-community/eslint-utils", "virtual:dc7af99e618232ac0e2a751f560e2225037bf809144a4cc05369d5312b9d24061282984c0c0c6c5c199f3a0663f91f11c21afb60016655f472fa253e0b676e3b#npm:4.4.0"],\ ["@types/eslint", null],\ ["@types/json-schema", "npm:7.0.12"],\ - ["@types/semver", "npm:7.5.0"],\ + ["@types/semver", "npm:7.3.13"],\ ["@typescript-eslint/scope-manager", "npm:5.62.0"],\ ["@typescript-eslint/types", "npm:5.62.0"],\ ["@typescript-eslint/typescript-estree", "virtual:a92d828ad4c742c45e96806e87565e3c0a5df46a859950c80420f65c32405c24cccb8ad594552985b224a1a52fceed714617a5708f93491e711cc1b873890460#npm:5.62.0"],\ @@ -9508,7 +9579,7 @@ const RAW_RUNTIME_STATE = ["@eslint-community/eslint-utils", "virtual:dc7af99e618232ac0e2a751f560e2225037bf809144a4cc05369d5312b9d24061282984c0c0c6c5c199f3a0663f91f11c21afb60016655f472fa253e0b676e3b#npm:4.4.0"],\ ["@types/eslint", null],\ ["@types/json-schema", "npm:7.0.12"],\ - ["@types/semver", "npm:7.5.0"],\ + ["@types/semver", "npm:7.3.13"],\ ["@typescript-eslint/scope-manager", "npm:5.56.0"],\ ["@typescript-eslint/types", "npm:5.56.0"],\ ["@typescript-eslint/typescript-estree", "virtual:c3bd97b77708601ca5dbd84217f380a5115646b7f4e1765ac87ab1d5f533a85f4e6a21748d41e24aca940bb375f1cd458985a10f078c40e42b031bec23b28da3#npm:5.56.0"],\ @@ -9529,7 +9600,7 @@ const RAW_RUNTIME_STATE = ["@eslint-community/eslint-utils", "virtual:a92d828ad4c742c45e96806e87565e3c0a5df46a859950c80420f65c32405c24cccb8ad594552985b224a1a52fceed714617a5708f93491e711cc1b873890460#npm:4.4.0"],\ ["@types/eslint", "npm:8.44.1"],\ ["@types/json-schema", "npm:7.0.12"],\ - ["@types/semver", "npm:7.5.0"],\ + ["@types/semver", "npm:7.3.13"],\ ["@typescript-eslint/scope-manager", "npm:5.62.0"],\ ["@typescript-eslint/types", "npm:5.62.0"],\ ["@typescript-eslint/typescript-estree", "virtual:a92d828ad4c742c45e96806e87565e3c0a5df46a859950c80420f65c32405c24cccb8ad594552985b224a1a52fceed714617a5708f93491e711cc1b873890460#npm:5.62.0"],\ @@ -10412,10 +10483,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["autoevals", [\ - ["npm:0.0.16", {\ - "packageLocation": "./.yarn/cache/autoevals-npm-0.0.16-fcc9ac0c64-9b78df43a2.zip/node_modules/autoevals/",\ + ["portal:/Users/Shared/ironclad/github/autoevals::locator=%40ironclad%2Frivet%40workspace%3A.", {\ + "packageLocation": "../github/autoevals/",\ "packageDependencies": [\ - ["autoevals", "npm:0.0.16"],\ + ["autoevals", "portal:/Users/Shared/ironclad/github/autoevals::locator=%40ironclad%2Frivet%40workspace%3A."],\ ["@types/node", "npm:20.4.10"],\ ["esbuild", "npm:0.19.1"],\ ["js-levenshtein", "npm:1.1.6"],\ @@ -10424,7 +10495,7 @@ const RAW_RUNTIME_STATE = ["openai", "npm:3.3.0"],\ ["tsx", "npm:3.12.7"]\ ],\ - "linkType": "HARD"\ + "linkType": "SOFT"\ }]\ ]],\ ["autoprefixer", [\ @@ -13043,6 +13114,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["esbuild-plugin-wasm", [\ + ["npm:1.1.0", {\ + "packageLocation": "./.yarn/cache/esbuild-plugin-wasm-npm-1.1.0-2fa409b3be-aebe5a7cc5.zip/node_modules/esbuild-plugin-wasm/",\ + "packageDependencies": [\ + ["esbuild-plugin-wasm", "npm:1.1.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["escalade", [\ ["npm:3.1.1", {\ "packageLocation": "./.yarn/cache/escalade-npm-3.1.1-e02da076aa-37f3535f99.zip/node_modules/escalade/",\ @@ -13990,7 +14070,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/eval-npm-0.1.8-0cd081d9ca-f3ec9c1e62.zip/node_modules/eval/",\ "packageDependencies": [\ ["eval", "npm:0.1.8"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["require-like", "npm:0.1.2"]\ ],\ "linkType": "HARD"\ @@ -15086,6 +15166,16 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["gpt-tokenizer", [\ + ["npm:2.1.1", {\ + "packageLocation": "./.yarn/cache/gpt-tokenizer-npm-2.1.1-0c2e857fb9-2fc1ab811b.zip/node_modules/gpt-tokenizer/",\ + "packageDependencies": [\ + ["gpt-tokenizer", "npm:2.1.1"],\ + ["rfc4648", "npm:1.5.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["graceful-fs", [\ ["npm:4.2.11", {\ "packageLocation": "./.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-0228fc1080.zip/node_modules/graceful-fs/",\ @@ -16434,7 +16524,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-util", "npm:29.5.0"],\ ["@jest/types", "npm:29.5.0"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["chalk", "npm:4.1.2"],\ ["ci-info", "npm:3.8.0"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -16448,7 +16538,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/jest-worker-npm-27.5.1-1c110b5894-dc5167cc25.zip/node_modules/jest-worker/",\ "packageDependencies": [\ ["jest-worker", "npm:27.5.1"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["merge-stream", "npm:2.0.0"],\ ["supports-color", "npm:8.1.1"]\ ],\ @@ -16458,7 +16548,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/jest-worker-npm-29.5.0-70da3388f1-95e135890a.zip/node_modules/jest-worker/",\ "packageDependencies": [\ ["jest-worker", "npm:29.5.0"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["jest-util", "npm:29.5.0"],\ ["merge-stream", "npm:2.0.0"],\ ["supports-color", "npm:8.1.1"]\ @@ -19619,7 +19709,7 @@ const RAW_RUNTIME_STATE = ["@protobufjs/path", "npm:1.1.2"],\ ["@protobufjs/pool", "npm:1.1.0"],\ ["@protobufjs/utf8", "npm:1.1.0"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["long", "npm:5.2.3"]\ ],\ "linkType": "HARD"\ @@ -19922,7 +20012,7 @@ const RAW_RUNTIME_STATE = ["@react-dnd/invariant", "npm:4.0.2"],\ ["@react-dnd/shallowequal", "npm:4.0.2"],\ ["@types/hoist-non-react-statics", null],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/react", "npm:18.2.17"],\ ["dnd-core", "npm:16.0.1"],\ ["fast-deep-equal", "npm:3.1.3"],\ @@ -21076,6 +21166,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["rfc4648", [\ + ["npm:1.5.2", {\ + "packageLocation": "./.yarn/cache/rfc4648-npm-1.5.2-b5df48e84c-96ef88d246.zip/node_modules/rfc4648/",\ + "packageDependencies": [\ + ["rfc4648", "npm:1.5.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["rimraf", [\ ["npm:3.0.2", {\ "packageLocation": "./.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-b786c9ad52.zip/node_modules/rimraf/",\ @@ -22488,7 +22587,7 @@ const RAW_RUNTIME_STATE = ["@tsconfig/node12", "npm:1.0.11"],\ ["@tsconfig/node14", "npm:1.0.3"],\ ["@tsconfig/node16", "npm:1.0.3"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ @@ -22524,7 +22623,7 @@ const RAW_RUNTIME_STATE = ["@tsconfig/node12", "npm:1.0.11"],\ ["@tsconfig/node14", "npm:1.0.3"],\ ["@tsconfig/node16", "npm:1.0.3"],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ @@ -23424,7 +23523,7 @@ const RAW_RUNTIME_STATE = ["vite", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:4.4.7"],\ ["@types/less", null],\ ["@types/lightningcss", null],\ - ["@types/node", "npm:20.4.10"],\ + ["@types/node", "npm:20.4.5"],\ ["@types/sass", null],\ ["@types/stylus", null],\ ["@types/sugarss", null],\ @@ -23873,6 +23972,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["whatwg-fetch", [\ + ["npm:3.6.17", {\ + "packageLocation": "./.yarn/cache/whatwg-fetch-npm-3.6.17-1115589b78-59de97afaa.zip/node_modules/whatwg-fetch/",\ + "packageDependencies": [\ + ["whatwg-fetch", "npm:3.6.17"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["whatwg-url", [\ ["npm:5.0.0", {\ "packageLocation": "./.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-bd0cc6b75b.zip/node_modules/whatwg-url/",\ diff --git a/.vscode/settings.json b/.vscode/settings.json index fe2f04129..2165339e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,5 +16,9 @@ "rust-analyzer.linkedProjects": ["packages/app/src-tauri/Cargo.toml"], "editor.codeActionsOnSave": { "source.fixAll.eslint": true - } + }, + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, + "python.formatting.provider": "none" } diff --git a/.yarn/cache/@atlaskit-menu-npm-1.9.7-2916330bf2-3a0c37588d.zip b/.yarn/cache/@atlaskit-menu-npm-1.9.7-2916330bf2-3a0c37588d.zip new file mode 100644 index 000000000..1a2a2b6a9 Binary files /dev/null and b/.yarn/cache/@atlaskit-menu-npm-1.9.7-2916330bf2-3a0c37588d.zip differ diff --git a/.yarn/cache/@atlaskit-tokens-npm-1.13.1-0470117ac0-7d681e19ad.zip b/.yarn/cache/@atlaskit-tokens-npm-1.13.1-0470117ac0-7d681e19ad.zip new file mode 100644 index 000000000..aa4d5d4f8 Binary files /dev/null and b/.yarn/cache/@atlaskit-tokens-npm-1.13.1-0470117ac0-7d681e19ad.zip differ diff --git a/.yarn/cache/@types-node-npm-20.4.5-7555fad0d4-eadcd2049a.zip b/.yarn/cache/@types-node-npm-20.4.5-7555fad0d4-eadcd2049a.zip new file mode 100644 index 000000000..5d737499d Binary files /dev/null and b/.yarn/cache/@types-node-npm-20.4.5-7555fad0d4-eadcd2049a.zip differ diff --git a/.yarn/cache/@types-semver-npm-7.3.13-56212b60da-a76156ff60.zip b/.yarn/cache/@types-semver-npm-7.3.13-56212b60da-a76156ff60.zip new file mode 100644 index 000000000..eb8e92610 Binary files /dev/null and b/.yarn/cache/@types-semver-npm-7.3.13-56212b60da-a76156ff60.zip differ diff --git a/.yarn/cache/@types-whatwg-fetch-npm-0.0.33-6130610c0a-7191607437.zip b/.yarn/cache/@types-whatwg-fetch-npm-0.0.33-6130610c0a-7191607437.zip new file mode 100644 index 000000000..60337754e Binary files /dev/null and b/.yarn/cache/@types-whatwg-fetch-npm-0.0.33-6130610c0a-7191607437.zip differ diff --git a/.yarn/cache/@types-whatwg-streams-npm-0.0.7-dbc55a36b5-85e664d160.zip b/.yarn/cache/@types-whatwg-streams-npm-0.0.7-dbc55a36b5-85e664d160.zip new file mode 100644 index 000000000..640e0c24c Binary files /dev/null and b/.yarn/cache/@types-whatwg-streams-npm-0.0.7-dbc55a36b5-85e664d160.zip differ diff --git a/.yarn/cache/autoevals-npm-0.0.16-fcc9ac0c64-9b78df43a2.zip b/.yarn/cache/autoevals-npm-0.0.16-fcc9ac0c64-9b78df43a2.zip deleted file mode 100644 index c055cc181..000000000 Binary files a/.yarn/cache/autoevals-npm-0.0.16-fcc9ac0c64-9b78df43a2.zip and /dev/null differ diff --git a/.yarn/cache/esbuild-plugin-wasm-npm-1.1.0-2fa409b3be-aebe5a7cc5.zip b/.yarn/cache/esbuild-plugin-wasm-npm-1.1.0-2fa409b3be-aebe5a7cc5.zip new file mode 100644 index 000000000..62efac524 Binary files /dev/null and b/.yarn/cache/esbuild-plugin-wasm-npm-1.1.0-2fa409b3be-aebe5a7cc5.zip differ diff --git a/.yarn/cache/gpt-tokenizer-npm-2.1.1-0c2e857fb9-2fc1ab811b.zip b/.yarn/cache/gpt-tokenizer-npm-2.1.1-0c2e857fb9-2fc1ab811b.zip new file mode 100644 index 000000000..f2e34edbb Binary files /dev/null and b/.yarn/cache/gpt-tokenizer-npm-2.1.1-0c2e857fb9-2fc1ab811b.zip differ diff --git a/.yarn/cache/rfc4648-npm-1.5.2-b5df48e84c-96ef88d246.zip b/.yarn/cache/rfc4648-npm-1.5.2-b5df48e84c-96ef88d246.zip new file mode 100644 index 000000000..295970d7c Binary files /dev/null and b/.yarn/cache/rfc4648-npm-1.5.2-b5df48e84c-96ef88d246.zip differ diff --git a/.yarn/cache/whatwg-fetch-npm-3.6.17-1115589b78-59de97afaa.zip b/.yarn/cache/whatwg-fetch-npm-3.6.17-1115589b78-59de97afaa.zip new file mode 100644 index 000000000..a74fa46ab Binary files /dev/null and b/.yarn/cache/whatwg-fetch-npm-3.6.17-1115589b78-59de97afaa.zip differ diff --git a/package.json b/package.json index f9f01a5d1..839e28050 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "zx": "^7.2.3" }, "resolutions": { - "jest-mock": "^28.1.0" + "jest-mock": "^28.1.0", + "autoevals": "portal:/Users/Shared/ironclad/github/autoevals" }, "volta": { "node": "20.4.0", diff --git a/packages/app-executor/scripts/build-executor.mts b/packages/app-executor/scripts/build-executor.mts index 1ddb619a3..3b93d61c9 100644 --- a/packages/app-executor/scripts/build-executor.mts +++ b/packages/app-executor/scripts/build-executor.mts @@ -14,6 +14,13 @@ const resolveRivet: esbuild.Plugin = { setup(build) { build.onResolve({ filter: /^@ironclad\/rivet-/ }, (args) => { const rivetPackage = args.path.replace(/^@ironclad\/rivet-/, ''); + + if (rivetPackage.includes('FetchHttpProvider')) { + return { + path: resolve('../core/src/FetchHttpProvider.ts'), + }; + } + return { path: resolve(`../${rivetPackage}/src/index.ts`), }; diff --git a/packages/app/src-tauri/src/main.rs b/packages/app/src-tauri/src/main.rs index a5f67bc02..75f251df4 100644 --- a/packages/app/src-tauri/src/main.rs +++ b/packages/app/src-tauri/src/main.rs @@ -3,13 +3,22 @@ windows_subsystem = "windows" )] -use tauri::{CustomMenuItem, Menu, MenuItem, Submenu}; +use tauri::{CustomMenuItem, Manager, Menu, MenuItem, Submenu}; + +#[tauri::command] +fn set_recent_project_files(recent_files: Vec<&str>, window: tauri::Window) { + let menu = window.menu_handle(); + let item = menu.get_item("new_project"); +} fn main() { tauri::Builder::default() .plugin(tauri_plugin_persisted_scope::init()) .plugin(tauri_plugin_window_state::Builder::default().build()) - .invoke_handler(tauri::generate_handler![get_environment_variable]) + .invoke_handler(tauri::generate_handler![ + get_environment_variable, + set_recent_project_files + ]) .menu(create_menu()) .on_menu_event(|event| match event.menu_item_id() { "toggle_devtools" => { @@ -90,37 +99,44 @@ fn create_menu() -> Menu { )), ); + let open_recent = Submenu::new("Open Recent", Menu::new()); + + let file_menu = Submenu::new( + "File", + Menu::new() + .add_item( + CustomMenuItem::new("new_project".to_string(), "New Project") + .accelerator("CmdOrCtrl+N"), + ) + .add_native_item(MenuItem::Separator) + .add_item( + CustomMenuItem::new("open_project".to_string(), "Open Project...") + .accelerator("CmdOrCtrl+O"), + ) + .add_submenu(open_recent) + .add_native_item(MenuItem::Separator) + .add_item( + CustomMenuItem::new("save_project".to_string(), "Save Project") + .accelerator("CmdOrCtrl+S"), + ) + .add_item( + CustomMenuItem::new("save_project_as".to_string(), "Save Project As...") + .accelerator("CmdOrCtrl+Shift+S"), + ) + .add_native_item(MenuItem::Separator) + .add_item( + CustomMenuItem::new("export_graph".to_string(), "Export Graph...") + .accelerator("CmdOrCtrl+Shift+E"), + ) + .add_item( + CustomMenuItem::new("import_graph".to_string(), "Import Graph...") + .accelerator("CmdOrCtrl+Shift+I"), + ), + ); + Menu::new() .add_submenu(about_menu) - .add_submenu(Submenu::new( - "File", - Menu::new() - .add_item( - CustomMenuItem::new("new_project", "New Project").accelerator("CmdOrCtrl+N"), - ) - .add_native_item(MenuItem::Separator) - .add_item( - CustomMenuItem::new("open_project", "Open Project...") - .accelerator("CmdOrCtrl+O"), - ) - .add_native_item(MenuItem::Separator) - .add_item( - CustomMenuItem::new("save_project", "Save Project").accelerator("CmdOrCtrl+S"), - ) - .add_item( - CustomMenuItem::new("save_project_as", "Save Project As...") - .accelerator("CmdOrCtrl+Shift+S"), - ) - .add_native_item(MenuItem::Separator) - .add_item( - CustomMenuItem::new("export_graph", "Export Graph...") - .accelerator("CmdOrCtrl+Shift+E"), - ) - .add_item( - CustomMenuItem::new("import_graph", "Import Graph...") - .accelerator("CmdOrCtrl+Shift+I"), - ), - )) + .add_submenu(file_menu) .add_submenu(edit_menu) .add_submenu(Submenu::new( "Run", diff --git a/packages/app/src/components/DefaultNodeEditor.tsx b/packages/app/src/components/DefaultNodeEditor.tsx index 92b5f6571..cfce8c7ce 100644 --- a/packages/app/src/components/DefaultNodeEditor.tsx +++ b/packages/app/src/components/DefaultNodeEditor.tsx @@ -34,7 +34,7 @@ import clsx from 'clsx'; import { projectState } from '../state/savedGraphs.js'; import { useRecoilValue } from 'recoil'; import { orderBy } from 'lodash-es'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { LazyCodeEditor, LazyTripleBarColorPicker } from './LazyComponents'; import { ioProvider } from '../utils/globals'; import Button from '@atlaskit/button'; diff --git a/packages/app/src/components/NodeEditor.tsx b/packages/app/src/components/NodeEditor.tsx index c50a40051..3c1e6c50b 100644 --- a/packages/app/src/components/NodeEditor.tsx +++ b/packages/app/src/components/NodeEditor.tsx @@ -19,7 +19,7 @@ import Select from '@atlaskit/select'; import Button from '@atlaskit/button'; import Popup from '@atlaskit/popup'; import { orderBy } from 'lodash-es'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { ErrorBoundary } from 'react-error-boundary'; import { projectState } from '../state/savedGraphs'; diff --git a/packages/app/src/components/PromptDesigner.tsx b/packages/app/src/components/PromptDesigner.tsx index f7faba68e..c32c024b8 100644 --- a/packages/app/src/components/PromptDesigner.tsx +++ b/packages/app/src/components/PromptDesigner.tsx @@ -39,7 +39,7 @@ import { Field } from '@atlaskit/form'; import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs'; import Select from '@atlaskit/select'; import Toggle from '@atlaskit/toggle'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { TauriNativeApi } from '../model/native/TauriNativeApi.js'; import { settingsState } from '../state/settings.js'; import { GraphSelector } from './DefaultNodeEditor.js'; @@ -50,6 +50,7 @@ import { useStableCallback } from '../hooks/useStableCallback.js'; import { toast } from 'react-toastify'; import { produce } from 'immer'; import { overlayOpenState } from '../state/ui'; +import { FetchHttpProvider } from '@ironclad/rivet-core/FetchHttpProvider'; const styles = css` position: fixed; @@ -981,6 +982,7 @@ async function runAdHocChat(messages: ChatMessage[], config: AdHocChatConfig) { }, }, { + httpProvider: new FetchHttpProvider(), contextValues: {}, createSubProcessor: undefined!, settings, @@ -1042,6 +1044,7 @@ function useRunTestGroup() { { nativeApi: new TauriNativeApi(), settings, + httpProvider: new FetchHttpProvider(), }, { ['conditions' as PortId]: { diff --git a/packages/app/src/components/RivetApp.tsx b/packages/app/src/components/RivetApp.tsx index 4bf1df983..6ae140339 100644 --- a/packages/app/src/components/RivetApp.tsx +++ b/packages/app/src/components/RivetApp.tsx @@ -1,6 +1,6 @@ import { GraphBuilder } from './GraphBuilder.js'; import { OverlayTabs } from './OverlayTabs.js'; -import { FC } from 'react'; +import { FC, useEffect } from 'react'; import { css } from '@emotion/react'; import { SettingsModal } from './SettingsModal.js'; import { setGlobalTheme } from '@atlaskit/tokens'; @@ -17,6 +17,7 @@ import { ChatViewerRenderer } from './ChatViewer'; import { useRecoilValue } from 'recoil'; import { themeState } from '../state/settings'; import clsx from 'clsx'; +import { setRecentProjectFiles } from '../utils/tauri'; const styles = css` overflow: hidden; @@ -34,6 +35,12 @@ export const RivetApp: FC = () => { onRunGraph: tryRunGraph, }); + useEffect(() => { + (async () => { + setRecentProjectFiles(['a.rivet-project', 'b.rivet-project']); + })(); + }, []); + return (
diff --git a/packages/app/src/components/trivet/Trivet.tsx b/packages/app/src/components/trivet/Trivet.tsx index 6839ee64f..eb77f8fa4 100644 --- a/packages/app/src/components/trivet/Trivet.tsx +++ b/packages/app/src/components/trivet/Trivet.tsx @@ -5,7 +5,7 @@ import { css } from '@emotion/react'; import Button from '@atlaskit/button'; import { TestSuiteList } from './TestSuiteList'; import { TestSuiteRenderer } from './TestSuite'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { TryRunTests } from './api'; import { overlayOpenState } from '../../state/ui'; import { NoTestSuitesSplash } from './NoTestSuitesSplash'; diff --git a/packages/app/src/hooks/useDuplicateGraph.ts b/packages/app/src/hooks/useDuplicateGraph.ts index bfe8d71cb..528a3556c 100644 --- a/packages/app/src/hooks/useDuplicateGraph.ts +++ b/packages/app/src/hooks/useDuplicateGraph.ts @@ -1,5 +1,5 @@ import { GraphId, NodeGraph, NodeId } from '@ironclad/rivet-core'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { useLoadGraph } from './useLoadGraph.js'; import { useStableCallback } from './useStableCallback.js'; import { useSetRecoilState } from 'recoil'; diff --git a/packages/app/src/hooks/useFactorIntoSubgraph.ts b/packages/app/src/hooks/useFactorIntoSubgraph.ts index 6a3219e38..b5c12190d 100644 --- a/packages/app/src/hooks/useFactorIntoSubgraph.ts +++ b/packages/app/src/hooks/useFactorIntoSubgraph.ts @@ -16,7 +16,7 @@ import { } from '@ironclad/rivet-core'; import { projectState } from '../state/savedGraphs.js'; import { isNotNull } from '../utils/genericUtilFunctions.js'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { useLoadGraph } from './useLoadGraph.js'; export function useFactorIntoSubgraph() { diff --git a/packages/app/src/hooks/useLocalExecutor.ts b/packages/app/src/hooks/useLocalExecutor.ts index a73902529..e441ba8b6 100644 --- a/packages/app/src/hooks/useLocalExecutor.ts +++ b/packages/app/src/hooks/useLocalExecutor.ts @@ -24,6 +24,7 @@ import { lastRecordingState, loadedRecordingState } from '../state/execution'; import { fillMissingSettingsFromEnvironmentVariables } from '../utils/tauri'; import { trivetState } from '../state/trivet'; import { runTrivet } from '@ironclad/trivet'; +import { FetchHttpProvider } from '@ironclad/rivet-core/FetchHttpProvider'; export function useLocalExecutor() { const project = useRecoilValue(projectState); @@ -125,6 +126,7 @@ export function useLocalExecutor() { globalRivetNodeRegistry.getPlugins(), ), nativeApi: new TauriNativeApi(), + httpProvider: new FetchHttpProvider(), }); } @@ -181,6 +183,7 @@ export function useLocalExecutor() { globalRivetNodeRegistry.getPlugins(), ), nativeApi: new TauriNativeApi(), + httpProvider: new FetchHttpProvider(), }, inputs, ); diff --git a/packages/app/src/hooks/useNewProject.ts b/packages/app/src/hooks/useNewProject.ts index f2b591a82..3c4348438 100644 --- a/packages/app/src/hooks/useNewProject.ts +++ b/packages/app/src/hooks/useNewProject.ts @@ -1,6 +1,6 @@ import { useSetRecoilState } from 'recoil'; import { loadedProjectState, projectState } from '../state/savedGraphs.js'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { Project, ProjectId, emptyNodeGraph } from '@ironclad/rivet-core'; import { graphState } from '../state/graph.js'; import { trivetState } from '../state/trivet'; diff --git a/packages/app/src/hooks/useSaveCurrentGraph.ts b/packages/app/src/hooks/useSaveCurrentGraph.ts index 1fe4c6cd7..60ca59ad0 100644 --- a/packages/app/src/hooks/useSaveCurrentGraph.ts +++ b/packages/app/src/hooks/useSaveCurrentGraph.ts @@ -1,5 +1,5 @@ import { produce } from 'immer'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { GraphId } from '@ironclad/rivet-core'; import { useRecoilState, useSetRecoilState } from 'recoil'; import { graphState } from '../state/graph.js'; diff --git a/packages/app/src/hooks/useTestSuite.ts b/packages/app/src/hooks/useTestSuite.ts index 1a3081987..50b51c9ee 100644 --- a/packages/app/src/hooks/useTestSuite.ts +++ b/packages/app/src/hooks/useTestSuite.ts @@ -1,7 +1,7 @@ import { useCallback, useMemo } from 'react'; import { useStableCallback } from './useStableCallback'; import { TrivetTestSuite } from '@ironclad/trivet'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil'; import { trivetState } from '../state/trivet'; import { GraphInputNode, GraphOutputNode, NodeGraph } from '@ironclad/rivet-core'; diff --git a/packages/app/src/state/savedGraphs.ts b/packages/app/src/state/savedGraphs.ts index a4300761f..7947cbfe9 100644 --- a/packages/app/src/state/savedGraphs.ts +++ b/packages/app/src/state/savedGraphs.ts @@ -1,5 +1,5 @@ import { DefaultValue, atom, selector } from 'recoil'; -import { nanoid } from 'nanoid'; +import { nanoid } from 'nanoid/non-secure'; import { produce } from 'immer'; import { GraphId, NodeGraph, Project, ProjectId } from '@ironclad/rivet-core'; import { blankProject } from '../hooks/useNewProject.js'; diff --git a/packages/app/src/utils/tauri.ts b/packages/app/src/utils/tauri.ts index 95a00dc53..5af975b72 100644 --- a/packages/app/src/utils/tauri.ts +++ b/packages/app/src/utils/tauri.ts @@ -53,3 +53,7 @@ export async function fillMissingSettingsFromEnvironmentVariables(settings: Part return fullSettings; } + +export async function setRecentProjectFiles(recentFiles: string[]) { + await invoke('set_recent_project_files', { recentFiles }); +} diff --git a/packages/app/vite.config.ts b/packages/app/vite.config.ts index f32a460cf..637157193 100644 --- a/packages/app/vite.config.ts +++ b/packages/app/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ preserveSymlinks: true, alias: { + '@ironclad/rivet-core/FetchHttpProvider': resolve('../core/src/FetchHttpProvider.ts'), '@ironclad/rivet-core': resolve('../core/src/index.ts'), '@ironclad/trivet': resolve('../trivet/src/index.ts'), }, diff --git a/packages/cli/bin/executor-bundle.js b/packages/cli/bin/executor-bundle.js new file mode 100644 index 000000000..b9cf4c966 --- /dev/null +++ b/packages/cli/bin/executor-bundle.js @@ -0,0 +1,55165 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); + +// ../../.yarn/cache/eventemitter3-npm-4.0.7-7afcdd74ae-e6ecb1ac2f.zip/node_modules/eventemitter3/index.js +var require_eventemitter3 = __commonJS({ + "../../.yarn/cache/eventemitter3-npm-4.0.7-7afcdd74ae-e6ecb1ac2f.zip/node_modules/eventemitter3/index.js"(exports2, module2) { + "use strict"; + var has = Object.prototype.hasOwnProperty; + var prefix = "~"; + function Events() { + } + if (Object.create) { + Events.prototype = /* @__PURE__ */ Object.create(null); + if (!new Events().__proto__) + prefix = false; + } + function EE(fn, context, once) { + this.fn = fn; + this.context = context; + this.once = once || false; + } + function addListener(emitter, event, fn, context, once) { + if (typeof fn !== "function") { + throw new TypeError("The listener must be a function"); + } + var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) + emitter._events[evt] = listener, emitter._eventsCount++; + else if (!emitter._events[evt].fn) + emitter._events[evt].push(listener); + else + emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) + emitter._events = new Events(); + else + delete emitter._events[evt]; + } + function EventEmitter2() { + this._events = new Events(); + this._eventsCount = 0; + } + EventEmitter2.prototype.eventNames = function eventNames() { + var names = [], events, name; + if (this._eventsCount === 0) + return names; + for (name in events = this._events) { + if (has.call(events, name)) + names.push(prefix ? name.slice(1) : name); + } + if (Object.getOwnPropertySymbols) { + return names.concat(Object.getOwnPropertySymbols(events)); + } + return names; + }; + EventEmitter2.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, handlers = this._events[evt]; + if (!handlers) + return []; + if (handlers.fn) + return [handlers.fn]; + for (var i3 = 0, l3 = handlers.length, ee = new Array(l3); i3 < l3; i3++) { + ee[i3] = handlers[i3].fn; + } + return ee; + }; + EventEmitter2.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, listeners = this._events[evt]; + if (!listeners) + return 0; + if (listeners.fn) + return 1; + return listeners.length; + }; + EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return false; + var listeners = this._events[evt], len = arguments.length, args, i3; + if (listeners.fn) { + if (listeners.once) + this.removeListener(event, listeners.fn, void 0, true); + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + case 2: + return listeners.fn.call(listeners.context, a1), true; + case 3: + return listeners.fn.call(listeners.context, a1, a2), true; + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), true; + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; + } + for (i3 = 1, args = new Array(len - 1); i3 < len; i3++) { + args[i3 - 1] = arguments[i3]; + } + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, j3; + for (i3 = 0; i3 < length; i3++) { + if (listeners[i3].once) + this.removeListener(event, listeners[i3].fn, void 0, true); + switch (len) { + case 1: + listeners[i3].fn.call(listeners[i3].context); + break; + case 2: + listeners[i3].fn.call(listeners[i3].context, a1); + break; + case 3: + listeners[i3].fn.call(listeners[i3].context, a1, a2); + break; + case 4: + listeners[i3].fn.call(listeners[i3].context, a1, a2, a3); + break; + default: + if (!args) + for (j3 = 1, args = new Array(len - 1); j3 < len; j3++) { + args[j3 - 1] = arguments[j3]; + } + listeners[i3].fn.apply(listeners[i3].context, args); + } + } + } + return true; + }; + EventEmitter2.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, false); + }; + EventEmitter2.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, true); + }; + EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return this; + if (!fn) { + clearEvent(this, evt); + return this; + } + var listeners = this._events[evt]; + if (listeners.fn) { + if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { + clearEvent(this, evt); + } + } else { + for (var i3 = 0, events = [], length = listeners.length; i3 < length; i3++) { + if (listeners[i3].fn !== fn || once && !listeners[i3].once || context && listeners[i3].context !== context) { + events.push(listeners[i3]); + } + } + if (events.length) + this._events[evt] = events.length === 1 ? events[0] : events; + else + clearEvent(this, evt); + } + return this; + }; + EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) + clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + return this; + }; + EventEmitter2.prototype.off = EventEmitter2.prototype.removeListener; + EventEmitter2.prototype.addListener = EventEmitter2.prototype.on; + EventEmitter2.prefixed = prefix; + EventEmitter2.EventEmitter = EventEmitter2; + if ("undefined" !== typeof module2) { + module2.exports = EventEmitter2; + } + } +}); + +// ../../.yarn/cache/ts-dedent-npm-2.2.0-00389a0e6b-66108854b9.zip/node_modules/ts-dedent/dist/index.js +var require_dist = __commonJS({ + "../../.yarn/cache/ts-dedent-npm-2.2.0-00389a0e6b-66108854b9.zip/node_modules/ts-dedent/dist/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.dedent = void 0; + function dedent54(templ) { + var values3 = []; + for (var _i = 1; _i < arguments.length; _i++) { + values3[_i - 1] = arguments[_i]; + } + var strings = Array.from(typeof templ === "string" ? [templ] : templ); + strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, ""); + var indentLengths = strings.reduce(function(arr, str2) { + var matches = str2.match(/\n([\t ]+|(?!\s).)/g); + if (matches) { + return arr.concat(matches.map(function(match2) { + var _a2, _b2; + return (_b2 = (_a2 = match2.match(/[\t ]/g)) === null || _a2 === void 0 ? void 0 : _a2.length) !== null && _b2 !== void 0 ? _b2 : 0; + })); + } + return arr; + }, []); + if (indentLengths.length) { + var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g"); + strings = strings.map(function(str2) { + return str2.replace(pattern_1, "\n"); + }); + } + strings[0] = strings[0].replace(/^\r?\n/, ""); + var string = strings[0]; + values3.forEach(function(value, i3) { + var endentations = string.match(/(?:^|\n)( *)$/); + var endentation = endentations ? endentations[1] : ""; + var indentedValue = value; + if (typeof value === "string" && value.includes("\n")) { + indentedValue = String(value).split("\n").map(function(str2, i4) { + return i4 === 0 ? str2 : "" + endentation + str2; + }).join("\n"); + } + string += indentedValue + strings[i3 + 1]; + }); + return string; + } + exports2.dedent = dedent54; + exports2.default = dedent54; + } +}); + +// ../../.yarn/cache/@dqbd-tiktoken-npm-1.0.7-f7c392bb17-bbe3845aa6.zip/node_modules/@dqbd/tiktoken/tiktoken_bg.cjs +var require_tiktoken_bg = __commonJS({ + "../../.yarn/cache/@dqbd-tiktoken-npm-1.0.7-f7c392bb17-bbe3845aa6.zip/node_modules/@dqbd/tiktoken/tiktoken_bg.cjs"(exports2, module2) { + var wasm; + module2.exports.__wbg_set_wasm = function(val) { + wasm = val; + }; + var heap = new Array(128).fill(void 0); + heap.push(void 0, null, true, false); + function getObject(idx) { + return heap[idx]; + } + var heap_next = heap.length; + function dropObject(idx) { + if (idx < 132) + return; + heap[idx] = heap_next; + heap_next = idx; + } + function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; + } + var WASM_VECTOR_LEN = 0; + var cachedUint8Memory0 = null; + function getUint8Memory0() { + if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { + cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8Memory0; + } + var lTextEncoder = typeof TextEncoder === "undefined" ? (0, module2.require)("util").TextEncoder : TextEncoder; + var cachedTextEncoder = new lTextEncoder("utf-8"); + var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) { + return cachedTextEncoder.encodeInto(arg, view); + } : function(arg, view) { + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; + }; + function passStringToWasm0(arg, malloc, realloc) { + if (realloc === void 0) { + const buf = cachedTextEncoder.encode(arg); + const ptr2 = malloc(buf.length); + getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf); + WASM_VECTOR_LEN = buf.length; + return ptr2; + } + let len = arg.length; + let ptr = malloc(len); + const mem = getUint8Memory0(); + let offset = 0; + for (; offset < len; offset++) { + const code = arg.charCodeAt(offset); + if (code > 127) + break; + mem[ptr + offset] = code; + } + if (offset !== len) { + if (offset !== 0) { + arg = arg.slice(offset); + } + ptr = realloc(ptr, len, len = offset + arg.length * 3); + const view = getUint8Memory0().subarray(ptr + offset, ptr + len); + const ret = encodeString(arg, view); + offset += ret.written; + } + WASM_VECTOR_LEN = offset; + return ptr; + } + function isLikeNone(x3) { + return x3 === void 0 || x3 === null; + } + var cachedInt32Memory0 = null; + function getInt32Memory0() { + if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { + cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); + } + return cachedInt32Memory0; + } + var lTextDecoder = typeof TextDecoder === "undefined" ? (0, module2.require)("util").TextDecoder : TextDecoder; + var cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true }); + cachedTextDecoder.decode(); + function getStringFromWasm0(ptr, len) { + return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); + } + function addHeapObject(obj) { + if (heap_next === heap.length) + heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + heap[idx] = obj; + return idx; + } + var cachedUint32Memory0 = null; + function getUint32Memory0() { + if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) { + cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer); + } + return cachedUint32Memory0; + } + function getArrayU32FromWasm0(ptr, len) { + return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len); + } + function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1); + getUint8Memory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; + } + function passArray32ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 4); + getUint32Memory0().set(arg, ptr / 4); + WASM_VECTOR_LEN = arg.length; + return ptr; + } + function getArrayU8FromWasm0(ptr, len) { + return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); + } + module2.exports.get_encoding = function(encoding, extend_special_tokens) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(encoding, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.get_encoding(retptr, ptr0, len0, addHeapObject(extend_special_tokens)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r22 = getInt32Memory0()[retptr / 4 + 2]; + if (r22) { + throw takeObject(r1); + } + return Tiktoken.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + }; + module2.exports.encoding_for_model = function(model, extend_special_tokens) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(model, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.encoding_for_model(retptr, ptr0, len0, addHeapObject(extend_special_tokens)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r22 = getInt32Memory0()[retptr / 4 + 2]; + if (r22) { + throw takeObject(r1); + } + return Tiktoken.__wrap(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + }; + function handleError(f2, args) { + try { + return f2.apply(this, args); + } catch (e3) { + wasm.__wbindgen_export_3(addHeapObject(e3)); + } + } + var Tiktoken = class _Tiktoken { + /** + * @param {string} tiktoken_bfe + * @param {any} special_tokens + * @param {string} pat_str + */ + constructor(tiktoken_bfe, special_tokens, pat_str) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + const ptr0 = passStringToWasm0(tiktoken_bfe, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(pat_str, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.tiktoken_new(ptr0, len0, addHeapObject(special_tokens), ptr1, len1); + return _Tiktoken.__wrap(ret); + } + /** @returns {string | undefined} */ + get name() { + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.tiktoken_name(retptr, this.ptr); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + let v0; + if (r0 !== 0) { + v0 = getStringFromWasm0(r0, r1).slice(); + wasm.__wbindgen_export_2(r0, r1 * 1); + } + return v0; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + static __wrap(ptr) { + const obj = Object.create(_Tiktoken.prototype); + obj.ptr = ptr; + return obj; + } + __destroy_into_raw() { + const ptr = this.ptr; + this.ptr = 0; + return ptr; + } + free() { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + const ptr = this.__destroy_into_raw(); + wasm.__wbg_tiktoken_free(ptr); + } + /** + * @param {string} text + * @param {any} allowed_special + * @param {any} disallowed_special + * @returns {Uint32Array} + */ + encode(text, allowed_special, disallowed_special) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.tiktoken_encode(retptr, this.ptr, ptr0, len0, addHeapObject(allowed_special), addHeapObject(disallowed_special)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r22 = getInt32Memory0()[retptr / 4 + 2]; + var r3 = getInt32Memory0()[retptr / 4 + 3]; + if (r3) { + throw takeObject(r22); + } + var v1 = getArrayU32FromWasm0(r0, r1).slice(); + wasm.__wbindgen_export_2(r0, r1 * 4); + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} text + * @returns {Uint32Array} + */ + encode_ordinary(text) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.tiktoken_encode_ordinary(retptr, this.ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var v1 = getArrayU32FromWasm0(r0, r1).slice(); + wasm.__wbindgen_export_2(r0, r1 * 4); + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {string} text + * @param {any} allowed_special + * @param {any} disallowed_special + * @returns {any} + */ + encode_with_unstable(text, allowed_special, disallowed_special) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.tiktoken_encode_with_unstable(retptr, this.ptr, ptr0, len0, addHeapObject(allowed_special), addHeapObject(disallowed_special)); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var r22 = getInt32Memory0()[retptr / 4 + 2]; + if (r22) { + throw takeObject(r1); + } + return takeObject(r0); + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {Uint8Array} bytes + * @returns {number} + */ + encode_single_token(bytes) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.tiktoken_encode_single_token(this.ptr, ptr0, len0); + return ret >>> 0; + } + /** + * @param {Uint32Array} tokens + * @returns {Uint8Array} + */ + decode(tokens) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + const ptr0 = passArray32ToWasm0(tokens, wasm.__wbindgen_export_0); + const len0 = WASM_VECTOR_LEN; + wasm.tiktoken_decode(retptr, this.ptr, ptr0, len0); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var v1 = getArrayU8FromWasm0(r0, r1).slice(); + wasm.__wbindgen_export_2(r0, r1 * 1); + return v1; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** + * @param {number} token + * @returns {Uint8Array} + */ + decode_single_token_bytes(token) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + try { + const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); + wasm.tiktoken_decode_single_token_bytes(retptr, this.ptr, token); + var r0 = getInt32Memory0()[retptr / 4 + 0]; + var r1 = getInt32Memory0()[retptr / 4 + 1]; + var v0 = getArrayU8FromWasm0(r0, r1).slice(); + wasm.__wbindgen_export_2(r0, r1 * 1); + return v0; + } finally { + wasm.__wbindgen_add_to_stack_pointer(16); + } + } + /** @returns {any} */ + token_byte_values() { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + const ret = wasm.tiktoken_token_byte_values(this.ptr); + return takeObject(ret); + } + }; + module2.exports.Tiktoken = Tiktoken; + module2.exports.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; + module2.exports.__wbindgen_is_undefined = function(arg0) { + const ret = getObject(arg0) === void 0; + return ret; + }; + module2.exports.__wbg_stringify_029a979dfb73aa17 = function() { + return handleError(function(arg0) { + const ret = JSON.stringify(getObject(arg0)); + return addHeapObject(ret); + }, arguments); + }; + module2.exports.__wbindgen_string_get = function(arg0, arg1) { + if (wasm == null) + throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized."); + const obj = getObject(arg1); + const ret = typeof obj === "string" ? obj : void 0; + var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + var len0 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len0; + getInt32Memory0()[arg0 / 4 + 0] = ptr0; + }; + module2.exports.__wbindgen_error_new = function(arg0, arg1) { + const ret = new Error(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }; + module2.exports.__wbg_parse_3ac95b51fc312db8 = function() { + return handleError(function(arg0, arg1) { + const ret = JSON.parse(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }, arguments); + }; + module2.exports.__wbindgen_throw = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + } +}); + +// ../../.yarn/cache/@dqbd-tiktoken-npm-1.0.7-f7c392bb17-bbe3845aa6.zip/node_modules/@dqbd/tiktoken/tiktoken.cjs +var require_tiktoken = __commonJS({ + "../../.yarn/cache/@dqbd-tiktoken-npm-1.0.7-f7c392bb17-bbe3845aa6.zip/node_modules/@dqbd/tiktoken/tiktoken.cjs"(exports2) { + var wasm = require_tiktoken_bg(); + var imports = {}; + imports["./tiktoken_bg.js"] = wasm; + var path2 = require("path"); + var fs = require("fs"); + var candidates = __dirname.split(path2.sep).reduce((memo, _2, index, array) => { + const prefix = array.slice(0, index + 1).join(path2.sep) + path2.sep; + if (!prefix.includes("node_modules" + path2.sep)) { + memo.unshift( + path2.join( + prefix, + "node_modules", + "@dqbd", + "tiktoken", + "", + "./tiktoken_bg.wasm" + ) + ); + } + return memo; + }, []); + candidates.unshift(path2.join(__dirname, "./tiktoken_bg.wasm")); + var bytes = null; + for (const candidate of candidates) { + try { + bytes = fs.readFileSync(candidate); + break; + } catch { + } + } + if (bytes == null) + throw new Error("Missing tiktoken_bg.wasm"); + var wasmModule = new WebAssembly.Module(bytes); + var wasmInstance = new WebAssembly.Instance(wasmModule, imports); + wasm.__wbg_set_wasm(wasmInstance.exports); + exports2["get_encoding"] = wasm["get_encoding"]; + exports2["encoding_for_model"] = wasm["encoding_for_model"]; + exports2["Tiktoken"] = wasm["Tiktoken"]; + } +}); + +// ../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/lib/retry_operation.js +var require_retry_operation = __commonJS({ + "../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/lib/retry_operation.js"(exports2, module2) { + function RetryOperation(timeouts, options2) { + if (typeof options2 === "boolean") { + options2 = { forever: options2 }; + } + this._originalTimeouts = JSON.parse(JSON.stringify(timeouts)); + this._timeouts = timeouts; + this._options = options2 || {}; + this._maxRetryTime = options2 && options2.maxRetryTime || Infinity; + this._fn = null; + this._errors = []; + this._attempts = 1; + this._operationTimeout = null; + this._operationTimeoutCb = null; + this._timeout = null; + this._operationStart = null; + this._timer = null; + if (this._options.forever) { + this._cachedTimeouts = this._timeouts.slice(0); + } + } + module2.exports = RetryOperation; + RetryOperation.prototype.reset = function() { + this._attempts = 1; + this._timeouts = this._originalTimeouts.slice(0); + }; + RetryOperation.prototype.stop = function() { + if (this._timeout) { + clearTimeout(this._timeout); + } + if (this._timer) { + clearTimeout(this._timer); + } + this._timeouts = []; + this._cachedTimeouts = null; + }; + RetryOperation.prototype.retry = function(err) { + if (this._timeout) { + clearTimeout(this._timeout); + } + if (!err) { + return false; + } + var currentTime = (/* @__PURE__ */ new Date()).getTime(); + if (err && currentTime - this._operationStart >= this._maxRetryTime) { + this._errors.push(err); + this._errors.unshift(new Error("RetryOperation timeout occurred")); + return false; + } + this._errors.push(err); + var timeout = this._timeouts.shift(); + if (timeout === void 0) { + if (this._cachedTimeouts) { + this._errors.splice(0, this._errors.length - 1); + timeout = this._cachedTimeouts.slice(-1); + } else { + return false; + } + } + var self2 = this; + this._timer = setTimeout(function() { + self2._attempts++; + if (self2._operationTimeoutCb) { + self2._timeout = setTimeout(function() { + self2._operationTimeoutCb(self2._attempts); + }, self2._operationTimeout); + if (self2._options.unref) { + self2._timeout.unref(); + } + } + self2._fn(self2._attempts); + }, timeout); + if (this._options.unref) { + this._timer.unref(); + } + return true; + }; + RetryOperation.prototype.attempt = function(fn, timeoutOps) { + this._fn = fn; + if (timeoutOps) { + if (timeoutOps.timeout) { + this._operationTimeout = timeoutOps.timeout; + } + if (timeoutOps.cb) { + this._operationTimeoutCb = timeoutOps.cb; + } + } + var self2 = this; + if (this._operationTimeoutCb) { + this._timeout = setTimeout(function() { + self2._operationTimeoutCb(); + }, self2._operationTimeout); + } + this._operationStart = (/* @__PURE__ */ new Date()).getTime(); + this._fn(this._attempts); + }; + RetryOperation.prototype.try = function(fn) { + console.log("Using RetryOperation.try() is deprecated"); + this.attempt(fn); + }; + RetryOperation.prototype.start = function(fn) { + console.log("Using RetryOperation.start() is deprecated"); + this.attempt(fn); + }; + RetryOperation.prototype.start = RetryOperation.prototype.try; + RetryOperation.prototype.errors = function() { + return this._errors; + }; + RetryOperation.prototype.attempts = function() { + return this._attempts; + }; + RetryOperation.prototype.mainError = function() { + if (this._errors.length === 0) { + return null; + } + var counts = {}; + var mainError = null; + var mainErrorCount = 0; + for (var i3 = 0; i3 < this._errors.length; i3++) { + var error = this._errors[i3]; + var message = error.message; + var count = (counts[message] || 0) + 1; + counts[message] = count; + if (count >= mainErrorCount) { + mainError = error; + mainErrorCount = count; + } + } + return mainError; + }; + } +}); + +// ../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/lib/retry.js +var require_retry = __commonJS({ + "../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/lib/retry.js"(exports2) { + var RetryOperation = require_retry_operation(); + exports2.operation = function(options2) { + var timeouts = exports2.timeouts(options2); + return new RetryOperation(timeouts, { + forever: options2 && (options2.forever || options2.retries === Infinity), + unref: options2 && options2.unref, + maxRetryTime: options2 && options2.maxRetryTime + }); + }; + exports2.timeouts = function(options2) { + if (options2 instanceof Array) { + return [].concat(options2); + } + var opts = { + retries: 10, + factor: 2, + minTimeout: 1 * 1e3, + maxTimeout: Infinity, + randomize: false + }; + for (var key in options2) { + opts[key] = options2[key]; + } + if (opts.minTimeout > opts.maxTimeout) { + throw new Error("minTimeout is greater than maxTimeout"); + } + var timeouts = []; + for (var i3 = 0; i3 < opts.retries; i3++) { + timeouts.push(this.createTimeout(i3, opts)); + } + if (options2 && options2.forever && !timeouts.length) { + timeouts.push(this.createTimeout(i3, opts)); + } + timeouts.sort(function(a2, b3) { + return a2 - b3; + }); + return timeouts; + }; + exports2.createTimeout = function(attempt, opts) { + var random = opts.randomize ? Math.random() + 1 : 1; + var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt)); + timeout = Math.min(timeout, opts.maxTimeout); + return timeout; + }; + exports2.wrap = function(obj, options2, methods) { + if (options2 instanceof Array) { + methods = options2; + options2 = null; + } + if (!methods) { + methods = []; + for (var key in obj) { + if (typeof obj[key] === "function") { + methods.push(key); + } + } + } + for (var i3 = 0; i3 < methods.length; i3++) { + var method = methods[i3]; + var original = obj[method]; + obj[method] = function retryWrapper(original2) { + var op = exports2.operation(options2); + var args = Array.prototype.slice.call(arguments, 1); + var callback = args.pop(); + args.push(function(err) { + if (op.retry(err)) { + return; + } + if (err) { + arguments[0] = op.mainError(); + } + callback.apply(this, arguments); + }); + op.attempt(function() { + original2.apply(obj, args); + }); + }.bind(obj, original); + obj[method].options = options2; + } + }; + } +}); + +// ../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/index.js +var require_retry2 = __commonJS({ + "../../.yarn/cache/retry-npm-0.13.1-89eb100ab6-e26ac69380.zip/node_modules/retry/index.js"(exports2, module2) { + module2.exports = require_retry(); + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/identity.js +var require_identity = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/identity.js"(exports2) { + "use strict"; + var ALIAS = Symbol.for("yaml.alias"); + var DOC = Symbol.for("yaml.document"); + var MAP = Symbol.for("yaml.map"); + var PAIR = Symbol.for("yaml.pair"); + var SCALAR = Symbol.for("yaml.scalar"); + var SEQ = Symbol.for("yaml.seq"); + var NODE_TYPE = Symbol.for("yaml.node.type"); + var isAlias = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === ALIAS; + var isDocument = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === DOC; + var isMap2 = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP; + var isPair = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === PAIR; + var isScalar = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SCALAR; + var isSeq = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === SEQ; + function isCollection(node) { + if (node && typeof node === "object") + switch (node[NODE_TYPE]) { + case MAP: + case SEQ: + return true; + } + return false; + } + function isNode(node) { + if (node && typeof node === "object") + switch (node[NODE_TYPE]) { + case ALIAS: + case MAP: + case SCALAR: + case SEQ: + return true; + } + return false; + } + var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor; + exports2.ALIAS = ALIAS; + exports2.DOC = DOC; + exports2.MAP = MAP; + exports2.NODE_TYPE = NODE_TYPE; + exports2.PAIR = PAIR; + exports2.SCALAR = SCALAR; + exports2.SEQ = SEQ; + exports2.hasAnchor = hasAnchor; + exports2.isAlias = isAlias; + exports2.isCollection = isCollection; + exports2.isDocument = isDocument; + exports2.isMap = isMap2; + exports2.isNode = isNode; + exports2.isPair = isPair; + exports2.isScalar = isScalar; + exports2.isSeq = isSeq; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/visit.js +var require_visit = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/visit.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var BREAK = Symbol("break visit"); + var SKIP = Symbol("skip children"); + var REMOVE = Symbol("remove node"); + function visit(node, visitor) { + const visitor_ = initVisitor(visitor); + if (identity2.isDocument(node)) { + const cd = visit_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } else + visit_(null, node, visitor_, Object.freeze([])); + } + visit.BREAK = BREAK; + visit.SKIP = SKIP; + visit.REMOVE = REMOVE; + function visit_(key, node, visitor, path2) { + const ctrl = callVisitor(key, node, visitor, path2); + if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) { + replaceNode(key, path2, ctrl); + return visit_(key, ctrl, visitor, path2); + } + if (typeof ctrl !== "symbol") { + if (identity2.isCollection(node)) { + path2 = Object.freeze(path2.concat(node)); + for (let i3 = 0; i3 < node.items.length; ++i3) { + const ci = visit_(i3, node.items[i3], visitor, path2); + if (typeof ci === "number") + i3 = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i3, 1); + i3 -= 1; + } + } + } else if (identity2.isPair(node)) { + path2 = Object.freeze(path2.concat(node)); + const ck = visit_("key", node.key, visitor, path2); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = visit_("value", node.value, visitor, path2); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; + } + async function visitAsync(node, visitor) { + const visitor_ = initVisitor(visitor); + if (identity2.isDocument(node)) { + const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } else + await visitAsync_(null, node, visitor_, Object.freeze([])); + } + visitAsync.BREAK = BREAK; + visitAsync.SKIP = SKIP; + visitAsync.REMOVE = REMOVE; + async function visitAsync_(key, node, visitor, path2) { + const ctrl = await callVisitor(key, node, visitor, path2); + if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) { + replaceNode(key, path2, ctrl); + return visitAsync_(key, ctrl, visitor, path2); + } + if (typeof ctrl !== "symbol") { + if (identity2.isCollection(node)) { + path2 = Object.freeze(path2.concat(node)); + for (let i3 = 0; i3 < node.items.length; ++i3) { + const ci = await visitAsync_(i3, node.items[i3], visitor, path2); + if (typeof ci === "number") + i3 = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i3, 1); + i3 -= 1; + } + } + } else if (identity2.isPair(node)) { + path2 = Object.freeze(path2.concat(node)); + const ck = await visitAsync_("key", node.key, visitor, path2); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = await visitAsync_("value", node.value, visitor, path2); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; + } + function initVisitor(visitor) { + if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) { + return Object.assign({ + Alias: visitor.Node, + Map: visitor.Node, + Scalar: visitor.Node, + Seq: visitor.Node + }, visitor.Value && { + Map: visitor.Value, + Scalar: visitor.Value, + Seq: visitor.Value + }, visitor.Collection && { + Map: visitor.Collection, + Seq: visitor.Collection + }, visitor); + } + return visitor; + } + function callVisitor(key, node, visitor, path2) { + var _a2, _b2, _c2, _d, _e; + if (typeof visitor === "function") + return visitor(key, node, path2); + if (identity2.isMap(node)) + return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path2); + if (identity2.isSeq(node)) + return (_b2 = visitor.Seq) == null ? void 0 : _b2.call(visitor, key, node, path2); + if (identity2.isPair(node)) + return (_c2 = visitor.Pair) == null ? void 0 : _c2.call(visitor, key, node, path2); + if (identity2.isScalar(node)) + return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path2); + if (identity2.isAlias(node)) + return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path2); + return void 0; + } + function replaceNode(key, path2, node) { + const parent2 = path2[path2.length - 1]; + if (identity2.isCollection(parent2)) { + parent2.items[key] = node; + } else if (identity2.isPair(parent2)) { + if (key === "key") + parent2.key = node; + else + parent2.value = node; + } else if (identity2.isDocument(parent2)) { + parent2.contents = node; + } else { + const pt = identity2.isAlias(parent2) ? "alias" : "scalar"; + throw new Error(`Cannot replace node with ${pt} parent`); + } + } + exports2.visit = visit; + exports2.visitAsync = visitAsync; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/directives.js +var require_directives = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/directives.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var visit = require_visit(); + var escapeChars = { + "!": "%21", + ",": "%2C", + "[": "%5B", + "]": "%5D", + "{": "%7B", + "}": "%7D" + }; + var escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]); + var Directives = class _Directives { + constructor(yaml7, tags) { + this.docStart = null; + this.docEnd = false; + this.yaml = Object.assign({}, _Directives.defaultYaml, yaml7); + this.tags = Object.assign({}, _Directives.defaultTags, tags); + } + clone() { + const copy = new _Directives(this.yaml, this.tags); + copy.docStart = this.docStart; + return copy; + } + /** + * During parsing, get a Directives instance for the current document and + * update the stream state according to the current version's spec. + */ + atDocument() { + const res = new _Directives(this.yaml, this.tags); + switch (this.yaml.version) { + case "1.1": + this.atNextDocument = true; + break; + case "1.2": + this.atNextDocument = false; + this.yaml = { + explicit: _Directives.defaultYaml.explicit, + version: "1.2" + }; + this.tags = Object.assign({}, _Directives.defaultTags); + break; + } + return res; + } + /** + * @param onError - May be called even if the action was successful + * @returns `true` on success + */ + add(line, onError) { + if (this.atNextDocument) { + this.yaml = { explicit: _Directives.defaultYaml.explicit, version: "1.1" }; + this.tags = Object.assign({}, _Directives.defaultTags); + this.atNextDocument = false; + } + const parts = line.trim().split(/[ \t]+/); + const name = parts.shift(); + switch (name) { + case "%TAG": { + if (parts.length !== 2) { + onError(0, "%TAG directive should contain exactly two parts"); + if (parts.length < 2) + return false; + } + const [handle, prefix] = parts; + this.tags[handle] = prefix; + return true; + } + case "%YAML": { + this.yaml.explicit = true; + if (parts.length !== 1) { + onError(0, "%YAML directive should contain exactly one part"); + return false; + } + const [version] = parts; + if (version === "1.1" || version === "1.2") { + this.yaml.version = version; + return true; + } else { + const isValid = /^\d+\.\d+$/.test(version); + onError(6, `Unsupported YAML version ${version}`, isValid); + return false; + } + } + default: + onError(0, `Unknown directive ${name}`, true); + return false; + } + } + /** + * Resolves a tag, matching handles to those defined in %TAG directives. + * + * @returns Resolved tag, which may also be the non-specific tag `'!'` or a + * `'!local'` tag, or `null` if unresolvable. + */ + tagName(source, onError) { + if (source === "!") + return "!"; + if (source[0] !== "!") { + onError(`Not a valid tag: ${source}`); + return null; + } + if (source[1] === "<") { + const verbatim = source.slice(2, -1); + if (verbatim === "!" || verbatim === "!!") { + onError(`Verbatim tags aren't resolved, so ${source} is invalid.`); + return null; + } + if (source[source.length - 1] !== ">") + onError("Verbatim tags must end with a >"); + return verbatim; + } + const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/); + if (!suffix) + onError(`The ${source} tag has no suffix`); + const prefix = this.tags[handle]; + if (prefix) + return prefix + decodeURIComponent(suffix); + if (handle === "!") + return source; + onError(`Could not resolve tag: ${source}`); + return null; + } + /** + * Given a fully resolved tag, returns its printable string form, + * taking into account current tag prefixes and defaults. + */ + tagString(tag) { + for (const [handle, prefix] of Object.entries(this.tags)) { + if (tag.startsWith(prefix)) + return handle + escapeTagName(tag.substring(prefix.length)); + } + return tag[0] === "!" ? tag : `!<${tag}>`; + } + toString(doc) { + const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : []; + const tagEntries = Object.entries(this.tags); + let tagNames; + if (doc && tagEntries.length > 0 && identity2.isNode(doc.contents)) { + const tags = {}; + visit.visit(doc.contents, (_key, node) => { + if (identity2.isNode(node) && node.tag) + tags[node.tag] = true; + }); + tagNames = Object.keys(tags); + } else + tagNames = []; + for (const [handle, prefix] of tagEntries) { + if (handle === "!!" && prefix === "tag:yaml.org,2002:") + continue; + if (!doc || tagNames.some((tn) => tn.startsWith(prefix))) + lines.push(`%TAG ${handle} ${prefix}`); + } + return lines.join("\n"); + } + }; + Directives.defaultYaml = { explicit: false, version: "1.2" }; + Directives.defaultTags = { "!!": "tag:yaml.org,2002:" }; + exports2.Directives = Directives; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/anchors.js +var require_anchors = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/anchors.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var visit = require_visit(); + function anchorIsValid(anchor) { + if (/[\x00-\x19\s,[\]{}]/.test(anchor)) { + const sa = JSON.stringify(anchor); + const msg = `Anchor must not contain whitespace or control characters: ${sa}`; + throw new Error(msg); + } + return true; + } + function anchorNames(root2) { + const anchors = /* @__PURE__ */ new Set(); + visit.visit(root2, { + Value(_key, node) { + if (node.anchor) + anchors.add(node.anchor); + } + }); + return anchors; + } + function findNewAnchor(prefix, exclude) { + for (let i3 = 1; true; ++i3) { + const name = `${prefix}${i3}`; + if (!exclude.has(name)) + return name; + } + } + function createNodeAnchors(doc, prefix) { + const aliasObjects = []; + const sourceObjects = /* @__PURE__ */ new Map(); + let prevAnchors = null; + return { + onAnchor: (source) => { + aliasObjects.push(source); + if (!prevAnchors) + prevAnchors = anchorNames(doc); + const anchor = findNewAnchor(prefix, prevAnchors); + prevAnchors.add(anchor); + return anchor; + }, + /** + * With circular references, the source node is only resolved after all + * of its child nodes are. This is why anchors are set only after all of + * the nodes have been created. + */ + setAnchors: () => { + for (const source of aliasObjects) { + const ref = sourceObjects.get(source); + if (typeof ref === "object" && ref.anchor && (identity2.isScalar(ref.node) || identity2.isCollection(ref.node))) { + ref.node.anchor = ref.anchor; + } else { + const error = new Error("Failed to resolve repeated object (this should not happen)"); + error.source = source; + throw error; + } + } + }, + sourceObjects + }; + } + exports2.anchorIsValid = anchorIsValid; + exports2.anchorNames = anchorNames; + exports2.createNodeAnchors = createNodeAnchors; + exports2.findNewAnchor = findNewAnchor; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/applyReviver.js +var require_applyReviver = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/applyReviver.js"(exports2) { + "use strict"; + function applyReviver(reviver, obj, key, val) { + if (val && typeof val === "object") { + if (Array.isArray(val)) { + for (let i3 = 0, len = val.length; i3 < len; ++i3) { + const v0 = val[i3]; + const v1 = applyReviver(reviver, val, String(i3), v0); + if (v1 === void 0) + delete val[i3]; + else if (v1 !== v0) + val[i3] = v1; + } + } else if (val instanceof Map) { + for (const k3 of Array.from(val.keys())) { + const v0 = val.get(k3); + const v1 = applyReviver(reviver, val, k3, v0); + if (v1 === void 0) + val.delete(k3); + else if (v1 !== v0) + val.set(k3, v1); + } + } else if (val instanceof Set) { + for (const v0 of Array.from(val)) { + const v1 = applyReviver(reviver, val, v0, v0); + if (v1 === void 0) + val.delete(v0); + else if (v1 !== v0) { + val.delete(v0); + val.add(v1); + } + } + } else { + for (const [k3, v0] of Object.entries(val)) { + const v1 = applyReviver(reviver, val, k3, v0); + if (v1 === void 0) + delete val[k3]; + else if (v1 !== v0) + val[k3] = v1; + } + } + } + return reviver.call(obj, key, val); + } + exports2.applyReviver = applyReviver; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/toJS.js +var require_toJS = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/toJS.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + function toJS(value, arg, ctx) { + if (Array.isArray(value)) + return value.map((v3, i3) => toJS(v3, String(i3), ctx)); + if (value && typeof value.toJSON === "function") { + if (!ctx || !identity2.hasAnchor(value)) + return value.toJSON(arg, ctx); + const data = { aliasCount: 0, count: 1, res: void 0 }; + ctx.anchors.set(value, data); + ctx.onCreate = (res2) => { + data.res = res2; + delete ctx.onCreate; + }; + const res = value.toJSON(arg, ctx); + if (ctx.onCreate) + ctx.onCreate(res); + return res; + } + if (typeof value === "bigint" && !(ctx == null ? void 0 : ctx.keep)) + return Number(value); + return value; + } + exports2.toJS = toJS; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Node.js +var require_Node = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Node.js"(exports2) { + "use strict"; + var applyReviver = require_applyReviver(); + var identity2 = require_identity(); + var toJS = require_toJS(); + var NodeBase = class { + constructor(type2) { + Object.defineProperty(this, identity2.NODE_TYPE, { value: type2 }); + } + /** Create a copy of this node. */ + clone() { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** A plain JavaScript representation of this node. */ + toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { + if (!identity2.isDocument(doc)) + throw new TypeError("A document argument is required"); + const ctx = { + anchors: /* @__PURE__ */ new Map(), + doc, + keep: true, + mapAsMap: mapAsMap === true, + mapKeyWarned: false, + maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100 + }; + const res = toJS.toJS(this, "", ctx); + if (typeof onAnchor === "function") + for (const { count, res: res2 } of ctx.anchors.values()) + onAnchor(res2, count); + return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res; + } + }; + exports2.NodeBase = NodeBase; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Alias.js +var require_Alias = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Alias.js"(exports2) { + "use strict"; + var anchors = require_anchors(); + var visit = require_visit(); + var identity2 = require_identity(); + var Node = require_Node(); + var toJS = require_toJS(); + var Alias = class extends Node.NodeBase { + constructor(source) { + super(identity2.ALIAS); + this.source = source; + Object.defineProperty(this, "tag", { + set() { + throw new Error("Alias nodes cannot have tags"); + } + }); + } + /** + * Resolve the value of this alias within `doc`, finding the last + * instance of the `source` anchor before this node. + */ + resolve(doc) { + let found = void 0; + visit.visit(doc, { + Node: (_key, node) => { + if (node === this) + return visit.visit.BREAK; + if (node.anchor === this.source) + found = node; + } + }); + return found; + } + toJSON(_arg, ctx) { + if (!ctx) + return { source: this.source }; + const { anchors: anchors2, doc, maxAliasCount } = ctx; + const source = this.resolve(doc); + if (!source) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new ReferenceError(msg); + } + let data = anchors2.get(source); + if (!data) { + toJS.toJS(source, null, ctx); + data = anchors2.get(source); + } + if (!data || data.res === void 0) { + const msg = "This should not happen: Alias anchor was not resolved?"; + throw new ReferenceError(msg); + } + if (maxAliasCount >= 0) { + data.count += 1; + if (data.aliasCount === 0) + data.aliasCount = getAliasCount(doc, source, anchors2); + if (data.count * data.aliasCount > maxAliasCount) { + const msg = "Excessive alias count indicates a resource exhaustion attack"; + throw new ReferenceError(msg); + } + } + return data.res; + } + toString(ctx, _onComment, _onChompKeep) { + const src = `*${this.source}`; + if (ctx) { + anchors.anchorIsValid(this.source); + if (ctx.options.verifyAliasOrder && !ctx.anchors.has(this.source)) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new Error(msg); + } + if (ctx.implicitKey) + return `${src} `; + } + return src; + } + }; + function getAliasCount(doc, node, anchors2) { + if (identity2.isAlias(node)) { + const source = node.resolve(doc); + const anchor = anchors2 && source && anchors2.get(source); + return anchor ? anchor.count * anchor.aliasCount : 0; + } else if (identity2.isCollection(node)) { + let count = 0; + for (const item of node.items) { + const c3 = getAliasCount(doc, item, anchors2); + if (c3 > count) + count = c3; + } + return count; + } else if (identity2.isPair(node)) { + const kc = getAliasCount(doc, node.key, anchors2); + const vc = getAliasCount(doc, node.value, anchors2); + return Math.max(kc, vc); + } + return 1; + } + exports2.Alias = Alias; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Scalar.js +var require_Scalar = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Scalar.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Node = require_Node(); + var toJS = require_toJS(); + var isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object"; + var Scalar = class extends Node.NodeBase { + constructor(value) { + super(identity2.SCALAR); + this.value = value; + } + toJSON(arg, ctx) { + return (ctx == null ? void 0 : ctx.keep) ? this.value : toJS.toJS(this.value, arg, ctx); + } + toString() { + return String(this.value); + } + }; + Scalar.BLOCK_FOLDED = "BLOCK_FOLDED"; + Scalar.BLOCK_LITERAL = "BLOCK_LITERAL"; + Scalar.PLAIN = "PLAIN"; + Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE"; + Scalar.QUOTE_SINGLE = "QUOTE_SINGLE"; + exports2.Scalar = Scalar; + exports2.isScalarValue = isScalarValue; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/createNode.js +var require_createNode = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/createNode.js"(exports2) { + "use strict"; + var Alias = require_Alias(); + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var defaultTagPrefix = "tag:yaml.org,2002:"; + function findTagObject(value, tagName, tags) { + if (tagName) { + const match2 = tags.filter((t3) => t3.tag === tagName); + const tagObj = match2.find((t3) => !t3.format) ?? match2[0]; + if (!tagObj) + throw new Error(`Tag ${tagName} not found`); + return tagObj; + } + return tags.find((t3) => { + var _a2; + return ((_a2 = t3.identify) == null ? void 0 : _a2.call(t3, value)) && !t3.format; + }); + } + function createNode(value, tagName, ctx) { + var _a2, _b2, _c2; + if (identity2.isDocument(value)) + value = value.contents; + if (identity2.isNode(value)) + return value; + if (identity2.isPair(value)) { + const map2 = (_b2 = (_a2 = ctx.schema[identity2.MAP]).createNode) == null ? void 0 : _b2.call(_a2, ctx.schema, null, ctx); + map2.items.push(value); + return map2; + } + if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) { + value = value.valueOf(); + } + const { aliasDuplicateObjects, onAnchor, onTagObj, schema: schema2, sourceObjects } = ctx; + let ref = void 0; + if (aliasDuplicateObjects && value && typeof value === "object") { + ref = sourceObjects.get(value); + if (ref) { + if (!ref.anchor) + ref.anchor = onAnchor(value); + return new Alias.Alias(ref.anchor); + } else { + ref = { anchor: null, node: null }; + sourceObjects.set(value, ref); + } + } + if (tagName == null ? void 0 : tagName.startsWith("!!")) + tagName = defaultTagPrefix + tagName.slice(2); + let tagObj = findTagObject(value, tagName, schema2.tags); + if (!tagObj) { + if (value && typeof value.toJSON === "function") { + value = value.toJSON(); + } + if (!value || typeof value !== "object") { + const node2 = new Scalar.Scalar(value); + if (ref) + ref.node = node2; + return node2; + } + tagObj = value instanceof Map ? schema2[identity2.MAP] : Symbol.iterator in Object(value) ? schema2[identity2.SEQ] : schema2[identity2.MAP]; + } + if (onTagObj) { + onTagObj(tagObj); + delete ctx.onTagObj; + } + const node = (tagObj == null ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : typeof ((_c2 = tagObj == null ? void 0 : tagObj.nodeClass) == null ? void 0 : _c2.from) === "function" ? tagObj.nodeClass.from(ctx.schema, value, ctx) : new Scalar.Scalar(value); + if (tagName) + node.tag = tagName; + else if (!tagObj.default) + node.tag = tagObj.tag; + if (ref) + ref.node = node; + return node; + } + exports2.createNode = createNode; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Collection.js +var require_Collection = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Collection.js"(exports2) { + "use strict"; + var createNode = require_createNode(); + var identity2 = require_identity(); + var Node = require_Node(); + function collectionFromPath(schema2, path2, value) { + let v3 = value; + for (let i3 = path2.length - 1; i3 >= 0; --i3) { + const k3 = path2[i3]; + if (typeof k3 === "number" && Number.isInteger(k3) && k3 >= 0) { + const a2 = []; + a2[k3] = v3; + v3 = a2; + } else { + v3 = /* @__PURE__ */ new Map([[k3, v3]]); + } + } + return createNode.createNode(v3, void 0, { + aliasDuplicateObjects: false, + keepUndefined: false, + onAnchor: () => { + throw new Error("This should not happen, please report a bug."); + }, + schema: schema2, + sourceObjects: /* @__PURE__ */ new Map() + }); + } + var isEmptyPath = (path2) => path2 == null || typeof path2 === "object" && !!path2[Symbol.iterator]().next().done; + var Collection = class extends Node.NodeBase { + constructor(type2, schema2) { + super(type2); + Object.defineProperty(this, "schema", { + value: schema2, + configurable: true, + enumerable: false, + writable: true + }); + } + /** + * Create a copy of this collection. + * + * @param schema - If defined, overwrites the original's schema + */ + clone(schema2) { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (schema2) + copy.schema = schema2; + copy.items = copy.items.map((it) => identity2.isNode(it) || identity2.isPair(it) ? it.clone(schema2) : it); + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** + * Adds a value to the collection. For `!!map` and `!!omap` the value must + * be a Pair instance or a `{ key, value }` object, which may not have a key + * that already exists in the map. + */ + addIn(path2, value) { + if (isEmptyPath(path2)) + this.add(value); + else { + const [key, ...rest] = path2; + const node = this.get(key, true); + if (identity2.isCollection(node)) + node.addIn(rest, value); + else if (node === void 0 && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } + /** + * Removes a value from the collection. + * @returns `true` if the item was found and removed. + */ + deleteIn(path2) { + const [key, ...rest] = path2; + if (rest.length === 0) + return this.delete(key); + const node = this.get(key, true); + if (identity2.isCollection(node)) + return node.deleteIn(rest); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path2, keepScalar) { + const [key, ...rest] = path2; + const node = this.get(key, true); + if (rest.length === 0) + return !keepScalar && identity2.isScalar(node) ? node.value : node; + else + return identity2.isCollection(node) ? node.getIn(rest, keepScalar) : void 0; + } + hasAllNullValues(allowScalar) { + return this.items.every((node) => { + if (!identity2.isPair(node)) + return false; + const n3 = node.value; + return n3 == null || allowScalar && identity2.isScalar(n3) && n3.value == null && !n3.commentBefore && !n3.comment && !n3.tag; + }); + } + /** + * Checks if the collection includes a value with the key `key`. + */ + hasIn(path2) { + const [key, ...rest] = path2; + if (rest.length === 0) + return this.has(key); + const node = this.get(key, true); + return identity2.isCollection(node) ? node.hasIn(rest) : false; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path2, value) { + const [key, ...rest] = path2; + if (rest.length === 0) { + this.set(key, value); + } else { + const node = this.get(key, true); + if (identity2.isCollection(node)) + node.setIn(rest, value); + else if (node === void 0 && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } + }; + Collection.maxFlowStringSingleLineLength = 60; + exports2.Collection = Collection; + exports2.collectionFromPath = collectionFromPath; + exports2.isEmptyPath = isEmptyPath; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyComment.js +var require_stringifyComment = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) { + "use strict"; + var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#"); + function indentComment(comment, indent) { + if (/^\n+$/.test(comment)) + return comment.substring(1); + return indent ? comment.replace(/^(?! *$)/gm, indent) : comment; + } + var lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment; + exports2.indentComment = indentComment; + exports2.lineComment = lineComment; + exports2.stringifyComment = stringifyComment; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/foldFlowLines.js +var require_foldFlowLines = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) { + "use strict"; + var FOLD_FLOW = "flow"; + var FOLD_BLOCK = "block"; + var FOLD_QUOTED = "quoted"; + function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) { + if (!lineWidth || lineWidth < 0) + return text; + const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length); + if (text.length <= endStep) + return text; + const folds = []; + const escapedFolds = {}; + let end = lineWidth - indent.length; + if (typeof indentAtStart === "number") { + if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) + folds.push(0); + else + end = lineWidth - indentAtStart; + } + let split = void 0; + let prev = void 0; + let overflow = false; + let i3 = -1; + let escStart = -1; + let escEnd = -1; + if (mode === FOLD_BLOCK) { + i3 = consumeMoreIndentedLines(text, i3); + if (i3 !== -1) + end = i3 + endStep; + } + for (let ch; ch = text[i3 += 1]; ) { + if (mode === FOLD_QUOTED && ch === "\\") { + escStart = i3; + switch (text[i3 + 1]) { + case "x": + i3 += 3; + break; + case "u": + i3 += 5; + break; + case "U": + i3 += 9; + break; + default: + i3 += 1; + } + escEnd = i3; + } + if (ch === "\n") { + if (mode === FOLD_BLOCK) + i3 = consumeMoreIndentedLines(text, i3); + end = i3 + endStep; + split = void 0; + } else { + if (ch === " " && prev && prev !== " " && prev !== "\n" && prev !== " ") { + const next = text[i3 + 1]; + if (next && next !== " " && next !== "\n" && next !== " ") + split = i3; + } + if (i3 >= end) { + if (split) { + folds.push(split); + end = split + endStep; + split = void 0; + } else if (mode === FOLD_QUOTED) { + while (prev === " " || prev === " ") { + prev = ch; + ch = text[i3 += 1]; + overflow = true; + } + const j3 = i3 > escEnd + 1 ? i3 - 2 : escStart - 1; + if (escapedFolds[j3]) + return text; + folds.push(j3); + escapedFolds[j3] = true; + end = j3 + endStep; + split = void 0; + } else { + overflow = true; + } + } + } + prev = ch; + } + if (overflow && onOverflow) + onOverflow(); + if (folds.length === 0) + return text; + if (onFold) + onFold(); + let res = text.slice(0, folds[0]); + for (let i4 = 0; i4 < folds.length; ++i4) { + const fold = folds[i4]; + const end2 = folds[i4 + 1] || text.length; + if (fold === 0) + res = ` +${indent}${text.slice(0, end2)}`; + else { + if (mode === FOLD_QUOTED && escapedFolds[fold]) + res += `${text[fold]}\\`; + res += ` +${indent}${text.slice(fold + 1, end2)}`; + } + } + return res; + } + function consumeMoreIndentedLines(text, i3) { + let ch = text[i3 + 1]; + while (ch === " " || ch === " ") { + do { + ch = text[i3 += 1]; + } while (ch && ch !== "\n"); + ch = text[i3 + 1]; + } + return i3; + } + exports2.FOLD_BLOCK = FOLD_BLOCK; + exports2.FOLD_FLOW = FOLD_FLOW; + exports2.FOLD_QUOTED = FOLD_QUOTED; + exports2.foldFlowLines = foldFlowLines; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyString.js +var require_stringifyString = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var foldFlowLines = require_foldFlowLines(); + var getFoldOptions = (ctx, isBlock) => ({ + indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart, + lineWidth: ctx.options.lineWidth, + minContentWidth: ctx.options.minContentWidth + }); + var containsDocumentMarker = (str2) => /^(%|---|\.\.\.)/m.test(str2); + function lineLengthOverLimit(str2, lineWidth, indentLength) { + if (!lineWidth || lineWidth < 0) + return false; + const limit = lineWidth - indentLength; + const strLen = str2.length; + if (strLen <= limit) + return false; + for (let i3 = 0, start = 0; i3 < strLen; ++i3) { + if (str2[i3] === "\n") { + if (i3 - start > limit) + return true; + start = i3 + 1; + if (strLen - start <= limit) + return false; + } + } + return true; + } + function doubleQuotedString(value, ctx) { + const json2 = JSON.stringify(value); + if (ctx.options.doubleQuotedAsJSON) + return json2; + const { implicitKey } = ctx; + const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength; + const indent = ctx.indent || (containsDocumentMarker(value) ? " " : ""); + let str2 = ""; + let start = 0; + for (let i3 = 0, ch = json2[i3]; ch; ch = json2[++i3]) { + if (ch === " " && json2[i3 + 1] === "\\" && json2[i3 + 2] === "n") { + str2 += json2.slice(start, i3) + "\\ "; + i3 += 1; + start = i3; + ch = "\\"; + } + if (ch === "\\") + switch (json2[i3 + 1]) { + case "u": + { + str2 += json2.slice(start, i3); + const code = json2.substr(i3 + 2, 4); + switch (code) { + case "0000": + str2 += "\\0"; + break; + case "0007": + str2 += "\\a"; + break; + case "000b": + str2 += "\\v"; + break; + case "001b": + str2 += "\\e"; + break; + case "0085": + str2 += "\\N"; + break; + case "00a0": + str2 += "\\_"; + break; + case "2028": + str2 += "\\L"; + break; + case "2029": + str2 += "\\P"; + break; + default: + if (code.substr(0, 2) === "00") + str2 += "\\x" + code.substr(2); + else + str2 += json2.substr(i3, 6); + } + i3 += 5; + start = i3 + 1; + } + break; + case "n": + if (implicitKey || json2[i3 + 2] === '"' || json2.length < minMultiLineLength) { + i3 += 1; + } else { + str2 += json2.slice(start, i3) + "\n\n"; + while (json2[i3 + 2] === "\\" && json2[i3 + 3] === "n" && json2[i3 + 4] !== '"') { + str2 += "\n"; + i3 += 2; + } + str2 += indent; + if (json2[i3 + 2] === " ") + str2 += "\\"; + i3 += 1; + start = i3 + 1; + } + break; + default: + i3 += 1; + } + } + str2 = start ? str2 + json2.slice(start) : json2; + return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false)); + } + function singleQuotedString(value, ctx) { + if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value)) + return doubleQuotedString(value, ctx); + const indent = ctx.indent || (containsDocumentMarker(value) ? " " : ""); + const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$& +${indent}`) + "'"; + return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false)); + } + function quotedString(value, ctx) { + const { singleQuote } = ctx.options; + let qs; + if (singleQuote === false) + qs = doubleQuotedString; + else { + const hasDouble = value.includes('"'); + const hasSingle = value.includes("'"); + if (hasDouble && !hasSingle) + qs = singleQuotedString; + else if (hasSingle && !hasDouble) + qs = doubleQuotedString; + else + qs = singleQuote ? singleQuotedString : doubleQuotedString; + } + return qs(value, ctx); + } + var blockEndNewlines; + try { + blockEndNewlines = new RegExp("(^|(?\n"; + let chomp; + let endStart; + for (endStart = value.length; endStart > 0; --endStart) { + const ch = value[endStart - 1]; + if (ch !== "\n" && ch !== " " && ch !== " ") + break; + } + let end = value.substring(endStart); + const endNlPos = end.indexOf("\n"); + if (endNlPos === -1) { + chomp = "-"; + } else if (value === end || endNlPos !== end.length - 1) { + chomp = "+"; + if (onChompKeep) + onChompKeep(); + } else { + chomp = ""; + } + if (end) { + value = value.slice(0, -end.length); + if (end[end.length - 1] === "\n") + end = end.slice(0, -1); + end = end.replace(blockEndNewlines, `$&${indent}`); + } + let startWithSpace = false; + let startEnd; + let startNlPos = -1; + for (startEnd = 0; startEnd < value.length; ++startEnd) { + const ch = value[startEnd]; + if (ch === " ") + startWithSpace = true; + else if (ch === "\n") + startNlPos = startEnd; + else + break; + } + let start = value.substring(0, startNlPos < startEnd ? startNlPos + 1 : startEnd); + if (start) { + value = value.substring(start.length); + start = start.replace(/\n+/g, `$&${indent}`); + } + const indentSize = indent ? "2" : "1"; + let header = (literal ? "|" : ">") + (startWithSpace ? indentSize : "") + chomp; + if (comment) { + header += " " + commentString(comment.replace(/ ?[\r\n]+/g, " ")); + if (onComment) + onComment(); + } + if (literal) { + value = value.replace(/\n+/g, `$&${indent}`); + return `${header} +${indent}${start}${value}${end}`; + } + value = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`); + const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true)); + return `${header} +${indent}${body}`; + } + function plainString(item, ctx, onComment, onChompKeep) { + const { type: type2, value } = item; + const { actualString, implicitKey, indent, indentStep, inFlow } = ctx; + if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) { + return quotedString(value, ctx); + } + if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) { + return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep); + } + if (!implicitKey && !inFlow && type2 !== Scalar.Scalar.PLAIN && value.includes("\n")) { + return blockString(item, ctx, onComment, onChompKeep); + } + if (containsDocumentMarker(value)) { + if (indent === "") { + ctx.forceBlockIndent = true; + return blockString(item, ctx, onComment, onChompKeep); + } else if (implicitKey && indent === indentStep) { + return quotedString(value, ctx); + } + } + const str2 = value.replace(/\n+/g, `$& +${indent}`); + if (actualString) { + const test = (tag) => { + var _a2; + return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) == null ? void 0 : _a2.test(str2)); + }; + const { compat, tags } = ctx.doc.schema; + if (tags.some(test) || (compat == null ? void 0 : compat.some(test))) + return quotedString(value, ctx); + } + return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false)); + } + function stringifyString(item, ctx, onComment, onChompKeep) { + const { implicitKey, inFlow } = ctx; + const ss = typeof item.value === "string" ? item : Object.assign({}, item, { value: String(item.value) }); + let { type: type2 } = item; + if (type2 !== Scalar.Scalar.QUOTE_DOUBLE) { + if (/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ss.value)) + type2 = Scalar.Scalar.QUOTE_DOUBLE; + } + const _stringify = (_type) => { + switch (_type) { + case Scalar.Scalar.BLOCK_FOLDED: + case Scalar.Scalar.BLOCK_LITERAL: + return implicitKey || inFlow ? quotedString(ss.value, ctx) : blockString(ss, ctx, onComment, onChompKeep); + case Scalar.Scalar.QUOTE_DOUBLE: + return doubleQuotedString(ss.value, ctx); + case Scalar.Scalar.QUOTE_SINGLE: + return singleQuotedString(ss.value, ctx); + case Scalar.Scalar.PLAIN: + return plainString(ss, ctx, onComment, onChompKeep); + default: + return null; + } + }; + let res = _stringify(type2); + if (res === null) { + const { defaultKeyType, defaultStringType } = ctx.options; + const t3 = implicitKey && defaultKeyType || defaultStringType; + res = _stringify(t3); + if (res === null) + throw new Error(`Unsupported default string type ${t3}`); + } + return res; + } + exports2.stringifyString = stringifyString; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringify.js +var require_stringify = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringify.js"(exports2) { + "use strict"; + var anchors = require_anchors(); + var identity2 = require_identity(); + var stringifyComment = require_stringifyComment(); + var stringifyString = require_stringifyString(); + function createStringifyContext(doc, options2) { + const opt = Object.assign({ + blockQuote: true, + commentString: stringifyComment.stringifyComment, + defaultKeyType: null, + defaultStringType: "PLAIN", + directives: null, + doubleQuotedAsJSON: false, + doubleQuotedMinMultiLineLength: 40, + falseStr: "false", + flowCollectionPadding: true, + indentSeq: true, + lineWidth: 80, + minContentWidth: 20, + nullStr: "null", + simpleKeys: false, + singleQuote: null, + trueStr: "true", + verifyAliasOrder: true + }, doc.schema.toStringOptions, options2); + let inFlow; + switch (opt.collectionStyle) { + case "block": + inFlow = false; + break; + case "flow": + inFlow = true; + break; + default: + inFlow = null; + } + return { + anchors: /* @__PURE__ */ new Set(), + doc, + flowCollectionPadding: opt.flowCollectionPadding ? " " : "", + indent: "", + indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ", + inFlow, + options: opt + }; + } + function getTagObject(tags, item) { + var _a2; + if (item.tag) { + const match2 = tags.filter((t3) => t3.tag === item.tag); + if (match2.length > 0) + return match2.find((t3) => t3.format === item.format) ?? match2[0]; + } + let tagObj = void 0; + let obj; + if (identity2.isScalar(item)) { + obj = item.value; + const match2 = tags.filter((t3) => { + var _a3; + return (_a3 = t3.identify) == null ? void 0 : _a3.call(t3, obj); + }); + tagObj = match2.find((t3) => t3.format === item.format) ?? match2.find((t3) => !t3.format); + } else { + obj = item; + tagObj = tags.find((t3) => t3.nodeClass && obj instanceof t3.nodeClass); + } + if (!tagObj) { + const name = ((_a2 = obj == null ? void 0 : obj.constructor) == null ? void 0 : _a2.name) ?? typeof obj; + throw new Error(`Tag not resolved for ${name} value`); + } + return tagObj; + } + function stringifyProps(node, tagObj, { anchors: anchors$1, doc }) { + if (!doc.directives) + return ""; + const props = []; + const anchor = (identity2.isScalar(node) || identity2.isCollection(node)) && node.anchor; + if (anchor && anchors.anchorIsValid(anchor)) { + anchors$1.add(anchor); + props.push(`&${anchor}`); + } + const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag; + if (tag) + props.push(doc.directives.tagString(tag)); + return props.join(" "); + } + function stringify3(item, ctx, onComment, onChompKeep) { + var _a2; + if (identity2.isPair(item)) + return item.toString(ctx, onComment, onChompKeep); + if (identity2.isAlias(item)) { + if (ctx.doc.directives) + return item.toString(ctx); + if ((_a2 = ctx.resolvedAliases) == null ? void 0 : _a2.has(item)) { + throw new TypeError(`Cannot stringify circular structure without alias nodes`); + } else { + if (ctx.resolvedAliases) + ctx.resolvedAliases.add(item); + else + ctx.resolvedAliases = /* @__PURE__ */ new Set([item]); + item = item.resolve(ctx.doc); + } + } + let tagObj = void 0; + const node = identity2.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o3) => tagObj = o3 }); + if (!tagObj) + tagObj = getTagObject(ctx.doc.schema.tags, node); + const props = stringifyProps(node, tagObj, ctx); + if (props.length > 0) + ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1; + const str2 = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity2.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep); + if (!props) + return str2; + return identity2.isScalar(node) || str2[0] === "{" || str2[0] === "[" ? `${props} ${str2}` : `${props} +${ctx.indent}${str2}`; + } + exports2.createStringifyContext = createStringifyContext; + exports2.stringify = stringify3; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyPair.js +var require_stringifyPair = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var stringify3 = require_stringify(); + var stringifyComment = require_stringifyComment(); + function stringifyPair({ key, value }, ctx, onComment, onChompKeep) { + const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx; + let keyComment = identity2.isNode(key) && key.comment || null; + if (simpleKeys) { + if (keyComment) { + throw new Error("With simple keys, key nodes cannot have comments"); + } + if (identity2.isCollection(key)) { + const msg = "With simple keys, collection cannot be used as a key value"; + throw new Error(msg); + } + } + let explicitKey = !simpleKeys && (!key || keyComment && value == null && !ctx.inFlow || identity2.isCollection(key) || (identity2.isScalar(key) ? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL : typeof key === "object")); + ctx = Object.assign({}, ctx, { + allNullValues: false, + implicitKey: !explicitKey && (simpleKeys || !allNullValues), + indent: indent + indentStep + }); + let keyCommentDone = false; + let chompKeep = false; + let str2 = stringify3.stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true); + if (!explicitKey && !ctx.inFlow && str2.length > 1024) { + if (simpleKeys) + throw new Error("With simple keys, single line scalar must not span more than 1024 characters"); + explicitKey = true; + } + if (ctx.inFlow) { + if (allNullValues || value == null) { + if (keyCommentDone && onComment) + onComment(); + return str2 === "" ? "?" : explicitKey ? `? ${str2}` : str2; + } + } else if (allNullValues && !simpleKeys || value == null && explicitKey) { + str2 = `? ${str2}`; + if (keyComment && !keyCommentDone) { + str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment)); + } else if (chompKeep && onChompKeep) + onChompKeep(); + return str2; + } + if (keyCommentDone) + keyComment = null; + if (explicitKey) { + if (keyComment) + str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment)); + str2 = `? ${str2} +${indent}:`; + } else { + str2 = `${str2}:`; + if (keyComment) + str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment)); + } + let vsb, vcb, valueComment; + if (identity2.isNode(value)) { + vsb = !!value.spaceBefore; + vcb = value.commentBefore; + valueComment = value.comment; + } else { + vsb = false; + vcb = null; + valueComment = null; + if (value && typeof value === "object") + value = doc.createNode(value); + } + ctx.implicitKey = false; + if (!explicitKey && !keyComment && identity2.isScalar(value)) + ctx.indentAtStart = str2.length + 1; + chompKeep = false; + if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity2.isSeq(value) && !value.flow && !value.tag && !value.anchor) { + ctx.indent = ctx.indent.substring(2); + } + let valueCommentDone = false; + const valueStr = stringify3.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true); + let ws = " "; + if (keyComment || vsb || vcb) { + ws = vsb ? "\n" : ""; + if (vcb) { + const cs = commentString(vcb); + ws += ` +${stringifyComment.indentComment(cs, ctx.indent)}`; + } + if (valueStr === "" && !ctx.inFlow) { + if (ws === "\n") + ws = "\n\n"; + } else { + ws += ` +${ctx.indent}`; + } + } else if (!explicitKey && identity2.isCollection(value)) { + const vs0 = valueStr[0]; + const nl0 = valueStr.indexOf("\n"); + const hasNewline = nl0 !== -1; + const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0; + if (hasNewline || !flow) { + let hasPropsLine = false; + if (hasNewline && (vs0 === "&" || vs0 === "!")) { + let sp0 = valueStr.indexOf(" "); + if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") { + sp0 = valueStr.indexOf(" ", sp0 + 1); + } + if (sp0 === -1 || nl0 < sp0) + hasPropsLine = true; + } + if (!hasPropsLine) + ws = ` +${ctx.indent}`; + } + } else if (valueStr === "" || valueStr[0] === "\n") { + ws = ""; + } + str2 += ws + valueStr; + if (ctx.inFlow) { + if (valueCommentDone && onComment) + onComment(); + } else if (valueComment && !valueCommentDone) { + str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(valueComment)); + } else if (chompKeep && onChompKeep) { + onChompKeep(); + } + return str2; + } + exports2.stringifyPair = stringifyPair; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/log.js +var require_log = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/log.js"(exports2) { + "use strict"; + function debug(logLevel, ...messages) { + if (logLevel === "debug") + console.log(...messages); + } + function warn(logLevel, warning) { + if (logLevel === "debug" || logLevel === "warn") { + if (typeof process !== "undefined" && process.emitWarning) + process.emitWarning(warning); + else + console.warn(warning); + } + } + exports2.debug = debug; + exports2.warn = warn; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/addPairToJSMap.js +var require_addPairToJSMap = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) { + "use strict"; + var log = require_log(); + var stringify3 = require_stringify(); + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var toJS = require_toJS(); + var MERGE_KEY = "<<"; + function addPairToJSMap(ctx, map2, { key, value }) { + if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) { + value = identity2.isAlias(value) ? value.resolve(ctx.doc) : value; + if (identity2.isSeq(value)) + for (const it of value.items) + mergeToJSMap(ctx, map2, it); + else if (Array.isArray(value)) + for (const it of value) + mergeToJSMap(ctx, map2, it); + else + mergeToJSMap(ctx, map2, value); + } else { + const jsKey = toJS.toJS(key, "", ctx); + if (map2 instanceof Map) { + map2.set(jsKey, toJS.toJS(value, jsKey, ctx)); + } else if (map2 instanceof Set) { + map2.add(jsKey); + } else { + const stringKey = stringifyKey(key, jsKey, ctx); + const jsValue = toJS.toJS(value, stringKey, ctx); + if (stringKey in map2) + Object.defineProperty(map2, stringKey, { + value: jsValue, + writable: true, + enumerable: true, + configurable: true + }); + else + map2[stringKey] = jsValue; + } + } + return map2; + } + var isMergeKey = (key) => key === MERGE_KEY || identity2.isScalar(key) && key.value === MERGE_KEY && (!key.type || key.type === Scalar.Scalar.PLAIN); + function mergeToJSMap(ctx, map2, value) { + const source = ctx && identity2.isAlias(value) ? value.resolve(ctx.doc) : value; + if (!identity2.isMap(source)) + throw new Error("Merge sources must be maps or map aliases"); + const srcMap = source.toJSON(null, ctx, Map); + for (const [key, value2] of srcMap) { + if (map2 instanceof Map) { + if (!map2.has(key)) + map2.set(key, value2); + } else if (map2 instanceof Set) { + map2.add(key); + } else if (!Object.prototype.hasOwnProperty.call(map2, key)) { + Object.defineProperty(map2, key, { + value: value2, + writable: true, + enumerable: true, + configurable: true + }); + } + } + return map2; + } + function stringifyKey(key, jsKey, ctx) { + if (jsKey === null) + return ""; + if (typeof jsKey !== "object") + return String(jsKey); + if (identity2.isNode(key) && ctx && ctx.doc) { + const strCtx = stringify3.createStringifyContext(ctx.doc, {}); + strCtx.anchors = /* @__PURE__ */ new Set(); + for (const node of ctx.anchors.keys()) + strCtx.anchors.add(node.anchor); + strCtx.inFlow = true; + strCtx.inStringifyKey = true; + const strKey = key.toString(strCtx); + if (!ctx.mapKeyWarned) { + let jsonStr = JSON.stringify(strKey); + if (jsonStr.length > 40) + jsonStr = jsonStr.substring(0, 36) + '..."'; + log.warn(ctx.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${jsonStr}. Set mapAsMap: true to use object keys.`); + ctx.mapKeyWarned = true; + } + return strKey; + } + return JSON.stringify(jsKey); + } + exports2.addPairToJSMap = addPairToJSMap; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Pair.js +var require_Pair = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/Pair.js"(exports2) { + "use strict"; + var createNode = require_createNode(); + var stringifyPair = require_stringifyPair(); + var addPairToJSMap = require_addPairToJSMap(); + var identity2 = require_identity(); + function createPair(key, value, ctx) { + const k3 = createNode.createNode(key, void 0, ctx); + const v3 = createNode.createNode(value, void 0, ctx); + return new Pair(k3, v3); + } + var Pair = class _Pair { + constructor(key, value = null) { + Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR }); + this.key = key; + this.value = value; + } + clone(schema2) { + let { key, value } = this; + if (identity2.isNode(key)) + key = key.clone(schema2); + if (identity2.isNode(value)) + value = value.clone(schema2); + return new _Pair(key, value); + } + toJSON(_2, ctx) { + const pair = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {}; + return addPairToJSMap.addPairToJSMap(ctx, pair, this); + } + toString(ctx, onComment, onChompKeep) { + return (ctx == null ? void 0 : ctx.doc) ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this); + } + }; + exports2.Pair = Pair; + exports2.createPair = createPair; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyCollection.js +var require_stringifyCollection = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) { + "use strict"; + var Collection = require_Collection(); + var identity2 = require_identity(); + var stringify3 = require_stringify(); + var stringifyComment = require_stringifyComment(); + function stringifyCollection(collection, ctx, options2) { + const flow = ctx.inFlow ?? collection.flow; + const stringify4 = flow ? stringifyFlowCollection : stringifyBlockCollection; + return stringify4(collection, ctx, options2); + } + function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) { + const { indent, options: { commentString } } = ctx; + const itemCtx = Object.assign({}, ctx, { indent: itemIndent, type: null }); + let chompKeep = false; + const lines = []; + for (let i3 = 0; i3 < items.length; ++i3) { + const item = items[i3]; + let comment2 = null; + if (identity2.isNode(item)) { + if (!chompKeep && item.spaceBefore) + lines.push(""); + addCommentBefore(ctx, lines, item.commentBefore, chompKeep); + if (item.comment) + comment2 = item.comment; + } else if (identity2.isPair(item)) { + const ik = identity2.isNode(item.key) ? item.key : null; + if (ik) { + if (!chompKeep && ik.spaceBefore) + lines.push(""); + addCommentBefore(ctx, lines, ik.commentBefore, chompKeep); + } + } + chompKeep = false; + let str3 = stringify3.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true); + if (comment2) + str3 += stringifyComment.lineComment(str3, itemIndent, commentString(comment2)); + if (chompKeep && comment2) + chompKeep = false; + lines.push(blockItemPrefix + str3); + } + let str2; + if (lines.length === 0) { + str2 = flowChars.start + flowChars.end; + } else { + str2 = lines[0]; + for (let i3 = 1; i3 < lines.length; ++i3) { + const line = lines[i3]; + str2 += line ? ` +${indent}${line}` : "\n"; + } + } + if (comment) { + str2 += "\n" + stringifyComment.indentComment(commentString(comment), indent); + if (onComment) + onComment(); + } else if (chompKeep && onChompKeep) + onChompKeep(); + return str2; + } + function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) { + const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx; + itemIndent += indentStep; + const itemCtx = Object.assign({}, ctx, { + indent: itemIndent, + inFlow: true, + type: null + }); + let reqNewline = false; + let linesAtValue = 0; + const lines = []; + for (let i3 = 0; i3 < items.length; ++i3) { + const item = items[i3]; + let comment2 = null; + if (identity2.isNode(item)) { + if (item.spaceBefore) + lines.push(""); + addCommentBefore(ctx, lines, item.commentBefore, false); + if (item.comment) + comment2 = item.comment; + } else if (identity2.isPair(item)) { + const ik = identity2.isNode(item.key) ? item.key : null; + if (ik) { + if (ik.spaceBefore) + lines.push(""); + addCommentBefore(ctx, lines, ik.commentBefore, false); + if (ik.comment) + reqNewline = true; + } + const iv = identity2.isNode(item.value) ? item.value : null; + if (iv) { + if (iv.comment) + comment2 = iv.comment; + if (iv.commentBefore) + reqNewline = true; + } else if (item.value == null && ik && ik.comment) { + comment2 = ik.comment; + } + } + if (comment2) + reqNewline = true; + let str3 = stringify3.stringify(item, itemCtx, () => comment2 = null); + if (i3 < items.length - 1) + str3 += ","; + if (comment2) + str3 += stringifyComment.lineComment(str3, itemIndent, commentString(comment2)); + if (!reqNewline && (lines.length > linesAtValue || str3.includes("\n"))) + reqNewline = true; + lines.push(str3); + linesAtValue = lines.length; + } + let str2; + const { start, end } = flowChars; + if (lines.length === 0) { + str2 = start + end; + } else { + if (!reqNewline) { + const len = lines.reduce((sum2, line) => sum2 + line.length + 2, 2); + reqNewline = len > Collection.Collection.maxFlowStringSingleLineLength; + } + if (reqNewline) { + str2 = start; + for (const line of lines) + str2 += line ? ` +${indentStep}${indent}${line}` : "\n"; + str2 += ` +${indent}${end}`; + } else { + str2 = `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`; + } + } + if (comment) { + str2 += stringifyComment.lineComment(str2, indent, commentString(comment)); + if (onComment) + onComment(); + } + return str2; + } + function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) { + if (comment && chompKeep) + comment = comment.replace(/^\n+/, ""); + if (comment) { + const ic = stringifyComment.indentComment(commentString(comment), indent); + lines.push(ic.trimStart()); + } + } + exports2.stringifyCollection = stringifyCollection; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/YAMLMap.js +var require_YAMLMap = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) { + "use strict"; + var stringifyCollection = require_stringifyCollection(); + var addPairToJSMap = require_addPairToJSMap(); + var Collection = require_Collection(); + var identity2 = require_identity(); + var Pair = require_Pair(); + var Scalar = require_Scalar(); + function findPair(items, key) { + const k3 = identity2.isScalar(key) ? key.value : key; + for (const it of items) { + if (identity2.isPair(it)) { + if (it.key === key || it.key === k3) + return it; + if (identity2.isScalar(it.key) && it.key.value === k3) + return it; + } + } + return void 0; + } + var YAMLMap = class extends Collection.Collection { + static get tagName() { + return "tag:yaml.org,2002:map"; + } + constructor(schema2) { + super(identity2.MAP, schema2); + this.items = []; + } + /** + * A generic collection parsing method that can be extended + * to other node classes that inherit from YAMLMap + */ + static from(schema2, obj, ctx) { + const { keepUndefined, replacer } = ctx; + const map2 = new this(schema2); + const add = (key, value) => { + if (typeof replacer === "function") + value = replacer.call(obj, key, value); + else if (Array.isArray(replacer) && !replacer.includes(key)) + return; + if (value !== void 0 || keepUndefined) + map2.items.push(Pair.createPair(key, value, ctx)); + }; + if (obj instanceof Map) { + for (const [key, value] of obj) + add(key, value); + } else if (obj && typeof obj === "object") { + for (const key of Object.keys(obj)) + add(key, obj[key]); + } + if (typeof schema2.sortMapEntries === "function") { + map2.items.sort(schema2.sortMapEntries); + } + return map2; + } + /** + * Adds a value to the collection. + * + * @param overwrite - If not set `true`, using a key that is already in the + * collection will throw. Otherwise, overwrites the previous value. + */ + add(pair, overwrite) { + var _a2; + let _pair; + if (identity2.isPair(pair)) + _pair = pair; + else if (!pair || typeof pair !== "object" || !("key" in pair)) { + _pair = new Pair.Pair(pair, pair == null ? void 0 : pair.value); + } else + _pair = new Pair.Pair(pair.key, pair.value); + const prev = findPair(this.items, _pair.key); + const sortEntries = (_a2 = this.schema) == null ? void 0 : _a2.sortMapEntries; + if (prev) { + if (!overwrite) + throw new Error(`Key ${_pair.key} already set`); + if (identity2.isScalar(prev.value) && Scalar.isScalarValue(_pair.value)) + prev.value.value = _pair.value; + else + prev.value = _pair.value; + } else if (sortEntries) { + const i3 = this.items.findIndex((item) => sortEntries(_pair, item) < 0); + if (i3 === -1) + this.items.push(_pair); + else + this.items.splice(i3, 0, _pair); + } else { + this.items.push(_pair); + } + } + delete(key) { + const it = findPair(this.items, key); + if (!it) + return false; + const del = this.items.splice(this.items.indexOf(it), 1); + return del.length > 0; + } + get(key, keepScalar) { + const it = findPair(this.items, key); + const node = it == null ? void 0 : it.value; + return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? void 0; + } + has(key) { + return !!findPair(this.items, key); + } + set(key, value) { + this.add(new Pair.Pair(key, value), true); + } + /** + * @param ctx - Conversion context, originally set in Document#toJS() + * @param {Class} Type - If set, forces the returned collection type + * @returns Instance of Type, Map, or Object + */ + toJSON(_2, ctx, Type) { + const map2 = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {}; + if (ctx == null ? void 0 : ctx.onCreate) + ctx.onCreate(map2); + for (const item of this.items) + addPairToJSMap.addPairToJSMap(ctx, map2, item); + return map2; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + for (const item of this.items) { + if (!identity2.isPair(item)) + throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`); + } + if (!ctx.allNullValues && this.hasAllNullValues(false)) + ctx = Object.assign({}, ctx, { allNullValues: true }); + return stringifyCollection.stringifyCollection(this, ctx, { + blockItemPrefix: "", + flowChars: { start: "{", end: "}" }, + itemIndent: ctx.indent || "", + onChompKeep, + onComment + }); + } + }; + exports2.YAMLMap = YAMLMap; + exports2.findPair = findPair; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/map.js +var require_map = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/map.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var YAMLMap = require_YAMLMap(); + var map2 = { + collection: "map", + default: true, + nodeClass: YAMLMap.YAMLMap, + tag: "tag:yaml.org,2002:map", + resolve(map3, onError) { + if (!identity2.isMap(map3)) + onError("Expected a mapping for this tag"); + return map3; + }, + createNode: (schema2, obj, ctx) => YAMLMap.YAMLMap.from(schema2, obj, ctx) + }; + exports2.map = map2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/YAMLSeq.js +var require_YAMLSeq = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) { + "use strict"; + var createNode = require_createNode(); + var stringifyCollection = require_stringifyCollection(); + var Collection = require_Collection(); + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var toJS = require_toJS(); + var YAMLSeq = class extends Collection.Collection { + static get tagName() { + return "tag:yaml.org,2002:seq"; + } + constructor(schema2) { + super(identity2.SEQ, schema2); + this.items = []; + } + add(value) { + this.items.push(value); + } + /** + * Removes a value from the collection. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + * + * @returns `true` if the item was found and removed. + */ + delete(key) { + const idx = asItemIndex(key); + if (typeof idx !== "number") + return false; + const del = this.items.splice(idx, 1); + return del.length > 0; + } + get(key, keepScalar) { + const idx = asItemIndex(key); + if (typeof idx !== "number") + return void 0; + const it = this.items[idx]; + return !keepScalar && identity2.isScalar(it) ? it.value : it; + } + /** + * Checks if the collection includes a value with the key `key`. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + */ + has(key) { + const idx = asItemIndex(key); + return typeof idx === "number" && idx < this.items.length; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + * + * If `key` does not contain a representation of an integer, this will throw. + * It may be wrapped in a `Scalar`. + */ + set(key, value) { + const idx = asItemIndex(key); + if (typeof idx !== "number") + throw new Error(`Expected a valid index, not ${key}.`); + const prev = this.items[idx]; + if (identity2.isScalar(prev) && Scalar.isScalarValue(value)) + prev.value = value; + else + this.items[idx] = value; + } + toJSON(_2, ctx) { + const seq2 = []; + if (ctx == null ? void 0 : ctx.onCreate) + ctx.onCreate(seq2); + let i3 = 0; + for (const item of this.items) + seq2.push(toJS.toJS(item, String(i3++), ctx)); + return seq2; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + return stringifyCollection.stringifyCollection(this, ctx, { + blockItemPrefix: "- ", + flowChars: { start: "[", end: "]" }, + itemIndent: (ctx.indent || "") + " ", + onChompKeep, + onComment + }); + } + static from(schema2, obj, ctx) { + const { replacer } = ctx; + const seq2 = new this(schema2); + if (obj && Symbol.iterator in Object(obj)) { + let i3 = 0; + for (let it of obj) { + if (typeof replacer === "function") { + const key = obj instanceof Set ? it : String(i3++); + it = replacer.call(obj, key, it); + } + seq2.items.push(createNode.createNode(it, void 0, ctx)); + } + } + return seq2; + } + }; + function asItemIndex(key) { + let idx = identity2.isScalar(key) ? key.value : key; + if (idx && typeof idx === "string") + idx = Number(idx); + return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null; + } + exports2.YAMLSeq = YAMLSeq; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/seq.js +var require_seq = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/seq.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var YAMLSeq = require_YAMLSeq(); + var seq2 = { + collection: "seq", + default: true, + nodeClass: YAMLSeq.YAMLSeq, + tag: "tag:yaml.org,2002:seq", + resolve(seq3, onError) { + if (!identity2.isSeq(seq3)) + onError("Expected a sequence for this tag"); + return seq3; + }, + createNode: (schema2, obj, ctx) => YAMLSeq.YAMLSeq.from(schema2, obj, ctx) + }; + exports2.seq = seq2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/string.js +var require_string = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/string.js"(exports2) { + "use strict"; + var stringifyString = require_stringifyString(); + var string = { + identify: (value) => typeof value === "string", + default: true, + tag: "tag:yaml.org,2002:str", + resolve: (str2) => str2, + stringify(item, ctx, onComment, onChompKeep) { + ctx = Object.assign({ actualString: true }, ctx); + return stringifyString.stringifyString(item, ctx, onComment, onChompKeep); + } + }; + exports2.string = string; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/null.js +var require_null = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/common/null.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var nullTag2 = { + identify: (value) => value == null, + createNode: () => new Scalar.Scalar(null), + default: true, + tag: "tag:yaml.org,2002:null", + test: /^(?:~|[Nn]ull|NULL)?$/, + resolve: () => new Scalar.Scalar(null), + stringify: ({ source }, ctx) => typeof source === "string" && nullTag2.test.test(source) ? source : ctx.options.nullStr + }; + exports2.nullTag = nullTag2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/bool.js +var require_bool = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/bool.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var boolTag5 = { + identify: (value) => typeof value === "boolean", + default: true, + tag: "tag:yaml.org,2002:bool", + test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, + resolve: (str2) => new Scalar.Scalar(str2[0] === "t" || str2[0] === "T"), + stringify({ source, value }, ctx) { + if (source && boolTag5.test.test(source)) { + const sv = source[0] === "t" || source[0] === "T"; + if (value === sv) + return source; + } + return value ? ctx.options.trueStr : ctx.options.falseStr; + } + }; + exports2.boolTag = boolTag5; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyNumber.js +var require_stringifyNumber = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) { + "use strict"; + function stringifyNumber({ format: format3, minFractionDigits, tag, value }) { + if (typeof value === "bigint") + return String(value); + const num = typeof value === "number" ? value : Number(value); + if (!isFinite(num)) + return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf"; + let n3 = JSON.stringify(value); + if (!format3 && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n3)) { + let i3 = n3.indexOf("."); + if (i3 < 0) { + i3 = n3.length; + n3 += "."; + } + let d3 = minFractionDigits - (n3.length - i3 - 1); + while (d3-- > 0) + n3 += "0"; + } + return n3; + } + exports2.stringifyNumber = stringifyNumber; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/float.js +var require_float = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/float.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var stringifyNumber = require_stringifyNumber(); + var floatNaN = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, + resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, + stringify: stringifyNumber.stringifyNumber + }; + var floatExp = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + format: "EXP", + test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, + resolve: (str2) => parseFloat(str2), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node); + } + }; + var float2 = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/, + resolve(str2) { + const node = new Scalar.Scalar(parseFloat(str2)); + const dot = str2.indexOf("."); + if (dot !== -1 && str2[str2.length - 1] === "0") + node.minFractionDigits = str2.length - dot - 1; + return node; + }, + stringify: stringifyNumber.stringifyNumber + }; + exports2.float = float2; + exports2.floatExp = floatExp; + exports2.floatNaN = floatNaN; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/int.js +var require_int = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/int.js"(exports2) { + "use strict"; + var stringifyNumber = require_stringifyNumber(); + var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value); + var intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix); + function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value) && value >= 0) + return prefix + value.toString(radix); + return stringifyNumber.stringifyNumber(node); + } + var intOct = { + identify: (value) => intIdentify(value) && value >= 0, + default: true, + tag: "tag:yaml.org,2002:int", + format: "OCT", + test: /^0o[0-7]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 2, 8, opt), + stringify: (node) => intStringify(node, 8, "0o") + }; + var int2 = { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + test: /^[-+]?[0-9]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt), + stringify: stringifyNumber.stringifyNumber + }; + var intHex = { + identify: (value) => intIdentify(value) && value >= 0, + default: true, + tag: "tag:yaml.org,2002:int", + format: "HEX", + test: /^0x[0-9a-fA-F]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt), + stringify: (node) => intStringify(node, 16, "0x") + }; + exports2.int = int2; + exports2.intHex = intHex; + exports2.intOct = intOct; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/schema.js +var require_schema = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/core/schema.js"(exports2) { + "use strict"; + var map2 = require_map(); + var _null2 = require_null(); + var seq2 = require_seq(); + var string = require_string(); + var bool2 = require_bool(); + var float2 = require_float(); + var int2 = require_int(); + var schema2 = [ + map2.map, + seq2.seq, + string.string, + _null2.nullTag, + bool2.boolTag, + int2.intOct, + int2.int, + int2.intHex, + float2.floatNaN, + float2.floatExp, + float2.float + ]; + exports2.schema = schema2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/json/schema.js +var require_schema2 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/json/schema.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var map2 = require_map(); + var seq2 = require_seq(); + function intIdentify(value) { + return typeof value === "bigint" || Number.isInteger(value); + } + var stringifyJSON = ({ value }) => JSON.stringify(value); + var jsonScalars = [ + { + identify: (value) => typeof value === "string", + default: true, + tag: "tag:yaml.org,2002:str", + resolve: (str2) => str2, + stringify: stringifyJSON + }, + { + identify: (value) => value == null, + createNode: () => new Scalar.Scalar(null), + default: true, + tag: "tag:yaml.org,2002:null", + test: /^null$/, + resolve: () => null, + stringify: stringifyJSON + }, + { + identify: (value) => typeof value === "boolean", + default: true, + tag: "tag:yaml.org,2002:bool", + test: /^true|false$/, + resolve: (str2) => str2 === "true", + stringify: stringifyJSON + }, + { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + test: /^-?(?:0|[1-9][0-9]*)$/, + resolve: (str2, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2, 10), + stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value) + }, + { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/, + resolve: (str2) => parseFloat(str2), + stringify: stringifyJSON + } + ]; + var jsonError = { + default: true, + tag: "", + test: /^/, + resolve(str2, onError) { + onError(`Unresolved plain scalar ${JSON.stringify(str2)}`); + return str2; + } + }; + var schema2 = [map2.map, seq2.seq].concat(jsonScalars, jsonError); + exports2.schema = schema2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/binary.js +var require_binary = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var stringifyString = require_stringifyString(); + var binary2 = { + identify: (value) => value instanceof Uint8Array, + default: false, + tag: "tag:yaml.org,2002:binary", + /** + * Returns a Buffer in node and an Uint8Array in browsers + * + * To use the resulting buffer as an image, you'll want to do something like: + * + * const blob = new Blob([buffer], { type: 'image/jpeg' }) + * document.querySelector('#photo').src = URL.createObjectURL(blob) + */ + resolve(src, onError) { + if (typeof Buffer === "function") { + return Buffer.from(src, "base64"); + } else if (typeof atob === "function") { + const str2 = atob(src.replace(/[\n\r]/g, "")); + const buffer = new Uint8Array(str2.length); + for (let i3 = 0; i3 < str2.length; ++i3) + buffer[i3] = str2.charCodeAt(i3); + return buffer; + } else { + onError("This environment does not support reading binary tags; either Buffer or atob is required"); + return src; + } + }, + stringify({ comment, type: type2, value }, ctx, onComment, onChompKeep) { + const buf = value; + let str2; + if (typeof Buffer === "function") { + str2 = buf instanceof Buffer ? buf.toString("base64") : Buffer.from(buf.buffer).toString("base64"); + } else if (typeof btoa === "function") { + let s3 = ""; + for (let i3 = 0; i3 < buf.length; ++i3) + s3 += String.fromCharCode(buf[i3]); + str2 = btoa(s3); + } else { + throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required"); + } + if (!type2) + type2 = Scalar.Scalar.BLOCK_LITERAL; + if (type2 !== Scalar.Scalar.QUOTE_DOUBLE) { + const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth); + const n3 = Math.ceil(str2.length / lineWidth); + const lines = new Array(n3); + for (let i3 = 0, o3 = 0; i3 < n3; ++i3, o3 += lineWidth) { + lines[i3] = str2.substr(o3, lineWidth); + } + str2 = lines.join(type2 === Scalar.Scalar.BLOCK_LITERAL ? "\n" : " "); + } + return stringifyString.stringifyString({ comment, type: type2, value: str2 }, ctx, onComment, onChompKeep); + } + }; + exports2.binary = binary2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +var require_pairs = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Pair = require_Pair(); + var Scalar = require_Scalar(); + var YAMLSeq = require_YAMLSeq(); + function resolvePairs(seq2, onError) { + if (identity2.isSeq(seq2)) { + for (let i3 = 0; i3 < seq2.items.length; ++i3) { + let item = seq2.items[i3]; + if (identity2.isPair(item)) + continue; + else if (identity2.isMap(item)) { + if (item.items.length > 1) + onError("Each pair must have its own sequence indicator"); + const pair = item.items[0] || new Pair.Pair(new Scalar.Scalar(null)); + if (item.commentBefore) + pair.key.commentBefore = pair.key.commentBefore ? `${item.commentBefore} +${pair.key.commentBefore}` : item.commentBefore; + if (item.comment) { + const cn = pair.value ?? pair.key; + cn.comment = cn.comment ? `${item.comment} +${cn.comment}` : item.comment; + } + item = pair; + } + seq2.items[i3] = identity2.isPair(item) ? item : new Pair.Pair(item); + } + } else + onError("Expected a sequence for this tag"); + return seq2; + } + function createPairs(schema2, iterable, ctx) { + const { replacer } = ctx; + const pairs3 = new YAMLSeq.YAMLSeq(schema2); + pairs3.tag = "tag:yaml.org,2002:pairs"; + let i3 = 0; + if (iterable && Symbol.iterator in Object(iterable)) + for (let it of iterable) { + if (typeof replacer === "function") + it = replacer.call(iterable, String(i3++), it); + let key, value; + if (Array.isArray(it)) { + if (it.length === 2) { + key = it[0]; + value = it[1]; + } else + throw new TypeError(`Expected [key, value] tuple: ${it}`); + } else if (it && it instanceof Object) { + const keys3 = Object.keys(it); + if (keys3.length === 1) { + key = keys3[0]; + value = it[key]; + } else + throw new TypeError(`Expected { key: value } tuple: ${it}`); + } else { + key = it; + } + pairs3.items.push(Pair.createPair(key, value, ctx)); + } + return pairs3; + } + var pairs2 = { + collection: "seq", + default: false, + tag: "tag:yaml.org,2002:pairs", + resolve: resolvePairs, + createNode: createPairs + }; + exports2.createPairs = createPairs; + exports2.pairs = pairs2; + exports2.resolvePairs = resolvePairs; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/omap.js +var require_omap = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var toJS = require_toJS(); + var YAMLMap = require_YAMLMap(); + var YAMLSeq = require_YAMLSeq(); + var pairs2 = require_pairs(); + var YAMLOMap = class _YAMLOMap extends YAMLSeq.YAMLSeq { + constructor() { + super(); + this.add = YAMLMap.YAMLMap.prototype.add.bind(this); + this.delete = YAMLMap.YAMLMap.prototype.delete.bind(this); + this.get = YAMLMap.YAMLMap.prototype.get.bind(this); + this.has = YAMLMap.YAMLMap.prototype.has.bind(this); + this.set = YAMLMap.YAMLMap.prototype.set.bind(this); + this.tag = _YAMLOMap.tag; + } + /** + * If `ctx` is given, the return type is actually `Map`, + * but TypeScript won't allow widening the signature of a child method. + */ + toJSON(_2, ctx) { + if (!ctx) + return super.toJSON(_2); + const map2 = /* @__PURE__ */ new Map(); + if (ctx == null ? void 0 : ctx.onCreate) + ctx.onCreate(map2); + for (const pair of this.items) { + let key, value; + if (identity2.isPair(pair)) { + key = toJS.toJS(pair.key, "", ctx); + value = toJS.toJS(pair.value, key, ctx); + } else { + key = toJS.toJS(pair, "", ctx); + } + if (map2.has(key)) + throw new Error("Ordered maps must not include duplicate keys"); + map2.set(key, value); + } + return map2; + } + static from(schema2, iterable, ctx) { + const pairs$1 = pairs2.createPairs(schema2, iterable, ctx); + const omap3 = new this(); + omap3.items = pairs$1.items; + return omap3; + } + }; + YAMLOMap.tag = "tag:yaml.org,2002:omap"; + var omap2 = { + collection: "seq", + identify: (value) => value instanceof Map, + nodeClass: YAMLOMap, + default: false, + tag: "tag:yaml.org,2002:omap", + resolve(seq2, onError) { + const pairs$1 = pairs2.resolvePairs(seq2, onError); + const seenKeys = []; + for (const { key } of pairs$1.items) { + if (identity2.isScalar(key)) { + if (seenKeys.includes(key.value)) { + onError(`Ordered maps must not include duplicate keys: ${key.value}`); + } else { + seenKeys.push(key.value); + } + } + } + return Object.assign(new YAMLOMap(), pairs$1); + }, + createNode: (schema2, iterable, ctx) => YAMLOMap.from(schema2, iterable, ctx) + }; + exports2.YAMLOMap = YAMLOMap; + exports2.omap = omap2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/bool.js +var require_bool2 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + function boolStringify({ value, source }, ctx) { + const boolObj = value ? trueTag : falseTag; + if (source && boolObj.test.test(source)) + return source; + return value ? ctx.options.trueStr : ctx.options.falseStr; + } + var trueTag = { + identify: (value) => value === true, + default: true, + tag: "tag:yaml.org,2002:bool", + test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, + resolve: () => new Scalar.Scalar(true), + stringify: boolStringify + }; + var falseTag = { + identify: (value) => value === false, + default: true, + tag: "tag:yaml.org,2002:bool", + test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, + resolve: () => new Scalar.Scalar(false), + stringify: boolStringify + }; + exports2.falseTag = falseTag; + exports2.trueTag = trueTag; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/float.js +var require_float2 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var stringifyNumber = require_stringifyNumber(); + var floatNaN = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/, + resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, + stringify: stringifyNumber.stringifyNumber + }; + var floatExp = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + format: "EXP", + test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/, + resolve: (str2) => parseFloat(str2.replace(/_/g, "")), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node); + } + }; + var float2 = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/, + resolve(str2) { + const node = new Scalar.Scalar(parseFloat(str2.replace(/_/g, ""))); + const dot = str2.indexOf("."); + if (dot !== -1) { + const f2 = str2.substring(dot + 1).replace(/_/g, ""); + if (f2[f2.length - 1] === "0") + node.minFractionDigits = f2.length; + } + return node; + }, + stringify: stringifyNumber.stringifyNumber + }; + exports2.float = float2; + exports2.floatExp = floatExp; + exports2.floatNaN = floatNaN; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/int.js +var require_int2 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) { + "use strict"; + var stringifyNumber = require_stringifyNumber(); + var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value); + function intResolve(str2, offset, radix, { intAsBigInt }) { + const sign = str2[0]; + if (sign === "-" || sign === "+") + offset += 1; + str2 = str2.substring(offset).replace(/_/g, ""); + if (intAsBigInt) { + switch (radix) { + case 2: + str2 = `0b${str2}`; + break; + case 8: + str2 = `0o${str2}`; + break; + case 16: + str2 = `0x${str2}`; + break; + } + const n4 = BigInt(str2); + return sign === "-" ? BigInt(-1) * n4 : n4; + } + const n3 = parseInt(str2, radix); + return sign === "-" ? -1 * n3 : n3; + } + function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value)) { + const str2 = value.toString(radix); + return value < 0 ? "-" + prefix + str2.substr(1) : prefix + str2; + } + return stringifyNumber.stringifyNumber(node); + } + var intBin = { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + format: "BIN", + test: /^[-+]?0b[0-1_]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 2, 2, opt), + stringify: (node) => intStringify(node, 2, "0b") + }; + var intOct = { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + format: "OCT", + test: /^[-+]?0[0-7_]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 1, 8, opt), + stringify: (node) => intStringify(node, 8, "0") + }; + var int2 = { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + test: /^[-+]?[0-9][0-9_]*$/, + resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt), + stringify: stringifyNumber.stringifyNumber + }; + var intHex = { + identify: intIdentify, + default: true, + tag: "tag:yaml.org,2002:int", + format: "HEX", + test: /^[-+]?0x[0-9a-fA-F_]+$/, + resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt), + stringify: (node) => intStringify(node, 16, "0x") + }; + exports2.int = int2; + exports2.intBin = intBin; + exports2.intHex = intHex; + exports2.intOct = intOct; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/set.js +var require_set = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Pair = require_Pair(); + var YAMLMap = require_YAMLMap(); + var YAMLSet = class _YAMLSet extends YAMLMap.YAMLMap { + constructor(schema2) { + super(schema2); + this.tag = _YAMLSet.tag; + } + add(key) { + let pair; + if (identity2.isPair(key)) + pair = key; + else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null) + pair = new Pair.Pair(key.key, null); + else + pair = new Pair.Pair(key, null); + const prev = YAMLMap.findPair(this.items, pair.key); + if (!prev) + this.items.push(pair); + } + /** + * If `keepPair` is `true`, returns the Pair matching `key`. + * Otherwise, returns the value of that Pair's key. + */ + get(key, keepPair) { + const pair = YAMLMap.findPair(this.items, key); + return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair; + } + set(key, value) { + if (typeof value !== "boolean") + throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`); + const prev = YAMLMap.findPair(this.items, key); + if (prev && !value) { + this.items.splice(this.items.indexOf(prev), 1); + } else if (!prev && value) { + this.items.push(new Pair.Pair(key)); + } + } + toJSON(_2, ctx) { + return super.toJSON(_2, ctx, Set); + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + if (this.hasAllNullValues(true)) + return super.toString(Object.assign({}, ctx, { allNullValues: true }), onComment, onChompKeep); + else + throw new Error("Set items must all have null values"); + } + static from(schema2, iterable, ctx) { + const { replacer } = ctx; + const set3 = new this(schema2); + if (iterable && Symbol.iterator in Object(iterable)) + for (let value of iterable) { + if (typeof replacer === "function") + value = replacer.call(iterable, value, value); + set3.items.push(Pair.createPair(value, null, ctx)); + } + return set3; + } + }; + YAMLSet.tag = "tag:yaml.org,2002:set"; + var set2 = { + collection: "map", + identify: (value) => value instanceof Set, + nodeClass: YAMLSet, + default: false, + tag: "tag:yaml.org,2002:set", + createNode: (schema2, iterable, ctx) => YAMLSet.from(schema2, iterable, ctx), + resolve(map2, onError) { + if (identity2.isMap(map2)) { + if (map2.hasAllNullValues(true)) + return Object.assign(new YAMLSet(), map2); + else + onError("Set items must all have null values"); + } else + onError("Expected a mapping for this tag"); + return map2; + } + }; + exports2.YAMLSet = YAMLSet; + exports2.set = set2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +var require_timestamp = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) { + "use strict"; + var stringifyNumber = require_stringifyNumber(); + function parseSexagesimal(str2, asBigInt) { + const sign = str2[0]; + const parts = sign === "-" || sign === "+" ? str2.substring(1) : str2; + const num = (n3) => asBigInt ? BigInt(n3) : Number(n3); + const res = parts.replace(/_/g, "").split(":").reduce((res2, p3) => res2 * num(60) + num(p3), num(0)); + return sign === "-" ? num(-1) * res : res; + } + function stringifySexagesimal(node) { + let { value } = node; + let num = (n3) => n3; + if (typeof value === "bigint") + num = (n3) => BigInt(n3); + else if (isNaN(value) || !isFinite(value)) + return stringifyNumber.stringifyNumber(node); + let sign = ""; + if (value < 0) { + sign = "-"; + value *= num(-1); + } + const _60 = num(60); + const parts = [value % _60]; + if (value < 60) { + parts.unshift(0); + } else { + value = (value - parts[0]) / _60; + parts.unshift(value % _60); + if (value >= 60) { + value = (value - parts[0]) / _60; + parts.unshift(value); + } + } + return sign + parts.map((n3) => String(n3).padStart(2, "0")).join(":").replace(/000000\d*$/, ""); + } + var intTime = { + identify: (value) => typeof value === "bigint" || Number.isInteger(value), + default: true, + tag: "tag:yaml.org,2002:int", + format: "TIME", + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/, + resolve: (str2, _onError, { intAsBigInt }) => parseSexagesimal(str2, intAsBigInt), + stringify: stringifySexagesimal + }; + var floatTime = { + identify: (value) => typeof value === "number", + default: true, + tag: "tag:yaml.org,2002:float", + format: "TIME", + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/, + resolve: (str2) => parseSexagesimal(str2, false), + stringify: stringifySexagesimal + }; + var timestamp2 = { + identify: (value) => value instanceof Date, + default: true, + tag: "tag:yaml.org,2002:timestamp", + // If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part + // may be omitted altogether, resulting in a date format. In such a case, the time part is + // assumed to be 00:00:00Z (start of day, UTC). + test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"), + resolve(str2) { + const match2 = str2.match(timestamp2.test); + if (!match2) + throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd"); + const [, year, month, day, hour, minute, second] = match2.map(Number); + const millisec = match2[7] ? Number((match2[7] + "00").substr(1, 3)) : 0; + let date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec); + const tz = match2[8]; + if (tz && tz !== "Z") { + let d3 = parseSexagesimal(tz, false); + if (Math.abs(d3) < 30) + d3 *= 60; + date -= 6e4 * d3; + } + return new Date(date); + }, + stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "") + }; + exports2.floatTime = floatTime; + exports2.intTime = intTime; + exports2.timestamp = timestamp2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/schema.js +var require_schema3 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) { + "use strict"; + var map2 = require_map(); + var _null2 = require_null(); + var seq2 = require_seq(); + var string = require_string(); + var binary2 = require_binary(); + var bool2 = require_bool2(); + var float2 = require_float2(); + var int2 = require_int2(); + var omap2 = require_omap(); + var pairs2 = require_pairs(); + var set2 = require_set(); + var timestamp2 = require_timestamp(); + var schema2 = [ + map2.map, + seq2.seq, + string.string, + _null2.nullTag, + bool2.trueTag, + bool2.falseTag, + int2.intBin, + int2.intOct, + int2.int, + int2.intHex, + float2.floatNaN, + float2.floatExp, + float2.float, + binary2.binary, + omap2.omap, + pairs2.pairs, + set2.set, + timestamp2.intTime, + timestamp2.floatTime, + timestamp2.timestamp + ]; + exports2.schema = schema2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/tags.js +var require_tags = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/tags.js"(exports2) { + "use strict"; + var map2 = require_map(); + var _null2 = require_null(); + var seq2 = require_seq(); + var string = require_string(); + var bool2 = require_bool(); + var float2 = require_float(); + var int2 = require_int(); + var schema2 = require_schema(); + var schema$1 = require_schema2(); + var binary2 = require_binary(); + var omap2 = require_omap(); + var pairs2 = require_pairs(); + var schema$2 = require_schema3(); + var set2 = require_set(); + var timestamp2 = require_timestamp(); + var schemas = /* @__PURE__ */ new Map([ + ["core", schema2.schema], + ["failsafe", [map2.map, seq2.seq, string.string]], + ["json", schema$1.schema], + ["yaml11", schema$2.schema], + ["yaml-1.1", schema$2.schema] + ]); + var tagsByName = { + binary: binary2.binary, + bool: bool2.boolTag, + float: float2.float, + floatExp: float2.floatExp, + floatNaN: float2.floatNaN, + floatTime: timestamp2.floatTime, + int: int2.int, + intHex: int2.intHex, + intOct: int2.intOct, + intTime: timestamp2.intTime, + map: map2.map, + null: _null2.nullTag, + omap: omap2.omap, + pairs: pairs2.pairs, + seq: seq2.seq, + set: set2.set, + timestamp: timestamp2.timestamp + }; + var coreKnownTags = { + "tag:yaml.org,2002:binary": binary2.binary, + "tag:yaml.org,2002:omap": omap2.omap, + "tag:yaml.org,2002:pairs": pairs2.pairs, + "tag:yaml.org,2002:set": set2.set, + "tag:yaml.org,2002:timestamp": timestamp2.timestamp + }; + function getTags(customTags, schemaName) { + let tags = schemas.get(schemaName); + if (!tags) { + if (Array.isArray(customTags)) + tags = []; + else { + const keys3 = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", "); + throw new Error(`Unknown schema "${schemaName}"; use one of ${keys3} or define customTags array`); + } + } + if (Array.isArray(customTags)) { + for (const tag of customTags) + tags = tags.concat(tag); + } else if (typeof customTags === "function") { + tags = customTags(tags.slice()); + } + return tags.map((tag) => { + if (typeof tag !== "string") + return tag; + const tagObj = tagsByName[tag]; + if (tagObj) + return tagObj; + const keys3 = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", "); + throw new Error(`Unknown custom tag "${tag}"; use one of ${keys3}`); + }); + } + exports2.coreKnownTags = coreKnownTags; + exports2.getTags = getTags; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/Schema.js +var require_Schema = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/schema/Schema.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var map2 = require_map(); + var seq2 = require_seq(); + var string = require_string(); + var tags = require_tags(); + var sortMapEntriesByKey = (a2, b3) => a2.key < b3.key ? -1 : a2.key > b3.key ? 1 : 0; + var Schema = class _Schema { + constructor({ compat, customTags, merge: merge3, resolveKnownTags, schema: schema2, sortMapEntries, toStringDefaults }) { + this.compat = Array.isArray(compat) ? tags.getTags(compat, "compat") : compat ? tags.getTags(null, compat) : null; + this.merge = !!merge3; + this.name = typeof schema2 === "string" && schema2 || "core"; + this.knownTags = resolveKnownTags ? tags.coreKnownTags : {}; + this.tags = tags.getTags(customTags, this.name); + this.toStringOptions = toStringDefaults ?? null; + Object.defineProperty(this, identity2.MAP, { value: map2.map }); + Object.defineProperty(this, identity2.SCALAR, { value: string.string }); + Object.defineProperty(this, identity2.SEQ, { value: seq2.seq }); + this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null; + } + clone() { + const copy = Object.create(_Schema.prototype, Object.getOwnPropertyDescriptors(this)); + copy.tags = this.tags.slice(); + return copy; + } + }; + exports2.Schema = Schema; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyDocument.js +var require_stringifyDocument = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var stringify3 = require_stringify(); + var stringifyComment = require_stringifyComment(); + function stringifyDocument(doc, options2) { + var _a2; + const lines = []; + let hasDirectives = options2.directives === true; + if (options2.directives !== false && doc.directives) { + const dir = doc.directives.toString(doc); + if (dir) { + lines.push(dir); + hasDirectives = true; + } else if (doc.directives.docStart) + hasDirectives = true; + } + if (hasDirectives) + lines.push("---"); + const ctx = stringify3.createStringifyContext(doc, options2); + const { commentString } = ctx.options; + if (doc.commentBefore) { + if (lines.length !== 1) + lines.unshift(""); + const cs = commentString(doc.commentBefore); + lines.unshift(stringifyComment.indentComment(cs, "")); + } + let chompKeep = false; + let contentComment = null; + if (doc.contents) { + if (identity2.isNode(doc.contents)) { + if (doc.contents.spaceBefore && hasDirectives) + lines.push(""); + if (doc.contents.commentBefore) { + const cs = commentString(doc.contents.commentBefore); + lines.push(stringifyComment.indentComment(cs, "")); + } + ctx.forceBlockIndent = !!doc.comment; + contentComment = doc.contents.comment; + } + const onChompKeep = contentComment ? void 0 : () => chompKeep = true; + let body = stringify3.stringify(doc.contents, ctx, () => contentComment = null, onChompKeep); + if (contentComment) + body += stringifyComment.lineComment(body, "", commentString(contentComment)); + if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") { + lines[lines.length - 1] = `--- ${body}`; + } else + lines.push(body); + } else { + lines.push(stringify3.stringify(doc.contents, ctx)); + } + if ((_a2 = doc.directives) == null ? void 0 : _a2.docEnd) { + if (doc.comment) { + const cs = commentString(doc.comment); + if (cs.includes("\n")) { + lines.push("..."); + lines.push(stringifyComment.indentComment(cs, "")); + } else { + lines.push(`... ${cs}`); + } + } else { + lines.push("..."); + } + } else { + let dc = doc.comment; + if (dc && chompKeep) + dc = dc.replace(/^\n+/, ""); + if (dc) { + if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "") + lines.push(""); + lines.push(stringifyComment.indentComment(commentString(dc), "")); + } + } + return lines.join("\n") + "\n"; + } + exports2.stringifyDocument = stringifyDocument; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/Document.js +var require_Document = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/doc/Document.js"(exports2) { + "use strict"; + var Alias = require_Alias(); + var Collection = require_Collection(); + var identity2 = require_identity(); + var Pair = require_Pair(); + var toJS = require_toJS(); + var Schema = require_Schema(); + var stringifyDocument = require_stringifyDocument(); + var anchors = require_anchors(); + var applyReviver = require_applyReviver(); + var createNode = require_createNode(); + var directives = require_directives(); + var Document = class _Document { + constructor(value, replacer, options2) { + this.commentBefore = null; + this.comment = null; + this.errors = []; + this.warnings = []; + Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.DOC }); + let _replacer = null; + if (typeof replacer === "function" || Array.isArray(replacer)) { + _replacer = replacer; + } else if (options2 === void 0 && replacer) { + options2 = replacer; + replacer = void 0; + } + const opt = Object.assign({ + intAsBigInt: false, + keepSourceTokens: false, + logLevel: "warn", + prettyErrors: true, + strict: true, + uniqueKeys: true, + version: "1.2" + }, options2); + this.options = opt; + let { version } = opt; + if (options2 == null ? void 0 : options2._directives) { + this.directives = options2._directives.atDocument(); + if (this.directives.yaml.explicit) + version = this.directives.yaml.version; + } else + this.directives = new directives.Directives({ version }); + this.setSchema(version, options2); + this.contents = value === void 0 ? null : this.createNode(value, _replacer, options2); + } + /** + * Create a deep copy of this Document and its contents. + * + * Custom Node values that inherit from `Object` still refer to their original instances. + */ + clone() { + const copy = Object.create(_Document.prototype, { + [identity2.NODE_TYPE]: { value: identity2.DOC } + }); + copy.commentBefore = this.commentBefore; + copy.comment = this.comment; + copy.errors = this.errors.slice(); + copy.warnings = this.warnings.slice(); + copy.options = Object.assign({}, this.options); + if (this.directives) + copy.directives = this.directives.clone(); + copy.schema = this.schema.clone(); + copy.contents = identity2.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents; + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** Adds a value to the document. */ + add(value) { + if (assertCollection(this.contents)) + this.contents.add(value); + } + /** Adds a value to the document. */ + addIn(path2, value) { + if (assertCollection(this.contents)) + this.contents.addIn(path2, value); + } + /** + * Create a new `Alias` node, ensuring that the target `node` has the required anchor. + * + * If `node` already has an anchor, `name` is ignored. + * Otherwise, the `node.anchor` value will be set to `name`, + * or if an anchor with that name is already present in the document, + * `name` will be used as a prefix for a new unique anchor. + * If `name` is undefined, the generated anchor will use 'a' as a prefix. + */ + createAlias(node, name) { + if (!node.anchor) { + const prev = anchors.anchorNames(this); + node.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + !name || prev.has(name) ? anchors.findNewAnchor(name || "a", prev) : name; + } + return new Alias.Alias(node.anchor); + } + createNode(value, replacer, options2) { + let _replacer = void 0; + if (typeof replacer === "function") { + value = replacer.call({ "": value }, "", value); + _replacer = replacer; + } else if (Array.isArray(replacer)) { + const keyToStr = (v3) => typeof v3 === "number" || v3 instanceof String || v3 instanceof Number; + const asStr = replacer.filter(keyToStr).map(String); + if (asStr.length > 0) + replacer = replacer.concat(asStr); + _replacer = replacer; + } else if (options2 === void 0 && replacer) { + options2 = replacer; + replacer = void 0; + } + const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options2 ?? {}; + const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors( + this, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + anchorPrefix || "a" + ); + const ctx = { + aliasDuplicateObjects: aliasDuplicateObjects ?? true, + keepUndefined: keepUndefined ?? false, + onAnchor, + onTagObj, + replacer: _replacer, + schema: this.schema, + sourceObjects + }; + const node = createNode.createNode(value, tag, ctx); + if (flow && identity2.isCollection(node)) + node.flow = true; + setAnchors(); + return node; + } + /** + * Convert a key and a value into a `Pair` using the current schema, + * recursively wrapping all values as `Scalar` or `Collection` nodes. + */ + createPair(key, value, options2 = {}) { + const k3 = this.createNode(key, null, options2); + const v3 = this.createNode(value, null, options2); + return new Pair.Pair(k3, v3); + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + delete(key) { + return assertCollection(this.contents) ? this.contents.delete(key) : false; + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + deleteIn(path2) { + if (Collection.isEmptyPath(path2)) { + if (this.contents == null) + return false; + this.contents = null; + return true; + } + return assertCollection(this.contents) ? this.contents.deleteIn(path2) : false; + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + get(key, keepScalar) { + return identity2.isCollection(this.contents) ? this.contents.get(key, keepScalar) : void 0; + } + /** + * Returns item at `path`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path2, keepScalar) { + if (Collection.isEmptyPath(path2)) + return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents; + return identity2.isCollection(this.contents) ? this.contents.getIn(path2, keepScalar) : void 0; + } + /** + * Checks if the document includes a value with the key `key`. + */ + has(key) { + return identity2.isCollection(this.contents) ? this.contents.has(key) : false; + } + /** + * Checks if the document includes a value at `path`. + */ + hasIn(path2) { + if (Collection.isEmptyPath(path2)) + return this.contents !== void 0; + return identity2.isCollection(this.contents) ? this.contents.hasIn(path2) : false; + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + set(key, value) { + if (this.contents == null) { + this.contents = Collection.collectionFromPath(this.schema, [key], value); + } else if (assertCollection(this.contents)) { + this.contents.set(key, value); + } + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path2, value) { + if (Collection.isEmptyPath(path2)) { + this.contents = value; + } else if (this.contents == null) { + this.contents = Collection.collectionFromPath(this.schema, Array.from(path2), value); + } else if (assertCollection(this.contents)) { + this.contents.setIn(path2, value); + } + } + /** + * Change the YAML version and schema used by the document. + * A `null` version disables support for directives, explicit tags, anchors, and aliases. + * It also requires the `schema` option to be given as a `Schema` instance value. + * + * Overrides all previously set schema options. + */ + setSchema(version, options2 = {}) { + if (typeof version === "number") + version = String(version); + let opt; + switch (version) { + case "1.1": + if (this.directives) + this.directives.yaml.version = "1.1"; + else + this.directives = new directives.Directives({ version: "1.1" }); + opt = { merge: true, resolveKnownTags: false, schema: "yaml-1.1" }; + break; + case "1.2": + case "next": + if (this.directives) + this.directives.yaml.version = version; + else + this.directives = new directives.Directives({ version }); + opt = { merge: false, resolveKnownTags: true, schema: "core" }; + break; + case null: + if (this.directives) + delete this.directives; + opt = null; + break; + default: { + const sv = JSON.stringify(version); + throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`); + } + } + if (options2.schema instanceof Object) + this.schema = options2.schema; + else if (opt) + this.schema = new Schema.Schema(Object.assign(opt, options2)); + else + throw new Error(`With a null YAML version, the { schema: Schema } option is required`); + } + // json & jsonArg are only used from toJSON() + toJS({ json: json2, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { + const ctx = { + anchors: /* @__PURE__ */ new Map(), + doc: this, + keep: !json2, + mapAsMap: mapAsMap === true, + mapKeyWarned: false, + maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100 + }; + const res = toJS.toJS(this.contents, jsonArg ?? "", ctx); + if (typeof onAnchor === "function") + for (const { count, res: res2 } of ctx.anchors.values()) + onAnchor(res2, count); + return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res; + } + /** + * A JSON representation of the document `contents`. + * + * @param jsonArg Used by `JSON.stringify` to indicate the array index or + * property name. + */ + toJSON(jsonArg, onAnchor) { + return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor }); + } + /** A YAML representation of the document. */ + toString(options2 = {}) { + if (this.errors.length > 0) + throw new Error("Document with errors cannot be stringified"); + if ("indent" in options2 && (!Number.isInteger(options2.indent) || Number(options2.indent) <= 0)) { + const s3 = JSON.stringify(options2.indent); + throw new Error(`"indent" option must be a positive integer, not ${s3}`); + } + return stringifyDocument.stringifyDocument(this, options2); + } + }; + function assertCollection(contents) { + if (identity2.isCollection(contents)) + return true; + throw new Error("Expected a YAML collection as document contents"); + } + exports2.Document = Document; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/errors.js +var require_errors = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/errors.js"(exports2) { + "use strict"; + var YAMLError2 = class extends Error { + constructor(name, pos, code, message) { + super(); + this.name = name; + this.code = code; + this.message = message; + this.pos = pos; + } + }; + var YAMLParseError = class extends YAMLError2 { + constructor(pos, code, message) { + super("YAMLParseError", pos, code, message); + } + }; + var YAMLWarning = class extends YAMLError2 { + constructor(pos, code, message) { + super("YAMLWarning", pos, code, message); + } + }; + var prettifyError = (src, lc) => (error) => { + if (error.pos[0] === -1) + return; + error.linePos = error.pos.map((pos) => lc.linePos(pos)); + const { line, col } = error.linePos[0]; + error.message += ` at line ${line}, column ${col}`; + let ci = col - 1; + let lineStr = src.substring(lc.lineStarts[line - 1], lc.lineStarts[line]).replace(/[\n\r]+$/, ""); + if (ci >= 60 && lineStr.length > 80) { + const trimStart = Math.min(ci - 39, lineStr.length - 79); + lineStr = "\u2026" + lineStr.substring(trimStart); + ci -= trimStart - 1; + } + if (lineStr.length > 80) + lineStr = lineStr.substring(0, 79) + "\u2026"; + if (line > 1 && /^ *$/.test(lineStr.substring(0, ci))) { + let prev = src.substring(lc.lineStarts[line - 2], lc.lineStarts[line - 1]); + if (prev.length > 80) + prev = prev.substring(0, 79) + "\u2026\n"; + lineStr = prev + lineStr; + } + if (/[^ ]/.test(lineStr)) { + let count = 1; + const end = error.linePos[1]; + if (end && end.line === line && end.col > col) { + count = Math.max(1, Math.min(end.col - col, 80 - ci)); + } + const pointer = " ".repeat(ci) + "^".repeat(count); + error.message += `: + +${lineStr} +${pointer} +`; + } + }; + exports2.YAMLError = YAMLError2; + exports2.YAMLParseError = YAMLParseError; + exports2.YAMLWarning = YAMLWarning; + exports2.prettifyError = prettifyError; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-props.js +var require_resolve_props = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-props.js"(exports2) { + "use strict"; + function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) { + let spaceBefore = false; + let atNewline = startOnNewline; + let hasSpace = startOnNewline; + let comment = ""; + let commentSep = ""; + let hasNewline = false; + let hasNewlineAfterProp = false; + let reqSpace = false; + let anchor = null; + let tag = null; + let comma = null; + let found = null; + let start = null; + for (const token of tokens) { + if (reqSpace) { + if (token.type !== "space" && token.type !== "newline" && token.type !== "comma") + onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"); + reqSpace = false; + } + switch (token.type) { + case "space": + if (!flow && atNewline && indicator !== "doc-start" && token.source[0] === " ") + onError(token, "TAB_AS_INDENT", "Tabs are not allowed as indentation"); + hasSpace = true; + break; + case "comment": { + if (!hasSpace) + onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"); + const cb = token.source.substring(1) || " "; + if (!comment) + comment = cb; + else + comment += commentSep + cb; + commentSep = ""; + atNewline = false; + break; + } + case "newline": + if (atNewline) { + if (comment) + comment += token.source; + else + spaceBefore = true; + } else + commentSep += token.source; + atNewline = true; + hasNewline = true; + if (anchor || tag) + hasNewlineAfterProp = true; + hasSpace = true; + break; + case "anchor": + if (anchor) + onError(token, "MULTIPLE_ANCHORS", "A node can have at most one anchor"); + if (token.source.endsWith(":")) + onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true); + anchor = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + case "tag": { + if (tag) + onError(token, "MULTIPLE_TAGS", "A node can have at most one tag"); + tag = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + } + case indicator: + if (anchor || tag) + onError(token, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token.source} indicator`); + if (found) + onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`); + found = token; + atNewline = false; + hasSpace = false; + break; + case "comma": + if (flow) { + if (comma) + onError(token, "UNEXPECTED_TOKEN", `Unexpected , in ${flow}`); + comma = token; + atNewline = false; + hasSpace = false; + break; + } + default: + onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.type} token`); + atNewline = false; + hasSpace = false; + } + } + const last2 = tokens[tokens.length - 1]; + const end = last2 ? last2.offset + last2.source.length : offset; + if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) + onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"); + return { + comma, + found, + spaceBefore, + comment, + hasNewline, + hasNewlineAfterProp, + anchor, + tag, + end, + start: start ?? end + }; + } + exports2.resolveProps = resolveProps; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-contains-newline.js +var require_util_contains_newline = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) { + "use strict"; + function containsNewline(key) { + if (!key) + return null; + switch (key.type) { + case "alias": + case "scalar": + case "double-quoted-scalar": + case "single-quoted-scalar": + if (key.source.includes("\n")) + return true; + if (key.end) { + for (const st of key.end) + if (st.type === "newline") + return true; + } + return false; + case "flow-collection": + for (const it of key.items) { + for (const st of it.start) + if (st.type === "newline") + return true; + if (it.sep) { + for (const st of it.sep) + if (st.type === "newline") + return true; + } + if (containsNewline(it.key) || containsNewline(it.value)) + return true; + } + return false; + default: + return true; + } + } + exports2.containsNewline = containsNewline; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-flow-indent-check.js +var require_util_flow_indent_check = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) { + "use strict"; + var utilContainsNewline = require_util_contains_newline(); + function flowIndentCheck(indent, fc, onError) { + if ((fc == null ? void 0 : fc.type) === "flow-collection") { + const end = fc.end[0]; + if (end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc)) { + const msg = "Flow end indicator should be more indented than parent"; + onError(end, "BAD_INDENT", msg, true); + } + } + } + exports2.flowIndentCheck = flowIndentCheck; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-map-includes.js +var require_util_map_includes = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + function mapIncludes(ctx, items, search) { + const { uniqueKeys } = ctx.options; + if (uniqueKeys === false) + return false; + const isEqual2 = typeof uniqueKeys === "function" ? uniqueKeys : (a2, b3) => a2 === b3 || identity2.isScalar(a2) && identity2.isScalar(b3) && a2.value === b3.value && !(a2.value === "<<" && ctx.schema.merge); + return items.some((pair) => isEqual2(pair.key, search)); + } + exports2.mapIncludes = mapIncludes; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-map.js +var require_resolve_block_map = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) { + "use strict"; + var Pair = require_Pair(); + var YAMLMap = require_YAMLMap(); + var resolveProps = require_resolve_props(); + var utilContainsNewline = require_util_contains_newline(); + var utilFlowIndentCheck = require_util_flow_indent_check(); + var utilMapIncludes = require_util_map_includes(); + var startColMsg = "All mapping items must start at the same column"; + function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode }, ctx, bm, onError, tag) { + var _a2; + const NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? YAMLMap.YAMLMap; + const map2 = new NodeClass(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bm.offset; + let commentEnd = null; + for (const collItem of bm.items) { + const { start, key, sep: sep2, value } = collItem; + const keyProps = resolveProps.resolveProps(start, { + indicator: "explicit-key-ind", + next: key ?? (sep2 == null ? void 0 : sep2[0]), + offset, + onError, + startOnNewline: true + }); + const implicitKey = !keyProps.found; + if (implicitKey) { + if (key) { + if (key.type === "block-seq") + onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key"); + else if ("indent" in key && key.indent !== bm.indent) + onError(offset, "BAD_INDENT", startColMsg); + } + if (!keyProps.anchor && !keyProps.tag && !sep2) { + commentEnd = keyProps.end; + if (keyProps.comment) { + if (map2.comment) + map2.comment += "\n" + keyProps.comment; + else + map2.comment = keyProps.comment; + } + continue; + } + if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) { + onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line"); + } + } else if (((_a2 = keyProps.found) == null ? void 0 : _a2.indent) !== bm.indent) { + onError(offset, "BAD_INDENT", startColMsg); + } + const keyStart = keyProps.end; + const keyNode = key ? composeNode2(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError); + if (utilMapIncludes.mapIncludes(ctx, map2.items, keyNode)) + onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique"); + const valueProps = resolveProps.resolveProps(sep2 ?? [], { + indicator: "map-value-ind", + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: !key || key.type === "block-scalar" + }); + offset = valueProps.end; + if (valueProps.found) { + if (implicitKey) { + if ((value == null ? void 0 : value.type) === "block-map" && !valueProps.hasNewline) + onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"); + if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024) + onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"); + } + const valueNode = value ? composeNode2(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError); + offset = valueNode.range[2]; + const pair = new Pair.Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map2.items.push(pair); + } else { + if (implicitKey) + onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"); + if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += "\n" + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair.Pair(keyNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map2.items.push(pair); + } + } + if (commentEnd && commentEnd < offset) + onError(commentEnd, "IMPOSSIBLE", "Map comment with trailing content"); + map2.range = [bm.offset, offset, commentEnd ?? offset]; + return map2; + } + exports2.resolveBlockMap = resolveBlockMap; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-seq.js +var require_resolve_block_seq = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) { + "use strict"; + var YAMLSeq = require_YAMLSeq(); + var resolveProps = require_resolve_props(); + var utilFlowIndentCheck = require_util_flow_indent_check(); + function resolveBlockSeq({ composeNode: composeNode2, composeEmptyNode }, ctx, bs, onError, tag) { + const NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? YAMLSeq.YAMLSeq; + const seq2 = new NodeClass(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bs.offset; + let commentEnd = null; + for (const { start, value } of bs.items) { + const props = resolveProps.resolveProps(start, { + indicator: "seq-item-ind", + next: value, + offset, + onError, + startOnNewline: true + }); + if (!props.found) { + if (props.anchor || props.tag || value) { + if (value && value.type === "block-seq") + onError(props.end, "BAD_INDENT", "All sequence items must start at the same column"); + else + onError(offset, "MISSING_CHAR", "Sequence item without - indicator"); + } else { + commentEnd = props.end; + if (props.comment) + seq2.comment = props.comment; + continue; + } + } + const node = value ? composeNode2(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError); + offset = node.range[2]; + seq2.items.push(node); + } + seq2.range = [bs.offset, offset, commentEnd ?? offset]; + return seq2; + } + exports2.resolveBlockSeq = resolveBlockSeq; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-end.js +var require_resolve_end = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-end.js"(exports2) { + "use strict"; + function resolveEnd(end, offset, reqSpace, onError) { + let comment = ""; + if (end) { + let hasSpace = false; + let sep2 = ""; + for (const token of end) { + const { source, type: type2 } = token; + switch (type2) { + case "space": + hasSpace = true; + break; + case "comment": { + if (reqSpace && !hasSpace) + onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters"); + const cb = source.substring(1) || " "; + if (!comment) + comment = cb; + else + comment += sep2 + cb; + sep2 = ""; + break; + } + case "newline": + if (comment) + sep2 += source; + hasSpace = true; + break; + default: + onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type2} at node end`); + } + offset += source.length; + } + } + return { comment, offset }; + } + exports2.resolveEnd = resolveEnd; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-flow-collection.js +var require_resolve_flow_collection = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Pair = require_Pair(); + var YAMLMap = require_YAMLMap(); + var YAMLSeq = require_YAMLSeq(); + var resolveEnd = require_resolve_end(); + var resolveProps = require_resolve_props(); + var utilContainsNewline = require_util_contains_newline(); + var utilMapIncludes = require_util_map_includes(); + var blockMsg = "Block collections are not allowed within flow collections"; + var isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq"); + function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode }, ctx, fc, onError, tag) { + const isMap2 = fc.start.source === "{"; + const fcName = isMap2 ? "flow map" : "flow sequence"; + const NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? (isMap2 ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq); + const coll = new NodeClass(ctx.schema); + coll.flow = true; + const atRoot = ctx.atRoot; + if (atRoot) + ctx.atRoot = false; + let offset = fc.offset + fc.start.source.length; + for (let i3 = 0; i3 < fc.items.length; ++i3) { + const collItem = fc.items[i3]; + const { start, key, sep: sep2, value } = collItem; + const props = resolveProps.resolveProps(start, { + flow: fcName, + indicator: "explicit-key-ind", + next: key ?? (sep2 == null ? void 0 : sep2[0]), + offset, + onError, + startOnNewline: false + }); + if (!props.found) { + if (!props.anchor && !props.tag && !sep2 && !value) { + if (i3 === 0 && props.comma) + onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`); + else if (i3 < fc.items.length - 1) + onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`); + if (props.comment) { + if (coll.comment) + coll.comment += "\n" + props.comment; + else + coll.comment = props.comment; + } + offset = props.end; + continue; + } + if (!isMap2 && ctx.options.strict && utilContainsNewline.containsNewline(key)) + onError( + key, + // checked by containsNewline() + "MULTILINE_IMPLICIT_KEY", + "Implicit keys of flow sequence pairs need to be on a single line" + ); + } + if (i3 === 0) { + if (props.comma) + onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`); + } else { + if (!props.comma) + onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`); + if (props.comment) { + let prevItemComment = ""; + loop: + for (const st of start) { + switch (st.type) { + case "comma": + case "space": + break; + case "comment": + prevItemComment = st.source.substring(1); + break loop; + default: + break loop; + } + } + if (prevItemComment) { + let prev = coll.items[coll.items.length - 1]; + if (identity2.isPair(prev)) + prev = prev.value ?? prev.key; + if (prev.comment) + prev.comment += "\n" + prevItemComment; + else + prev.comment = prevItemComment; + props.comment = props.comment.substring(prevItemComment.length + 1); + } + } + } + if (!isMap2 && !sep2 && !props.found) { + const valueNode = value ? composeNode2(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError); + coll.items.push(valueNode); + offset = valueNode.range[2]; + if (isBlock(value)) + onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg); + } else { + const keyStart = props.end; + const keyNode = key ? composeNode2(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError); + if (isBlock(key)) + onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg); + const valueProps = resolveProps.resolveProps(sep2 ?? [], { + flow: fcName, + indicator: "map-value-ind", + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: false + }); + if (valueProps.found) { + if (!isMap2 && !props.found && ctx.options.strict) { + if (sep2) + for (const st of sep2) { + if (st === valueProps.found) + break; + if (st.type === "newline") { + onError(st, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line"); + break; + } + } + if (props.start < valueProps.found.offset - 1024) + onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key"); + } + } else if (value) { + if ("source" in value && value.source && value.source[0] === ":") + onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`); + else + onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`); + } + const valueNode = value ? composeNode2(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null; + if (valueNode) { + if (isBlock(value)) + onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg); + } else if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += "\n" + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair.Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + if (isMap2) { + const map2 = coll; + if (utilMapIncludes.mapIncludes(ctx, map2.items, keyNode)) + onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique"); + map2.items.push(pair); + } else { + const map2 = new YAMLMap.YAMLMap(ctx.schema); + map2.flow = true; + map2.items.push(pair); + coll.items.push(map2); + } + offset = valueNode ? valueNode.range[2] : valueProps.end; + } + } + const expectedEnd = isMap2 ? "}" : "]"; + const [ce, ...ee] = fc.end; + let cePos = offset; + if (ce && ce.source === expectedEnd) + cePos = ce.offset + ce.source.length; + else { + const name = fcName[0].toUpperCase() + fcName.substring(1); + const msg = atRoot ? `${name} must end with a ${expectedEnd}` : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`; + onError(offset, atRoot ? "MISSING_CHAR" : "BAD_INDENT", msg); + if (ce && ce.source.length !== 1) + ee.unshift(ce); + } + if (ee.length > 0) { + const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError); + if (end.comment) { + if (coll.comment) + coll.comment += "\n" + end.comment; + else + coll.comment = end.comment; + } + coll.range = [fc.offset, cePos, end.offset]; + } else { + coll.range = [fc.offset, cePos, cePos]; + } + return coll; + } + exports2.resolveFlowCollection = resolveFlowCollection; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-collection.js +var require_compose_collection = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-collection.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var YAMLMap = require_YAMLMap(); + var YAMLSeq = require_YAMLSeq(); + var resolveBlockMap = require_resolve_block_map(); + var resolveBlockSeq = require_resolve_block_seq(); + var resolveFlowCollection = require_resolve_flow_collection(); + function resolveCollection(CN, ctx, token, onError, tagName, tag) { + const coll = token.type === "block-map" ? resolveBlockMap.resolveBlockMap(CN, ctx, token, onError, tag) : token.type === "block-seq" ? resolveBlockSeq.resolveBlockSeq(CN, ctx, token, onError, tag) : resolveFlowCollection.resolveFlowCollection(CN, ctx, token, onError, tag); + const Coll = coll.constructor; + if (tagName === "!" || tagName === Coll.tagName) { + coll.tag = Coll.tagName; + return coll; + } + if (tagName) + coll.tag = tagName; + return coll; + } + function composeCollection(CN, ctx, token, tagToken, onError) { + var _a2; + const tagName = !tagToken ? null : ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)); + const expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq"; + if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq" || !expType) { + return resolveCollection(CN, ctx, token, onError, tagName); + } + let tag = ctx.schema.tags.find((t3) => t3.tag === tagName && t3.collection === expType); + if (!tag) { + const kt = ctx.schema.knownTags[tagName]; + if (kt && kt.collection === expType) { + ctx.schema.tags.push(Object.assign({}, kt, { default: false })); + tag = kt; + } else { + if (kt == null ? void 0 : kt.collection) { + onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true); + } else { + onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true); + } + return resolveCollection(CN, ctx, token, onError, tagName); + } + } + const coll = resolveCollection(CN, ctx, token, onError, tagName, tag); + const res = ((_a2 = tag.resolve) == null ? void 0 : _a2.call(tag, coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options)) ?? coll; + const node = identity2.isNode(res) ? res : new Scalar.Scalar(res); + node.range = coll.range; + node.tag = tagName; + if (tag == null ? void 0 : tag.format) + node.format = tag.format; + return node; + } + exports2.composeCollection = composeCollection; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-scalar.js +var require_resolve_block_scalar = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + function resolveBlockScalar(scalar, strict, onError) { + const start = scalar.offset; + const header = parseBlockScalarHeader(scalar, strict, onError); + if (!header) + return { value: "", type: null, comment: "", range: [start, start, start] }; + const type2 = header.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL; + const lines = scalar.source ? splitLines(scalar.source) : []; + let chompStart = lines.length; + for (let i3 = lines.length - 1; i3 >= 0; --i3) { + const content = lines[i3][1]; + if (content === "" || content === "\r") + chompStart = i3; + else + break; + } + if (chompStart === 0) { + const value2 = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : ""; + let end2 = start + header.length; + if (scalar.source) + end2 += scalar.source.length; + return { value: value2, type: type2, comment: header.comment, range: [start, end2, end2] }; + } + let trimIndent = scalar.indent + header.indent; + let offset = scalar.offset + header.length; + let contentStart = 0; + for (let i3 = 0; i3 < chompStart; ++i3) { + const [indent, content] = lines[i3]; + if (content === "" || content === "\r") { + if (header.indent === 0 && indent.length > trimIndent) + trimIndent = indent.length; + } else { + if (indent.length < trimIndent) { + const message = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"; + onError(offset + indent.length, "MISSING_CHAR", message); + } + if (header.indent === 0) + trimIndent = indent.length; + contentStart = i3; + break; + } + offset += indent.length + content.length + 1; + } + for (let i3 = lines.length - 1; i3 >= chompStart; --i3) { + if (lines[i3][0].length > trimIndent) + chompStart = i3 + 1; + } + let value = ""; + let sep2 = ""; + let prevMoreIndented = false; + for (let i3 = 0; i3 < contentStart; ++i3) + value += lines[i3][0].slice(trimIndent) + "\n"; + for (let i3 = contentStart; i3 < chompStart; ++i3) { + let [indent, content] = lines[i3]; + offset += indent.length + content.length + 1; + const crlf = content[content.length - 1] === "\r"; + if (crlf) + content = content.slice(0, -1); + if (content && indent.length < trimIndent) { + const src = header.indent ? "explicit indentation indicator" : "first line"; + const message = `Block scalar lines must not be less indented than their ${src}`; + onError(offset - content.length - (crlf ? 2 : 1), "BAD_INDENT", message); + indent = ""; + } + if (type2 === Scalar.Scalar.BLOCK_LITERAL) { + value += sep2 + indent.slice(trimIndent) + content; + sep2 = "\n"; + } else if (indent.length > trimIndent || content[0] === " ") { + if (sep2 === " ") + sep2 = "\n"; + else if (!prevMoreIndented && sep2 === "\n") + sep2 = "\n\n"; + value += sep2 + indent.slice(trimIndent) + content; + sep2 = "\n"; + prevMoreIndented = true; + } else if (content === "") { + if (sep2 === "\n") + value += "\n"; + else + sep2 = "\n"; + } else { + value += sep2 + content; + sep2 = " "; + prevMoreIndented = false; + } + } + switch (header.chomp) { + case "-": + break; + case "+": + for (let i3 = chompStart; i3 < lines.length; ++i3) + value += "\n" + lines[i3][0].slice(trimIndent); + if (value[value.length - 1] !== "\n") + value += "\n"; + break; + default: + value += "\n"; + } + const end = start + header.length + scalar.source.length; + return { value, type: type2, comment: header.comment, range: [start, end, end] }; + } + function parseBlockScalarHeader({ offset, props }, strict, onError) { + if (props[0].type !== "block-scalar-header") { + onError(props[0], "IMPOSSIBLE", "Block scalar header not found"); + return null; + } + const { source } = props[0]; + const mode = source[0]; + let indent = 0; + let chomp = ""; + let error = -1; + for (let i3 = 1; i3 < source.length; ++i3) { + const ch = source[i3]; + if (!chomp && (ch === "-" || ch === "+")) + chomp = ch; + else { + const n3 = Number(ch); + if (!indent && n3) + indent = n3; + else if (error === -1) + error = offset + i3; + } + } + if (error !== -1) + onError(error, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`); + let hasSpace = false; + let comment = ""; + let length = source.length; + for (let i3 = 1; i3 < props.length; ++i3) { + const token = props[i3]; + switch (token.type) { + case "space": + hasSpace = true; + case "newline": + length += token.source.length; + break; + case "comment": + if (strict && !hasSpace) { + const message = "Comments must be separated from other tokens by white space characters"; + onError(token, "MISSING_CHAR", message); + } + length += token.source.length; + comment = token.source.substring(1); + break; + case "error": + onError(token, "UNEXPECTED_TOKEN", token.message); + length += token.source.length; + break; + default: { + const message = `Unexpected token in block scalar header: ${token.type}`; + onError(token, "UNEXPECTED_TOKEN", message); + const ts = token.source; + if (ts && typeof ts === "string") + length += ts.length; + } + } + } + return { mode, indent, chomp, comment, length }; + } + function splitLines(source) { + const split = source.split(/\n( *)/); + const first = split[0]; + const m3 = first.match(/^( *)/); + const line0 = (m3 == null ? void 0 : m3[1]) ? [m3[1], first.slice(m3[1].length)] : ["", first]; + const lines = [line0]; + for (let i3 = 1; i3 < split.length; i3 += 2) + lines.push([split[i3], split[i3 + 1]]); + return lines; + } + exports2.resolveBlockScalar = resolveBlockScalar; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-flow-scalar.js +var require_resolve_flow_scalar = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) { + "use strict"; + var Scalar = require_Scalar(); + var resolveEnd = require_resolve_end(); + function resolveFlowScalar(scalar, strict, onError) { + const { offset, type: type2, source, end } = scalar; + let _type; + let value; + const _onError = (rel, code, msg) => onError(offset + rel, code, msg); + switch (type2) { + case "scalar": + _type = Scalar.Scalar.PLAIN; + value = plainValue(source, _onError); + break; + case "single-quoted-scalar": + _type = Scalar.Scalar.QUOTE_SINGLE; + value = singleQuotedValue(source, _onError); + break; + case "double-quoted-scalar": + _type = Scalar.Scalar.QUOTE_DOUBLE; + value = doubleQuotedValue(source, _onError); + break; + default: + onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type2}`); + return { + value: "", + type: null, + comment: "", + range: [offset, offset + source.length, offset + source.length] + }; + } + const valueEnd = offset + source.length; + const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError); + return { + value, + type: _type, + comment: re.comment, + range: [offset, valueEnd, re.offset] + }; + } + function plainValue(source, onError) { + let badChar = ""; + switch (source[0]) { + case " ": + badChar = "a tab character"; + break; + case ",": + badChar = "flow indicator character ,"; + break; + case "%": + badChar = "directive indicator character %"; + break; + case "|": + case ">": { + badChar = `block scalar indicator ${source[0]}`; + break; + } + case "@": + case "`": { + badChar = `reserved character ${source[0]}`; + break; + } + } + if (badChar) + onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`); + return foldLines(source); + } + function singleQuotedValue(source, onError) { + if (source[source.length - 1] !== "'" || source.length === 1) + onError(source.length, "MISSING_CHAR", "Missing closing 'quote"); + return foldLines(source.slice(1, -1)).replace(/''/g, "'"); + } + function foldLines(source) { + let first, line; + try { + first = new RegExp("(.*?)(? wsStart ? source.slice(wsStart, i3 + 1) : ch; + } else { + res += ch; + } + } + if (source[source.length - 1] !== '"' || source.length === 1) + onError(source.length, "MISSING_CHAR", 'Missing closing "quote'); + return res; + } + function foldNewline(source, offset) { + let fold = ""; + let ch = source[offset + 1]; + while (ch === " " || ch === " " || ch === "\n" || ch === "\r") { + if (ch === "\r" && source[offset + 2] !== "\n") + break; + if (ch === "\n") + fold += "\n"; + offset += 1; + ch = source[offset + 1]; + } + if (!fold) + fold = " "; + return { fold, offset }; + } + var escapeCodes = { + "0": "\0", + a: "\x07", + b: "\b", + e: "\x1B", + f: "\f", + n: "\n", + r: "\r", + t: " ", + v: "\v", + N: "\x85", + _: "\xA0", + L: "\u2028", + P: "\u2029", + " ": " ", + '"': '"', + "/": "/", + "\\": "\\", + " ": " " + }; + function parseCharCode(source, offset, length, onError) { + const cc = source.substr(offset, length); + const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc); + const code = ok ? parseInt(cc, 16) : NaN; + if (isNaN(code)) { + const raw = source.substr(offset - 2, length + 2); + onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`); + return raw; + } + return String.fromCodePoint(code); + } + exports2.resolveFlowScalar = resolveFlowScalar; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-scalar.js +var require_compose_scalar = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) { + "use strict"; + var identity2 = require_identity(); + var Scalar = require_Scalar(); + var resolveBlockScalar = require_resolve_block_scalar(); + var resolveFlowScalar = require_resolve_flow_scalar(); + function composeScalar(ctx, token, tagToken, onError) { + const { value, type: type2, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(token, ctx.options.strict, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError); + const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null; + const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[identity2.SCALAR]; + let scalar; + try { + const res = tag.resolve(value, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options); + scalar = identity2.isScalar(res) ? res : new Scalar.Scalar(res); + } catch (error) { + const msg = error instanceof Error ? error.message : String(error); + onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg); + scalar = new Scalar.Scalar(value); + } + scalar.range = range2; + scalar.source = value; + if (type2) + scalar.type = type2; + if (tagName) + scalar.tag = tagName; + if (tag.format) + scalar.format = tag.format; + if (comment) + scalar.comment = comment; + return scalar; + } + function findScalarTagByName(schema2, value, tagName, tagToken, onError) { + var _a2; + if (tagName === "!") + return schema2[identity2.SCALAR]; + const matchWithTest = []; + for (const tag of schema2.tags) { + if (!tag.collection && tag.tag === tagName) { + if (tag.default && tag.test) + matchWithTest.push(tag); + else + return tag; + } + } + for (const tag of matchWithTest) + if ((_a2 = tag.test) == null ? void 0 : _a2.test(value)) + return tag; + const kt = schema2.knownTags[tagName]; + if (kt && !kt.collection) { + schema2.tags.push(Object.assign({}, kt, { default: false, test: void 0 })); + return kt; + } + onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str"); + return schema2[identity2.SCALAR]; + } + function findScalarTagByTest({ directives, schema: schema2 }, value, token, onError) { + const tag = schema2.tags.find((tag2) => { + var _a2; + return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value)); + }) || schema2[identity2.SCALAR]; + if (schema2.compat) { + const compat = schema2.compat.find((tag2) => { + var _a2; + return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value)); + }) ?? schema2[identity2.SCALAR]; + if (tag.tag !== compat.tag) { + const ts = directives.tagString(tag.tag); + const cs = directives.tagString(compat.tag); + const msg = `Value may be parsed as either ${ts} or ${cs}`; + onError(token, "TAG_RESOLVE_FAILED", msg, true); + } + } + return tag; + } + exports2.composeScalar = composeScalar; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-empty-scalar-position.js +var require_util_empty_scalar_position = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) { + "use strict"; + function emptyScalarPosition(offset, before, pos) { + if (before) { + if (pos === null) + pos = before.length; + for (let i3 = pos - 1; i3 >= 0; --i3) { + let st = before[i3]; + switch (st.type) { + case "space": + case "comment": + case "newline": + offset -= st.source.length; + continue; + } + st = before[++i3]; + while ((st == null ? void 0 : st.type) === "space") { + offset += st.source.length; + st = before[++i3]; + } + break; + } + } + return offset; + } + exports2.emptyScalarPosition = emptyScalarPosition; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-node.js +var require_compose_node = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-node.js"(exports2) { + "use strict"; + var Alias = require_Alias(); + var composeCollection = require_compose_collection(); + var composeScalar = require_compose_scalar(); + var resolveEnd = require_resolve_end(); + var utilEmptyScalarPosition = require_util_empty_scalar_position(); + var CN = { composeNode: composeNode2, composeEmptyNode }; + function composeNode2(ctx, token, props, onError) { + const { spaceBefore, comment, anchor, tag } = props; + let node; + let isSrcToken = true; + switch (token.type) { + case "alias": + node = composeAlias(ctx, token, onError); + if (anchor || tag) + onError(token, "ALIAS_PROPS", "An alias node must not specify any properties"); + break; + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": + case "block-scalar": + node = composeScalar.composeScalar(ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + case "block-map": + case "block-seq": + case "flow-collection": + node = composeCollection.composeCollection(CN, ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + default: { + const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`; + onError(token, "UNEXPECTED_TOKEN", message); + node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError); + isSrcToken = false; + } + } + if (anchor && node.anchor === "") + onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string"); + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + if (token.type === "scalar" && token.source === "") + node.comment = comment; + else + node.commentBefore = comment; + } + if (ctx.options.keepSourceTokens && isSrcToken) + node.srcToken = token; + return node; + } + function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) { + const token = { + type: "scalar", + offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos), + indent: -1, + source: "" + }; + const node = composeScalar.composeScalar(ctx, token, tag, onError); + if (anchor) { + node.anchor = anchor.source.substring(1); + if (node.anchor === "") + onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string"); + } + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + node.comment = comment; + node.range[2] = end; + } + return node; + } + function composeAlias({ options: options2 }, { offset, source, end }, onError) { + const alias = new Alias.Alias(source.substring(1)); + if (alias.source === "") + onError(offset, "BAD_ALIAS", "Alias cannot be an empty string"); + if (alias.source.endsWith(":")) + onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true); + const valueEnd = offset + source.length; + const re = resolveEnd.resolveEnd(end, valueEnd, options2.strict, onError); + alias.range = [offset, valueEnd, re.offset]; + if (re.comment) + alias.comment = re.comment; + return alias; + } + exports2.composeEmptyNode = composeEmptyNode; + exports2.composeNode = composeNode2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-doc.js +var require_compose_doc = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/compose-doc.js"(exports2) { + "use strict"; + var Document = require_Document(); + var composeNode2 = require_compose_node(); + var resolveEnd = require_resolve_end(); + var resolveProps = require_resolve_props(); + function composeDoc(options2, directives, { offset, start, value, end }, onError) { + const opts = Object.assign({ _directives: directives }, options2); + const doc = new Document.Document(void 0, opts); + const ctx = { + atRoot: true, + directives: doc.directives, + options: doc.options, + schema: doc.schema + }; + const props = resolveProps.resolveProps(start, { + indicator: "doc-start", + next: value ?? (end == null ? void 0 : end[0]), + offset, + onError, + startOnNewline: true + }); + if (props.found) { + doc.directives.docStart = true; + if (value && (value.type === "block-map" || value.type === "block-seq") && !props.hasNewline) + onError(props.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker"); + } + doc.contents = value ? composeNode2.composeNode(ctx, value, props, onError) : composeNode2.composeEmptyNode(ctx, props.end, start, null, props, onError); + const contentEnd = doc.contents.range[2]; + const re = resolveEnd.resolveEnd(end, contentEnd, false, onError); + if (re.comment) + doc.comment = re.comment; + doc.range = [offset, contentEnd, re.offset]; + return doc; + } + exports2.composeDoc = composeDoc; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/composer.js +var require_composer = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/compose/composer.js"(exports2) { + "use strict"; + var directives = require_directives(); + var Document = require_Document(); + var errors = require_errors(); + var identity2 = require_identity(); + var composeDoc = require_compose_doc(); + var resolveEnd = require_resolve_end(); + function getErrorPos(src) { + if (typeof src === "number") + return [src, src + 1]; + if (Array.isArray(src)) + return src.length === 2 ? src : [src[0], src[1]]; + const { offset, source } = src; + return [offset, offset + (typeof source === "string" ? source.length : 1)]; + } + function parsePrelude(prelude) { + var _a2; + let comment = ""; + let atComment = false; + let afterEmptyLine = false; + for (let i3 = 0; i3 < prelude.length; ++i3) { + const source = prelude[i3]; + switch (source[0]) { + case "#": + comment += (comment === "" ? "" : afterEmptyLine ? "\n\n" : "\n") + (source.substring(1) || " "); + atComment = true; + afterEmptyLine = false; + break; + case "%": + if (((_a2 = prelude[i3 + 1]) == null ? void 0 : _a2[0]) !== "#") + i3 += 1; + atComment = false; + break; + default: + if (!atComment) + afterEmptyLine = true; + atComment = false; + } + } + return { comment, afterEmptyLine }; + } + var Composer = class { + constructor(options2 = {}) { + this.doc = null; + this.atDirectives = false; + this.prelude = []; + this.errors = []; + this.warnings = []; + this.onError = (source, code, message, warning) => { + const pos = getErrorPos(source); + if (warning) + this.warnings.push(new errors.YAMLWarning(pos, code, message)); + else + this.errors.push(new errors.YAMLParseError(pos, code, message)); + }; + this.directives = new directives.Directives({ version: options2.version || "1.2" }); + this.options = options2; + } + decorate(doc, afterDoc) { + const { comment, afterEmptyLine } = parsePrelude(this.prelude); + if (comment) { + const dc = doc.contents; + if (afterDoc) { + doc.comment = doc.comment ? `${doc.comment} +${comment}` : comment; + } else if (afterEmptyLine || doc.directives.docStart || !dc) { + doc.commentBefore = comment; + } else if (identity2.isCollection(dc) && !dc.flow && dc.items.length > 0) { + let it = dc.items[0]; + if (identity2.isPair(it)) + it = it.key; + const cb = it.commentBefore; + it.commentBefore = cb ? `${comment} +${cb}` : comment; + } else { + const cb = dc.commentBefore; + dc.commentBefore = cb ? `${comment} +${cb}` : comment; + } + } + if (afterDoc) { + Array.prototype.push.apply(doc.errors, this.errors); + Array.prototype.push.apply(doc.warnings, this.warnings); + } else { + doc.errors = this.errors; + doc.warnings = this.warnings; + } + this.prelude = []; + this.errors = []; + this.warnings = []; + } + /** + * Current stream status information. + * + * Mostly useful at the end of input for an empty stream. + */ + streamInfo() { + return { + comment: parsePrelude(this.prelude).comment, + directives: this.directives, + errors: this.errors, + warnings: this.warnings + }; + } + /** + * Compose tokens into documents. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *compose(tokens, forceDoc = false, endOffset = -1) { + for (const token of tokens) + yield* this.next(token); + yield* this.end(forceDoc, endOffset); + } + /** Advance the composer by one CST token. */ + *next(token) { + if (process.env.LOG_STREAM) + console.dir(token, { depth: null }); + switch (token.type) { + case "directive": + this.directives.add(token.source, (offset, message, warning) => { + const pos = getErrorPos(token); + pos[0] += offset; + this.onError(pos, "BAD_DIRECTIVE", message, warning); + }); + this.prelude.push(token.source); + this.atDirectives = true; + break; + case "document": { + const doc = composeDoc.composeDoc(this.options, this.directives, token, this.onError); + if (this.atDirectives && !doc.directives.docStart) + this.onError(token, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"); + this.decorate(doc, false); + if (this.doc) + yield this.doc; + this.doc = doc; + this.atDirectives = false; + break; + } + case "byte-order-mark": + case "space": + break; + case "comment": + case "newline": + this.prelude.push(token.source); + break; + case "error": { + const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message; + const error = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg); + if (this.atDirectives || !this.doc) + this.errors.push(error); + else + this.doc.errors.push(error); + break; + } + case "doc-end": { + if (!this.doc) { + const msg = "Unexpected doc-end without preceding document"; + this.errors.push(new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg)); + break; + } + this.doc.directives.docEnd = true; + const end = resolveEnd.resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError); + this.decorate(this.doc, true); + if (end.comment) { + const dc = this.doc.comment; + this.doc.comment = dc ? `${dc} +${end.comment}` : end.comment; + } + this.doc.range[2] = end.offset; + break; + } + default: + this.errors.push(new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`)); + } + } + /** + * Call at end of input to yield any remaining document. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *end(forceDoc = false, endOffset = -1) { + if (this.doc) { + this.decorate(this.doc, true); + yield this.doc; + this.doc = null; + } else if (forceDoc) { + const opts = Object.assign({ _directives: this.directives }, this.options); + const doc = new Document.Document(void 0, opts); + if (this.atDirectives) + this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line"); + doc.range = [0, endOffset, endOffset]; + this.decorate(doc, false); + yield doc; + } + } + }; + exports2.Composer = Composer; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-scalar.js +var require_cst_scalar = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) { + "use strict"; + var resolveBlockScalar = require_resolve_block_scalar(); + var resolveFlowScalar = require_resolve_flow_scalar(); + var errors = require_errors(); + var stringifyString = require_stringifyString(); + function resolveAsScalar(token, strict = true, onError) { + if (token) { + const _onError = (pos, code, message) => { + const offset = typeof pos === "number" ? pos : Array.isArray(pos) ? pos[0] : pos.offset; + if (onError) + onError(offset, code, message); + else + throw new errors.YAMLParseError([offset, offset + 1], code, message); + }; + switch (token.type) { + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": + return resolveFlowScalar.resolveFlowScalar(token, strict, _onError); + case "block-scalar": + return resolveBlockScalar.resolveBlockScalar(token, strict, _onError); + } + } + return null; + } + function createScalarToken(value, context) { + const { implicitKey = false, indent, inFlow = false, offset = -1, type: type2 = "PLAIN" } = context; + const source = stringifyString.stringifyString({ type: type2, value }, { + implicitKey, + indent: indent > 0 ? " ".repeat(indent) : "", + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + const end = context.end ?? [ + { type: "newline", offset: -1, indent, source: "\n" } + ]; + switch (source[0]) { + case "|": + case ">": { + const he = source.indexOf("\n"); + const head = source.substring(0, he); + const body = source.substring(he + 1) + "\n"; + const props = [ + { type: "block-scalar-header", offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, end)) + props.push({ type: "newline", offset: -1, indent, source: "\n" }); + return { type: "block-scalar", offset, indent, props, source: body }; + } + case '"': + return { type: "double-quoted-scalar", offset, indent, source, end }; + case "'": + return { type: "single-quoted-scalar", offset, indent, source, end }; + default: + return { type: "scalar", offset, indent, source, end }; + } + } + function setScalarValue(token, value, context = {}) { + let { afterKey = false, implicitKey = false, inFlow = false, type: type2 } = context; + let indent = "indent" in token ? token.indent : null; + if (afterKey && typeof indent === "number") + indent += 2; + if (!type2) + switch (token.type) { + case "single-quoted-scalar": + type2 = "QUOTE_SINGLE"; + break; + case "double-quoted-scalar": + type2 = "QUOTE_DOUBLE"; + break; + case "block-scalar": { + const header = token.props[0]; + if (header.type !== "block-scalar-header") + throw new Error("Invalid block scalar header"); + type2 = header.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL"; + break; + } + default: + type2 = "PLAIN"; + } + const source = stringifyString.stringifyString({ type: type2, value }, { + implicitKey: implicitKey || indent === null, + indent: indent !== null && indent > 0 ? " ".repeat(indent) : "", + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + switch (source[0]) { + case "|": + case ">": + setBlockScalarValue(token, source); + break; + case '"': + setFlowScalarValue(token, source, "double-quoted-scalar"); + break; + case "'": + setFlowScalarValue(token, source, "single-quoted-scalar"); + break; + default: + setFlowScalarValue(token, source, "scalar"); + } + } + function setBlockScalarValue(token, source) { + const he = source.indexOf("\n"); + const head = source.substring(0, he); + const body = source.substring(he + 1) + "\n"; + if (token.type === "block-scalar") { + const header = token.props[0]; + if (header.type !== "block-scalar-header") + throw new Error("Invalid block scalar header"); + header.source = head; + token.source = body; + } else { + const { offset } = token; + const indent = "indent" in token ? token.indent : -1; + const props = [ + { type: "block-scalar-header", offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, "end" in token ? token.end : void 0)) + props.push({ type: "newline", offset: -1, indent, source: "\n" }); + for (const key of Object.keys(token)) + if (key !== "type" && key !== "offset") + delete token[key]; + Object.assign(token, { type: "block-scalar", indent, props, source: body }); + } + } + function addEndtoBlockProps(props, end) { + if (end) + for (const st of end) + switch (st.type) { + case "space": + case "comment": + props.push(st); + break; + case "newline": + props.push(st); + return true; + } + return false; + } + function setFlowScalarValue(token, source, type2) { + switch (token.type) { + case "scalar": + case "double-quoted-scalar": + case "single-quoted-scalar": + token.type = type2; + token.source = source; + break; + case "block-scalar": { + const end = token.props.slice(1); + let oa = source.length; + if (token.props[0].type === "block-scalar-header") + oa -= token.props[0].source.length; + for (const tok of end) + tok.offset += oa; + delete token.props; + Object.assign(token, { type: type2, source, end }); + break; + } + case "block-map": + case "block-seq": { + const offset = token.offset + source.length; + const nl = { type: "newline", offset, indent: token.indent, source: "\n" }; + delete token.items; + Object.assign(token, { type: type2, source, end: [nl] }); + break; + } + default: { + const indent = "indent" in token ? token.indent : -1; + const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st) => st.type === "space" || st.type === "comment" || st.type === "newline") : []; + for (const key of Object.keys(token)) + if (key !== "type" && key !== "offset") + delete token[key]; + Object.assign(token, { type: type2, indent, source, end }); + } + } + } + exports2.createScalarToken = createScalarToken; + exports2.resolveAsScalar = resolveAsScalar; + exports2.setScalarValue = setScalarValue; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-stringify.js +var require_cst_stringify = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) { + "use strict"; + var stringify3 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst); + function stringifyToken(token) { + switch (token.type) { + case "block-scalar": { + let res = ""; + for (const tok of token.props) + res += stringifyToken(tok); + return res + token.source; + } + case "block-map": + case "block-seq": { + let res = ""; + for (const item of token.items) + res += stringifyItem(item); + return res; + } + case "flow-collection": { + let res = token.start.source; + for (const item of token.items) + res += stringifyItem(item); + for (const st of token.end) + res += st.source; + return res; + } + case "document": { + let res = stringifyItem(token); + if (token.end) + for (const st of token.end) + res += st.source; + return res; + } + default: { + let res = token.source; + if ("end" in token && token.end) + for (const st of token.end) + res += st.source; + return res; + } + } + } + function stringifyItem({ start, key, sep: sep2, value }) { + let res = ""; + for (const st of start) + res += st.source; + if (key) + res += stringifyToken(key); + if (sep2) + for (const st of sep2) + res += st.source; + if (value) + res += stringifyToken(value); + return res; + } + exports2.stringify = stringify3; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-visit.js +var require_cst_visit = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst-visit.js"(exports2) { + "use strict"; + var BREAK = Symbol("break visit"); + var SKIP = Symbol("skip children"); + var REMOVE = Symbol("remove item"); + function visit(cst, visitor) { + if ("type" in cst && cst.type === "document") + cst = { start: cst.start, value: cst.value }; + _visit(Object.freeze([]), cst, visitor); + } + visit.BREAK = BREAK; + visit.SKIP = SKIP; + visit.REMOVE = REMOVE; + visit.itemAtPath = (cst, path2) => { + let item = cst; + for (const [field, index] of path2) { + const tok = item == null ? void 0 : item[field]; + if (tok && "items" in tok) { + item = tok.items[index]; + } else + return void 0; + } + return item; + }; + visit.parentCollection = (cst, path2) => { + const parent2 = visit.itemAtPath(cst, path2.slice(0, -1)); + const field = path2[path2.length - 1][0]; + const coll = parent2 == null ? void 0 : parent2[field]; + if (coll && "items" in coll) + return coll; + throw new Error("Parent collection not found"); + }; + function _visit(path2, item, visitor) { + let ctrl = visitor(item, path2); + if (typeof ctrl === "symbol") + return ctrl; + for (const field of ["key", "value"]) { + const token = item[field]; + if (token && "items" in token) { + for (let i3 = 0; i3 < token.items.length; ++i3) { + const ci = _visit(Object.freeze(path2.concat([[field, i3]])), token.items[i3], visitor); + if (typeof ci === "number") + i3 = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + token.items.splice(i3, 1); + i3 -= 1; + } + } + if (typeof ctrl === "function" && field === "key") + ctrl = ctrl(item, path2); + } + } + return typeof ctrl === "function" ? ctrl(item, path2) : ctrl; + } + exports2.visit = visit; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst.js +var require_cst = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/cst.js"(exports2) { + "use strict"; + var cstScalar = require_cst_scalar(); + var cstStringify = require_cst_stringify(); + var cstVisit = require_cst_visit(); + var BOM = "\uFEFF"; + var DOCUMENT = ""; + var FLOW_END = ""; + var SCALAR = ""; + var isCollection = (token) => !!token && "items" in token; + var isScalar = (token) => !!token && (token.type === "scalar" || token.type === "single-quoted-scalar" || token.type === "double-quoted-scalar" || token.type === "block-scalar"); + function prettyToken(token) { + switch (token) { + case BOM: + return ""; + case DOCUMENT: + return ""; + case FLOW_END: + return ""; + case SCALAR: + return ""; + default: + return JSON.stringify(token); + } + } + function tokenType(source) { + switch (source) { + case BOM: + return "byte-order-mark"; + case DOCUMENT: + return "doc-mode"; + case FLOW_END: + return "flow-error-end"; + case SCALAR: + return "scalar"; + case "---": + return "doc-start"; + case "...": + return "doc-end"; + case "": + case "\n": + case "\r\n": + return "newline"; + case "-": + return "seq-item-ind"; + case "?": + return "explicit-key-ind"; + case ":": + return "map-value-ind"; + case "{": + return "flow-map-start"; + case "}": + return "flow-map-end"; + case "[": + return "flow-seq-start"; + case "]": + return "flow-seq-end"; + case ",": + return "comma"; + } + switch (source[0]) { + case " ": + case " ": + return "space"; + case "#": + return "comment"; + case "%": + return "directive-line"; + case "*": + return "alias"; + case "&": + return "anchor"; + case "!": + return "tag"; + case "'": + return "single-quoted-scalar"; + case '"': + return "double-quoted-scalar"; + case "|": + case ">": + return "block-scalar-header"; + } + return null; + } + exports2.createScalarToken = cstScalar.createScalarToken; + exports2.resolveAsScalar = cstScalar.resolveAsScalar; + exports2.setScalarValue = cstScalar.setScalarValue; + exports2.stringify = cstStringify.stringify; + exports2.visit = cstVisit.visit; + exports2.BOM = BOM; + exports2.DOCUMENT = DOCUMENT; + exports2.FLOW_END = FLOW_END; + exports2.SCALAR = SCALAR; + exports2.isCollection = isCollection; + exports2.isScalar = isScalar; + exports2.prettyToken = prettyToken; + exports2.tokenType = tokenType; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/lexer.js +var require_lexer = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/lexer.js"(exports2) { + "use strict"; + var cst = require_cst(); + function isEmpty(ch) { + switch (ch) { + case void 0: + case " ": + case "\n": + case "\r": + case " ": + return true; + default: + return false; + } + } + var hexDigits = "0123456789ABCDEFabcdef".split(""); + var tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""); + var invalidFlowScalarChars = ",[]{}".split(""); + var invalidAnchorChars = " ,[]{}\n\r ".split(""); + var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch); + var Lexer = class { + constructor() { + this.atEnd = false; + this.blockScalarIndent = -1; + this.blockScalarKeep = false; + this.buffer = ""; + this.flowKey = false; + this.flowLevel = 0; + this.indentNext = 0; + this.indentValue = 0; + this.lineEndPos = null; + this.next = null; + this.pos = 0; + } + /** + * Generate YAML tokens from the `source` string. If `incomplete`, + * a part of the last line may be left as a buffer for the next call. + * + * @returns A generator of lexical tokens + */ + *lex(source, incomplete = false) { + if (source) { + this.buffer = this.buffer ? this.buffer + source : source; + this.lineEndPos = null; + } + this.atEnd = !incomplete; + let next = this.next ?? "stream"; + while (next && (incomplete || this.hasChars(1))) + next = yield* this.parseNext(next); + } + atLineEnd() { + let i3 = this.pos; + let ch = this.buffer[i3]; + while (ch === " " || ch === " ") + ch = this.buffer[++i3]; + if (!ch || ch === "#" || ch === "\n") + return true; + if (ch === "\r") + return this.buffer[i3 + 1] === "\n"; + return false; + } + charAt(n3) { + return this.buffer[this.pos + n3]; + } + continueScalar(offset) { + let ch = this.buffer[offset]; + if (this.indentNext > 0) { + let indent = 0; + while (ch === " ") + ch = this.buffer[++indent + offset]; + if (ch === "\r") { + const next = this.buffer[indent + offset + 1]; + if (next === "\n" || !next && !this.atEnd) + return offset + indent + 1; + } + return ch === "\n" || indent >= this.indentNext || !ch && !this.atEnd ? offset + indent : -1; + } + if (ch === "-" || ch === ".") { + const dt = this.buffer.substr(offset, 3); + if ((dt === "---" || dt === "...") && isEmpty(this.buffer[offset + 3])) + return -1; + } + return offset; + } + getLine() { + let end = this.lineEndPos; + if (typeof end !== "number" || end !== -1 && end < this.pos) { + end = this.buffer.indexOf("\n", this.pos); + this.lineEndPos = end; + } + if (end === -1) + return this.atEnd ? this.buffer.substring(this.pos) : null; + if (this.buffer[end - 1] === "\r") + end -= 1; + return this.buffer.substring(this.pos, end); + } + hasChars(n3) { + return this.pos + n3 <= this.buffer.length; + } + setNext(state) { + this.buffer = this.buffer.substring(this.pos); + this.pos = 0; + this.lineEndPos = null; + this.next = state; + return null; + } + peek(n3) { + return this.buffer.substr(this.pos, n3); + } + *parseNext(next) { + switch (next) { + case "stream": + return yield* this.parseStream(); + case "line-start": + return yield* this.parseLineStart(); + case "block-start": + return yield* this.parseBlockStart(); + case "doc": + return yield* this.parseDocument(); + case "flow": + return yield* this.parseFlowCollection(); + case "quoted-scalar": + return yield* this.parseQuotedScalar(); + case "block-scalar": + return yield* this.parseBlockScalar(); + case "plain-scalar": + return yield* this.parsePlainScalar(); + } + } + *parseStream() { + let line = this.getLine(); + if (line === null) + return this.setNext("stream"); + if (line[0] === cst.BOM) { + yield* this.pushCount(1); + line = line.substring(1); + } + if (line[0] === "%") { + let dirEnd = line.length; + const cs = line.indexOf("#"); + if (cs !== -1) { + const ch = line[cs - 1]; + if (ch === " " || ch === " ") + dirEnd = cs - 1; + } + while (true) { + const ch = line[dirEnd - 1]; + if (ch === " " || ch === " ") + dirEnd -= 1; + else + break; + } + const n3 = (yield* this.pushCount(dirEnd)) + (yield* this.pushSpaces(true)); + yield* this.pushCount(line.length - n3); + this.pushNewline(); + return "stream"; + } + if (this.atLineEnd()) { + const sp = yield* this.pushSpaces(true); + yield* this.pushCount(line.length - sp); + yield* this.pushNewline(); + return "stream"; + } + yield cst.DOCUMENT; + return yield* this.parseLineStart(); + } + *parseLineStart() { + const ch = this.charAt(0); + if (!ch && !this.atEnd) + return this.setNext("line-start"); + if (ch === "-" || ch === ".") { + if (!this.atEnd && !this.hasChars(4)) + return this.setNext("line-start"); + const s3 = this.peek(3); + if (s3 === "---" && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + this.indentValue = 0; + this.indentNext = 0; + return "doc"; + } else if (s3 === "..." && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + return "stream"; + } + } + this.indentValue = yield* this.pushSpaces(false); + if (this.indentNext > this.indentValue && !isEmpty(this.charAt(1))) + this.indentNext = this.indentValue; + return yield* this.parseBlockStart(); + } + *parseBlockStart() { + const [ch0, ch1] = this.peek(2); + if (!ch1 && !this.atEnd) + return this.setNext("block-start"); + if ((ch0 === "-" || ch0 === "?" || ch0 === ":") && isEmpty(ch1)) { + const n3 = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)); + this.indentNext = this.indentValue + 1; + this.indentValue += n3; + return yield* this.parseBlockStart(); + } + return "doc"; + } + *parseDocument() { + yield* this.pushSpaces(true); + const line = this.getLine(); + if (line === null) + return this.setNext("doc"); + let n3 = yield* this.pushIndicators(); + switch (line[n3]) { + case "#": + yield* this.pushCount(line.length - n3); + case void 0: + yield* this.pushNewline(); + return yield* this.parseLineStart(); + case "{": + case "[": + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel = 1; + return "flow"; + case "}": + case "]": + yield* this.pushCount(1); + return "doc"; + case "*": + yield* this.pushUntil(isNotAnchorChar); + return "doc"; + case '"': + case "'": + return yield* this.parseQuotedScalar(); + case "|": + case ">": + n3 += yield* this.parseBlockScalarHeader(); + n3 += yield* this.pushSpaces(true); + yield* this.pushCount(line.length - n3); + yield* this.pushNewline(); + return yield* this.parseBlockScalar(); + default: + return yield* this.parsePlainScalar(); + } + } + *parseFlowCollection() { + let nl, sp; + let indent = -1; + do { + nl = yield* this.pushNewline(); + if (nl > 0) { + sp = yield* this.pushSpaces(false); + this.indentValue = indent = sp; + } else { + sp = 0; + } + sp += yield* this.pushSpaces(true); + } while (nl + sp > 0); + const line = this.getLine(); + if (line === null) + return this.setNext("flow"); + if (indent !== -1 && indent < this.indentNext && line[0] !== "#" || indent === 0 && (line.startsWith("---") || line.startsWith("...")) && isEmpty(line[3])) { + const atFlowEndMarker = indent === this.indentNext - 1 && this.flowLevel === 1 && (line[0] === "]" || line[0] === "}"); + if (!atFlowEndMarker) { + this.flowLevel = 0; + yield cst.FLOW_END; + return yield* this.parseLineStart(); + } + } + let n3 = 0; + while (line[n3] === ",") { + n3 += yield* this.pushCount(1); + n3 += yield* this.pushSpaces(true); + this.flowKey = false; + } + n3 += yield* this.pushIndicators(); + switch (line[n3]) { + case void 0: + return "flow"; + case "#": + yield* this.pushCount(line.length - n3); + return "flow"; + case "{": + case "[": + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel += 1; + return "flow"; + case "}": + case "]": + yield* this.pushCount(1); + this.flowKey = true; + this.flowLevel -= 1; + return this.flowLevel ? "flow" : "doc"; + case "*": + yield* this.pushUntil(isNotAnchorChar); + return "flow"; + case '"': + case "'": + this.flowKey = true; + return yield* this.parseQuotedScalar(); + case ":": { + const next = this.charAt(1); + if (this.flowKey || isEmpty(next) || next === ",") { + this.flowKey = false; + yield* this.pushCount(1); + yield* this.pushSpaces(true); + return "flow"; + } + } + default: + this.flowKey = false; + return yield* this.parsePlainScalar(); + } + } + *parseQuotedScalar() { + const quote = this.charAt(0); + let end = this.buffer.indexOf(quote, this.pos + 1); + if (quote === "'") { + while (end !== -1 && this.buffer[end + 1] === "'") + end = this.buffer.indexOf("'", end + 2); + } else { + while (end !== -1) { + let n3 = 0; + while (this.buffer[end - 1 - n3] === "\\") + n3 += 1; + if (n3 % 2 === 0) + break; + end = this.buffer.indexOf('"', end + 1); + } + } + const qb = this.buffer.substring(0, end); + let nl = qb.indexOf("\n", this.pos); + if (nl !== -1) { + while (nl !== -1) { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = qb.indexOf("\n", cs); + } + if (nl !== -1) { + end = nl - (qb[nl - 1] === "\r" ? 2 : 1); + } + } + if (end === -1) { + if (!this.atEnd) + return this.setNext("quoted-scalar"); + end = this.buffer.length; + } + yield* this.pushToIndex(end + 1, false); + return this.flowLevel ? "flow" : "doc"; + } + *parseBlockScalarHeader() { + this.blockScalarIndent = -1; + this.blockScalarKeep = false; + let i3 = this.pos; + while (true) { + const ch = this.buffer[++i3]; + if (ch === "+") + this.blockScalarKeep = true; + else if (ch > "0" && ch <= "9") + this.blockScalarIndent = Number(ch) - 1; + else if (ch !== "-") + break; + } + return yield* this.pushUntil((ch) => isEmpty(ch) || ch === "#"); + } + *parseBlockScalar() { + let nl = this.pos - 1; + let indent = 0; + let ch; + loop: + for (let i3 = this.pos; ch = this.buffer[i3]; ++i3) { + switch (ch) { + case " ": + indent += 1; + break; + case "\n": + nl = i3; + indent = 0; + break; + case "\r": { + const next = this.buffer[i3 + 1]; + if (!next && !this.atEnd) + return this.setNext("block-scalar"); + if (next === "\n") + break; + } + default: + break loop; + } + } + if (!ch && !this.atEnd) + return this.setNext("block-scalar"); + if (indent >= this.indentNext) { + if (this.blockScalarIndent === -1) + this.indentNext = indent; + else + this.indentNext += this.blockScalarIndent; + do { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = this.buffer.indexOf("\n", cs); + } while (nl !== -1); + if (nl === -1) { + if (!this.atEnd) + return this.setNext("block-scalar"); + nl = this.buffer.length; + } + } + if (!this.blockScalarKeep) { + do { + let i3 = nl - 1; + let ch2 = this.buffer[i3]; + if (ch2 === "\r") + ch2 = this.buffer[--i3]; + const lastChar = i3; + while (ch2 === " " || ch2 === " ") + ch2 = this.buffer[--i3]; + if (ch2 === "\n" && i3 >= this.pos && i3 + 1 + indent > lastChar) + nl = i3; + else + break; + } while (true); + } + yield cst.SCALAR; + yield* this.pushToIndex(nl + 1, true); + return yield* this.parseLineStart(); + } + *parsePlainScalar() { + const inFlow = this.flowLevel > 0; + let end = this.pos - 1; + let i3 = this.pos - 1; + let ch; + while (ch = this.buffer[++i3]) { + if (ch === ":") { + const next = this.buffer[i3 + 1]; + if (isEmpty(next) || inFlow && next === ",") + break; + end = i3; + } else if (isEmpty(ch)) { + let next = this.buffer[i3 + 1]; + if (ch === "\r") { + if (next === "\n") { + i3 += 1; + ch = "\n"; + next = this.buffer[i3 + 1]; + } else + end = i3; + } + if (next === "#" || inFlow && invalidFlowScalarChars.includes(next)) + break; + if (ch === "\n") { + const cs = this.continueScalar(i3 + 1); + if (cs === -1) + break; + i3 = Math.max(i3, cs - 2); + } + } else { + if (inFlow && invalidFlowScalarChars.includes(ch)) + break; + end = i3; + } + } + if (!ch && !this.atEnd) + return this.setNext("plain-scalar"); + yield cst.SCALAR; + yield* this.pushToIndex(end + 1, true); + return inFlow ? "flow" : "doc"; + } + *pushCount(n3) { + if (n3 > 0) { + yield this.buffer.substr(this.pos, n3); + this.pos += n3; + return n3; + } + return 0; + } + *pushToIndex(i3, allowEmpty) { + const s3 = this.buffer.slice(this.pos, i3); + if (s3) { + yield s3; + this.pos += s3.length; + return s3.length; + } else if (allowEmpty) + yield ""; + return 0; + } + *pushIndicators() { + switch (this.charAt(0)) { + case "!": + return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators()); + case "&": + return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators()); + case "-": + case "?": + case ":": { + const inFlow = this.flowLevel > 0; + const ch1 = this.charAt(1); + if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) { + if (!inFlow) + this.indentNext = this.indentValue + 1; + else if (this.flowKey) + this.flowKey = false; + return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators()); + } + } + } + return 0; + } + *pushTag() { + if (this.charAt(1) === "<") { + let i3 = this.pos + 2; + let ch = this.buffer[i3]; + while (!isEmpty(ch) && ch !== ">") + ch = this.buffer[++i3]; + return yield* this.pushToIndex(ch === ">" ? i3 + 1 : i3, false); + } else { + let i3 = this.pos + 1; + let ch = this.buffer[i3]; + while (ch) { + if (tagChars.includes(ch)) + ch = this.buffer[++i3]; + else if (ch === "%" && hexDigits.includes(this.buffer[i3 + 1]) && hexDigits.includes(this.buffer[i3 + 2])) { + ch = this.buffer[i3 += 3]; + } else + break; + } + return yield* this.pushToIndex(i3, false); + } + } + *pushNewline() { + const ch = this.buffer[this.pos]; + if (ch === "\n") + return yield* this.pushCount(1); + else if (ch === "\r" && this.charAt(1) === "\n") + return yield* this.pushCount(2); + else + return 0; + } + *pushSpaces(allowTabs) { + let i3 = this.pos - 1; + let ch; + do { + ch = this.buffer[++i3]; + } while (ch === " " || allowTabs && ch === " "); + const n3 = i3 - this.pos; + if (n3 > 0) { + yield this.buffer.substr(this.pos, n3); + this.pos = i3; + } + return n3; + } + *pushUntil(test) { + let i3 = this.pos; + let ch = this.buffer[i3]; + while (!test(ch)) + ch = this.buffer[++i3]; + return yield* this.pushToIndex(i3, false); + } + }; + exports2.Lexer = Lexer; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/line-counter.js +var require_line_counter = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/line-counter.js"(exports2) { + "use strict"; + var LineCounter = class { + constructor() { + this.lineStarts = []; + this.addNewLine = (offset) => this.lineStarts.push(offset); + this.linePos = (offset) => { + let low = 0; + let high = this.lineStarts.length; + while (low < high) { + const mid = low + high >> 1; + if (this.lineStarts[mid] < offset) + low = mid + 1; + else + high = mid; + } + if (this.lineStarts[low] === offset) + return { line: low + 1, col: 1 }; + if (low === 0) + return { line: 0, col: offset }; + const start = this.lineStarts[low - 1]; + return { line: low, col: offset - start + 1 }; + }; + } + }; + exports2.LineCounter = LineCounter; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/parser.js +var require_parser = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/parse/parser.js"(exports2) { + "use strict"; + var cst = require_cst(); + var lexer = require_lexer(); + function includesToken(list, type2) { + for (let i3 = 0; i3 < list.length; ++i3) + if (list[i3].type === type2) + return true; + return false; + } + function findNonEmptyIndex(list) { + for (let i3 = 0; i3 < list.length; ++i3) { + switch (list[i3].type) { + case "space": + case "comment": + case "newline": + break; + default: + return i3; + } + } + return -1; + } + function isFlowToken(token) { + switch (token == null ? void 0 : token.type) { + case "alias": + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": + case "flow-collection": + return true; + default: + return false; + } + } + function getPrevProps(parent2) { + switch (parent2.type) { + case "document": + return parent2.start; + case "block-map": { + const it = parent2.items[parent2.items.length - 1]; + return it.sep ?? it.start; + } + case "block-seq": + return parent2.items[parent2.items.length - 1].start; + default: + return []; + } + } + function getFirstKeyStartProps(prev) { + var _a2; + if (prev.length === 0) + return []; + let i3 = prev.length; + loop: + while (--i3 >= 0) { + switch (prev[i3].type) { + case "doc-start": + case "explicit-key-ind": + case "map-value-ind": + case "seq-item-ind": + case "newline": + break loop; + } + } + while (((_a2 = prev[++i3]) == null ? void 0 : _a2.type) === "space") { + } + return prev.splice(i3, prev.length); + } + function fixFlowSeqItems(fc) { + if (fc.start.type === "flow-seq-start") { + for (const it of fc.items) { + if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) { + if (it.key) + it.value = it.key; + delete it.key; + if (isFlowToken(it.value)) { + if (it.value.end) + Array.prototype.push.apply(it.value.end, it.sep); + else + it.value.end = it.sep; + } else + Array.prototype.push.apply(it.start, it.sep); + delete it.sep; + } + } + } + } + var Parser2 = class { + /** + * @param onNewLine - If defined, called separately with the start position of + * each new line (in `parse()`, including the start of input). + */ + constructor(onNewLine) { + this.atNewLine = true; + this.atScalar = false; + this.indent = 0; + this.offset = 0; + this.onKeyLine = false; + this.stack = []; + this.source = ""; + this.type = ""; + this.lexer = new lexer.Lexer(); + this.onNewLine = onNewLine; + } + /** + * Parse `source` as a YAML stream. + * If `incomplete`, a part of the last line may be left as a buffer for the next call. + * + * Errors are not thrown, but yielded as `{ type: 'error', message }` tokens. + * + * @returns A generator of tokens representing each directive, document, and other structure. + */ + *parse(source, incomplete = false) { + if (this.onNewLine && this.offset === 0) + this.onNewLine(0); + for (const lexeme of this.lexer.lex(source, incomplete)) + yield* this.next(lexeme); + if (!incomplete) + yield* this.end(); + } + /** + * Advance the parser by the `source` of one lexical token. + */ + *next(source) { + this.source = source; + if (process.env.LOG_TOKENS) + console.log("|", cst.prettyToken(source)); + if (this.atScalar) { + this.atScalar = false; + yield* this.step(); + this.offset += source.length; + return; + } + const type2 = cst.tokenType(source); + if (!type2) { + const message = `Not a YAML token: ${source}`; + yield* this.pop({ type: "error", offset: this.offset, message, source }); + this.offset += source.length; + } else if (type2 === "scalar") { + this.atNewLine = false; + this.atScalar = true; + this.type = "scalar"; + } else { + this.type = type2; + yield* this.step(); + switch (type2) { + case "newline": + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) + this.onNewLine(this.offset + source.length); + break; + case "space": + if (this.atNewLine && source[0] === " ") + this.indent += source.length; + break; + case "explicit-key-ind": + case "map-value-ind": + case "seq-item-ind": + if (this.atNewLine) + this.indent += source.length; + break; + case "doc-mode": + case "flow-error-end": + return; + default: + this.atNewLine = false; + } + this.offset += source.length; + } + } + /** Call at end of input to push out any remaining constructions */ + *end() { + while (this.stack.length > 0) + yield* this.pop(); + } + get sourceToken() { + const st = { + type: this.type, + offset: this.offset, + indent: this.indent, + source: this.source + }; + return st; + } + *step() { + const top2 = this.peek(1); + if (this.type === "doc-end" && (!top2 || top2.type !== "doc-end")) { + while (this.stack.length > 0) + yield* this.pop(); + this.stack.push({ + type: "doc-end", + offset: this.offset, + source: this.source + }); + return; + } + if (!top2) + return yield* this.stream(); + switch (top2.type) { + case "document": + return yield* this.document(top2); + case "alias": + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": + return yield* this.scalar(top2); + case "block-scalar": + return yield* this.blockScalar(top2); + case "block-map": + return yield* this.blockMap(top2); + case "block-seq": + return yield* this.blockSequence(top2); + case "flow-collection": + return yield* this.flowCollection(top2); + case "doc-end": + return yield* this.documentEnd(top2); + } + yield* this.pop(); + } + peek(n3) { + return this.stack[this.stack.length - n3]; + } + *pop(error) { + const token = error ?? this.stack.pop(); + if (!token) { + const message = "Tried to pop an empty stack"; + yield { type: "error", offset: this.offset, source: "", message }; + } else if (this.stack.length === 0) { + yield token; + } else { + const top2 = this.peek(1); + if (token.type === "block-scalar") { + token.indent = "indent" in top2 ? top2.indent : 0; + } else if (token.type === "flow-collection" && top2.type === "document") { + token.indent = 0; + } + if (token.type === "flow-collection") + fixFlowSeqItems(token); + switch (top2.type) { + case "document": + top2.value = token; + break; + case "block-scalar": + top2.props.push(token); + break; + case "block-map": { + const it = top2.items[top2.items.length - 1]; + if (it.value) { + top2.items.push({ start: [], key: token, sep: [] }); + this.onKeyLine = true; + return; + } else if (it.sep) { + it.value = token; + } else { + Object.assign(it, { key: token, sep: [] }); + this.onKeyLine = !includesToken(it.start, "explicit-key-ind"); + return; + } + break; + } + case "block-seq": { + const it = top2.items[top2.items.length - 1]; + if (it.value) + top2.items.push({ start: [], value: token }); + else + it.value = token; + break; + } + case "flow-collection": { + const it = top2.items[top2.items.length - 1]; + if (!it || it.value) + top2.items.push({ start: [], key: token, sep: [] }); + else if (it.sep) + it.value = token; + else + Object.assign(it, { key: token, sep: [] }); + return; + } + default: + yield* this.pop(); + yield* this.pop(token); + } + if ((top2.type === "document" || top2.type === "block-map" || top2.type === "block-seq") && (token.type === "block-map" || token.type === "block-seq")) { + const last2 = token.items[token.items.length - 1]; + if (last2 && !last2.sep && !last2.value && last2.start.length > 0 && findNonEmptyIndex(last2.start) === -1 && (token.indent === 0 || last2.start.every((st) => st.type !== "comment" || st.indent < token.indent))) { + if (top2.type === "document") + top2.end = last2.start; + else + top2.items.push({ start: last2.start }); + token.items.splice(-1, 1); + } + } + } + } + *stream() { + switch (this.type) { + case "directive-line": + yield { type: "directive", offset: this.offset, source: this.source }; + return; + case "byte-order-mark": + case "space": + case "comment": + case "newline": + yield this.sourceToken; + return; + case "doc-mode": + case "doc-start": { + const doc = { + type: "document", + offset: this.offset, + start: [] + }; + if (this.type === "doc-start") + doc.start.push(this.sourceToken); + this.stack.push(doc); + return; + } + } + yield { + type: "error", + offset: this.offset, + message: `Unexpected ${this.type} token in YAML stream`, + source: this.source + }; + } + *document(doc) { + if (doc.value) + return yield* this.lineEnd(doc); + switch (this.type) { + case "doc-start": { + if (findNonEmptyIndex(doc.start) !== -1) { + yield* this.pop(); + yield* this.step(); + } else + doc.start.push(this.sourceToken); + return; + } + case "anchor": + case "tag": + case "space": + case "comment": + case "newline": + doc.start.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(doc); + if (bv) + this.stack.push(bv); + else { + yield { + type: "error", + offset: this.offset, + message: `Unexpected ${this.type} token in YAML document`, + source: this.source + }; + } + } + *scalar(scalar) { + if (this.type === "map-value-ind") { + const prev = getPrevProps(this.peek(2)); + const start = getFirstKeyStartProps(prev); + let sep2; + if (scalar.end) { + sep2 = scalar.end; + sep2.push(this.sourceToken); + delete scalar.end; + } else + sep2 = [this.sourceToken]; + const map2 = { + type: "block-map", + offset: scalar.offset, + indent: scalar.indent, + items: [{ start, key: scalar, sep: sep2 }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map2; + } else + yield* this.lineEnd(scalar); + } + *blockScalar(scalar) { + switch (this.type) { + case "space": + case "comment": + case "newline": + scalar.props.push(this.sourceToken); + return; + case "scalar": + scalar.source = this.source; + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) { + let nl = this.source.indexOf("\n") + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf("\n", nl) + 1; + } + } + yield* this.pop(); + break; + default: + yield* this.pop(); + yield* this.step(); + } + } + *blockMap(map2) { + var _a2; + const it = map2.items[map2.items.length - 1]; + switch (this.type) { + case "newline": + this.onKeyLine = false; + if (it.value) { + const end = "end" in it.value ? it.value.end : void 0; + const last2 = Array.isArray(end) ? end[end.length - 1] : void 0; + if ((last2 == null ? void 0 : last2.type) === "comment") + end == null ? void 0 : end.push(this.sourceToken); + else + map2.items.push({ start: [this.sourceToken] }); + } else if (it.sep) { + it.sep.push(this.sourceToken); + } else { + it.start.push(this.sourceToken); + } + return; + case "space": + case "comment": + if (it.value) { + map2.items.push({ start: [this.sourceToken] }); + } else if (it.sep) { + it.sep.push(this.sourceToken); + } else { + if (this.atIndentedComment(it.start, map2.indent)) { + const prev = map2.items[map2.items.length - 2]; + const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + map2.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + } + if (this.indent >= map2.indent) { + const atNextItem = !this.onKeyLine && this.indent === map2.indent && it.sep; + let start = []; + if (atNextItem && it.sep && !it.value) { + const nl = []; + for (let i3 = 0; i3 < it.sep.length; ++i3) { + const st = it.sep[i3]; + switch (st.type) { + case "newline": + nl.push(i3); + break; + case "space": + break; + case "comment": + if (st.indent > map2.indent) + nl.length = 0; + break; + default: + nl.length = 0; + } + } + if (nl.length >= 2) + start = it.sep.splice(nl[1]); + } + switch (this.type) { + case "anchor": + case "tag": + if (atNextItem || it.value) { + start.push(this.sourceToken); + map2.items.push({ start }); + this.onKeyLine = true; + } else if (it.sep) { + it.sep.push(this.sourceToken); + } else { + it.start.push(this.sourceToken); + } + return; + case "explicit-key-ind": + if (!it.sep && !includesToken(it.start, "explicit-key-ind")) { + it.start.push(this.sourceToken); + } else if (atNextItem || it.value) { + start.push(this.sourceToken); + map2.items.push({ start }); + } else { + this.stack.push({ + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }); + } + this.onKeyLine = true; + return; + case "map-value-ind": + if (includesToken(it.start, "explicit-key-ind")) { + if (!it.sep) { + if (includesToken(it.start, "newline")) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } else { + const start2 = getFirstKeyStartProps(it.start); + this.stack.push({ + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start: start2, key: null, sep: [this.sourceToken] }] + }); + } + } else if (it.value) { + map2.items.push({ start: [], key: null, sep: [this.sourceToken] }); + } else if (includesToken(it.sep, "map-value-ind")) { + this.stack.push({ + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }); + } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) { + const start2 = getFirstKeyStartProps(it.start); + const key = it.key; + const sep2 = it.sep; + sep2.push(this.sourceToken); + delete it.key, delete it.sep; + this.stack.push({ + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start: start2, key, sep: sep2 }] + }); + } else if (start.length > 0) { + it.sep = it.sep.concat(start, this.sourceToken); + } else { + it.sep.push(this.sourceToken); + } + } else { + if (!it.sep) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } else if (it.value || atNextItem) { + map2.items.push({ start, key: null, sep: [this.sourceToken] }); + } else if (includesToken(it.sep, "map-value-ind")) { + this.stack.push({ + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start: [], key: null, sep: [this.sourceToken] }] + }); + } else { + it.sep.push(this.sourceToken); + } + } + this.onKeyLine = true; + return; + case "alias": + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": { + const fs = this.flowScalar(this.type); + if (atNextItem || it.value) { + map2.items.push({ start, key: fs, sep: [] }); + this.onKeyLine = true; + } else if (it.sep) { + this.stack.push(fs); + } else { + Object.assign(it, { key: fs, sep: [] }); + this.onKeyLine = true; + } + return; + } + default: { + const bv = this.startBlockValue(map2); + if (bv) { + if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) { + map2.items.push({ start }); + } + this.stack.push(bv); + return; + } + } + } + } + yield* this.pop(); + yield* this.step(); + } + *blockSequence(seq2) { + var _a2; + const it = seq2.items[seq2.items.length - 1]; + switch (this.type) { + case "newline": + if (it.value) { + const end = "end" in it.value ? it.value.end : void 0; + const last2 = Array.isArray(end) ? end[end.length - 1] : void 0; + if ((last2 == null ? void 0 : last2.type) === "comment") + end == null ? void 0 : end.push(this.sourceToken); + else + seq2.items.push({ start: [this.sourceToken] }); + } else + it.start.push(this.sourceToken); + return; + case "space": + case "comment": + if (it.value) + seq2.items.push({ start: [this.sourceToken] }); + else { + if (this.atIndentedComment(it.start, seq2.indent)) { + const prev = seq2.items[seq2.items.length - 2]; + const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + seq2.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + case "anchor": + case "tag": + if (it.value || this.indent <= seq2.indent) + break; + it.start.push(this.sourceToken); + return; + case "seq-item-ind": + if (this.indent !== seq2.indent) + break; + if (it.value || includesToken(it.start, "seq-item-ind")) + seq2.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + } + if (this.indent > seq2.indent) { + const bv = this.startBlockValue(seq2); + if (bv) { + this.stack.push(bv); + return; + } + } + yield* this.pop(); + yield* this.step(); + } + *flowCollection(fc) { + const it = fc.items[fc.items.length - 1]; + if (this.type === "flow-error-end") { + let top2; + do { + yield* this.pop(); + top2 = this.peek(1); + } while (top2 && top2.type === "flow-collection"); + } else if (fc.end.length === 0) { + switch (this.type) { + case "comma": + case "explicit-key-ind": + if (!it || it.sep) + fc.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + case "map-value-ind": + if (!it || it.value) + fc.items.push({ start: [], key: null, sep: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + Object.assign(it, { key: null, sep: [this.sourceToken] }); + return; + case "space": + case "comment": + case "newline": + case "anchor": + case "tag": + if (!it || it.value) + fc.items.push({ start: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + it.start.push(this.sourceToken); + return; + case "alias": + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": { + const fs = this.flowScalar(this.type); + if (!it || it.value) + fc.items.push({ start: [], key: fs, sep: [] }); + else if (it.sep) + this.stack.push(fs); + else + Object.assign(it, { key: fs, sep: [] }); + return; + } + case "flow-map-end": + case "flow-seq-end": + fc.end.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(fc); + if (bv) + this.stack.push(bv); + else { + yield* this.pop(); + yield* this.step(); + } + } else { + const parent2 = this.peek(2); + if (parent2.type === "block-map" && (this.type === "map-value-ind" && parent2.indent === fc.indent || this.type === "newline" && !parent2.items[parent2.items.length - 1].sep)) { + yield* this.pop(); + yield* this.step(); + } else if (this.type === "map-value-ind" && parent2.type !== "flow-collection") { + const prev = getPrevProps(parent2); + const start = getFirstKeyStartProps(prev); + fixFlowSeqItems(fc); + const sep2 = fc.end.splice(1, fc.end.length); + sep2.push(this.sourceToken); + const map2 = { + type: "block-map", + offset: fc.offset, + indent: fc.indent, + items: [{ start, key: fc, sep: sep2 }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map2; + } else { + yield* this.lineEnd(fc); + } + } + } + flowScalar(type2) { + if (this.onNewLine) { + let nl = this.source.indexOf("\n") + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf("\n", nl) + 1; + } + } + return { + type: type2, + offset: this.offset, + indent: this.indent, + source: this.source + }; + } + startBlockValue(parent2) { + switch (this.type) { + case "alias": + case "scalar": + case "single-quoted-scalar": + case "double-quoted-scalar": + return this.flowScalar(this.type); + case "block-scalar-header": + return { + type: "block-scalar", + offset: this.offset, + indent: this.indent, + props: [this.sourceToken], + source: "" + }; + case "flow-map-start": + case "flow-seq-start": + return { + type: "flow-collection", + offset: this.offset, + indent: this.indent, + start: this.sourceToken, + items: [], + end: [] + }; + case "seq-item-ind": + return { + type: "block-seq", + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }; + case "explicit-key-ind": { + this.onKeyLine = true; + const prev = getPrevProps(parent2); + const start = getFirstKeyStartProps(prev); + start.push(this.sourceToken); + return { + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start }] + }; + } + case "map-value-ind": { + this.onKeyLine = true; + const prev = getPrevProps(parent2); + const start = getFirstKeyStartProps(prev); + return { + type: "block-map", + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }; + } + } + return null; + } + atIndentedComment(start, indent) { + if (this.type !== "comment") + return false; + if (this.indent <= indent) + return false; + return start.every((st) => st.type === "newline" || st.type === "space"); + } + *documentEnd(docEnd) { + if (this.type !== "doc-mode") { + if (docEnd.end) + docEnd.end.push(this.sourceToken); + else + docEnd.end = [this.sourceToken]; + if (this.type === "newline") + yield* this.pop(); + } + } + *lineEnd(token) { + switch (this.type) { + case "comma": + case "doc-start": + case "doc-end": + case "flow-seq-end": + case "flow-map-end": + case "map-value-ind": + yield* this.pop(); + yield* this.step(); + break; + case "newline": + this.onKeyLine = false; + case "space": + case "comment": + default: + if (token.end) + token.end.push(this.sourceToken); + else + token.end = [this.sourceToken]; + if (this.type === "newline") + yield* this.pop(); + } + } + }; + exports2.Parser = Parser2; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/public-api.js +var require_public_api = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/public-api.js"(exports2) { + "use strict"; + var composer = require_composer(); + var Document = require_Document(); + var errors = require_errors(); + var log = require_log(); + var lineCounter = require_line_counter(); + var parser3 = require_parser(); + function parseOptions(options2) { + const prettyErrors = options2.prettyErrors !== false; + const lineCounter$1 = options2.lineCounter || prettyErrors && new lineCounter.LineCounter() || null; + return { lineCounter: lineCounter$1, prettyErrors }; + } + function parseAllDocuments(source, options2 = {}) { + const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2); + const parser$1 = new parser3.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine); + const composer$1 = new composer.Composer(options2); + const docs = Array.from(composer$1.compose(parser$1.parse(source))); + if (prettyErrors && lineCounter2) + for (const doc of docs) { + doc.errors.forEach(errors.prettifyError(source, lineCounter2)); + doc.warnings.forEach(errors.prettifyError(source, lineCounter2)); + } + if (docs.length > 0) + return docs; + return Object.assign([], { empty: true }, composer$1.streamInfo()); + } + function parseDocument(source, options2 = {}) { + const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2); + const parser$1 = new parser3.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine); + const composer$1 = new composer.Composer(options2); + let doc = null; + for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) { + if (!doc) + doc = _doc; + else if (doc.options.logLevel !== "silent") { + doc.errors.push(new errors.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()")); + break; + } + } + if (prettyErrors && lineCounter2) { + doc.errors.forEach(errors.prettifyError(source, lineCounter2)); + doc.warnings.forEach(errors.prettifyError(source, lineCounter2)); + } + return doc; + } + function parse6(src, reviver, options2) { + let _reviver = void 0; + if (typeof reviver === "function") { + _reviver = reviver; + } else if (options2 === void 0 && reviver && typeof reviver === "object") { + options2 = reviver; + } + const doc = parseDocument(src, options2); + if (!doc) + return null; + doc.warnings.forEach((warning) => log.warn(doc.options.logLevel, warning)); + if (doc.errors.length > 0) { + if (doc.options.logLevel !== "silent") + throw doc.errors[0]; + else + doc.errors = []; + } + return doc.toJS(Object.assign({ reviver: _reviver }, options2)); + } + function stringify3(value, replacer, options2) { + let _replacer = null; + if (typeof replacer === "function" || Array.isArray(replacer)) { + _replacer = replacer; + } else if (options2 === void 0 && replacer) { + options2 = replacer; + } + if (typeof options2 === "string") + options2 = options2.length; + if (typeof options2 === "number") { + const indent = Math.round(options2); + options2 = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent }; + } + if (value === void 0) { + const { keepUndefined } = options2 ?? replacer ?? {}; + if (!keepUndefined) + return void 0; + } + return new Document.Document(value, _replacer, options2).toString(options2); + } + exports2.parse = parse6; + exports2.parseAllDocuments = parseAllDocuments; + exports2.parseDocument = parseDocument; + exports2.stringify = stringify3; + } +}); + +// ../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/index.js +var require_dist2 = __commonJS({ + "../../.yarn/cache/yaml-npm-2.3.1-743f5688d1-f33e26b726.zip/node_modules/yaml/dist/index.js"(exports2) { + "use strict"; + var composer = require_composer(); + var Document = require_Document(); + var Schema = require_Schema(); + var errors = require_errors(); + var Alias = require_Alias(); + var identity2 = require_identity(); + var Pair = require_Pair(); + var Scalar = require_Scalar(); + var YAMLMap = require_YAMLMap(); + var YAMLSeq = require_YAMLSeq(); + var cst = require_cst(); + var lexer = require_lexer(); + var lineCounter = require_line_counter(); + var parser3 = require_parser(); + var publicApi = require_public_api(); + var visit = require_visit(); + exports2.Composer = composer.Composer; + exports2.Document = Document.Document; + exports2.Schema = Schema.Schema; + exports2.YAMLError = errors.YAMLError; + exports2.YAMLParseError = errors.YAMLParseError; + exports2.YAMLWarning = errors.YAMLWarning; + exports2.Alias = Alias.Alias; + exports2.isAlias = identity2.isAlias; + exports2.isCollection = identity2.isCollection; + exports2.isDocument = identity2.isDocument; + exports2.isMap = identity2.isMap; + exports2.isNode = identity2.isNode; + exports2.isPair = identity2.isPair; + exports2.isScalar = identity2.isScalar; + exports2.isSeq = identity2.isSeq; + exports2.Pair = Pair.Pair; + exports2.Scalar = Scalar.Scalar; + exports2.YAMLMap = YAMLMap.YAMLMap; + exports2.YAMLSeq = YAMLSeq.YAMLSeq; + exports2.CST = cst; + exports2.Lexer = lexer.Lexer; + exports2.LineCounter = lineCounter.LineCounter; + exports2.Parser = parser3.Parser; + exports2.parse = publicApi.parse; + exports2.parseAllDocuments = publicApi.parseAllDocuments; + exports2.parseDocument = publicApi.parseDocument; + exports2.stringify = publicApi.stringify; + exports2.visit = visit.visit; + exports2.visitAsync = visit.visitAsync; + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/core.js +var require_core = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/core.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(); + } else if (typeof define === "function" && define.amd) { + define([], factory); + } else { + root2.CryptoJS = factory(); + } + })(exports2, function() { + var CryptoJS = CryptoJS || function(Math2, undefined2) { + var crypto3; + if (typeof window !== "undefined" && window.crypto) { + crypto3 = window.crypto; + } + if (typeof self !== "undefined" && self.crypto) { + crypto3 = self.crypto; + } + if (typeof globalThis !== "undefined" && globalThis.crypto) { + crypto3 = globalThis.crypto; + } + if (!crypto3 && typeof window !== "undefined" && window.msCrypto) { + crypto3 = window.msCrypto; + } + if (!crypto3 && typeof global !== "undefined" && global.crypto) { + crypto3 = global.crypto; + } + if (!crypto3 && typeof require === "function") { + try { + crypto3 = require("crypto"); + } catch (err) { + } + } + var cryptoSecureRandomInt = function() { + if (crypto3) { + if (typeof crypto3.getRandomValues === "function") { + try { + return crypto3.getRandomValues(new Uint32Array(1))[0]; + } catch (err) { + } + } + if (typeof crypto3.randomBytes === "function") { + try { + return crypto3.randomBytes(4).readInt32LE(); + } catch (err) { + } + } + } + throw new Error("Native crypto module could not be used to get secure random number."); + }; + var create = Object.create || function() { + function F2() { + } + return function(obj) { + var subtype; + F2.prototype = obj; + subtype = new F2(); + F2.prototype = null; + return subtype; + }; + }(); + var C2 = {}; + var C_lib = C2.lib = {}; + var Base = C_lib.Base = function() { + return { + /** + * Creates a new object that inherits from this object. + * + * @param {Object} overrides Properties to copy into the new object. + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * field: 'value', + * + * method: function () { + * } + * }); + */ + extend: function(overrides) { + var subtype = create(this); + if (overrides) { + subtype.mixIn(overrides); + } + if (!subtype.hasOwnProperty("init") || this.init === subtype.init) { + subtype.init = function() { + subtype.$super.init.apply(this, arguments); + }; + } + subtype.init.prototype = subtype; + subtype.$super = this; + return subtype; + }, + /** + * Extends this object and runs the init method. + * Arguments to create() will be passed to init(). + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var instance = MyType.create(); + */ + create: function() { + var instance = this.extend(); + instance.init.apply(instance, arguments); + return instance; + }, + /** + * Initializes a newly created object. + * Override this method to add some logic when your objects are created. + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * init: function () { + * // ... + * } + * }); + */ + init: function() { + }, + /** + * Copies properties into this object. + * + * @param {Object} properties The properties to mix in. + * + * @example + * + * MyType.mixIn({ + * field: 'value' + * }); + */ + mixIn: function(properties) { + for (var propertyName in properties) { + if (properties.hasOwnProperty(propertyName)) { + this[propertyName] = properties[propertyName]; + } + } + if (properties.hasOwnProperty("toString")) { + this.toString = properties.toString; + } + }, + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = instance.clone(); + */ + clone: function() { + return this.init.prototype.extend(this); + } + }; + }(); + var WordArray = C_lib.WordArray = Base.extend({ + /** + * Initializes a newly created word array. + * + * @param {Array} words (Optional) An array of 32-bit words. + * @param {number} sigBytes (Optional) The number of significant bytes in the words. + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.create(); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); + */ + init: function(words, sigBytes) { + words = this.words = words || []; + if (sigBytes != undefined2) { + this.sigBytes = sigBytes; + } else { + this.sigBytes = words.length * 4; + } + }, + /** + * Converts this word array to a string. + * + * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex + * + * @return {string} The stringified word array. + * + * @example + * + * var string = wordArray + ''; + * var string = wordArray.toString(); + * var string = wordArray.toString(CryptoJS.enc.Utf8); + */ + toString: function(encoder) { + return (encoder || Hex).stringify(this); + }, + /** + * Concatenates a word array to this word array. + * + * @param {WordArray} wordArray The word array to append. + * + * @return {WordArray} This word array. + * + * @example + * + * wordArray1.concat(wordArray2); + */ + concat: function(wordArray) { + var thisWords = this.words; + var thatWords = wordArray.words; + var thisSigBytes = this.sigBytes; + var thatSigBytes = wordArray.sigBytes; + this.clamp(); + if (thisSigBytes % 4) { + for (var i3 = 0; i3 < thatSigBytes; i3++) { + var thatByte = thatWords[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + thisWords[thisSigBytes + i3 >>> 2] |= thatByte << 24 - (thisSigBytes + i3) % 4 * 8; + } + } else { + for (var j3 = 0; j3 < thatSigBytes; j3 += 4) { + thisWords[thisSigBytes + j3 >>> 2] = thatWords[j3 >>> 2]; + } + } + this.sigBytes += thatSigBytes; + return this; + }, + /** + * Removes insignificant bits. + * + * @example + * + * wordArray.clamp(); + */ + clamp: function() { + var words = this.words; + var sigBytes = this.sigBytes; + words[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8; + words.length = Math2.ceil(sigBytes / 4); + }, + /** + * Creates a copy of this word array. + * + * @return {WordArray} The clone. + * + * @example + * + * var clone = wordArray.clone(); + */ + clone: function() { + var clone = Base.clone.call(this); + clone.words = this.words.slice(0); + return clone; + }, + /** + * Creates a word array filled with random bytes. + * + * @param {number} nBytes The number of random bytes to generate. + * + * @return {WordArray} The random word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.random(16); + */ + random: function(nBytes) { + var words = []; + for (var i3 = 0; i3 < nBytes; i3 += 4) { + words.push(cryptoSecureRandomInt()); + } + return new WordArray.init(words, nBytes); + } + }); + var C_enc = C2.enc = {}; + var Hex = C_enc.Hex = { + /** + * Converts a word array to a hex string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The hex string. + * + * @static + * + * @example + * + * var hexString = CryptoJS.enc.Hex.stringify(wordArray); + */ + stringify: function(wordArray) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var hexChars = []; + for (var i3 = 0; i3 < sigBytes; i3++) { + var bite = words[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + hexChars.push((bite >>> 4).toString(16)); + hexChars.push((bite & 15).toString(16)); + } + return hexChars.join(""); + }, + /** + * Converts a hex string to a word array. + * + * @param {string} hexStr The hex string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Hex.parse(hexString); + */ + parse: function(hexStr) { + var hexStrLength = hexStr.length; + var words = []; + for (var i3 = 0; i3 < hexStrLength; i3 += 2) { + words[i3 >>> 3] |= parseInt(hexStr.substr(i3, 2), 16) << 24 - i3 % 8 * 4; + } + return new WordArray.init(words, hexStrLength / 2); + } + }; + var Latin1 = C_enc.Latin1 = { + /** + * Converts a word array to a Latin1 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The Latin1 string. + * + * @static + * + * @example + * + * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); + */ + stringify: function(wordArray) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var latin1Chars = []; + for (var i3 = 0; i3 < sigBytes; i3++) { + var bite = words[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + latin1Chars.push(String.fromCharCode(bite)); + } + return latin1Chars.join(""); + }, + /** + * Converts a Latin1 string to a word array. + * + * @param {string} latin1Str The Latin1 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); + */ + parse: function(latin1Str) { + var latin1StrLength = latin1Str.length; + var words = []; + for (var i3 = 0; i3 < latin1StrLength; i3++) { + words[i3 >>> 2] |= (latin1Str.charCodeAt(i3) & 255) << 24 - i3 % 4 * 8; + } + return new WordArray.init(words, latin1StrLength); + } + }; + var Utf8 = C_enc.Utf8 = { + /** + * Converts a word array to a UTF-8 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-8 string. + * + * @static + * + * @example + * + * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); + */ + stringify: function(wordArray) { + try { + return decodeURIComponent(escape(Latin1.stringify(wordArray))); + } catch (e3) { + throw new Error("Malformed UTF-8 data"); + } + }, + /** + * Converts a UTF-8 string to a word array. + * + * @param {string} utf8Str The UTF-8 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); + */ + parse: function(utf8Str) { + return Latin1.parse(unescape(encodeURIComponent(utf8Str))); + } + }; + var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ + /** + * Resets this block algorithm's data buffer to its initial state. + * + * @example + * + * bufferedBlockAlgorithm.reset(); + */ + reset: function() { + this._data = new WordArray.init(); + this._nDataBytes = 0; + }, + /** + * Adds new data to this block algorithm's buffer. + * + * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. + * + * @example + * + * bufferedBlockAlgorithm._append('data'); + * bufferedBlockAlgorithm._append(wordArray); + */ + _append: function(data) { + if (typeof data == "string") { + data = Utf8.parse(data); + } + this._data.concat(data); + this._nDataBytes += data.sigBytes; + }, + /** + * Processes available data blocks. + * + * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. + * + * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. + * + * @return {WordArray} The processed data. + * + * @example + * + * var processedData = bufferedBlockAlgorithm._process(); + * var processedData = bufferedBlockAlgorithm._process(!!'flush'); + */ + _process: function(doFlush) { + var processedWords; + var data = this._data; + var dataWords = data.words; + var dataSigBytes = data.sigBytes; + var blockSize = this.blockSize; + var blockSizeBytes = blockSize * 4; + var nBlocksReady = dataSigBytes / blockSizeBytes; + if (doFlush) { + nBlocksReady = Math2.ceil(nBlocksReady); + } else { + nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0); + } + var nWordsReady = nBlocksReady * blockSize; + var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes); + if (nWordsReady) { + for (var offset = 0; offset < nWordsReady; offset += blockSize) { + this._doProcessBlock(dataWords, offset); + } + processedWords = dataWords.splice(0, nWordsReady); + data.sigBytes -= nBytesReady; + } + return new WordArray.init(processedWords, nBytesReady); + }, + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = bufferedBlockAlgorithm.clone(); + */ + clone: function() { + var clone = Base.clone.call(this); + clone._data = this._data.clone(); + return clone; + }, + _minBufferSize: 0 + }); + var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ + /** + * Configuration options. + */ + cfg: Base.extend(), + /** + * Initializes a newly created hasher. + * + * @param {Object} cfg (Optional) The configuration options to use for this hash computation. + * + * @example + * + * var hasher = CryptoJS.algo.SHA256.create(); + */ + init: function(cfg) { + this.cfg = this.cfg.extend(cfg); + this.reset(); + }, + /** + * Resets this hasher to its initial state. + * + * @example + * + * hasher.reset(); + */ + reset: function() { + BufferedBlockAlgorithm.reset.call(this); + this._doReset(); + }, + /** + * Updates this hasher with a message. + * + * @param {WordArray|string} messageUpdate The message to append. + * + * @return {Hasher} This hasher. + * + * @example + * + * hasher.update('message'); + * hasher.update(wordArray); + */ + update: function(messageUpdate) { + this._append(messageUpdate); + this._process(); + return this; + }, + /** + * Finalizes the hash computation. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} messageUpdate (Optional) A final message update. + * + * @return {WordArray} The hash. + * + * @example + * + * var hash = hasher.finalize(); + * var hash = hasher.finalize('message'); + * var hash = hasher.finalize(wordArray); + */ + finalize: function(messageUpdate) { + if (messageUpdate) { + this._append(messageUpdate); + } + var hash = this._doFinalize(); + return hash; + }, + blockSize: 512 / 32, + /** + * Creates a shortcut function to a hasher's object interface. + * + * @param {Hasher} hasher The hasher to create a helper for. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); + */ + _createHelper: function(hasher) { + return function(message, cfg) { + return new hasher.init(cfg).finalize(message); + }; + }, + /** + * Creates a shortcut function to the HMAC's object interface. + * + * @param {Hasher} hasher The hasher to use in this HMAC helper. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); + */ + _createHmacHelper: function(hasher) { + return function(message, key) { + return new C_algo.HMAC.init(hasher, key).finalize(message); + }; + } + }); + var C_algo = C2.algo = {}; + return C2; + }(Math); + return CryptoJS; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/x64-core.js +var require_x64_core = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/x64-core.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(undefined2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Base = C_lib.Base; + var X32WordArray = C_lib.WordArray; + var C_x64 = C2.x64 = {}; + var X64Word = C_x64.Word = Base.extend({ + /** + * Initializes a newly created 64-bit word. + * + * @param {number} high The high 32 bits. + * @param {number} low The low 32 bits. + * + * @example + * + * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607); + */ + init: function(high, low) { + this.high = high; + this.low = low; + } + /** + * Bitwise NOTs this word. + * + * @return {X64Word} A new x64-Word object after negating. + * + * @example + * + * var negated = x64Word.not(); + */ + // not: function () { + // var high = ~this.high; + // var low = ~this.low; + // return X64Word.create(high, low); + // }, + /** + * Bitwise ANDs this word with the passed word. + * + * @param {X64Word} word The x64-Word to AND with this word. + * + * @return {X64Word} A new x64-Word object after ANDing. + * + * @example + * + * var anded = x64Word.and(anotherX64Word); + */ + // and: function (word) { + // var high = this.high & word.high; + // var low = this.low & word.low; + // return X64Word.create(high, low); + // }, + /** + * Bitwise ORs this word with the passed word. + * + * @param {X64Word} word The x64-Word to OR with this word. + * + * @return {X64Word} A new x64-Word object after ORing. + * + * @example + * + * var ored = x64Word.or(anotherX64Word); + */ + // or: function (word) { + // var high = this.high | word.high; + // var low = this.low | word.low; + // return X64Word.create(high, low); + // }, + /** + * Bitwise XORs this word with the passed word. + * + * @param {X64Word} word The x64-Word to XOR with this word. + * + * @return {X64Word} A new x64-Word object after XORing. + * + * @example + * + * var xored = x64Word.xor(anotherX64Word); + */ + // xor: function (word) { + // var high = this.high ^ word.high; + // var low = this.low ^ word.low; + // return X64Word.create(high, low); + // }, + /** + * Shifts this word n bits to the left. + * + * @param {number} n The number of bits to shift. + * + * @return {X64Word} A new x64-Word object after shifting. + * + * @example + * + * var shifted = x64Word.shiftL(25); + */ + // shiftL: function (n) { + // if (n < 32) { + // var high = (this.high << n) | (this.low >>> (32 - n)); + // var low = this.low << n; + // } else { + // var high = this.low << (n - 32); + // var low = 0; + // } + // return X64Word.create(high, low); + // }, + /** + * Shifts this word n bits to the right. + * + * @param {number} n The number of bits to shift. + * + * @return {X64Word} A new x64-Word object after shifting. + * + * @example + * + * var shifted = x64Word.shiftR(7); + */ + // shiftR: function (n) { + // if (n < 32) { + // var low = (this.low >>> n) | (this.high << (32 - n)); + // var high = this.high >>> n; + // } else { + // var low = this.high >>> (n - 32); + // var high = 0; + // } + // return X64Word.create(high, low); + // }, + /** + * Rotates this word n bits to the left. + * + * @param {number} n The number of bits to rotate. + * + * @return {X64Word} A new x64-Word object after rotating. + * + * @example + * + * var rotated = x64Word.rotL(25); + */ + // rotL: function (n) { + // return this.shiftL(n).or(this.shiftR(64 - n)); + // }, + /** + * Rotates this word n bits to the right. + * + * @param {number} n The number of bits to rotate. + * + * @return {X64Word} A new x64-Word object after rotating. + * + * @example + * + * var rotated = x64Word.rotR(7); + */ + // rotR: function (n) { + // return this.shiftR(n).or(this.shiftL(64 - n)); + // }, + /** + * Adds this word with the passed word. + * + * @param {X64Word} word The x64-Word to add with this word. + * + * @return {X64Word} A new x64-Word object after adding. + * + * @example + * + * var added = x64Word.add(anotherX64Word); + */ + // add: function (word) { + // var low = (this.low + word.low) | 0; + // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0; + // var high = (this.high + word.high + carry) | 0; + // return X64Word.create(high, low); + // } + }); + var X64WordArray = C_x64.WordArray = Base.extend({ + /** + * Initializes a newly created word array. + * + * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects. + * @param {number} sigBytes (Optional) The number of significant bytes in the words. + * + * @example + * + * var wordArray = CryptoJS.x64.WordArray.create(); + * + * var wordArray = CryptoJS.x64.WordArray.create([ + * CryptoJS.x64.Word.create(0x00010203, 0x04050607), + * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) + * ]); + * + * var wordArray = CryptoJS.x64.WordArray.create([ + * CryptoJS.x64.Word.create(0x00010203, 0x04050607), + * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) + * ], 10); + */ + init: function(words, sigBytes) { + words = this.words = words || []; + if (sigBytes != undefined2) { + this.sigBytes = sigBytes; + } else { + this.sigBytes = words.length * 8; + } + }, + /** + * Converts this 64-bit word array to a 32-bit word array. + * + * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array. + * + * @example + * + * var x32WordArray = x64WordArray.toX32(); + */ + toX32: function() { + var x64Words = this.words; + var x64WordsLength = x64Words.length; + var x32Words = []; + for (var i3 = 0; i3 < x64WordsLength; i3++) { + var x64Word = x64Words[i3]; + x32Words.push(x64Word.high); + x32Words.push(x64Word.low); + } + return X32WordArray.create(x32Words, this.sigBytes); + }, + /** + * Creates a copy of this word array. + * + * @return {X64WordArray} The clone. + * + * @example + * + * var clone = x64WordArray.clone(); + */ + clone: function() { + var clone = Base.clone.call(this); + var words = clone.words = this.words.slice(0); + var wordsLength = words.length; + for (var i3 = 0; i3 < wordsLength; i3++) { + words[i3] = words[i3].clone(); + } + return clone; + } + }); + })(); + return CryptoJS; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/lib-typedarrays.js +var require_lib_typedarrays = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/lib-typedarrays.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + if (typeof ArrayBuffer != "function") { + return; + } + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var superInit = WordArray.init; + var subInit = WordArray.init = function(typedArray) { + if (typedArray instanceof ArrayBuffer) { + typedArray = new Uint8Array(typedArray); + } + if (typedArray instanceof Int8Array || typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array) { + typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength); + } + if (typedArray instanceof Uint8Array) { + var typedArrayByteLength = typedArray.byteLength; + var words = []; + for (var i3 = 0; i3 < typedArrayByteLength; i3++) { + words[i3 >>> 2] |= typedArray[i3] << 24 - i3 % 4 * 8; + } + superInit.call(this, words, typedArrayByteLength); + } else { + superInit.apply(this, arguments); + } + }; + subInit.prototype = WordArray; + })(); + return CryptoJS.lib.WordArray; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-utf16.js +var require_enc_utf16 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-utf16.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var C_enc = C2.enc; + var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = { + /** + * Converts a word array to a UTF-16 BE string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-16 BE string. + * + * @static + * + * @example + * + * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray); + */ + stringify: function(wordArray) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var utf16Chars = []; + for (var i3 = 0; i3 < sigBytes; i3 += 2) { + var codePoint = words[i3 >>> 2] >>> 16 - i3 % 4 * 8 & 65535; + utf16Chars.push(String.fromCharCode(codePoint)); + } + return utf16Chars.join(""); + }, + /** + * Converts a UTF-16 BE string to a word array. + * + * @param {string} utf16Str The UTF-16 BE string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf16.parse(utf16String); + */ + parse: function(utf16Str) { + var utf16StrLength = utf16Str.length; + var words = []; + for (var i3 = 0; i3 < utf16StrLength; i3++) { + words[i3 >>> 1] |= utf16Str.charCodeAt(i3) << 16 - i3 % 2 * 16; + } + return WordArray.create(words, utf16StrLength * 2); + } + }; + C_enc.Utf16LE = { + /** + * Converts a word array to a UTF-16 LE string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-16 LE string. + * + * @static + * + * @example + * + * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray); + */ + stringify: function(wordArray) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var utf16Chars = []; + for (var i3 = 0; i3 < sigBytes; i3 += 2) { + var codePoint = swapEndian(words[i3 >>> 2] >>> 16 - i3 % 4 * 8 & 65535); + utf16Chars.push(String.fromCharCode(codePoint)); + } + return utf16Chars.join(""); + }, + /** + * Converts a UTF-16 LE string to a word array. + * + * @param {string} utf16Str The UTF-16 LE string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str); + */ + parse: function(utf16Str) { + var utf16StrLength = utf16Str.length; + var words = []; + for (var i3 = 0; i3 < utf16StrLength; i3++) { + words[i3 >>> 1] |= swapEndian(utf16Str.charCodeAt(i3) << 16 - i3 % 2 * 16); + } + return WordArray.create(words, utf16StrLength * 2); + } + }; + function swapEndian(word) { + return word << 8 & 4278255360 | word >>> 8 & 16711935; + } + })(); + return CryptoJS.enc.Utf16; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-base64.js +var require_enc_base64 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-base64.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var C_enc = C2.enc; + var Base64 = C_enc.Base64 = { + /** + * Converts a word array to a Base64 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The Base64 string. + * + * @static + * + * @example + * + * var base64String = CryptoJS.enc.Base64.stringify(wordArray); + */ + stringify: function(wordArray) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var map2 = this._map; + wordArray.clamp(); + var base64Chars = []; + for (var i3 = 0; i3 < sigBytes; i3 += 3) { + var byte1 = words[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + var byte2 = words[i3 + 1 >>> 2] >>> 24 - (i3 + 1) % 4 * 8 & 255; + var byte3 = words[i3 + 2 >>> 2] >>> 24 - (i3 + 2) % 4 * 8 & 255; + var triplet = byte1 << 16 | byte2 << 8 | byte3; + for (var j3 = 0; j3 < 4 && i3 + j3 * 0.75 < sigBytes; j3++) { + base64Chars.push(map2.charAt(triplet >>> 6 * (3 - j3) & 63)); + } + } + var paddingChar = map2.charAt(64); + if (paddingChar) { + while (base64Chars.length % 4) { + base64Chars.push(paddingChar); + } + } + return base64Chars.join(""); + }, + /** + * Converts a Base64 string to a word array. + * + * @param {string} base64Str The Base64 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Base64.parse(base64String); + */ + parse: function(base64Str) { + var base64StrLength = base64Str.length; + var map2 = this._map; + var reverseMap = this._reverseMap; + if (!reverseMap) { + reverseMap = this._reverseMap = []; + for (var j3 = 0; j3 < map2.length; j3++) { + reverseMap[map2.charCodeAt(j3)] = j3; + } + } + var paddingChar = map2.charAt(64); + if (paddingChar) { + var paddingIndex = base64Str.indexOf(paddingChar); + if (paddingIndex !== -1) { + base64StrLength = paddingIndex; + } + } + return parseLoop(base64Str, base64StrLength, reverseMap); + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" + }; + function parseLoop(base64Str, base64StrLength, reverseMap) { + var words = []; + var nBytes = 0; + for (var i3 = 0; i3 < base64StrLength; i3++) { + if (i3 % 4) { + var bits1 = reverseMap[base64Str.charCodeAt(i3 - 1)] << i3 % 4 * 2; + var bits2 = reverseMap[base64Str.charCodeAt(i3)] >>> 6 - i3 % 4 * 2; + var bitsCombined = bits1 | bits2; + words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8; + nBytes++; + } + } + return WordArray.create(words, nBytes); + } + })(); + return CryptoJS.enc.Base64; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-base64url.js +var require_enc_base64url = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/enc-base64url.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var C_enc = C2.enc; + var Base64url = C_enc.Base64url = { + /** + * Converts a word array to a Base64url string. + * + * @param {WordArray} wordArray The word array. + * + * @param {boolean} urlSafe Whether to use url safe + * + * @return {string} The Base64url string. + * + * @static + * + * @example + * + * var base64String = CryptoJS.enc.Base64url.stringify(wordArray); + */ + stringify: function(wordArray, urlSafe = true) { + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var map2 = urlSafe ? this._safe_map : this._map; + wordArray.clamp(); + var base64Chars = []; + for (var i3 = 0; i3 < sigBytes; i3 += 3) { + var byte1 = words[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + var byte2 = words[i3 + 1 >>> 2] >>> 24 - (i3 + 1) % 4 * 8 & 255; + var byte3 = words[i3 + 2 >>> 2] >>> 24 - (i3 + 2) % 4 * 8 & 255; + var triplet = byte1 << 16 | byte2 << 8 | byte3; + for (var j3 = 0; j3 < 4 && i3 + j3 * 0.75 < sigBytes; j3++) { + base64Chars.push(map2.charAt(triplet >>> 6 * (3 - j3) & 63)); + } + } + var paddingChar = map2.charAt(64); + if (paddingChar) { + while (base64Chars.length % 4) { + base64Chars.push(paddingChar); + } + } + return base64Chars.join(""); + }, + /** + * Converts a Base64url string to a word array. + * + * @param {string} base64Str The Base64url string. + * + * @param {boolean} urlSafe Whether to use url safe + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Base64url.parse(base64String); + */ + parse: function(base64Str, urlSafe = true) { + var base64StrLength = base64Str.length; + var map2 = urlSafe ? this._safe_map : this._map; + var reverseMap = this._reverseMap; + if (!reverseMap) { + reverseMap = this._reverseMap = []; + for (var j3 = 0; j3 < map2.length; j3++) { + reverseMap[map2.charCodeAt(j3)] = j3; + } + } + var paddingChar = map2.charAt(64); + if (paddingChar) { + var paddingIndex = base64Str.indexOf(paddingChar); + if (paddingIndex !== -1) { + base64StrLength = paddingIndex; + } + } + return parseLoop(base64Str, base64StrLength, reverseMap); + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", + _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" + }; + function parseLoop(base64Str, base64StrLength, reverseMap) { + var words = []; + var nBytes = 0; + for (var i3 = 0; i3 < base64StrLength; i3++) { + if (i3 % 4) { + var bits1 = reverseMap[base64Str.charCodeAt(i3 - 1)] << i3 % 4 * 2; + var bits2 = reverseMap[base64Str.charCodeAt(i3)] >>> 6 - i3 % 4 * 2; + var bitsCombined = bits1 | bits2; + words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8; + nBytes++; + } + } + return WordArray.create(words, nBytes); + } + })(); + return CryptoJS.enc.Base64url; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/md5.js +var require_md5 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/md5.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(Math2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C2.algo; + var T3 = []; + (function() { + for (var i3 = 0; i3 < 64; i3++) { + T3[i3] = Math2.abs(Math2.sin(i3 + 1)) * 4294967296 | 0; + } + })(); + var MD52 = C_algo.MD5 = Hasher.extend({ + _doReset: function() { + this._hash = new WordArray.init([ + 1732584193, + 4023233417, + 2562383102, + 271733878 + ]); + }, + _doProcessBlock: function(M2, offset) { + for (var i3 = 0; i3 < 16; i3++) { + var offset_i = offset + i3; + var M_offset_i = M2[offset_i]; + M2[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360; + } + var H2 = this._hash.words; + var M_offset_0 = M2[offset + 0]; + var M_offset_1 = M2[offset + 1]; + var M_offset_2 = M2[offset + 2]; + var M_offset_3 = M2[offset + 3]; + var M_offset_4 = M2[offset + 4]; + var M_offset_5 = M2[offset + 5]; + var M_offset_6 = M2[offset + 6]; + var M_offset_7 = M2[offset + 7]; + var M_offset_8 = M2[offset + 8]; + var M_offset_9 = M2[offset + 9]; + var M_offset_10 = M2[offset + 10]; + var M_offset_11 = M2[offset + 11]; + var M_offset_12 = M2[offset + 12]; + var M_offset_13 = M2[offset + 13]; + var M_offset_14 = M2[offset + 14]; + var M_offset_15 = M2[offset + 15]; + var a2 = H2[0]; + var b3 = H2[1]; + var c3 = H2[2]; + var d3 = H2[3]; + a2 = FF(a2, b3, c3, d3, M_offset_0, 7, T3[0]); + d3 = FF(d3, a2, b3, c3, M_offset_1, 12, T3[1]); + c3 = FF(c3, d3, a2, b3, M_offset_2, 17, T3[2]); + b3 = FF(b3, c3, d3, a2, M_offset_3, 22, T3[3]); + a2 = FF(a2, b3, c3, d3, M_offset_4, 7, T3[4]); + d3 = FF(d3, a2, b3, c3, M_offset_5, 12, T3[5]); + c3 = FF(c3, d3, a2, b3, M_offset_6, 17, T3[6]); + b3 = FF(b3, c3, d3, a2, M_offset_7, 22, T3[7]); + a2 = FF(a2, b3, c3, d3, M_offset_8, 7, T3[8]); + d3 = FF(d3, a2, b3, c3, M_offset_9, 12, T3[9]); + c3 = FF(c3, d3, a2, b3, M_offset_10, 17, T3[10]); + b3 = FF(b3, c3, d3, a2, M_offset_11, 22, T3[11]); + a2 = FF(a2, b3, c3, d3, M_offset_12, 7, T3[12]); + d3 = FF(d3, a2, b3, c3, M_offset_13, 12, T3[13]); + c3 = FF(c3, d3, a2, b3, M_offset_14, 17, T3[14]); + b3 = FF(b3, c3, d3, a2, M_offset_15, 22, T3[15]); + a2 = GG(a2, b3, c3, d3, M_offset_1, 5, T3[16]); + d3 = GG(d3, a2, b3, c3, M_offset_6, 9, T3[17]); + c3 = GG(c3, d3, a2, b3, M_offset_11, 14, T3[18]); + b3 = GG(b3, c3, d3, a2, M_offset_0, 20, T3[19]); + a2 = GG(a2, b3, c3, d3, M_offset_5, 5, T3[20]); + d3 = GG(d3, a2, b3, c3, M_offset_10, 9, T3[21]); + c3 = GG(c3, d3, a2, b3, M_offset_15, 14, T3[22]); + b3 = GG(b3, c3, d3, a2, M_offset_4, 20, T3[23]); + a2 = GG(a2, b3, c3, d3, M_offset_9, 5, T3[24]); + d3 = GG(d3, a2, b3, c3, M_offset_14, 9, T3[25]); + c3 = GG(c3, d3, a2, b3, M_offset_3, 14, T3[26]); + b3 = GG(b3, c3, d3, a2, M_offset_8, 20, T3[27]); + a2 = GG(a2, b3, c3, d3, M_offset_13, 5, T3[28]); + d3 = GG(d3, a2, b3, c3, M_offset_2, 9, T3[29]); + c3 = GG(c3, d3, a2, b3, M_offset_7, 14, T3[30]); + b3 = GG(b3, c3, d3, a2, M_offset_12, 20, T3[31]); + a2 = HH(a2, b3, c3, d3, M_offset_5, 4, T3[32]); + d3 = HH(d3, a2, b3, c3, M_offset_8, 11, T3[33]); + c3 = HH(c3, d3, a2, b3, M_offset_11, 16, T3[34]); + b3 = HH(b3, c3, d3, a2, M_offset_14, 23, T3[35]); + a2 = HH(a2, b3, c3, d3, M_offset_1, 4, T3[36]); + d3 = HH(d3, a2, b3, c3, M_offset_4, 11, T3[37]); + c3 = HH(c3, d3, a2, b3, M_offset_7, 16, T3[38]); + b3 = HH(b3, c3, d3, a2, M_offset_10, 23, T3[39]); + a2 = HH(a2, b3, c3, d3, M_offset_13, 4, T3[40]); + d3 = HH(d3, a2, b3, c3, M_offset_0, 11, T3[41]); + c3 = HH(c3, d3, a2, b3, M_offset_3, 16, T3[42]); + b3 = HH(b3, c3, d3, a2, M_offset_6, 23, T3[43]); + a2 = HH(a2, b3, c3, d3, M_offset_9, 4, T3[44]); + d3 = HH(d3, a2, b3, c3, M_offset_12, 11, T3[45]); + c3 = HH(c3, d3, a2, b3, M_offset_15, 16, T3[46]); + b3 = HH(b3, c3, d3, a2, M_offset_2, 23, T3[47]); + a2 = II(a2, b3, c3, d3, M_offset_0, 6, T3[48]); + d3 = II(d3, a2, b3, c3, M_offset_7, 10, T3[49]); + c3 = II(c3, d3, a2, b3, M_offset_14, 15, T3[50]); + b3 = II(b3, c3, d3, a2, M_offset_5, 21, T3[51]); + a2 = II(a2, b3, c3, d3, M_offset_12, 6, T3[52]); + d3 = II(d3, a2, b3, c3, M_offset_3, 10, T3[53]); + c3 = II(c3, d3, a2, b3, M_offset_10, 15, T3[54]); + b3 = II(b3, c3, d3, a2, M_offset_1, 21, T3[55]); + a2 = II(a2, b3, c3, d3, M_offset_8, 6, T3[56]); + d3 = II(d3, a2, b3, c3, M_offset_15, 10, T3[57]); + c3 = II(c3, d3, a2, b3, M_offset_6, 15, T3[58]); + b3 = II(b3, c3, d3, a2, M_offset_13, 21, T3[59]); + a2 = II(a2, b3, c3, d3, M_offset_4, 6, T3[60]); + d3 = II(d3, a2, b3, c3, M_offset_11, 10, T3[61]); + c3 = II(c3, d3, a2, b3, M_offset_2, 15, T3[62]); + b3 = II(b3, c3, d3, a2, M_offset_9, 21, T3[63]); + H2[0] = H2[0] + a2 | 0; + H2[1] = H2[1] + b3 | 0; + H2[2] = H2[2] + c3 | 0; + H2[3] = H2[3] + d3 | 0; + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; + var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296); + var nBitsTotalL = nBitsTotal; + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360; + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360; + data.sigBytes = (dataWords.length + 1) * 4; + this._process(); + var hash = this._hash; + var H2 = hash.words; + for (var i3 = 0; i3 < 4; i3++) { + var H_i = H2[i3]; + H2[i3] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360; + } + return hash; + }, + clone: function() { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + return clone; + } + }); + function FF(a2, b3, c3, d3, x3, s3, t3) { + var n3 = a2 + (b3 & c3 | ~b3 & d3) + x3 + t3; + return (n3 << s3 | n3 >>> 32 - s3) + b3; + } + function GG(a2, b3, c3, d3, x3, s3, t3) { + var n3 = a2 + (b3 & d3 | c3 & ~d3) + x3 + t3; + return (n3 << s3 | n3 >>> 32 - s3) + b3; + } + function HH(a2, b3, c3, d3, x3, s3, t3) { + var n3 = a2 + (b3 ^ c3 ^ d3) + x3 + t3; + return (n3 << s3 | n3 >>> 32 - s3) + b3; + } + function II(a2, b3, c3, d3, x3, s3, t3) { + var n3 = a2 + (c3 ^ (b3 | ~d3)) + x3 + t3; + return (n3 << s3 | n3 >>> 32 - s3) + b3; + } + C2.MD5 = Hasher._createHelper(MD52); + C2.HmacMD5 = Hasher._createHmacHelper(MD52); + })(Math); + return CryptoJS.MD5; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha1.js +var require_sha1 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha1.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C2.algo; + var W3 = []; + var SHA12 = C_algo.SHA1 = Hasher.extend({ + _doReset: function() { + this._hash = new WordArray.init([ + 1732584193, + 4023233417, + 2562383102, + 271733878, + 3285377520 + ]); + }, + _doProcessBlock: function(M2, offset) { + var H2 = this._hash.words; + var a2 = H2[0]; + var b3 = H2[1]; + var c3 = H2[2]; + var d3 = H2[3]; + var e3 = H2[4]; + for (var i3 = 0; i3 < 80; i3++) { + if (i3 < 16) { + W3[i3] = M2[offset + i3] | 0; + } else { + var n3 = W3[i3 - 3] ^ W3[i3 - 8] ^ W3[i3 - 14] ^ W3[i3 - 16]; + W3[i3] = n3 << 1 | n3 >>> 31; + } + var t3 = (a2 << 5 | a2 >>> 27) + e3 + W3[i3]; + if (i3 < 20) { + t3 += (b3 & c3 | ~b3 & d3) + 1518500249; + } else if (i3 < 40) { + t3 += (b3 ^ c3 ^ d3) + 1859775393; + } else if (i3 < 60) { + t3 += (b3 & c3 | b3 & d3 | c3 & d3) - 1894007588; + } else { + t3 += (b3 ^ c3 ^ d3) - 899497514; + } + e3 = d3; + d3 = c3; + c3 = b3 << 30 | b3 >>> 2; + b3 = a2; + a2 = t3; + } + H2[0] = H2[0] + a2 | 0; + H2[1] = H2[1] + b3 | 0; + H2[2] = H2[2] + c3 | 0; + H2[3] = H2[3] + d3 | 0; + H2[4] = H2[4] + e3 | 0; + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 4294967296); + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + this._process(); + return this._hash; + }, + clone: function() { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + return clone; + } + }); + C2.SHA1 = Hasher._createHelper(SHA12); + C2.HmacSHA1 = Hasher._createHmacHelper(SHA12); + })(); + return CryptoJS.SHA1; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha256.js +var require_sha256 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha256.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(Math2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C2.algo; + var H2 = []; + var K3 = []; + (function() { + function isPrime(n4) { + var sqrtN = Math2.sqrt(n4); + for (var factor = 2; factor <= sqrtN; factor++) { + if (!(n4 % factor)) { + return false; + } + } + return true; + } + function getFractionalBits(n4) { + return (n4 - (n4 | 0)) * 4294967296 | 0; + } + var n3 = 2; + var nPrime = 0; + while (nPrime < 64) { + if (isPrime(n3)) { + if (nPrime < 8) { + H2[nPrime] = getFractionalBits(Math2.pow(n3, 1 / 2)); + } + K3[nPrime] = getFractionalBits(Math2.pow(n3, 1 / 3)); + nPrime++; + } + n3++; + } + })(); + var W3 = []; + var SHA2562 = C_algo.SHA256 = Hasher.extend({ + _doReset: function() { + this._hash = new WordArray.init(H2.slice(0)); + }, + _doProcessBlock: function(M2, offset) { + var H3 = this._hash.words; + var a2 = H3[0]; + var b3 = H3[1]; + var c3 = H3[2]; + var d3 = H3[3]; + var e3 = H3[4]; + var f2 = H3[5]; + var g2 = H3[6]; + var h2 = H3[7]; + for (var i3 = 0; i3 < 64; i3++) { + if (i3 < 16) { + W3[i3] = M2[offset + i3] | 0; + } else { + var gamma0x = W3[i3 - 15]; + var gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3; + var gamma1x = W3[i3 - 2]; + var gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10; + W3[i3] = gamma0 + W3[i3 - 7] + gamma1 + W3[i3 - 16]; + } + var ch = e3 & f2 ^ ~e3 & g2; + var maj = a2 & b3 ^ a2 & c3 ^ b3 & c3; + var sigma0 = (a2 << 30 | a2 >>> 2) ^ (a2 << 19 | a2 >>> 13) ^ (a2 << 10 | a2 >>> 22); + var sigma1 = (e3 << 26 | e3 >>> 6) ^ (e3 << 21 | e3 >>> 11) ^ (e3 << 7 | e3 >>> 25); + var t1 = h2 + sigma1 + ch + K3[i3] + W3[i3]; + var t22 = sigma0 + maj; + h2 = g2; + g2 = f2; + f2 = e3; + e3 = d3 + t1 | 0; + d3 = c3; + c3 = b3; + b3 = a2; + a2 = t1 + t22 | 0; + } + H3[0] = H3[0] + a2 | 0; + H3[1] = H3[1] + b3 | 0; + H3[2] = H3[2] + c3 | 0; + H3[3] = H3[3] + d3 | 0; + H3[4] = H3[4] + e3 | 0; + H3[5] = H3[5] + f2 | 0; + H3[6] = H3[6] + g2 | 0; + H3[7] = H3[7] + h2 | 0; + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math2.floor(nBitsTotal / 4294967296); + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + this._process(); + return this._hash; + }, + clone: function() { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + return clone; + } + }); + C2.SHA256 = Hasher._createHelper(SHA2562); + C2.HmacSHA256 = Hasher._createHmacHelper(SHA2562); + })(Math); + return CryptoJS.SHA256; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha224.js +var require_sha224 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha224.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_sha256()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./sha256"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var C_algo = C2.algo; + var SHA2562 = C_algo.SHA256; + var SHA224 = C_algo.SHA224 = SHA2562.extend({ + _doReset: function() { + this._hash = new WordArray.init([ + 3238371032, + 914150663, + 812702999, + 4144912697, + 4290775857, + 1750603025, + 1694076839, + 3204075428 + ]); + }, + _doFinalize: function() { + var hash = SHA2562._doFinalize.call(this); + hash.sigBytes -= 4; + return hash; + } + }); + C2.SHA224 = SHA2562._createHelper(SHA224); + C2.HmacSHA224 = SHA2562._createHmacHelper(SHA224); + })(); + return CryptoJS.SHA224; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha512.js +var require_sha512 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha512.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_x64_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./x64-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Hasher = C_lib.Hasher; + var C_x64 = C2.x64; + var X64Word = C_x64.Word; + var X64WordArray = C_x64.WordArray; + var C_algo = C2.algo; + function X64Word_create() { + return X64Word.create.apply(X64Word, arguments); + } + var K3 = [ + X64Word_create(1116352408, 3609767458), + X64Word_create(1899447441, 602891725), + X64Word_create(3049323471, 3964484399), + X64Word_create(3921009573, 2173295548), + X64Word_create(961987163, 4081628472), + X64Word_create(1508970993, 3053834265), + X64Word_create(2453635748, 2937671579), + X64Word_create(2870763221, 3664609560), + X64Word_create(3624381080, 2734883394), + X64Word_create(310598401, 1164996542), + X64Word_create(607225278, 1323610764), + X64Word_create(1426881987, 3590304994), + X64Word_create(1925078388, 4068182383), + X64Word_create(2162078206, 991336113), + X64Word_create(2614888103, 633803317), + X64Word_create(3248222580, 3479774868), + X64Word_create(3835390401, 2666613458), + X64Word_create(4022224774, 944711139), + X64Word_create(264347078, 2341262773), + X64Word_create(604807628, 2007800933), + X64Word_create(770255983, 1495990901), + X64Word_create(1249150122, 1856431235), + X64Word_create(1555081692, 3175218132), + X64Word_create(1996064986, 2198950837), + X64Word_create(2554220882, 3999719339), + X64Word_create(2821834349, 766784016), + X64Word_create(2952996808, 2566594879), + X64Word_create(3210313671, 3203337956), + X64Word_create(3336571891, 1034457026), + X64Word_create(3584528711, 2466948901), + X64Word_create(113926993, 3758326383), + X64Word_create(338241895, 168717936), + X64Word_create(666307205, 1188179964), + X64Word_create(773529912, 1546045734), + X64Word_create(1294757372, 1522805485), + X64Word_create(1396182291, 2643833823), + X64Word_create(1695183700, 2343527390), + X64Word_create(1986661051, 1014477480), + X64Word_create(2177026350, 1206759142), + X64Word_create(2456956037, 344077627), + X64Word_create(2730485921, 1290863460), + X64Word_create(2820302411, 3158454273), + X64Word_create(3259730800, 3505952657), + X64Word_create(3345764771, 106217008), + X64Word_create(3516065817, 3606008344), + X64Word_create(3600352804, 1432725776), + X64Word_create(4094571909, 1467031594), + X64Word_create(275423344, 851169720), + X64Word_create(430227734, 3100823752), + X64Word_create(506948616, 1363258195), + X64Word_create(659060556, 3750685593), + X64Word_create(883997877, 3785050280), + X64Word_create(958139571, 3318307427), + X64Word_create(1322822218, 3812723403), + X64Word_create(1537002063, 2003034995), + X64Word_create(1747873779, 3602036899), + X64Word_create(1955562222, 1575990012), + X64Word_create(2024104815, 1125592928), + X64Word_create(2227730452, 2716904306), + X64Word_create(2361852424, 442776044), + X64Word_create(2428436474, 593698344), + X64Word_create(2756734187, 3733110249), + X64Word_create(3204031479, 2999351573), + X64Word_create(3329325298, 3815920427), + X64Word_create(3391569614, 3928383900), + X64Word_create(3515267271, 566280711), + X64Word_create(3940187606, 3454069534), + X64Word_create(4118630271, 4000239992), + X64Word_create(116418474, 1914138554), + X64Word_create(174292421, 2731055270), + X64Word_create(289380356, 3203993006), + X64Word_create(460393269, 320620315), + X64Word_create(685471733, 587496836), + X64Word_create(852142971, 1086792851), + X64Word_create(1017036298, 365543100), + X64Word_create(1126000580, 2618297676), + X64Word_create(1288033470, 3409855158), + X64Word_create(1501505948, 4234509866), + X64Word_create(1607167915, 987167468), + X64Word_create(1816402316, 1246189591) + ]; + var W3 = []; + (function() { + for (var i3 = 0; i3 < 80; i3++) { + W3[i3] = X64Word_create(); + } + })(); + var SHA5122 = C_algo.SHA512 = Hasher.extend({ + _doReset: function() { + this._hash = new X64WordArray.init([ + new X64Word.init(1779033703, 4089235720), + new X64Word.init(3144134277, 2227873595), + new X64Word.init(1013904242, 4271175723), + new X64Word.init(2773480762, 1595750129), + new X64Word.init(1359893119, 2917565137), + new X64Word.init(2600822924, 725511199), + new X64Word.init(528734635, 4215389547), + new X64Word.init(1541459225, 327033209) + ]); + }, + _doProcessBlock: function(M2, offset) { + var H2 = this._hash.words; + var H0 = H2[0]; + var H1 = H2[1]; + var H22 = H2[2]; + var H3 = H2[3]; + var H4 = H2[4]; + var H5 = H2[5]; + var H6 = H2[6]; + var H7 = H2[7]; + var H0h = H0.high; + var H0l = H0.low; + var H1h = H1.high; + var H1l = H1.low; + var H2h = H22.high; + var H2l = H22.low; + var H3h = H3.high; + var H3l = H3.low; + var H4h = H4.high; + var H4l = H4.low; + var H5h = H5.high; + var H5l = H5.low; + var H6h = H6.high; + var H6l = H6.low; + var H7h = H7.high; + var H7l = H7.low; + var ah = H0h; + var al = H0l; + var bh = H1h; + var bl = H1l; + var ch = H2h; + var cl = H2l; + var dh = H3h; + var dl = H3l; + var eh = H4h; + var el = H4l; + var fh = H5h; + var fl = H5l; + var gh = H6h; + var gl = H6l; + var hh = H7h; + var hl = H7l; + for (var i3 = 0; i3 < 80; i3++) { + var Wil; + var Wih; + var Wi = W3[i3]; + if (i3 < 16) { + Wih = Wi.high = M2[offset + i3 * 2] | 0; + Wil = Wi.low = M2[offset + i3 * 2 + 1] | 0; + } else { + var gamma0x = W3[i3 - 15]; + var gamma0xh = gamma0x.high; + var gamma0xl = gamma0x.low; + var gamma0h = (gamma0xh >>> 1 | gamma0xl << 31) ^ (gamma0xh >>> 8 | gamma0xl << 24) ^ gamma0xh >>> 7; + var gamma0l = (gamma0xl >>> 1 | gamma0xh << 31) ^ (gamma0xl >>> 8 | gamma0xh << 24) ^ (gamma0xl >>> 7 | gamma0xh << 25); + var gamma1x = W3[i3 - 2]; + var gamma1xh = gamma1x.high; + var gamma1xl = gamma1x.low; + var gamma1h = (gamma1xh >>> 19 | gamma1xl << 13) ^ (gamma1xh << 3 | gamma1xl >>> 29) ^ gamma1xh >>> 6; + var gamma1l = (gamma1xl >>> 19 | gamma1xh << 13) ^ (gamma1xl << 3 | gamma1xh >>> 29) ^ (gamma1xl >>> 6 | gamma1xh << 26); + var Wi7 = W3[i3 - 7]; + var Wi7h = Wi7.high; + var Wi7l = Wi7.low; + var Wi16 = W3[i3 - 16]; + var Wi16h = Wi16.high; + var Wi16l = Wi16.low; + Wil = gamma0l + Wi7l; + Wih = gamma0h + Wi7h + (Wil >>> 0 < gamma0l >>> 0 ? 1 : 0); + Wil = Wil + gamma1l; + Wih = Wih + gamma1h + (Wil >>> 0 < gamma1l >>> 0 ? 1 : 0); + Wil = Wil + Wi16l; + Wih = Wih + Wi16h + (Wil >>> 0 < Wi16l >>> 0 ? 1 : 0); + Wi.high = Wih; + Wi.low = Wil; + } + var chh = eh & fh ^ ~eh & gh; + var chl = el & fl ^ ~el & gl; + var majh = ah & bh ^ ah & ch ^ bh & ch; + var majl = al & bl ^ al & cl ^ bl & cl; + var sigma0h = (ah >>> 28 | al << 4) ^ (ah << 30 | al >>> 2) ^ (ah << 25 | al >>> 7); + var sigma0l = (al >>> 28 | ah << 4) ^ (al << 30 | ah >>> 2) ^ (al << 25 | ah >>> 7); + var sigma1h = (eh >>> 14 | el << 18) ^ (eh >>> 18 | el << 14) ^ (eh << 23 | el >>> 9); + var sigma1l = (el >>> 14 | eh << 18) ^ (el >>> 18 | eh << 14) ^ (el << 23 | eh >>> 9); + var Ki = K3[i3]; + var Kih = Ki.high; + var Kil = Ki.low; + var t1l = hl + sigma1l; + var t1h = hh + sigma1h + (t1l >>> 0 < hl >>> 0 ? 1 : 0); + var t1l = t1l + chl; + var t1h = t1h + chh + (t1l >>> 0 < chl >>> 0 ? 1 : 0); + var t1l = t1l + Kil; + var t1h = t1h + Kih + (t1l >>> 0 < Kil >>> 0 ? 1 : 0); + var t1l = t1l + Wil; + var t1h = t1h + Wih + (t1l >>> 0 < Wil >>> 0 ? 1 : 0); + var t2l = sigma0l + majl; + var t2h = sigma0h + majh + (t2l >>> 0 < sigma0l >>> 0 ? 1 : 0); + hh = gh; + hl = gl; + gh = fh; + gl = fl; + fh = eh; + fl = el; + el = dl + t1l | 0; + eh = dh + t1h + (el >>> 0 < dl >>> 0 ? 1 : 0) | 0; + dh = ch; + dl = cl; + ch = bh; + cl = bl; + bh = ah; + bl = al; + al = t1l + t2l | 0; + ah = t1h + t2h + (al >>> 0 < t1l >>> 0 ? 1 : 0) | 0; + } + H0l = H0.low = H0l + al; + H0.high = H0h + ah + (H0l >>> 0 < al >>> 0 ? 1 : 0); + H1l = H1.low = H1l + bl; + H1.high = H1h + bh + (H1l >>> 0 < bl >>> 0 ? 1 : 0); + H2l = H22.low = H2l + cl; + H22.high = H2h + ch + (H2l >>> 0 < cl >>> 0 ? 1 : 0); + H3l = H3.low = H3l + dl; + H3.high = H3h + dh + (H3l >>> 0 < dl >>> 0 ? 1 : 0); + H4l = H4.low = H4l + el; + H4.high = H4h + eh + (H4l >>> 0 < el >>> 0 ? 1 : 0); + H5l = H5.low = H5l + fl; + H5.high = H5h + fh + (H5l >>> 0 < fl >>> 0 ? 1 : 0); + H6l = H6.low = H6l + gl; + H6.high = H6h + gh + (H6l >>> 0 < gl >>> 0 ? 1 : 0); + H7l = H7.low = H7l + hl; + H7.high = H7h + hh + (H7l >>> 0 < hl >>> 0 ? 1 : 0); + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; + dataWords[(nBitsLeft + 128 >>> 10 << 5) + 30] = Math.floor(nBitsTotal / 4294967296); + dataWords[(nBitsLeft + 128 >>> 10 << 5) + 31] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + this._process(); + var hash = this._hash.toX32(); + return hash; + }, + clone: function() { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + return clone; + }, + blockSize: 1024 / 32 + }); + C2.SHA512 = Hasher._createHelper(SHA5122); + C2.HmacSHA512 = Hasher._createHmacHelper(SHA5122); + })(); + return CryptoJS.SHA512; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha384.js +var require_sha384 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha384.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_x64_core(), require_sha512()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./x64-core", "./sha512"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_x64 = C2.x64; + var X64Word = C_x64.Word; + var X64WordArray = C_x64.WordArray; + var C_algo = C2.algo; + var SHA5122 = C_algo.SHA512; + var SHA384 = C_algo.SHA384 = SHA5122.extend({ + _doReset: function() { + this._hash = new X64WordArray.init([ + new X64Word.init(3418070365, 3238371032), + new X64Word.init(1654270250, 914150663), + new X64Word.init(2438529370, 812702999), + new X64Word.init(355462360, 4144912697), + new X64Word.init(1731405415, 4290775857), + new X64Word.init(2394180231, 1750603025), + new X64Word.init(3675008525, 1694076839), + new X64Word.init(1203062813, 3204075428) + ]); + }, + _doFinalize: function() { + var hash = SHA5122._doFinalize.call(this); + hash.sigBytes -= 16; + return hash; + } + }); + C2.SHA384 = SHA5122._createHelper(SHA384); + C2.HmacSHA384 = SHA5122._createHmacHelper(SHA384); + })(); + return CryptoJS.SHA384; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha3.js +var require_sha3 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/sha3.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_x64_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./x64-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(Math2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_x64 = C2.x64; + var X64Word = C_x64.Word; + var C_algo = C2.algo; + var RHO_OFFSETS = []; + var PI_INDEXES = []; + var ROUND_CONSTANTS = []; + (function() { + var x3 = 1, y3 = 0; + for (var t3 = 0; t3 < 24; t3++) { + RHO_OFFSETS[x3 + 5 * y3] = (t3 + 1) * (t3 + 2) / 2 % 64; + var newX = y3 % 5; + var newY = (2 * x3 + 3 * y3) % 5; + x3 = newX; + y3 = newY; + } + for (var x3 = 0; x3 < 5; x3++) { + for (var y3 = 0; y3 < 5; y3++) { + PI_INDEXES[x3 + 5 * y3] = y3 + (2 * x3 + 3 * y3) % 5 * 5; + } + } + var LFSR = 1; + for (var i3 = 0; i3 < 24; i3++) { + var roundConstantMsw = 0; + var roundConstantLsw = 0; + for (var j3 = 0; j3 < 7; j3++) { + if (LFSR & 1) { + var bitPosition = (1 << j3) - 1; + if (bitPosition < 32) { + roundConstantLsw ^= 1 << bitPosition; + } else { + roundConstantMsw ^= 1 << bitPosition - 32; + } + } + if (LFSR & 128) { + LFSR = LFSR << 1 ^ 113; + } else { + LFSR <<= 1; + } + } + ROUND_CONSTANTS[i3] = X64Word.create(roundConstantMsw, roundConstantLsw); + } + })(); + var T3 = []; + (function() { + for (var i3 = 0; i3 < 25; i3++) { + T3[i3] = X64Word.create(); + } + })(); + var SHA3 = C_algo.SHA3 = Hasher.extend({ + /** + * Configuration options. + * + * @property {number} outputLength + * The desired number of bits in the output hash. + * Only values permitted are: 224, 256, 384, 512. + * Default: 512 + */ + cfg: Hasher.cfg.extend({ + outputLength: 512 + }), + _doReset: function() { + var state = this._state = []; + for (var i3 = 0; i3 < 25; i3++) { + state[i3] = new X64Word.init(); + } + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; + }, + _doProcessBlock: function(M2, offset) { + var state = this._state; + var nBlockSizeLanes = this.blockSize / 2; + for (var i3 = 0; i3 < nBlockSizeLanes; i3++) { + var M2i = M2[offset + 2 * i3]; + var M2i1 = M2[offset + 2 * i3 + 1]; + M2i = (M2i << 8 | M2i >>> 24) & 16711935 | (M2i << 24 | M2i >>> 8) & 4278255360; + M2i1 = (M2i1 << 8 | M2i1 >>> 24) & 16711935 | (M2i1 << 24 | M2i1 >>> 8) & 4278255360; + var lane = state[i3]; + lane.high ^= M2i1; + lane.low ^= M2i; + } + for (var round = 0; round < 24; round++) { + for (var x3 = 0; x3 < 5; x3++) { + var tMsw = 0, tLsw = 0; + for (var y3 = 0; y3 < 5; y3++) { + var lane = state[x3 + 5 * y3]; + tMsw ^= lane.high; + tLsw ^= lane.low; + } + var Tx = T3[x3]; + Tx.high = tMsw; + Tx.low = tLsw; + } + for (var x3 = 0; x3 < 5; x3++) { + var Tx4 = T3[(x3 + 4) % 5]; + var Tx1 = T3[(x3 + 1) % 5]; + var Tx1Msw = Tx1.high; + var Tx1Lsw = Tx1.low; + var tMsw = Tx4.high ^ (Tx1Msw << 1 | Tx1Lsw >>> 31); + var tLsw = Tx4.low ^ (Tx1Lsw << 1 | Tx1Msw >>> 31); + for (var y3 = 0; y3 < 5; y3++) { + var lane = state[x3 + 5 * y3]; + lane.high ^= tMsw; + lane.low ^= tLsw; + } + } + for (var laneIndex = 1; laneIndex < 25; laneIndex++) { + var tMsw; + var tLsw; + var lane = state[laneIndex]; + var laneMsw = lane.high; + var laneLsw = lane.low; + var rhoOffset = RHO_OFFSETS[laneIndex]; + if (rhoOffset < 32) { + tMsw = laneMsw << rhoOffset | laneLsw >>> 32 - rhoOffset; + tLsw = laneLsw << rhoOffset | laneMsw >>> 32 - rhoOffset; + } else { + tMsw = laneLsw << rhoOffset - 32 | laneMsw >>> 64 - rhoOffset; + tLsw = laneMsw << rhoOffset - 32 | laneLsw >>> 64 - rhoOffset; + } + var TPiLane = T3[PI_INDEXES[laneIndex]]; + TPiLane.high = tMsw; + TPiLane.low = tLsw; + } + var T0 = T3[0]; + var state0 = state[0]; + T0.high = state0.high; + T0.low = state0.low; + for (var x3 = 0; x3 < 5; x3++) { + for (var y3 = 0; y3 < 5; y3++) { + var laneIndex = x3 + 5 * y3; + var lane = state[laneIndex]; + var TLane = T3[laneIndex]; + var Tx1Lane = T3[(x3 + 1) % 5 + 5 * y3]; + var Tx2Lane = T3[(x3 + 2) % 5 + 5 * y3]; + lane.high = TLane.high ^ ~Tx1Lane.high & Tx2Lane.high; + lane.low = TLane.low ^ ~Tx1Lane.low & Tx2Lane.low; + } + } + var lane = state[0]; + var roundConstant = ROUND_CONSTANTS[round]; + lane.high ^= roundConstant.high; + lane.low ^= roundConstant.low; + } + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + var blockSizeBits = this.blockSize * 32; + dataWords[nBitsLeft >>> 5] |= 1 << 24 - nBitsLeft % 32; + dataWords[(Math2.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits >>> 5) - 1] |= 128; + data.sigBytes = dataWords.length * 4; + this._process(); + var state = this._state; + var outputLengthBytes = this.cfg.outputLength / 8; + var outputLengthLanes = outputLengthBytes / 8; + var hashWords = []; + for (var i3 = 0; i3 < outputLengthLanes; i3++) { + var lane = state[i3]; + var laneMsw = lane.high; + var laneLsw = lane.low; + laneMsw = (laneMsw << 8 | laneMsw >>> 24) & 16711935 | (laneMsw << 24 | laneMsw >>> 8) & 4278255360; + laneLsw = (laneLsw << 8 | laneLsw >>> 24) & 16711935 | (laneLsw << 24 | laneLsw >>> 8) & 4278255360; + hashWords.push(laneLsw); + hashWords.push(laneMsw); + } + return new WordArray.init(hashWords, outputLengthBytes); + }, + clone: function() { + var clone = Hasher.clone.call(this); + var state = clone._state = this._state.slice(0); + for (var i3 = 0; i3 < 25; i3++) { + state[i3] = state[i3].clone(); + } + return clone; + } + }); + C2.SHA3 = Hasher._createHelper(SHA3); + C2.HmacSHA3 = Hasher._createHmacHelper(SHA3); + })(Math); + return CryptoJS.SHA3; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/ripemd160.js +var require_ripemd160 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/ripemd160.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(Math2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C2.algo; + var _zl = WordArray.create([ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 7, + 4, + 13, + 1, + 10, + 6, + 15, + 3, + 12, + 0, + 9, + 5, + 2, + 14, + 11, + 8, + 3, + 10, + 14, + 4, + 9, + 15, + 8, + 1, + 2, + 7, + 0, + 6, + 13, + 11, + 5, + 12, + 1, + 9, + 11, + 10, + 0, + 8, + 12, + 4, + 13, + 3, + 7, + 15, + 14, + 5, + 6, + 2, + 4, + 0, + 5, + 9, + 7, + 12, + 2, + 10, + 14, + 1, + 3, + 8, + 11, + 6, + 15, + 13 + ]); + var _zr = WordArray.create([ + 5, + 14, + 7, + 0, + 9, + 2, + 11, + 4, + 13, + 6, + 15, + 8, + 1, + 10, + 3, + 12, + 6, + 11, + 3, + 7, + 0, + 13, + 5, + 10, + 14, + 15, + 8, + 12, + 4, + 9, + 1, + 2, + 15, + 5, + 1, + 3, + 7, + 14, + 6, + 9, + 11, + 8, + 12, + 2, + 10, + 0, + 4, + 13, + 8, + 6, + 4, + 1, + 3, + 11, + 15, + 0, + 5, + 12, + 2, + 13, + 9, + 7, + 10, + 14, + 12, + 15, + 10, + 4, + 1, + 5, + 8, + 7, + 6, + 2, + 13, + 14, + 0, + 3, + 9, + 11 + ]); + var _sl = WordArray.create([ + 11, + 14, + 15, + 12, + 5, + 8, + 7, + 9, + 11, + 13, + 14, + 15, + 6, + 7, + 9, + 8, + 7, + 6, + 8, + 13, + 11, + 9, + 7, + 15, + 7, + 12, + 15, + 9, + 11, + 7, + 13, + 12, + 11, + 13, + 6, + 7, + 14, + 9, + 13, + 15, + 14, + 8, + 13, + 6, + 5, + 12, + 7, + 5, + 11, + 12, + 14, + 15, + 14, + 15, + 9, + 8, + 9, + 14, + 5, + 6, + 8, + 6, + 5, + 12, + 9, + 15, + 5, + 11, + 6, + 8, + 13, + 12, + 5, + 12, + 13, + 14, + 11, + 8, + 5, + 6 + ]); + var _sr = WordArray.create([ + 8, + 9, + 9, + 11, + 13, + 15, + 15, + 5, + 7, + 7, + 8, + 11, + 14, + 14, + 12, + 6, + 9, + 13, + 15, + 7, + 12, + 8, + 9, + 11, + 7, + 7, + 12, + 7, + 6, + 15, + 13, + 11, + 9, + 7, + 15, + 11, + 8, + 6, + 6, + 14, + 12, + 13, + 5, + 14, + 13, + 13, + 7, + 5, + 15, + 5, + 8, + 11, + 14, + 14, + 6, + 14, + 6, + 9, + 12, + 9, + 12, + 5, + 15, + 8, + 8, + 5, + 12, + 9, + 12, + 5, + 14, + 6, + 8, + 13, + 6, + 5, + 15, + 13, + 11, + 11 + ]); + var _hl = WordArray.create([0, 1518500249, 1859775393, 2400959708, 2840853838]); + var _hr = WordArray.create([1352829926, 1548603684, 1836072691, 2053994217, 0]); + var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({ + _doReset: function() { + this._hash = WordArray.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); + }, + _doProcessBlock: function(M2, offset) { + for (var i3 = 0; i3 < 16; i3++) { + var offset_i = offset + i3; + var M_offset_i = M2[offset_i]; + M2[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360; + } + var H2 = this._hash.words; + var hl = _hl.words; + var hr = _hr.words; + var zl = _zl.words; + var zr = _zr.words; + var sl = _sl.words; + var sr = _sr.words; + var al, bl, cl, dl, el; + var ar, br, cr, dr, er; + ar = al = H2[0]; + br = bl = H2[1]; + cr = cl = H2[2]; + dr = dl = H2[3]; + er = el = H2[4]; + var t3; + for (var i3 = 0; i3 < 80; i3 += 1) { + t3 = al + M2[offset + zl[i3]] | 0; + if (i3 < 16) { + t3 += f1(bl, cl, dl) + hl[0]; + } else if (i3 < 32) { + t3 += f2(bl, cl, dl) + hl[1]; + } else if (i3 < 48) { + t3 += f3(bl, cl, dl) + hl[2]; + } else if (i3 < 64) { + t3 += f4(bl, cl, dl) + hl[3]; + } else { + t3 += f5(bl, cl, dl) + hl[4]; + } + t3 = t3 | 0; + t3 = rotl(t3, sl[i3]); + t3 = t3 + el | 0; + al = el; + el = dl; + dl = rotl(cl, 10); + cl = bl; + bl = t3; + t3 = ar + M2[offset + zr[i3]] | 0; + if (i3 < 16) { + t3 += f5(br, cr, dr) + hr[0]; + } else if (i3 < 32) { + t3 += f4(br, cr, dr) + hr[1]; + } else if (i3 < 48) { + t3 += f3(br, cr, dr) + hr[2]; + } else if (i3 < 64) { + t3 += f2(br, cr, dr) + hr[3]; + } else { + t3 += f1(br, cr, dr) + hr[4]; + } + t3 = t3 | 0; + t3 = rotl(t3, sr[i3]); + t3 = t3 + er | 0; + ar = er; + er = dr; + dr = rotl(cr, 10); + cr = br; + br = t3; + } + t3 = H2[1] + cl + dr | 0; + H2[1] = H2[2] + dl + er | 0; + H2[2] = H2[3] + el + ar | 0; + H2[3] = H2[4] + al + br | 0; + H2[4] = H2[0] + bl + cr | 0; + H2[0] = t3; + }, + _doFinalize: function() { + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; + dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotal << 8 | nBitsTotal >>> 24) & 16711935 | (nBitsTotal << 24 | nBitsTotal >>> 8) & 4278255360; + data.sigBytes = (dataWords.length + 1) * 4; + this._process(); + var hash = this._hash; + var H2 = hash.words; + for (var i3 = 0; i3 < 5; i3++) { + var H_i = H2[i3]; + H2[i3] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360; + } + return hash; + }, + clone: function() { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + return clone; + } + }); + function f1(x3, y3, z2) { + return x3 ^ y3 ^ z2; + } + function f2(x3, y3, z2) { + return x3 & y3 | ~x3 & z2; + } + function f3(x3, y3, z2) { + return (x3 | ~y3) ^ z2; + } + function f4(x3, y3, z2) { + return x3 & z2 | y3 & ~z2; + } + function f5(x3, y3, z2) { + return x3 ^ (y3 | ~z2); + } + function rotl(x3, n3) { + return x3 << n3 | x3 >>> 32 - n3; + } + C2.RIPEMD160 = Hasher._createHelper(RIPEMD160); + C2.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160); + })(Math); + return CryptoJS.RIPEMD160; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/hmac.js +var require_hmac = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/hmac.js"(exports2, module2) { + (function(root2, factory) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Base = C_lib.Base; + var C_enc = C2.enc; + var Utf8 = C_enc.Utf8; + var C_algo = C2.algo; + var HMAC = C_algo.HMAC = Base.extend({ + /** + * Initializes a newly created HMAC. + * + * @param {Hasher} hasher The hash algorithm to use. + * @param {WordArray|string} key The secret key. + * + * @example + * + * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key); + */ + init: function(hasher, key) { + hasher = this._hasher = new hasher.init(); + if (typeof key == "string") { + key = Utf8.parse(key); + } + var hasherBlockSize = hasher.blockSize; + var hasherBlockSizeBytes = hasherBlockSize * 4; + if (key.sigBytes > hasherBlockSizeBytes) { + key = hasher.finalize(key); + } + key.clamp(); + var oKey = this._oKey = key.clone(); + var iKey = this._iKey = key.clone(); + var oKeyWords = oKey.words; + var iKeyWords = iKey.words; + for (var i3 = 0; i3 < hasherBlockSize; i3++) { + oKeyWords[i3] ^= 1549556828; + iKeyWords[i3] ^= 909522486; + } + oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; + this.reset(); + }, + /** + * Resets this HMAC to its initial state. + * + * @example + * + * hmacHasher.reset(); + */ + reset: function() { + var hasher = this._hasher; + hasher.reset(); + hasher.update(this._iKey); + }, + /** + * Updates this HMAC with a message. + * + * @param {WordArray|string} messageUpdate The message to append. + * + * @return {HMAC} This HMAC instance. + * + * @example + * + * hmacHasher.update('message'); + * hmacHasher.update(wordArray); + */ + update: function(messageUpdate) { + this._hasher.update(messageUpdate); + return this; + }, + /** + * Finalizes the HMAC computation. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} messageUpdate (Optional) A final message update. + * + * @return {WordArray} The HMAC. + * + * @example + * + * var hmac = hmacHasher.finalize(); + * var hmac = hmacHasher.finalize('message'); + * var hmac = hmacHasher.finalize(wordArray); + */ + finalize: function(messageUpdate) { + var hasher = this._hasher; + var innerHash = hasher.finalize(messageUpdate); + hasher.reset(); + var hmac = hasher.finalize(this._oKey.clone().concat(innerHash)); + return hmac; + } + }); + })(); + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pbkdf2.js +var require_pbkdf2 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pbkdf2.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_sha1(), require_hmac()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./sha1", "./hmac"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var C_algo = C2.algo; + var SHA12 = C_algo.SHA1; + var HMAC = C_algo.HMAC; + var PBKDF2 = C_algo.PBKDF2 = Base.extend({ + /** + * Configuration options. + * + * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) + * @property {Hasher} hasher The hasher to use. Default: SHA1 + * @property {number} iterations The number of iterations to perform. Default: 1 + */ + cfg: Base.extend({ + keySize: 128 / 32, + hasher: SHA12, + iterations: 1 + }), + /** + * Initializes a newly created key derivation function. + * + * @param {Object} cfg (Optional) The configuration options to use for the derivation. + * + * @example + * + * var kdf = CryptoJS.algo.PBKDF2.create(); + * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); + * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 }); + */ + init: function(cfg) { + this.cfg = this.cfg.extend(cfg); + }, + /** + * Computes the Password-Based Key Derivation Function 2. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * + * @return {WordArray} The derived key. + * + * @example + * + * var key = kdf.compute(password, salt); + */ + compute: function(password, salt) { + var cfg = this.cfg; + var hmac = HMAC.create(cfg.hasher, password); + var derivedKey = WordArray.create(); + var blockIndex = WordArray.create([1]); + var derivedKeyWords = derivedKey.words; + var blockIndexWords = blockIndex.words; + var keySize = cfg.keySize; + var iterations = cfg.iterations; + while (derivedKeyWords.length < keySize) { + var block = hmac.update(salt).finalize(blockIndex); + hmac.reset(); + var blockWords = block.words; + var blockWordsLength = blockWords.length; + var intermediate = block; + for (var i3 = 1; i3 < iterations; i3++) { + intermediate = hmac.finalize(intermediate); + hmac.reset(); + var intermediateWords = intermediate.words; + for (var j3 = 0; j3 < blockWordsLength; j3++) { + blockWords[j3] ^= intermediateWords[j3]; + } + } + derivedKey.concat(block); + blockIndexWords[0]++; + } + derivedKey.sigBytes = keySize * 4; + return derivedKey; + } + }); + C2.PBKDF2 = function(password, salt, cfg) { + return PBKDF2.create(cfg).compute(password, salt); + }; + })(); + return CryptoJS.PBKDF2; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/evpkdf.js +var require_evpkdf = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/evpkdf.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_sha1(), require_hmac()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./sha1", "./hmac"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var C_algo = C2.algo; + var MD52 = C_algo.MD5; + var EvpKDF = C_algo.EvpKDF = Base.extend({ + /** + * Configuration options. + * + * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) + * @property {Hasher} hasher The hash algorithm to use. Default: MD5 + * @property {number} iterations The number of iterations to perform. Default: 1 + */ + cfg: Base.extend({ + keySize: 128 / 32, + hasher: MD52, + iterations: 1 + }), + /** + * Initializes a newly created key derivation function. + * + * @param {Object} cfg (Optional) The configuration options to use for the derivation. + * + * @example + * + * var kdf = CryptoJS.algo.EvpKDF.create(); + * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 }); + * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 }); + */ + init: function(cfg) { + this.cfg = this.cfg.extend(cfg); + }, + /** + * Derives a key from a password. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * + * @return {WordArray} The derived key. + * + * @example + * + * var key = kdf.compute(password, salt); + */ + compute: function(password, salt) { + var block; + var cfg = this.cfg; + var hasher = cfg.hasher.create(); + var derivedKey = WordArray.create(); + var derivedKeyWords = derivedKey.words; + var keySize = cfg.keySize; + var iterations = cfg.iterations; + while (derivedKeyWords.length < keySize) { + if (block) { + hasher.update(block); + } + block = hasher.update(password).finalize(salt); + hasher.reset(); + for (var i3 = 1; i3 < iterations; i3++) { + block = hasher.finalize(block); + hasher.reset(); + } + derivedKey.concat(block); + } + derivedKey.sigBytes = keySize * 4; + return derivedKey; + } + }); + C2.EvpKDF = function(password, salt, cfg) { + return EvpKDF.create(cfg).compute(password, salt); + }; + })(); + return CryptoJS.EvpKDF; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/cipher-core.js +var require_cipher_core = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/cipher-core.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_evpkdf()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./evpkdf"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.lib.Cipher || function(undefined2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm; + var C_enc = C2.enc; + var Utf8 = C_enc.Utf8; + var Base64 = C_enc.Base64; + var C_algo = C2.algo; + var EvpKDF = C_algo.EvpKDF; + var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({ + /** + * Configuration options. + * + * @property {WordArray} iv The IV to use for this operation. + */ + cfg: Base.extend(), + /** + * Creates this cipher in encryption mode. + * + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {Cipher} A cipher instance. + * + * @static + * + * @example + * + * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray }); + */ + createEncryptor: function(key, cfg) { + return this.create(this._ENC_XFORM_MODE, key, cfg); + }, + /** + * Creates this cipher in decryption mode. + * + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {Cipher} A cipher instance. + * + * @static + * + * @example + * + * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray }); + */ + createDecryptor: function(key, cfg) { + return this.create(this._DEC_XFORM_MODE, key, cfg); + }, + /** + * Initializes a newly created cipher. + * + * @param {number} xformMode Either the encryption or decryption transormation mode constant. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @example + * + * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray }); + */ + init: function(xformMode, key, cfg) { + this.cfg = this.cfg.extend(cfg); + this._xformMode = xformMode; + this._key = key; + this.reset(); + }, + /** + * Resets this cipher to its initial state. + * + * @example + * + * cipher.reset(); + */ + reset: function() { + BufferedBlockAlgorithm.reset.call(this); + this._doReset(); + }, + /** + * Adds data to be encrypted or decrypted. + * + * @param {WordArray|string} dataUpdate The data to encrypt or decrypt. + * + * @return {WordArray} The data after processing. + * + * @example + * + * var encrypted = cipher.process('data'); + * var encrypted = cipher.process(wordArray); + */ + process: function(dataUpdate) { + this._append(dataUpdate); + return this._process(); + }, + /** + * Finalizes the encryption or decryption process. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt. + * + * @return {WordArray} The data after final processing. + * + * @example + * + * var encrypted = cipher.finalize(); + * var encrypted = cipher.finalize('data'); + * var encrypted = cipher.finalize(wordArray); + */ + finalize: function(dataUpdate) { + if (dataUpdate) { + this._append(dataUpdate); + } + var finalProcessedData = this._doFinalize(); + return finalProcessedData; + }, + keySize: 128 / 32, + ivSize: 128 / 32, + _ENC_XFORM_MODE: 1, + _DEC_XFORM_MODE: 2, + /** + * Creates shortcut functions to a cipher's object interface. + * + * @param {Cipher} cipher The cipher to create a helper for. + * + * @return {Object} An object with encrypt and decrypt shortcut functions. + * + * @static + * + * @example + * + * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES); + */ + _createHelper: function() { + function selectCipherStrategy(key) { + if (typeof key == "string") { + return PasswordBasedCipher; + } else { + return SerializableCipher; + } + } + return function(cipher) { + return { + encrypt: function(message, key, cfg) { + return selectCipherStrategy(key).encrypt(cipher, message, key, cfg); + }, + decrypt: function(ciphertext, key, cfg) { + return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg); + } + }; + }; + }() + }); + var StreamCipher = C_lib.StreamCipher = Cipher.extend({ + _doFinalize: function() { + var finalProcessedBlocks = this._process(true); + return finalProcessedBlocks; + }, + blockSize: 1 + }); + var C_mode = C2.mode = {}; + var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({ + /** + * Creates this mode for encryption. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @static + * + * @example + * + * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words); + */ + createEncryptor: function(cipher, iv) { + return this.Encryptor.create(cipher, iv); + }, + /** + * Creates this mode for decryption. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @static + * + * @example + * + * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words); + */ + createDecryptor: function(cipher, iv) { + return this.Decryptor.create(cipher, iv); + }, + /** + * Initializes a newly created mode. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @example + * + * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words); + */ + init: function(cipher, iv) { + this._cipher = cipher; + this._iv = iv; + } + }); + var CBC = C_mode.CBC = function() { + var CBC2 = BlockCipherMode.extend(); + CBC2.Encryptor = CBC2.extend({ + /** + * Processes the data block at offset. + * + * @param {Array} words The data words to operate on. + * @param {number} offset The offset where the block starts. + * + * @example + * + * mode.processBlock(data.words, offset); + */ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + xorBlock.call(this, words, offset, blockSize); + cipher.encryptBlock(words, offset); + this._prevBlock = words.slice(offset, offset + blockSize); + } + }); + CBC2.Decryptor = CBC2.extend({ + /** + * Processes the data block at offset. + * + * @param {Array} words The data words to operate on. + * @param {number} offset The offset where the block starts. + * + * @example + * + * mode.processBlock(data.words, offset); + */ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + var thisBlock = words.slice(offset, offset + blockSize); + cipher.decryptBlock(words, offset); + xorBlock.call(this, words, offset, blockSize); + this._prevBlock = thisBlock; + } + }); + function xorBlock(words, offset, blockSize) { + var block; + var iv = this._iv; + if (iv) { + block = iv; + this._iv = undefined2; + } else { + block = this._prevBlock; + } + for (var i3 = 0; i3 < blockSize; i3++) { + words[offset + i3] ^= block[i3]; + } + } + return CBC2; + }(); + var C_pad = C2.pad = {}; + var Pkcs7 = C_pad.Pkcs7 = { + /** + * Pads data using the algorithm defined in PKCS #5/7. + * + * @param {WordArray} data The data to pad. + * @param {number} blockSize The multiple that the data should be padded to. + * + * @static + * + * @example + * + * CryptoJS.pad.Pkcs7.pad(wordArray, 4); + */ + pad: function(data, blockSize) { + var blockSizeBytes = blockSize * 4; + var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; + var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes; + var paddingWords = []; + for (var i3 = 0; i3 < nPaddingBytes; i3 += 4) { + paddingWords.push(paddingWord); + } + var padding = WordArray.create(paddingWords, nPaddingBytes); + data.concat(padding); + }, + /** + * Unpads data that had been padded using the algorithm defined in PKCS #5/7. + * + * @param {WordArray} data The data to unpad. + * + * @static + * + * @example + * + * CryptoJS.pad.Pkcs7.unpad(wordArray); + */ + unpad: function(data) { + var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; + data.sigBytes -= nPaddingBytes; + } + }; + var BlockCipher = C_lib.BlockCipher = Cipher.extend({ + /** + * Configuration options. + * + * @property {Mode} mode The block mode to use. Default: CBC + * @property {Padding} padding The padding strategy to use. Default: Pkcs7 + */ + cfg: Cipher.cfg.extend({ + mode: CBC, + padding: Pkcs7 + }), + reset: function() { + var modeCreator; + Cipher.reset.call(this); + var cfg = this.cfg; + var iv = cfg.iv; + var mode = cfg.mode; + if (this._xformMode == this._ENC_XFORM_MODE) { + modeCreator = mode.createEncryptor; + } else { + modeCreator = mode.createDecryptor; + this._minBufferSize = 1; + } + if (this._mode && this._mode.__creator == modeCreator) { + this._mode.init(this, iv && iv.words); + } else { + this._mode = modeCreator.call(mode, this, iv && iv.words); + this._mode.__creator = modeCreator; + } + }, + _doProcessBlock: function(words, offset) { + this._mode.processBlock(words, offset); + }, + _doFinalize: function() { + var finalProcessedBlocks; + var padding = this.cfg.padding; + if (this._xformMode == this._ENC_XFORM_MODE) { + padding.pad(this._data, this.blockSize); + finalProcessedBlocks = this._process(true); + } else { + finalProcessedBlocks = this._process(true); + padding.unpad(finalProcessedBlocks); + } + return finalProcessedBlocks; + }, + blockSize: 128 / 32 + }); + var CipherParams = C_lib.CipherParams = Base.extend({ + /** + * Initializes a newly created cipher params object. + * + * @param {Object} cipherParams An object with any of the possible cipher parameters. + * + * @example + * + * var cipherParams = CryptoJS.lib.CipherParams.create({ + * ciphertext: ciphertextWordArray, + * key: keyWordArray, + * iv: ivWordArray, + * salt: saltWordArray, + * algorithm: CryptoJS.algo.AES, + * mode: CryptoJS.mode.CBC, + * padding: CryptoJS.pad.PKCS7, + * blockSize: 4, + * formatter: CryptoJS.format.OpenSSL + * }); + */ + init: function(cipherParams) { + this.mixIn(cipherParams); + }, + /** + * Converts this cipher params object to a string. + * + * @param {Format} formatter (Optional) The formatting strategy to use. + * + * @return {string} The stringified cipher params. + * + * @throws Error If neither the formatter nor the default formatter is set. + * + * @example + * + * var string = cipherParams + ''; + * var string = cipherParams.toString(); + * var string = cipherParams.toString(CryptoJS.format.OpenSSL); + */ + toString: function(formatter) { + return (formatter || this.formatter).stringify(this); + } + }); + var C_format = C2.format = {}; + var OpenSSLFormatter = C_format.OpenSSL = { + /** + * Converts a cipher params object to an OpenSSL-compatible string. + * + * @param {CipherParams} cipherParams The cipher params object. + * + * @return {string} The OpenSSL-compatible string. + * + * @static + * + * @example + * + * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams); + */ + stringify: function(cipherParams) { + var wordArray; + var ciphertext = cipherParams.ciphertext; + var salt = cipherParams.salt; + if (salt) { + wordArray = WordArray.create([1398893684, 1701076831]).concat(salt).concat(ciphertext); + } else { + wordArray = ciphertext; + } + return wordArray.toString(Base64); + }, + /** + * Converts an OpenSSL-compatible string to a cipher params object. + * + * @param {string} openSSLStr The OpenSSL-compatible string. + * + * @return {CipherParams} The cipher params object. + * + * @static + * + * @example + * + * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString); + */ + parse: function(openSSLStr) { + var salt; + var ciphertext = Base64.parse(openSSLStr); + var ciphertextWords = ciphertext.words; + if (ciphertextWords[0] == 1398893684 && ciphertextWords[1] == 1701076831) { + salt = WordArray.create(ciphertextWords.slice(2, 4)); + ciphertextWords.splice(0, 4); + ciphertext.sigBytes -= 16; + } + return CipherParams.create({ ciphertext, salt }); + } + }; + var SerializableCipher = C_lib.SerializableCipher = Base.extend({ + /** + * Configuration options. + * + * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL + */ + cfg: Base.extend({ + format: OpenSSLFormatter + }), + /** + * Encrypts a message. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {WordArray|string} message The message to encrypt. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {CipherParams} A cipher params object. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key); + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv }); + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + */ + encrypt: function(cipher, message, key, cfg) { + cfg = this.cfg.extend(cfg); + var encryptor = cipher.createEncryptor(key, cfg); + var ciphertext = encryptor.finalize(message); + var cipherCfg = encryptor.cfg; + return CipherParams.create({ + ciphertext, + key, + iv: cipherCfg.iv, + algorithm: cipher, + mode: cipherCfg.mode, + padding: cipherCfg.padding, + blockSize: cipher.blockSize, + formatter: cfg.format + }); + }, + /** + * Decrypts serialized ciphertext. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {CipherParams|string} ciphertext The ciphertext to decrypt. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {WordArray} The plaintext. + * + * @static + * + * @example + * + * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + */ + decrypt: function(cipher, ciphertext, key, cfg) { + cfg = this.cfg.extend(cfg); + ciphertext = this._parse(ciphertext, cfg.format); + var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext); + return plaintext; + }, + /** + * Converts serialized ciphertext to CipherParams, + * else assumed CipherParams already and returns ciphertext unchanged. + * + * @param {CipherParams|string} ciphertext The ciphertext. + * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext. + * + * @return {CipherParams} The unserialized ciphertext. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format); + */ + _parse: function(ciphertext, format3) { + if (typeof ciphertext == "string") { + return format3.parse(ciphertext, this); + } else { + return ciphertext; + } + } + }); + var C_kdf = C2.kdf = {}; + var OpenSSLKdf = C_kdf.OpenSSL = { + /** + * Derives a key and IV from a password. + * + * @param {string} password The password to derive from. + * @param {number} keySize The size in words of the key to generate. + * @param {number} ivSize The size in words of the IV to generate. + * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly. + * + * @return {CipherParams} A cipher params object with the key, IV, and salt. + * + * @static + * + * @example + * + * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); + * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt'); + */ + execute: function(password, keySize, ivSize, salt) { + if (!salt) { + salt = WordArray.random(64 / 8); + } + var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt); + var iv = WordArray.create(key.words.slice(keySize), ivSize * 4); + key.sigBytes = keySize * 4; + return CipherParams.create({ key, iv, salt }); + } + }; + var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({ + /** + * Configuration options. + * + * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL + */ + cfg: SerializableCipher.cfg.extend({ + kdf: OpenSSLKdf + }), + /** + * Encrypts a message using a password. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {WordArray|string} message The message to encrypt. + * @param {string} password The password. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {CipherParams} A cipher params object. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password'); + * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL }); + */ + encrypt: function(cipher, message, password, cfg) { + cfg = this.cfg.extend(cfg); + var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize); + cfg.iv = derivedParams.iv; + var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); + ciphertext.mixIn(derivedParams); + return ciphertext; + }, + /** + * Decrypts serialized ciphertext using a password. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {CipherParams|string} ciphertext The ciphertext to decrypt. + * @param {string} password The password. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {WordArray} The plaintext. + * + * @static + * + * @example + * + * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL }); + * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL }); + */ + decrypt: function(cipher, ciphertext, password, cfg) { + cfg = this.cfg.extend(cfg); + ciphertext = this._parse(ciphertext, cfg.format); + var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt); + cfg.iv = derivedParams.iv; + var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg); + return plaintext; + } + }); + }(); + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-cfb.js +var require_mode_cfb = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-cfb.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.mode.CFB = function() { + var CFB = CryptoJS.lib.BlockCipherMode.extend(); + CFB.Encryptor = CFB.extend({ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); + this._prevBlock = words.slice(offset, offset + blockSize); + } + }); + CFB.Decryptor = CFB.extend({ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + var thisBlock = words.slice(offset, offset + blockSize); + generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); + this._prevBlock = thisBlock; + } + }); + function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) { + var keystream; + var iv = this._iv; + if (iv) { + keystream = iv.slice(0); + this._iv = void 0; + } else { + keystream = this._prevBlock; + } + cipher.encryptBlock(keystream, 0); + for (var i3 = 0; i3 < blockSize; i3++) { + words[offset + i3] ^= keystream[i3]; + } + } + return CFB; + }(); + return CryptoJS.mode.CFB; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ctr.js +var require_mode_ctr = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ctr.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.mode.CTR = function() { + var CTR = CryptoJS.lib.BlockCipherMode.extend(); + var Encryptor = CTR.Encryptor = CTR.extend({ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + var iv = this._iv; + var counter = this._counter; + if (iv) { + counter = this._counter = iv.slice(0); + this._iv = void 0; + } + var keystream = counter.slice(0); + cipher.encryptBlock(keystream, 0); + counter[blockSize - 1] = counter[blockSize - 1] + 1 | 0; + for (var i3 = 0; i3 < blockSize; i3++) { + words[offset + i3] ^= keystream[i3]; + } + } + }); + CTR.Decryptor = Encryptor; + return CTR; + }(); + return CryptoJS.mode.CTR; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ctr-gladman.js +var require_mode_ctr_gladman = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ctr-gladman.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.mode.CTRGladman = function() { + var CTRGladman = CryptoJS.lib.BlockCipherMode.extend(); + function incWord(word) { + if ((word >> 24 & 255) === 255) { + var b1 = word >> 16 & 255; + var b22 = word >> 8 & 255; + var b3 = word & 255; + if (b1 === 255) { + b1 = 0; + if (b22 === 255) { + b22 = 0; + if (b3 === 255) { + b3 = 0; + } else { + ++b3; + } + } else { + ++b22; + } + } else { + ++b1; + } + word = 0; + word += b1 << 16; + word += b22 << 8; + word += b3; + } else { + word += 1 << 24; + } + return word; + } + function incCounter(counter) { + if ((counter[0] = incWord(counter[0])) === 0) { + counter[1] = incWord(counter[1]); + } + return counter; + } + var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + var iv = this._iv; + var counter = this._counter; + if (iv) { + counter = this._counter = iv.slice(0); + this._iv = void 0; + } + incCounter(counter); + var keystream = counter.slice(0); + cipher.encryptBlock(keystream, 0); + for (var i3 = 0; i3 < blockSize; i3++) { + words[offset + i3] ^= keystream[i3]; + } + } + }); + CTRGladman.Decryptor = Encryptor; + return CTRGladman; + }(); + return CryptoJS.mode.CTRGladman; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ofb.js +var require_mode_ofb = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ofb.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.mode.OFB = function() { + var OFB = CryptoJS.lib.BlockCipherMode.extend(); + var Encryptor = OFB.Encryptor = OFB.extend({ + processBlock: function(words, offset) { + var cipher = this._cipher; + var blockSize = cipher.blockSize; + var iv = this._iv; + var keystream = this._keystream; + if (iv) { + keystream = this._keystream = iv.slice(0); + this._iv = void 0; + } + cipher.encryptBlock(keystream, 0); + for (var i3 = 0; i3 < blockSize; i3++) { + words[offset + i3] ^= keystream[i3]; + } + } + }); + OFB.Decryptor = Encryptor; + return OFB; + }(); + return CryptoJS.mode.OFB; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ecb.js +var require_mode_ecb = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/mode-ecb.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.mode.ECB = function() { + var ECB = CryptoJS.lib.BlockCipherMode.extend(); + ECB.Encryptor = ECB.extend({ + processBlock: function(words, offset) { + this._cipher.encryptBlock(words, offset); + } + }); + ECB.Decryptor = ECB.extend({ + processBlock: function(words, offset) { + this._cipher.decryptBlock(words, offset); + } + }); + return ECB; + }(); + return CryptoJS.mode.ECB; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-ansix923.js +var require_pad_ansix923 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-ansix923.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.pad.AnsiX923 = { + pad: function(data, blockSize) { + var dataSigBytes = data.sigBytes; + var blockSizeBytes = blockSize * 4; + var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes; + var lastBytePos = dataSigBytes + nPaddingBytes - 1; + data.clamp(); + data.words[lastBytePos >>> 2] |= nPaddingBytes << 24 - lastBytePos % 4 * 8; + data.sigBytes += nPaddingBytes; + }, + unpad: function(data) { + var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; + data.sigBytes -= nPaddingBytes; + } + }; + return CryptoJS.pad.Ansix923; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-iso10126.js +var require_pad_iso10126 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-iso10126.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.pad.Iso10126 = { + pad: function(data, blockSize) { + var blockSizeBytes = blockSize * 4; + var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; + data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1)); + }, + unpad: function(data) { + var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; + data.sigBytes -= nPaddingBytes; + } + }; + return CryptoJS.pad.Iso10126; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-iso97971.js +var require_pad_iso97971 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-iso97971.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.pad.Iso97971 = { + pad: function(data, blockSize) { + data.concat(CryptoJS.lib.WordArray.create([2147483648], 1)); + CryptoJS.pad.ZeroPadding.pad(data, blockSize); + }, + unpad: function(data) { + CryptoJS.pad.ZeroPadding.unpad(data); + data.sigBytes--; + } + }; + return CryptoJS.pad.Iso97971; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-zeropadding.js +var require_pad_zeropadding = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-zeropadding.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.pad.ZeroPadding = { + pad: function(data, blockSize) { + var blockSizeBytes = blockSize * 4; + data.clamp(); + data.sigBytes += blockSizeBytes - (data.sigBytes % blockSizeBytes || blockSizeBytes); + }, + unpad: function(data) { + var dataWords = data.words; + var i3 = data.sigBytes - 1; + for (var i3 = data.sigBytes - 1; i3 >= 0; i3--) { + if (dataWords[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255) { + data.sigBytes = i3 + 1; + break; + } + } + } + }; + return CryptoJS.pad.ZeroPadding; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-nopadding.js +var require_pad_nopadding = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/pad-nopadding.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + CryptoJS.pad.NoPadding = { + pad: function() { + }, + unpad: function() { + } + }; + return CryptoJS.pad.NoPadding; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/format-hex.js +var require_format_hex = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/format-hex.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function(undefined2) { + var C2 = CryptoJS; + var C_lib = C2.lib; + var CipherParams = C_lib.CipherParams; + var C_enc = C2.enc; + var Hex = C_enc.Hex; + var C_format = C2.format; + var HexFormatter = C_format.Hex = { + /** + * Converts the ciphertext of a cipher params object to a hexadecimally encoded string. + * + * @param {CipherParams} cipherParams The cipher params object. + * + * @return {string} The hexadecimally encoded string. + * + * @static + * + * @example + * + * var hexString = CryptoJS.format.Hex.stringify(cipherParams); + */ + stringify: function(cipherParams) { + return cipherParams.ciphertext.toString(Hex); + }, + /** + * Converts a hexadecimally encoded ciphertext string to a cipher params object. + * + * @param {string} input The hexadecimally encoded string. + * + * @return {CipherParams} The cipher params object. + * + * @static + * + * @example + * + * var cipherParams = CryptoJS.format.Hex.parse(hexString); + */ + parse: function(input) { + var ciphertext = Hex.parse(input); + return CipherParams.create({ ciphertext }); + } + }; + })(); + return CryptoJS.format.Hex; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/aes.js +var require_aes = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/aes.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var BlockCipher = C_lib.BlockCipher; + var C_algo = C2.algo; + var SBOX = []; + var INV_SBOX = []; + var SUB_MIX_0 = []; + var SUB_MIX_1 = []; + var SUB_MIX_2 = []; + var SUB_MIX_3 = []; + var INV_SUB_MIX_0 = []; + var INV_SUB_MIX_1 = []; + var INV_SUB_MIX_2 = []; + var INV_SUB_MIX_3 = []; + (function() { + var d3 = []; + for (var i3 = 0; i3 < 256; i3++) { + if (i3 < 128) { + d3[i3] = i3 << 1; + } else { + d3[i3] = i3 << 1 ^ 283; + } + } + var x3 = 0; + var xi = 0; + for (var i3 = 0; i3 < 256; i3++) { + var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4; + sx = sx >>> 8 ^ sx & 255 ^ 99; + SBOX[x3] = sx; + INV_SBOX[sx] = x3; + var x22 = d3[x3]; + var x4 = d3[x22]; + var x8 = d3[x4]; + var t3 = d3[sx] * 257 ^ sx * 16843008; + SUB_MIX_0[x3] = t3 << 24 | t3 >>> 8; + SUB_MIX_1[x3] = t3 << 16 | t3 >>> 16; + SUB_MIX_2[x3] = t3 << 8 | t3 >>> 24; + SUB_MIX_3[x3] = t3; + var t3 = x8 * 16843009 ^ x4 * 65537 ^ x22 * 257 ^ x3 * 16843008; + INV_SUB_MIX_0[sx] = t3 << 24 | t3 >>> 8; + INV_SUB_MIX_1[sx] = t3 << 16 | t3 >>> 16; + INV_SUB_MIX_2[sx] = t3 << 8 | t3 >>> 24; + INV_SUB_MIX_3[sx] = t3; + if (!x3) { + x3 = xi = 1; + } else { + x3 = x22 ^ d3[d3[d3[x8 ^ x22]]]; + xi ^= d3[d3[xi]]; + } + } + })(); + var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; + var AES = C_algo.AES = BlockCipher.extend({ + _doReset: function() { + var t3; + if (this._nRounds && this._keyPriorReset === this._key) { + return; + } + var key = this._keyPriorReset = this._key; + var keyWords = key.words; + var keySize = key.sigBytes / 4; + var nRounds = this._nRounds = keySize + 6; + var ksRows = (nRounds + 1) * 4; + var keySchedule = this._keySchedule = []; + for (var ksRow = 0; ksRow < ksRows; ksRow++) { + if (ksRow < keySize) { + keySchedule[ksRow] = keyWords[ksRow]; + } else { + t3 = keySchedule[ksRow - 1]; + if (!(ksRow % keySize)) { + t3 = t3 << 8 | t3 >>> 24; + t3 = SBOX[t3 >>> 24] << 24 | SBOX[t3 >>> 16 & 255] << 16 | SBOX[t3 >>> 8 & 255] << 8 | SBOX[t3 & 255]; + t3 ^= RCON[ksRow / keySize | 0] << 24; + } else if (keySize > 6 && ksRow % keySize == 4) { + t3 = SBOX[t3 >>> 24] << 24 | SBOX[t3 >>> 16 & 255] << 16 | SBOX[t3 >>> 8 & 255] << 8 | SBOX[t3 & 255]; + } + keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t3; + } + } + var invKeySchedule = this._invKeySchedule = []; + for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) { + var ksRow = ksRows - invKsRow; + if (invKsRow % 4) { + var t3 = keySchedule[ksRow]; + } else { + var t3 = keySchedule[ksRow - 4]; + } + if (invKsRow < 4 || ksRow <= 4) { + invKeySchedule[invKsRow] = t3; + } else { + invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t3 >>> 24]] ^ INV_SUB_MIX_1[SBOX[t3 >>> 16 & 255]] ^ INV_SUB_MIX_2[SBOX[t3 >>> 8 & 255]] ^ INV_SUB_MIX_3[SBOX[t3 & 255]]; + } + } + }, + encryptBlock: function(M2, offset) { + this._doCryptBlock(M2, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX); + }, + decryptBlock: function(M2, offset) { + var t3 = M2[offset + 1]; + M2[offset + 1] = M2[offset + 3]; + M2[offset + 3] = t3; + this._doCryptBlock(M2, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); + var t3 = M2[offset + 1]; + M2[offset + 1] = M2[offset + 3]; + M2[offset + 3] = t3; + }, + _doCryptBlock: function(M2, offset, keySchedule, SUB_MIX_02, SUB_MIX_12, SUB_MIX_22, SUB_MIX_32, SBOX2) { + var nRounds = this._nRounds; + var s0 = M2[offset] ^ keySchedule[0]; + var s1 = M2[offset + 1] ^ keySchedule[1]; + var s22 = M2[offset + 2] ^ keySchedule[2]; + var s3 = M2[offset + 3] ^ keySchedule[3]; + var ksRow = 4; + for (var round = 1; round < nRounds; round++) { + var t0 = SUB_MIX_02[s0 >>> 24] ^ SUB_MIX_12[s1 >>> 16 & 255] ^ SUB_MIX_22[s22 >>> 8 & 255] ^ SUB_MIX_32[s3 & 255] ^ keySchedule[ksRow++]; + var t1 = SUB_MIX_02[s1 >>> 24] ^ SUB_MIX_12[s22 >>> 16 & 255] ^ SUB_MIX_22[s3 >>> 8 & 255] ^ SUB_MIX_32[s0 & 255] ^ keySchedule[ksRow++]; + var t22 = SUB_MIX_02[s22 >>> 24] ^ SUB_MIX_12[s3 >>> 16 & 255] ^ SUB_MIX_22[s0 >>> 8 & 255] ^ SUB_MIX_32[s1 & 255] ^ keySchedule[ksRow++]; + var t3 = SUB_MIX_02[s3 >>> 24] ^ SUB_MIX_12[s0 >>> 16 & 255] ^ SUB_MIX_22[s1 >>> 8 & 255] ^ SUB_MIX_32[s22 & 255] ^ keySchedule[ksRow++]; + s0 = t0; + s1 = t1; + s22 = t22; + s3 = t3; + } + var t0 = (SBOX2[s0 >>> 24] << 24 | SBOX2[s1 >>> 16 & 255] << 16 | SBOX2[s22 >>> 8 & 255] << 8 | SBOX2[s3 & 255]) ^ keySchedule[ksRow++]; + var t1 = (SBOX2[s1 >>> 24] << 24 | SBOX2[s22 >>> 16 & 255] << 16 | SBOX2[s3 >>> 8 & 255] << 8 | SBOX2[s0 & 255]) ^ keySchedule[ksRow++]; + var t22 = (SBOX2[s22 >>> 24] << 24 | SBOX2[s3 >>> 16 & 255] << 16 | SBOX2[s0 >>> 8 & 255] << 8 | SBOX2[s1 & 255]) ^ keySchedule[ksRow++]; + var t3 = (SBOX2[s3 >>> 24] << 24 | SBOX2[s0 >>> 16 & 255] << 16 | SBOX2[s1 >>> 8 & 255] << 8 | SBOX2[s22 & 255]) ^ keySchedule[ksRow++]; + M2[offset] = t0; + M2[offset + 1] = t1; + M2[offset + 2] = t22; + M2[offset + 3] = t3; + }, + keySize: 256 / 32 + }); + C2.AES = BlockCipher._createHelper(AES); + })(); + return CryptoJS.AES; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/tripledes.js +var require_tripledes = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/tripledes.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var WordArray = C_lib.WordArray; + var BlockCipher = C_lib.BlockCipher; + var C_algo = C2.algo; + var PC1 = [ + 57, + 49, + 41, + 33, + 25, + 17, + 9, + 1, + 58, + 50, + 42, + 34, + 26, + 18, + 10, + 2, + 59, + 51, + 43, + 35, + 27, + 19, + 11, + 3, + 60, + 52, + 44, + 36, + 63, + 55, + 47, + 39, + 31, + 23, + 15, + 7, + 62, + 54, + 46, + 38, + 30, + 22, + 14, + 6, + 61, + 53, + 45, + 37, + 29, + 21, + 13, + 5, + 28, + 20, + 12, + 4 + ]; + var PC2 = [ + 14, + 17, + 11, + 24, + 1, + 5, + 3, + 28, + 15, + 6, + 21, + 10, + 23, + 19, + 12, + 4, + 26, + 8, + 16, + 7, + 27, + 20, + 13, + 2, + 41, + 52, + 31, + 37, + 47, + 55, + 30, + 40, + 51, + 45, + 33, + 48, + 44, + 49, + 39, + 56, + 34, + 53, + 46, + 42, + 50, + 36, + 29, + 32 + ]; + var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; + var SBOX_P = [ + { + 0: 8421888, + 268435456: 32768, + 536870912: 8421378, + 805306368: 2, + 1073741824: 512, + 1342177280: 8421890, + 1610612736: 8389122, + 1879048192: 8388608, + 2147483648: 514, + 2415919104: 8389120, + 2684354560: 33280, + 2952790016: 8421376, + 3221225472: 32770, + 3489660928: 8388610, + 3758096384: 0, + 4026531840: 33282, + 134217728: 0, + 402653184: 8421890, + 671088640: 33282, + 939524096: 32768, + 1207959552: 8421888, + 1476395008: 512, + 1744830464: 8421378, + 2013265920: 2, + 2281701376: 8389120, + 2550136832: 33280, + 2818572288: 8421376, + 3087007744: 8389122, + 3355443200: 8388610, + 3623878656: 32770, + 3892314112: 514, + 4160749568: 8388608, + 1: 32768, + 268435457: 2, + 536870913: 8421888, + 805306369: 8388608, + 1073741825: 8421378, + 1342177281: 33280, + 1610612737: 512, + 1879048193: 8389122, + 2147483649: 8421890, + 2415919105: 8421376, + 2684354561: 8388610, + 2952790017: 33282, + 3221225473: 514, + 3489660929: 8389120, + 3758096385: 32770, + 4026531841: 0, + 134217729: 8421890, + 402653185: 8421376, + 671088641: 8388608, + 939524097: 512, + 1207959553: 32768, + 1476395009: 8388610, + 1744830465: 2, + 2013265921: 33282, + 2281701377: 32770, + 2550136833: 8389122, + 2818572289: 514, + 3087007745: 8421888, + 3355443201: 8389120, + 3623878657: 0, + 3892314113: 33280, + 4160749569: 8421378 + }, + { + 0: 1074282512, + 16777216: 16384, + 33554432: 524288, + 50331648: 1074266128, + 67108864: 1073741840, + 83886080: 1074282496, + 100663296: 1073758208, + 117440512: 16, + 134217728: 540672, + 150994944: 1073758224, + 167772160: 1073741824, + 184549376: 540688, + 201326592: 524304, + 218103808: 0, + 234881024: 16400, + 251658240: 1074266112, + 8388608: 1073758208, + 25165824: 540688, + 41943040: 16, + 58720256: 1073758224, + 75497472: 1074282512, + 92274688: 1073741824, + 109051904: 524288, + 125829120: 1074266128, + 142606336: 524304, + 159383552: 0, + 176160768: 16384, + 192937984: 1074266112, + 209715200: 1073741840, + 226492416: 540672, + 243269632: 1074282496, + 260046848: 16400, + 268435456: 0, + 285212672: 1074266128, + 301989888: 1073758224, + 318767104: 1074282496, + 335544320: 1074266112, + 352321536: 16, + 369098752: 540688, + 385875968: 16384, + 402653184: 16400, + 419430400: 524288, + 436207616: 524304, + 452984832: 1073741840, + 469762048: 540672, + 486539264: 1073758208, + 503316480: 1073741824, + 520093696: 1074282512, + 276824064: 540688, + 293601280: 524288, + 310378496: 1074266112, + 327155712: 16384, + 343932928: 1073758208, + 360710144: 1074282512, + 377487360: 16, + 394264576: 1073741824, + 411041792: 1074282496, + 427819008: 1073741840, + 444596224: 1073758224, + 461373440: 524304, + 478150656: 0, + 494927872: 16400, + 511705088: 1074266128, + 528482304: 540672 + }, + { + 0: 260, + 1048576: 0, + 2097152: 67109120, + 3145728: 65796, + 4194304: 65540, + 5242880: 67108868, + 6291456: 67174660, + 7340032: 67174400, + 8388608: 67108864, + 9437184: 67174656, + 10485760: 65792, + 11534336: 67174404, + 12582912: 67109124, + 13631488: 65536, + 14680064: 4, + 15728640: 256, + 524288: 67174656, + 1572864: 67174404, + 2621440: 0, + 3670016: 67109120, + 4718592: 67108868, + 5767168: 65536, + 6815744: 65540, + 7864320: 260, + 8912896: 4, + 9961472: 256, + 11010048: 67174400, + 12058624: 65796, + 13107200: 65792, + 14155776: 67109124, + 15204352: 67174660, + 16252928: 67108864, + 16777216: 67174656, + 17825792: 65540, + 18874368: 65536, + 19922944: 67109120, + 20971520: 256, + 22020096: 67174660, + 23068672: 67108868, + 24117248: 0, + 25165824: 67109124, + 26214400: 67108864, + 27262976: 4, + 28311552: 65792, + 29360128: 67174400, + 30408704: 260, + 31457280: 65796, + 32505856: 67174404, + 17301504: 67108864, + 18350080: 260, + 19398656: 67174656, + 20447232: 0, + 21495808: 65540, + 22544384: 67109120, + 23592960: 256, + 24641536: 67174404, + 25690112: 65536, + 26738688: 67174660, + 27787264: 65796, + 28835840: 67108868, + 29884416: 67109124, + 30932992: 67174400, + 31981568: 4, + 33030144: 65792 + }, + { + 0: 2151682048, + 65536: 2147487808, + 131072: 4198464, + 196608: 2151677952, + 262144: 0, + 327680: 4198400, + 393216: 2147483712, + 458752: 4194368, + 524288: 2147483648, + 589824: 4194304, + 655360: 64, + 720896: 2147487744, + 786432: 2151678016, + 851968: 4160, + 917504: 4096, + 983040: 2151682112, + 32768: 2147487808, + 98304: 64, + 163840: 2151678016, + 229376: 2147487744, + 294912: 4198400, + 360448: 2151682112, + 425984: 0, + 491520: 2151677952, + 557056: 4096, + 622592: 2151682048, + 688128: 4194304, + 753664: 4160, + 819200: 2147483648, + 884736: 4194368, + 950272: 4198464, + 1015808: 2147483712, + 1048576: 4194368, + 1114112: 4198400, + 1179648: 2147483712, + 1245184: 0, + 1310720: 4160, + 1376256: 2151678016, + 1441792: 2151682048, + 1507328: 2147487808, + 1572864: 2151682112, + 1638400: 2147483648, + 1703936: 2151677952, + 1769472: 4198464, + 1835008: 2147487744, + 1900544: 4194304, + 1966080: 64, + 2031616: 4096, + 1081344: 2151677952, + 1146880: 2151682112, + 1212416: 0, + 1277952: 4198400, + 1343488: 4194368, + 1409024: 2147483648, + 1474560: 2147487808, + 1540096: 64, + 1605632: 2147483712, + 1671168: 4096, + 1736704: 2147487744, + 1802240: 2151678016, + 1867776: 4160, + 1933312: 2151682048, + 1998848: 4194304, + 2064384: 4198464 + }, + { + 0: 128, + 4096: 17039360, + 8192: 262144, + 12288: 536870912, + 16384: 537133184, + 20480: 16777344, + 24576: 553648256, + 28672: 262272, + 32768: 16777216, + 36864: 537133056, + 40960: 536871040, + 45056: 553910400, + 49152: 553910272, + 53248: 0, + 57344: 17039488, + 61440: 553648128, + 2048: 17039488, + 6144: 553648256, + 10240: 128, + 14336: 17039360, + 18432: 262144, + 22528: 537133184, + 26624: 553910272, + 30720: 536870912, + 34816: 537133056, + 38912: 0, + 43008: 553910400, + 47104: 16777344, + 51200: 536871040, + 55296: 553648128, + 59392: 16777216, + 63488: 262272, + 65536: 262144, + 69632: 128, + 73728: 536870912, + 77824: 553648256, + 81920: 16777344, + 86016: 553910272, + 90112: 537133184, + 94208: 16777216, + 98304: 553910400, + 102400: 553648128, + 106496: 17039360, + 110592: 537133056, + 114688: 262272, + 118784: 536871040, + 122880: 0, + 126976: 17039488, + 67584: 553648256, + 71680: 16777216, + 75776: 17039360, + 79872: 537133184, + 83968: 536870912, + 88064: 17039488, + 92160: 128, + 96256: 553910272, + 100352: 262272, + 104448: 553910400, + 108544: 0, + 112640: 553648128, + 116736: 16777344, + 120832: 262144, + 124928: 537133056, + 129024: 536871040 + }, + { + 0: 268435464, + 256: 8192, + 512: 270532608, + 768: 270540808, + 1024: 268443648, + 1280: 2097152, + 1536: 2097160, + 1792: 268435456, + 2048: 0, + 2304: 268443656, + 2560: 2105344, + 2816: 8, + 3072: 270532616, + 3328: 2105352, + 3584: 8200, + 3840: 270540800, + 128: 270532608, + 384: 270540808, + 640: 8, + 896: 2097152, + 1152: 2105352, + 1408: 268435464, + 1664: 268443648, + 1920: 8200, + 2176: 2097160, + 2432: 8192, + 2688: 268443656, + 2944: 270532616, + 3200: 0, + 3456: 270540800, + 3712: 2105344, + 3968: 268435456, + 4096: 268443648, + 4352: 270532616, + 4608: 270540808, + 4864: 8200, + 5120: 2097152, + 5376: 268435456, + 5632: 268435464, + 5888: 2105344, + 6144: 2105352, + 6400: 0, + 6656: 8, + 6912: 270532608, + 7168: 8192, + 7424: 268443656, + 7680: 270540800, + 7936: 2097160, + 4224: 8, + 4480: 2105344, + 4736: 2097152, + 4992: 268435464, + 5248: 268443648, + 5504: 8200, + 5760: 270540808, + 6016: 270532608, + 6272: 270540800, + 6528: 270532616, + 6784: 8192, + 7040: 2105352, + 7296: 2097160, + 7552: 0, + 7808: 268435456, + 8064: 268443656 + }, + { + 0: 1048576, + 16: 33555457, + 32: 1024, + 48: 1049601, + 64: 34604033, + 80: 0, + 96: 1, + 112: 34603009, + 128: 33555456, + 144: 1048577, + 160: 33554433, + 176: 34604032, + 192: 34603008, + 208: 1025, + 224: 1049600, + 240: 33554432, + 8: 34603009, + 24: 0, + 40: 33555457, + 56: 34604032, + 72: 1048576, + 88: 33554433, + 104: 33554432, + 120: 1025, + 136: 1049601, + 152: 33555456, + 168: 34603008, + 184: 1048577, + 200: 1024, + 216: 34604033, + 232: 1, + 248: 1049600, + 256: 33554432, + 272: 1048576, + 288: 33555457, + 304: 34603009, + 320: 1048577, + 336: 33555456, + 352: 34604032, + 368: 1049601, + 384: 1025, + 400: 34604033, + 416: 1049600, + 432: 1, + 448: 0, + 464: 34603008, + 480: 33554433, + 496: 1024, + 264: 1049600, + 280: 33555457, + 296: 34603009, + 312: 1, + 328: 33554432, + 344: 1048576, + 360: 1025, + 376: 34604032, + 392: 33554433, + 408: 34603008, + 424: 0, + 440: 34604033, + 456: 1049601, + 472: 1024, + 488: 33555456, + 504: 1048577 + }, + { + 0: 134219808, + 1: 131072, + 2: 134217728, + 3: 32, + 4: 131104, + 5: 134350880, + 6: 134350848, + 7: 2048, + 8: 134348800, + 9: 134219776, + 10: 133120, + 11: 134348832, + 12: 2080, + 13: 0, + 14: 134217760, + 15: 133152, + 2147483648: 2048, + 2147483649: 134350880, + 2147483650: 134219808, + 2147483651: 134217728, + 2147483652: 134348800, + 2147483653: 133120, + 2147483654: 133152, + 2147483655: 32, + 2147483656: 134217760, + 2147483657: 2080, + 2147483658: 131104, + 2147483659: 134350848, + 2147483660: 0, + 2147483661: 134348832, + 2147483662: 134219776, + 2147483663: 131072, + 16: 133152, + 17: 134350848, + 18: 32, + 19: 2048, + 20: 134219776, + 21: 134217760, + 22: 134348832, + 23: 131072, + 24: 0, + 25: 131104, + 26: 134348800, + 27: 134219808, + 28: 134350880, + 29: 133120, + 30: 2080, + 31: 134217728, + 2147483664: 131072, + 2147483665: 2048, + 2147483666: 134348832, + 2147483667: 133152, + 2147483668: 32, + 2147483669: 134348800, + 2147483670: 134217728, + 2147483671: 134219808, + 2147483672: 134350880, + 2147483673: 134217760, + 2147483674: 134219776, + 2147483675: 0, + 2147483676: 133120, + 2147483677: 2080, + 2147483678: 131104, + 2147483679: 134350848 + } + ]; + var SBOX_MASK = [ + 4160749569, + 528482304, + 33030144, + 2064384, + 129024, + 8064, + 504, + 2147483679 + ]; + var DES = C_algo.DES = BlockCipher.extend({ + _doReset: function() { + var key = this._key; + var keyWords = key.words; + var keyBits = []; + for (var i3 = 0; i3 < 56; i3++) { + var keyBitPos = PC1[i3] - 1; + keyBits[i3] = keyWords[keyBitPos >>> 5] >>> 31 - keyBitPos % 32 & 1; + } + var subKeys = this._subKeys = []; + for (var nSubKey = 0; nSubKey < 16; nSubKey++) { + var subKey = subKeys[nSubKey] = []; + var bitShift = BIT_SHIFTS[nSubKey]; + for (var i3 = 0; i3 < 24; i3++) { + subKey[i3 / 6 | 0] |= keyBits[(PC2[i3] - 1 + bitShift) % 28] << 31 - i3 % 6; + subKey[4 + (i3 / 6 | 0)] |= keyBits[28 + (PC2[i3 + 24] - 1 + bitShift) % 28] << 31 - i3 % 6; + } + subKey[0] = subKey[0] << 1 | subKey[0] >>> 31; + for (var i3 = 1; i3 < 7; i3++) { + subKey[i3] = subKey[i3] >>> (i3 - 1) * 4 + 3; + } + subKey[7] = subKey[7] << 5 | subKey[7] >>> 27; + } + var invSubKeys = this._invSubKeys = []; + for (var i3 = 0; i3 < 16; i3++) { + invSubKeys[i3] = subKeys[15 - i3]; + } + }, + encryptBlock: function(M2, offset) { + this._doCryptBlock(M2, offset, this._subKeys); + }, + decryptBlock: function(M2, offset) { + this._doCryptBlock(M2, offset, this._invSubKeys); + }, + _doCryptBlock: function(M2, offset, subKeys) { + this._lBlock = M2[offset]; + this._rBlock = M2[offset + 1]; + exchangeLR.call(this, 4, 252645135); + exchangeLR.call(this, 16, 65535); + exchangeRL.call(this, 2, 858993459); + exchangeRL.call(this, 8, 16711935); + exchangeLR.call(this, 1, 1431655765); + for (var round = 0; round < 16; round++) { + var subKey = subKeys[round]; + var lBlock = this._lBlock; + var rBlock = this._rBlock; + var f2 = 0; + for (var i3 = 0; i3 < 8; i3++) { + f2 |= SBOX_P[i3][((rBlock ^ subKey[i3]) & SBOX_MASK[i3]) >>> 0]; + } + this._lBlock = rBlock; + this._rBlock = lBlock ^ f2; + } + var t3 = this._lBlock; + this._lBlock = this._rBlock; + this._rBlock = t3; + exchangeLR.call(this, 1, 1431655765); + exchangeRL.call(this, 8, 16711935); + exchangeRL.call(this, 2, 858993459); + exchangeLR.call(this, 16, 65535); + exchangeLR.call(this, 4, 252645135); + M2[offset] = this._lBlock; + M2[offset + 1] = this._rBlock; + }, + keySize: 64 / 32, + ivSize: 64 / 32, + blockSize: 64 / 32 + }); + function exchangeLR(offset, mask) { + var t3 = (this._lBlock >>> offset ^ this._rBlock) & mask; + this._rBlock ^= t3; + this._lBlock ^= t3 << offset; + } + function exchangeRL(offset, mask) { + var t3 = (this._rBlock >>> offset ^ this._lBlock) & mask; + this._lBlock ^= t3; + this._rBlock ^= t3 << offset; + } + C2.DES = BlockCipher._createHelper(DES); + var TripleDES = C_algo.TripleDES = BlockCipher.extend({ + _doReset: function() { + var key = this._key; + var keyWords = key.words; + if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) { + throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."); + } + var key1 = keyWords.slice(0, 2); + var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4); + var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6); + this._des1 = DES.createEncryptor(WordArray.create(key1)); + this._des2 = DES.createEncryptor(WordArray.create(key2)); + this._des3 = DES.createEncryptor(WordArray.create(key3)); + }, + encryptBlock: function(M2, offset) { + this._des1.encryptBlock(M2, offset); + this._des2.decryptBlock(M2, offset); + this._des3.encryptBlock(M2, offset); + }, + decryptBlock: function(M2, offset) { + this._des3.decryptBlock(M2, offset); + this._des2.encryptBlock(M2, offset); + this._des1.decryptBlock(M2, offset); + }, + keySize: 192 / 32, + ivSize: 64 / 32, + blockSize: 64 / 32 + }); + C2.TripleDES = BlockCipher._createHelper(TripleDES); + })(); + return CryptoJS.TripleDES; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rc4.js +var require_rc4 = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rc4.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C2.algo; + var RC4 = C_algo.RC4 = StreamCipher.extend({ + _doReset: function() { + var key = this._key; + var keyWords = key.words; + var keySigBytes = key.sigBytes; + var S3 = this._S = []; + for (var i3 = 0; i3 < 256; i3++) { + S3[i3] = i3; + } + for (var i3 = 0, j3 = 0; i3 < 256; i3++) { + var keyByteIndex = i3 % keySigBytes; + var keyByte = keyWords[keyByteIndex >>> 2] >>> 24 - keyByteIndex % 4 * 8 & 255; + j3 = (j3 + S3[i3] + keyByte) % 256; + var t3 = S3[i3]; + S3[i3] = S3[j3]; + S3[j3] = t3; + } + this._i = this._j = 0; + }, + _doProcessBlock: function(M2, offset) { + M2[offset] ^= generateKeystreamWord.call(this); + }, + keySize: 256 / 32, + ivSize: 0 + }); + function generateKeystreamWord() { + var S3 = this._S; + var i3 = this._i; + var j3 = this._j; + var keystreamWord = 0; + for (var n3 = 0; n3 < 4; n3++) { + i3 = (i3 + 1) % 256; + j3 = (j3 + S3[i3]) % 256; + var t3 = S3[i3]; + S3[i3] = S3[j3]; + S3[j3] = t3; + keystreamWord |= S3[(S3[i3] + S3[j3]) % 256] << 24 - n3 * 8; + } + this._i = i3; + this._j = j3; + return keystreamWord; + } + C2.RC4 = StreamCipher._createHelper(RC4); + var RC4Drop = C_algo.RC4Drop = RC4.extend({ + /** + * Configuration options. + * + * @property {number} drop The number of keystream words to drop. Default 192 + */ + cfg: RC4.cfg.extend({ + drop: 192 + }), + _doReset: function() { + RC4._doReset.call(this); + for (var i3 = this.cfg.drop; i3 > 0; i3--) { + generateKeystreamWord.call(this); + } + } + }); + C2.RC4Drop = StreamCipher._createHelper(RC4Drop); + })(); + return CryptoJS.RC4; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rabbit.js +var require_rabbit = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rabbit.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C2.algo; + var S3 = []; + var C_ = []; + var G2 = []; + var Rabbit = C_algo.Rabbit = StreamCipher.extend({ + _doReset: function() { + var K3 = this._key.words; + var iv = this.cfg.iv; + for (var i3 = 0; i3 < 4; i3++) { + K3[i3] = (K3[i3] << 8 | K3[i3] >>> 24) & 16711935 | (K3[i3] << 24 | K3[i3] >>> 8) & 4278255360; + } + var X2 = this._X = [ + K3[0], + K3[3] << 16 | K3[2] >>> 16, + K3[1], + K3[0] << 16 | K3[3] >>> 16, + K3[2], + K3[1] << 16 | K3[0] >>> 16, + K3[3], + K3[2] << 16 | K3[1] >>> 16 + ]; + var C3 = this._C = [ + K3[2] << 16 | K3[2] >>> 16, + K3[0] & 4294901760 | K3[1] & 65535, + K3[3] << 16 | K3[3] >>> 16, + K3[1] & 4294901760 | K3[2] & 65535, + K3[0] << 16 | K3[0] >>> 16, + K3[2] & 4294901760 | K3[3] & 65535, + K3[1] << 16 | K3[1] >>> 16, + K3[3] & 4294901760 | K3[0] & 65535 + ]; + this._b = 0; + for (var i3 = 0; i3 < 4; i3++) { + nextState.call(this); + } + for (var i3 = 0; i3 < 8; i3++) { + C3[i3] ^= X2[i3 + 4 & 7]; + } + if (iv) { + var IV = iv.words; + var IV_0 = IV[0]; + var IV_1 = IV[1]; + var i0 = (IV_0 << 8 | IV_0 >>> 24) & 16711935 | (IV_0 << 24 | IV_0 >>> 8) & 4278255360; + var i22 = (IV_1 << 8 | IV_1 >>> 24) & 16711935 | (IV_1 << 24 | IV_1 >>> 8) & 4278255360; + var i1 = i0 >>> 16 | i22 & 4294901760; + var i32 = i22 << 16 | i0 & 65535; + C3[0] ^= i0; + C3[1] ^= i1; + C3[2] ^= i22; + C3[3] ^= i32; + C3[4] ^= i0; + C3[5] ^= i1; + C3[6] ^= i22; + C3[7] ^= i32; + for (var i3 = 0; i3 < 4; i3++) { + nextState.call(this); + } + } + }, + _doProcessBlock: function(M2, offset) { + var X2 = this._X; + nextState.call(this); + S3[0] = X2[0] ^ X2[5] >>> 16 ^ X2[3] << 16; + S3[1] = X2[2] ^ X2[7] >>> 16 ^ X2[5] << 16; + S3[2] = X2[4] ^ X2[1] >>> 16 ^ X2[7] << 16; + S3[3] = X2[6] ^ X2[3] >>> 16 ^ X2[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + S3[i3] = (S3[i3] << 8 | S3[i3] >>> 24) & 16711935 | (S3[i3] << 24 | S3[i3] >>> 8) & 4278255360; + M2[offset + i3] ^= S3[i3]; + } + }, + blockSize: 128 / 32, + ivSize: 64 / 32 + }); + function nextState() { + var X2 = this._X; + var C3 = this._C; + for (var i3 = 0; i3 < 8; i3++) { + C_[i3] = C3[i3]; + } + C3[0] = C3[0] + 1295307597 + this._b | 0; + C3[1] = C3[1] + 3545052371 + (C3[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0; + C3[2] = C3[2] + 886263092 + (C3[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0; + C3[3] = C3[3] + 1295307597 + (C3[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0; + C3[4] = C3[4] + 3545052371 + (C3[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0; + C3[5] = C3[5] + 886263092 + (C3[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0; + C3[6] = C3[6] + 1295307597 + (C3[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0; + C3[7] = C3[7] + 3545052371 + (C3[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0; + this._b = C3[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; + for (var i3 = 0; i3 < 8; i3++) { + var gx = X2[i3] + C3[i3]; + var ga = gx & 65535; + var gb = gx >>> 16; + var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb; + var gl = ((gx & 4294901760) * gx | 0) + ((gx & 65535) * gx | 0); + G2[i3] = gh ^ gl; + } + X2[0] = G2[0] + (G2[7] << 16 | G2[7] >>> 16) + (G2[6] << 16 | G2[6] >>> 16) | 0; + X2[1] = G2[1] + (G2[0] << 8 | G2[0] >>> 24) + G2[7] | 0; + X2[2] = G2[2] + (G2[1] << 16 | G2[1] >>> 16) + (G2[0] << 16 | G2[0] >>> 16) | 0; + X2[3] = G2[3] + (G2[2] << 8 | G2[2] >>> 24) + G2[1] | 0; + X2[4] = G2[4] + (G2[3] << 16 | G2[3] >>> 16) + (G2[2] << 16 | G2[2] >>> 16) | 0; + X2[5] = G2[5] + (G2[4] << 8 | G2[4] >>> 24) + G2[3] | 0; + X2[6] = G2[6] + (G2[5] << 16 | G2[5] >>> 16) + (G2[4] << 16 | G2[4] >>> 16) | 0; + X2[7] = G2[7] + (G2[6] << 8 | G2[6] >>> 24) + G2[5] | 0; + } + C2.Rabbit = StreamCipher._createHelper(Rabbit); + })(); + return CryptoJS.Rabbit; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rabbit-legacy.js +var require_rabbit_legacy = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/rabbit-legacy.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); + } else { + factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + (function() { + var C2 = CryptoJS; + var C_lib = C2.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C2.algo; + var S3 = []; + var C_ = []; + var G2 = []; + var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({ + _doReset: function() { + var K3 = this._key.words; + var iv = this.cfg.iv; + var X2 = this._X = [ + K3[0], + K3[3] << 16 | K3[2] >>> 16, + K3[1], + K3[0] << 16 | K3[3] >>> 16, + K3[2], + K3[1] << 16 | K3[0] >>> 16, + K3[3], + K3[2] << 16 | K3[1] >>> 16 + ]; + var C3 = this._C = [ + K3[2] << 16 | K3[2] >>> 16, + K3[0] & 4294901760 | K3[1] & 65535, + K3[3] << 16 | K3[3] >>> 16, + K3[1] & 4294901760 | K3[2] & 65535, + K3[0] << 16 | K3[0] >>> 16, + K3[2] & 4294901760 | K3[3] & 65535, + K3[1] << 16 | K3[1] >>> 16, + K3[3] & 4294901760 | K3[0] & 65535 + ]; + this._b = 0; + for (var i3 = 0; i3 < 4; i3++) { + nextState.call(this); + } + for (var i3 = 0; i3 < 8; i3++) { + C3[i3] ^= X2[i3 + 4 & 7]; + } + if (iv) { + var IV = iv.words; + var IV_0 = IV[0]; + var IV_1 = IV[1]; + var i0 = (IV_0 << 8 | IV_0 >>> 24) & 16711935 | (IV_0 << 24 | IV_0 >>> 8) & 4278255360; + var i22 = (IV_1 << 8 | IV_1 >>> 24) & 16711935 | (IV_1 << 24 | IV_1 >>> 8) & 4278255360; + var i1 = i0 >>> 16 | i22 & 4294901760; + var i32 = i22 << 16 | i0 & 65535; + C3[0] ^= i0; + C3[1] ^= i1; + C3[2] ^= i22; + C3[3] ^= i32; + C3[4] ^= i0; + C3[5] ^= i1; + C3[6] ^= i22; + C3[7] ^= i32; + for (var i3 = 0; i3 < 4; i3++) { + nextState.call(this); + } + } + }, + _doProcessBlock: function(M2, offset) { + var X2 = this._X; + nextState.call(this); + S3[0] = X2[0] ^ X2[5] >>> 16 ^ X2[3] << 16; + S3[1] = X2[2] ^ X2[7] >>> 16 ^ X2[5] << 16; + S3[2] = X2[4] ^ X2[1] >>> 16 ^ X2[7] << 16; + S3[3] = X2[6] ^ X2[3] >>> 16 ^ X2[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + S3[i3] = (S3[i3] << 8 | S3[i3] >>> 24) & 16711935 | (S3[i3] << 24 | S3[i3] >>> 8) & 4278255360; + M2[offset + i3] ^= S3[i3]; + } + }, + blockSize: 128 / 32, + ivSize: 64 / 32 + }); + function nextState() { + var X2 = this._X; + var C3 = this._C; + for (var i3 = 0; i3 < 8; i3++) { + C_[i3] = C3[i3]; + } + C3[0] = C3[0] + 1295307597 + this._b | 0; + C3[1] = C3[1] + 3545052371 + (C3[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0; + C3[2] = C3[2] + 886263092 + (C3[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0; + C3[3] = C3[3] + 1295307597 + (C3[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0; + C3[4] = C3[4] + 3545052371 + (C3[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0; + C3[5] = C3[5] + 886263092 + (C3[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0; + C3[6] = C3[6] + 1295307597 + (C3[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0; + C3[7] = C3[7] + 3545052371 + (C3[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0; + this._b = C3[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; + for (var i3 = 0; i3 < 8; i3++) { + var gx = X2[i3] + C3[i3]; + var ga = gx & 65535; + var gb = gx >>> 16; + var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb; + var gl = ((gx & 4294901760) * gx | 0) + ((gx & 65535) * gx | 0); + G2[i3] = gh ^ gl; + } + X2[0] = G2[0] + (G2[7] << 16 | G2[7] >>> 16) + (G2[6] << 16 | G2[6] >>> 16) | 0; + X2[1] = G2[1] + (G2[0] << 8 | G2[0] >>> 24) + G2[7] | 0; + X2[2] = G2[2] + (G2[1] << 16 | G2[1] >>> 16) + (G2[0] << 16 | G2[0] >>> 16) | 0; + X2[3] = G2[3] + (G2[2] << 8 | G2[2] >>> 24) + G2[1] | 0; + X2[4] = G2[4] + (G2[3] << 16 | G2[3] >>> 16) + (G2[2] << 16 | G2[2] >>> 16) | 0; + X2[5] = G2[5] + (G2[4] << 8 | G2[4] >>> 24) + G2[3] | 0; + X2[6] = G2[6] + (G2[5] << 16 | G2[5] >>> 16) + (G2[4] << 16 | G2[4] >>> 16) | 0; + X2[7] = G2[7] + (G2[6] << 8 | G2[6] >>> 24) + G2[5] | 0; + } + C2.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy); + })(); + return CryptoJS.RabbitLegacy; + }); + } +}); + +// ../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/index.js +var require_crypto_js = __commonJS({ + "../../.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-61073dadd1.zip/node_modules/crypto-js/index.js"(exports2, module2) { + (function(root2, factory, undef) { + if (typeof exports2 === "object") { + module2.exports = exports2 = factory(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy()); + } else if (typeof define === "function" && define.amd) { + define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./enc-base64url", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy"], factory); + } else { + root2.CryptoJS = factory(root2.CryptoJS); + } + })(exports2, function(CryptoJS) { + return CryptoJS; + }); + } +}); + +// ../../.yarn/cache/safe-stable-stringify-npm-2.4.3-d895741b40-a948b6699f.zip/node_modules/safe-stable-stringify/index.js +var require_safe_stable_stringify = __commonJS({ + "../../.yarn/cache/safe-stable-stringify-npm-2.4.3-d895741b40-a948b6699f.zip/node_modules/safe-stable-stringify/index.js"(exports2, module2) { + "use strict"; + var { hasOwnProperty: hasOwnProperty14 } = Object.prototype; + var stringify3 = configure2(); + stringify3.configure = configure2; + stringify3.stringify = stringify3; + stringify3.default = stringify3; + exports2.stringify = stringify3; + exports2.configure = configure2; + module2.exports = stringify3; + var strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/; + function strEscape(str2) { + if (str2.length < 5e3 && !strEscapeSequencesRegExp.test(str2)) { + return `"${str2}"`; + } + return JSON.stringify(str2); + } + function insertSort(array) { + if (array.length > 200) { + return array.sort(); + } + for (let i3 = 1; i3 < array.length; i3++) { + const currentValue = array[i3]; + let position = i3; + while (position !== 0 && array[position - 1] > currentValue) { + array[position] = array[position - 1]; + position--; + } + array[position] = currentValue; + } + return array; + } + var typedArrayPrototypeGetSymbolToStringTag = Object.getOwnPropertyDescriptor( + Object.getPrototypeOf( + Object.getPrototypeOf( + new Int8Array() + ) + ), + Symbol.toStringTag + ).get; + function isTypedArrayWithEntries(value) { + return typedArrayPrototypeGetSymbolToStringTag.call(value) !== void 0 && value.length !== 0; + } + function stringifyTypedArray(array, separator, maximumBreadth) { + if (array.length < maximumBreadth) { + maximumBreadth = array.length; + } + const whitespace = separator === "," ? "" : " "; + let res = `"0":${whitespace}${array[0]}`; + for (let i3 = 1; i3 < maximumBreadth; i3++) { + res += `${separator}"${i3}":${whitespace}${array[i3]}`; + } + return res; + } + function getCircularValueOption(options2) { + if (hasOwnProperty14.call(options2, "circularValue")) { + const circularValue = options2.circularValue; + if (typeof circularValue === "string") { + return `"${circularValue}"`; + } + if (circularValue == null) { + return circularValue; + } + if (circularValue === Error || circularValue === TypeError) { + return { + toString() { + throw new TypeError("Converting circular structure to JSON"); + } + }; + } + throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined'); + } + return '"[Circular]"'; + } + function getBooleanOption(options2, key) { + let value; + if (hasOwnProperty14.call(options2, key)) { + value = options2[key]; + if (typeof value !== "boolean") { + throw new TypeError(`The "${key}" argument must be of type boolean`); + } + } + return value === void 0 ? true : value; + } + function getPositiveIntegerOption(options2, key) { + let value; + if (hasOwnProperty14.call(options2, key)) { + value = options2[key]; + if (typeof value !== "number") { + throw new TypeError(`The "${key}" argument must be of type number`); + } + if (!Number.isInteger(value)) { + throw new TypeError(`The "${key}" argument must be an integer`); + } + if (value < 1) { + throw new RangeError(`The "${key}" argument must be >= 1`); + } + } + return value === void 0 ? Infinity : value; + } + function getItemCount(number) { + if (number === 1) { + return "1 item"; + } + return `${number} items`; + } + function getUniqueReplacerSet(replacerArray) { + const replacerSet = /* @__PURE__ */ new Set(); + for (const value of replacerArray) { + if (typeof value === "string" || typeof value === "number") { + replacerSet.add(String(value)); + } + } + return replacerSet; + } + function getStrictOption(options2) { + if (hasOwnProperty14.call(options2, "strict")) { + const value = options2.strict; + if (typeof value !== "boolean") { + throw new TypeError('The "strict" argument must be of type boolean'); + } + if (value) { + return (value2) => { + let message = `Object can not safely be stringified. Received type ${typeof value2}`; + if (typeof value2 !== "function") + message += ` (${value2.toString()})`; + throw new Error(message); + }; + } + } + } + function configure2(options2) { + options2 = { ...options2 }; + const fail = getStrictOption(options2); + if (fail) { + if (options2.bigint === void 0) { + options2.bigint = false; + } + if (!("circularValue" in options2)) { + options2.circularValue = Error; + } + } + const circularValue = getCircularValueOption(options2); + const bigint = getBooleanOption(options2, "bigint"); + const deterministic = getBooleanOption(options2, "deterministic"); + const maximumDepth = getPositiveIntegerOption(options2, "maximumDepth"); + const maximumBreadth = getPositiveIntegerOption(options2, "maximumBreadth"); + function stringifyFnReplacer(key, parent2, stack, replacer, spacer, indentation) { + let value = parent2[key]; + if (typeof value === "object" && value !== null && typeof value.toJSON === "function") { + value = value.toJSON(key); + } + value = replacer.call(parent2, key, value); + switch (typeof value) { + case "string": + return strEscape(value); + case "object": { + if (value === null) { + return "null"; + } + if (stack.indexOf(value) !== -1) { + return circularValue; + } + let res = ""; + let join2 = ","; + const originalIndentation = indentation; + if (Array.isArray(value)) { + if (value.length === 0) { + return "[]"; + } + if (maximumDepth < stack.length + 1) { + return '"[Array]"'; + } + stack.push(value); + if (spacer !== "") { + indentation += spacer; + res += ` +${indentation}`; + join2 = `, +${indentation}`; + } + const maximumValuesToStringify = Math.min(value.length, maximumBreadth); + let i3 = 0; + for (; i3 < maximumValuesToStringify - 1; i3++) { + const tmp2 = stringifyFnReplacer(String(i3), value, stack, replacer, spacer, indentation); + res += tmp2 !== void 0 ? tmp2 : "null"; + res += join2; + } + const tmp = stringifyFnReplacer(String(i3), value, stack, replacer, spacer, indentation); + res += tmp !== void 0 ? tmp : "null"; + if (value.length - 1 > maximumBreadth) { + const removedKeys = value.length - maximumBreadth - 1; + res += `${join2}"... ${getItemCount(removedKeys)} not stringified"`; + } + if (spacer !== "") { + res += ` +${originalIndentation}`; + } + stack.pop(); + return `[${res}]`; + } + let keys3 = Object.keys(value); + const keyLength = keys3.length; + if (keyLength === 0) { + return "{}"; + } + if (maximumDepth < stack.length + 1) { + return '"[Object]"'; + } + let whitespace = ""; + let separator = ""; + if (spacer !== "") { + indentation += spacer; + join2 = `, +${indentation}`; + whitespace = " "; + } + const maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth); + if (deterministic && !isTypedArrayWithEntries(value)) { + keys3 = insertSort(keys3); + } + stack.push(value); + for (let i3 = 0; i3 < maximumPropertiesToStringify; i3++) { + const key2 = keys3[i3]; + const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation); + if (tmp !== void 0) { + res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`; + separator = join2; + } + } + if (keyLength > maximumBreadth) { + const removedKeys = keyLength - maximumBreadth; + res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`; + separator = join2; + } + if (spacer !== "" && separator.length > 1) { + res = ` +${indentation}${res} +${originalIndentation}`; + } + stack.pop(); + return `{${res}}`; + } + case "number": + return isFinite(value) ? String(value) : fail ? fail(value) : "null"; + case "boolean": + return value === true ? "true" : "false"; + case "undefined": + return void 0; + case "bigint": + if (bigint) { + return String(value); + } + default: + return fail ? fail(value) : void 0; + } + } + function stringifyArrayReplacer(key, value, stack, replacer, spacer, indentation) { + if (typeof value === "object" && value !== null && typeof value.toJSON === "function") { + value = value.toJSON(key); + } + switch (typeof value) { + case "string": + return strEscape(value); + case "object": { + if (value === null) { + return "null"; + } + if (stack.indexOf(value) !== -1) { + return circularValue; + } + const originalIndentation = indentation; + let res = ""; + let join2 = ","; + if (Array.isArray(value)) { + if (value.length === 0) { + return "[]"; + } + if (maximumDepth < stack.length + 1) { + return '"[Array]"'; + } + stack.push(value); + if (spacer !== "") { + indentation += spacer; + res += ` +${indentation}`; + join2 = `, +${indentation}`; + } + const maximumValuesToStringify = Math.min(value.length, maximumBreadth); + let i3 = 0; + for (; i3 < maximumValuesToStringify - 1; i3++) { + const tmp2 = stringifyArrayReplacer(String(i3), value[i3], stack, replacer, spacer, indentation); + res += tmp2 !== void 0 ? tmp2 : "null"; + res += join2; + } + const tmp = stringifyArrayReplacer(String(i3), value[i3], stack, replacer, spacer, indentation); + res += tmp !== void 0 ? tmp : "null"; + if (value.length - 1 > maximumBreadth) { + const removedKeys = value.length - maximumBreadth - 1; + res += `${join2}"... ${getItemCount(removedKeys)} not stringified"`; + } + if (spacer !== "") { + res += ` +${originalIndentation}`; + } + stack.pop(); + return `[${res}]`; + } + stack.push(value); + let whitespace = ""; + if (spacer !== "") { + indentation += spacer; + join2 = `, +${indentation}`; + whitespace = " "; + } + let separator = ""; + for (const key2 of replacer) { + const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation); + if (tmp !== void 0) { + res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`; + separator = join2; + } + } + if (spacer !== "" && separator.length > 1) { + res = ` +${indentation}${res} +${originalIndentation}`; + } + stack.pop(); + return `{${res}}`; + } + case "number": + return isFinite(value) ? String(value) : fail ? fail(value) : "null"; + case "boolean": + return value === true ? "true" : "false"; + case "undefined": + return void 0; + case "bigint": + if (bigint) { + return String(value); + } + default: + return fail ? fail(value) : void 0; + } + } + function stringifyIndent(key, value, stack, spacer, indentation) { + switch (typeof value) { + case "string": + return strEscape(value); + case "object": { + if (value === null) { + return "null"; + } + if (typeof value.toJSON === "function") { + value = value.toJSON(key); + if (typeof value !== "object") { + return stringifyIndent(key, value, stack, spacer, indentation); + } + if (value === null) { + return "null"; + } + } + if (stack.indexOf(value) !== -1) { + return circularValue; + } + const originalIndentation = indentation; + if (Array.isArray(value)) { + if (value.length === 0) { + return "[]"; + } + if (maximumDepth < stack.length + 1) { + return '"[Array]"'; + } + stack.push(value); + indentation += spacer; + let res2 = ` +${indentation}`; + const join3 = `, +${indentation}`; + const maximumValuesToStringify = Math.min(value.length, maximumBreadth); + let i3 = 0; + for (; i3 < maximumValuesToStringify - 1; i3++) { + const tmp2 = stringifyIndent(String(i3), value[i3], stack, spacer, indentation); + res2 += tmp2 !== void 0 ? tmp2 : "null"; + res2 += join3; + } + const tmp = stringifyIndent(String(i3), value[i3], stack, spacer, indentation); + res2 += tmp !== void 0 ? tmp : "null"; + if (value.length - 1 > maximumBreadth) { + const removedKeys = value.length - maximumBreadth - 1; + res2 += `${join3}"... ${getItemCount(removedKeys)} not stringified"`; + } + res2 += ` +${originalIndentation}`; + stack.pop(); + return `[${res2}]`; + } + let keys3 = Object.keys(value); + const keyLength = keys3.length; + if (keyLength === 0) { + return "{}"; + } + if (maximumDepth < stack.length + 1) { + return '"[Object]"'; + } + indentation += spacer; + const join2 = `, +${indentation}`; + let res = ""; + let separator = ""; + let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth); + if (isTypedArrayWithEntries(value)) { + res += stringifyTypedArray(value, join2, maximumBreadth); + keys3 = keys3.slice(value.length); + maximumPropertiesToStringify -= value.length; + separator = join2; + } + if (deterministic) { + keys3 = insertSort(keys3); + } + stack.push(value); + for (let i3 = 0; i3 < maximumPropertiesToStringify; i3++) { + const key2 = keys3[i3]; + const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation); + if (tmp !== void 0) { + res += `${separator}${strEscape(key2)}: ${tmp}`; + separator = join2; + } + } + if (keyLength > maximumBreadth) { + const removedKeys = keyLength - maximumBreadth; + res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`; + separator = join2; + } + if (separator !== "") { + res = ` +${indentation}${res} +${originalIndentation}`; + } + stack.pop(); + return `{${res}}`; + } + case "number": + return isFinite(value) ? String(value) : fail ? fail(value) : "null"; + case "boolean": + return value === true ? "true" : "false"; + case "undefined": + return void 0; + case "bigint": + if (bigint) { + return String(value); + } + default: + return fail ? fail(value) : void 0; + } + } + function stringifySimple(key, value, stack) { + switch (typeof value) { + case "string": + return strEscape(value); + case "object": { + if (value === null) { + return "null"; + } + if (typeof value.toJSON === "function") { + value = value.toJSON(key); + if (typeof value !== "object") { + return stringifySimple(key, value, stack); + } + if (value === null) { + return "null"; + } + } + if (stack.indexOf(value) !== -1) { + return circularValue; + } + let res = ""; + if (Array.isArray(value)) { + if (value.length === 0) { + return "[]"; + } + if (maximumDepth < stack.length + 1) { + return '"[Array]"'; + } + stack.push(value); + const maximumValuesToStringify = Math.min(value.length, maximumBreadth); + let i3 = 0; + for (; i3 < maximumValuesToStringify - 1; i3++) { + const tmp2 = stringifySimple(String(i3), value[i3], stack); + res += tmp2 !== void 0 ? tmp2 : "null"; + res += ","; + } + const tmp = stringifySimple(String(i3), value[i3], stack); + res += tmp !== void 0 ? tmp : "null"; + if (value.length - 1 > maximumBreadth) { + const removedKeys = value.length - maximumBreadth - 1; + res += `,"... ${getItemCount(removedKeys)} not stringified"`; + } + stack.pop(); + return `[${res}]`; + } + let keys3 = Object.keys(value); + const keyLength = keys3.length; + if (keyLength === 0) { + return "{}"; + } + if (maximumDepth < stack.length + 1) { + return '"[Object]"'; + } + let separator = ""; + let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth); + if (isTypedArrayWithEntries(value)) { + res += stringifyTypedArray(value, ",", maximumBreadth); + keys3 = keys3.slice(value.length); + maximumPropertiesToStringify -= value.length; + separator = ","; + } + if (deterministic) { + keys3 = insertSort(keys3); + } + stack.push(value); + for (let i3 = 0; i3 < maximumPropertiesToStringify; i3++) { + const key2 = keys3[i3]; + const tmp = stringifySimple(key2, value[key2], stack); + if (tmp !== void 0) { + res += `${separator}${strEscape(key2)}:${tmp}`; + separator = ","; + } + } + if (keyLength > maximumBreadth) { + const removedKeys = keyLength - maximumBreadth; + res += `${separator}"...":"${getItemCount(removedKeys)} not stringified"`; + } + stack.pop(); + return `{${res}}`; + } + case "number": + return isFinite(value) ? String(value) : fail ? fail(value) : "null"; + case "boolean": + return value === true ? "true" : "false"; + case "undefined": + return void 0; + case "bigint": + if (bigint) { + return String(value); + } + default: + return fail ? fail(value) : void 0; + } + } + function stringify4(value, replacer, space) { + if (arguments.length > 1) { + let spacer = ""; + if (typeof space === "number") { + spacer = " ".repeat(Math.min(space, 10)); + } else if (typeof space === "string") { + spacer = space.slice(0, 10); + } + if (replacer != null) { + if (typeof replacer === "function") { + return stringifyFnReplacer("", { "": value }, [], replacer, spacer, ""); + } + if (Array.isArray(replacer)) { + return stringifyArrayReplacer("", value, [], getUniqueReplacerSet(replacer), spacer, ""); + } + } + if (spacer.length !== 0) { + return stringifyIndent("", value, [], spacer, ""); + } + } + return stringifySimple("", value, []); + } + return stringify4; + } + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/bind.js +var require_bind = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/bind.js"(exports2, module2) { + "use strict"; + module2.exports = function bind(fn, thisArg) { + return function wrap2() { + var args = new Array(arguments.length); + for (var i3 = 0; i3 < args.length; i3++) { + args[i3] = arguments[i3]; + } + return fn.apply(thisArg, args); + }; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/utils.js +var require_utils = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/utils.js"(exports2, module2) { + "use strict"; + var bind = require_bind(); + var toString3 = Object.prototype.toString; + function isArray3(val) { + return Array.isArray(val); + } + function isUndefined(val) { + return typeof val === "undefined"; + } + function isBuffer2(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val); + } + function isArrayBuffer(val) { + return toString3.call(val) === "[object ArrayBuffer]"; + } + function isFormData(val) { + return toString3.call(val) === "[object FormData]"; + } + function isArrayBufferView(val) { + var result; + if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) { + result = ArrayBuffer.isView(val); + } else { + result = val && val.buffer && isArrayBuffer(val.buffer); + } + return result; + } + function isString(val) { + return typeof val === "string"; + } + function isNumber(val) { + return typeof val === "number"; + } + function isObject3(val) { + return val !== null && typeof val === "object"; + } + function isPlainObject2(val) { + if (toString3.call(val) !== "[object Object]") { + return false; + } + var prototype = Object.getPrototypeOf(val); + return prototype === null || prototype === Object.prototype; + } + function isDate(val) { + return toString3.call(val) === "[object Date]"; + } + function isFile(val) { + return toString3.call(val) === "[object File]"; + } + function isBlob(val) { + return toString3.call(val) === "[object Blob]"; + } + function isFunction4(val) { + return toString3.call(val) === "[object Function]"; + } + function isStream(val) { + return isObject3(val) && isFunction4(val.pipe); + } + function isURLSearchParams(val) { + return toString3.call(val) === "[object URLSearchParams]"; + } + function trim(str2) { + return str2.trim ? str2.trim() : str2.replace(/^\s+|\s+$/g, ""); + } + function isStandardBrowserEnv() { + if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) { + return false; + } + return typeof window !== "undefined" && typeof document !== "undefined"; + } + function forEach(obj, fn) { + if (obj === null || typeof obj === "undefined") { + return; + } + if (typeof obj !== "object") { + obj = [obj]; + } + if (isArray3(obj)) { + for (var i3 = 0, l3 = obj.length; i3 < l3; i3++) { + fn.call(null, obj[i3], i3, obj); + } + } else { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + fn.call(null, obj[key], key, obj); + } + } + } + } + function merge3() { + var result = {}; + function assignValue2(val, key) { + if (isPlainObject2(result[key]) && isPlainObject2(val)) { + result[key] = merge3(result[key], val); + } else if (isPlainObject2(val)) { + result[key] = merge3({}, val); + } else if (isArray3(val)) { + result[key] = val.slice(); + } else { + result[key] = val; + } + } + for (var i3 = 0, l3 = arguments.length; i3 < l3; i3++) { + forEach(arguments[i3], assignValue2); + } + return result; + } + function extend3(a2, b3, thisArg) { + forEach(b3, function assignValue2(val, key) { + if (thisArg && typeof val === "function") { + a2[key] = bind(val, thisArg); + } else { + a2[key] = val; + } + }); + return a2; + } + function stripBOM(content) { + if (content.charCodeAt(0) === 65279) { + content = content.slice(1); + } + return content; + } + module2.exports = { + isArray: isArray3, + isArrayBuffer, + isBuffer: isBuffer2, + isFormData, + isArrayBufferView, + isString, + isNumber, + isObject: isObject3, + isPlainObject: isPlainObject2, + isUndefined, + isDate, + isFile, + isBlob, + isFunction: isFunction4, + isStream, + isURLSearchParams, + isStandardBrowserEnv, + forEach, + merge: merge3, + extend: extend3, + trim, + stripBOM + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/buildURL.js +var require_buildURL = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/buildURL.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + function encode(val) { + return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); + } + module2.exports = function buildURL(url, params, paramsSerializer) { + if (!params) { + return url; + } + var serializedParams; + if (paramsSerializer) { + serializedParams = paramsSerializer(params); + } else if (utils.isURLSearchParams(params)) { + serializedParams = params.toString(); + } else { + var parts = []; + utils.forEach(params, function serialize(val, key) { + if (val === null || typeof val === "undefined") { + return; + } + if (utils.isArray(val)) { + key = key + "[]"; + } else { + val = [val]; + } + utils.forEach(val, function parseValue(v3) { + if (utils.isDate(v3)) { + v3 = v3.toISOString(); + } else if (utils.isObject(v3)) { + v3 = JSON.stringify(v3); + } + parts.push(encode(key) + "=" + encode(v3)); + }); + }); + serializedParams = parts.join("&"); + } + if (serializedParams) { + var hashmarkIndex = url.indexOf("#"); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams; + } + return url; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/InterceptorManager.js +var require_InterceptorManager = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/InterceptorManager.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + function InterceptorManager() { + this.handlers = []; + } + InterceptorManager.prototype.use = function use(fulfilled, rejected, options2) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options2 ? options2.synchronous : false, + runWhen: options2 ? options2.runWhen : null + }); + return this.handlers.length - 1; + }; + InterceptorManager.prototype.eject = function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + }; + InterceptorManager.prototype.forEach = function forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h2) { + if (h2 !== null) { + fn(h2); + } + }); + }; + module2.exports = InterceptorManager; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/normalizeHeaderName.js +var require_normalizeHeaderName = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + module2.exports = function normalizeHeaderName(headers, normalizedName) { + utils.forEach(headers, function processHeader(value, name) { + if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { + headers[normalizedName] = value; + delete headers[name]; + } + }); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/enhanceError.js +var require_enhanceError = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/enhanceError.js"(exports2, module2) { + "use strict"; + module2.exports = function enhanceError(error, config, code, request, response) { + error.config = config; + if (code) { + error.code = code; + } + error.request = request; + error.response = response; + error.isAxiosError = true; + error.toJSON = function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: this.config, + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + }; + return error; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/defaults/transitional.js +var require_transitional = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/defaults/transitional.js"(exports2, module2) { + "use strict"; + module2.exports = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/createError.js +var require_createError = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/createError.js"(exports2, module2) { + "use strict"; + var enhanceError = require_enhanceError(); + module2.exports = function createError(message, config, code, request, response) { + var error = new Error(message); + return enhanceError(error, config, code, request, response); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/settle.js +var require_settle = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/settle.js"(exports2, module2) { + "use strict"; + var createError = require_createError(); + module2.exports = function settle(resolve5, reject, response) { + var validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve5(response); + } else { + reject(createError( + "Request failed with status code " + response.status, + response.config, + null, + response.request, + response + )); + } + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/cookies.js +var require_cookies = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/cookies.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + module2.exports = utils.isStandardBrowserEnv() ? ( + // Standard browser envs support document.cookie + function standardBrowserEnv() { + return { + write: function write(name, value, expires, path2, domain, secure) { + var cookie = []; + cookie.push(name + "=" + encodeURIComponent(value)); + if (utils.isNumber(expires)) { + cookie.push("expires=" + new Date(expires).toGMTString()); + } + if (utils.isString(path2)) { + cookie.push("path=" + path2); + } + if (utils.isString(domain)) { + cookie.push("domain=" + domain); + } + if (secure === true) { + cookie.push("secure"); + } + document.cookie = cookie.join("; "); + }, + read: function read(name) { + var match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)")); + return match2 ? decodeURIComponent(match2[3]) : null; + }, + remove: function remove(name) { + this.write(name, "", Date.now() - 864e5); + } + }; + }() + ) : ( + // Non standard browser env (web workers, react-native) lack needed support. + function nonStandardBrowserEnv() { + return { + write: function write() { + }, + read: function read() { + return null; + }, + remove: function remove() { + } + }; + }() + ); + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isAbsoluteURL.js +var require_isAbsoluteURL = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports2, module2) { + "use strict"; + module2.exports = function isAbsoluteURL(url) { + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/combineURLs.js +var require_combineURLs = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/combineURLs.js"(exports2, module2) { + "use strict"; + module2.exports = function combineURLs(baseURL, relativeURL) { + return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/buildFullPath.js +var require_buildFullPath = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/buildFullPath.js"(exports2, module2) { + "use strict"; + var isAbsoluteURL = require_isAbsoluteURL(); + var combineURLs = require_combineURLs(); + module2.exports = function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/parseHeaders.js +var require_parseHeaders = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/parseHeaders.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var ignoreDuplicateOf = [ + "age", + "authorization", + "content-length", + "content-type", + "etag", + "expires", + "from", + "host", + "if-modified-since", + "if-unmodified-since", + "last-modified", + "location", + "max-forwards", + "proxy-authorization", + "referer", + "retry-after", + "user-agent" + ]; + module2.exports = function parseHeaders(headers) { + var parsed = {}; + var key; + var val; + var i3; + if (!headers) { + return parsed; + } + utils.forEach(headers.split("\n"), function parser3(line) { + i3 = line.indexOf(":"); + key = utils.trim(line.substr(0, i3)).toLowerCase(); + val = utils.trim(line.substr(i3 + 1)); + if (key) { + if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { + return; + } + if (key === "set-cookie") { + parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); + } else { + parsed[key] = parsed[key] ? parsed[key] + ", " + val : val; + } + } + }); + return parsed; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isURLSameOrigin.js +var require_isURLSameOrigin = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + module2.exports = utils.isStandardBrowserEnv() ? ( + // Standard browser envs have full support of the APIs needed to test + // whether the request URL is of the same origin as current location. + function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement("a"); + var originURL; + function resolveURL(url) { + var href = url; + if (msie) { + urlParsingNode.setAttribute("href", href); + href = urlParsingNode.href; + } + urlParsingNode.setAttribute("href", href); + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "", + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "", + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "", + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname + }; + } + originURL = resolveURL(window.location.href); + return function isURLSameOrigin(requestURL) { + var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL; + return parsed.protocol === originURL.protocol && parsed.host === originURL.host; + }; + }() + ) : ( + // Non standard browser envs (web workers, react-native) lack needed support. + function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + }() + ); + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/Cancel.js +var require_Cancel = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/Cancel.js"(exports2, module2) { + "use strict"; + function Cancel(message) { + this.message = message; + } + Cancel.prototype.toString = function toString3() { + return "Cancel" + (this.message ? ": " + this.message : ""); + }; + Cancel.prototype.__CANCEL__ = true; + module2.exports = Cancel; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/adapters/xhr.js +var require_xhr = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/adapters/xhr.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var settle = require_settle(); + var cookies = require_cookies(); + var buildURL = require_buildURL(); + var buildFullPath = require_buildFullPath(); + var parseHeaders = require_parseHeaders(); + var isURLSameOrigin = require_isURLSameOrigin(); + var createError = require_createError(); + var transitionalDefaults = require_transitional(); + var Cancel = require_Cancel(); + module2.exports = function xhrAdapter(config) { + return new Promise(function dispatchXhrRequest(resolve5, reject) { + var requestData = config.data; + var requestHeaders = config.headers; + var responseType = config.responseType; + var onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + if (config.signal) { + config.signal.removeEventListener("abort", onCanceled); + } + } + if (utils.isFormData(requestData)) { + delete requestHeaders["Content-Type"]; + } + var request = new XMLHttpRequest(); + if (config.auth) { + var username = config.auth.username || ""; + var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ""; + requestHeaders.Authorization = "Basic " + btoa(username + ":" + password); + } + var fullPath = buildFullPath(config.baseURL, config.url); + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + request.timeout = config.timeout; + function onloadend() { + if (!request) { + return; + } + var responseHeaders = "getAllResponseHeaders" in request ? parseHeaders(request.getAllResponseHeaders()) : null; + var responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + settle(function _resolve(value) { + resolve5(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + request = null; + } + if ("onloadend" in request) { + request.onloadend = onloadend; + } else { + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) { + return; + } + setTimeout(onloadend); + }; + } + request.onabort = function handleAbort() { + if (!request) { + return; + } + reject(createError("Request aborted", config, "ECONNABORTED", request)); + request = null; + }; + request.onerror = function handleError() { + reject(createError("Network Error", config, null, request)); + request = null; + }; + request.ontimeout = function handleTimeout() { + var timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded"; + var transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(createError( + timeoutErrorMessage, + config, + transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", + request + )); + request = null; + }; + if (utils.isStandardBrowserEnv()) { + var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0; + if (xsrfValue) { + requestHeaders[config.xsrfHeaderName] = xsrfValue; + } + } + if ("setRequestHeader" in request) { + utils.forEach(requestHeaders, function setRequestHeader(val, key) { + if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") { + delete requestHeaders[key]; + } else { + request.setRequestHeader(key, val); + } + }); + } + if (!utils.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + if (responseType && responseType !== "json") { + request.responseType = config.responseType; + } + if (typeof config.onDownloadProgress === "function") { + request.addEventListener("progress", config.onDownloadProgress); + } + if (typeof config.onUploadProgress === "function" && request.upload) { + request.upload.addEventListener("progress", config.onUploadProgress); + } + if (config.cancelToken || config.signal) { + onCanceled = function(cancel) { + if (!request) { + return; + } + reject(!cancel || cancel && cancel.type ? new Cancel("canceled") : cancel); + request.abort(); + request = null; + }; + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled); + } + } + if (!requestData) { + requestData = null; + } + request.send(requestData); + }); + }; + } +}); + +// ../../.yarn/__virtual__/follow-redirects-virtual-1a488024d3/0/cache/follow-redirects-npm-1.15.2-1ec1dd82be-930171f8b8.zip/node_modules/follow-redirects/debug.js +var require_debug = __commonJS({ + "../../.yarn/__virtual__/follow-redirects-virtual-1a488024d3/0/cache/follow-redirects-npm-1.15.2-1ec1dd82be-930171f8b8.zip/node_modules/follow-redirects/debug.js"(exports2, module2) { + var debug; + module2.exports = function() { + if (!debug) { + try { + debug = require("debug")("follow-redirects"); + } catch (error) { + } + if (typeof debug !== "function") { + debug = function() { + }; + } + } + debug.apply(null, arguments); + }; + } +}); + +// ../../.yarn/__virtual__/follow-redirects-virtual-1a488024d3/0/cache/follow-redirects-npm-1.15.2-1ec1dd82be-930171f8b8.zip/node_modules/follow-redirects/index.js +var require_follow_redirects = __commonJS({ + "../../.yarn/__virtual__/follow-redirects-virtual-1a488024d3/0/cache/follow-redirects-npm-1.15.2-1ec1dd82be-930171f8b8.zip/node_modules/follow-redirects/index.js"(exports2, module2) { + var url = require("url"); + var URL2 = url.URL; + var http = require("http"); + var https = require("https"); + var Writable = require("stream").Writable; + var assert = require("assert"); + var debug = require_debug(); + var events = ["abort", "aborted", "connect", "error", "socket", "timeout"]; + var eventHandlers = /* @__PURE__ */ Object.create(null); + events.forEach(function(event) { + eventHandlers[event] = function(arg1, arg2, arg3) { + this._redirectable.emit(event, arg1, arg2, arg3); + }; + }); + var InvalidUrlError = createErrorType( + "ERR_INVALID_URL", + "Invalid URL", + TypeError + ); + var RedirectionError = createErrorType( + "ERR_FR_REDIRECTION_FAILURE", + "Redirected request failed" + ); + var TooManyRedirectsError = createErrorType( + "ERR_FR_TOO_MANY_REDIRECTS", + "Maximum number of redirects exceeded" + ); + var MaxBodyLengthExceededError = createErrorType( + "ERR_FR_MAX_BODY_LENGTH_EXCEEDED", + "Request body larger than maxBodyLength limit" + ); + var WriteAfterEndError = createErrorType( + "ERR_STREAM_WRITE_AFTER_END", + "write after end" + ); + function RedirectableRequest(options2, responseCallback) { + Writable.call(this); + this._sanitizeOptions(options2); + this._options = options2; + this._ended = false; + this._ending = false; + this._redirectCount = 0; + this._redirects = []; + this._requestBodyLength = 0; + this._requestBodyBuffers = []; + if (responseCallback) { + this.on("response", responseCallback); + } + var self2 = this; + this._onNativeResponse = function(response) { + self2._processResponse(response); + }; + this._performRequest(); + } + RedirectableRequest.prototype = Object.create(Writable.prototype); + RedirectableRequest.prototype.abort = function() { + abortRequest(this._currentRequest); + this.emit("abort"); + }; + RedirectableRequest.prototype.write = function(data, encoding, callback) { + if (this._ending) { + throw new WriteAfterEndError(); + } + if (!isString(data) && !isBuffer2(data)) { + throw new TypeError("data should be a string, Buffer or Uint8Array"); + } + if (isFunction4(encoding)) { + callback = encoding; + encoding = null; + } + if (data.length === 0) { + if (callback) { + callback(); + } + return; + } + if (this._requestBodyLength + data.length <= this._options.maxBodyLength) { + this._requestBodyLength += data.length; + this._requestBodyBuffers.push({ data, encoding }); + this._currentRequest.write(data, encoding, callback); + } else { + this.emit("error", new MaxBodyLengthExceededError()); + this.abort(); + } + }; + RedirectableRequest.prototype.end = function(data, encoding, callback) { + if (isFunction4(data)) { + callback = data; + data = encoding = null; + } else if (isFunction4(encoding)) { + callback = encoding; + encoding = null; + } + if (!data) { + this._ended = this._ending = true; + this._currentRequest.end(null, null, callback); + } else { + var self2 = this; + var currentRequest = this._currentRequest; + this.write(data, encoding, function() { + self2._ended = true; + currentRequest.end(null, null, callback); + }); + this._ending = true; + } + }; + RedirectableRequest.prototype.setHeader = function(name, value) { + this._options.headers[name] = value; + this._currentRequest.setHeader(name, value); + }; + RedirectableRequest.prototype.removeHeader = function(name) { + delete this._options.headers[name]; + this._currentRequest.removeHeader(name); + }; + RedirectableRequest.prototype.setTimeout = function(msecs, callback) { + var self2 = this; + function destroyOnTimeout(socket) { + socket.setTimeout(msecs); + socket.removeListener("timeout", socket.destroy); + socket.addListener("timeout", socket.destroy); + } + function startTimer(socket) { + if (self2._timeout) { + clearTimeout(self2._timeout); + } + self2._timeout = setTimeout(function() { + self2.emit("timeout"); + clearTimer(); + }, msecs); + destroyOnTimeout(socket); + } + function clearTimer() { + if (self2._timeout) { + clearTimeout(self2._timeout); + self2._timeout = null; + } + self2.removeListener("abort", clearTimer); + self2.removeListener("error", clearTimer); + self2.removeListener("response", clearTimer); + if (callback) { + self2.removeListener("timeout", callback); + } + if (!self2.socket) { + self2._currentRequest.removeListener("socket", startTimer); + } + } + if (callback) { + this.on("timeout", callback); + } + if (this.socket) { + startTimer(this.socket); + } else { + this._currentRequest.once("socket", startTimer); + } + this.on("socket", destroyOnTimeout); + this.on("abort", clearTimer); + this.on("error", clearTimer); + this.on("response", clearTimer); + return this; + }; + [ + "flushHeaders", + "getHeader", + "setNoDelay", + "setSocketKeepAlive" + ].forEach(function(method) { + RedirectableRequest.prototype[method] = function(a2, b3) { + return this._currentRequest[method](a2, b3); + }; + }); + ["aborted", "connection", "socket"].forEach(function(property2) { + Object.defineProperty(RedirectableRequest.prototype, property2, { + get: function() { + return this._currentRequest[property2]; + } + }); + }); + RedirectableRequest.prototype._sanitizeOptions = function(options2) { + if (!options2.headers) { + options2.headers = {}; + } + if (options2.host) { + if (!options2.hostname) { + options2.hostname = options2.host; + } + delete options2.host; + } + if (!options2.pathname && options2.path) { + var searchPos = options2.path.indexOf("?"); + if (searchPos < 0) { + options2.pathname = options2.path; + } else { + options2.pathname = options2.path.substring(0, searchPos); + options2.search = options2.path.substring(searchPos); + } + } + }; + RedirectableRequest.prototype._performRequest = function() { + var protocol = this._options.protocol; + var nativeProtocol = this._options.nativeProtocols[protocol]; + if (!nativeProtocol) { + this.emit("error", new TypeError("Unsupported protocol " + protocol)); + return; + } + if (this._options.agents) { + var scheme = protocol.slice(0, -1); + this._options.agent = this._options.agents[scheme]; + } + var request = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse); + request._redirectable = this; + for (var event of events) { + request.on(event, eventHandlers[event]); + } + this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : ( + // When making a request to a proxy, […] + // a client MUST send the target URI in absolute-form […]. + this._options.path + ); + if (this._isRedirect) { + var i3 = 0; + var self2 = this; + var buffers = this._requestBodyBuffers; + (function writeNext(error) { + if (request === self2._currentRequest) { + if (error) { + self2.emit("error", error); + } else if (i3 < buffers.length) { + var buffer = buffers[i3++]; + if (!request.finished) { + request.write(buffer.data, buffer.encoding, writeNext); + } + } else if (self2._ended) { + request.end(); + } + } + })(); + } + }; + RedirectableRequest.prototype._processResponse = function(response) { + var statusCode = response.statusCode; + if (this._options.trackRedirects) { + this._redirects.push({ + url: this._currentUrl, + headers: response.headers, + statusCode + }); + } + var location = response.headers.location; + if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) { + response.responseUrl = this._currentUrl; + response.redirects = this._redirects; + this.emit("response", response); + this._requestBodyBuffers = []; + return; + } + abortRequest(this._currentRequest); + response.destroy(); + if (++this._redirectCount > this._options.maxRedirects) { + this.emit("error", new TooManyRedirectsError()); + return; + } + var requestHeaders; + var beforeRedirect = this._options.beforeRedirect; + if (beforeRedirect) { + requestHeaders = Object.assign({ + // The Host header was set by nativeProtocol.request + Host: response.req.getHeader("host") + }, this._options.headers); + } + var method = this._options.method; + if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that + // the server is redirecting the user agent to a different resource […] + // A user agent can perform a retrieval request targeting that URI + // (a GET or HEAD request if using HTTP) […] + statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) { + this._options.method = "GET"; + this._requestBodyBuffers = []; + removeMatchingHeaders(/^content-/i, this._options.headers); + } + var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers); + var currentUrlParts = url.parse(this._currentUrl); + var currentHost = currentHostHeader || currentUrlParts.host; + var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost })); + var redirectUrl; + try { + redirectUrl = url.resolve(currentUrl, location); + } catch (cause) { + this.emit("error", new RedirectionError({ cause })); + return; + } + debug("redirecting to", redirectUrl); + this._isRedirect = true; + var redirectUrlParts = url.parse(redirectUrl); + Object.assign(this._options, redirectUrlParts); + if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) { + removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers); + } + if (isFunction4(beforeRedirect)) { + var responseDetails = { + headers: response.headers, + statusCode + }; + var requestDetails = { + url: currentUrl, + method, + headers: requestHeaders + }; + try { + beforeRedirect(this._options, responseDetails, requestDetails); + } catch (err) { + this.emit("error", err); + return; + } + this._sanitizeOptions(this._options); + } + try { + this._performRequest(); + } catch (cause) { + this.emit("error", new RedirectionError({ cause })); + } + }; + function wrap2(protocols) { + var exports3 = { + maxRedirects: 21, + maxBodyLength: 10 * 1024 * 1024 + }; + var nativeProtocols = {}; + Object.keys(protocols).forEach(function(scheme) { + var protocol = scheme + ":"; + var nativeProtocol = nativeProtocols[protocol] = protocols[scheme]; + var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol); + function request(input, options2, callback) { + if (isString(input)) { + var parsed; + try { + parsed = urlToOptions(new URL2(input)); + } catch (err) { + parsed = url.parse(input); + } + if (!isString(parsed.protocol)) { + throw new InvalidUrlError({ input }); + } + input = parsed; + } else if (URL2 && input instanceof URL2) { + input = urlToOptions(input); + } else { + callback = options2; + options2 = input; + input = { protocol }; + } + if (isFunction4(options2)) { + callback = options2; + options2 = null; + } + options2 = Object.assign({ + maxRedirects: exports3.maxRedirects, + maxBodyLength: exports3.maxBodyLength + }, input, options2); + options2.nativeProtocols = nativeProtocols; + if (!isString(options2.host) && !isString(options2.hostname)) { + options2.hostname = "::1"; + } + assert.equal(options2.protocol, protocol, "protocol mismatch"); + debug("options", options2); + return new RedirectableRequest(options2, callback); + } + function get2(input, options2, callback) { + var wrappedRequest = wrappedProtocol.request(input, options2, callback); + wrappedRequest.end(); + return wrappedRequest; + } + Object.defineProperties(wrappedProtocol, { + request: { value: request, configurable: true, enumerable: true, writable: true }, + get: { value: get2, configurable: true, enumerable: true, writable: true } + }); + }); + return exports3; + } + function noop2() { + } + function urlToOptions(urlObject) { + var options2 = { + protocol: urlObject.protocol, + hostname: urlObject.hostname.startsWith("[") ? ( + /* istanbul ignore next */ + urlObject.hostname.slice(1, -1) + ) : urlObject.hostname, + hash: urlObject.hash, + search: urlObject.search, + pathname: urlObject.pathname, + path: urlObject.pathname + urlObject.search, + href: urlObject.href + }; + if (urlObject.port !== "") { + options2.port = Number(urlObject.port); + } + return options2; + } + function removeMatchingHeaders(regex, headers) { + var lastValue; + for (var header in headers) { + if (regex.test(header)) { + lastValue = headers[header]; + delete headers[header]; + } + } + return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim(); + } + function createErrorType(code, message, baseClass) { + function CustomError(properties) { + Error.captureStackTrace(this, this.constructor); + Object.assign(this, properties || {}); + this.code = code; + this.message = this.cause ? message + ": " + this.cause.message : message; + } + CustomError.prototype = new (baseClass || Error)(); + CustomError.prototype.constructor = CustomError; + CustomError.prototype.name = "Error [" + code + "]"; + return CustomError; + } + function abortRequest(request) { + for (var event of events) { + request.removeListener(event, eventHandlers[event]); + } + request.on("error", noop2); + request.abort(); + } + function isSubdomain(subdomain, domain) { + assert(isString(subdomain) && isString(domain)); + var dot = subdomain.length - domain.length - 1; + return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain); + } + function isString(value) { + return typeof value === "string" || value instanceof String; + } + function isFunction4(value) { + return typeof value === "function"; + } + function isBuffer2(value) { + return typeof value === "object" && "length" in value; + } + module2.exports = wrap2({ http, https }); + module2.exports.wrap = wrap2; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/env/data.js +var require_data = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/env/data.js"(exports2, module2) { + module2.exports = { + "version": "0.26.1" + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/adapters/http.js +var require_http = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/adapters/http.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var settle = require_settle(); + var buildFullPath = require_buildFullPath(); + var buildURL = require_buildURL(); + var http = require("http"); + var https = require("https"); + var httpFollow = require_follow_redirects().http; + var httpsFollow = require_follow_redirects().https; + var url = require("url"); + var zlib = require("zlib"); + var VERSION = require_data().version; + var createError = require_createError(); + var enhanceError = require_enhanceError(); + var transitionalDefaults = require_transitional(); + var Cancel = require_Cancel(); + var isHttps = /https:?/; + function setProxy(options2, proxy, location) { + options2.hostname = proxy.host; + options2.host = proxy.host; + options2.port = proxy.port; + options2.path = location; + if (proxy.auth) { + var base64 = Buffer.from(proxy.auth.username + ":" + proxy.auth.password, "utf8").toString("base64"); + options2.headers["Proxy-Authorization"] = "Basic " + base64; + } + options2.beforeRedirect = function beforeRedirect(redirection) { + redirection.headers.host = redirection.host; + setProxy(redirection, proxy, redirection.href); + }; + } + module2.exports = function httpAdapter(config) { + return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) { + var onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + if (config.signal) { + config.signal.removeEventListener("abort", onCanceled); + } + } + var resolve5 = function resolve6(value) { + done(); + resolvePromise(value); + }; + var rejected = false; + var reject = function reject2(value) { + done(); + rejected = true; + rejectPromise(value); + }; + var data = config.data; + var headers = config.headers; + var headerNames = {}; + Object.keys(headers).forEach(function storeLowerName(name) { + headerNames[name.toLowerCase()] = name; + }); + if ("user-agent" in headerNames) { + if (!headers[headerNames["user-agent"]]) { + delete headers[headerNames["user-agent"]]; + } + } else { + headers["User-Agent"] = "axios/" + VERSION; + } + if (data && !utils.isStream(data)) { + if (Buffer.isBuffer(data)) { + } else if (utils.isArrayBuffer(data)) { + data = Buffer.from(new Uint8Array(data)); + } else if (utils.isString(data)) { + data = Buffer.from(data, "utf-8"); + } else { + return reject(createError( + "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", + config + )); + } + if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { + return reject(createError("Request body larger than maxBodyLength limit", config)); + } + if (!headerNames["content-length"]) { + headers["Content-Length"] = data.length; + } + } + var auth = void 0; + if (config.auth) { + var username = config.auth.username || ""; + var password = config.auth.password || ""; + auth = username + ":" + password; + } + var fullPath = buildFullPath(config.baseURL, config.url); + var parsed = url.parse(fullPath); + var protocol = parsed.protocol || "http:"; + if (!auth && parsed.auth) { + var urlAuth = parsed.auth.split(":"); + var urlUsername = urlAuth[0] || ""; + var urlPassword = urlAuth[1] || ""; + auth = urlUsername + ":" + urlPassword; + } + if (auth && headerNames.authorization) { + delete headers[headerNames.authorization]; + } + var isHttpsRequest = isHttps.test(protocol); + var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; + try { + buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ""); + } catch (err) { + var customErr = new Error(err.message); + customErr.config = config; + customErr.url = config.url; + customErr.exists = true; + reject(customErr); + } + var options2 = { + path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ""), + method: config.method.toUpperCase(), + headers, + agent, + agents: { http: config.httpAgent, https: config.httpsAgent }, + auth + }; + if (config.socketPath) { + options2.socketPath = config.socketPath; + } else { + options2.hostname = parsed.hostname; + options2.port = parsed.port; + } + var proxy = config.proxy; + if (!proxy && proxy !== false) { + var proxyEnv = protocol.slice(0, -1) + "_proxy"; + var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()]; + if (proxyUrl) { + var parsedProxyUrl = url.parse(proxyUrl); + var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY; + var shouldProxy = true; + if (noProxyEnv) { + var noProxy = noProxyEnv.split(",").map(function trim(s3) { + return s3.trim(); + }); + shouldProxy = !noProxy.some(function proxyMatch(proxyElement) { + if (!proxyElement) { + return false; + } + if (proxyElement === "*") { + return true; + } + if (proxyElement[0] === "." && parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) { + return true; + } + return parsed.hostname === proxyElement; + }); + } + if (shouldProxy) { + proxy = { + host: parsedProxyUrl.hostname, + port: parsedProxyUrl.port, + protocol: parsedProxyUrl.protocol + }; + if (parsedProxyUrl.auth) { + var proxyUrlAuth = parsedProxyUrl.auth.split(":"); + proxy.auth = { + username: proxyUrlAuth[0], + password: proxyUrlAuth[1] + }; + } + } + } + } + if (proxy) { + options2.headers.host = parsed.hostname + (parsed.port ? ":" + parsed.port : ""); + setProxy(options2, proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options2.path); + } + var transport; + var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true); + if (config.transport) { + transport = config.transport; + } else if (config.maxRedirects === 0) { + transport = isHttpsProxy ? https : http; + } else { + if (config.maxRedirects) { + options2.maxRedirects = config.maxRedirects; + } + transport = isHttpsProxy ? httpsFollow : httpFollow; + } + if (config.maxBodyLength > -1) { + options2.maxBodyLength = config.maxBodyLength; + } + if (config.insecureHTTPParser) { + options2.insecureHTTPParser = config.insecureHTTPParser; + } + var req = transport.request(options2, function handleResponse(res) { + if (req.aborted) + return; + var stream = res; + var lastRequest = res.req || req; + if (res.statusCode !== 204 && lastRequest.method !== "HEAD" && config.decompress !== false) { + switch (res.headers["content-encoding"]) { + case "gzip": + case "compress": + case "deflate": + stream = stream.pipe(zlib.createUnzip()); + delete res.headers["content-encoding"]; + break; + } + } + var response = { + status: res.statusCode, + statusText: res.statusMessage, + headers: res.headers, + config, + request: lastRequest + }; + if (config.responseType === "stream") { + response.data = stream; + settle(resolve5, reject, response); + } else { + var responseBuffer = []; + var totalResponseBytes = 0; + stream.on("data", function handleStreamData(chunk) { + responseBuffer.push(chunk); + totalResponseBytes += chunk.length; + if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { + rejected = true; + stream.destroy(); + reject(createError( + "maxContentLength size of " + config.maxContentLength + " exceeded", + config, + null, + lastRequest + )); + } + }); + stream.on("aborted", function handlerStreamAborted() { + if (rejected) { + return; + } + stream.destroy(); + reject(createError("error request aborted", config, "ERR_REQUEST_ABORTED", lastRequest)); + }); + stream.on("error", function handleStreamError(err) { + if (req.aborted) + return; + reject(enhanceError(err, config, null, lastRequest)); + }); + stream.on("end", function handleStreamEnd() { + try { + var responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer); + if (config.responseType !== "arraybuffer") { + responseData = responseData.toString(config.responseEncoding); + if (!config.responseEncoding || config.responseEncoding === "utf8") { + responseData = utils.stripBOM(responseData); + } + } + response.data = responseData; + } catch (err) { + reject(enhanceError(err, config, err.code, response.request, response)); + } + settle(resolve5, reject, response); + }); + } + }); + req.on("error", function handleRequestError(err) { + if (req.aborted && err.code !== "ERR_FR_TOO_MANY_REDIRECTS") + return; + reject(enhanceError(err, config, null, req)); + }); + req.on("socket", function handleRequestSocket(socket) { + socket.setKeepAlive(true, 1e3 * 60); + }); + if (config.timeout) { + var timeout = parseInt(config.timeout, 10); + if (isNaN(timeout)) { + reject(createError( + "error trying to parse `config.timeout` to int", + config, + "ERR_PARSE_TIMEOUT", + req + )); + return; + } + req.setTimeout(timeout, function handleRequestTimeout() { + req.abort(); + var timeoutErrorMessage = ""; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } else { + timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded"; + } + var transitional = config.transitional || transitionalDefaults; + reject(createError( + timeoutErrorMessage, + config, + transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", + req + )); + }); + } + if (config.cancelToken || config.signal) { + onCanceled = function(cancel) { + if (req.aborted) + return; + req.abort(); + reject(!cancel || cancel && cancel.type ? new Cancel("canceled") : cancel); + }; + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled); + } + } + if (utils.isStream(data)) { + data.on("error", function handleStreamError(err) { + reject(enhanceError(err, config, null, req)); + }).pipe(req); + } else { + req.end(data); + } + }); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/defaults/index.js +var require_defaults = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/defaults/index.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var normalizeHeaderName = require_normalizeHeaderName(); + var enhanceError = require_enhanceError(); + var transitionalDefaults = require_transitional(); + var DEFAULT_CONTENT_TYPE = { + "Content-Type": "application/x-www-form-urlencoded" + }; + function setContentTypeIfUnset(headers, value) { + if (!utils.isUndefined(headers) && utils.isUndefined(headers["Content-Type"])) { + headers["Content-Type"] = value; + } + } + function getDefaultAdapter() { + var adapter; + if (typeof XMLHttpRequest !== "undefined") { + adapter = require_xhr(); + } else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") { + adapter = require_http(); + } + return adapter; + } + function stringifySafely(rawValue2, parser3, encoder) { + if (utils.isString(rawValue2)) { + try { + (parser3 || JSON.parse)(rawValue2); + return utils.trim(rawValue2); + } catch (e3) { + if (e3.name !== "SyntaxError") { + throw e3; + } + } + } + return (encoder || JSON.stringify)(rawValue2); + } + var defaults2 = { + transitional: transitionalDefaults, + adapter: getDefaultAdapter(), + transformRequest: [function transformRequest(data, headers) { + normalizeHeaderName(headers, "Accept"); + normalizeHeaderName(headers, "Content-Type"); + if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8"); + return data.toString(); + } + if (utils.isObject(data) || headers && headers["Content-Type"] === "application/json") { + setContentTypeIfUnset(headers, "application/json"); + return stringifySafely(data); + } + return data; + }], + transformResponse: [function transformResponse(data) { + var transitional = this.transitional || defaults2.transitional; + var silentJSONParsing = transitional && transitional.silentJSONParsing; + var forcedJSONParsing = transitional && transitional.forcedJSONParsing; + var strictJSONParsing = !silentJSONParsing && this.responseType === "json"; + if (strictJSONParsing || forcedJSONParsing && utils.isString(data) && data.length) { + try { + return JSON.parse(data); + } catch (e3) { + if (strictJSONParsing) { + if (e3.name === "SyntaxError") { + throw enhanceError(e3, this, "E_JSON_PARSE"); + } + throw e3; + } + } + } + return data; + }], + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + xsrfCookieName: "XSRF-TOKEN", + xsrfHeaderName: "X-XSRF-TOKEN", + maxContentLength: -1, + maxBodyLength: -1, + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + headers: { + common: { + "Accept": "application/json, text/plain, */*" + } + } + }; + utils.forEach(["delete", "get", "head"], function forEachMethodNoData(method) { + defaults2.headers[method] = {}; + }); + utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) { + defaults2.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); + }); + module2.exports = defaults2; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/transformData.js +var require_transformData = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/transformData.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var defaults2 = require_defaults(); + module2.exports = function transformData(data, headers, fns) { + var context = this || defaults2; + utils.forEach(fns, function transform(fn) { + data = fn.call(context, data, headers); + }); + return data; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/isCancel.js +var require_isCancel = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/isCancel.js"(exports2, module2) { + "use strict"; + module2.exports = function isCancel(value) { + return !!(value && value.__CANCEL__); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/dispatchRequest.js +var require_dispatchRequest = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/dispatchRequest.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var transformData = require_transformData(); + var isCancel = require_isCancel(); + var defaults2 = require_defaults(); + var Cancel = require_Cancel(); + function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + if (config.signal && config.signal.aborted) { + throw new Cancel("canceled"); + } + } + module2.exports = function dispatchRequest(config) { + throwIfCancellationRequested(config); + config.headers = config.headers || {}; + config.data = transformData.call( + config, + config.data, + config.headers, + config.transformRequest + ); + config.headers = utils.merge( + config.headers.common || {}, + config.headers[config.method] || {}, + config.headers + ); + utils.forEach( + ["delete", "get", "head", "post", "put", "patch", "common"], + function cleanHeaderConfig(method) { + delete config.headers[method]; + } + ); + var adapter = config.adapter || defaults2.adapter; + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + response.data = transformData.call( + config, + response.data, + response.headers, + config.transformResponse + ); + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + reason.response.data, + reason.response.headers, + config.transformResponse + ); + } + } + return Promise.reject(reason); + }); + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/mergeConfig.js +var require_mergeConfig = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/mergeConfig.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + module2.exports = function mergeConfig(config1, config2) { + config2 = config2 || {}; + var config = {}; + function getMergedValue(target, source) { + if (utils.isPlainObject(target) && utils.isPlainObject(source)) { + return utils.merge(target, source); + } else if (utils.isPlainObject(source)) { + return utils.merge({}, source); + } else if (utils.isArray(source)) { + return source.slice(); + } + return source; + } + function mergeDeepProperties(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(config1[prop], config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + return getMergedValue(void 0, config1[prop]); + } + } + function valueFromConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(void 0, config2[prop]); + } + } + function defaultToConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(void 0, config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + return getMergedValue(void 0, config1[prop]); + } + } + function mergeDirectKeys(prop) { + if (prop in config2) { + return getMergedValue(config1[prop], config2[prop]); + } else if (prop in config1) { + return getMergedValue(void 0, config1[prop]); + } + } + var mergeMap = { + "url": valueFromConfig2, + "method": valueFromConfig2, + "data": valueFromConfig2, + "baseURL": defaultToConfig2, + "transformRequest": defaultToConfig2, + "transformResponse": defaultToConfig2, + "paramsSerializer": defaultToConfig2, + "timeout": defaultToConfig2, + "timeoutMessage": defaultToConfig2, + "withCredentials": defaultToConfig2, + "adapter": defaultToConfig2, + "responseType": defaultToConfig2, + "xsrfCookieName": defaultToConfig2, + "xsrfHeaderName": defaultToConfig2, + "onUploadProgress": defaultToConfig2, + "onDownloadProgress": defaultToConfig2, + "decompress": defaultToConfig2, + "maxContentLength": defaultToConfig2, + "maxBodyLength": defaultToConfig2, + "transport": defaultToConfig2, + "httpAgent": defaultToConfig2, + "httpsAgent": defaultToConfig2, + "cancelToken": defaultToConfig2, + "socketPath": defaultToConfig2, + "responseEncoding": defaultToConfig2, + "validateStatus": mergeDirectKeys + }; + utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { + var merge3 = mergeMap[prop] || mergeDeepProperties; + var configValue = merge3(prop); + utils.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config[prop] = configValue); + }); + return config; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/validator.js +var require_validator = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/validator.js"(exports2, module2) { + "use strict"; + var VERSION = require_data().version; + var validators = {}; + ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i3) { + validators[type2] = function validator(thing) { + return typeof thing === type2 || "a" + (i3 < 1 ? "n " : " ") + type2; + }; + }); + var deprecatedWarnings = {}; + validators.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : ""); + } + return function(value, opt, opts) { + if (validator === false) { + throw new Error(formatMessage(opt, " has been removed" + (version ? " in " + version : ""))); + } + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + console.warn( + formatMessage( + opt, + " has been deprecated since v" + version + " and will be removed in the near future" + ) + ); + } + return validator ? validator(value, opt, opts) : true; + }; + }; + function assertOptions(options2, schema2, allowUnknown) { + if (typeof options2 !== "object") { + throw new TypeError("options must be an object"); + } + var keys3 = Object.keys(options2); + var i3 = keys3.length; + while (i3-- > 0) { + var opt = keys3[i3]; + var validator = schema2[opt]; + if (validator) { + var value = options2[opt]; + var result = value === void 0 || validator(value, opt, options2); + if (result !== true) { + throw new TypeError("option " + opt + " must be " + result); + } + continue; + } + if (allowUnknown !== true) { + throw Error("Unknown option " + opt); + } + } + } + module2.exports = { + assertOptions, + validators + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/Axios.js +var require_Axios = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/core/Axios.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var buildURL = require_buildURL(); + var InterceptorManager = require_InterceptorManager(); + var dispatchRequest = require_dispatchRequest(); + var mergeConfig = require_mergeConfig(); + var validator = require_validator(); + var validators = validator.validators; + function Axios(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + }; + } + Axios.prototype.request = function request(configOrUrl, config) { + if (typeof configOrUrl === "string") { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + config = mergeConfig(this.defaults, config); + if (config.method) { + config.method = config.method.toLowerCase(); + } else if (this.defaults.method) { + config.method = this.defaults.method.toLowerCase(); + } else { + config.method = "get"; + } + var transitional = config.transitional; + if (transitional !== void 0) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + var requestInterceptorChain = []; + var synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) { + return; + } + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + var responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + var promise; + if (!synchronousRequestInterceptors) { + var chain = [dispatchRequest, void 0]; + Array.prototype.unshift.apply(chain, requestInterceptorChain); + chain = chain.concat(responseInterceptorChain); + promise = Promise.resolve(config); + while (chain.length) { + promise = promise.then(chain.shift(), chain.shift()); + } + return promise; + } + var newConfig = config; + while (requestInterceptorChain.length) { + var onFulfilled = requestInterceptorChain.shift(); + var onRejected = requestInterceptorChain.shift(); + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected(error); + break; + } + } + try { + promise = dispatchRequest(newConfig); + } catch (error) { + return Promise.reject(error); + } + while (responseInterceptorChain.length) { + promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); + } + return promise; + }; + Axios.prototype.getUri = function getUri(config) { + config = mergeConfig(this.defaults, config); + return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ""); + }; + utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) { + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data: (config || {}).data + })); + }; + }); + utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) { + Axios.prototype[method] = function(url, data, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data + })); + }; + }); + module2.exports = Axios; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/CancelToken.js +var require_CancelToken = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/cancel/CancelToken.js"(exports2, module2) { + "use strict"; + var Cancel = require_Cancel(); + function CancelToken(executor) { + if (typeof executor !== "function") { + throw new TypeError("executor must be a function."); + } + var resolvePromise; + this.promise = new Promise(function promiseExecutor(resolve5) { + resolvePromise = resolve5; + }); + var token = this; + this.promise.then(function(cancel) { + if (!token._listeners) + return; + var i3; + var l3 = token._listeners.length; + for (i3 = 0; i3 < l3; i3++) { + token._listeners[i3](cancel); + } + token._listeners = null; + }); + this.promise.then = function(onfulfilled) { + var _resolve; + var promise = new Promise(function(resolve5) { + token.subscribe(resolve5); + _resolve = resolve5; + }).then(onfulfilled); + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + return promise; + }; + executor(function cancel(message) { + if (token.reason) { + return; + } + token.reason = new Cancel(message); + resolvePromise(token.reason); + }); + } + CancelToken.prototype.throwIfRequested = function throwIfRequested() { + if (this.reason) { + throw this.reason; + } + }; + CancelToken.prototype.subscribe = function subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + }; + CancelToken.prototype.unsubscribe = function unsubscribe(listener) { + if (!this._listeners) { + return; + } + var index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + }; + CancelToken.source = function source() { + var cancel; + var token = new CancelToken(function executor(c3) { + cancel = c3; + }); + return { + token, + cancel + }; + }; + module2.exports = CancelToken; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/spread.js +var require_spread = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/spread.js"(exports2, module2) { + "use strict"; + module2.exports = function spread(callback) { + return function wrap2(arr) { + return callback.apply(null, arr); + }; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isAxiosError.js +var require_isAxiosError = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/helpers/isAxiosError.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + module2.exports = function isAxiosError(payload) { + return utils.isObject(payload) && payload.isAxiosError === true; + }; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/axios.js +var require_axios = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/lib/axios.js"(exports2, module2) { + "use strict"; + var utils = require_utils(); + var bind = require_bind(); + var Axios = require_Axios(); + var mergeConfig = require_mergeConfig(); + var defaults2 = require_defaults(); + function createInstance(defaultConfig) { + var context = new Axios(defaultConfig); + var instance = bind(Axios.prototype.request, context); + utils.extend(instance, Axios.prototype, context); + utils.extend(instance, context); + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + return instance; + } + var axios = createInstance(defaults2); + axios.Axios = Axios; + axios.Cancel = require_Cancel(); + axios.CancelToken = require_CancelToken(); + axios.isCancel = require_isCancel(); + axios.VERSION = require_data().version; + axios.all = function all(promises) { + return Promise.all(promises); + }; + axios.spread = require_spread(); + axios.isAxiosError = require_isAxiosError(); + module2.exports = axios; + module2.exports.default = axios; + } +}); + +// ../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/index.js +var require_axios2 = __commonJS({ + "../../.yarn/cache/axios-npm-0.26.1-a6641ce4e3-ac969975b2.zip/node_modules/axios/index.js"(exports2, module2) { + module2.exports = require_axios(); + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/base.js +var require_base = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/base.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RequiredError = exports2.BaseAPI = exports2.COLLECTION_FORMATS = exports2.BASE_PATH = void 0; + var axios_1 = require_axios2(); + exports2.BASE_PATH = "https://api.openai.com/v1".replace(/\/+$/, ""); + exports2.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: " ", + pipes: "|" + }; + var BaseAPI = class { + constructor(configuration, basePath = exports2.BASE_PATH, axios = axios_1.default) { + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } + }; + exports2.BaseAPI = BaseAPI; + var RequiredError = class extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } + }; + exports2.RequiredError = RequiredError; + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/common.js +var require_common = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/common.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P4, generator) { + function adopt(value) { + return value instanceof P4 ? value : new P4(function(resolve5) { + resolve5(value); + }); + } + return new (P4 || (P4 = Promise))(function(resolve5, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.createRequestFunction = exports2.toPathString = exports2.serializeDataIfNeeded = exports2.setSearchParams = exports2.setOAuthToObject = exports2.setBearerAuthToObject = exports2.setBasicAuthToObject = exports2.setApiKeyToObject = exports2.assertParamExists = exports2.DUMMY_BASE_URL = void 0; + var base_1 = require_base(); + exports2.DUMMY_BASE_URL = "https://example.com"; + exports2.assertParamExists = function(functionName, paramName, paramValue) { + if (paramValue === null || paramValue === void 0) { + throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } + }; + exports2.setApiKeyToObject = function(object, keyParamName, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === "function" ? yield configuration.apiKey(keyParamName) : yield configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } + }); + }; + exports2.setBasicAuthToObject = function(object, configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } + }; + exports2.setBearerAuthToObject = function(object, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === "function" ? yield configuration.accessToken() : yield configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } + }); + }; + exports2.setOAuthToObject = function(object, name, scopes, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === "function" ? yield configuration.accessToken(name, scopes) : yield configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } + }); + }; + function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { + if (parameter == null) + return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key)); + } else { + Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)); + } + } else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } else { + urlSearchParams.set(key, parameter); + } + } + } + exports2.setSearchParams = function(url, ...objects) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); + }; + exports2.serializeDataIfNeeded = function(value, requestOptions, configuration) { + const nonString = typeof value !== "string"; + const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString; + return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || ""; + }; + exports2.toPathString = function(url) { + return url.pathname + url.search + url.hash; + }; + exports2.createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) { + return (axios = globalAxios, basePath = BASE_PATH) => { + const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }; + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/api.js +var require_api = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/api.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P4, generator) { + function adopt(value) { + return value instanceof P4 ? value : new P4(function(resolve5) { + resolve5(value); + }); + } + return new (P4 || (P4 = Promise))(function(resolve5, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OpenAIApi = exports2.OpenAIApiFactory = exports2.OpenAIApiFp = exports2.OpenAIApiAxiosParamCreator = exports2.CreateImageRequestResponseFormatEnum = exports2.CreateImageRequestSizeEnum = exports2.ChatCompletionResponseMessageRoleEnum = exports2.ChatCompletionRequestMessageRoleEnum = void 0; + var axios_1 = require_axios2(); + var common_1 = require_common(); + var base_1 = require_base(); + exports2.ChatCompletionRequestMessageRoleEnum = { + System: "system", + User: "user", + Assistant: "assistant", + Function: "function" + }; + exports2.ChatCompletionResponseMessageRoleEnum = { + System: "system", + User: "user", + Assistant: "assistant", + Function: "function" + }; + exports2.CreateImageRequestSizeEnum = { + _256x256: "256x256", + _512x512: "512x512", + _1024x1024: "1024x1024" + }; + exports2.CreateImageRequestResponseFormatEnum = { + Url: "url", + B64Json: "b64_json" + }; + exports2.OpenAIApiAxiosParamCreator = function(configuration) { + return { + /** + * + * @summary Immediately cancel a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to cancel + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelFineTune: (fineTuneId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("cancelFineTune", "fineTuneId", fineTuneId); + const localVarPath = `/fine-tunes/{fine_tune_id}/cancel`.replace(`{${"fine_tune_id"}}`, encodeURIComponent(String(fineTuneId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). + * @param {CreateAnswerRequest} createAnswerRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createAnswer: (createAnswerRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createAnswer", "createAnswerRequest", createAnswerRequest); + const localVarPath = `/answers`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createAnswerRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates a model response for the given chat conversation. + * @param {CreateChatCompletionRequest} createChatCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChatCompletion: (createChatCompletionRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createChatCompletion", "createChatCompletionRequest", createChatCompletionRequest); + const localVarPath = `/chat/completions`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createChatCompletionRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. + * @param {CreateClassificationRequest} createClassificationRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createClassification: (createClassificationRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createClassification", "createClassificationRequest", createClassificationRequest); + const localVarPath = `/classifications`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createClassificationRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates a completion for the provided prompt and parameters. + * @param {CreateCompletionRequest} createCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCompletion: (createCompletionRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createCompletion", "createCompletionRequest", createCompletionRequest); + const localVarPath = `/completions`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createCompletionRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates a new edit for the provided input, instruction, and parameters. + * @param {CreateEditRequest} createEditRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEdit: (createEditRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createEdit", "createEditRequest", createEditRequest); + const localVarPath = `/edits`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createEditRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates an embedding vector representing the input text. + * @param {CreateEmbeddingRequest} createEmbeddingRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEmbedding: (createEmbeddingRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createEmbedding", "createEmbeddingRequest", createEmbeddingRequest); + const localVarPath = `/embeddings`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createEmbeddingRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. + * @param {File} file Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data). + * @param {string} purpose The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFile: (file, purpose, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createFile", "file", file); + common_1.assertParamExists("createFile", "purpose", purpose); + const localVarPath = `/files`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)(); + if (file !== void 0) { + localVarFormParams.append("file", file); + } + if (purpose !== void 0) { + localVarFormParams.append("purpose", purpose); + } + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), localVarFormParams.getHeaders()), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = localVarFormParams; + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {CreateFineTuneRequest} createFineTuneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFineTune: (createFineTuneRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createFineTune", "createFineTuneRequest", createFineTuneRequest); + const localVarPath = `/fine-tunes`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFineTuneRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates an image given a prompt. + * @param {CreateImageRequest} createImageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImage: (createImageRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createImage", "createImageRequest", createImageRequest); + const localVarPath = `/images/generations`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createImageRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates an edited or extended image given an original image and a prompt. + * @param {File} image The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. + * @param {string} prompt A text description of the desired image(s). The maximum length is 1000 characters. + * @param {File} [mask] An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageEdit: (image, prompt, mask, n3, size, responseFormat, user, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createImageEdit", "image", image); + common_1.assertParamExists("createImageEdit", "prompt", prompt); + const localVarPath = `/images/edits`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)(); + if (image !== void 0) { + localVarFormParams.append("image", image); + } + if (mask !== void 0) { + localVarFormParams.append("mask", mask); + } + if (prompt !== void 0) { + localVarFormParams.append("prompt", prompt); + } + if (n3 !== void 0) { + localVarFormParams.append("n", n3); + } + if (size !== void 0) { + localVarFormParams.append("size", size); + } + if (responseFormat !== void 0) { + localVarFormParams.append("response_format", responseFormat); + } + if (user !== void 0) { + localVarFormParams.append("user", user); + } + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), localVarFormParams.getHeaders()), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = localVarFormParams; + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Creates a variation of a given image. + * @param {File} image The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageVariation: (image, n3, size, responseFormat, user, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createImageVariation", "image", image); + const localVarPath = `/images/variations`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)(); + if (image !== void 0) { + localVarFormParams.append("image", image); + } + if (n3 !== void 0) { + localVarFormParams.append("n", n3); + } + if (size !== void 0) { + localVarFormParams.append("size", size); + } + if (responseFormat !== void 0) { + localVarFormParams.append("response_format", responseFormat); + } + if (user !== void 0) { + localVarFormParams.append("user", user); + } + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), localVarFormParams.getHeaders()), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = localVarFormParams; + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Classifies if text violates OpenAI\'s Content Policy + * @param {CreateModerationRequest} createModerationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createModeration: (createModerationRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createModeration", "createModerationRequest", createModerationRequest); + const localVarPath = `/moderations`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createModerationRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. + * @param {string} engineId The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. + * @param {CreateSearchRequest} createSearchRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createSearch: (engineId, createSearchRequest, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createSearch", "engineId", engineId); + common_1.assertParamExists("createSearch", "createSearchRequest", createSearchRequest); + const localVarPath = `/engines/{engine_id}/search`.replace(`{${"engine_id"}}`, encodeURIComponent(String(engineId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter["Content-Type"] = "application/json"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSearchRequest, localVarRequestOptions, configuration); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Transcribes audio into the input language. + * @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {string} [language] The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranscription: (file, model, prompt, responseFormat, temperature, language, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createTranscription", "file", file); + common_1.assertParamExists("createTranscription", "model", model); + const localVarPath = `/audio/transcriptions`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)(); + if (file !== void 0) { + localVarFormParams.append("file", file); + } + if (model !== void 0) { + localVarFormParams.append("model", model); + } + if (prompt !== void 0) { + localVarFormParams.append("prompt", prompt); + } + if (responseFormat !== void 0) { + localVarFormParams.append("response_format", responseFormat); + } + if (temperature !== void 0) { + localVarFormParams.append("temperature", temperature); + } + if (language !== void 0) { + localVarFormParams.append("language", language); + } + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), localVarFormParams.getHeaders()), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = localVarFormParams; + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Translates audio into into English. + * @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranslation: (file, model, prompt, responseFormat, temperature, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("createTranslation", "file", file); + common_1.assertParamExists("createTranslation", "model", model); + const localVarPath = `/audio/translations`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)(); + if (file !== void 0) { + localVarFormParams.append("file", file); + } + if (model !== void 0) { + localVarFormParams.append("model", model); + } + if (prompt !== void 0) { + localVarFormParams.append("prompt", prompt); + } + if (responseFormat !== void 0) { + localVarFormParams.append("response_format", responseFormat); + } + if (temperature !== void 0) { + localVarFormParams.append("temperature", temperature); + } + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), localVarFormParams.getHeaders()), headersFromBaseOptions), options2.headers); + localVarRequestOptions.data = localVarFormParams; + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Delete a file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFile: (fileId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("deleteFile", "fileId", fileId); + const localVarPath = `/files/{file_id}`.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "DELETE" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Delete a fine-tuned model. You must have the Owner role in your organization. + * @param {string} model The model to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteModel: (model, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("deleteModel", "model", model); + const localVarPath = `/models/{model}`.replace(`{${"model"}}`, encodeURIComponent(String(model))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "DELETE" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Returns the contents of the specified file + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadFile: (fileId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("downloadFile", "fileId", fileId); + const localVarPath = `/files/{file_id}/content`.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + listEngines: (options2 = {}) => __awaiter(this, void 0, void 0, function* () { + const localVarPath = `/engines`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Returns a list of files that belong to the user\'s organization. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFiles: (options2 = {}) => __awaiter(this, void 0, void 0, function* () { + const localVarPath = `/files`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Get fine-grained status updates for a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to get events for. + * @param {boolean} [stream] Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTuneEvents: (fineTuneId, stream, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("listFineTuneEvents", "fineTuneId", fineTuneId); + const localVarPath = `/fine-tunes/{fine_tune_id}/events`.replace(`{${"fine_tune_id"}}`, encodeURIComponent(String(fineTuneId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (stream !== void 0) { + localVarQueryParameter["stream"] = stream; + } + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary List your organization\'s fine-tuning jobs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTunes: (options2 = {}) => __awaiter(this, void 0, void 0, function* () { + const localVarPath = `/fine-tunes`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Lists the currently available models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listModels: (options2 = {}) => __awaiter(this, void 0, void 0, function* () { + const localVarPath = `/models`; + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Retrieves a model instance, providing basic information about it such as the owner and availability. + * @param {string} engineId The ID of the engine to use for this request + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + retrieveEngine: (engineId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("retrieveEngine", "engineId", engineId); + const localVarPath = `/engines/{engine_id}`.replace(`{${"engine_id"}}`, encodeURIComponent(String(engineId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Returns information about a specific file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFile: (fileId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("retrieveFile", "fileId", fileId); + const localVarPath = `/files/{file_id}`.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {string} fineTuneId The ID of the fine-tune job + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFineTune: (fineTuneId, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("retrieveFineTune", "fineTuneId", fineTuneId); + const localVarPath = `/fine-tunes/{fine_tune_id}`.replace(`{${"fine_tune_id"}}`, encodeURIComponent(String(fineTuneId))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }), + /** + * + * @summary Retrieves a model instance, providing basic information about the model such as the owner and permissioning. + * @param {string} model The ID of the model to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveModel: (model, options2 = {}) => __awaiter(this, void 0, void 0, function* () { + common_1.assertParamExists("retrieveModel", "model", model); + const localVarPath = `/models/{model}`.replace(`{${"model"}}`, encodeURIComponent(String(model))); + const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options2); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + common_1.setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options2.headers); + return { + url: common_1.toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }) + }; + }; + exports2.OpenAIApiFp = function(configuration) { + const localVarAxiosParamCreator = exports2.OpenAIApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Immediately cancel a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to cancel + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelFineTune(fineTuneId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelFineTune(fineTuneId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). + * @param {CreateAnswerRequest} createAnswerRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createAnswer(createAnswerRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createAnswer(createAnswerRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates a model response for the given chat conversation. + * @param {CreateChatCompletionRequest} createChatCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChatCompletion(createChatCompletionRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createChatCompletion(createChatCompletionRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. + * @param {CreateClassificationRequest} createClassificationRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createClassification(createClassificationRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createClassification(createClassificationRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates a completion for the provided prompt and parameters. + * @param {CreateCompletionRequest} createCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCompletion(createCompletionRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createCompletion(createCompletionRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates a new edit for the provided input, instruction, and parameters. + * @param {CreateEditRequest} createEditRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEdit(createEditRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createEdit(createEditRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates an embedding vector representing the input text. + * @param {CreateEmbeddingRequest} createEmbeddingRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEmbedding(createEmbeddingRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createEmbedding(createEmbeddingRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. + * @param {File} file Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data). + * @param {string} purpose The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFile(file, purpose, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createFile(file, purpose, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {CreateFineTuneRequest} createFineTuneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFineTune(createFineTuneRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createFineTune(createFineTuneRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates an image given a prompt. + * @param {CreateImageRequest} createImageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImage(createImageRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createImage(createImageRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates an edited or extended image given an original image and a prompt. + * @param {File} image The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. + * @param {string} prompt A text description of the desired image(s). The maximum length is 1000 characters. + * @param {File} [mask] An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Creates a variation of a given image. + * @param {File} image The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageVariation(image, n3, size, responseFormat, user, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createImageVariation(image, n3, size, responseFormat, user, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Classifies if text violates OpenAI\'s Content Policy + * @param {CreateModerationRequest} createModerationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createModeration(createModerationRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createModeration(createModerationRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. + * @param {string} engineId The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. + * @param {CreateSearchRequest} createSearchRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createSearch(engineId, createSearchRequest, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearch(engineId, createSearchRequest, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Transcribes audio into the input language. + * @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {string} [language] The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranscription(file, model, prompt, responseFormat, temperature, language, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createTranscription(file, model, prompt, responseFormat, temperature, language, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Translates audio into into English. + * @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranslation(file, model, prompt, responseFormat, temperature, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.createTranslation(file, model, prompt, responseFormat, temperature, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Delete a file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFile(fileId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFile(fileId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Delete a fine-tuned model. You must have the Owner role in your organization. + * @param {string} model The model to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteModel(model, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteModel(model, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Returns the contents of the specified file + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadFile(fileId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFile(fileId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + listEngines(options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.listEngines(options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Returns a list of files that belong to the user\'s organization. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFiles(options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.listFiles(options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Get fine-grained status updates for a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to get events for. + * @param {boolean} [stream] Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTuneEvents(fineTuneId, stream, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.listFineTuneEvents(fineTuneId, stream, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary List your organization\'s fine-tuning jobs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTunes(options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.listFineTunes(options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Lists the currently available models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listModels(options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.listModels(options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Retrieves a model instance, providing basic information about it such as the owner and availability. + * @param {string} engineId The ID of the engine to use for this request + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + retrieveEngine(engineId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveEngine(engineId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Returns information about a specific file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFile(fileId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveFile(fileId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {string} fineTuneId The ID of the fine-tune job + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFineTune(fineTuneId, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveFineTune(fineTuneId, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + }, + /** + * + * @summary Retrieves a model instance, providing basic information about the model such as the owner and permissioning. + * @param {string} model The ID of the model to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveModel(model, options2) { + return __awaiter(this, void 0, void 0, function* () { + const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveModel(model, options2); + return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); + }); + } + }; + }; + exports2.OpenAIApiFactory = function(configuration, basePath, axios) { + const localVarFp = exports2.OpenAIApiFp(configuration); + return { + /** + * + * @summary Immediately cancel a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to cancel + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelFineTune(fineTuneId, options2) { + return localVarFp.cancelFineTune(fineTuneId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). + * @param {CreateAnswerRequest} createAnswerRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createAnswer(createAnswerRequest, options2) { + return localVarFp.createAnswer(createAnswerRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates a model response for the given chat conversation. + * @param {CreateChatCompletionRequest} createChatCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChatCompletion(createChatCompletionRequest, options2) { + return localVarFp.createChatCompletion(createChatCompletionRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. + * @param {CreateClassificationRequest} createClassificationRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createClassification(createClassificationRequest, options2) { + return localVarFp.createClassification(createClassificationRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates a completion for the provided prompt and parameters. + * @param {CreateCompletionRequest} createCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCompletion(createCompletionRequest, options2) { + return localVarFp.createCompletion(createCompletionRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates a new edit for the provided input, instruction, and parameters. + * @param {CreateEditRequest} createEditRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEdit(createEditRequest, options2) { + return localVarFp.createEdit(createEditRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates an embedding vector representing the input text. + * @param {CreateEmbeddingRequest} createEmbeddingRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createEmbedding(createEmbeddingRequest, options2) { + return localVarFp.createEmbedding(createEmbeddingRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. + * @param {File} file Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data). + * @param {string} purpose The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFile(file, purpose, options2) { + return localVarFp.createFile(file, purpose, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {CreateFineTuneRequest} createFineTuneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createFineTune(createFineTuneRequest, options2) { + return localVarFp.createFineTune(createFineTuneRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates an image given a prompt. + * @param {CreateImageRequest} createImageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImage(createImageRequest, options2) { + return localVarFp.createImage(createImageRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates an edited or extended image given an original image and a prompt. + * @param {File} image The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. + * @param {string} prompt A text description of the desired image(s). The maximum length is 1000 characters. + * @param {File} [mask] An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2) { + return localVarFp.createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Creates a variation of a given image. + * @param {File} image The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createImageVariation(image, n3, size, responseFormat, user, options2) { + return localVarFp.createImageVariation(image, n3, size, responseFormat, user, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Classifies if text violates OpenAI\'s Content Policy + * @param {CreateModerationRequest} createModerationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createModeration(createModerationRequest, options2) { + return localVarFp.createModeration(createModerationRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. + * @param {string} engineId The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. + * @param {CreateSearchRequest} createSearchRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + createSearch(engineId, createSearchRequest, options2) { + return localVarFp.createSearch(engineId, createSearchRequest, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Transcribes audio into the input language. + * @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {string} [language] The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranscription(file, model, prompt, responseFormat, temperature, language, options2) { + return localVarFp.createTranscription(file, model, prompt, responseFormat, temperature, language, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Translates audio into into English. + * @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createTranslation(file, model, prompt, responseFormat, temperature, options2) { + return localVarFp.createTranslation(file, model, prompt, responseFormat, temperature, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete a file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFile(fileId, options2) { + return localVarFp.deleteFile(fileId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete a fine-tuned model. You must have the Owner role in your organization. + * @param {string} model The model to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteModel(model, options2) { + return localVarFp.deleteModel(model, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Returns the contents of the specified file + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadFile(fileId, options2) { + return localVarFp.downloadFile(fileId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + listEngines(options2) { + return localVarFp.listEngines(options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Returns a list of files that belong to the user\'s organization. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFiles(options2) { + return localVarFp.listFiles(options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get fine-grained status updates for a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to get events for. + * @param {boolean} [stream] Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTuneEvents(fineTuneId, stream, options2) { + return localVarFp.listFineTuneEvents(fineTuneId, stream, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary List your organization\'s fine-tuning jobs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFineTunes(options2) { + return localVarFp.listFineTunes(options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Lists the currently available models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listModels(options2) { + return localVarFp.listModels(options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieves a model instance, providing basic information about it such as the owner and availability. + * @param {string} engineId The ID of the engine to use for this request + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + retrieveEngine(engineId, options2) { + return localVarFp.retrieveEngine(engineId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Returns information about a specific file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFile(fileId, options2) { + return localVarFp.retrieveFile(fileId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {string} fineTuneId The ID of the fine-tune job + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveFineTune(fineTuneId, options2) { + return localVarFp.retrieveFineTune(fineTuneId, options2).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieves a model instance, providing basic information about the model such as the owner and permissioning. + * @param {string} model The ID of the model to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveModel(model, options2) { + return localVarFp.retrieveModel(model, options2).then((request) => request(axios, basePath)); + } + }; + }; + var OpenAIApi3 = class extends base_1.BaseAPI { + /** + * + * @summary Immediately cancel a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to cancel + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + cancelFineTune(fineTuneId, options2) { + return exports2.OpenAIApiFp(this.configuration).cancelFineTune(fineTuneId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). + * @param {CreateAnswerRequest} createAnswerRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createAnswer(createAnswerRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createAnswer(createAnswerRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates a model response for the given chat conversation. + * @param {CreateChatCompletionRequest} createChatCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createChatCompletion(createChatCompletionRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createChatCompletion(createChatCompletionRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. + * @param {CreateClassificationRequest} createClassificationRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createClassification(createClassificationRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createClassification(createClassificationRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates a completion for the provided prompt and parameters. + * @param {CreateCompletionRequest} createCompletionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createCompletion(createCompletionRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createCompletion(createCompletionRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates a new edit for the provided input, instruction, and parameters. + * @param {CreateEditRequest} createEditRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createEdit(createEditRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createEdit(createEditRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates an embedding vector representing the input text. + * @param {CreateEmbeddingRequest} createEmbeddingRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createEmbedding(createEmbeddingRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createEmbedding(createEmbeddingRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. + * @param {File} file Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data). + * @param {string} purpose The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createFile(file, purpose, options2) { + return exports2.OpenAIApiFp(this.configuration).createFile(file, purpose, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {CreateFineTuneRequest} createFineTuneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createFineTune(createFineTuneRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createFineTune(createFineTuneRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates an image given a prompt. + * @param {CreateImageRequest} createImageRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createImage(createImageRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createImage(createImageRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates an edited or extended image given an original image and a prompt. + * @param {File} image The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. + * @param {string} prompt A text description of the desired image(s). The maximum length is 1000 characters. + * @param {File} [mask] An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2) { + return exports2.OpenAIApiFp(this.configuration).createImageEdit(image, prompt, mask, n3, size, responseFormat, user, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Creates a variation of a given image. + * @param {File} image The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. + * @param {number} [n] The number of images to generate. Must be between 1 and 10. + * @param {string} [size] The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. + * @param {string} [responseFormat] The format in which the generated images are returned. Must be one of `url` or `b64_json`. + * @param {string} [user] A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createImageVariation(image, n3, size, responseFormat, user, options2) { + return exports2.OpenAIApiFp(this.configuration).createImageVariation(image, n3, size, responseFormat, user, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Classifies if text violates OpenAI\'s Content Policy + * @param {CreateModerationRequest} createModerationRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createModeration(createModerationRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createModeration(createModerationRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. + * @param {string} engineId The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. + * @param {CreateSearchRequest} createSearchRequest + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createSearch(engineId, createSearchRequest, options2) { + return exports2.OpenAIApiFp(this.configuration).createSearch(engineId, createSearchRequest, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Transcribes audio into the input language. + * @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {string} [language] The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createTranscription(file, model, prompt, responseFormat, temperature, language, options2) { + return exports2.OpenAIApiFp(this.configuration).createTranscription(file, model, prompt, responseFormat, temperature, language, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Translates audio into into English. + * @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. + * @param {string} model ID of the model to use. Only `whisper-1` is currently available. + * @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English. + * @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. + * @param {number} [temperature] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + createTranslation(file, model, prompt, responseFormat, temperature, options2) { + return exports2.OpenAIApiFp(this.configuration).createTranslation(file, model, prompt, responseFormat, temperature, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Delete a file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + deleteFile(fileId, options2) { + return exports2.OpenAIApiFp(this.configuration).deleteFile(fileId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Delete a fine-tuned model. You must have the Owner role in your organization. + * @param {string} model The model to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + deleteModel(model, options2) { + return exports2.OpenAIApiFp(this.configuration).deleteModel(model, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Returns the contents of the specified file + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + downloadFile(fileId, options2) { + return exports2.OpenAIApiFp(this.configuration).downloadFile(fileId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof OpenAIApi + */ + listEngines(options2) { + return exports2.OpenAIApiFp(this.configuration).listEngines(options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Returns a list of files that belong to the user\'s organization. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + listFiles(options2) { + return exports2.OpenAIApiFp(this.configuration).listFiles(options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get fine-grained status updates for a fine-tune job. + * @param {string} fineTuneId The ID of the fine-tune job to get events for. + * @param {boolean} [stream] Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + listFineTuneEvents(fineTuneId, stream, options2) { + return exports2.OpenAIApiFp(this.configuration).listFineTuneEvents(fineTuneId, stream, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary List your organization\'s fine-tuning jobs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + listFineTunes(options2) { + return exports2.OpenAIApiFp(this.configuration).listFineTunes(options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Lists the currently available models, and provides basic information about each one such as the owner and availability. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + listModels(options2) { + return exports2.OpenAIApiFp(this.configuration).listModels(options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Retrieves a model instance, providing basic information about it such as the owner and availability. + * @param {string} engineId The ID of the engine to use for this request + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof OpenAIApi + */ + retrieveEngine(engineId, options2) { + return exports2.OpenAIApiFp(this.configuration).retrieveEngine(engineId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Returns information about a specific file. + * @param {string} fileId The ID of the file to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + retrieveFile(fileId, options2) { + return exports2.OpenAIApiFp(this.configuration).retrieveFile(fileId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) + * @param {string} fineTuneId The ID of the fine-tune job + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + retrieveFineTune(fineTuneId, options2) { + return exports2.OpenAIApiFp(this.configuration).retrieveFineTune(fineTuneId, options2).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Retrieves a model instance, providing basic information about the model such as the owner and permissioning. + * @param {string} model The ID of the model to use for this request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OpenAIApi + */ + retrieveModel(model, options2) { + return exports2.OpenAIApiFp(this.configuration).retrieveModel(model, options2).then((request) => request(this.axios, this.basePath)); + } + }; + exports2.OpenAIApi = OpenAIApi3; + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/package.json +var require_package = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/package.json"(exports2, module2) { + module2.exports = { + name: "openai", + version: "3.3.0", + description: "Node.js library for the OpenAI API", + repository: { + type: "git", + url: "git@github.com:openai/openai-node.git" + }, + keywords: [ + "openai", + "open", + "ai", + "gpt-3", + "gpt3" + ], + author: "OpenAI", + license: "MIT", + main: "./dist/index.js", + types: "./dist/index.d.ts", + scripts: { + build: "tsc --outDir dist/" + }, + dependencies: { + axios: "^0.26.0", + "form-data": "^4.0.0" + }, + devDependencies: { + "@types/node": "^12.11.5", + typescript: "^3.6.4" + } + }; + } +}); + +// ../../.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-22f11ed342.zip/node_modules/delayed-stream/lib/delayed_stream.js +var require_delayed_stream = __commonJS({ + "../../.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-22f11ed342.zip/node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) { + var Stream = require("stream").Stream; + var util = require("util"); + module2.exports = DelayedStream; + function DelayedStream() { + this.source = null; + this.dataSize = 0; + this.maxDataSize = 1024 * 1024; + this.pauseStream = true; + this._maxDataSizeExceeded = false; + this._released = false; + this._bufferedEvents = []; + } + util.inherits(DelayedStream, Stream); + DelayedStream.create = function(source, options2) { + var delayedStream = new this(); + options2 = options2 || {}; + for (var option in options2) { + delayedStream[option] = options2[option]; + } + delayedStream.source = source; + var realEmit = source.emit; + source.emit = function() { + delayedStream._handleEmit(arguments); + return realEmit.apply(source, arguments); + }; + source.on("error", function() { + }); + if (delayedStream.pauseStream) { + source.pause(); + } + return delayedStream; + }; + Object.defineProperty(DelayedStream.prototype, "readable", { + configurable: true, + enumerable: true, + get: function() { + return this.source.readable; + } + }); + DelayedStream.prototype.setEncoding = function() { + return this.source.setEncoding.apply(this.source, arguments); + }; + DelayedStream.prototype.resume = function() { + if (!this._released) { + this.release(); + } + this.source.resume(); + }; + DelayedStream.prototype.pause = function() { + this.source.pause(); + }; + DelayedStream.prototype.release = function() { + this._released = true; + this._bufferedEvents.forEach(function(args) { + this.emit.apply(this, args); + }.bind(this)); + this._bufferedEvents = []; + }; + DelayedStream.prototype.pipe = function() { + var r3 = Stream.prototype.pipe.apply(this, arguments); + this.resume(); + return r3; + }; + DelayedStream.prototype._handleEmit = function(args) { + if (this._released) { + this.emit.apply(this, args); + return; + } + if (args[0] === "data") { + this.dataSize += args[1].length; + this._checkIfMaxDataSizeExceeded(); + } + this._bufferedEvents.push(args); + }; + DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { + if (this._maxDataSizeExceeded) { + return; + } + if (this.dataSize <= this.maxDataSize) { + return; + } + this._maxDataSizeExceeded = true; + var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded."; + this.emit("error", new Error(message)); + }; + } +}); + +// ../../.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-c3224efc79.zip/node_modules/combined-stream/lib/combined_stream.js +var require_combined_stream = __commonJS({ + "../../.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-c3224efc79.zip/node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) { + var util = require("util"); + var Stream = require("stream").Stream; + var DelayedStream = require_delayed_stream(); + module2.exports = CombinedStream; + function CombinedStream() { + this.writable = false; + this.readable = true; + this.dataSize = 0; + this.maxDataSize = 2 * 1024 * 1024; + this.pauseStreams = true; + this._released = false; + this._streams = []; + this._currentStream = null; + this._insideLoop = false; + this._pendingNext = false; + } + util.inherits(CombinedStream, Stream); + CombinedStream.create = function(options2) { + var combinedStream = new this(); + options2 = options2 || {}; + for (var option in options2) { + combinedStream[option] = options2[option]; + } + return combinedStream; + }; + CombinedStream.isStreamLike = function(stream) { + return typeof stream !== "function" && typeof stream !== "string" && typeof stream !== "boolean" && typeof stream !== "number" && !Buffer.isBuffer(stream); + }; + CombinedStream.prototype.append = function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + if (!(stream instanceof DelayedStream)) { + var newStream = DelayedStream.create(stream, { + maxDataSize: Infinity, + pauseStream: this.pauseStreams + }); + stream.on("data", this._checkDataSize.bind(this)); + stream = newStream; + } + this._handleErrors(stream); + if (this.pauseStreams) { + stream.pause(); + } + } + this._streams.push(stream); + return this; + }; + CombinedStream.prototype.pipe = function(dest, options2) { + Stream.prototype.pipe.call(this, dest, options2); + this.resume(); + return dest; + }; + CombinedStream.prototype._getNext = function() { + this._currentStream = null; + if (this._insideLoop) { + this._pendingNext = true; + return; + } + this._insideLoop = true; + try { + do { + this._pendingNext = false; + this._realGetNext(); + } while (this._pendingNext); + } finally { + this._insideLoop = false; + } + }; + CombinedStream.prototype._realGetNext = function() { + var stream = this._streams.shift(); + if (typeof stream == "undefined") { + this.end(); + return; + } + if (typeof stream !== "function") { + this._pipeNext(stream); + return; + } + var getStream = stream; + getStream(function(stream2) { + var isStreamLike = CombinedStream.isStreamLike(stream2); + if (isStreamLike) { + stream2.on("data", this._checkDataSize.bind(this)); + this._handleErrors(stream2); + } + this._pipeNext(stream2); + }.bind(this)); + }; + CombinedStream.prototype._pipeNext = function(stream) { + this._currentStream = stream; + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on("end", this._getNext.bind(this)); + stream.pipe(this, { end: false }); + return; + } + var value = stream; + this.write(value); + this._getNext(); + }; + CombinedStream.prototype._handleErrors = function(stream) { + var self2 = this; + stream.on("error", function(err) { + self2._emitError(err); + }); + }; + CombinedStream.prototype.write = function(data) { + this.emit("data", data); + }; + CombinedStream.prototype.pause = function() { + if (!this.pauseStreams) { + return; + } + if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function") + this._currentStream.pause(); + this.emit("pause"); + }; + CombinedStream.prototype.resume = function() { + if (!this._released) { + this._released = true; + this.writable = true; + this._getNext(); + } + if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function") + this._currentStream.resume(); + this.emit("resume"); + }; + CombinedStream.prototype.end = function() { + this._reset(); + this.emit("end"); + }; + CombinedStream.prototype.destroy = function() { + this._reset(); + this.emit("close"); + }; + CombinedStream.prototype._reset = function() { + this.writable = false; + this._streams = []; + this._currentStream = null; + }; + CombinedStream.prototype._checkDataSize = function() { + this._updateDataSize(); + if (this.dataSize <= this.maxDataSize) { + return; + } + var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded."; + this._emitError(new Error(message)); + }; + CombinedStream.prototype._updateDataSize = function() { + this.dataSize = 0; + var self2 = this; + this._streams.forEach(function(stream) { + if (!stream.dataSize) { + return; + } + self2.dataSize += stream.dataSize; + }); + if (this._currentStream && this._currentStream.dataSize) { + this.dataSize += this._currentStream.dataSize; + } + }; + CombinedStream.prototype._emitError = function(err) { + this._reset(); + this.emit("error", err); + }; + } +}); + +// ../../.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-95baf687a3.zip/node_modules/mime-db/db.json +var require_db = __commonJS({ + "../../.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-95baf687a3.zip/node_modules/mime-db/db.json"(exports2, module2) { + module2.exports = { + "application/1d-interleaved-parityfec": { + source: "iana" + }, + "application/3gpdash-qoe-report+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/3gpp-ims+xml": { + source: "iana", + compressible: true + }, + "application/3gpphal+json": { + source: "iana", + compressible: true + }, + "application/3gpphalforms+json": { + source: "iana", + compressible: true + }, + "application/a2l": { + source: "iana" + }, + "application/ace+cbor": { + source: "iana" + }, + "application/activemessage": { + source: "iana" + }, + "application/activity+json": { + source: "iana", + compressible: true + }, + "application/alto-costmap+json": { + source: "iana", + compressible: true + }, + "application/alto-costmapfilter+json": { + source: "iana", + compressible: true + }, + "application/alto-directory+json": { + source: "iana", + compressible: true + }, + "application/alto-endpointcost+json": { + source: "iana", + compressible: true + }, + "application/alto-endpointcostparams+json": { + source: "iana", + compressible: true + }, + "application/alto-endpointprop+json": { + source: "iana", + compressible: true + }, + "application/alto-endpointpropparams+json": { + source: "iana", + compressible: true + }, + "application/alto-error+json": { + source: "iana", + compressible: true + }, + "application/alto-networkmap+json": { + source: "iana", + compressible: true + }, + "application/alto-networkmapfilter+json": { + source: "iana", + compressible: true + }, + "application/alto-updatestreamcontrol+json": { + source: "iana", + compressible: true + }, + "application/alto-updatestreamparams+json": { + source: "iana", + compressible: true + }, + "application/aml": { + source: "iana" + }, + "application/andrew-inset": { + source: "iana", + extensions: ["ez"] + }, + "application/applefile": { + source: "iana" + }, + "application/applixware": { + source: "apache", + extensions: ["aw"] + }, + "application/at+jwt": { + source: "iana" + }, + "application/atf": { + source: "iana" + }, + "application/atfx": { + source: "iana" + }, + "application/atom+xml": { + source: "iana", + compressible: true, + extensions: ["atom"] + }, + "application/atomcat+xml": { + source: "iana", + compressible: true, + extensions: ["atomcat"] + }, + "application/atomdeleted+xml": { + source: "iana", + compressible: true, + extensions: ["atomdeleted"] + }, + "application/atomicmail": { + source: "iana" + }, + "application/atomsvc+xml": { + source: "iana", + compressible: true, + extensions: ["atomsvc"] + }, + "application/atsc-dwd+xml": { + source: "iana", + compressible: true, + extensions: ["dwd"] + }, + "application/atsc-dynamic-event-message": { + source: "iana" + }, + "application/atsc-held+xml": { + source: "iana", + compressible: true, + extensions: ["held"] + }, + "application/atsc-rdt+json": { + source: "iana", + compressible: true + }, + "application/atsc-rsat+xml": { + source: "iana", + compressible: true, + extensions: ["rsat"] + }, + "application/atxml": { + source: "iana" + }, + "application/auth-policy+xml": { + source: "iana", + compressible: true + }, + "application/bacnet-xdd+zip": { + source: "iana", + compressible: false + }, + "application/batch-smtp": { + source: "iana" + }, + "application/bdoc": { + compressible: false, + extensions: ["bdoc"] + }, + "application/beep+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/calendar+json": { + source: "iana", + compressible: true + }, + "application/calendar+xml": { + source: "iana", + compressible: true, + extensions: ["xcs"] + }, + "application/call-completion": { + source: "iana" + }, + "application/cals-1840": { + source: "iana" + }, + "application/captive+json": { + source: "iana", + compressible: true + }, + "application/cbor": { + source: "iana" + }, + "application/cbor-seq": { + source: "iana" + }, + "application/cccex": { + source: "iana" + }, + "application/ccmp+xml": { + source: "iana", + compressible: true + }, + "application/ccxml+xml": { + source: "iana", + compressible: true, + extensions: ["ccxml"] + }, + "application/cdfx+xml": { + source: "iana", + compressible: true, + extensions: ["cdfx"] + }, + "application/cdmi-capability": { + source: "iana", + extensions: ["cdmia"] + }, + "application/cdmi-container": { + source: "iana", + extensions: ["cdmic"] + }, + "application/cdmi-domain": { + source: "iana", + extensions: ["cdmid"] + }, + "application/cdmi-object": { + source: "iana", + extensions: ["cdmio"] + }, + "application/cdmi-queue": { + source: "iana", + extensions: ["cdmiq"] + }, + "application/cdni": { + source: "iana" + }, + "application/cea": { + source: "iana" + }, + "application/cea-2018+xml": { + source: "iana", + compressible: true + }, + "application/cellml+xml": { + source: "iana", + compressible: true + }, + "application/cfw": { + source: "iana" + }, + "application/city+json": { + source: "iana", + compressible: true + }, + "application/clr": { + source: "iana" + }, + "application/clue+xml": { + source: "iana", + compressible: true + }, + "application/clue_info+xml": { + source: "iana", + compressible: true + }, + "application/cms": { + source: "iana" + }, + "application/cnrp+xml": { + source: "iana", + compressible: true + }, + "application/coap-group+json": { + source: "iana", + compressible: true + }, + "application/coap-payload": { + source: "iana" + }, + "application/commonground": { + source: "iana" + }, + "application/conference-info+xml": { + source: "iana", + compressible: true + }, + "application/cose": { + source: "iana" + }, + "application/cose-key": { + source: "iana" + }, + "application/cose-key-set": { + source: "iana" + }, + "application/cpl+xml": { + source: "iana", + compressible: true, + extensions: ["cpl"] + }, + "application/csrattrs": { + source: "iana" + }, + "application/csta+xml": { + source: "iana", + compressible: true + }, + "application/cstadata+xml": { + source: "iana", + compressible: true + }, + "application/csvm+json": { + source: "iana", + compressible: true + }, + "application/cu-seeme": { + source: "apache", + extensions: ["cu"] + }, + "application/cwt": { + source: "iana" + }, + "application/cybercash": { + source: "iana" + }, + "application/dart": { + compressible: true + }, + "application/dash+xml": { + source: "iana", + compressible: true, + extensions: ["mpd"] + }, + "application/dash-patch+xml": { + source: "iana", + compressible: true, + extensions: ["mpp"] + }, + "application/dashdelta": { + source: "iana" + }, + "application/davmount+xml": { + source: "iana", + compressible: true, + extensions: ["davmount"] + }, + "application/dca-rft": { + source: "iana" + }, + "application/dcd": { + source: "iana" + }, + "application/dec-dx": { + source: "iana" + }, + "application/dialog-info+xml": { + source: "iana", + compressible: true + }, + "application/dicom": { + source: "iana" + }, + "application/dicom+json": { + source: "iana", + compressible: true + }, + "application/dicom+xml": { + source: "iana", + compressible: true + }, + "application/dii": { + source: "iana" + }, + "application/dit": { + source: "iana" + }, + "application/dns": { + source: "iana" + }, + "application/dns+json": { + source: "iana", + compressible: true + }, + "application/dns-message": { + source: "iana" + }, + "application/docbook+xml": { + source: "apache", + compressible: true, + extensions: ["dbk"] + }, + "application/dots+cbor": { + source: "iana" + }, + "application/dskpp+xml": { + source: "iana", + compressible: true + }, + "application/dssc+der": { + source: "iana", + extensions: ["dssc"] + }, + "application/dssc+xml": { + source: "iana", + compressible: true, + extensions: ["xdssc"] + }, + "application/dvcs": { + source: "iana" + }, + "application/ecmascript": { + source: "iana", + compressible: true, + extensions: ["es", "ecma"] + }, + "application/edi-consent": { + source: "iana" + }, + "application/edi-x12": { + source: "iana", + compressible: false + }, + "application/edifact": { + source: "iana", + compressible: false + }, + "application/efi": { + source: "iana" + }, + "application/elm+json": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/elm+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.cap+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/emergencycalldata.comment+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.control+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.deviceinfo+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.ecall.msd": { + source: "iana" + }, + "application/emergencycalldata.providerinfo+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.serviceinfo+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.subscriberinfo+xml": { + source: "iana", + compressible: true + }, + "application/emergencycalldata.veds+xml": { + source: "iana", + compressible: true + }, + "application/emma+xml": { + source: "iana", + compressible: true, + extensions: ["emma"] + }, + "application/emotionml+xml": { + source: "iana", + compressible: true, + extensions: ["emotionml"] + }, + "application/encaprtp": { + source: "iana" + }, + "application/epp+xml": { + source: "iana", + compressible: true + }, + "application/epub+zip": { + source: "iana", + compressible: false, + extensions: ["epub"] + }, + "application/eshop": { + source: "iana" + }, + "application/exi": { + source: "iana", + extensions: ["exi"] + }, + "application/expect-ct-report+json": { + source: "iana", + compressible: true + }, + "application/express": { + source: "iana", + extensions: ["exp"] + }, + "application/fastinfoset": { + source: "iana" + }, + "application/fastsoap": { + source: "iana" + }, + "application/fdt+xml": { + source: "iana", + compressible: true, + extensions: ["fdt"] + }, + "application/fhir+json": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/fhir+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/fido.trusted-apps+json": { + compressible: true + }, + "application/fits": { + source: "iana" + }, + "application/flexfec": { + source: "iana" + }, + "application/font-sfnt": { + source: "iana" + }, + "application/font-tdpfr": { + source: "iana", + extensions: ["pfr"] + }, + "application/font-woff": { + source: "iana", + compressible: false + }, + "application/framework-attributes+xml": { + source: "iana", + compressible: true + }, + "application/geo+json": { + source: "iana", + compressible: true, + extensions: ["geojson"] + }, + "application/geo+json-seq": { + source: "iana" + }, + "application/geopackage+sqlite3": { + source: "iana" + }, + "application/geoxacml+xml": { + source: "iana", + compressible: true + }, + "application/gltf-buffer": { + source: "iana" + }, + "application/gml+xml": { + source: "iana", + compressible: true, + extensions: ["gml"] + }, + "application/gpx+xml": { + source: "apache", + compressible: true, + extensions: ["gpx"] + }, + "application/gxf": { + source: "apache", + extensions: ["gxf"] + }, + "application/gzip": { + source: "iana", + compressible: false, + extensions: ["gz"] + }, + "application/h224": { + source: "iana" + }, + "application/held+xml": { + source: "iana", + compressible: true + }, + "application/hjson": { + extensions: ["hjson"] + }, + "application/http": { + source: "iana" + }, + "application/hyperstudio": { + source: "iana", + extensions: ["stk"] + }, + "application/ibe-key-request+xml": { + source: "iana", + compressible: true + }, + "application/ibe-pkg-reply+xml": { + source: "iana", + compressible: true + }, + "application/ibe-pp-data": { + source: "iana" + }, + "application/iges": { + source: "iana" + }, + "application/im-iscomposing+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/index": { + source: "iana" + }, + "application/index.cmd": { + source: "iana" + }, + "application/index.obj": { + source: "iana" + }, + "application/index.response": { + source: "iana" + }, + "application/index.vnd": { + source: "iana" + }, + "application/inkml+xml": { + source: "iana", + compressible: true, + extensions: ["ink", "inkml"] + }, + "application/iotp": { + source: "iana" + }, + "application/ipfix": { + source: "iana", + extensions: ["ipfix"] + }, + "application/ipp": { + source: "iana" + }, + "application/isup": { + source: "iana" + }, + "application/its+xml": { + source: "iana", + compressible: true, + extensions: ["its"] + }, + "application/java-archive": { + source: "apache", + compressible: false, + extensions: ["jar", "war", "ear"] + }, + "application/java-serialized-object": { + source: "apache", + compressible: false, + extensions: ["ser"] + }, + "application/java-vm": { + source: "apache", + compressible: false, + extensions: ["class"] + }, + "application/javascript": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["js", "mjs"] + }, + "application/jf2feed+json": { + source: "iana", + compressible: true + }, + "application/jose": { + source: "iana" + }, + "application/jose+json": { + source: "iana", + compressible: true + }, + "application/jrd+json": { + source: "iana", + compressible: true + }, + "application/jscalendar+json": { + source: "iana", + compressible: true + }, + "application/json": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["json", "map"] + }, + "application/json-patch+json": { + source: "iana", + compressible: true + }, + "application/json-seq": { + source: "iana" + }, + "application/json5": { + extensions: ["json5"] + }, + "application/jsonml+json": { + source: "apache", + compressible: true, + extensions: ["jsonml"] + }, + "application/jwk+json": { + source: "iana", + compressible: true + }, + "application/jwk-set+json": { + source: "iana", + compressible: true + }, + "application/jwt": { + source: "iana" + }, + "application/kpml-request+xml": { + source: "iana", + compressible: true + }, + "application/kpml-response+xml": { + source: "iana", + compressible: true + }, + "application/ld+json": { + source: "iana", + compressible: true, + extensions: ["jsonld"] + }, + "application/lgr+xml": { + source: "iana", + compressible: true, + extensions: ["lgr"] + }, + "application/link-format": { + source: "iana" + }, + "application/load-control+xml": { + source: "iana", + compressible: true + }, + "application/lost+xml": { + source: "iana", + compressible: true, + extensions: ["lostxml"] + }, + "application/lostsync+xml": { + source: "iana", + compressible: true + }, + "application/lpf+zip": { + source: "iana", + compressible: false + }, + "application/lxf": { + source: "iana" + }, + "application/mac-binhex40": { + source: "iana", + extensions: ["hqx"] + }, + "application/mac-compactpro": { + source: "apache", + extensions: ["cpt"] + }, + "application/macwriteii": { + source: "iana" + }, + "application/mads+xml": { + source: "iana", + compressible: true, + extensions: ["mads"] + }, + "application/manifest+json": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["webmanifest"] + }, + "application/marc": { + source: "iana", + extensions: ["mrc"] + }, + "application/marcxml+xml": { + source: "iana", + compressible: true, + extensions: ["mrcx"] + }, + "application/mathematica": { + source: "iana", + extensions: ["ma", "nb", "mb"] + }, + "application/mathml+xml": { + source: "iana", + compressible: true, + extensions: ["mathml"] + }, + "application/mathml-content+xml": { + source: "iana", + compressible: true + }, + "application/mathml-presentation+xml": { + source: "iana", + compressible: true + }, + "application/mbms-associated-procedure-description+xml": { + source: "iana", + compressible: true + }, + "application/mbms-deregister+xml": { + source: "iana", + compressible: true + }, + "application/mbms-envelope+xml": { + source: "iana", + compressible: true + }, + "application/mbms-msk+xml": { + source: "iana", + compressible: true + }, + "application/mbms-msk-response+xml": { + source: "iana", + compressible: true + }, + "application/mbms-protection-description+xml": { + source: "iana", + compressible: true + }, + "application/mbms-reception-report+xml": { + source: "iana", + compressible: true + }, + "application/mbms-register+xml": { + source: "iana", + compressible: true + }, + "application/mbms-register-response+xml": { + source: "iana", + compressible: true + }, + "application/mbms-schedule+xml": { + source: "iana", + compressible: true + }, + "application/mbms-user-service-description+xml": { + source: "iana", + compressible: true + }, + "application/mbox": { + source: "iana", + extensions: ["mbox"] + }, + "application/media-policy-dataset+xml": { + source: "iana", + compressible: true, + extensions: ["mpf"] + }, + "application/media_control+xml": { + source: "iana", + compressible: true + }, + "application/mediaservercontrol+xml": { + source: "iana", + compressible: true, + extensions: ["mscml"] + }, + "application/merge-patch+json": { + source: "iana", + compressible: true + }, + "application/metalink+xml": { + source: "apache", + compressible: true, + extensions: ["metalink"] + }, + "application/metalink4+xml": { + source: "iana", + compressible: true, + extensions: ["meta4"] + }, + "application/mets+xml": { + source: "iana", + compressible: true, + extensions: ["mets"] + }, + "application/mf4": { + source: "iana" + }, + "application/mikey": { + source: "iana" + }, + "application/mipc": { + source: "iana" + }, + "application/missing-blocks+cbor-seq": { + source: "iana" + }, + "application/mmt-aei+xml": { + source: "iana", + compressible: true, + extensions: ["maei"] + }, + "application/mmt-usd+xml": { + source: "iana", + compressible: true, + extensions: ["musd"] + }, + "application/mods+xml": { + source: "iana", + compressible: true, + extensions: ["mods"] + }, + "application/moss-keys": { + source: "iana" + }, + "application/moss-signature": { + source: "iana" + }, + "application/mosskey-data": { + source: "iana" + }, + "application/mosskey-request": { + source: "iana" + }, + "application/mp21": { + source: "iana", + extensions: ["m21", "mp21"] + }, + "application/mp4": { + source: "iana", + extensions: ["mp4s", "m4p"] + }, + "application/mpeg4-generic": { + source: "iana" + }, + "application/mpeg4-iod": { + source: "iana" + }, + "application/mpeg4-iod-xmt": { + source: "iana" + }, + "application/mrb-consumer+xml": { + source: "iana", + compressible: true + }, + "application/mrb-publish+xml": { + source: "iana", + compressible: true + }, + "application/msc-ivr+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/msc-mixer+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/msword": { + source: "iana", + compressible: false, + extensions: ["doc", "dot"] + }, + "application/mud+json": { + source: "iana", + compressible: true + }, + "application/multipart-core": { + source: "iana" + }, + "application/mxf": { + source: "iana", + extensions: ["mxf"] + }, + "application/n-quads": { + source: "iana", + extensions: ["nq"] + }, + "application/n-triples": { + source: "iana", + extensions: ["nt"] + }, + "application/nasdata": { + source: "iana" + }, + "application/news-checkgroups": { + source: "iana", + charset: "US-ASCII" + }, + "application/news-groupinfo": { + source: "iana", + charset: "US-ASCII" + }, + "application/news-transmission": { + source: "iana" + }, + "application/nlsml+xml": { + source: "iana", + compressible: true + }, + "application/node": { + source: "iana", + extensions: ["cjs"] + }, + "application/nss": { + source: "iana" + }, + "application/oauth-authz-req+jwt": { + source: "iana" + }, + "application/oblivious-dns-message": { + source: "iana" + }, + "application/ocsp-request": { + source: "iana" + }, + "application/ocsp-response": { + source: "iana" + }, + "application/octet-stream": { + source: "iana", + compressible: false, + extensions: ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"] + }, + "application/oda": { + source: "iana", + extensions: ["oda"] + }, + "application/odm+xml": { + source: "iana", + compressible: true + }, + "application/odx": { + source: "iana" + }, + "application/oebps-package+xml": { + source: "iana", + compressible: true, + extensions: ["opf"] + }, + "application/ogg": { + source: "iana", + compressible: false, + extensions: ["ogx"] + }, + "application/omdoc+xml": { + source: "apache", + compressible: true, + extensions: ["omdoc"] + }, + "application/onenote": { + source: "apache", + extensions: ["onetoc", "onetoc2", "onetmp", "onepkg"] + }, + "application/opc-nodeset+xml": { + source: "iana", + compressible: true + }, + "application/oscore": { + source: "iana" + }, + "application/oxps": { + source: "iana", + extensions: ["oxps"] + }, + "application/p21": { + source: "iana" + }, + "application/p21+zip": { + source: "iana", + compressible: false + }, + "application/p2p-overlay+xml": { + source: "iana", + compressible: true, + extensions: ["relo"] + }, + "application/parityfec": { + source: "iana" + }, + "application/passport": { + source: "iana" + }, + "application/patch-ops-error+xml": { + source: "iana", + compressible: true, + extensions: ["xer"] + }, + "application/pdf": { + source: "iana", + compressible: false, + extensions: ["pdf"] + }, + "application/pdx": { + source: "iana" + }, + "application/pem-certificate-chain": { + source: "iana" + }, + "application/pgp-encrypted": { + source: "iana", + compressible: false, + extensions: ["pgp"] + }, + "application/pgp-keys": { + source: "iana", + extensions: ["asc"] + }, + "application/pgp-signature": { + source: "iana", + extensions: ["asc", "sig"] + }, + "application/pics-rules": { + source: "apache", + extensions: ["prf"] + }, + "application/pidf+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/pidf-diff+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/pkcs10": { + source: "iana", + extensions: ["p10"] + }, + "application/pkcs12": { + source: "iana" + }, + "application/pkcs7-mime": { + source: "iana", + extensions: ["p7m", "p7c"] + }, + "application/pkcs7-signature": { + source: "iana", + extensions: ["p7s"] + }, + "application/pkcs8": { + source: "iana", + extensions: ["p8"] + }, + "application/pkcs8-encrypted": { + source: "iana" + }, + "application/pkix-attr-cert": { + source: "iana", + extensions: ["ac"] + }, + "application/pkix-cert": { + source: "iana", + extensions: ["cer"] + }, + "application/pkix-crl": { + source: "iana", + extensions: ["crl"] + }, + "application/pkix-pkipath": { + source: "iana", + extensions: ["pkipath"] + }, + "application/pkixcmp": { + source: "iana", + extensions: ["pki"] + }, + "application/pls+xml": { + source: "iana", + compressible: true, + extensions: ["pls"] + }, + "application/poc-settings+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/postscript": { + source: "iana", + compressible: true, + extensions: ["ai", "eps", "ps"] + }, + "application/ppsp-tracker+json": { + source: "iana", + compressible: true + }, + "application/problem+json": { + source: "iana", + compressible: true + }, + "application/problem+xml": { + source: "iana", + compressible: true + }, + "application/provenance+xml": { + source: "iana", + compressible: true, + extensions: ["provx"] + }, + "application/prs.alvestrand.titrax-sheet": { + source: "iana" + }, + "application/prs.cww": { + source: "iana", + extensions: ["cww"] + }, + "application/prs.cyn": { + source: "iana", + charset: "7-BIT" + }, + "application/prs.hpub+zip": { + source: "iana", + compressible: false + }, + "application/prs.nprend": { + source: "iana" + }, + "application/prs.plucker": { + source: "iana" + }, + "application/prs.rdf-xml-crypt": { + source: "iana" + }, + "application/prs.xsf+xml": { + source: "iana", + compressible: true + }, + "application/pskc+xml": { + source: "iana", + compressible: true, + extensions: ["pskcxml"] + }, + "application/pvd+json": { + source: "iana", + compressible: true + }, + "application/qsig": { + source: "iana" + }, + "application/raml+yaml": { + compressible: true, + extensions: ["raml"] + }, + "application/raptorfec": { + source: "iana" + }, + "application/rdap+json": { + source: "iana", + compressible: true + }, + "application/rdf+xml": { + source: "iana", + compressible: true, + extensions: ["rdf", "owl"] + }, + "application/reginfo+xml": { + source: "iana", + compressible: true, + extensions: ["rif"] + }, + "application/relax-ng-compact-syntax": { + source: "iana", + extensions: ["rnc"] + }, + "application/remote-printing": { + source: "iana" + }, + "application/reputon+json": { + source: "iana", + compressible: true + }, + "application/resource-lists+xml": { + source: "iana", + compressible: true, + extensions: ["rl"] + }, + "application/resource-lists-diff+xml": { + source: "iana", + compressible: true, + extensions: ["rld"] + }, + "application/rfc+xml": { + source: "iana", + compressible: true + }, + "application/riscos": { + source: "iana" + }, + "application/rlmi+xml": { + source: "iana", + compressible: true + }, + "application/rls-services+xml": { + source: "iana", + compressible: true, + extensions: ["rs"] + }, + "application/route-apd+xml": { + source: "iana", + compressible: true, + extensions: ["rapd"] + }, + "application/route-s-tsid+xml": { + source: "iana", + compressible: true, + extensions: ["sls"] + }, + "application/route-usd+xml": { + source: "iana", + compressible: true, + extensions: ["rusd"] + }, + "application/rpki-ghostbusters": { + source: "iana", + extensions: ["gbr"] + }, + "application/rpki-manifest": { + source: "iana", + extensions: ["mft"] + }, + "application/rpki-publication": { + source: "iana" + }, + "application/rpki-roa": { + source: "iana", + extensions: ["roa"] + }, + "application/rpki-updown": { + source: "iana" + }, + "application/rsd+xml": { + source: "apache", + compressible: true, + extensions: ["rsd"] + }, + "application/rss+xml": { + source: "apache", + compressible: true, + extensions: ["rss"] + }, + "application/rtf": { + source: "iana", + compressible: true, + extensions: ["rtf"] + }, + "application/rtploopback": { + source: "iana" + }, + "application/rtx": { + source: "iana" + }, + "application/samlassertion+xml": { + source: "iana", + compressible: true + }, + "application/samlmetadata+xml": { + source: "iana", + compressible: true + }, + "application/sarif+json": { + source: "iana", + compressible: true + }, + "application/sarif-external-properties+json": { + source: "iana", + compressible: true + }, + "application/sbe": { + source: "iana" + }, + "application/sbml+xml": { + source: "iana", + compressible: true, + extensions: ["sbml"] + }, + "application/scaip+xml": { + source: "iana", + compressible: true + }, + "application/scim+json": { + source: "iana", + compressible: true + }, + "application/scvp-cv-request": { + source: "iana", + extensions: ["scq"] + }, + "application/scvp-cv-response": { + source: "iana", + extensions: ["scs"] + }, + "application/scvp-vp-request": { + source: "iana", + extensions: ["spq"] + }, + "application/scvp-vp-response": { + source: "iana", + extensions: ["spp"] + }, + "application/sdp": { + source: "iana", + extensions: ["sdp"] + }, + "application/secevent+jwt": { + source: "iana" + }, + "application/senml+cbor": { + source: "iana" + }, + "application/senml+json": { + source: "iana", + compressible: true + }, + "application/senml+xml": { + source: "iana", + compressible: true, + extensions: ["senmlx"] + }, + "application/senml-etch+cbor": { + source: "iana" + }, + "application/senml-etch+json": { + source: "iana", + compressible: true + }, + "application/senml-exi": { + source: "iana" + }, + "application/sensml+cbor": { + source: "iana" + }, + "application/sensml+json": { + source: "iana", + compressible: true + }, + "application/sensml+xml": { + source: "iana", + compressible: true, + extensions: ["sensmlx"] + }, + "application/sensml-exi": { + source: "iana" + }, + "application/sep+xml": { + source: "iana", + compressible: true + }, + "application/sep-exi": { + source: "iana" + }, + "application/session-info": { + source: "iana" + }, + "application/set-payment": { + source: "iana" + }, + "application/set-payment-initiation": { + source: "iana", + extensions: ["setpay"] + }, + "application/set-registration": { + source: "iana" + }, + "application/set-registration-initiation": { + source: "iana", + extensions: ["setreg"] + }, + "application/sgml": { + source: "iana" + }, + "application/sgml-open-catalog": { + source: "iana" + }, + "application/shf+xml": { + source: "iana", + compressible: true, + extensions: ["shf"] + }, + "application/sieve": { + source: "iana", + extensions: ["siv", "sieve"] + }, + "application/simple-filter+xml": { + source: "iana", + compressible: true + }, + "application/simple-message-summary": { + source: "iana" + }, + "application/simplesymbolcontainer": { + source: "iana" + }, + "application/sipc": { + source: "iana" + }, + "application/slate": { + source: "iana" + }, + "application/smil": { + source: "iana" + }, + "application/smil+xml": { + source: "iana", + compressible: true, + extensions: ["smi", "smil"] + }, + "application/smpte336m": { + source: "iana" + }, + "application/soap+fastinfoset": { + source: "iana" + }, + "application/soap+xml": { + source: "iana", + compressible: true + }, + "application/sparql-query": { + source: "iana", + extensions: ["rq"] + }, + "application/sparql-results+xml": { + source: "iana", + compressible: true, + extensions: ["srx"] + }, + "application/spdx+json": { + source: "iana", + compressible: true + }, + "application/spirits-event+xml": { + source: "iana", + compressible: true + }, + "application/sql": { + source: "iana" + }, + "application/srgs": { + source: "iana", + extensions: ["gram"] + }, + "application/srgs+xml": { + source: "iana", + compressible: true, + extensions: ["grxml"] + }, + "application/sru+xml": { + source: "iana", + compressible: true, + extensions: ["sru"] + }, + "application/ssdl+xml": { + source: "apache", + compressible: true, + extensions: ["ssdl"] + }, + "application/ssml+xml": { + source: "iana", + compressible: true, + extensions: ["ssml"] + }, + "application/stix+json": { + source: "iana", + compressible: true + }, + "application/swid+xml": { + source: "iana", + compressible: true, + extensions: ["swidtag"] + }, + "application/tamp-apex-update": { + source: "iana" + }, + "application/tamp-apex-update-confirm": { + source: "iana" + }, + "application/tamp-community-update": { + source: "iana" + }, + "application/tamp-community-update-confirm": { + source: "iana" + }, + "application/tamp-error": { + source: "iana" + }, + "application/tamp-sequence-adjust": { + source: "iana" + }, + "application/tamp-sequence-adjust-confirm": { + source: "iana" + }, + "application/tamp-status-query": { + source: "iana" + }, + "application/tamp-status-response": { + source: "iana" + }, + "application/tamp-update": { + source: "iana" + }, + "application/tamp-update-confirm": { + source: "iana" + }, + "application/tar": { + compressible: true + }, + "application/taxii+json": { + source: "iana", + compressible: true + }, + "application/td+json": { + source: "iana", + compressible: true + }, + "application/tei+xml": { + source: "iana", + compressible: true, + extensions: ["tei", "teicorpus"] + }, + "application/tetra_isi": { + source: "iana" + }, + "application/thraud+xml": { + source: "iana", + compressible: true, + extensions: ["tfi"] + }, + "application/timestamp-query": { + source: "iana" + }, + "application/timestamp-reply": { + source: "iana" + }, + "application/timestamped-data": { + source: "iana", + extensions: ["tsd"] + }, + "application/tlsrpt+gzip": { + source: "iana" + }, + "application/tlsrpt+json": { + source: "iana", + compressible: true + }, + "application/tnauthlist": { + source: "iana" + }, + "application/token-introspection+jwt": { + source: "iana" + }, + "application/toml": { + compressible: true, + extensions: ["toml"] + }, + "application/trickle-ice-sdpfrag": { + source: "iana" + }, + "application/trig": { + source: "iana", + extensions: ["trig"] + }, + "application/ttml+xml": { + source: "iana", + compressible: true, + extensions: ["ttml"] + }, + "application/tve-trigger": { + source: "iana" + }, + "application/tzif": { + source: "iana" + }, + "application/tzif-leap": { + source: "iana" + }, + "application/ubjson": { + compressible: false, + extensions: ["ubj"] + }, + "application/ulpfec": { + source: "iana" + }, + "application/urc-grpsheet+xml": { + source: "iana", + compressible: true + }, + "application/urc-ressheet+xml": { + source: "iana", + compressible: true, + extensions: ["rsheet"] + }, + "application/urc-targetdesc+xml": { + source: "iana", + compressible: true, + extensions: ["td"] + }, + "application/urc-uisocketdesc+xml": { + source: "iana", + compressible: true + }, + "application/vcard+json": { + source: "iana", + compressible: true + }, + "application/vcard+xml": { + source: "iana", + compressible: true + }, + "application/vemmi": { + source: "iana" + }, + "application/vividence.scriptfile": { + source: "apache" + }, + "application/vnd.1000minds.decision-model+xml": { + source: "iana", + compressible: true, + extensions: ["1km"] + }, + "application/vnd.3gpp-prose+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp-prose-pc3ch+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp-v2x-local-service-information": { + source: "iana" + }, + "application/vnd.3gpp.5gnas": { + source: "iana" + }, + "application/vnd.3gpp.access-transfer-events+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.bsf+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.gmop+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.gtpc": { + source: "iana" + }, + "application/vnd.3gpp.interworking-data": { + source: "iana" + }, + "application/vnd.3gpp.lpp": { + source: "iana" + }, + "application/vnd.3gpp.mc-signalling-ear": { + source: "iana" + }, + "application/vnd.3gpp.mcdata-affiliation-command+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcdata-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcdata-payload": { + source: "iana" + }, + "application/vnd.3gpp.mcdata-service-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcdata-signalling": { + source: "iana" + }, + "application/vnd.3gpp.mcdata-ue-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcdata-user-profile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-affiliation-command+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-floor-request+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-location-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-service-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-signed+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-ue-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-ue-init-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcptt-user-profile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-affiliation-command+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-affiliation-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-location-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-service-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-transmission-request+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-ue-config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mcvideo-user-profile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.mid-call+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.ngap": { + source: "iana" + }, + "application/vnd.3gpp.pfcp": { + source: "iana" + }, + "application/vnd.3gpp.pic-bw-large": { + source: "iana", + extensions: ["plb"] + }, + "application/vnd.3gpp.pic-bw-small": { + source: "iana", + extensions: ["psb"] + }, + "application/vnd.3gpp.pic-bw-var": { + source: "iana", + extensions: ["pvb"] + }, + "application/vnd.3gpp.s1ap": { + source: "iana" + }, + "application/vnd.3gpp.sms": { + source: "iana" + }, + "application/vnd.3gpp.sms+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.srvcc-ext+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.srvcc-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.state-and-event-info+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp.ussd+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp2.bcmcsinfo+xml": { + source: "iana", + compressible: true + }, + "application/vnd.3gpp2.sms": { + source: "iana" + }, + "application/vnd.3gpp2.tcap": { + source: "iana", + extensions: ["tcap"] + }, + "application/vnd.3lightssoftware.imagescal": { + source: "iana" + }, + "application/vnd.3m.post-it-notes": { + source: "iana", + extensions: ["pwn"] + }, + "application/vnd.accpac.simply.aso": { + source: "iana", + extensions: ["aso"] + }, + "application/vnd.accpac.simply.imp": { + source: "iana", + extensions: ["imp"] + }, + "application/vnd.acucobol": { + source: "iana", + extensions: ["acu"] + }, + "application/vnd.acucorp": { + source: "iana", + extensions: ["atc", "acutc"] + }, + "application/vnd.adobe.air-application-installer-package+zip": { + source: "apache", + compressible: false, + extensions: ["air"] + }, + "application/vnd.adobe.flash.movie": { + source: "iana" + }, + "application/vnd.adobe.formscentral.fcdt": { + source: "iana", + extensions: ["fcdt"] + }, + "application/vnd.adobe.fxp": { + source: "iana", + extensions: ["fxp", "fxpl"] + }, + "application/vnd.adobe.partial-upload": { + source: "iana" + }, + "application/vnd.adobe.xdp+xml": { + source: "iana", + compressible: true, + extensions: ["xdp"] + }, + "application/vnd.adobe.xfdf": { + source: "iana", + extensions: ["xfdf"] + }, + "application/vnd.aether.imp": { + source: "iana" + }, + "application/vnd.afpc.afplinedata": { + source: "iana" + }, + "application/vnd.afpc.afplinedata-pagedef": { + source: "iana" + }, + "application/vnd.afpc.cmoca-cmresource": { + source: "iana" + }, + "application/vnd.afpc.foca-charset": { + source: "iana" + }, + "application/vnd.afpc.foca-codedfont": { + source: "iana" + }, + "application/vnd.afpc.foca-codepage": { + source: "iana" + }, + "application/vnd.afpc.modca": { + source: "iana" + }, + "application/vnd.afpc.modca-cmtable": { + source: "iana" + }, + "application/vnd.afpc.modca-formdef": { + source: "iana" + }, + "application/vnd.afpc.modca-mediummap": { + source: "iana" + }, + "application/vnd.afpc.modca-objectcontainer": { + source: "iana" + }, + "application/vnd.afpc.modca-overlay": { + source: "iana" + }, + "application/vnd.afpc.modca-pagesegment": { + source: "iana" + }, + "application/vnd.age": { + source: "iana", + extensions: ["age"] + }, + "application/vnd.ah-barcode": { + source: "iana" + }, + "application/vnd.ahead.space": { + source: "iana", + extensions: ["ahead"] + }, + "application/vnd.airzip.filesecure.azf": { + source: "iana", + extensions: ["azf"] + }, + "application/vnd.airzip.filesecure.azs": { + source: "iana", + extensions: ["azs"] + }, + "application/vnd.amadeus+json": { + source: "iana", + compressible: true + }, + "application/vnd.amazon.ebook": { + source: "apache", + extensions: ["azw"] + }, + "application/vnd.amazon.mobi8-ebook": { + source: "iana" + }, + "application/vnd.americandynamics.acc": { + source: "iana", + extensions: ["acc"] + }, + "application/vnd.amiga.ami": { + source: "iana", + extensions: ["ami"] + }, + "application/vnd.amundsen.maze+xml": { + source: "iana", + compressible: true + }, + "application/vnd.android.ota": { + source: "iana" + }, + "application/vnd.android.package-archive": { + source: "apache", + compressible: false, + extensions: ["apk"] + }, + "application/vnd.anki": { + source: "iana" + }, + "application/vnd.anser-web-certificate-issue-initiation": { + source: "iana", + extensions: ["cii"] + }, + "application/vnd.anser-web-funds-transfer-initiation": { + source: "apache", + extensions: ["fti"] + }, + "application/vnd.antix.game-component": { + source: "iana", + extensions: ["atx"] + }, + "application/vnd.apache.arrow.file": { + source: "iana" + }, + "application/vnd.apache.arrow.stream": { + source: "iana" + }, + "application/vnd.apache.thrift.binary": { + source: "iana" + }, + "application/vnd.apache.thrift.compact": { + source: "iana" + }, + "application/vnd.apache.thrift.json": { + source: "iana" + }, + "application/vnd.api+json": { + source: "iana", + compressible: true + }, + "application/vnd.aplextor.warrp+json": { + source: "iana", + compressible: true + }, + "application/vnd.apothekende.reservation+json": { + source: "iana", + compressible: true + }, + "application/vnd.apple.installer+xml": { + source: "iana", + compressible: true, + extensions: ["mpkg"] + }, + "application/vnd.apple.keynote": { + source: "iana", + extensions: ["key"] + }, + "application/vnd.apple.mpegurl": { + source: "iana", + extensions: ["m3u8"] + }, + "application/vnd.apple.numbers": { + source: "iana", + extensions: ["numbers"] + }, + "application/vnd.apple.pages": { + source: "iana", + extensions: ["pages"] + }, + "application/vnd.apple.pkpass": { + compressible: false, + extensions: ["pkpass"] + }, + "application/vnd.arastra.swi": { + source: "iana" + }, + "application/vnd.aristanetworks.swi": { + source: "iana", + extensions: ["swi"] + }, + "application/vnd.artisan+json": { + source: "iana", + compressible: true + }, + "application/vnd.artsquare": { + source: "iana" + }, + "application/vnd.astraea-software.iota": { + source: "iana", + extensions: ["iota"] + }, + "application/vnd.audiograph": { + source: "iana", + extensions: ["aep"] + }, + "application/vnd.autopackage": { + source: "iana" + }, + "application/vnd.avalon+json": { + source: "iana", + compressible: true + }, + "application/vnd.avistar+xml": { + source: "iana", + compressible: true + }, + "application/vnd.balsamiq.bmml+xml": { + source: "iana", + compressible: true, + extensions: ["bmml"] + }, + "application/vnd.balsamiq.bmpr": { + source: "iana" + }, + "application/vnd.banana-accounting": { + source: "iana" + }, + "application/vnd.bbf.usp.error": { + source: "iana" + }, + "application/vnd.bbf.usp.msg": { + source: "iana" + }, + "application/vnd.bbf.usp.msg+json": { + source: "iana", + compressible: true + }, + "application/vnd.bekitzur-stech+json": { + source: "iana", + compressible: true + }, + "application/vnd.bint.med-content": { + source: "iana" + }, + "application/vnd.biopax.rdf+xml": { + source: "iana", + compressible: true + }, + "application/vnd.blink-idb-value-wrapper": { + source: "iana" + }, + "application/vnd.blueice.multipass": { + source: "iana", + extensions: ["mpm"] + }, + "application/vnd.bluetooth.ep.oob": { + source: "iana" + }, + "application/vnd.bluetooth.le.oob": { + source: "iana" + }, + "application/vnd.bmi": { + source: "iana", + extensions: ["bmi"] + }, + "application/vnd.bpf": { + source: "iana" + }, + "application/vnd.bpf3": { + source: "iana" + }, + "application/vnd.businessobjects": { + source: "iana", + extensions: ["rep"] + }, + "application/vnd.byu.uapi+json": { + source: "iana", + compressible: true + }, + "application/vnd.cab-jscript": { + source: "iana" + }, + "application/vnd.canon-cpdl": { + source: "iana" + }, + "application/vnd.canon-lips": { + source: "iana" + }, + "application/vnd.capasystems-pg+json": { + source: "iana", + compressible: true + }, + "application/vnd.cendio.thinlinc.clientconf": { + source: "iana" + }, + "application/vnd.century-systems.tcp_stream": { + source: "iana" + }, + "application/vnd.chemdraw+xml": { + source: "iana", + compressible: true, + extensions: ["cdxml"] + }, + "application/vnd.chess-pgn": { + source: "iana" + }, + "application/vnd.chipnuts.karaoke-mmd": { + source: "iana", + extensions: ["mmd"] + }, + "application/vnd.ciedi": { + source: "iana" + }, + "application/vnd.cinderella": { + source: "iana", + extensions: ["cdy"] + }, + "application/vnd.cirpack.isdn-ext": { + source: "iana" + }, + "application/vnd.citationstyles.style+xml": { + source: "iana", + compressible: true, + extensions: ["csl"] + }, + "application/vnd.claymore": { + source: "iana", + extensions: ["cla"] + }, + "application/vnd.cloanto.rp9": { + source: "iana", + extensions: ["rp9"] + }, + "application/vnd.clonk.c4group": { + source: "iana", + extensions: ["c4g", "c4d", "c4f", "c4p", "c4u"] + }, + "application/vnd.cluetrust.cartomobile-config": { + source: "iana", + extensions: ["c11amc"] + }, + "application/vnd.cluetrust.cartomobile-config-pkg": { + source: "iana", + extensions: ["c11amz"] + }, + "application/vnd.coffeescript": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.document": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.document-template": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.presentation": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.presentation-template": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.spreadsheet": { + source: "iana" + }, + "application/vnd.collabio.xodocuments.spreadsheet-template": { + source: "iana" + }, + "application/vnd.collection+json": { + source: "iana", + compressible: true + }, + "application/vnd.collection.doc+json": { + source: "iana", + compressible: true + }, + "application/vnd.collection.next+json": { + source: "iana", + compressible: true + }, + "application/vnd.comicbook+zip": { + source: "iana", + compressible: false + }, + "application/vnd.comicbook-rar": { + source: "iana" + }, + "application/vnd.commerce-battelle": { + source: "iana" + }, + "application/vnd.commonspace": { + source: "iana", + extensions: ["csp"] + }, + "application/vnd.contact.cmsg": { + source: "iana", + extensions: ["cdbcmsg"] + }, + "application/vnd.coreos.ignition+json": { + source: "iana", + compressible: true + }, + "application/vnd.cosmocaller": { + source: "iana", + extensions: ["cmc"] + }, + "application/vnd.crick.clicker": { + source: "iana", + extensions: ["clkx"] + }, + "application/vnd.crick.clicker.keyboard": { + source: "iana", + extensions: ["clkk"] + }, + "application/vnd.crick.clicker.palette": { + source: "iana", + extensions: ["clkp"] + }, + "application/vnd.crick.clicker.template": { + source: "iana", + extensions: ["clkt"] + }, + "application/vnd.crick.clicker.wordbank": { + source: "iana", + extensions: ["clkw"] + }, + "application/vnd.criticaltools.wbs+xml": { + source: "iana", + compressible: true, + extensions: ["wbs"] + }, + "application/vnd.cryptii.pipe+json": { + source: "iana", + compressible: true + }, + "application/vnd.crypto-shade-file": { + source: "iana" + }, + "application/vnd.cryptomator.encrypted": { + source: "iana" + }, + "application/vnd.cryptomator.vault": { + source: "iana" + }, + "application/vnd.ctc-posml": { + source: "iana", + extensions: ["pml"] + }, + "application/vnd.ctct.ws+xml": { + source: "iana", + compressible: true + }, + "application/vnd.cups-pdf": { + source: "iana" + }, + "application/vnd.cups-postscript": { + source: "iana" + }, + "application/vnd.cups-ppd": { + source: "iana", + extensions: ["ppd"] + }, + "application/vnd.cups-raster": { + source: "iana" + }, + "application/vnd.cups-raw": { + source: "iana" + }, + "application/vnd.curl": { + source: "iana" + }, + "application/vnd.curl.car": { + source: "apache", + extensions: ["car"] + }, + "application/vnd.curl.pcurl": { + source: "apache", + extensions: ["pcurl"] + }, + "application/vnd.cyan.dean.root+xml": { + source: "iana", + compressible: true + }, + "application/vnd.cybank": { + source: "iana" + }, + "application/vnd.cyclonedx+json": { + source: "iana", + compressible: true + }, + "application/vnd.cyclonedx+xml": { + source: "iana", + compressible: true + }, + "application/vnd.d2l.coursepackage1p0+zip": { + source: "iana", + compressible: false + }, + "application/vnd.d3m-dataset": { + source: "iana" + }, + "application/vnd.d3m-problem": { + source: "iana" + }, + "application/vnd.dart": { + source: "iana", + compressible: true, + extensions: ["dart"] + }, + "application/vnd.data-vision.rdz": { + source: "iana", + extensions: ["rdz"] + }, + "application/vnd.datapackage+json": { + source: "iana", + compressible: true + }, + "application/vnd.dataresource+json": { + source: "iana", + compressible: true + }, + "application/vnd.dbf": { + source: "iana", + extensions: ["dbf"] + }, + "application/vnd.debian.binary-package": { + source: "iana" + }, + "application/vnd.dece.data": { + source: "iana", + extensions: ["uvf", "uvvf", "uvd", "uvvd"] + }, + "application/vnd.dece.ttml+xml": { + source: "iana", + compressible: true, + extensions: ["uvt", "uvvt"] + }, + "application/vnd.dece.unspecified": { + source: "iana", + extensions: ["uvx", "uvvx"] + }, + "application/vnd.dece.zip": { + source: "iana", + extensions: ["uvz", "uvvz"] + }, + "application/vnd.denovo.fcselayout-link": { + source: "iana", + extensions: ["fe_launch"] + }, + "application/vnd.desmume.movie": { + source: "iana" + }, + "application/vnd.dir-bi.plate-dl-nosuffix": { + source: "iana" + }, + "application/vnd.dm.delegation+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dna": { + source: "iana", + extensions: ["dna"] + }, + "application/vnd.document+json": { + source: "iana", + compressible: true + }, + "application/vnd.dolby.mlp": { + source: "apache", + extensions: ["mlp"] + }, + "application/vnd.dolby.mobile.1": { + source: "iana" + }, + "application/vnd.dolby.mobile.2": { + source: "iana" + }, + "application/vnd.doremir.scorecloud-binary-document": { + source: "iana" + }, + "application/vnd.dpgraph": { + source: "iana", + extensions: ["dpg"] + }, + "application/vnd.dreamfactory": { + source: "iana", + extensions: ["dfac"] + }, + "application/vnd.drive+json": { + source: "iana", + compressible: true + }, + "application/vnd.ds-keypoint": { + source: "apache", + extensions: ["kpxx"] + }, + "application/vnd.dtg.local": { + source: "iana" + }, + "application/vnd.dtg.local.flash": { + source: "iana" + }, + "application/vnd.dtg.local.html": { + source: "iana" + }, + "application/vnd.dvb.ait": { + source: "iana", + extensions: ["ait"] + }, + "application/vnd.dvb.dvbisl+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.dvbj": { + source: "iana" + }, + "application/vnd.dvb.esgcontainer": { + source: "iana" + }, + "application/vnd.dvb.ipdcdftnotifaccess": { + source: "iana" + }, + "application/vnd.dvb.ipdcesgaccess": { + source: "iana" + }, + "application/vnd.dvb.ipdcesgaccess2": { + source: "iana" + }, + "application/vnd.dvb.ipdcesgpdd": { + source: "iana" + }, + "application/vnd.dvb.ipdcroaming": { + source: "iana" + }, + "application/vnd.dvb.iptv.alfec-base": { + source: "iana" + }, + "application/vnd.dvb.iptv.alfec-enhancement": { + source: "iana" + }, + "application/vnd.dvb.notif-aggregate-root+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-container+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-generic+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-ia-msglist+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-ia-registration-request+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-ia-registration-response+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.notif-init+xml": { + source: "iana", + compressible: true + }, + "application/vnd.dvb.pfr": { + source: "iana" + }, + "application/vnd.dvb.service": { + source: "iana", + extensions: ["svc"] + }, + "application/vnd.dxr": { + source: "iana" + }, + "application/vnd.dynageo": { + source: "iana", + extensions: ["geo"] + }, + "application/vnd.dzr": { + source: "iana" + }, + "application/vnd.easykaraoke.cdgdownload": { + source: "iana" + }, + "application/vnd.ecdis-update": { + source: "iana" + }, + "application/vnd.ecip.rlp": { + source: "iana" + }, + "application/vnd.eclipse.ditto+json": { + source: "iana", + compressible: true + }, + "application/vnd.ecowin.chart": { + source: "iana", + extensions: ["mag"] + }, + "application/vnd.ecowin.filerequest": { + source: "iana" + }, + "application/vnd.ecowin.fileupdate": { + source: "iana" + }, + "application/vnd.ecowin.series": { + source: "iana" + }, + "application/vnd.ecowin.seriesrequest": { + source: "iana" + }, + "application/vnd.ecowin.seriesupdate": { + source: "iana" + }, + "application/vnd.efi.img": { + source: "iana" + }, + "application/vnd.efi.iso": { + source: "iana" + }, + "application/vnd.emclient.accessrequest+xml": { + source: "iana", + compressible: true + }, + "application/vnd.enliven": { + source: "iana", + extensions: ["nml"] + }, + "application/vnd.enphase.envoy": { + source: "iana" + }, + "application/vnd.eprints.data+xml": { + source: "iana", + compressible: true + }, + "application/vnd.epson.esf": { + source: "iana", + extensions: ["esf"] + }, + "application/vnd.epson.msf": { + source: "iana", + extensions: ["msf"] + }, + "application/vnd.epson.quickanime": { + source: "iana", + extensions: ["qam"] + }, + "application/vnd.epson.salt": { + source: "iana", + extensions: ["slt"] + }, + "application/vnd.epson.ssf": { + source: "iana", + extensions: ["ssf"] + }, + "application/vnd.ericsson.quickcall": { + source: "iana" + }, + "application/vnd.espass-espass+zip": { + source: "iana", + compressible: false + }, + "application/vnd.eszigno3+xml": { + source: "iana", + compressible: true, + extensions: ["es3", "et3"] + }, + "application/vnd.etsi.aoc+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.asic-e+zip": { + source: "iana", + compressible: false + }, + "application/vnd.etsi.asic-s+zip": { + source: "iana", + compressible: false + }, + "application/vnd.etsi.cug+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvcommand+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvdiscovery+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvprofile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvsad-bc+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvsad-cod+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvsad-npvr+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvservice+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvsync+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.iptvueprofile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.mcid+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.mheg5": { + source: "iana" + }, + "application/vnd.etsi.overload-control-policy-dataset+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.pstn+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.sci+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.simservs+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.timestamp-token": { + source: "iana" + }, + "application/vnd.etsi.tsl+xml": { + source: "iana", + compressible: true + }, + "application/vnd.etsi.tsl.der": { + source: "iana" + }, + "application/vnd.eu.kasparian.car+json": { + source: "iana", + compressible: true + }, + "application/vnd.eudora.data": { + source: "iana" + }, + "application/vnd.evolv.ecig.profile": { + source: "iana" + }, + "application/vnd.evolv.ecig.settings": { + source: "iana" + }, + "application/vnd.evolv.ecig.theme": { + source: "iana" + }, + "application/vnd.exstream-empower+zip": { + source: "iana", + compressible: false + }, + "application/vnd.exstream-package": { + source: "iana" + }, + "application/vnd.ezpix-album": { + source: "iana", + extensions: ["ez2"] + }, + "application/vnd.ezpix-package": { + source: "iana", + extensions: ["ez3"] + }, + "application/vnd.f-secure.mobile": { + source: "iana" + }, + "application/vnd.familysearch.gedcom+zip": { + source: "iana", + compressible: false + }, + "application/vnd.fastcopy-disk-image": { + source: "iana" + }, + "application/vnd.fdf": { + source: "iana", + extensions: ["fdf"] + }, + "application/vnd.fdsn.mseed": { + source: "iana", + extensions: ["mseed"] + }, + "application/vnd.fdsn.seed": { + source: "iana", + extensions: ["seed", "dataless"] + }, + "application/vnd.ffsns": { + source: "iana" + }, + "application/vnd.ficlab.flb+zip": { + source: "iana", + compressible: false + }, + "application/vnd.filmit.zfc": { + source: "iana" + }, + "application/vnd.fints": { + source: "iana" + }, + "application/vnd.firemonkeys.cloudcell": { + source: "iana" + }, + "application/vnd.flographit": { + source: "iana", + extensions: ["gph"] + }, + "application/vnd.fluxtime.clip": { + source: "iana", + extensions: ["ftc"] + }, + "application/vnd.font-fontforge-sfd": { + source: "iana" + }, + "application/vnd.framemaker": { + source: "iana", + extensions: ["fm", "frame", "maker", "book"] + }, + "application/vnd.frogans.fnc": { + source: "iana", + extensions: ["fnc"] + }, + "application/vnd.frogans.ltf": { + source: "iana", + extensions: ["ltf"] + }, + "application/vnd.fsc.weblaunch": { + source: "iana", + extensions: ["fsc"] + }, + "application/vnd.fujifilm.fb.docuworks": { + source: "iana" + }, + "application/vnd.fujifilm.fb.docuworks.binder": { + source: "iana" + }, + "application/vnd.fujifilm.fb.docuworks.container": { + source: "iana" + }, + "application/vnd.fujifilm.fb.jfi+xml": { + source: "iana", + compressible: true + }, + "application/vnd.fujitsu.oasys": { + source: "iana", + extensions: ["oas"] + }, + "application/vnd.fujitsu.oasys2": { + source: "iana", + extensions: ["oa2"] + }, + "application/vnd.fujitsu.oasys3": { + source: "iana", + extensions: ["oa3"] + }, + "application/vnd.fujitsu.oasysgp": { + source: "iana", + extensions: ["fg5"] + }, + "application/vnd.fujitsu.oasysprs": { + source: "iana", + extensions: ["bh2"] + }, + "application/vnd.fujixerox.art-ex": { + source: "iana" + }, + "application/vnd.fujixerox.art4": { + source: "iana" + }, + "application/vnd.fujixerox.ddd": { + source: "iana", + extensions: ["ddd"] + }, + "application/vnd.fujixerox.docuworks": { + source: "iana", + extensions: ["xdw"] + }, + "application/vnd.fujixerox.docuworks.binder": { + source: "iana", + extensions: ["xbd"] + }, + "application/vnd.fujixerox.docuworks.container": { + source: "iana" + }, + "application/vnd.fujixerox.hbpl": { + source: "iana" + }, + "application/vnd.fut-misnet": { + source: "iana" + }, + "application/vnd.futoin+cbor": { + source: "iana" + }, + "application/vnd.futoin+json": { + source: "iana", + compressible: true + }, + "application/vnd.fuzzysheet": { + source: "iana", + extensions: ["fzs"] + }, + "application/vnd.genomatix.tuxedo": { + source: "iana", + extensions: ["txd"] + }, + "application/vnd.gentics.grd+json": { + source: "iana", + compressible: true + }, + "application/vnd.geo+json": { + source: "iana", + compressible: true + }, + "application/vnd.geocube+xml": { + source: "iana", + compressible: true + }, + "application/vnd.geogebra.file": { + source: "iana", + extensions: ["ggb"] + }, + "application/vnd.geogebra.slides": { + source: "iana" + }, + "application/vnd.geogebra.tool": { + source: "iana", + extensions: ["ggt"] + }, + "application/vnd.geometry-explorer": { + source: "iana", + extensions: ["gex", "gre"] + }, + "application/vnd.geonext": { + source: "iana", + extensions: ["gxt"] + }, + "application/vnd.geoplan": { + source: "iana", + extensions: ["g2w"] + }, + "application/vnd.geospace": { + source: "iana", + extensions: ["g3w"] + }, + "application/vnd.gerber": { + source: "iana" + }, + "application/vnd.globalplatform.card-content-mgt": { + source: "iana" + }, + "application/vnd.globalplatform.card-content-mgt-response": { + source: "iana" + }, + "application/vnd.gmx": { + source: "iana", + extensions: ["gmx"] + }, + "application/vnd.google-apps.document": { + compressible: false, + extensions: ["gdoc"] + }, + "application/vnd.google-apps.presentation": { + compressible: false, + extensions: ["gslides"] + }, + "application/vnd.google-apps.spreadsheet": { + compressible: false, + extensions: ["gsheet"] + }, + "application/vnd.google-earth.kml+xml": { + source: "iana", + compressible: true, + extensions: ["kml"] + }, + "application/vnd.google-earth.kmz": { + source: "iana", + compressible: false, + extensions: ["kmz"] + }, + "application/vnd.gov.sk.e-form+xml": { + source: "iana", + compressible: true + }, + "application/vnd.gov.sk.e-form+zip": { + source: "iana", + compressible: false + }, + "application/vnd.gov.sk.xmldatacontainer+xml": { + source: "iana", + compressible: true + }, + "application/vnd.grafeq": { + source: "iana", + extensions: ["gqf", "gqs"] + }, + "application/vnd.gridmp": { + source: "iana" + }, + "application/vnd.groove-account": { + source: "iana", + extensions: ["gac"] + }, + "application/vnd.groove-help": { + source: "iana", + extensions: ["ghf"] + }, + "application/vnd.groove-identity-message": { + source: "iana", + extensions: ["gim"] + }, + "application/vnd.groove-injector": { + source: "iana", + extensions: ["grv"] + }, + "application/vnd.groove-tool-message": { + source: "iana", + extensions: ["gtm"] + }, + "application/vnd.groove-tool-template": { + source: "iana", + extensions: ["tpl"] + }, + "application/vnd.groove-vcard": { + source: "iana", + extensions: ["vcg"] + }, + "application/vnd.hal+json": { + source: "iana", + compressible: true + }, + "application/vnd.hal+xml": { + source: "iana", + compressible: true, + extensions: ["hal"] + }, + "application/vnd.handheld-entertainment+xml": { + source: "iana", + compressible: true, + extensions: ["zmm"] + }, + "application/vnd.hbci": { + source: "iana", + extensions: ["hbci"] + }, + "application/vnd.hc+json": { + source: "iana", + compressible: true + }, + "application/vnd.hcl-bireports": { + source: "iana" + }, + "application/vnd.hdt": { + source: "iana" + }, + "application/vnd.heroku+json": { + source: "iana", + compressible: true + }, + "application/vnd.hhe.lesson-player": { + source: "iana", + extensions: ["les"] + }, + "application/vnd.hl7cda+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.hl7v2+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.hp-hpgl": { + source: "iana", + extensions: ["hpgl"] + }, + "application/vnd.hp-hpid": { + source: "iana", + extensions: ["hpid"] + }, + "application/vnd.hp-hps": { + source: "iana", + extensions: ["hps"] + }, + "application/vnd.hp-jlyt": { + source: "iana", + extensions: ["jlt"] + }, + "application/vnd.hp-pcl": { + source: "iana", + extensions: ["pcl"] + }, + "application/vnd.hp-pclxl": { + source: "iana", + extensions: ["pclxl"] + }, + "application/vnd.httphone": { + source: "iana" + }, + "application/vnd.hydrostatix.sof-data": { + source: "iana", + extensions: ["sfd-hdstx"] + }, + "application/vnd.hyper+json": { + source: "iana", + compressible: true + }, + "application/vnd.hyper-item+json": { + source: "iana", + compressible: true + }, + "application/vnd.hyperdrive+json": { + source: "iana", + compressible: true + }, + "application/vnd.hzn-3d-crossword": { + source: "iana" + }, + "application/vnd.ibm.afplinedata": { + source: "iana" + }, + "application/vnd.ibm.electronic-media": { + source: "iana" + }, + "application/vnd.ibm.minipay": { + source: "iana", + extensions: ["mpy"] + }, + "application/vnd.ibm.modcap": { + source: "iana", + extensions: ["afp", "listafp", "list3820"] + }, + "application/vnd.ibm.rights-management": { + source: "iana", + extensions: ["irm"] + }, + "application/vnd.ibm.secure-container": { + source: "iana", + extensions: ["sc"] + }, + "application/vnd.iccprofile": { + source: "iana", + extensions: ["icc", "icm"] + }, + "application/vnd.ieee.1905": { + source: "iana" + }, + "application/vnd.igloader": { + source: "iana", + extensions: ["igl"] + }, + "application/vnd.imagemeter.folder+zip": { + source: "iana", + compressible: false + }, + "application/vnd.imagemeter.image+zip": { + source: "iana", + compressible: false + }, + "application/vnd.immervision-ivp": { + source: "iana", + extensions: ["ivp"] + }, + "application/vnd.immervision-ivu": { + source: "iana", + extensions: ["ivu"] + }, + "application/vnd.ims.imsccv1p1": { + source: "iana" + }, + "application/vnd.ims.imsccv1p2": { + source: "iana" + }, + "application/vnd.ims.imsccv1p3": { + source: "iana" + }, + "application/vnd.ims.lis.v2.result+json": { + source: "iana", + compressible: true + }, + "application/vnd.ims.lti.v2.toolconsumerprofile+json": { + source: "iana", + compressible: true + }, + "application/vnd.ims.lti.v2.toolproxy+json": { + source: "iana", + compressible: true + }, + "application/vnd.ims.lti.v2.toolproxy.id+json": { + source: "iana", + compressible: true + }, + "application/vnd.ims.lti.v2.toolsettings+json": { + source: "iana", + compressible: true + }, + "application/vnd.ims.lti.v2.toolsettings.simple+json": { + source: "iana", + compressible: true + }, + "application/vnd.informedcontrol.rms+xml": { + source: "iana", + compressible: true + }, + "application/vnd.informix-visionary": { + source: "iana" + }, + "application/vnd.infotech.project": { + source: "iana" + }, + "application/vnd.infotech.project+xml": { + source: "iana", + compressible: true + }, + "application/vnd.innopath.wamp.notification": { + source: "iana" + }, + "application/vnd.insors.igm": { + source: "iana", + extensions: ["igm"] + }, + "application/vnd.intercon.formnet": { + source: "iana", + extensions: ["xpw", "xpx"] + }, + "application/vnd.intergeo": { + source: "iana", + extensions: ["i2g"] + }, + "application/vnd.intertrust.digibox": { + source: "iana" + }, + "application/vnd.intertrust.nncp": { + source: "iana" + }, + "application/vnd.intu.qbo": { + source: "iana", + extensions: ["qbo"] + }, + "application/vnd.intu.qfx": { + source: "iana", + extensions: ["qfx"] + }, + "application/vnd.iptc.g2.catalogitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.conceptitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.knowledgeitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.newsitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.newsmessage+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.packageitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.iptc.g2.planningitem+xml": { + source: "iana", + compressible: true + }, + "application/vnd.ipunplugged.rcprofile": { + source: "iana", + extensions: ["rcprofile"] + }, + "application/vnd.irepository.package+xml": { + source: "iana", + compressible: true, + extensions: ["irp"] + }, + "application/vnd.is-xpr": { + source: "iana", + extensions: ["xpr"] + }, + "application/vnd.isac.fcs": { + source: "iana", + extensions: ["fcs"] + }, + "application/vnd.iso11783-10+zip": { + source: "iana", + compressible: false + }, + "application/vnd.jam": { + source: "iana", + extensions: ["jam"] + }, + "application/vnd.japannet-directory-service": { + source: "iana" + }, + "application/vnd.japannet-jpnstore-wakeup": { + source: "iana" + }, + "application/vnd.japannet-payment-wakeup": { + source: "iana" + }, + "application/vnd.japannet-registration": { + source: "iana" + }, + "application/vnd.japannet-registration-wakeup": { + source: "iana" + }, + "application/vnd.japannet-setstore-wakeup": { + source: "iana" + }, + "application/vnd.japannet-verification": { + source: "iana" + }, + "application/vnd.japannet-verification-wakeup": { + source: "iana" + }, + "application/vnd.jcp.javame.midlet-rms": { + source: "iana", + extensions: ["rms"] + }, + "application/vnd.jisp": { + source: "iana", + extensions: ["jisp"] + }, + "application/vnd.joost.joda-archive": { + source: "iana", + extensions: ["joda"] + }, + "application/vnd.jsk.isdn-ngn": { + source: "iana" + }, + "application/vnd.kahootz": { + source: "iana", + extensions: ["ktz", "ktr"] + }, + "application/vnd.kde.karbon": { + source: "iana", + extensions: ["karbon"] + }, + "application/vnd.kde.kchart": { + source: "iana", + extensions: ["chrt"] + }, + "application/vnd.kde.kformula": { + source: "iana", + extensions: ["kfo"] + }, + "application/vnd.kde.kivio": { + source: "iana", + extensions: ["flw"] + }, + "application/vnd.kde.kontour": { + source: "iana", + extensions: ["kon"] + }, + "application/vnd.kde.kpresenter": { + source: "iana", + extensions: ["kpr", "kpt"] + }, + "application/vnd.kde.kspread": { + source: "iana", + extensions: ["ksp"] + }, + "application/vnd.kde.kword": { + source: "iana", + extensions: ["kwd", "kwt"] + }, + "application/vnd.kenameaapp": { + source: "iana", + extensions: ["htke"] + }, + "application/vnd.kidspiration": { + source: "iana", + extensions: ["kia"] + }, + "application/vnd.kinar": { + source: "iana", + extensions: ["kne", "knp"] + }, + "application/vnd.koan": { + source: "iana", + extensions: ["skp", "skd", "skt", "skm"] + }, + "application/vnd.kodak-descriptor": { + source: "iana", + extensions: ["sse"] + }, + "application/vnd.las": { + source: "iana" + }, + "application/vnd.las.las+json": { + source: "iana", + compressible: true + }, + "application/vnd.las.las+xml": { + source: "iana", + compressible: true, + extensions: ["lasxml"] + }, + "application/vnd.laszip": { + source: "iana" + }, + "application/vnd.leap+json": { + source: "iana", + compressible: true + }, + "application/vnd.liberty-request+xml": { + source: "iana", + compressible: true + }, + "application/vnd.llamagraphics.life-balance.desktop": { + source: "iana", + extensions: ["lbd"] + }, + "application/vnd.llamagraphics.life-balance.exchange+xml": { + source: "iana", + compressible: true, + extensions: ["lbe"] + }, + "application/vnd.logipipe.circuit+zip": { + source: "iana", + compressible: false + }, + "application/vnd.loom": { + source: "iana" + }, + "application/vnd.lotus-1-2-3": { + source: "iana", + extensions: ["123"] + }, + "application/vnd.lotus-approach": { + source: "iana", + extensions: ["apr"] + }, + "application/vnd.lotus-freelance": { + source: "iana", + extensions: ["pre"] + }, + "application/vnd.lotus-notes": { + source: "iana", + extensions: ["nsf"] + }, + "application/vnd.lotus-organizer": { + source: "iana", + extensions: ["org"] + }, + "application/vnd.lotus-screencam": { + source: "iana", + extensions: ["scm"] + }, + "application/vnd.lotus-wordpro": { + source: "iana", + extensions: ["lwp"] + }, + "application/vnd.macports.portpkg": { + source: "iana", + extensions: ["portpkg"] + }, + "application/vnd.mapbox-vector-tile": { + source: "iana", + extensions: ["mvt"] + }, + "application/vnd.marlin.drm.actiontoken+xml": { + source: "iana", + compressible: true + }, + "application/vnd.marlin.drm.conftoken+xml": { + source: "iana", + compressible: true + }, + "application/vnd.marlin.drm.license+xml": { + source: "iana", + compressible: true + }, + "application/vnd.marlin.drm.mdcf": { + source: "iana" + }, + "application/vnd.mason+json": { + source: "iana", + compressible: true + }, + "application/vnd.maxar.archive.3tz+zip": { + source: "iana", + compressible: false + }, + "application/vnd.maxmind.maxmind-db": { + source: "iana" + }, + "application/vnd.mcd": { + source: "iana", + extensions: ["mcd"] + }, + "application/vnd.medcalcdata": { + source: "iana", + extensions: ["mc1"] + }, + "application/vnd.mediastation.cdkey": { + source: "iana", + extensions: ["cdkey"] + }, + "application/vnd.meridian-slingshot": { + source: "iana" + }, + "application/vnd.mfer": { + source: "iana", + extensions: ["mwf"] + }, + "application/vnd.mfmp": { + source: "iana", + extensions: ["mfm"] + }, + "application/vnd.micro+json": { + source: "iana", + compressible: true + }, + "application/vnd.micrografx.flo": { + source: "iana", + extensions: ["flo"] + }, + "application/vnd.micrografx.igx": { + source: "iana", + extensions: ["igx"] + }, + "application/vnd.microsoft.portable-executable": { + source: "iana" + }, + "application/vnd.microsoft.windows.thumbnail-cache": { + source: "iana" + }, + "application/vnd.miele+json": { + source: "iana", + compressible: true + }, + "application/vnd.mif": { + source: "iana", + extensions: ["mif"] + }, + "application/vnd.minisoft-hp3000-save": { + source: "iana" + }, + "application/vnd.mitsubishi.misty-guard.trustweb": { + source: "iana" + }, + "application/vnd.mobius.daf": { + source: "iana", + extensions: ["daf"] + }, + "application/vnd.mobius.dis": { + source: "iana", + extensions: ["dis"] + }, + "application/vnd.mobius.mbk": { + source: "iana", + extensions: ["mbk"] + }, + "application/vnd.mobius.mqy": { + source: "iana", + extensions: ["mqy"] + }, + "application/vnd.mobius.msl": { + source: "iana", + extensions: ["msl"] + }, + "application/vnd.mobius.plc": { + source: "iana", + extensions: ["plc"] + }, + "application/vnd.mobius.txf": { + source: "iana", + extensions: ["txf"] + }, + "application/vnd.mophun.application": { + source: "iana", + extensions: ["mpn"] + }, + "application/vnd.mophun.certificate": { + source: "iana", + extensions: ["mpc"] + }, + "application/vnd.motorola.flexsuite": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.adsi": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.fis": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.gotap": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.kmr": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.ttc": { + source: "iana" + }, + "application/vnd.motorola.flexsuite.wem": { + source: "iana" + }, + "application/vnd.motorola.iprm": { + source: "iana" + }, + "application/vnd.mozilla.xul+xml": { + source: "iana", + compressible: true, + extensions: ["xul"] + }, + "application/vnd.ms-3mfdocument": { + source: "iana" + }, + "application/vnd.ms-artgalry": { + source: "iana", + extensions: ["cil"] + }, + "application/vnd.ms-asf": { + source: "iana" + }, + "application/vnd.ms-cab-compressed": { + source: "iana", + extensions: ["cab"] + }, + "application/vnd.ms-color.iccprofile": { + source: "apache" + }, + "application/vnd.ms-excel": { + source: "iana", + compressible: false, + extensions: ["xls", "xlm", "xla", "xlc", "xlt", "xlw"] + }, + "application/vnd.ms-excel.addin.macroenabled.12": { + source: "iana", + extensions: ["xlam"] + }, + "application/vnd.ms-excel.sheet.binary.macroenabled.12": { + source: "iana", + extensions: ["xlsb"] + }, + "application/vnd.ms-excel.sheet.macroenabled.12": { + source: "iana", + extensions: ["xlsm"] + }, + "application/vnd.ms-excel.template.macroenabled.12": { + source: "iana", + extensions: ["xltm"] + }, + "application/vnd.ms-fontobject": { + source: "iana", + compressible: true, + extensions: ["eot"] + }, + "application/vnd.ms-htmlhelp": { + source: "iana", + extensions: ["chm"] + }, + "application/vnd.ms-ims": { + source: "iana", + extensions: ["ims"] + }, + "application/vnd.ms-lrm": { + source: "iana", + extensions: ["lrm"] + }, + "application/vnd.ms-office.activex+xml": { + source: "iana", + compressible: true + }, + "application/vnd.ms-officetheme": { + source: "iana", + extensions: ["thmx"] + }, + "application/vnd.ms-opentype": { + source: "apache", + compressible: true + }, + "application/vnd.ms-outlook": { + compressible: false, + extensions: ["msg"] + }, + "application/vnd.ms-package.obfuscated-opentype": { + source: "apache" + }, + "application/vnd.ms-pki.seccat": { + source: "apache", + extensions: ["cat"] + }, + "application/vnd.ms-pki.stl": { + source: "apache", + extensions: ["stl"] + }, + "application/vnd.ms-playready.initiator+xml": { + source: "iana", + compressible: true + }, + "application/vnd.ms-powerpoint": { + source: "iana", + compressible: false, + extensions: ["ppt", "pps", "pot"] + }, + "application/vnd.ms-powerpoint.addin.macroenabled.12": { + source: "iana", + extensions: ["ppam"] + }, + "application/vnd.ms-powerpoint.presentation.macroenabled.12": { + source: "iana", + extensions: ["pptm"] + }, + "application/vnd.ms-powerpoint.slide.macroenabled.12": { + source: "iana", + extensions: ["sldm"] + }, + "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { + source: "iana", + extensions: ["ppsm"] + }, + "application/vnd.ms-powerpoint.template.macroenabled.12": { + source: "iana", + extensions: ["potm"] + }, + "application/vnd.ms-printdevicecapabilities+xml": { + source: "iana", + compressible: true + }, + "application/vnd.ms-printing.printticket+xml": { + source: "apache", + compressible: true + }, + "application/vnd.ms-printschematicket+xml": { + source: "iana", + compressible: true + }, + "application/vnd.ms-project": { + source: "iana", + extensions: ["mpp", "mpt"] + }, + "application/vnd.ms-tnef": { + source: "iana" + }, + "application/vnd.ms-windows.devicepairing": { + source: "iana" + }, + "application/vnd.ms-windows.nwprinting.oob": { + source: "iana" + }, + "application/vnd.ms-windows.printerpairing": { + source: "iana" + }, + "application/vnd.ms-windows.wsd.oob": { + source: "iana" + }, + "application/vnd.ms-wmdrm.lic-chlg-req": { + source: "iana" + }, + "application/vnd.ms-wmdrm.lic-resp": { + source: "iana" + }, + "application/vnd.ms-wmdrm.meter-chlg-req": { + source: "iana" + }, + "application/vnd.ms-wmdrm.meter-resp": { + source: "iana" + }, + "application/vnd.ms-word.document.macroenabled.12": { + source: "iana", + extensions: ["docm"] + }, + "application/vnd.ms-word.template.macroenabled.12": { + source: "iana", + extensions: ["dotm"] + }, + "application/vnd.ms-works": { + source: "iana", + extensions: ["wps", "wks", "wcm", "wdb"] + }, + "application/vnd.ms-wpl": { + source: "iana", + extensions: ["wpl"] + }, + "application/vnd.ms-xpsdocument": { + source: "iana", + compressible: false, + extensions: ["xps"] + }, + "application/vnd.msa-disk-image": { + source: "iana" + }, + "application/vnd.mseq": { + source: "iana", + extensions: ["mseq"] + }, + "application/vnd.msign": { + source: "iana" + }, + "application/vnd.multiad.creator": { + source: "iana" + }, + "application/vnd.multiad.creator.cif": { + source: "iana" + }, + "application/vnd.music-niff": { + source: "iana" + }, + "application/vnd.musician": { + source: "iana", + extensions: ["mus"] + }, + "application/vnd.muvee.style": { + source: "iana", + extensions: ["msty"] + }, + "application/vnd.mynfc": { + source: "iana", + extensions: ["taglet"] + }, + "application/vnd.nacamar.ybrid+json": { + source: "iana", + compressible: true + }, + "application/vnd.ncd.control": { + source: "iana" + }, + "application/vnd.ncd.reference": { + source: "iana" + }, + "application/vnd.nearst.inv+json": { + source: "iana", + compressible: true + }, + "application/vnd.nebumind.line": { + source: "iana" + }, + "application/vnd.nervana": { + source: "iana" + }, + "application/vnd.netfpx": { + source: "iana" + }, + "application/vnd.neurolanguage.nlu": { + source: "iana", + extensions: ["nlu"] + }, + "application/vnd.nimn": { + source: "iana" + }, + "application/vnd.nintendo.nitro.rom": { + source: "iana" + }, + "application/vnd.nintendo.snes.rom": { + source: "iana" + }, + "application/vnd.nitf": { + source: "iana", + extensions: ["ntf", "nitf"] + }, + "application/vnd.noblenet-directory": { + source: "iana", + extensions: ["nnd"] + }, + "application/vnd.noblenet-sealer": { + source: "iana", + extensions: ["nns"] + }, + "application/vnd.noblenet-web": { + source: "iana", + extensions: ["nnw"] + }, + "application/vnd.nokia.catalogs": { + source: "iana" + }, + "application/vnd.nokia.conml+wbxml": { + source: "iana" + }, + "application/vnd.nokia.conml+xml": { + source: "iana", + compressible: true + }, + "application/vnd.nokia.iptv.config+xml": { + source: "iana", + compressible: true + }, + "application/vnd.nokia.isds-radio-presets": { + source: "iana" + }, + "application/vnd.nokia.landmark+wbxml": { + source: "iana" + }, + "application/vnd.nokia.landmark+xml": { + source: "iana", + compressible: true + }, + "application/vnd.nokia.landmarkcollection+xml": { + source: "iana", + compressible: true + }, + "application/vnd.nokia.n-gage.ac+xml": { + source: "iana", + compressible: true, + extensions: ["ac"] + }, + "application/vnd.nokia.n-gage.data": { + source: "iana", + extensions: ["ngdat"] + }, + "application/vnd.nokia.n-gage.symbian.install": { + source: "iana", + extensions: ["n-gage"] + }, + "application/vnd.nokia.ncd": { + source: "iana" + }, + "application/vnd.nokia.pcd+wbxml": { + source: "iana" + }, + "application/vnd.nokia.pcd+xml": { + source: "iana", + compressible: true + }, + "application/vnd.nokia.radio-preset": { + source: "iana", + extensions: ["rpst"] + }, + "application/vnd.nokia.radio-presets": { + source: "iana", + extensions: ["rpss"] + }, + "application/vnd.novadigm.edm": { + source: "iana", + extensions: ["edm"] + }, + "application/vnd.novadigm.edx": { + source: "iana", + extensions: ["edx"] + }, + "application/vnd.novadigm.ext": { + source: "iana", + extensions: ["ext"] + }, + "application/vnd.ntt-local.content-share": { + source: "iana" + }, + "application/vnd.ntt-local.file-transfer": { + source: "iana" + }, + "application/vnd.ntt-local.ogw_remote-access": { + source: "iana" + }, + "application/vnd.ntt-local.sip-ta_remote": { + source: "iana" + }, + "application/vnd.ntt-local.sip-ta_tcp_stream": { + source: "iana" + }, + "application/vnd.oasis.opendocument.chart": { + source: "iana", + extensions: ["odc"] + }, + "application/vnd.oasis.opendocument.chart-template": { + source: "iana", + extensions: ["otc"] + }, + "application/vnd.oasis.opendocument.database": { + source: "iana", + extensions: ["odb"] + }, + "application/vnd.oasis.opendocument.formula": { + source: "iana", + extensions: ["odf"] + }, + "application/vnd.oasis.opendocument.formula-template": { + source: "iana", + extensions: ["odft"] + }, + "application/vnd.oasis.opendocument.graphics": { + source: "iana", + compressible: false, + extensions: ["odg"] + }, + "application/vnd.oasis.opendocument.graphics-template": { + source: "iana", + extensions: ["otg"] + }, + "application/vnd.oasis.opendocument.image": { + source: "iana", + extensions: ["odi"] + }, + "application/vnd.oasis.opendocument.image-template": { + source: "iana", + extensions: ["oti"] + }, + "application/vnd.oasis.opendocument.presentation": { + source: "iana", + compressible: false, + extensions: ["odp"] + }, + "application/vnd.oasis.opendocument.presentation-template": { + source: "iana", + extensions: ["otp"] + }, + "application/vnd.oasis.opendocument.spreadsheet": { + source: "iana", + compressible: false, + extensions: ["ods"] + }, + "application/vnd.oasis.opendocument.spreadsheet-template": { + source: "iana", + extensions: ["ots"] + }, + "application/vnd.oasis.opendocument.text": { + source: "iana", + compressible: false, + extensions: ["odt"] + }, + "application/vnd.oasis.opendocument.text-master": { + source: "iana", + extensions: ["odm"] + }, + "application/vnd.oasis.opendocument.text-template": { + source: "iana", + extensions: ["ott"] + }, + "application/vnd.oasis.opendocument.text-web": { + source: "iana", + extensions: ["oth"] + }, + "application/vnd.obn": { + source: "iana" + }, + "application/vnd.ocf+cbor": { + source: "iana" + }, + "application/vnd.oci.image.manifest.v1+json": { + source: "iana", + compressible: true + }, + "application/vnd.oftn.l10n+json": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.contentaccessdownload+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.contentaccessstreaming+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.cspg-hexbinary": { + source: "iana" + }, + "application/vnd.oipf.dae.svg+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.dae.xhtml+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.mippvcontrolmessage+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.pae.gem": { + source: "iana" + }, + "application/vnd.oipf.spdiscovery+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.spdlist+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.ueprofile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oipf.userprofile+xml": { + source: "iana", + compressible: true + }, + "application/vnd.olpc-sugar": { + source: "iana", + extensions: ["xo"] + }, + "application/vnd.oma-scws-config": { + source: "iana" + }, + "application/vnd.oma-scws-http-request": { + source: "iana" + }, + "application/vnd.oma-scws-http-response": { + source: "iana" + }, + "application/vnd.oma.bcast.associated-procedure-parameter+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.drm-trigger+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.imd+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.ltkm": { + source: "iana" + }, + "application/vnd.oma.bcast.notification+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.provisioningtrigger": { + source: "iana" + }, + "application/vnd.oma.bcast.sgboot": { + source: "iana" + }, + "application/vnd.oma.bcast.sgdd+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.sgdu": { + source: "iana" + }, + "application/vnd.oma.bcast.simple-symbol-container": { + source: "iana" + }, + "application/vnd.oma.bcast.smartcard-trigger+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.sprov+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.bcast.stkm": { + source: "iana" + }, + "application/vnd.oma.cab-address-book+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.cab-feature-handler+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.cab-pcc+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.cab-subs-invite+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.cab-user-prefs+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.dcd": { + source: "iana" + }, + "application/vnd.oma.dcdc": { + source: "iana" + }, + "application/vnd.oma.dd2+xml": { + source: "iana", + compressible: true, + extensions: ["dd2"] + }, + "application/vnd.oma.drm.risd+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.group-usage-list+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.lwm2m+cbor": { + source: "iana" + }, + "application/vnd.oma.lwm2m+json": { + source: "iana", + compressible: true + }, + "application/vnd.oma.lwm2m+tlv": { + source: "iana" + }, + "application/vnd.oma.pal+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.poc.detailed-progress-report+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.poc.final-report+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.poc.groups+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.poc.invocation-descriptor+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.poc.optimized-progress-report+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.push": { + source: "iana" + }, + "application/vnd.oma.scidm.messages+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oma.xcap-directory+xml": { + source: "iana", + compressible: true + }, + "application/vnd.omads-email+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.omads-file+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.omads-folder+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.omaloc-supl-init": { + source: "iana" + }, + "application/vnd.onepager": { + source: "iana" + }, + "application/vnd.onepagertamp": { + source: "iana" + }, + "application/vnd.onepagertamx": { + source: "iana" + }, + "application/vnd.onepagertat": { + source: "iana" + }, + "application/vnd.onepagertatp": { + source: "iana" + }, + "application/vnd.onepagertatx": { + source: "iana" + }, + "application/vnd.openblox.game+xml": { + source: "iana", + compressible: true, + extensions: ["obgx"] + }, + "application/vnd.openblox.game-binary": { + source: "iana" + }, + "application/vnd.openeye.oeb": { + source: "iana" + }, + "application/vnd.openofficeorg.extension": { + source: "apache", + extensions: ["oxt"] + }, + "application/vnd.openstreetmap.data+xml": { + source: "iana", + compressible: true, + extensions: ["osm"] + }, + "application/vnd.opentimestamps.ots": { + source: "iana" + }, + "application/vnd.openxmlformats-officedocument.custom-properties+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawing+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.extended-properties+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.presentation": { + source: "iana", + compressible: false, + extensions: ["pptx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slide": { + source: "iana", + extensions: ["sldx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { + source: "iana", + extensions: ["ppsx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.template": { + source: "iana", + extensions: ["potx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { + source: "iana", + compressible: false, + extensions: ["xlsx"] + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { + source: "iana", + extensions: ["xltx"] + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.theme+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.themeoverride+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.vmldrawing": { + source: "iana" + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { + source: "iana", + compressible: false, + extensions: ["docx"] + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { + source: "iana", + extensions: ["dotx"] + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-package.core-properties+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { + source: "iana", + compressible: true + }, + "application/vnd.openxmlformats-package.relationships+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oracle.resource+json": { + source: "iana", + compressible: true + }, + "application/vnd.orange.indata": { + source: "iana" + }, + "application/vnd.osa.netdeploy": { + source: "iana" + }, + "application/vnd.osgeo.mapguide.package": { + source: "iana", + extensions: ["mgp"] + }, + "application/vnd.osgi.bundle": { + source: "iana" + }, + "application/vnd.osgi.dp": { + source: "iana", + extensions: ["dp"] + }, + "application/vnd.osgi.subsystem": { + source: "iana", + extensions: ["esa"] + }, + "application/vnd.otps.ct-kip+xml": { + source: "iana", + compressible: true + }, + "application/vnd.oxli.countgraph": { + source: "iana" + }, + "application/vnd.pagerduty+json": { + source: "iana", + compressible: true + }, + "application/vnd.palm": { + source: "iana", + extensions: ["pdb", "pqa", "oprc"] + }, + "application/vnd.panoply": { + source: "iana" + }, + "application/vnd.paos.xml": { + source: "iana" + }, + "application/vnd.patentdive": { + source: "iana" + }, + "application/vnd.patientecommsdoc": { + source: "iana" + }, + "application/vnd.pawaafile": { + source: "iana", + extensions: ["paw"] + }, + "application/vnd.pcos": { + source: "iana" + }, + "application/vnd.pg.format": { + source: "iana", + extensions: ["str"] + }, + "application/vnd.pg.osasli": { + source: "iana", + extensions: ["ei6"] + }, + "application/vnd.piaccess.application-licence": { + source: "iana" + }, + "application/vnd.picsel": { + source: "iana", + extensions: ["efif"] + }, + "application/vnd.pmi.widget": { + source: "iana", + extensions: ["wg"] + }, + "application/vnd.poc.group-advertisement+xml": { + source: "iana", + compressible: true + }, + "application/vnd.pocketlearn": { + source: "iana", + extensions: ["plf"] + }, + "application/vnd.powerbuilder6": { + source: "iana", + extensions: ["pbd"] + }, + "application/vnd.powerbuilder6-s": { + source: "iana" + }, + "application/vnd.powerbuilder7": { + source: "iana" + }, + "application/vnd.powerbuilder7-s": { + source: "iana" + }, + "application/vnd.powerbuilder75": { + source: "iana" + }, + "application/vnd.powerbuilder75-s": { + source: "iana" + }, + "application/vnd.preminet": { + source: "iana" + }, + "application/vnd.previewsystems.box": { + source: "iana", + extensions: ["box"] + }, + "application/vnd.proteus.magazine": { + source: "iana", + extensions: ["mgz"] + }, + "application/vnd.psfs": { + source: "iana" + }, + "application/vnd.publishare-delta-tree": { + source: "iana", + extensions: ["qps"] + }, + "application/vnd.pvi.ptid1": { + source: "iana", + extensions: ["ptid"] + }, + "application/vnd.pwg-multiplexed": { + source: "iana" + }, + "application/vnd.pwg-xhtml-print+xml": { + source: "iana", + compressible: true + }, + "application/vnd.qualcomm.brew-app-res": { + source: "iana" + }, + "application/vnd.quarantainenet": { + source: "iana" + }, + "application/vnd.quark.quarkxpress": { + source: "iana", + extensions: ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"] + }, + "application/vnd.quobject-quoxdocument": { + source: "iana" + }, + "application/vnd.radisys.moml+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-audit+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-audit-conf+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-audit-conn+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-audit-dialog+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-audit-stream+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-conf+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-base+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-fax-detect+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-group+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-speech+xml": { + source: "iana", + compressible: true + }, + "application/vnd.radisys.msml-dialog-transform+xml": { + source: "iana", + compressible: true + }, + "application/vnd.rainstor.data": { + source: "iana" + }, + "application/vnd.rapid": { + source: "iana" + }, + "application/vnd.rar": { + source: "iana", + extensions: ["rar"] + }, + "application/vnd.realvnc.bed": { + source: "iana", + extensions: ["bed"] + }, + "application/vnd.recordare.musicxml": { + source: "iana", + extensions: ["mxl"] + }, + "application/vnd.recordare.musicxml+xml": { + source: "iana", + compressible: true, + extensions: ["musicxml"] + }, + "application/vnd.renlearn.rlprint": { + source: "iana" + }, + "application/vnd.resilient.logic": { + source: "iana" + }, + "application/vnd.restful+json": { + source: "iana", + compressible: true + }, + "application/vnd.rig.cryptonote": { + source: "iana", + extensions: ["cryptonote"] + }, + "application/vnd.rim.cod": { + source: "apache", + extensions: ["cod"] + }, + "application/vnd.rn-realmedia": { + source: "apache", + extensions: ["rm"] + }, + "application/vnd.rn-realmedia-vbr": { + source: "apache", + extensions: ["rmvb"] + }, + "application/vnd.route66.link66+xml": { + source: "iana", + compressible: true, + extensions: ["link66"] + }, + "application/vnd.rs-274x": { + source: "iana" + }, + "application/vnd.ruckus.download": { + source: "iana" + }, + "application/vnd.s3sms": { + source: "iana" + }, + "application/vnd.sailingtracker.track": { + source: "iana", + extensions: ["st"] + }, + "application/vnd.sar": { + source: "iana" + }, + "application/vnd.sbm.cid": { + source: "iana" + }, + "application/vnd.sbm.mid2": { + source: "iana" + }, + "application/vnd.scribus": { + source: "iana" + }, + "application/vnd.sealed.3df": { + source: "iana" + }, + "application/vnd.sealed.csf": { + source: "iana" + }, + "application/vnd.sealed.doc": { + source: "iana" + }, + "application/vnd.sealed.eml": { + source: "iana" + }, + "application/vnd.sealed.mht": { + source: "iana" + }, + "application/vnd.sealed.net": { + source: "iana" + }, + "application/vnd.sealed.ppt": { + source: "iana" + }, + "application/vnd.sealed.tiff": { + source: "iana" + }, + "application/vnd.sealed.xls": { + source: "iana" + }, + "application/vnd.sealedmedia.softseal.html": { + source: "iana" + }, + "application/vnd.sealedmedia.softseal.pdf": { + source: "iana" + }, + "application/vnd.seemail": { + source: "iana", + extensions: ["see"] + }, + "application/vnd.seis+json": { + source: "iana", + compressible: true + }, + "application/vnd.sema": { + source: "iana", + extensions: ["sema"] + }, + "application/vnd.semd": { + source: "iana", + extensions: ["semd"] + }, + "application/vnd.semf": { + source: "iana", + extensions: ["semf"] + }, + "application/vnd.shade-save-file": { + source: "iana" + }, + "application/vnd.shana.informed.formdata": { + source: "iana", + extensions: ["ifm"] + }, + "application/vnd.shana.informed.formtemplate": { + source: "iana", + extensions: ["itp"] + }, + "application/vnd.shana.informed.interchange": { + source: "iana", + extensions: ["iif"] + }, + "application/vnd.shana.informed.package": { + source: "iana", + extensions: ["ipk"] + }, + "application/vnd.shootproof+json": { + source: "iana", + compressible: true + }, + "application/vnd.shopkick+json": { + source: "iana", + compressible: true + }, + "application/vnd.shp": { + source: "iana" + }, + "application/vnd.shx": { + source: "iana" + }, + "application/vnd.sigrok.session": { + source: "iana" + }, + "application/vnd.simtech-mindmapper": { + source: "iana", + extensions: ["twd", "twds"] + }, + "application/vnd.siren+json": { + source: "iana", + compressible: true + }, + "application/vnd.smaf": { + source: "iana", + extensions: ["mmf"] + }, + "application/vnd.smart.notebook": { + source: "iana" + }, + "application/vnd.smart.teacher": { + source: "iana", + extensions: ["teacher"] + }, + "application/vnd.snesdev-page-table": { + source: "iana" + }, + "application/vnd.software602.filler.form+xml": { + source: "iana", + compressible: true, + extensions: ["fo"] + }, + "application/vnd.software602.filler.form-xml-zip": { + source: "iana" + }, + "application/vnd.solent.sdkm+xml": { + source: "iana", + compressible: true, + extensions: ["sdkm", "sdkd"] + }, + "application/vnd.spotfire.dxp": { + source: "iana", + extensions: ["dxp"] + }, + "application/vnd.spotfire.sfs": { + source: "iana", + extensions: ["sfs"] + }, + "application/vnd.sqlite3": { + source: "iana" + }, + "application/vnd.sss-cod": { + source: "iana" + }, + "application/vnd.sss-dtf": { + source: "iana" + }, + "application/vnd.sss-ntf": { + source: "iana" + }, + "application/vnd.stardivision.calc": { + source: "apache", + extensions: ["sdc"] + }, + "application/vnd.stardivision.draw": { + source: "apache", + extensions: ["sda"] + }, + "application/vnd.stardivision.impress": { + source: "apache", + extensions: ["sdd"] + }, + "application/vnd.stardivision.math": { + source: "apache", + extensions: ["smf"] + }, + "application/vnd.stardivision.writer": { + source: "apache", + extensions: ["sdw", "vor"] + }, + "application/vnd.stardivision.writer-global": { + source: "apache", + extensions: ["sgl"] + }, + "application/vnd.stepmania.package": { + source: "iana", + extensions: ["smzip"] + }, + "application/vnd.stepmania.stepchart": { + source: "iana", + extensions: ["sm"] + }, + "application/vnd.street-stream": { + source: "iana" + }, + "application/vnd.sun.wadl+xml": { + source: "iana", + compressible: true, + extensions: ["wadl"] + }, + "application/vnd.sun.xml.calc": { + source: "apache", + extensions: ["sxc"] + }, + "application/vnd.sun.xml.calc.template": { + source: "apache", + extensions: ["stc"] + }, + "application/vnd.sun.xml.draw": { + source: "apache", + extensions: ["sxd"] + }, + "application/vnd.sun.xml.draw.template": { + source: "apache", + extensions: ["std"] + }, + "application/vnd.sun.xml.impress": { + source: "apache", + extensions: ["sxi"] + }, + "application/vnd.sun.xml.impress.template": { + source: "apache", + extensions: ["sti"] + }, + "application/vnd.sun.xml.math": { + source: "apache", + extensions: ["sxm"] + }, + "application/vnd.sun.xml.writer": { + source: "apache", + extensions: ["sxw"] + }, + "application/vnd.sun.xml.writer.global": { + source: "apache", + extensions: ["sxg"] + }, + "application/vnd.sun.xml.writer.template": { + source: "apache", + extensions: ["stw"] + }, + "application/vnd.sus-calendar": { + source: "iana", + extensions: ["sus", "susp"] + }, + "application/vnd.svd": { + source: "iana", + extensions: ["svd"] + }, + "application/vnd.swiftview-ics": { + source: "iana" + }, + "application/vnd.sycle+xml": { + source: "iana", + compressible: true + }, + "application/vnd.syft+json": { + source: "iana", + compressible: true + }, + "application/vnd.symbian.install": { + source: "apache", + extensions: ["sis", "sisx"] + }, + "application/vnd.syncml+xml": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["xsm"] + }, + "application/vnd.syncml.dm+wbxml": { + source: "iana", + charset: "UTF-8", + extensions: ["bdm"] + }, + "application/vnd.syncml.dm+xml": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["xdm"] + }, + "application/vnd.syncml.dm.notification": { + source: "iana" + }, + "application/vnd.syncml.dmddf+wbxml": { + source: "iana" + }, + "application/vnd.syncml.dmddf+xml": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["ddf"] + }, + "application/vnd.syncml.dmtnds+wbxml": { + source: "iana" + }, + "application/vnd.syncml.dmtnds+xml": { + source: "iana", + charset: "UTF-8", + compressible: true + }, + "application/vnd.syncml.ds.notification": { + source: "iana" + }, + "application/vnd.tableschema+json": { + source: "iana", + compressible: true + }, + "application/vnd.tao.intent-module-archive": { + source: "iana", + extensions: ["tao"] + }, + "application/vnd.tcpdump.pcap": { + source: "iana", + extensions: ["pcap", "cap", "dmp"] + }, + "application/vnd.think-cell.ppttc+json": { + source: "iana", + compressible: true + }, + "application/vnd.tmd.mediaflex.api+xml": { + source: "iana", + compressible: true + }, + "application/vnd.tml": { + source: "iana" + }, + "application/vnd.tmobile-livetv": { + source: "iana", + extensions: ["tmo"] + }, + "application/vnd.tri.onesource": { + source: "iana" + }, + "application/vnd.trid.tpt": { + source: "iana", + extensions: ["tpt"] + }, + "application/vnd.triscape.mxs": { + source: "iana", + extensions: ["mxs"] + }, + "application/vnd.trueapp": { + source: "iana", + extensions: ["tra"] + }, + "application/vnd.truedoc": { + source: "iana" + }, + "application/vnd.ubisoft.webplayer": { + source: "iana" + }, + "application/vnd.ufdl": { + source: "iana", + extensions: ["ufd", "ufdl"] + }, + "application/vnd.uiq.theme": { + source: "iana", + extensions: ["utz"] + }, + "application/vnd.umajin": { + source: "iana", + extensions: ["umj"] + }, + "application/vnd.unity": { + source: "iana", + extensions: ["unityweb"] + }, + "application/vnd.uoml+xml": { + source: "iana", + compressible: true, + extensions: ["uoml"] + }, + "application/vnd.uplanet.alert": { + source: "iana" + }, + "application/vnd.uplanet.alert-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.bearer-choice": { + source: "iana" + }, + "application/vnd.uplanet.bearer-choice-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.cacheop": { + source: "iana" + }, + "application/vnd.uplanet.cacheop-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.channel": { + source: "iana" + }, + "application/vnd.uplanet.channel-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.list": { + source: "iana" + }, + "application/vnd.uplanet.list-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.listcmd": { + source: "iana" + }, + "application/vnd.uplanet.listcmd-wbxml": { + source: "iana" + }, + "application/vnd.uplanet.signal": { + source: "iana" + }, + "application/vnd.uri-map": { + source: "iana" + }, + "application/vnd.valve.source.material": { + source: "iana" + }, + "application/vnd.vcx": { + source: "iana", + extensions: ["vcx"] + }, + "application/vnd.vd-study": { + source: "iana" + }, + "application/vnd.vectorworks": { + source: "iana" + }, + "application/vnd.vel+json": { + source: "iana", + compressible: true + }, + "application/vnd.verimatrix.vcas": { + source: "iana" + }, + "application/vnd.veritone.aion+json": { + source: "iana", + compressible: true + }, + "application/vnd.veryant.thin": { + source: "iana" + }, + "application/vnd.ves.encrypted": { + source: "iana" + }, + "application/vnd.vidsoft.vidconference": { + source: "iana" + }, + "application/vnd.visio": { + source: "iana", + extensions: ["vsd", "vst", "vss", "vsw"] + }, + "application/vnd.visionary": { + source: "iana", + extensions: ["vis"] + }, + "application/vnd.vividence.scriptfile": { + source: "iana" + }, + "application/vnd.vsf": { + source: "iana", + extensions: ["vsf"] + }, + "application/vnd.wap.sic": { + source: "iana" + }, + "application/vnd.wap.slc": { + source: "iana" + }, + "application/vnd.wap.wbxml": { + source: "iana", + charset: "UTF-8", + extensions: ["wbxml"] + }, + "application/vnd.wap.wmlc": { + source: "iana", + extensions: ["wmlc"] + }, + "application/vnd.wap.wmlscriptc": { + source: "iana", + extensions: ["wmlsc"] + }, + "application/vnd.webturbo": { + source: "iana", + extensions: ["wtb"] + }, + "application/vnd.wfa.dpp": { + source: "iana" + }, + "application/vnd.wfa.p2p": { + source: "iana" + }, + "application/vnd.wfa.wsc": { + source: "iana" + }, + "application/vnd.windows.devicepairing": { + source: "iana" + }, + "application/vnd.wmc": { + source: "iana" + }, + "application/vnd.wmf.bootstrap": { + source: "iana" + }, + "application/vnd.wolfram.mathematica": { + source: "iana" + }, + "application/vnd.wolfram.mathematica.package": { + source: "iana" + }, + "application/vnd.wolfram.player": { + source: "iana", + extensions: ["nbp"] + }, + "application/vnd.wordperfect": { + source: "iana", + extensions: ["wpd"] + }, + "application/vnd.wqd": { + source: "iana", + extensions: ["wqd"] + }, + "application/vnd.wrq-hp3000-labelled": { + source: "iana" + }, + "application/vnd.wt.stf": { + source: "iana", + extensions: ["stf"] + }, + "application/vnd.wv.csp+wbxml": { + source: "iana" + }, + "application/vnd.wv.csp+xml": { + source: "iana", + compressible: true + }, + "application/vnd.wv.ssp+xml": { + source: "iana", + compressible: true + }, + "application/vnd.xacml+json": { + source: "iana", + compressible: true + }, + "application/vnd.xara": { + source: "iana", + extensions: ["xar"] + }, + "application/vnd.xfdl": { + source: "iana", + extensions: ["xfdl"] + }, + "application/vnd.xfdl.webform": { + source: "iana" + }, + "application/vnd.xmi+xml": { + source: "iana", + compressible: true + }, + "application/vnd.xmpie.cpkg": { + source: "iana" + }, + "application/vnd.xmpie.dpkg": { + source: "iana" + }, + "application/vnd.xmpie.plan": { + source: "iana" + }, + "application/vnd.xmpie.ppkg": { + source: "iana" + }, + "application/vnd.xmpie.xlim": { + source: "iana" + }, + "application/vnd.yamaha.hv-dic": { + source: "iana", + extensions: ["hvd"] + }, + "application/vnd.yamaha.hv-script": { + source: "iana", + extensions: ["hvs"] + }, + "application/vnd.yamaha.hv-voice": { + source: "iana", + extensions: ["hvp"] + }, + "application/vnd.yamaha.openscoreformat": { + source: "iana", + extensions: ["osf"] + }, + "application/vnd.yamaha.openscoreformat.osfpvg+xml": { + source: "iana", + compressible: true, + extensions: ["osfpvg"] + }, + "application/vnd.yamaha.remote-setup": { + source: "iana" + }, + "application/vnd.yamaha.smaf-audio": { + source: "iana", + extensions: ["saf"] + }, + "application/vnd.yamaha.smaf-phrase": { + source: "iana", + extensions: ["spf"] + }, + "application/vnd.yamaha.through-ngn": { + source: "iana" + }, + "application/vnd.yamaha.tunnel-udpencap": { + source: "iana" + }, + "application/vnd.yaoweme": { + source: "iana" + }, + "application/vnd.yellowriver-custom-menu": { + source: "iana", + extensions: ["cmp"] + }, + "application/vnd.youtube.yt": { + source: "iana" + }, + "application/vnd.zul": { + source: "iana", + extensions: ["zir", "zirz"] + }, + "application/vnd.zzazz.deck+xml": { + source: "iana", + compressible: true, + extensions: ["zaz"] + }, + "application/voicexml+xml": { + source: "iana", + compressible: true, + extensions: ["vxml"] + }, + "application/voucher-cms+json": { + source: "iana", + compressible: true + }, + "application/vq-rtcpxr": { + source: "iana" + }, + "application/wasm": { + source: "iana", + compressible: true, + extensions: ["wasm"] + }, + "application/watcherinfo+xml": { + source: "iana", + compressible: true, + extensions: ["wif"] + }, + "application/webpush-options+json": { + source: "iana", + compressible: true + }, + "application/whoispp-query": { + source: "iana" + }, + "application/whoispp-response": { + source: "iana" + }, + "application/widget": { + source: "iana", + extensions: ["wgt"] + }, + "application/winhlp": { + source: "apache", + extensions: ["hlp"] + }, + "application/wita": { + source: "iana" + }, + "application/wordperfect5.1": { + source: "iana" + }, + "application/wsdl+xml": { + source: "iana", + compressible: true, + extensions: ["wsdl"] + }, + "application/wspolicy+xml": { + source: "iana", + compressible: true, + extensions: ["wspolicy"] + }, + "application/x-7z-compressed": { + source: "apache", + compressible: false, + extensions: ["7z"] + }, + "application/x-abiword": { + source: "apache", + extensions: ["abw"] + }, + "application/x-ace-compressed": { + source: "apache", + extensions: ["ace"] + }, + "application/x-amf": { + source: "apache" + }, + "application/x-apple-diskimage": { + source: "apache", + extensions: ["dmg"] + }, + "application/x-arj": { + compressible: false, + extensions: ["arj"] + }, + "application/x-authorware-bin": { + source: "apache", + extensions: ["aab", "x32", "u32", "vox"] + }, + "application/x-authorware-map": { + source: "apache", + extensions: ["aam"] + }, + "application/x-authorware-seg": { + source: "apache", + extensions: ["aas"] + }, + "application/x-bcpio": { + source: "apache", + extensions: ["bcpio"] + }, + "application/x-bdoc": { + compressible: false, + extensions: ["bdoc"] + }, + "application/x-bittorrent": { + source: "apache", + extensions: ["torrent"] + }, + "application/x-blorb": { + source: "apache", + extensions: ["blb", "blorb"] + }, + "application/x-bzip": { + source: "apache", + compressible: false, + extensions: ["bz"] + }, + "application/x-bzip2": { + source: "apache", + compressible: false, + extensions: ["bz2", "boz"] + }, + "application/x-cbr": { + source: "apache", + extensions: ["cbr", "cba", "cbt", "cbz", "cb7"] + }, + "application/x-cdlink": { + source: "apache", + extensions: ["vcd"] + }, + "application/x-cfs-compressed": { + source: "apache", + extensions: ["cfs"] + }, + "application/x-chat": { + source: "apache", + extensions: ["chat"] + }, + "application/x-chess-pgn": { + source: "apache", + extensions: ["pgn"] + }, + "application/x-chrome-extension": { + extensions: ["crx"] + }, + "application/x-cocoa": { + source: "nginx", + extensions: ["cco"] + }, + "application/x-compress": { + source: "apache" + }, + "application/x-conference": { + source: "apache", + extensions: ["nsc"] + }, + "application/x-cpio": { + source: "apache", + extensions: ["cpio"] + }, + "application/x-csh": { + source: "apache", + extensions: ["csh"] + }, + "application/x-deb": { + compressible: false + }, + "application/x-debian-package": { + source: "apache", + extensions: ["deb", "udeb"] + }, + "application/x-dgc-compressed": { + source: "apache", + extensions: ["dgc"] + }, + "application/x-director": { + source: "apache", + extensions: ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"] + }, + "application/x-doom": { + source: "apache", + extensions: ["wad"] + }, + "application/x-dtbncx+xml": { + source: "apache", + compressible: true, + extensions: ["ncx"] + }, + "application/x-dtbook+xml": { + source: "apache", + compressible: true, + extensions: ["dtb"] + }, + "application/x-dtbresource+xml": { + source: "apache", + compressible: true, + extensions: ["res"] + }, + "application/x-dvi": { + source: "apache", + compressible: false, + extensions: ["dvi"] + }, + "application/x-envoy": { + source: "apache", + extensions: ["evy"] + }, + "application/x-eva": { + source: "apache", + extensions: ["eva"] + }, + "application/x-font-bdf": { + source: "apache", + extensions: ["bdf"] + }, + "application/x-font-dos": { + source: "apache" + }, + "application/x-font-framemaker": { + source: "apache" + }, + "application/x-font-ghostscript": { + source: "apache", + extensions: ["gsf"] + }, + "application/x-font-libgrx": { + source: "apache" + }, + "application/x-font-linux-psf": { + source: "apache", + extensions: ["psf"] + }, + "application/x-font-pcf": { + source: "apache", + extensions: ["pcf"] + }, + "application/x-font-snf": { + source: "apache", + extensions: ["snf"] + }, + "application/x-font-speedo": { + source: "apache" + }, + "application/x-font-sunos-news": { + source: "apache" + }, + "application/x-font-type1": { + source: "apache", + extensions: ["pfa", "pfb", "pfm", "afm"] + }, + "application/x-font-vfont": { + source: "apache" + }, + "application/x-freearc": { + source: "apache", + extensions: ["arc"] + }, + "application/x-futuresplash": { + source: "apache", + extensions: ["spl"] + }, + "application/x-gca-compressed": { + source: "apache", + extensions: ["gca"] + }, + "application/x-glulx": { + source: "apache", + extensions: ["ulx"] + }, + "application/x-gnumeric": { + source: "apache", + extensions: ["gnumeric"] + }, + "application/x-gramps-xml": { + source: "apache", + extensions: ["gramps"] + }, + "application/x-gtar": { + source: "apache", + extensions: ["gtar"] + }, + "application/x-gzip": { + source: "apache" + }, + "application/x-hdf": { + source: "apache", + extensions: ["hdf"] + }, + "application/x-httpd-php": { + compressible: true, + extensions: ["php"] + }, + "application/x-install-instructions": { + source: "apache", + extensions: ["install"] + }, + "application/x-iso9660-image": { + source: "apache", + extensions: ["iso"] + }, + "application/x-iwork-keynote-sffkey": { + extensions: ["key"] + }, + "application/x-iwork-numbers-sffnumbers": { + extensions: ["numbers"] + }, + "application/x-iwork-pages-sffpages": { + extensions: ["pages"] + }, + "application/x-java-archive-diff": { + source: "nginx", + extensions: ["jardiff"] + }, + "application/x-java-jnlp-file": { + source: "apache", + compressible: false, + extensions: ["jnlp"] + }, + "application/x-javascript": { + compressible: true + }, + "application/x-keepass2": { + extensions: ["kdbx"] + }, + "application/x-latex": { + source: "apache", + compressible: false, + extensions: ["latex"] + }, + "application/x-lua-bytecode": { + extensions: ["luac"] + }, + "application/x-lzh-compressed": { + source: "apache", + extensions: ["lzh", "lha"] + }, + "application/x-makeself": { + source: "nginx", + extensions: ["run"] + }, + "application/x-mie": { + source: "apache", + extensions: ["mie"] + }, + "application/x-mobipocket-ebook": { + source: "apache", + extensions: ["prc", "mobi"] + }, + "application/x-mpegurl": { + compressible: false + }, + "application/x-ms-application": { + source: "apache", + extensions: ["application"] + }, + "application/x-ms-shortcut": { + source: "apache", + extensions: ["lnk"] + }, + "application/x-ms-wmd": { + source: "apache", + extensions: ["wmd"] + }, + "application/x-ms-wmz": { + source: "apache", + extensions: ["wmz"] + }, + "application/x-ms-xbap": { + source: "apache", + extensions: ["xbap"] + }, + "application/x-msaccess": { + source: "apache", + extensions: ["mdb"] + }, + "application/x-msbinder": { + source: "apache", + extensions: ["obd"] + }, + "application/x-mscardfile": { + source: "apache", + extensions: ["crd"] + }, + "application/x-msclip": { + source: "apache", + extensions: ["clp"] + }, + "application/x-msdos-program": { + extensions: ["exe"] + }, + "application/x-msdownload": { + source: "apache", + extensions: ["exe", "dll", "com", "bat", "msi"] + }, + "application/x-msmediaview": { + source: "apache", + extensions: ["mvb", "m13", "m14"] + }, + "application/x-msmetafile": { + source: "apache", + extensions: ["wmf", "wmz", "emf", "emz"] + }, + "application/x-msmoney": { + source: "apache", + extensions: ["mny"] + }, + "application/x-mspublisher": { + source: "apache", + extensions: ["pub"] + }, + "application/x-msschedule": { + source: "apache", + extensions: ["scd"] + }, + "application/x-msterminal": { + source: "apache", + extensions: ["trm"] + }, + "application/x-mswrite": { + source: "apache", + extensions: ["wri"] + }, + "application/x-netcdf": { + source: "apache", + extensions: ["nc", "cdf"] + }, + "application/x-ns-proxy-autoconfig": { + compressible: true, + extensions: ["pac"] + }, + "application/x-nzb": { + source: "apache", + extensions: ["nzb"] + }, + "application/x-perl": { + source: "nginx", + extensions: ["pl", "pm"] + }, + "application/x-pilot": { + source: "nginx", + extensions: ["prc", "pdb"] + }, + "application/x-pkcs12": { + source: "apache", + compressible: false, + extensions: ["p12", "pfx"] + }, + "application/x-pkcs7-certificates": { + source: "apache", + extensions: ["p7b", "spc"] + }, + "application/x-pkcs7-certreqresp": { + source: "apache", + extensions: ["p7r"] + }, + "application/x-pki-message": { + source: "iana" + }, + "application/x-rar-compressed": { + source: "apache", + compressible: false, + extensions: ["rar"] + }, + "application/x-redhat-package-manager": { + source: "nginx", + extensions: ["rpm"] + }, + "application/x-research-info-systems": { + source: "apache", + extensions: ["ris"] + }, + "application/x-sea": { + source: "nginx", + extensions: ["sea"] + }, + "application/x-sh": { + source: "apache", + compressible: true, + extensions: ["sh"] + }, + "application/x-shar": { + source: "apache", + extensions: ["shar"] + }, + "application/x-shockwave-flash": { + source: "apache", + compressible: false, + extensions: ["swf"] + }, + "application/x-silverlight-app": { + source: "apache", + extensions: ["xap"] + }, + "application/x-sql": { + source: "apache", + extensions: ["sql"] + }, + "application/x-stuffit": { + source: "apache", + compressible: false, + extensions: ["sit"] + }, + "application/x-stuffitx": { + source: "apache", + extensions: ["sitx"] + }, + "application/x-subrip": { + source: "apache", + extensions: ["srt"] + }, + "application/x-sv4cpio": { + source: "apache", + extensions: ["sv4cpio"] + }, + "application/x-sv4crc": { + source: "apache", + extensions: ["sv4crc"] + }, + "application/x-t3vm-image": { + source: "apache", + extensions: ["t3"] + }, + "application/x-tads": { + source: "apache", + extensions: ["gam"] + }, + "application/x-tar": { + source: "apache", + compressible: true, + extensions: ["tar"] + }, + "application/x-tcl": { + source: "apache", + extensions: ["tcl", "tk"] + }, + "application/x-tex": { + source: "apache", + extensions: ["tex"] + }, + "application/x-tex-tfm": { + source: "apache", + extensions: ["tfm"] + }, + "application/x-texinfo": { + source: "apache", + extensions: ["texinfo", "texi"] + }, + "application/x-tgif": { + source: "apache", + extensions: ["obj"] + }, + "application/x-ustar": { + source: "apache", + extensions: ["ustar"] + }, + "application/x-virtualbox-hdd": { + compressible: true, + extensions: ["hdd"] + }, + "application/x-virtualbox-ova": { + compressible: true, + extensions: ["ova"] + }, + "application/x-virtualbox-ovf": { + compressible: true, + extensions: ["ovf"] + }, + "application/x-virtualbox-vbox": { + compressible: true, + extensions: ["vbox"] + }, + "application/x-virtualbox-vbox-extpack": { + compressible: false, + extensions: ["vbox-extpack"] + }, + "application/x-virtualbox-vdi": { + compressible: true, + extensions: ["vdi"] + }, + "application/x-virtualbox-vhd": { + compressible: true, + extensions: ["vhd"] + }, + "application/x-virtualbox-vmdk": { + compressible: true, + extensions: ["vmdk"] + }, + "application/x-wais-source": { + source: "apache", + extensions: ["src"] + }, + "application/x-web-app-manifest+json": { + compressible: true, + extensions: ["webapp"] + }, + "application/x-www-form-urlencoded": { + source: "iana", + compressible: true + }, + "application/x-x509-ca-cert": { + source: "iana", + extensions: ["der", "crt", "pem"] + }, + "application/x-x509-ca-ra-cert": { + source: "iana" + }, + "application/x-x509-next-ca-cert": { + source: "iana" + }, + "application/x-xfig": { + source: "apache", + extensions: ["fig"] + }, + "application/x-xliff+xml": { + source: "apache", + compressible: true, + extensions: ["xlf"] + }, + "application/x-xpinstall": { + source: "apache", + compressible: false, + extensions: ["xpi"] + }, + "application/x-xz": { + source: "apache", + extensions: ["xz"] + }, + "application/x-zmachine": { + source: "apache", + extensions: ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"] + }, + "application/x400-bp": { + source: "iana" + }, + "application/xacml+xml": { + source: "iana", + compressible: true + }, + "application/xaml+xml": { + source: "apache", + compressible: true, + extensions: ["xaml"] + }, + "application/xcap-att+xml": { + source: "iana", + compressible: true, + extensions: ["xav"] + }, + "application/xcap-caps+xml": { + source: "iana", + compressible: true, + extensions: ["xca"] + }, + "application/xcap-diff+xml": { + source: "iana", + compressible: true, + extensions: ["xdf"] + }, + "application/xcap-el+xml": { + source: "iana", + compressible: true, + extensions: ["xel"] + }, + "application/xcap-error+xml": { + source: "iana", + compressible: true + }, + "application/xcap-ns+xml": { + source: "iana", + compressible: true, + extensions: ["xns"] + }, + "application/xcon-conference-info+xml": { + source: "iana", + compressible: true + }, + "application/xcon-conference-info-diff+xml": { + source: "iana", + compressible: true + }, + "application/xenc+xml": { + source: "iana", + compressible: true, + extensions: ["xenc"] + }, + "application/xhtml+xml": { + source: "iana", + compressible: true, + extensions: ["xhtml", "xht"] + }, + "application/xhtml-voice+xml": { + source: "apache", + compressible: true + }, + "application/xliff+xml": { + source: "iana", + compressible: true, + extensions: ["xlf"] + }, + "application/xml": { + source: "iana", + compressible: true, + extensions: ["xml", "xsl", "xsd", "rng"] + }, + "application/xml-dtd": { + source: "iana", + compressible: true, + extensions: ["dtd"] + }, + "application/xml-external-parsed-entity": { + source: "iana" + }, + "application/xml-patch+xml": { + source: "iana", + compressible: true + }, + "application/xmpp+xml": { + source: "iana", + compressible: true + }, + "application/xop+xml": { + source: "iana", + compressible: true, + extensions: ["xop"] + }, + "application/xproc+xml": { + source: "apache", + compressible: true, + extensions: ["xpl"] + }, + "application/xslt+xml": { + source: "iana", + compressible: true, + extensions: ["xsl", "xslt"] + }, + "application/xspf+xml": { + source: "apache", + compressible: true, + extensions: ["xspf"] + }, + "application/xv+xml": { + source: "iana", + compressible: true, + extensions: ["mxml", "xhvml", "xvml", "xvm"] + }, + "application/yang": { + source: "iana", + extensions: ["yang"] + }, + "application/yang-data+json": { + source: "iana", + compressible: true + }, + "application/yang-data+xml": { + source: "iana", + compressible: true + }, + "application/yang-patch+json": { + source: "iana", + compressible: true + }, + "application/yang-patch+xml": { + source: "iana", + compressible: true + }, + "application/yin+xml": { + source: "iana", + compressible: true, + extensions: ["yin"] + }, + "application/zip": { + source: "iana", + compressible: false, + extensions: ["zip"] + }, + "application/zlib": { + source: "iana" + }, + "application/zstd": { + source: "iana" + }, + "audio/1d-interleaved-parityfec": { + source: "iana" + }, + "audio/32kadpcm": { + source: "iana" + }, + "audio/3gpp": { + source: "iana", + compressible: false, + extensions: ["3gpp"] + }, + "audio/3gpp2": { + source: "iana" + }, + "audio/aac": { + source: "iana" + }, + "audio/ac3": { + source: "iana" + }, + "audio/adpcm": { + source: "apache", + extensions: ["adp"] + }, + "audio/amr": { + source: "iana", + extensions: ["amr"] + }, + "audio/amr-wb": { + source: "iana" + }, + "audio/amr-wb+": { + source: "iana" + }, + "audio/aptx": { + source: "iana" + }, + "audio/asc": { + source: "iana" + }, + "audio/atrac-advanced-lossless": { + source: "iana" + }, + "audio/atrac-x": { + source: "iana" + }, + "audio/atrac3": { + source: "iana" + }, + "audio/basic": { + source: "iana", + compressible: false, + extensions: ["au", "snd"] + }, + "audio/bv16": { + source: "iana" + }, + "audio/bv32": { + source: "iana" + }, + "audio/clearmode": { + source: "iana" + }, + "audio/cn": { + source: "iana" + }, + "audio/dat12": { + source: "iana" + }, + "audio/dls": { + source: "iana" + }, + "audio/dsr-es201108": { + source: "iana" + }, + "audio/dsr-es202050": { + source: "iana" + }, + "audio/dsr-es202211": { + source: "iana" + }, + "audio/dsr-es202212": { + source: "iana" + }, + "audio/dv": { + source: "iana" + }, + "audio/dvi4": { + source: "iana" + }, + "audio/eac3": { + source: "iana" + }, + "audio/encaprtp": { + source: "iana" + }, + "audio/evrc": { + source: "iana" + }, + "audio/evrc-qcp": { + source: "iana" + }, + "audio/evrc0": { + source: "iana" + }, + "audio/evrc1": { + source: "iana" + }, + "audio/evrcb": { + source: "iana" + }, + "audio/evrcb0": { + source: "iana" + }, + "audio/evrcb1": { + source: "iana" + }, + "audio/evrcnw": { + source: "iana" + }, + "audio/evrcnw0": { + source: "iana" + }, + "audio/evrcnw1": { + source: "iana" + }, + "audio/evrcwb": { + source: "iana" + }, + "audio/evrcwb0": { + source: "iana" + }, + "audio/evrcwb1": { + source: "iana" + }, + "audio/evs": { + source: "iana" + }, + "audio/flexfec": { + source: "iana" + }, + "audio/fwdred": { + source: "iana" + }, + "audio/g711-0": { + source: "iana" + }, + "audio/g719": { + source: "iana" + }, + "audio/g722": { + source: "iana" + }, + "audio/g7221": { + source: "iana" + }, + "audio/g723": { + source: "iana" + }, + "audio/g726-16": { + source: "iana" + }, + "audio/g726-24": { + source: "iana" + }, + "audio/g726-32": { + source: "iana" + }, + "audio/g726-40": { + source: "iana" + }, + "audio/g728": { + source: "iana" + }, + "audio/g729": { + source: "iana" + }, + "audio/g7291": { + source: "iana" + }, + "audio/g729d": { + source: "iana" + }, + "audio/g729e": { + source: "iana" + }, + "audio/gsm": { + source: "iana" + }, + "audio/gsm-efr": { + source: "iana" + }, + "audio/gsm-hr-08": { + source: "iana" + }, + "audio/ilbc": { + source: "iana" + }, + "audio/ip-mr_v2.5": { + source: "iana" + }, + "audio/isac": { + source: "apache" + }, + "audio/l16": { + source: "iana" + }, + "audio/l20": { + source: "iana" + }, + "audio/l24": { + source: "iana", + compressible: false + }, + "audio/l8": { + source: "iana" + }, + "audio/lpc": { + source: "iana" + }, + "audio/melp": { + source: "iana" + }, + "audio/melp1200": { + source: "iana" + }, + "audio/melp2400": { + source: "iana" + }, + "audio/melp600": { + source: "iana" + }, + "audio/mhas": { + source: "iana" + }, + "audio/midi": { + source: "apache", + extensions: ["mid", "midi", "kar", "rmi"] + }, + "audio/mobile-xmf": { + source: "iana", + extensions: ["mxmf"] + }, + "audio/mp3": { + compressible: false, + extensions: ["mp3"] + }, + "audio/mp4": { + source: "iana", + compressible: false, + extensions: ["m4a", "mp4a"] + }, + "audio/mp4a-latm": { + source: "iana" + }, + "audio/mpa": { + source: "iana" + }, + "audio/mpa-robust": { + source: "iana" + }, + "audio/mpeg": { + source: "iana", + compressible: false, + extensions: ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"] + }, + "audio/mpeg4-generic": { + source: "iana" + }, + "audio/musepack": { + source: "apache" + }, + "audio/ogg": { + source: "iana", + compressible: false, + extensions: ["oga", "ogg", "spx", "opus"] + }, + "audio/opus": { + source: "iana" + }, + "audio/parityfec": { + source: "iana" + }, + "audio/pcma": { + source: "iana" + }, + "audio/pcma-wb": { + source: "iana" + }, + "audio/pcmu": { + source: "iana" + }, + "audio/pcmu-wb": { + source: "iana" + }, + "audio/prs.sid": { + source: "iana" + }, + "audio/qcelp": { + source: "iana" + }, + "audio/raptorfec": { + source: "iana" + }, + "audio/red": { + source: "iana" + }, + "audio/rtp-enc-aescm128": { + source: "iana" + }, + "audio/rtp-midi": { + source: "iana" + }, + "audio/rtploopback": { + source: "iana" + }, + "audio/rtx": { + source: "iana" + }, + "audio/s3m": { + source: "apache", + extensions: ["s3m"] + }, + "audio/scip": { + source: "iana" + }, + "audio/silk": { + source: "apache", + extensions: ["sil"] + }, + "audio/smv": { + source: "iana" + }, + "audio/smv-qcp": { + source: "iana" + }, + "audio/smv0": { + source: "iana" + }, + "audio/sofa": { + source: "iana" + }, + "audio/sp-midi": { + source: "iana" + }, + "audio/speex": { + source: "iana" + }, + "audio/t140c": { + source: "iana" + }, + "audio/t38": { + source: "iana" + }, + "audio/telephone-event": { + source: "iana" + }, + "audio/tetra_acelp": { + source: "iana" + }, + "audio/tetra_acelp_bb": { + source: "iana" + }, + "audio/tone": { + source: "iana" + }, + "audio/tsvcis": { + source: "iana" + }, + "audio/uemclip": { + source: "iana" + }, + "audio/ulpfec": { + source: "iana" + }, + "audio/usac": { + source: "iana" + }, + "audio/vdvi": { + source: "iana" + }, + "audio/vmr-wb": { + source: "iana" + }, + "audio/vnd.3gpp.iufp": { + source: "iana" + }, + "audio/vnd.4sb": { + source: "iana" + }, + "audio/vnd.audiokoz": { + source: "iana" + }, + "audio/vnd.celp": { + source: "iana" + }, + "audio/vnd.cisco.nse": { + source: "iana" + }, + "audio/vnd.cmles.radio-events": { + source: "iana" + }, + "audio/vnd.cns.anp1": { + source: "iana" + }, + "audio/vnd.cns.inf1": { + source: "iana" + }, + "audio/vnd.dece.audio": { + source: "iana", + extensions: ["uva", "uvva"] + }, + "audio/vnd.digital-winds": { + source: "iana", + extensions: ["eol"] + }, + "audio/vnd.dlna.adts": { + source: "iana" + }, + "audio/vnd.dolby.heaac.1": { + source: "iana" + }, + "audio/vnd.dolby.heaac.2": { + source: "iana" + }, + "audio/vnd.dolby.mlp": { + source: "iana" + }, + "audio/vnd.dolby.mps": { + source: "iana" + }, + "audio/vnd.dolby.pl2": { + source: "iana" + }, + "audio/vnd.dolby.pl2x": { + source: "iana" + }, + "audio/vnd.dolby.pl2z": { + source: "iana" + }, + "audio/vnd.dolby.pulse.1": { + source: "iana" + }, + "audio/vnd.dra": { + source: "iana", + extensions: ["dra"] + }, + "audio/vnd.dts": { + source: "iana", + extensions: ["dts"] + }, + "audio/vnd.dts.hd": { + source: "iana", + extensions: ["dtshd"] + }, + "audio/vnd.dts.uhd": { + source: "iana" + }, + "audio/vnd.dvb.file": { + source: "iana" + }, + "audio/vnd.everad.plj": { + source: "iana" + }, + "audio/vnd.hns.audio": { + source: "iana" + }, + "audio/vnd.lucent.voice": { + source: "iana", + extensions: ["lvp"] + }, + "audio/vnd.ms-playready.media.pya": { + source: "iana", + extensions: ["pya"] + }, + "audio/vnd.nokia.mobile-xmf": { + source: "iana" + }, + "audio/vnd.nortel.vbk": { + source: "iana" + }, + "audio/vnd.nuera.ecelp4800": { + source: "iana", + extensions: ["ecelp4800"] + }, + "audio/vnd.nuera.ecelp7470": { + source: "iana", + extensions: ["ecelp7470"] + }, + "audio/vnd.nuera.ecelp9600": { + source: "iana", + extensions: ["ecelp9600"] + }, + "audio/vnd.octel.sbc": { + source: "iana" + }, + "audio/vnd.presonus.multitrack": { + source: "iana" + }, + "audio/vnd.qcelp": { + source: "iana" + }, + "audio/vnd.rhetorex.32kadpcm": { + source: "iana" + }, + "audio/vnd.rip": { + source: "iana", + extensions: ["rip"] + }, + "audio/vnd.rn-realaudio": { + compressible: false + }, + "audio/vnd.sealedmedia.softseal.mpeg": { + source: "iana" + }, + "audio/vnd.vmx.cvsd": { + source: "iana" + }, + "audio/vnd.wave": { + compressible: false + }, + "audio/vorbis": { + source: "iana", + compressible: false + }, + "audio/vorbis-config": { + source: "iana" + }, + "audio/wav": { + compressible: false, + extensions: ["wav"] + }, + "audio/wave": { + compressible: false, + extensions: ["wav"] + }, + "audio/webm": { + source: "apache", + compressible: false, + extensions: ["weba"] + }, + "audio/x-aac": { + source: "apache", + compressible: false, + extensions: ["aac"] + }, + "audio/x-aiff": { + source: "apache", + extensions: ["aif", "aiff", "aifc"] + }, + "audio/x-caf": { + source: "apache", + compressible: false, + extensions: ["caf"] + }, + "audio/x-flac": { + source: "apache", + extensions: ["flac"] + }, + "audio/x-m4a": { + source: "nginx", + extensions: ["m4a"] + }, + "audio/x-matroska": { + source: "apache", + extensions: ["mka"] + }, + "audio/x-mpegurl": { + source: "apache", + extensions: ["m3u"] + }, + "audio/x-ms-wax": { + source: "apache", + extensions: ["wax"] + }, + "audio/x-ms-wma": { + source: "apache", + extensions: ["wma"] + }, + "audio/x-pn-realaudio": { + source: "apache", + extensions: ["ram", "ra"] + }, + "audio/x-pn-realaudio-plugin": { + source: "apache", + extensions: ["rmp"] + }, + "audio/x-realaudio": { + source: "nginx", + extensions: ["ra"] + }, + "audio/x-tta": { + source: "apache" + }, + "audio/x-wav": { + source: "apache", + extensions: ["wav"] + }, + "audio/xm": { + source: "apache", + extensions: ["xm"] + }, + "chemical/x-cdx": { + source: "apache", + extensions: ["cdx"] + }, + "chemical/x-cif": { + source: "apache", + extensions: ["cif"] + }, + "chemical/x-cmdf": { + source: "apache", + extensions: ["cmdf"] + }, + "chemical/x-cml": { + source: "apache", + extensions: ["cml"] + }, + "chemical/x-csml": { + source: "apache", + extensions: ["csml"] + }, + "chemical/x-pdb": { + source: "apache" + }, + "chemical/x-xyz": { + source: "apache", + extensions: ["xyz"] + }, + "font/collection": { + source: "iana", + extensions: ["ttc"] + }, + "font/otf": { + source: "iana", + compressible: true, + extensions: ["otf"] + }, + "font/sfnt": { + source: "iana" + }, + "font/ttf": { + source: "iana", + compressible: true, + extensions: ["ttf"] + }, + "font/woff": { + source: "iana", + extensions: ["woff"] + }, + "font/woff2": { + source: "iana", + extensions: ["woff2"] + }, + "image/aces": { + source: "iana", + extensions: ["exr"] + }, + "image/apng": { + compressible: false, + extensions: ["apng"] + }, + "image/avci": { + source: "iana", + extensions: ["avci"] + }, + "image/avcs": { + source: "iana", + extensions: ["avcs"] + }, + "image/avif": { + source: "iana", + compressible: false, + extensions: ["avif"] + }, + "image/bmp": { + source: "iana", + compressible: true, + extensions: ["bmp"] + }, + "image/cgm": { + source: "iana", + extensions: ["cgm"] + }, + "image/dicom-rle": { + source: "iana", + extensions: ["drle"] + }, + "image/emf": { + source: "iana", + extensions: ["emf"] + }, + "image/fits": { + source: "iana", + extensions: ["fits"] + }, + "image/g3fax": { + source: "iana", + extensions: ["g3"] + }, + "image/gif": { + source: "iana", + compressible: false, + extensions: ["gif"] + }, + "image/heic": { + source: "iana", + extensions: ["heic"] + }, + "image/heic-sequence": { + source: "iana", + extensions: ["heics"] + }, + "image/heif": { + source: "iana", + extensions: ["heif"] + }, + "image/heif-sequence": { + source: "iana", + extensions: ["heifs"] + }, + "image/hej2k": { + source: "iana", + extensions: ["hej2"] + }, + "image/hsj2": { + source: "iana", + extensions: ["hsj2"] + }, + "image/ief": { + source: "iana", + extensions: ["ief"] + }, + "image/jls": { + source: "iana", + extensions: ["jls"] + }, + "image/jp2": { + source: "iana", + compressible: false, + extensions: ["jp2", "jpg2"] + }, + "image/jpeg": { + source: "iana", + compressible: false, + extensions: ["jpeg", "jpg", "jpe"] + }, + "image/jph": { + source: "iana", + extensions: ["jph"] + }, + "image/jphc": { + source: "iana", + extensions: ["jhc"] + }, + "image/jpm": { + source: "iana", + compressible: false, + extensions: ["jpm"] + }, + "image/jpx": { + source: "iana", + compressible: false, + extensions: ["jpx", "jpf"] + }, + "image/jxr": { + source: "iana", + extensions: ["jxr"] + }, + "image/jxra": { + source: "iana", + extensions: ["jxra"] + }, + "image/jxrs": { + source: "iana", + extensions: ["jxrs"] + }, + "image/jxs": { + source: "iana", + extensions: ["jxs"] + }, + "image/jxsc": { + source: "iana", + extensions: ["jxsc"] + }, + "image/jxsi": { + source: "iana", + extensions: ["jxsi"] + }, + "image/jxss": { + source: "iana", + extensions: ["jxss"] + }, + "image/ktx": { + source: "iana", + extensions: ["ktx"] + }, + "image/ktx2": { + source: "iana", + extensions: ["ktx2"] + }, + "image/naplps": { + source: "iana" + }, + "image/pjpeg": { + compressible: false + }, + "image/png": { + source: "iana", + compressible: false, + extensions: ["png"] + }, + "image/prs.btif": { + source: "iana", + extensions: ["btif"] + }, + "image/prs.pti": { + source: "iana", + extensions: ["pti"] + }, + "image/pwg-raster": { + source: "iana" + }, + "image/sgi": { + source: "apache", + extensions: ["sgi"] + }, + "image/svg+xml": { + source: "iana", + compressible: true, + extensions: ["svg", "svgz"] + }, + "image/t38": { + source: "iana", + extensions: ["t38"] + }, + "image/tiff": { + source: "iana", + compressible: false, + extensions: ["tif", "tiff"] + }, + "image/tiff-fx": { + source: "iana", + extensions: ["tfx"] + }, + "image/vnd.adobe.photoshop": { + source: "iana", + compressible: true, + extensions: ["psd"] + }, + "image/vnd.airzip.accelerator.azv": { + source: "iana", + extensions: ["azv"] + }, + "image/vnd.cns.inf2": { + source: "iana" + }, + "image/vnd.dece.graphic": { + source: "iana", + extensions: ["uvi", "uvvi", "uvg", "uvvg"] + }, + "image/vnd.djvu": { + source: "iana", + extensions: ["djvu", "djv"] + }, + "image/vnd.dvb.subtitle": { + source: "iana", + extensions: ["sub"] + }, + "image/vnd.dwg": { + source: "iana", + extensions: ["dwg"] + }, + "image/vnd.dxf": { + source: "iana", + extensions: ["dxf"] + }, + "image/vnd.fastbidsheet": { + source: "iana", + extensions: ["fbs"] + }, + "image/vnd.fpx": { + source: "iana", + extensions: ["fpx"] + }, + "image/vnd.fst": { + source: "iana", + extensions: ["fst"] + }, + "image/vnd.fujixerox.edmics-mmr": { + source: "iana", + extensions: ["mmr"] + }, + "image/vnd.fujixerox.edmics-rlc": { + source: "iana", + extensions: ["rlc"] + }, + "image/vnd.globalgraphics.pgb": { + source: "iana" + }, + "image/vnd.microsoft.icon": { + source: "iana", + compressible: true, + extensions: ["ico"] + }, + "image/vnd.mix": { + source: "iana" + }, + "image/vnd.mozilla.apng": { + source: "iana" + }, + "image/vnd.ms-dds": { + compressible: true, + extensions: ["dds"] + }, + "image/vnd.ms-modi": { + source: "iana", + extensions: ["mdi"] + }, + "image/vnd.ms-photo": { + source: "apache", + extensions: ["wdp"] + }, + "image/vnd.net-fpx": { + source: "iana", + extensions: ["npx"] + }, + "image/vnd.pco.b16": { + source: "iana", + extensions: ["b16"] + }, + "image/vnd.radiance": { + source: "iana" + }, + "image/vnd.sealed.png": { + source: "iana" + }, + "image/vnd.sealedmedia.softseal.gif": { + source: "iana" + }, + "image/vnd.sealedmedia.softseal.jpg": { + source: "iana" + }, + "image/vnd.svf": { + source: "iana" + }, + "image/vnd.tencent.tap": { + source: "iana", + extensions: ["tap"] + }, + "image/vnd.valve.source.texture": { + source: "iana", + extensions: ["vtf"] + }, + "image/vnd.wap.wbmp": { + source: "iana", + extensions: ["wbmp"] + }, + "image/vnd.xiff": { + source: "iana", + extensions: ["xif"] + }, + "image/vnd.zbrush.pcx": { + source: "iana", + extensions: ["pcx"] + }, + "image/webp": { + source: "apache", + extensions: ["webp"] + }, + "image/wmf": { + source: "iana", + extensions: ["wmf"] + }, + "image/x-3ds": { + source: "apache", + extensions: ["3ds"] + }, + "image/x-cmu-raster": { + source: "apache", + extensions: ["ras"] + }, + "image/x-cmx": { + source: "apache", + extensions: ["cmx"] + }, + "image/x-freehand": { + source: "apache", + extensions: ["fh", "fhc", "fh4", "fh5", "fh7"] + }, + "image/x-icon": { + source: "apache", + compressible: true, + extensions: ["ico"] + }, + "image/x-jng": { + source: "nginx", + extensions: ["jng"] + }, + "image/x-mrsid-image": { + source: "apache", + extensions: ["sid"] + }, + "image/x-ms-bmp": { + source: "nginx", + compressible: true, + extensions: ["bmp"] + }, + "image/x-pcx": { + source: "apache", + extensions: ["pcx"] + }, + "image/x-pict": { + source: "apache", + extensions: ["pic", "pct"] + }, + "image/x-portable-anymap": { + source: "apache", + extensions: ["pnm"] + }, + "image/x-portable-bitmap": { + source: "apache", + extensions: ["pbm"] + }, + "image/x-portable-graymap": { + source: "apache", + extensions: ["pgm"] + }, + "image/x-portable-pixmap": { + source: "apache", + extensions: ["ppm"] + }, + "image/x-rgb": { + source: "apache", + extensions: ["rgb"] + }, + "image/x-tga": { + source: "apache", + extensions: ["tga"] + }, + "image/x-xbitmap": { + source: "apache", + extensions: ["xbm"] + }, + "image/x-xcf": { + compressible: false + }, + "image/x-xpixmap": { + source: "apache", + extensions: ["xpm"] + }, + "image/x-xwindowdump": { + source: "apache", + extensions: ["xwd"] + }, + "message/cpim": { + source: "iana" + }, + "message/delivery-status": { + source: "iana" + }, + "message/disposition-notification": { + source: "iana", + extensions: [ + "disposition-notification" + ] + }, + "message/external-body": { + source: "iana" + }, + "message/feedback-report": { + source: "iana" + }, + "message/global": { + source: "iana", + extensions: ["u8msg"] + }, + "message/global-delivery-status": { + source: "iana", + extensions: ["u8dsn"] + }, + "message/global-disposition-notification": { + source: "iana", + extensions: ["u8mdn"] + }, + "message/global-headers": { + source: "iana", + extensions: ["u8hdr"] + }, + "message/http": { + source: "iana", + compressible: false + }, + "message/imdn+xml": { + source: "iana", + compressible: true + }, + "message/news": { + source: "iana" + }, + "message/partial": { + source: "iana", + compressible: false + }, + "message/rfc822": { + source: "iana", + compressible: true, + extensions: ["eml", "mime"] + }, + "message/s-http": { + source: "iana" + }, + "message/sip": { + source: "iana" + }, + "message/sipfrag": { + source: "iana" + }, + "message/tracking-status": { + source: "iana" + }, + "message/vnd.si.simp": { + source: "iana" + }, + "message/vnd.wfa.wsc": { + source: "iana", + extensions: ["wsc"] + }, + "model/3mf": { + source: "iana", + extensions: ["3mf"] + }, + "model/e57": { + source: "iana" + }, + "model/gltf+json": { + source: "iana", + compressible: true, + extensions: ["gltf"] + }, + "model/gltf-binary": { + source: "iana", + compressible: true, + extensions: ["glb"] + }, + "model/iges": { + source: "iana", + compressible: false, + extensions: ["igs", "iges"] + }, + "model/mesh": { + source: "iana", + compressible: false, + extensions: ["msh", "mesh", "silo"] + }, + "model/mtl": { + source: "iana", + extensions: ["mtl"] + }, + "model/obj": { + source: "iana", + extensions: ["obj"] + }, + "model/step": { + source: "iana" + }, + "model/step+xml": { + source: "iana", + compressible: true, + extensions: ["stpx"] + }, + "model/step+zip": { + source: "iana", + compressible: false, + extensions: ["stpz"] + }, + "model/step-xml+zip": { + source: "iana", + compressible: false, + extensions: ["stpxz"] + }, + "model/stl": { + source: "iana", + extensions: ["stl"] + }, + "model/vnd.collada+xml": { + source: "iana", + compressible: true, + extensions: ["dae"] + }, + "model/vnd.dwf": { + source: "iana", + extensions: ["dwf"] + }, + "model/vnd.flatland.3dml": { + source: "iana" + }, + "model/vnd.gdl": { + source: "iana", + extensions: ["gdl"] + }, + "model/vnd.gs-gdl": { + source: "apache" + }, + "model/vnd.gs.gdl": { + source: "iana" + }, + "model/vnd.gtw": { + source: "iana", + extensions: ["gtw"] + }, + "model/vnd.moml+xml": { + source: "iana", + compressible: true + }, + "model/vnd.mts": { + source: "iana", + extensions: ["mts"] + }, + "model/vnd.opengex": { + source: "iana", + extensions: ["ogex"] + }, + "model/vnd.parasolid.transmit.binary": { + source: "iana", + extensions: ["x_b"] + }, + "model/vnd.parasolid.transmit.text": { + source: "iana", + extensions: ["x_t"] + }, + "model/vnd.pytha.pyox": { + source: "iana" + }, + "model/vnd.rosette.annotated-data-model": { + source: "iana" + }, + "model/vnd.sap.vds": { + source: "iana", + extensions: ["vds"] + }, + "model/vnd.usdz+zip": { + source: "iana", + compressible: false, + extensions: ["usdz"] + }, + "model/vnd.valve.source.compiled-map": { + source: "iana", + extensions: ["bsp"] + }, + "model/vnd.vtu": { + source: "iana", + extensions: ["vtu"] + }, + "model/vrml": { + source: "iana", + compressible: false, + extensions: ["wrl", "vrml"] + }, + "model/x3d+binary": { + source: "apache", + compressible: false, + extensions: ["x3db", "x3dbz"] + }, + "model/x3d+fastinfoset": { + source: "iana", + extensions: ["x3db"] + }, + "model/x3d+vrml": { + source: "apache", + compressible: false, + extensions: ["x3dv", "x3dvz"] + }, + "model/x3d+xml": { + source: "iana", + compressible: true, + extensions: ["x3d", "x3dz"] + }, + "model/x3d-vrml": { + source: "iana", + extensions: ["x3dv"] + }, + "multipart/alternative": { + source: "iana", + compressible: false + }, + "multipart/appledouble": { + source: "iana" + }, + "multipart/byteranges": { + source: "iana" + }, + "multipart/digest": { + source: "iana" + }, + "multipart/encrypted": { + source: "iana", + compressible: false + }, + "multipart/form-data": { + source: "iana", + compressible: false + }, + "multipart/header-set": { + source: "iana" + }, + "multipart/mixed": { + source: "iana" + }, + "multipart/multilingual": { + source: "iana" + }, + "multipart/parallel": { + source: "iana" + }, + "multipart/related": { + source: "iana", + compressible: false + }, + "multipart/report": { + source: "iana" + }, + "multipart/signed": { + source: "iana", + compressible: false + }, + "multipart/vnd.bint.med-plus": { + source: "iana" + }, + "multipart/voice-message": { + source: "iana" + }, + "multipart/x-mixed-replace": { + source: "iana" + }, + "text/1d-interleaved-parityfec": { + source: "iana" + }, + "text/cache-manifest": { + source: "iana", + compressible: true, + extensions: ["appcache", "manifest"] + }, + "text/calendar": { + source: "iana", + extensions: ["ics", "ifb"] + }, + "text/calender": { + compressible: true + }, + "text/cmd": { + compressible: true + }, + "text/coffeescript": { + extensions: ["coffee", "litcoffee"] + }, + "text/cql": { + source: "iana" + }, + "text/cql-expression": { + source: "iana" + }, + "text/cql-identifier": { + source: "iana" + }, + "text/css": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["css"] + }, + "text/csv": { + source: "iana", + compressible: true, + extensions: ["csv"] + }, + "text/csv-schema": { + source: "iana" + }, + "text/directory": { + source: "iana" + }, + "text/dns": { + source: "iana" + }, + "text/ecmascript": { + source: "iana" + }, + "text/encaprtp": { + source: "iana" + }, + "text/enriched": { + source: "iana" + }, + "text/fhirpath": { + source: "iana" + }, + "text/flexfec": { + source: "iana" + }, + "text/fwdred": { + source: "iana" + }, + "text/gff3": { + source: "iana" + }, + "text/grammar-ref-list": { + source: "iana" + }, + "text/html": { + source: "iana", + compressible: true, + extensions: ["html", "htm", "shtml"] + }, + "text/jade": { + extensions: ["jade"] + }, + "text/javascript": { + source: "iana", + compressible: true + }, + "text/jcr-cnd": { + source: "iana" + }, + "text/jsx": { + compressible: true, + extensions: ["jsx"] + }, + "text/less": { + compressible: true, + extensions: ["less"] + }, + "text/markdown": { + source: "iana", + compressible: true, + extensions: ["markdown", "md"] + }, + "text/mathml": { + source: "nginx", + extensions: ["mml"] + }, + "text/mdx": { + compressible: true, + extensions: ["mdx"] + }, + "text/mizar": { + source: "iana" + }, + "text/n3": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["n3"] + }, + "text/parameters": { + source: "iana", + charset: "UTF-8" + }, + "text/parityfec": { + source: "iana" + }, + "text/plain": { + source: "iana", + compressible: true, + extensions: ["txt", "text", "conf", "def", "list", "log", "in", "ini"] + }, + "text/provenance-notation": { + source: "iana", + charset: "UTF-8" + }, + "text/prs.fallenstein.rst": { + source: "iana" + }, + "text/prs.lines.tag": { + source: "iana", + extensions: ["dsc"] + }, + "text/prs.prop.logic": { + source: "iana" + }, + "text/raptorfec": { + source: "iana" + }, + "text/red": { + source: "iana" + }, + "text/rfc822-headers": { + source: "iana" + }, + "text/richtext": { + source: "iana", + compressible: true, + extensions: ["rtx"] + }, + "text/rtf": { + source: "iana", + compressible: true, + extensions: ["rtf"] + }, + "text/rtp-enc-aescm128": { + source: "iana" + }, + "text/rtploopback": { + source: "iana" + }, + "text/rtx": { + source: "iana" + }, + "text/sgml": { + source: "iana", + extensions: ["sgml", "sgm"] + }, + "text/shaclc": { + source: "iana" + }, + "text/shex": { + source: "iana", + extensions: ["shex"] + }, + "text/slim": { + extensions: ["slim", "slm"] + }, + "text/spdx": { + source: "iana", + extensions: ["spdx"] + }, + "text/strings": { + source: "iana" + }, + "text/stylus": { + extensions: ["stylus", "styl"] + }, + "text/t140": { + source: "iana" + }, + "text/tab-separated-values": { + source: "iana", + compressible: true, + extensions: ["tsv"] + }, + "text/troff": { + source: "iana", + extensions: ["t", "tr", "roff", "man", "me", "ms"] + }, + "text/turtle": { + source: "iana", + charset: "UTF-8", + extensions: ["ttl"] + }, + "text/ulpfec": { + source: "iana" + }, + "text/uri-list": { + source: "iana", + compressible: true, + extensions: ["uri", "uris", "urls"] + }, + "text/vcard": { + source: "iana", + compressible: true, + extensions: ["vcard"] + }, + "text/vnd.a": { + source: "iana" + }, + "text/vnd.abc": { + source: "iana" + }, + "text/vnd.ascii-art": { + source: "iana" + }, + "text/vnd.curl": { + source: "iana", + extensions: ["curl"] + }, + "text/vnd.curl.dcurl": { + source: "apache", + extensions: ["dcurl"] + }, + "text/vnd.curl.mcurl": { + source: "apache", + extensions: ["mcurl"] + }, + "text/vnd.curl.scurl": { + source: "apache", + extensions: ["scurl"] + }, + "text/vnd.debian.copyright": { + source: "iana", + charset: "UTF-8" + }, + "text/vnd.dmclientscript": { + source: "iana" + }, + "text/vnd.dvb.subtitle": { + source: "iana", + extensions: ["sub"] + }, + "text/vnd.esmertec.theme-descriptor": { + source: "iana", + charset: "UTF-8" + }, + "text/vnd.familysearch.gedcom": { + source: "iana", + extensions: ["ged"] + }, + "text/vnd.ficlab.flt": { + source: "iana" + }, + "text/vnd.fly": { + source: "iana", + extensions: ["fly"] + }, + "text/vnd.fmi.flexstor": { + source: "iana", + extensions: ["flx"] + }, + "text/vnd.gml": { + source: "iana" + }, + "text/vnd.graphviz": { + source: "iana", + extensions: ["gv"] + }, + "text/vnd.hans": { + source: "iana" + }, + "text/vnd.hgl": { + source: "iana" + }, + "text/vnd.in3d.3dml": { + source: "iana", + extensions: ["3dml"] + }, + "text/vnd.in3d.spot": { + source: "iana", + extensions: ["spot"] + }, + "text/vnd.iptc.newsml": { + source: "iana" + }, + "text/vnd.iptc.nitf": { + source: "iana" + }, + "text/vnd.latex-z": { + source: "iana" + }, + "text/vnd.motorola.reflex": { + source: "iana" + }, + "text/vnd.ms-mediapackage": { + source: "iana" + }, + "text/vnd.net2phone.commcenter.command": { + source: "iana" + }, + "text/vnd.radisys.msml-basic-layout": { + source: "iana" + }, + "text/vnd.senx.warpscript": { + source: "iana" + }, + "text/vnd.si.uricatalogue": { + source: "iana" + }, + "text/vnd.sosi": { + source: "iana" + }, + "text/vnd.sun.j2me.app-descriptor": { + source: "iana", + charset: "UTF-8", + extensions: ["jad"] + }, + "text/vnd.trolltech.linguist": { + source: "iana", + charset: "UTF-8" + }, + "text/vnd.wap.si": { + source: "iana" + }, + "text/vnd.wap.sl": { + source: "iana" + }, + "text/vnd.wap.wml": { + source: "iana", + extensions: ["wml"] + }, + "text/vnd.wap.wmlscript": { + source: "iana", + extensions: ["wmls"] + }, + "text/vtt": { + source: "iana", + charset: "UTF-8", + compressible: true, + extensions: ["vtt"] + }, + "text/x-asm": { + source: "apache", + extensions: ["s", "asm"] + }, + "text/x-c": { + source: "apache", + extensions: ["c", "cc", "cxx", "cpp", "h", "hh", "dic"] + }, + "text/x-component": { + source: "nginx", + extensions: ["htc"] + }, + "text/x-fortran": { + source: "apache", + extensions: ["f", "for", "f77", "f90"] + }, + "text/x-gwt-rpc": { + compressible: true + }, + "text/x-handlebars-template": { + extensions: ["hbs"] + }, + "text/x-java-source": { + source: "apache", + extensions: ["java"] + }, + "text/x-jquery-tmpl": { + compressible: true + }, + "text/x-lua": { + extensions: ["lua"] + }, + "text/x-markdown": { + compressible: true, + extensions: ["mkd"] + }, + "text/x-nfo": { + source: "apache", + extensions: ["nfo"] + }, + "text/x-opml": { + source: "apache", + extensions: ["opml"] + }, + "text/x-org": { + compressible: true, + extensions: ["org"] + }, + "text/x-pascal": { + source: "apache", + extensions: ["p", "pas"] + }, + "text/x-processing": { + compressible: true, + extensions: ["pde"] + }, + "text/x-sass": { + extensions: ["sass"] + }, + "text/x-scss": { + extensions: ["scss"] + }, + "text/x-setext": { + source: "apache", + extensions: ["etx"] + }, + "text/x-sfv": { + source: "apache", + extensions: ["sfv"] + }, + "text/x-suse-ymp": { + compressible: true, + extensions: ["ymp"] + }, + "text/x-uuencode": { + source: "apache", + extensions: ["uu"] + }, + "text/x-vcalendar": { + source: "apache", + extensions: ["vcs"] + }, + "text/x-vcard": { + source: "apache", + extensions: ["vcf"] + }, + "text/xml": { + source: "iana", + compressible: true, + extensions: ["xml"] + }, + "text/xml-external-parsed-entity": { + source: "iana" + }, + "text/yaml": { + compressible: true, + extensions: ["yaml", "yml"] + }, + "video/1d-interleaved-parityfec": { + source: "iana" + }, + "video/3gpp": { + source: "iana", + extensions: ["3gp", "3gpp"] + }, + "video/3gpp-tt": { + source: "iana" + }, + "video/3gpp2": { + source: "iana", + extensions: ["3g2"] + }, + "video/av1": { + source: "iana" + }, + "video/bmpeg": { + source: "iana" + }, + "video/bt656": { + source: "iana" + }, + "video/celb": { + source: "iana" + }, + "video/dv": { + source: "iana" + }, + "video/encaprtp": { + source: "iana" + }, + "video/ffv1": { + source: "iana" + }, + "video/flexfec": { + source: "iana" + }, + "video/h261": { + source: "iana", + extensions: ["h261"] + }, + "video/h263": { + source: "iana", + extensions: ["h263"] + }, + "video/h263-1998": { + source: "iana" + }, + "video/h263-2000": { + source: "iana" + }, + "video/h264": { + source: "iana", + extensions: ["h264"] + }, + "video/h264-rcdo": { + source: "iana" + }, + "video/h264-svc": { + source: "iana" + }, + "video/h265": { + source: "iana" + }, + "video/iso.segment": { + source: "iana", + extensions: ["m4s"] + }, + "video/jpeg": { + source: "iana", + extensions: ["jpgv"] + }, + "video/jpeg2000": { + source: "iana" + }, + "video/jpm": { + source: "apache", + extensions: ["jpm", "jpgm"] + }, + "video/jxsv": { + source: "iana" + }, + "video/mj2": { + source: "iana", + extensions: ["mj2", "mjp2"] + }, + "video/mp1s": { + source: "iana" + }, + "video/mp2p": { + source: "iana" + }, + "video/mp2t": { + source: "iana", + extensions: ["ts"] + }, + "video/mp4": { + source: "iana", + compressible: false, + extensions: ["mp4", "mp4v", "mpg4"] + }, + "video/mp4v-es": { + source: "iana" + }, + "video/mpeg": { + source: "iana", + compressible: false, + extensions: ["mpeg", "mpg", "mpe", "m1v", "m2v"] + }, + "video/mpeg4-generic": { + source: "iana" + }, + "video/mpv": { + source: "iana" + }, + "video/nv": { + source: "iana" + }, + "video/ogg": { + source: "iana", + compressible: false, + extensions: ["ogv"] + }, + "video/parityfec": { + source: "iana" + }, + "video/pointer": { + source: "iana" + }, + "video/quicktime": { + source: "iana", + compressible: false, + extensions: ["qt", "mov"] + }, + "video/raptorfec": { + source: "iana" + }, + "video/raw": { + source: "iana" + }, + "video/rtp-enc-aescm128": { + source: "iana" + }, + "video/rtploopback": { + source: "iana" + }, + "video/rtx": { + source: "iana" + }, + "video/scip": { + source: "iana" + }, + "video/smpte291": { + source: "iana" + }, + "video/smpte292m": { + source: "iana" + }, + "video/ulpfec": { + source: "iana" + }, + "video/vc1": { + source: "iana" + }, + "video/vc2": { + source: "iana" + }, + "video/vnd.cctv": { + source: "iana" + }, + "video/vnd.dece.hd": { + source: "iana", + extensions: ["uvh", "uvvh"] + }, + "video/vnd.dece.mobile": { + source: "iana", + extensions: ["uvm", "uvvm"] + }, + "video/vnd.dece.mp4": { + source: "iana" + }, + "video/vnd.dece.pd": { + source: "iana", + extensions: ["uvp", "uvvp"] + }, + "video/vnd.dece.sd": { + source: "iana", + extensions: ["uvs", "uvvs"] + }, + "video/vnd.dece.video": { + source: "iana", + extensions: ["uvv", "uvvv"] + }, + "video/vnd.directv.mpeg": { + source: "iana" + }, + "video/vnd.directv.mpeg-tts": { + source: "iana" + }, + "video/vnd.dlna.mpeg-tts": { + source: "iana" + }, + "video/vnd.dvb.file": { + source: "iana", + extensions: ["dvb"] + }, + "video/vnd.fvt": { + source: "iana", + extensions: ["fvt"] + }, + "video/vnd.hns.video": { + source: "iana" + }, + "video/vnd.iptvforum.1dparityfec-1010": { + source: "iana" + }, + "video/vnd.iptvforum.1dparityfec-2005": { + source: "iana" + }, + "video/vnd.iptvforum.2dparityfec-1010": { + source: "iana" + }, + "video/vnd.iptvforum.2dparityfec-2005": { + source: "iana" + }, + "video/vnd.iptvforum.ttsavc": { + source: "iana" + }, + "video/vnd.iptvforum.ttsmpeg2": { + source: "iana" + }, + "video/vnd.motorola.video": { + source: "iana" + }, + "video/vnd.motorola.videop": { + source: "iana" + }, + "video/vnd.mpegurl": { + source: "iana", + extensions: ["mxu", "m4u"] + }, + "video/vnd.ms-playready.media.pyv": { + source: "iana", + extensions: ["pyv"] + }, + "video/vnd.nokia.interleaved-multimedia": { + source: "iana" + }, + "video/vnd.nokia.mp4vr": { + source: "iana" + }, + "video/vnd.nokia.videovoip": { + source: "iana" + }, + "video/vnd.objectvideo": { + source: "iana" + }, + "video/vnd.radgamettools.bink": { + source: "iana" + }, + "video/vnd.radgamettools.smacker": { + source: "iana" + }, + "video/vnd.sealed.mpeg1": { + source: "iana" + }, + "video/vnd.sealed.mpeg4": { + source: "iana" + }, + "video/vnd.sealed.swf": { + source: "iana" + }, + "video/vnd.sealedmedia.softseal.mov": { + source: "iana" + }, + "video/vnd.uvvu.mp4": { + source: "iana", + extensions: ["uvu", "uvvu"] + }, + "video/vnd.vivo": { + source: "iana", + extensions: ["viv"] + }, + "video/vnd.youtube.yt": { + source: "iana" + }, + "video/vp8": { + source: "iana" + }, + "video/vp9": { + source: "iana" + }, + "video/webm": { + source: "apache", + compressible: false, + extensions: ["webm"] + }, + "video/x-f4v": { + source: "apache", + extensions: ["f4v"] + }, + "video/x-fli": { + source: "apache", + extensions: ["fli"] + }, + "video/x-flv": { + source: "apache", + compressible: false, + extensions: ["flv"] + }, + "video/x-m4v": { + source: "apache", + extensions: ["m4v"] + }, + "video/x-matroska": { + source: "apache", + compressible: false, + extensions: ["mkv", "mk3d", "mks"] + }, + "video/x-mng": { + source: "apache", + extensions: ["mng"] + }, + "video/x-ms-asf": { + source: "apache", + extensions: ["asf", "asx"] + }, + "video/x-ms-vob": { + source: "apache", + extensions: ["vob"] + }, + "video/x-ms-wm": { + source: "apache", + extensions: ["wm"] + }, + "video/x-ms-wmv": { + source: "apache", + compressible: false, + extensions: ["wmv"] + }, + "video/x-ms-wmx": { + source: "apache", + extensions: ["wmx"] + }, + "video/x-ms-wvx": { + source: "apache", + extensions: ["wvx"] + }, + "video/x-msvideo": { + source: "apache", + extensions: ["avi"] + }, + "video/x-sgi-movie": { + source: "apache", + extensions: ["movie"] + }, + "video/x-smv": { + source: "apache", + extensions: ["smv"] + }, + "x-conference/x-cooltalk": { + source: "apache", + extensions: ["ice"] + }, + "x-shader/x-fragment": { + compressible: true + }, + "x-shader/x-vertex": { + compressible: true + } + }; + } +}); + +// ../../.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-95baf687a3.zip/node_modules/mime-db/index.js +var require_mime_db = __commonJS({ + "../../.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-95baf687a3.zip/node_modules/mime-db/index.js"(exports2, module2) { + module2.exports = require_db(); + } +}); + +// ../../.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-51e3b38d1b.zip/node_modules/mime-types/index.js +var require_mime_types = __commonJS({ + "../../.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-51e3b38d1b.zip/node_modules/mime-types/index.js"(exports2) { + "use strict"; + var db = require_mime_db(); + var extname2 = require("path").extname; + var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/; + var TEXT_TYPE_REGEXP = /^text\//i; + exports2.charset = charset; + exports2.charsets = { lookup: charset }; + exports2.contentType = contentType; + exports2.extension = extension; + exports2.extensions = /* @__PURE__ */ Object.create(null); + exports2.lookup = lookup2; + exports2.types = /* @__PURE__ */ Object.create(null); + populateMaps(exports2.extensions, exports2.types); + function charset(type2) { + if (!type2 || typeof type2 !== "string") { + return false; + } + var match2 = EXTRACT_TYPE_REGEXP.exec(type2); + var mime = match2 && db[match2[1].toLowerCase()]; + if (mime && mime.charset) { + return mime.charset; + } + if (match2 && TEXT_TYPE_REGEXP.test(match2[1])) { + return "UTF-8"; + } + return false; + } + function contentType(str2) { + if (!str2 || typeof str2 !== "string") { + return false; + } + var mime = str2.indexOf("/") === -1 ? exports2.lookup(str2) : str2; + if (!mime) { + return false; + } + if (mime.indexOf("charset") === -1) { + var charset2 = exports2.charset(mime); + if (charset2) + mime += "; charset=" + charset2.toLowerCase(); + } + return mime; + } + function extension(type2) { + if (!type2 || typeof type2 !== "string") { + return false; + } + var match2 = EXTRACT_TYPE_REGEXP.exec(type2); + var exts = match2 && exports2.extensions[match2[1].toLowerCase()]; + if (!exts || !exts.length) { + return false; + } + return exts[0]; + } + function lookup2(path2) { + if (!path2 || typeof path2 !== "string") { + return false; + } + var extension2 = extname2("x." + path2).toLowerCase().substr(1); + if (!extension2) { + return false; + } + return exports2.types[extension2] || false; + } + function populateMaps(extensions, types2) { + var preference = ["nginx", "apache", void 0, "iana"]; + Object.keys(db).forEach(function forEachMimeType(type2) { + var mime = db[type2]; + var exts = mime.extensions; + if (!exts || !exts.length) { + return; + } + extensions[type2] = exts; + for (var i3 = 0; i3 < exts.length; i3++) { + var extension2 = exts[i3]; + if (types2[extension2]) { + var from = preference.indexOf(db[types2[extension2]].source); + var to = preference.indexOf(mime.source); + if (types2[extension2] !== "application/octet-stream" && (from > to || from === to && types2[extension2].substr(0, 12) === "application/")) { + continue; + } + } + types2[extension2] = type2; + } + }); + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/defer.js +var require_defer = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/defer.js"(exports2, module2) { + module2.exports = defer; + function defer(fn) { + var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null; + if (nextTick) { + nextTick(fn); + } else { + setTimeout(fn, 0); + } + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/async.js +var require_async = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/async.js"(exports2, module2) { + var defer = require_defer(); + module2.exports = async; + function async(callback) { + var isAsync = false; + defer(function() { + isAsync = true; + }); + return function async_callback(err, result) { + if (isAsync) { + callback(err, result); + } else { + defer(function nextTick_callback() { + callback(err, result); + }); + } + }; + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/abort.js +var require_abort = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/abort.js"(exports2, module2) { + module2.exports = abort; + function abort(state) { + Object.keys(state.jobs).forEach(clean.bind(state)); + state.jobs = {}; + } + function clean(key) { + if (typeof this.jobs[key] == "function") { + this.jobs[key](); + } + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/iterate.js +var require_iterate = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/iterate.js"(exports2, module2) { + var async = require_async(); + var abort = require_abort(); + module2.exports = iterate; + function iterate(list, iterator2, state, callback) { + var key = state["keyedList"] ? state["keyedList"][state.index] : state.index; + state.jobs[key] = runJob(iterator2, key, list[key], function(error, output) { + if (!(key in state.jobs)) { + return; + } + delete state.jobs[key]; + if (error) { + abort(state); + } else { + state.results[key] = output; + } + callback(error, state.results); + }); + } + function runJob(iterator2, key, item, callback) { + var aborter; + if (iterator2.length == 2) { + aborter = iterator2(item, async(callback)); + } else { + aborter = iterator2(item, key, async(callback)); + } + return aborter; + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/state.js +var require_state = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/state.js"(exports2, module2) { + module2.exports = state; + function state(list, sortMethod) { + var isNamedList = !Array.isArray(list), initState = { + index: 0, + keyedList: isNamedList || sortMethod ? Object.keys(list) : null, + jobs: {}, + results: isNamedList ? {} : [], + size: isNamedList ? Object.keys(list).length : list.length + }; + if (sortMethod) { + initState.keyedList.sort(isNamedList ? sortMethod : function(a2, b3) { + return sortMethod(list[a2], list[b3]); + }); + } + return initState; + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/terminator.js +var require_terminator = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/lib/terminator.js"(exports2, module2) { + var abort = require_abort(); + var async = require_async(); + module2.exports = terminator; + function terminator(callback) { + if (!Object.keys(this.jobs).length) { + return; + } + this.index = this.size; + abort(this); + async(callback)(null, this.results); + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/parallel.js +var require_parallel = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/parallel.js"(exports2, module2) { + var iterate = require_iterate(); + var initState = require_state(); + var terminator = require_terminator(); + module2.exports = parallel; + function parallel(list, iterator2, callback) { + var state = initState(list); + while (state.index < (state["keyedList"] || list).length) { + iterate(list, iterator2, state, function(error, result) { + if (error) { + callback(error, result); + return; + } + if (Object.keys(state.jobs).length === 0) { + callback(null, state.results); + return; + } + }); + state.index++; + } + return terminator.bind(state, callback); + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/serialOrdered.js +var require_serialOrdered = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/serialOrdered.js"(exports2, module2) { + var iterate = require_iterate(); + var initState = require_state(); + var terminator = require_terminator(); + module2.exports = serialOrdered; + module2.exports.ascending = ascending; + module2.exports.descending = descending; + function serialOrdered(list, iterator2, sortMethod, callback) { + var state = initState(list, sortMethod); + iterate(list, iterator2, state, function iteratorHandler(error, result) { + if (error) { + callback(error, result); + return; + } + state.index++; + if (state.index < (state["keyedList"] || list).length) { + iterate(list, iterator2, state, iteratorHandler); + return; + } + callback(null, state.results); + }); + return terminator.bind(state, callback); + } + function ascending(a2, b3) { + return a2 < b3 ? -1 : a2 > b3 ? 1 : 0; + } + function descending(a2, b3) { + return -1 * ascending(a2, b3); + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/serial.js +var require_serial = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/serial.js"(exports2, module2) { + var serialOrdered = require_serialOrdered(); + module2.exports = serial; + function serial(list, iterator2, callback) { + return serialOrdered(list, iterator2, null, callback); + } + } +}); + +// ../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/index.js +var require_asynckit = __commonJS({ + "../../.yarn/cache/asynckit-npm-0.4.0-c718858525-e4d1381289.zip/node_modules/asynckit/index.js"(exports2, module2) { + module2.exports = { + parallel: require_parallel(), + serial: require_serial(), + serialOrdered: require_serialOrdered() + }; + } +}); + +// ../../.yarn/cache/form-data-npm-4.0.0-916facec2d-de37c5684d.zip/node_modules/form-data/lib/populate.js +var require_populate = __commonJS({ + "../../.yarn/cache/form-data-npm-4.0.0-916facec2d-de37c5684d.zip/node_modules/form-data/lib/populate.js"(exports2, module2) { + module2.exports = function(dst, src) { + Object.keys(src).forEach(function(prop) { + dst[prop] = dst[prop] || src[prop]; + }); + return dst; + }; + } +}); + +// ../../.yarn/cache/form-data-npm-4.0.0-916facec2d-de37c5684d.zip/node_modules/form-data/lib/form_data.js +var require_form_data = __commonJS({ + "../../.yarn/cache/form-data-npm-4.0.0-916facec2d-de37c5684d.zip/node_modules/form-data/lib/form_data.js"(exports2, module2) { + var CombinedStream = require_combined_stream(); + var util = require("util"); + var path2 = require("path"); + var http = require("http"); + var https = require("https"); + var parseUrl = require("url").parse; + var fs = require("fs"); + var Stream = require("stream").Stream; + var mime = require_mime_types(); + var asynckit = require_asynckit(); + var populate = require_populate(); + module2.exports = FormData2; + util.inherits(FormData2, CombinedStream); + function FormData2(options2) { + if (!(this instanceof FormData2)) { + return new FormData2(options2); + } + this._overheadLength = 0; + this._valueLength = 0; + this._valuesToMeasure = []; + CombinedStream.call(this); + options2 = options2 || {}; + for (var option in options2) { + this[option] = options2[option]; + } + } + FormData2.LINE_BREAK = "\r\n"; + FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream"; + FormData2.prototype.append = function(field, value, options2) { + options2 = options2 || {}; + if (typeof options2 == "string") { + options2 = { filename: options2 }; + } + var append = CombinedStream.prototype.append.bind(this); + if (typeof value == "number") { + value = "" + value; + } + if (util.isArray(value)) { + this._error(new Error("Arrays are not supported.")); + return; + } + var header = this._multiPartHeader(field, value, options2); + var footer = this._multiPartFooter(); + append(header); + append(value); + append(footer); + this._trackLength(header, value, options2); + }; + FormData2.prototype._trackLength = function(header, value, options2) { + var valueLength = 0; + if (options2.knownLength != null) { + valueLength += +options2.knownLength; + } else if (Buffer.isBuffer(value)) { + valueLength = value.length; + } else if (typeof value === "string") { + valueLength = Buffer.byteLength(value); + } + this._valueLength += valueLength; + this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length; + if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) { + return; + } + if (!options2.knownLength) { + this._valuesToMeasure.push(value); + } + }; + FormData2.prototype._lengthRetriever = function(value, callback) { + if (value.hasOwnProperty("fd")) { + if (value.end != void 0 && value.end != Infinity && value.start != void 0) { + callback(null, value.end + 1 - (value.start ? value.start : 0)); + } else { + fs.stat(value.path, function(err, stat) { + var fileSize; + if (err) { + callback(err); + return; + } + fileSize = stat.size - (value.start ? value.start : 0); + callback(null, fileSize); + }); + } + } else if (value.hasOwnProperty("httpVersion")) { + callback(null, +value.headers["content-length"]); + } else if (value.hasOwnProperty("httpModule")) { + value.on("response", function(response) { + value.pause(); + callback(null, +response.headers["content-length"]); + }); + value.resume(); + } else { + callback("Unknown stream"); + } + }; + FormData2.prototype._multiPartHeader = function(field, value, options2) { + if (typeof options2.header == "string") { + return options2.header; + } + var contentDisposition = this._getContentDisposition(value, options2); + var contentType = this._getContentType(value, options2); + var contents = ""; + var headers = { + // add custom disposition as third element or keep it two elements if not + "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []), + // if no content type. allow it to be empty array + "Content-Type": [].concat(contentType || []) + }; + if (typeof options2.header == "object") { + populate(headers, options2.header); + } + var header; + for (var prop in headers) { + if (!headers.hasOwnProperty(prop)) + continue; + header = headers[prop]; + if (header == null) { + continue; + } + if (!Array.isArray(header)) { + header = [header]; + } + if (header.length) { + contents += prop + ": " + header.join("; ") + FormData2.LINE_BREAK; + } + } + return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK; + }; + FormData2.prototype._getContentDisposition = function(value, options2) { + var filename, contentDisposition; + if (typeof options2.filepath === "string") { + filename = path2.normalize(options2.filepath).replace(/\\/g, "/"); + } else if (options2.filename || value.name || value.path) { + filename = path2.basename(options2.filename || value.name || value.path); + } else if (value.readable && value.hasOwnProperty("httpVersion")) { + filename = path2.basename(value.client._httpMessage.path || ""); + } + if (filename) { + contentDisposition = 'filename="' + filename + '"'; + } + return contentDisposition; + }; + FormData2.prototype._getContentType = function(value, options2) { + var contentType = options2.contentType; + if (!contentType && value.name) { + contentType = mime.lookup(value.name); + } + if (!contentType && value.path) { + contentType = mime.lookup(value.path); + } + if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) { + contentType = value.headers["content-type"]; + } + if (!contentType && (options2.filepath || options2.filename)) { + contentType = mime.lookup(options2.filepath || options2.filename); + } + if (!contentType && typeof value == "object") { + contentType = FormData2.DEFAULT_CONTENT_TYPE; + } + return contentType; + }; + FormData2.prototype._multiPartFooter = function() { + return function(next) { + var footer = FormData2.LINE_BREAK; + var lastPart = this._streams.length === 0; + if (lastPart) { + footer += this._lastBoundary(); + } + next(footer); + }.bind(this); + }; + FormData2.prototype._lastBoundary = function() { + return "--" + this.getBoundary() + "--" + FormData2.LINE_BREAK; + }; + FormData2.prototype.getHeaders = function(userHeaders) { + var header; + var formHeaders = { + "content-type": "multipart/form-data; boundary=" + this.getBoundary() + }; + for (header in userHeaders) { + if (userHeaders.hasOwnProperty(header)) { + formHeaders[header.toLowerCase()] = userHeaders[header]; + } + } + return formHeaders; + }; + FormData2.prototype.setBoundary = function(boundary) { + this._boundary = boundary; + }; + FormData2.prototype.getBoundary = function() { + if (!this._boundary) { + this._generateBoundary(); + } + return this._boundary; + }; + FormData2.prototype.getBuffer = function() { + var dataBuffer = new Buffer.alloc(0); + var boundary = this.getBoundary(); + for (var i3 = 0, len = this._streams.length; i3 < len; i3++) { + if (typeof this._streams[i3] !== "function") { + if (Buffer.isBuffer(this._streams[i3])) { + dataBuffer = Buffer.concat([dataBuffer, this._streams[i3]]); + } else { + dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i3])]); + } + if (typeof this._streams[i3] !== "string" || this._streams[i3].substring(2, boundary.length + 2) !== boundary) { + dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]); + } + } + } + return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]); + }; + FormData2.prototype._generateBoundary = function() { + var boundary = "--------------------------"; + for (var i3 = 0; i3 < 24; i3++) { + boundary += Math.floor(Math.random() * 10).toString(16); + } + this._boundary = boundary; + }; + FormData2.prototype.getLengthSync = function() { + var knownLength = this._overheadLength + this._valueLength; + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + if (!this.hasKnownLength()) { + this._error(new Error("Cannot calculate proper length in synchronous way.")); + } + return knownLength; + }; + FormData2.prototype.hasKnownLength = function() { + var hasKnownLength = true; + if (this._valuesToMeasure.length) { + hasKnownLength = false; + } + return hasKnownLength; + }; + FormData2.prototype.getLength = function(cb) { + var knownLength = this._overheadLength + this._valueLength; + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + if (!this._valuesToMeasure.length) { + process.nextTick(cb.bind(this, null, knownLength)); + return; + } + asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values3) { + if (err) { + cb(err); + return; + } + values3.forEach(function(length) { + knownLength += length; + }); + cb(null, knownLength); + }); + }; + FormData2.prototype.submit = function(params, cb) { + var request, options2, defaults2 = { method: "post" }; + if (typeof params == "string") { + params = parseUrl(params); + options2 = populate({ + port: params.port, + path: params.pathname, + host: params.hostname, + protocol: params.protocol + }, defaults2); + } else { + options2 = populate(params, defaults2); + if (!options2.port) { + options2.port = options2.protocol == "https:" ? 443 : 80; + } + } + options2.headers = this.getHeaders(params.headers); + if (options2.protocol == "https:") { + request = https.request(options2); + } else { + request = http.request(options2); + } + this.getLength(function(err, length) { + if (err && err !== "Unknown stream") { + this._error(err); + return; + } + if (length) { + request.setHeader("Content-Length", length); + } + this.pipe(request); + if (cb) { + var onResponse; + var callback = function(error, responce) { + request.removeListener("error", callback); + request.removeListener("response", onResponse); + return cb.call(this, error, responce); + }; + onResponse = callback.bind(this, null); + request.on("error", callback); + request.on("response", onResponse); + } + }.bind(this)); + return request; + }; + FormData2.prototype._error = function(err) { + if (!this.error) { + this.error = err; + this.pause(); + this.emit("error", err); + } + }; + FormData2.prototype.toString = function() { + return "[object FormData]"; + }; + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/configuration.js +var require_configuration = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/configuration.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.Configuration = void 0; + var packageJson = require_package(); + var Configuration3 = class { + constructor(param = {}) { + this.apiKey = param.apiKey; + this.organization = param.organization; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + if (!this.baseOptions) { + this.baseOptions = {}; + } + this.baseOptions.headers = Object.assign({ "User-Agent": `OpenAI/NodeJS/${packageJson.version}`, "Authorization": `Bearer ${this.apiKey}` }, this.baseOptions.headers); + if (this.organization) { + this.baseOptions.headers["OpenAI-Organization"] = this.organization; + } + if (!this.formDataCtor) { + this.formDataCtor = require_form_data(); + } + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + const jsonMime = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i"); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json"); + } + }; + exports2.Configuration = Configuration3; + } +}); + +// ../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/index.js +var require_dist3 = __commonJS({ + "../../.yarn/cache/openai-npm-3.3.0-62dcac56ba-bd57092163.zip/node_modules/openai/dist/index.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { + if (k22 === void 0) + k22 = k3; + Object.defineProperty(o3, k22, { enumerable: true, get: function() { + return m3[k3]; + } }); + } : function(o3, m3, k3, k22) { + if (k22 === void 0) + k22 = k3; + o3[k22] = m3[k3]; + }); + var __exportStar = exports2 && exports2.__exportStar || function(m3, exports3) { + for (var p3 in m3) + if (p3 !== "default" && !exports3.hasOwnProperty(p3)) + __createBinding(exports3, m3, p3); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + __exportStar(require_api(), exports2); + __exportStar(require_configuration(), exports2); + } +}); + +// ../../.yarn/cache/js-levenshtein-npm-1.1.6-ab883e61a3-b38c7ba1a7.zip/node_modules/js-levenshtein/index.js +var require_js_levenshtein = __commonJS({ + "../../.yarn/cache/js-levenshtein-npm-1.1.6-ab883e61a3-b38c7ba1a7.zip/node_modules/js-levenshtein/index.js"(exports2, module2) { + "use strict"; + module2.exports = function() { + function _min(d0, d1, d22, bx, ay) { + return d0 < d1 || d22 < d1 ? d0 > d22 ? d22 + 1 : d0 + 1 : bx === ay ? d1 : d1 + 1; + } + return function(a2, b3) { + if (a2 === b3) { + return 0; + } + if (a2.length > b3.length) { + var tmp = a2; + a2 = b3; + b3 = tmp; + } + var la = a2.length; + var lb = b3.length; + while (la > 0 && a2.charCodeAt(la - 1) === b3.charCodeAt(lb - 1)) { + la--; + lb--; + } + var offset = 0; + while (offset < la && a2.charCodeAt(offset) === b3.charCodeAt(offset)) { + offset++; + } + la -= offset; + lb -= offset; + if (la === 0 || lb < 3) { + return lb; + } + var x3 = 0; + var y3; + var d0; + var d1; + var d22; + var d3; + var dd; + var dy; + var ay; + var bx0; + var bx1; + var bx2; + var bx3; + var vector = []; + for (y3 = 0; y3 < la; y3++) { + vector.push(y3 + 1); + vector.push(a2.charCodeAt(offset + y3)); + } + var len = vector.length - 1; + for (; x3 < lb - 3; ) { + bx0 = b3.charCodeAt(offset + (d0 = x3)); + bx1 = b3.charCodeAt(offset + (d1 = x3 + 1)); + bx2 = b3.charCodeAt(offset + (d22 = x3 + 2)); + bx3 = b3.charCodeAt(offset + (d3 = x3 + 3)); + dd = x3 += 4; + for (y3 = 0; y3 < len; y3 += 2) { + dy = vector[y3]; + ay = vector[y3 + 1]; + d0 = _min(dy, d0, d1, bx0, ay); + d1 = _min(d0, d1, d22, bx1, ay); + d22 = _min(d1, d22, d3, bx2, ay); + dd = _min(d22, d3, dd, bx3, ay); + vector[y3] = dd; + d3 = d22; + d22 = d1; + d1 = d0; + d0 = dy; + } + } + for (; x3 < lb; ) { + bx0 = b3.charCodeAt(offset + (d0 = x3)); + dd = ++x3; + for (y3 = 0; y3 < len; y3 += 2) { + dy = vector[y3]; + vector[y3] = dd = _min(dy, d0, dd, bx0, vector[y3 + 1]); + d0 = dy; + } + } + return dd; + }; + }(); + } +}); + +// ../../.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9ca7fca184.zip/node_modules/balanced-match/index.js +var require_balanced_match = __commonJS({ + "../../.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9ca7fca184.zip/node_modules/balanced-match/index.js"(exports2, module2) { + "use strict"; + module2.exports = balanced; + function balanced(a2, b3, str2) { + if (a2 instanceof RegExp) + a2 = maybeMatch(a2, str2); + if (b3 instanceof RegExp) + b3 = maybeMatch(b3, str2); + var r3 = range2(a2, b3, str2); + return r3 && { + start: r3[0], + end: r3[1], + pre: str2.slice(0, r3[0]), + body: str2.slice(r3[0] + a2.length, r3[1]), + post: str2.slice(r3[1] + b3.length) + }; + } + function maybeMatch(reg, str2) { + var m3 = str2.match(reg); + return m3 ? m3[0] : null; + } + balanced.range = range2; + function range2(a2, b3, str2) { + var begs, beg, left2, right2, result; + var ai = str2.indexOf(a2); + var bi = str2.indexOf(b3, ai + 1); + var i3 = ai; + if (ai >= 0 && bi > 0) { + if (a2 === b3) { + return [ai, bi]; + } + begs = []; + left2 = str2.length; + while (i3 >= 0 && !result) { + if (i3 == ai) { + begs.push(i3); + ai = str2.indexOf(a2, i3 + 1); + } else if (begs.length == 1) { + result = [begs.pop(), bi]; + } else { + beg = begs.pop(); + if (beg < left2) { + left2 = beg; + right2 = bi; + } + bi = str2.indexOf(b3, i3 + 1); + } + i3 = ai < bi && ai >= 0 ? ai : bi; + } + if (begs.length) { + result = [left2, right2]; + } + } + return result; + } + } +}); + +// ../../.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-0f8d0d6a16.zip/node_modules/brace-expansion/index.js +var require_brace_expansion = __commonJS({ + "../../.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-0f8d0d6a16.zip/node_modules/brace-expansion/index.js"(exports2, module2) { + var balanced = require_balanced_match(); + module2.exports = expandTop; + var escSlash = "\0SLASH" + Math.random() + "\0"; + var escOpen = "\0OPEN" + Math.random() + "\0"; + var escClose = "\0CLOSE" + Math.random() + "\0"; + var escComma = "\0COMMA" + Math.random() + "\0"; + var escPeriod = "\0PERIOD" + Math.random() + "\0"; + function numeric(str2) { + return parseInt(str2, 10) == str2 ? parseInt(str2, 10) : str2.charCodeAt(0); + } + function escapeBraces(str2) { + return str2.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); + } + function unescapeBraces(str2) { + return str2.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); + } + function parseCommaParts(str2) { + if (!str2) + return [""]; + var parts = []; + var m3 = balanced("{", "}", str2); + if (!m3) + return str2.split(","); + var pre = m3.pre; + var body = m3.body; + var post = m3.post; + var p3 = pre.split(","); + p3[p3.length - 1] += "{" + body + "}"; + var postParts = parseCommaParts(post); + if (post.length) { + p3[p3.length - 1] += postParts.shift(); + p3.push.apply(p3, postParts); + } + parts.push.apply(parts, p3); + return parts; + } + function expandTop(str2) { + if (!str2) + return []; + if (str2.substr(0, 2) === "{}") { + str2 = "\\{\\}" + str2.substr(2); + } + return expand2(escapeBraces(str2), true).map(unescapeBraces); + } + function embrace(str2) { + return "{" + str2 + "}"; + } + function isPadded(el) { + return /^-?0\d/.test(el); + } + function lte(i3, y3) { + return i3 <= y3; + } + function gte(i3, y3) { + return i3 >= y3; + } + function expand2(str2, isTop) { + var expansions = []; + var m3 = balanced("{", "}", str2); + if (!m3) + return [str2]; + var pre = m3.pre; + var post = m3.post.length ? expand2(m3.post, false) : [""]; + if (/\$$/.test(m3.pre)) { + for (var k3 = 0; k3 < post.length; k3++) { + var expansion = pre + "{" + m3.body + "}" + post[k3]; + expansions.push(expansion); + } + } else { + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m3.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m3.body); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m3.body.indexOf(",") >= 0; + if (!isSequence && !isOptions) { + if (m3.post.match(/,.*\}/)) { + str2 = m3.pre + "{" + m3.body + escClose + m3.post; + return expand2(str2); + } + return [str2]; + } + var n3; + if (isSequence) { + n3 = m3.body.split(/\.\./); + } else { + n3 = parseCommaParts(m3.body); + if (n3.length === 1) { + n3 = expand2(n3[0], false).map(embrace); + if (n3.length === 1) { + return post.map(function(p3) { + return m3.pre + n3[0] + p3; + }); + } + } + } + var N3; + if (isSequence) { + var x3 = numeric(n3[0]); + var y3 = numeric(n3[1]); + var width = Math.max(n3[0].length, n3[1].length); + var incr = n3.length == 3 ? Math.abs(numeric(n3[2])) : 1; + var test = lte; + var reverse = y3 < x3; + if (reverse) { + incr *= -1; + test = gte; + } + var pad = n3.some(isPadded); + N3 = []; + for (var i3 = x3; test(i3, y3); i3 += incr) { + var c3; + if (isAlphaSequence) { + c3 = String.fromCharCode(i3); + if (c3 === "\\") + c3 = ""; + } else { + c3 = String(i3); + if (pad) { + var need = width - c3.length; + if (need > 0) { + var z2 = new Array(need + 1).join("0"); + if (i3 < 0) + c3 = "-" + z2 + c3.slice(1); + else + c3 = z2 + c3; + } + } + } + N3.push(c3); + } + } else { + N3 = []; + for (var j3 = 0; j3 < n3.length; j3++) { + N3.push.apply(N3, expand2(n3[j3], false)); + } + } + for (var j3 = 0; j3 < N3.length; j3++) { + for (var k3 = 0; k3 < post.length; k3++) { + var expansion = pre + N3[j3] + post[k3]; + if (!isTop || isSequence || expansion) + expansions.push(expansion); + } + } + } + return expansions; + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/stream.js +var require_stream = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/stream.js"(exports2, module2) { + "use strict"; + var { Duplex } = require("stream"); + function emitClose(stream) { + stream.emit("close"); + } + function duplexOnEnd() { + if (!this.destroyed && this._writableState.finished) { + this.destroy(); + } + } + function duplexOnError(err) { + this.removeListener("error", duplexOnError); + this.destroy(); + if (this.listenerCount("error") === 0) { + this.emit("error", err); + } + } + function createWebSocketStream2(ws, options2) { + let terminateOnDestroy = true; + const duplex = new Duplex({ + ...options2, + autoDestroy: false, + emitClose: false, + objectMode: false, + writableObjectMode: false + }); + ws.on("message", function message(msg, isBinary2) { + const data = !isBinary2 && duplex._readableState.objectMode ? msg.toString() : msg; + if (!duplex.push(data)) + ws.pause(); + }); + ws.once("error", function error(err) { + if (duplex.destroyed) + return; + terminateOnDestroy = false; + duplex.destroy(err); + }); + ws.once("close", function close() { + if (duplex.destroyed) + return; + duplex.push(null); + }); + duplex._destroy = function(err, callback) { + if (ws.readyState === ws.CLOSED) { + callback(err); + process.nextTick(emitClose, duplex); + return; + } + let called = false; + ws.once("error", function error(err2) { + called = true; + callback(err2); + }); + ws.once("close", function close() { + if (!called) + callback(err); + process.nextTick(emitClose, duplex); + }); + if (terminateOnDestroy) + ws.terminate(); + }; + duplex._final = function(callback) { + if (ws.readyState === ws.CONNECTING) { + ws.once("open", function open() { + duplex._final(callback); + }); + return; + } + if (ws._socket === null) + return; + if (ws._socket._writableState.finished) { + callback(); + if (duplex._readableState.endEmitted) + duplex.destroy(); + } else { + ws._socket.once("finish", function finish() { + callback(); + }); + ws.close(); + } + }; + duplex._read = function() { + if (ws.isPaused) + ws.resume(); + }; + duplex._write = function(chunk, encoding, callback) { + if (ws.readyState === ws.CONNECTING) { + ws.once("open", function open() { + duplex._write(chunk, encoding, callback); + }); + return; + } + ws.send(chunk, callback); + }; + duplex.on("end", duplexOnEnd); + duplex.on("error", duplexOnError); + return duplex; + } + module2.exports = createWebSocketStream2; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/constants.js +var require_constants = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/constants.js"(exports2, module2) { + "use strict"; + module2.exports = { + BINARY_TYPES: ["nodebuffer", "arraybuffer", "fragments"], + EMPTY_BUFFER: Buffer.alloc(0), + GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", + kForOnEventAttribute: Symbol("kIsForOnEventAttribute"), + kListener: Symbol("kListener"), + kStatusCode: Symbol("status-code"), + kWebSocket: Symbol("websocket"), + NOOP: () => { + } + }; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/buffer-util.js +var require_buffer_util = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/buffer-util.js"(exports2, module2) { + "use strict"; + var { EMPTY_BUFFER } = require_constants(); + var FastBuffer = Buffer[Symbol.species]; + function concat(list, totalLength) { + if (list.length === 0) + return EMPTY_BUFFER; + if (list.length === 1) + return list[0]; + const target = Buffer.allocUnsafe(totalLength); + let offset = 0; + for (let i3 = 0; i3 < list.length; i3++) { + const buf = list[i3]; + target.set(buf, offset); + offset += buf.length; + } + if (offset < totalLength) { + return new FastBuffer(target.buffer, target.byteOffset, offset); + } + return target; + } + function _mask(source, mask, output, offset, length) { + for (let i3 = 0; i3 < length; i3++) { + output[offset + i3] = source[i3] ^ mask[i3 & 3]; + } + } + function _unmask(buffer, mask) { + for (let i3 = 0; i3 < buffer.length; i3++) { + buffer[i3] ^= mask[i3 & 3]; + } + } + function toArrayBuffer(buf) { + if (buf.length === buf.buffer.byteLength) { + return buf.buffer; + } + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length); + } + function toBuffer(data) { + toBuffer.readOnly = true; + if (Buffer.isBuffer(data)) + return data; + let buf; + if (data instanceof ArrayBuffer) { + buf = new FastBuffer(data); + } else if (ArrayBuffer.isView(data)) { + buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength); + } else { + buf = Buffer.from(data); + toBuffer.readOnly = false; + } + return buf; + } + module2.exports = { + concat, + mask: _mask, + toArrayBuffer, + toBuffer, + unmask: _unmask + }; + if (!process.env.WS_NO_BUFFER_UTIL) { + try { + const bufferUtil = require("bufferutil"); + module2.exports.mask = function(source, mask, output, offset, length) { + if (length < 48) + _mask(source, mask, output, offset, length); + else + bufferUtil.mask(source, mask, output, offset, length); + }; + module2.exports.unmask = function(buffer, mask) { + if (buffer.length < 32) + _unmask(buffer, mask); + else + bufferUtil.unmask(buffer, mask); + }; + } catch (e3) { + } + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/limiter.js +var require_limiter = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/limiter.js"(exports2, module2) { + "use strict"; + var kDone = Symbol("kDone"); + var kRun = Symbol("kRun"); + var Limiter = class { + /** + * Creates a new `Limiter`. + * + * @param {Number} [concurrency=Infinity] The maximum number of jobs allowed + * to run concurrently + */ + constructor(concurrency) { + this[kDone] = () => { + this.pending--; + this[kRun](); + }; + this.concurrency = concurrency || Infinity; + this.jobs = []; + this.pending = 0; + } + /** + * Adds a job to the queue. + * + * @param {Function} job The job to run + * @public + */ + add(job) { + this.jobs.push(job); + this[kRun](); + } + /** + * Removes a job from the queue and runs it if possible. + * + * @private + */ + [kRun]() { + if (this.pending === this.concurrency) + return; + if (this.jobs.length) { + const job = this.jobs.shift(); + this.pending++; + job(this[kDone]); + } + } + }; + module2.exports = Limiter; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/permessage-deflate.js +var require_permessage_deflate = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/permessage-deflate.js"(exports2, module2) { + "use strict"; + var zlib = require("zlib"); + var bufferUtil = require_buffer_util(); + var Limiter = require_limiter(); + var { kStatusCode } = require_constants(); + var FastBuffer = Buffer[Symbol.species]; + var TRAILER = Buffer.from([0, 0, 255, 255]); + var kPerMessageDeflate = Symbol("permessage-deflate"); + var kTotalLength = Symbol("total-length"); + var kCallback = Symbol("callback"); + var kBuffers = Symbol("buffers"); + var kError = Symbol("error"); + var zlibLimiter; + var PerMessageDeflate = class { + /** + * Creates a PerMessageDeflate instance. + * + * @param {Object} [options] Configuration options + * @param {(Boolean|Number)} [options.clientMaxWindowBits] Advertise support + * for, or request, a custom client window size + * @param {Boolean} [options.clientNoContextTakeover=false] Advertise/ + * acknowledge disabling of client context takeover + * @param {Number} [options.concurrencyLimit=10] The number of concurrent + * calls to zlib + * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the + * use of a custom server window size + * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept + * disabling of server context takeover + * @param {Number} [options.threshold=1024] Size (in bytes) below which + * messages should not be compressed if context takeover is disabled + * @param {Object} [options.zlibDeflateOptions] Options to pass to zlib on + * deflate + * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on + * inflate + * @param {Boolean} [isServer=false] Create the instance in either server or + * client mode + * @param {Number} [maxPayload=0] The maximum allowed message length + */ + constructor(options2, isServer, maxPayload) { + this._maxPayload = maxPayload | 0; + this._options = options2 || {}; + this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024; + this._isServer = !!isServer; + this._deflate = null; + this._inflate = null; + this.params = null; + if (!zlibLimiter) { + const concurrency = this._options.concurrencyLimit !== void 0 ? this._options.concurrencyLimit : 10; + zlibLimiter = new Limiter(concurrency); + } + } + /** + * @type {String} + */ + static get extensionName() { + return "permessage-deflate"; + } + /** + * Create an extension negotiation offer. + * + * @return {Object} Extension parameters + * @public + */ + offer() { + const params = {}; + if (this._options.serverNoContextTakeover) { + params.server_no_context_takeover = true; + } + if (this._options.clientNoContextTakeover) { + params.client_no_context_takeover = true; + } + if (this._options.serverMaxWindowBits) { + params.server_max_window_bits = this._options.serverMaxWindowBits; + } + if (this._options.clientMaxWindowBits) { + params.client_max_window_bits = this._options.clientMaxWindowBits; + } else if (this._options.clientMaxWindowBits == null) { + params.client_max_window_bits = true; + } + return params; + } + /** + * Accept an extension negotiation offer/response. + * + * @param {Array} configurations The extension negotiation offers/reponse + * @return {Object} Accepted configuration + * @public + */ + accept(configurations) { + configurations = this.normalizeParams(configurations); + this.params = this._isServer ? this.acceptAsServer(configurations) : this.acceptAsClient(configurations); + return this.params; + } + /** + * Releases all resources used by the extension. + * + * @public + */ + cleanup() { + if (this._inflate) { + this._inflate.close(); + this._inflate = null; + } + if (this._deflate) { + const callback = this._deflate[kCallback]; + this._deflate.close(); + this._deflate = null; + if (callback) { + callback( + new Error( + "The deflate stream was closed while data was being processed" + ) + ); + } + } + } + /** + * Accept an extension negotiation offer. + * + * @param {Array} offers The extension negotiation offers + * @return {Object} Accepted configuration + * @private + */ + acceptAsServer(offers) { + const opts = this._options; + const accepted = offers.find((params) => { + if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && !params.client_max_window_bits) { + return false; + } + return true; + }); + if (!accepted) { + throw new Error("None of the extension offers can be accepted"); + } + if (opts.serverNoContextTakeover) { + accepted.server_no_context_takeover = true; + } + if (opts.clientNoContextTakeover) { + accepted.client_no_context_takeover = true; + } + if (typeof opts.serverMaxWindowBits === "number") { + accepted.server_max_window_bits = opts.serverMaxWindowBits; + } + if (typeof opts.clientMaxWindowBits === "number") { + accepted.client_max_window_bits = opts.clientMaxWindowBits; + } else if (accepted.client_max_window_bits === true || opts.clientMaxWindowBits === false) { + delete accepted.client_max_window_bits; + } + return accepted; + } + /** + * Accept the extension negotiation response. + * + * @param {Array} response The extension negotiation response + * @return {Object} Accepted configuration + * @private + */ + acceptAsClient(response) { + const params = response[0]; + if (this._options.clientNoContextTakeover === false && params.client_no_context_takeover) { + throw new Error('Unexpected parameter "client_no_context_takeover"'); + } + if (!params.client_max_window_bits) { + if (typeof this._options.clientMaxWindowBits === "number") { + params.client_max_window_bits = this._options.clientMaxWindowBits; + } + } else if (this._options.clientMaxWindowBits === false || typeof this._options.clientMaxWindowBits === "number" && params.client_max_window_bits > this._options.clientMaxWindowBits) { + throw new Error( + 'Unexpected or invalid parameter "client_max_window_bits"' + ); + } + return params; + } + /** + * Normalize parameters. + * + * @param {Array} configurations The extension negotiation offers/reponse + * @return {Array} The offers/response with normalized parameters + * @private + */ + normalizeParams(configurations) { + configurations.forEach((params) => { + Object.keys(params).forEach((key) => { + let value = params[key]; + if (value.length > 1) { + throw new Error(`Parameter "${key}" must have only a single value`); + } + value = value[0]; + if (key === "client_max_window_bits") { + if (value !== true) { + const num = +value; + if (!Number.isInteger(num) || num < 8 || num > 15) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + value = num; + } else if (!this._isServer) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + } else if (key === "server_max_window_bits") { + const num = +value; + if (!Number.isInteger(num) || num < 8 || num > 15) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + value = num; + } else if (key === "client_no_context_takeover" || key === "server_no_context_takeover") { + if (value !== true) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + } else { + throw new Error(`Unknown parameter "${key}"`); + } + params[key] = value; + }); + }); + return configurations; + } + /** + * Decompress data. Concurrency limited. + * + * @param {Buffer} data Compressed data + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @public + */ + decompress(data, fin, callback) { + zlibLimiter.add((done) => { + this._decompress(data, fin, (err, result) => { + done(); + callback(err, result); + }); + }); + } + /** + * Compress data. Concurrency limited. + * + * @param {(Buffer|String)} data Data to compress + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @public + */ + compress(data, fin, callback) { + zlibLimiter.add((done) => { + this._compress(data, fin, (err, result) => { + done(); + callback(err, result); + }); + }); + } + /** + * Decompress data. + * + * @param {Buffer} data Compressed data + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @private + */ + _decompress(data, fin, callback) { + const endpoint = this._isServer ? "client" : "server"; + if (!this._inflate) { + const key = `${endpoint}_max_window_bits`; + const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key]; + this._inflate = zlib.createInflateRaw({ + ...this._options.zlibInflateOptions, + windowBits + }); + this._inflate[kPerMessageDeflate] = this; + this._inflate[kTotalLength] = 0; + this._inflate[kBuffers] = []; + this._inflate.on("error", inflateOnError); + this._inflate.on("data", inflateOnData); + } + this._inflate[kCallback] = callback; + this._inflate.write(data); + if (fin) + this._inflate.write(TRAILER); + this._inflate.flush(() => { + const err = this._inflate[kError]; + if (err) { + this._inflate.close(); + this._inflate = null; + callback(err); + return; + } + const data2 = bufferUtil.concat( + this._inflate[kBuffers], + this._inflate[kTotalLength] + ); + if (this._inflate._readableState.endEmitted) { + this._inflate.close(); + this._inflate = null; + } else { + this._inflate[kTotalLength] = 0; + this._inflate[kBuffers] = []; + if (fin && this.params[`${endpoint}_no_context_takeover`]) { + this._inflate.reset(); + } + } + callback(null, data2); + }); + } + /** + * Compress data. + * + * @param {(Buffer|String)} data Data to compress + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @private + */ + _compress(data, fin, callback) { + const endpoint = this._isServer ? "server" : "client"; + if (!this._deflate) { + const key = `${endpoint}_max_window_bits`; + const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key]; + this._deflate = zlib.createDeflateRaw({ + ...this._options.zlibDeflateOptions, + windowBits + }); + this._deflate[kTotalLength] = 0; + this._deflate[kBuffers] = []; + this._deflate.on("data", deflateOnData); + } + this._deflate[kCallback] = callback; + this._deflate.write(data); + this._deflate.flush(zlib.Z_SYNC_FLUSH, () => { + if (!this._deflate) { + return; + } + let data2 = bufferUtil.concat( + this._deflate[kBuffers], + this._deflate[kTotalLength] + ); + if (fin) { + data2 = new FastBuffer(data2.buffer, data2.byteOffset, data2.length - 4); + } + this._deflate[kCallback] = null; + this._deflate[kTotalLength] = 0; + this._deflate[kBuffers] = []; + if (fin && this.params[`${endpoint}_no_context_takeover`]) { + this._deflate.reset(); + } + callback(null, data2); + }); + } + }; + module2.exports = PerMessageDeflate; + function deflateOnData(chunk) { + this[kBuffers].push(chunk); + this[kTotalLength] += chunk.length; + } + function inflateOnData(chunk) { + this[kTotalLength] += chunk.length; + if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) { + this[kBuffers].push(chunk); + return; + } + this[kError] = new RangeError("Max payload size exceeded"); + this[kError].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"; + this[kError][kStatusCode] = 1009; + this.removeListener("data", inflateOnData); + this.reset(); + } + function inflateOnError(err) { + this[kPerMessageDeflate]._inflate = null; + err[kStatusCode] = 1007; + this[kCallback](err); + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/validation.js +var require_validation = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/validation.js"(exports2, module2) { + "use strict"; + var { isUtf8 } = require("buffer"); + var tokenChars = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + // 0 - 15 + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + // 16 - 31 + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + // 32 - 47 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + // 48 - 63 + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + // 64 - 79 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + // 80 - 95 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + // 96 - 111 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0 + // 112 - 127 + ]; + function isValidStatusCode(code) { + return code >= 1e3 && code <= 1014 && code !== 1004 && code !== 1005 && code !== 1006 || code >= 3e3 && code <= 4999; + } + function _isValidUTF8(buf) { + const len = buf.length; + let i3 = 0; + while (i3 < len) { + if ((buf[i3] & 128) === 0) { + i3++; + } else if ((buf[i3] & 224) === 192) { + if (i3 + 1 === len || (buf[i3 + 1] & 192) !== 128 || (buf[i3] & 254) === 192) { + return false; + } + i3 += 2; + } else if ((buf[i3] & 240) === 224) { + if (i3 + 2 >= len || (buf[i3 + 1] & 192) !== 128 || (buf[i3 + 2] & 192) !== 128 || buf[i3] === 224 && (buf[i3 + 1] & 224) === 128 || // Overlong + buf[i3] === 237 && (buf[i3 + 1] & 224) === 160) { + return false; + } + i3 += 3; + } else if ((buf[i3] & 248) === 240) { + if (i3 + 3 >= len || (buf[i3 + 1] & 192) !== 128 || (buf[i3 + 2] & 192) !== 128 || (buf[i3 + 3] & 192) !== 128 || buf[i3] === 240 && (buf[i3 + 1] & 240) === 128 || // Overlong + buf[i3] === 244 && buf[i3 + 1] > 143 || buf[i3] > 244) { + return false; + } + i3 += 4; + } else { + return false; + } + } + return true; + } + module2.exports = { + isValidStatusCode, + isValidUTF8: _isValidUTF8, + tokenChars + }; + if (isUtf8) { + module2.exports.isValidUTF8 = function(buf) { + return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf); + }; + } else if (!process.env.WS_NO_UTF_8_VALIDATE) { + try { + const isValidUTF8 = require("utf-8-validate"); + module2.exports.isValidUTF8 = function(buf) { + return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf); + }; + } catch (e3) { + } + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/receiver.js +var require_receiver = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/receiver.js"(exports2, module2) { + "use strict"; + var { Writable } = require("stream"); + var PerMessageDeflate = require_permessage_deflate(); + var { + BINARY_TYPES, + EMPTY_BUFFER, + kStatusCode, + kWebSocket + } = require_constants(); + var { concat, toArrayBuffer, unmask } = require_buffer_util(); + var { isValidStatusCode, isValidUTF8 } = require_validation(); + var FastBuffer = Buffer[Symbol.species]; + var GET_INFO = 0; + var GET_PAYLOAD_LENGTH_16 = 1; + var GET_PAYLOAD_LENGTH_64 = 2; + var GET_MASK = 3; + var GET_DATA = 4; + var INFLATING = 5; + var Receiver2 = class extends Writable { + /** + * Creates a Receiver instance. + * + * @param {Object} [options] Options object + * @param {String} [options.binaryType=nodebuffer] The type for binary data + * @param {Object} [options.extensions] An object containing the negotiated + * extensions + * @param {Boolean} [options.isServer=false] Specifies whether to operate in + * client or server mode + * @param {Number} [options.maxPayload=0] The maximum allowed message length + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + */ + constructor(options2 = {}) { + super(); + this._binaryType = options2.binaryType || BINARY_TYPES[0]; + this._extensions = options2.extensions || {}; + this._isServer = !!options2.isServer; + this._maxPayload = options2.maxPayload | 0; + this._skipUTF8Validation = !!options2.skipUTF8Validation; + this[kWebSocket] = void 0; + this._bufferedBytes = 0; + this._buffers = []; + this._compressed = false; + this._payloadLength = 0; + this._mask = void 0; + this._fragmented = 0; + this._masked = false; + this._fin = false; + this._opcode = 0; + this._totalPayloadLength = 0; + this._messageLength = 0; + this._fragments = []; + this._state = GET_INFO; + this._loop = false; + } + /** + * Implements `Writable.prototype._write()`. + * + * @param {Buffer} chunk The chunk of data to write + * @param {String} encoding The character encoding of `chunk` + * @param {Function} cb Callback + * @private + */ + _write(chunk, encoding, cb) { + if (this._opcode === 8 && this._state == GET_INFO) + return cb(); + this._bufferedBytes += chunk.length; + this._buffers.push(chunk); + this.startLoop(cb); + } + /** + * Consumes `n` bytes from the buffered data. + * + * @param {Number} n The number of bytes to consume + * @return {Buffer} The consumed bytes + * @private + */ + consume(n3) { + this._bufferedBytes -= n3; + if (n3 === this._buffers[0].length) + return this._buffers.shift(); + if (n3 < this._buffers[0].length) { + const buf = this._buffers[0]; + this._buffers[0] = new FastBuffer( + buf.buffer, + buf.byteOffset + n3, + buf.length - n3 + ); + return new FastBuffer(buf.buffer, buf.byteOffset, n3); + } + const dst = Buffer.allocUnsafe(n3); + do { + const buf = this._buffers[0]; + const offset = dst.length - n3; + if (n3 >= buf.length) { + dst.set(this._buffers.shift(), offset); + } else { + dst.set(new Uint8Array(buf.buffer, buf.byteOffset, n3), offset); + this._buffers[0] = new FastBuffer( + buf.buffer, + buf.byteOffset + n3, + buf.length - n3 + ); + } + n3 -= buf.length; + } while (n3 > 0); + return dst; + } + /** + * Starts the parsing loop. + * + * @param {Function} cb Callback + * @private + */ + startLoop(cb) { + let err; + this._loop = true; + do { + switch (this._state) { + case GET_INFO: + err = this.getInfo(); + break; + case GET_PAYLOAD_LENGTH_16: + err = this.getPayloadLength16(); + break; + case GET_PAYLOAD_LENGTH_64: + err = this.getPayloadLength64(); + break; + case GET_MASK: + this.getMask(); + break; + case GET_DATA: + err = this.getData(cb); + break; + default: + this._loop = false; + return; + } + } while (this._loop); + cb(err); + } + /** + * Reads the first two bytes of a frame. + * + * @return {(RangeError|undefined)} A possible error + * @private + */ + getInfo() { + if (this._bufferedBytes < 2) { + this._loop = false; + return; + } + const buf = this.consume(2); + if ((buf[0] & 48) !== 0) { + this._loop = false; + return error( + RangeError, + "RSV2 and RSV3 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_2_3" + ); + } + const compressed = (buf[0] & 64) === 64; + if (compressed && !this._extensions[PerMessageDeflate.extensionName]) { + this._loop = false; + return error( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + } + this._fin = (buf[0] & 128) === 128; + this._opcode = buf[0] & 15; + this._payloadLength = buf[1] & 127; + if (this._opcode === 0) { + if (compressed) { + this._loop = false; + return error( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + } + if (!this._fragmented) { + this._loop = false; + return error( + RangeError, + "invalid opcode 0", + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + } + this._opcode = this._fragmented; + } else if (this._opcode === 1 || this._opcode === 2) { + if (this._fragmented) { + this._loop = false; + return error( + RangeError, + `invalid opcode ${this._opcode}`, + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + } + this._compressed = compressed; + } else if (this._opcode > 7 && this._opcode < 11) { + if (!this._fin) { + this._loop = false; + return error( + RangeError, + "FIN must be set", + true, + 1002, + "WS_ERR_EXPECTED_FIN" + ); + } + if (compressed) { + this._loop = false; + return error( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + } + if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1) { + this._loop = false; + return error( + RangeError, + `invalid payload length ${this._payloadLength}`, + true, + 1002, + "WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH" + ); + } + } else { + this._loop = false; + return error( + RangeError, + `invalid opcode ${this._opcode}`, + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + } + if (!this._fin && !this._fragmented) + this._fragmented = this._opcode; + this._masked = (buf[1] & 128) === 128; + if (this._isServer) { + if (!this._masked) { + this._loop = false; + return error( + RangeError, + "MASK must be set", + true, + 1002, + "WS_ERR_EXPECTED_MASK" + ); + } + } else if (this._masked) { + this._loop = false; + return error( + RangeError, + "MASK must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_MASK" + ); + } + if (this._payloadLength === 126) + this._state = GET_PAYLOAD_LENGTH_16; + else if (this._payloadLength === 127) + this._state = GET_PAYLOAD_LENGTH_64; + else + return this.haveLength(); + } + /** + * Gets extended payload length (7+16). + * + * @return {(RangeError|undefined)} A possible error + * @private + */ + getPayloadLength16() { + if (this._bufferedBytes < 2) { + this._loop = false; + return; + } + this._payloadLength = this.consume(2).readUInt16BE(0); + return this.haveLength(); + } + /** + * Gets extended payload length (7+64). + * + * @return {(RangeError|undefined)} A possible error + * @private + */ + getPayloadLength64() { + if (this._bufferedBytes < 8) { + this._loop = false; + return; + } + const buf = this.consume(8); + const num = buf.readUInt32BE(0); + if (num > Math.pow(2, 53 - 32) - 1) { + this._loop = false; + return error( + RangeError, + "Unsupported WebSocket frame: payload length > 2^53 - 1", + false, + 1009, + "WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH" + ); + } + this._payloadLength = num * Math.pow(2, 32) + buf.readUInt32BE(4); + return this.haveLength(); + } + /** + * Payload length has been read. + * + * @return {(RangeError|undefined)} A possible error + * @private + */ + haveLength() { + if (this._payloadLength && this._opcode < 8) { + this._totalPayloadLength += this._payloadLength; + if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) { + this._loop = false; + return error( + RangeError, + "Max payload size exceeded", + false, + 1009, + "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH" + ); + } + } + if (this._masked) + this._state = GET_MASK; + else + this._state = GET_DATA; + } + /** + * Reads mask bytes. + * + * @private + */ + getMask() { + if (this._bufferedBytes < 4) { + this._loop = false; + return; + } + this._mask = this.consume(4); + this._state = GET_DATA; + } + /** + * Reads data bytes. + * + * @param {Function} cb Callback + * @return {(Error|RangeError|undefined)} A possible error + * @private + */ + getData(cb) { + let data = EMPTY_BUFFER; + if (this._payloadLength) { + if (this._bufferedBytes < this._payloadLength) { + this._loop = false; + return; + } + data = this.consume(this._payloadLength); + if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) { + unmask(data, this._mask); + } + } + if (this._opcode > 7) + return this.controlMessage(data); + if (this._compressed) { + this._state = INFLATING; + this.decompress(data, cb); + return; + } + if (data.length) { + this._messageLength = this._totalPayloadLength; + this._fragments.push(data); + } + return this.dataMessage(); + } + /** + * Decompresses data. + * + * @param {Buffer} data Compressed data + * @param {Function} cb Callback + * @private + */ + decompress(data, cb) { + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + perMessageDeflate.decompress(data, this._fin, (err, buf) => { + if (err) + return cb(err); + if (buf.length) { + this._messageLength += buf.length; + if (this._messageLength > this._maxPayload && this._maxPayload > 0) { + return cb( + error( + RangeError, + "Max payload size exceeded", + false, + 1009, + "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH" + ) + ); + } + this._fragments.push(buf); + } + const er = this.dataMessage(); + if (er) + return cb(er); + this.startLoop(cb); + }); + } + /** + * Handles a data message. + * + * @return {(Error|undefined)} A possible error + * @private + */ + dataMessage() { + if (this._fin) { + const messageLength = this._messageLength; + const fragments = this._fragments; + this._totalPayloadLength = 0; + this._messageLength = 0; + this._fragmented = 0; + this._fragments = []; + if (this._opcode === 2) { + let data; + if (this._binaryType === "nodebuffer") { + data = concat(fragments, messageLength); + } else if (this._binaryType === "arraybuffer") { + data = toArrayBuffer(concat(fragments, messageLength)); + } else { + data = fragments; + } + this.emit("message", data, true); + } else { + const buf = concat(fragments, messageLength); + if (!this._skipUTF8Validation && !isValidUTF8(buf)) { + this._loop = false; + return error( + Error, + "invalid UTF-8 sequence", + true, + 1007, + "WS_ERR_INVALID_UTF8" + ); + } + this.emit("message", buf, false); + } + } + this._state = GET_INFO; + } + /** + * Handles a control message. + * + * @param {Buffer} data Data to handle + * @return {(Error|RangeError|undefined)} A possible error + * @private + */ + controlMessage(data) { + if (this._opcode === 8) { + this._loop = false; + if (data.length === 0) { + this.emit("conclude", 1005, EMPTY_BUFFER); + this.end(); + } else { + const code = data.readUInt16BE(0); + if (!isValidStatusCode(code)) { + return error( + RangeError, + `invalid status code ${code}`, + true, + 1002, + "WS_ERR_INVALID_CLOSE_CODE" + ); + } + const buf = new FastBuffer( + data.buffer, + data.byteOffset + 2, + data.length - 2 + ); + if (!this._skipUTF8Validation && !isValidUTF8(buf)) { + return error( + Error, + "invalid UTF-8 sequence", + true, + 1007, + "WS_ERR_INVALID_UTF8" + ); + } + this.emit("conclude", code, buf); + this.end(); + } + } else if (this._opcode === 9) { + this.emit("ping", data); + } else { + this.emit("pong", data); + } + this._state = GET_INFO; + } + }; + module2.exports = Receiver2; + function error(ErrorCtor, message, prefix, statusCode, errorCode) { + const err = new ErrorCtor( + prefix ? `Invalid WebSocket frame: ${message}` : message + ); + Error.captureStackTrace(err, error); + err.code = errorCode; + err[kStatusCode] = statusCode; + return err; + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/sender.js +var require_sender = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/sender.js"(exports2, module2) { + "use strict"; + var net = require("net"); + var tls = require("tls"); + var { randomFillSync } = require("crypto"); + var PerMessageDeflate = require_permessage_deflate(); + var { EMPTY_BUFFER } = require_constants(); + var { isValidStatusCode } = require_validation(); + var { mask: applyMask, toBuffer } = require_buffer_util(); + var kByteLength = Symbol("kByteLength"); + var maskBuffer = Buffer.alloc(4); + var Sender2 = class _Sender { + /** + * Creates a Sender instance. + * + * @param {(net.Socket|tls.Socket)} socket The connection socket + * @param {Object} [extensions] An object containing the negotiated extensions + * @param {Function} [generateMask] The function used to generate the masking + * key + */ + constructor(socket, extensions, generateMask) { + this._extensions = extensions || {}; + if (generateMask) { + this._generateMask = generateMask; + this._maskBuffer = Buffer.alloc(4); + } + this._socket = socket; + this._firstFragment = true; + this._compress = false; + this._bufferedBytes = 0; + this._deflating = false; + this._queue = []; + } + /** + * Frames a piece of data according to the HyBi WebSocket protocol. + * + * @param {(Buffer|String)} data The data to frame + * @param {Object} options Options object + * @param {Boolean} [options.fin=false] Specifies whether or not to set the + * FIN bit + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Buffer} [options.maskBuffer] The buffer used to store the masking + * key + * @param {Number} options.opcode The opcode + * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be + * modified + * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the + * RSV1 bit + * @return {(Buffer|String)[]} The framed data + * @public + */ + static frame(data, options2) { + let mask; + let merge3 = false; + let offset = 2; + let skipMasking = false; + if (options2.mask) { + mask = options2.maskBuffer || maskBuffer; + if (options2.generateMask) { + options2.generateMask(mask); + } else { + randomFillSync(mask, 0, 4); + } + skipMasking = (mask[0] | mask[1] | mask[2] | mask[3]) === 0; + offset = 6; + } + let dataLength; + if (typeof data === "string") { + if ((!options2.mask || skipMasking) && options2[kByteLength] !== void 0) { + dataLength = options2[kByteLength]; + } else { + data = Buffer.from(data); + dataLength = data.length; + } + } else { + dataLength = data.length; + merge3 = options2.mask && options2.readOnly && !skipMasking; + } + let payloadLength = dataLength; + if (dataLength >= 65536) { + offset += 8; + payloadLength = 127; + } else if (dataLength > 125) { + offset += 2; + payloadLength = 126; + } + const target = Buffer.allocUnsafe(merge3 ? dataLength + offset : offset); + target[0] = options2.fin ? options2.opcode | 128 : options2.opcode; + if (options2.rsv1) + target[0] |= 64; + target[1] = payloadLength; + if (payloadLength === 126) { + target.writeUInt16BE(dataLength, 2); + } else if (payloadLength === 127) { + target[2] = target[3] = 0; + target.writeUIntBE(dataLength, 4, 6); + } + if (!options2.mask) + return [target, data]; + target[1] |= 128; + target[offset - 4] = mask[0]; + target[offset - 3] = mask[1]; + target[offset - 2] = mask[2]; + target[offset - 1] = mask[3]; + if (skipMasking) + return [target, data]; + if (merge3) { + applyMask(data, mask, target, offset, dataLength); + return [target]; + } + applyMask(data, mask, data, 0, dataLength); + return [target, data]; + } + /** + * Sends a close message to the other peer. + * + * @param {Number} [code] The status code component of the body + * @param {(String|Buffer)} [data] The message component of the body + * @param {Boolean} [mask=false] Specifies whether or not to mask the message + * @param {Function} [cb] Callback + * @public + */ + close(code, data, mask, cb) { + let buf; + if (code === void 0) { + buf = EMPTY_BUFFER; + } else if (typeof code !== "number" || !isValidStatusCode(code)) { + throw new TypeError("First argument must be a valid error code number"); + } else if (data === void 0 || !data.length) { + buf = Buffer.allocUnsafe(2); + buf.writeUInt16BE(code, 0); + } else { + const length = Buffer.byteLength(data); + if (length > 123) { + throw new RangeError("The message must not be greater than 123 bytes"); + } + buf = Buffer.allocUnsafe(2 + length); + buf.writeUInt16BE(code, 0); + if (typeof data === "string") { + buf.write(data, 2); + } else { + buf.set(data, 2); + } + } + const options2 = { + [kByteLength]: buf.length, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 8, + readOnly: false, + rsv1: false + }; + if (this._deflating) { + this.enqueue([this.dispatch, buf, false, options2, cb]); + } else { + this.sendFrame(_Sender.frame(buf, options2), cb); + } + } + /** + * Sends a ping message to the other peer. + * + * @param {*} data The message to send + * @param {Boolean} [mask=false] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback + * @public + */ + ping(data, mask, cb) { + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (byteLength > 125) { + throw new RangeError("The data size must not be greater than 125 bytes"); + } + const options2 = { + [kByteLength]: byteLength, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 9, + readOnly, + rsv1: false + }; + if (this._deflating) { + this.enqueue([this.dispatch, data, false, options2, cb]); + } else { + this.sendFrame(_Sender.frame(data, options2), cb); + } + } + /** + * Sends a pong message to the other peer. + * + * @param {*} data The message to send + * @param {Boolean} [mask=false] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback + * @public + */ + pong(data, mask, cb) { + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (byteLength > 125) { + throw new RangeError("The data size must not be greater than 125 bytes"); + } + const options2 = { + [kByteLength]: byteLength, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 10, + readOnly, + rsv1: false + }; + if (this._deflating) { + this.enqueue([this.dispatch, data, false, options2, cb]); + } else { + this.sendFrame(_Sender.frame(data, options2), cb); + } + } + /** + * Sends a data message to the other peer. + * + * @param {*} data The message to send + * @param {Object} options Options object + * @param {Boolean} [options.binary=false] Specifies whether `data` is binary + * or text + * @param {Boolean} [options.compress=false] Specifies whether or not to + * compress `data` + * @param {Boolean} [options.fin=false] Specifies whether the fragment is the + * last one + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Function} [cb] Callback + * @public + */ + send(data, options2, cb) { + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + let opcode = options2.binary ? 2 : 1; + let rsv1 = options2.compress; + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (this._firstFragment) { + this._firstFragment = false; + if (rsv1 && perMessageDeflate && perMessageDeflate.params[perMessageDeflate._isServer ? "server_no_context_takeover" : "client_no_context_takeover"]) { + rsv1 = byteLength >= perMessageDeflate._threshold; + } + this._compress = rsv1; + } else { + rsv1 = false; + opcode = 0; + } + if (options2.fin) + this._firstFragment = true; + if (perMessageDeflate) { + const opts = { + [kByteLength]: byteLength, + fin: options2.fin, + generateMask: this._generateMask, + mask: options2.mask, + maskBuffer: this._maskBuffer, + opcode, + readOnly, + rsv1 + }; + if (this._deflating) { + this.enqueue([this.dispatch, data, this._compress, opts, cb]); + } else { + this.dispatch(data, this._compress, opts, cb); + } + } else { + this.sendFrame( + _Sender.frame(data, { + [kByteLength]: byteLength, + fin: options2.fin, + generateMask: this._generateMask, + mask: options2.mask, + maskBuffer: this._maskBuffer, + opcode, + readOnly, + rsv1: false + }), + cb + ); + } + } + /** + * Dispatches a message. + * + * @param {(Buffer|String)} data The message to send + * @param {Boolean} [compress=false] Specifies whether or not to compress + * `data` + * @param {Object} options Options object + * @param {Boolean} [options.fin=false] Specifies whether or not to set the + * FIN bit + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Buffer} [options.maskBuffer] The buffer used to store the masking + * key + * @param {Number} options.opcode The opcode + * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be + * modified + * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the + * RSV1 bit + * @param {Function} [cb] Callback + * @private + */ + dispatch(data, compress, options2, cb) { + if (!compress) { + this.sendFrame(_Sender.frame(data, options2), cb); + return; + } + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + this._bufferedBytes += options2[kByteLength]; + this._deflating = true; + perMessageDeflate.compress(data, options2.fin, (_2, buf) => { + if (this._socket.destroyed) { + const err = new Error( + "The socket was closed while data was being compressed" + ); + if (typeof cb === "function") + cb(err); + for (let i3 = 0; i3 < this._queue.length; i3++) { + const params = this._queue[i3]; + const callback = params[params.length - 1]; + if (typeof callback === "function") + callback(err); + } + return; + } + this._bufferedBytes -= options2[kByteLength]; + this._deflating = false; + options2.readOnly = false; + this.sendFrame(_Sender.frame(buf, options2), cb); + this.dequeue(); + }); + } + /** + * Executes queued send operations. + * + * @private + */ + dequeue() { + while (!this._deflating && this._queue.length) { + const params = this._queue.shift(); + this._bufferedBytes -= params[3][kByteLength]; + Reflect.apply(params[0], this, params.slice(1)); + } + } + /** + * Enqueues a send operation. + * + * @param {Array} params Send operation parameters. + * @private + */ + enqueue(params) { + this._bufferedBytes += params[3][kByteLength]; + this._queue.push(params); + } + /** + * Sends a frame. + * + * @param {Buffer[]} list The frame to send + * @param {Function} [cb] Callback + * @private + */ + sendFrame(list, cb) { + if (list.length === 2) { + this._socket.cork(); + this._socket.write(list[0]); + this._socket.write(list[1], cb); + this._socket.uncork(); + } else { + this._socket.write(list[0], cb); + } + } + }; + module2.exports = Sender2; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/event-target.js +var require_event_target = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/event-target.js"(exports2, module2) { + "use strict"; + var { kForOnEventAttribute, kListener } = require_constants(); + var kCode = Symbol("kCode"); + var kData = Symbol("kData"); + var kError = Symbol("kError"); + var kMessage = Symbol("kMessage"); + var kReason = Symbol("kReason"); + var kTarget = Symbol("kTarget"); + var kType = Symbol("kType"); + var kWasClean = Symbol("kWasClean"); + var Event = class { + /** + * Create a new `Event`. + * + * @param {String} type The name of the event + * @throws {TypeError} If the `type` argument is not specified + */ + constructor(type2) { + this[kTarget] = null; + this[kType] = type2; + } + /** + * @type {*} + */ + get target() { + return this[kTarget]; + } + /** + * @type {String} + */ + get type() { + return this[kType]; + } + }; + Object.defineProperty(Event.prototype, "target", { enumerable: true }); + Object.defineProperty(Event.prototype, "type", { enumerable: true }); + var CloseEvent = class extends Event { + /** + * Create a new `CloseEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {Number} [options.code=0] The status code explaining why the + * connection was closed + * @param {String} [options.reason=''] A human-readable string explaining why + * the connection was closed + * @param {Boolean} [options.wasClean=false] Indicates whether or not the + * connection was cleanly closed + */ + constructor(type2, options2 = {}) { + super(type2); + this[kCode] = options2.code === void 0 ? 0 : options2.code; + this[kReason] = options2.reason === void 0 ? "" : options2.reason; + this[kWasClean] = options2.wasClean === void 0 ? false : options2.wasClean; + } + /** + * @type {Number} + */ + get code() { + return this[kCode]; + } + /** + * @type {String} + */ + get reason() { + return this[kReason]; + } + /** + * @type {Boolean} + */ + get wasClean() { + return this[kWasClean]; + } + }; + Object.defineProperty(CloseEvent.prototype, "code", { enumerable: true }); + Object.defineProperty(CloseEvent.prototype, "reason", { enumerable: true }); + Object.defineProperty(CloseEvent.prototype, "wasClean", { enumerable: true }); + var ErrorEvent = class extends Event { + /** + * Create a new `ErrorEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {*} [options.error=null] The error that generated this event + * @param {String} [options.message=''] The error message + */ + constructor(type2, options2 = {}) { + super(type2); + this[kError] = options2.error === void 0 ? null : options2.error; + this[kMessage] = options2.message === void 0 ? "" : options2.message; + } + /** + * @type {*} + */ + get error() { + return this[kError]; + } + /** + * @type {String} + */ + get message() { + return this[kMessage]; + } + }; + Object.defineProperty(ErrorEvent.prototype, "error", { enumerable: true }); + Object.defineProperty(ErrorEvent.prototype, "message", { enumerable: true }); + var MessageEvent = class extends Event { + /** + * Create a new `MessageEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {*} [options.data=null] The message content + */ + constructor(type2, options2 = {}) { + super(type2); + this[kData] = options2.data === void 0 ? null : options2.data; + } + /** + * @type {*} + */ + get data() { + return this[kData]; + } + }; + Object.defineProperty(MessageEvent.prototype, "data", { enumerable: true }); + var EventTarget = { + /** + * Register an event listener. + * + * @param {String} type A string representing the event type to listen for + * @param {(Function|Object)} handler The listener to add + * @param {Object} [options] An options object specifies characteristics about + * the event listener + * @param {Boolean} [options.once=false] A `Boolean` indicating that the + * listener should be invoked at most once after being added. If `true`, + * the listener would be automatically removed when invoked. + * @public + */ + addEventListener(type2, handler, options2 = {}) { + for (const listener of this.listeners(type2)) { + if (!options2[kForOnEventAttribute] && listener[kListener] === handler && !listener[kForOnEventAttribute]) { + return; + } + } + let wrapper; + if (type2 === "message") { + wrapper = function onMessage(data, isBinary2) { + const event = new MessageEvent("message", { + data: isBinary2 ? data : data.toString() + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type2 === "close") { + wrapper = function onClose(code, message) { + const event = new CloseEvent("close", { + code, + reason: message.toString(), + wasClean: this._closeFrameReceived && this._closeFrameSent + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type2 === "error") { + wrapper = function onError(error) { + const event = new ErrorEvent("error", { + error, + message: error.message + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type2 === "open") { + wrapper = function onOpen() { + const event = new Event("open"); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else { + return; + } + wrapper[kForOnEventAttribute] = !!options2[kForOnEventAttribute]; + wrapper[kListener] = handler; + if (options2.once) { + this.once(type2, wrapper); + } else { + this.on(type2, wrapper); + } + }, + /** + * Remove an event listener. + * + * @param {String} type A string representing the event type to remove + * @param {(Function|Object)} handler The listener to remove + * @public + */ + removeEventListener(type2, handler) { + for (const listener of this.listeners(type2)) { + if (listener[kListener] === handler && !listener[kForOnEventAttribute]) { + this.removeListener(type2, listener); + break; + } + } + } + }; + module2.exports = { + CloseEvent, + ErrorEvent, + Event, + EventTarget, + MessageEvent + }; + function callListener(listener, thisArg, event) { + if (typeof listener === "object" && listener.handleEvent) { + listener.handleEvent.call(listener, event); + } else { + listener.call(thisArg, event); + } + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/extension.js +var require_extension = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/extension.js"(exports2, module2) { + "use strict"; + var { tokenChars } = require_validation(); + function push3(dest, name, elem) { + if (dest[name] === void 0) + dest[name] = [elem]; + else + dest[name].push(elem); + } + function parse6(header) { + const offers = /* @__PURE__ */ Object.create(null); + let params = /* @__PURE__ */ Object.create(null); + let mustUnescape = false; + let isEscaping = false; + let inQuotes = false; + let extensionName; + let paramName; + let start = -1; + let code = -1; + let end = -1; + let i3 = 0; + for (; i3 < header.length; i3++) { + code = header.charCodeAt(i3); + if (extensionName === void 0) { + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) + start = i3; + } else if (i3 !== 0 && (code === 32 || code === 9)) { + if (end === -1 && start !== -1) + end = i3; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + if (end === -1) + end = i3; + const name = header.slice(start, end); + if (code === 44) { + push3(offers, name, params); + params = /* @__PURE__ */ Object.create(null); + } else { + extensionName = name; + } + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + } else if (paramName === void 0) { + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) + start = i3; + } else if (code === 32 || code === 9) { + if (end === -1 && start !== -1) + end = i3; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + if (end === -1) + end = i3; + push3(params, header.slice(start, end), true); + if (code === 44) { + push3(offers, extensionName, params); + params = /* @__PURE__ */ Object.create(null); + extensionName = void 0; + } + start = end = -1; + } else if (code === 61 && start !== -1 && end === -1) { + paramName = header.slice(start, i3); + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + } else { + if (isEscaping) { + if (tokenChars[code] !== 1) { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + if (start === -1) + start = i3; + else if (!mustUnescape) + mustUnescape = true; + isEscaping = false; + } else if (inQuotes) { + if (tokenChars[code] === 1) { + if (start === -1) + start = i3; + } else if (code === 34 && start !== -1) { + inQuotes = false; + end = i3; + } else if (code === 92) { + isEscaping = true; + } else { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + } else if (code === 34 && header.charCodeAt(i3 - 1) === 61) { + inQuotes = true; + } else if (end === -1 && tokenChars[code] === 1) { + if (start === -1) + start = i3; + } else if (start !== -1 && (code === 32 || code === 9)) { + if (end === -1) + end = i3; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + if (end === -1) + end = i3; + let value = header.slice(start, end); + if (mustUnescape) { + value = value.replace(/\\/g, ""); + mustUnescape = false; + } + push3(params, paramName, value); + if (code === 44) { + push3(offers, extensionName, params); + params = /* @__PURE__ */ Object.create(null); + extensionName = void 0; + } + paramName = void 0; + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + } + } + if (start === -1 || inQuotes || code === 32 || code === 9) { + throw new SyntaxError("Unexpected end of input"); + } + if (end === -1) + end = i3; + const token = header.slice(start, end); + if (extensionName === void 0) { + push3(offers, token, params); + } else { + if (paramName === void 0) { + push3(params, token, true); + } else if (mustUnescape) { + push3(params, paramName, token.replace(/\\/g, "")); + } else { + push3(params, paramName, token); + } + push3(offers, extensionName, params); + } + return offers; + } + function format3(extensions) { + return Object.keys(extensions).map((extension) => { + let configurations = extensions[extension]; + if (!Array.isArray(configurations)) + configurations = [configurations]; + return configurations.map((params) => { + return [extension].concat( + Object.keys(params).map((k3) => { + let values3 = params[k3]; + if (!Array.isArray(values3)) + values3 = [values3]; + return values3.map((v3) => v3 === true ? k3 : `${k3}=${v3}`).join("; "); + }) + ).join("; "); + }).join(", "); + }).join(", "); + } + module2.exports = { format: format3, parse: parse6 }; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/websocket.js +var require_websocket = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/websocket.js"(exports2, module2) { + "use strict"; + var EventEmitter2 = require("events"); + var https = require("https"); + var http = require("http"); + var net = require("net"); + var tls = require("tls"); + var { randomBytes, createHash: createHash2 } = require("crypto"); + var { Readable } = require("stream"); + var { URL: URL2 } = require("url"); + var PerMessageDeflate = require_permessage_deflate(); + var Receiver2 = require_receiver(); + var Sender2 = require_sender(); + var { + BINARY_TYPES, + EMPTY_BUFFER, + GUID, + kForOnEventAttribute, + kListener, + kStatusCode, + kWebSocket, + NOOP + } = require_constants(); + var { + EventTarget: { addEventListener, removeEventListener } + } = require_event_target(); + var { format: format3, parse: parse6 } = require_extension(); + var { toBuffer } = require_buffer_util(); + var closeTimeout = 30 * 1e3; + var kAborted = Symbol("kAborted"); + var protocolVersions = [8, 13]; + var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"]; + var subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/; + var WebSocket2 = class _WebSocket extends EventEmitter2 { + /** + * Create a new `WebSocket`. + * + * @param {(String|URL)} address The URL to which to connect + * @param {(String|String[])} [protocols] The subprotocols + * @param {Object} [options] Connection options + */ + constructor(address, protocols, options2) { + super(); + this._binaryType = BINARY_TYPES[0]; + this._closeCode = 1006; + this._closeFrameReceived = false; + this._closeFrameSent = false; + this._closeMessage = EMPTY_BUFFER; + this._closeTimer = null; + this._extensions = {}; + this._paused = false; + this._protocol = ""; + this._readyState = _WebSocket.CONNECTING; + this._receiver = null; + this._sender = null; + this._socket = null; + if (address !== null) { + this._bufferedAmount = 0; + this._isServer = false; + this._redirects = 0; + if (protocols === void 0) { + protocols = []; + } else if (!Array.isArray(protocols)) { + if (typeof protocols === "object" && protocols !== null) { + options2 = protocols; + protocols = []; + } else { + protocols = [protocols]; + } + } + initAsClient(this, address, protocols, options2); + } else { + this._isServer = true; + } + } + /** + * This deviates from the WHATWG interface since ws doesn't support the + * required default "blob" type (instead we define a custom "nodebuffer" + * type). + * + * @type {String} + */ + get binaryType() { + return this._binaryType; + } + set binaryType(type2) { + if (!BINARY_TYPES.includes(type2)) + return; + this._binaryType = type2; + if (this._receiver) + this._receiver._binaryType = type2; + } + /** + * @type {Number} + */ + get bufferedAmount() { + if (!this._socket) + return this._bufferedAmount; + return this._socket._writableState.length + this._sender._bufferedBytes; + } + /** + * @type {String} + */ + get extensions() { + return Object.keys(this._extensions).join(); + } + /** + * @type {Boolean} + */ + get isPaused() { + return this._paused; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onclose() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onerror() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onopen() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onmessage() { + return null; + } + /** + * @type {String} + */ + get protocol() { + return this._protocol; + } + /** + * @type {Number} + */ + get readyState() { + return this._readyState; + } + /** + * @type {String} + */ + get url() { + return this._url; + } + /** + * Set up the socket and the internal resources. + * + * @param {(net.Socket|tls.Socket)} socket The network socket between the + * server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Object} options Options object + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Number} [options.maxPayload=0] The maximum allowed message size + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + * @private + */ + setSocket(socket, head, options2) { + const receiver = new Receiver2({ + binaryType: this.binaryType, + extensions: this._extensions, + isServer: this._isServer, + maxPayload: options2.maxPayload, + skipUTF8Validation: options2.skipUTF8Validation + }); + this._sender = new Sender2(socket, this._extensions, options2.generateMask); + this._receiver = receiver; + this._socket = socket; + receiver[kWebSocket] = this; + socket[kWebSocket] = this; + receiver.on("conclude", receiverOnConclude); + receiver.on("drain", receiverOnDrain); + receiver.on("error", receiverOnError); + receiver.on("message", receiverOnMessage); + receiver.on("ping", receiverOnPing); + receiver.on("pong", receiverOnPong); + socket.setTimeout(0); + socket.setNoDelay(); + if (head.length > 0) + socket.unshift(head); + socket.on("close", socketOnClose); + socket.on("data", socketOnData); + socket.on("end", socketOnEnd); + socket.on("error", socketOnError); + this._readyState = _WebSocket.OPEN; + this.emit("open"); + } + /** + * Emit the `'close'` event. + * + * @private + */ + emitClose() { + if (!this._socket) { + this._readyState = _WebSocket.CLOSED; + this.emit("close", this._closeCode, this._closeMessage); + return; + } + if (this._extensions[PerMessageDeflate.extensionName]) { + this._extensions[PerMessageDeflate.extensionName].cleanup(); + } + this._receiver.removeAllListeners(); + this._readyState = _WebSocket.CLOSED; + this.emit("close", this._closeCode, this._closeMessage); + } + /** + * Start a closing handshake. + * + * +----------+ +-----------+ +----------+ + * - - -|ws.close()|-->|close frame|-->|ws.close()|- - - + * | +----------+ +-----------+ +----------+ | + * +----------+ +-----------+ | + * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING + * +----------+ +-----------+ | + * | | | +---+ | + * +------------------------+-->|fin| - - - - + * | +---+ | +---+ + * - - - - -|fin|<---------------------+ + * +---+ + * + * @param {Number} [code] Status code explaining why the connection is closing + * @param {(String|Buffer)} [data] The reason why the connection is + * closing + * @public + */ + close(code, data) { + if (this.readyState === _WebSocket.CLOSED) + return; + if (this.readyState === _WebSocket.CONNECTING) { + const msg = "WebSocket was closed before the connection was established"; + abortHandshake(this, this._req, msg); + return; + } + if (this.readyState === _WebSocket.CLOSING) { + if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) { + this._socket.end(); + } + return; + } + this._readyState = _WebSocket.CLOSING; + this._sender.close(code, data, !this._isServer, (err) => { + if (err) + return; + this._closeFrameSent = true; + if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) { + this._socket.end(); + } + }); + this._closeTimer = setTimeout( + this._socket.destroy.bind(this._socket), + closeTimeout + ); + } + /** + * Pause the socket. + * + * @public + */ + pause() { + if (this.readyState === _WebSocket.CONNECTING || this.readyState === _WebSocket.CLOSED) { + return; + } + this._paused = true; + this._socket.pause(); + } + /** + * Send a ping. + * + * @param {*} [data] The data to send + * @param {Boolean} [mask] Indicates whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when the ping is sent + * @public + */ + ping(data, mask, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof data === "function") { + cb = data; + data = mask = void 0; + } else if (typeof mask === "function") { + cb = mask; + mask = void 0; + } + if (typeof data === "number") + data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + if (mask === void 0) + mask = !this._isServer; + this._sender.ping(data || EMPTY_BUFFER, mask, cb); + } + /** + * Send a pong. + * + * @param {*} [data] The data to send + * @param {Boolean} [mask] Indicates whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when the pong is sent + * @public + */ + pong(data, mask, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof data === "function") { + cb = data; + data = mask = void 0; + } else if (typeof mask === "function") { + cb = mask; + mask = void 0; + } + if (typeof data === "number") + data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + if (mask === void 0) + mask = !this._isServer; + this._sender.pong(data || EMPTY_BUFFER, mask, cb); + } + /** + * Resume the socket. + * + * @public + */ + resume() { + if (this.readyState === _WebSocket.CONNECTING || this.readyState === _WebSocket.CLOSED) { + return; + } + this._paused = false; + if (!this._receiver._writableState.needDrain) + this._socket.resume(); + } + /** + * Send a data message. + * + * @param {*} data The message to send + * @param {Object} [options] Options object + * @param {Boolean} [options.binary] Specifies whether `data` is binary or + * text + * @param {Boolean} [options.compress] Specifies whether or not to compress + * `data` + * @param {Boolean} [options.fin=true] Specifies whether the fragment is the + * last one + * @param {Boolean} [options.mask] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when data is written out + * @public + */ + send(data, options2, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof options2 === "function") { + cb = options2; + options2 = {}; + } + if (typeof data === "number") + data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + const opts = { + binary: typeof data !== "string", + mask: !this._isServer, + compress: true, + fin: true, + ...options2 + }; + if (!this._extensions[PerMessageDeflate.extensionName]) { + opts.compress = false; + } + this._sender.send(data || EMPTY_BUFFER, opts, cb); + } + /** + * Forcibly close the connection. + * + * @public + */ + terminate() { + if (this.readyState === _WebSocket.CLOSED) + return; + if (this.readyState === _WebSocket.CONNECTING) { + const msg = "WebSocket was closed before the connection was established"; + abortHandshake(this, this._req, msg); + return; + } + if (this._socket) { + this._readyState = _WebSocket.CLOSING; + this._socket.destroy(); + } + } + }; + Object.defineProperty(WebSocket2, "CONNECTING", { + enumerable: true, + value: readyStates.indexOf("CONNECTING") + }); + Object.defineProperty(WebSocket2.prototype, "CONNECTING", { + enumerable: true, + value: readyStates.indexOf("CONNECTING") + }); + Object.defineProperty(WebSocket2, "OPEN", { + enumerable: true, + value: readyStates.indexOf("OPEN") + }); + Object.defineProperty(WebSocket2.prototype, "OPEN", { + enumerable: true, + value: readyStates.indexOf("OPEN") + }); + Object.defineProperty(WebSocket2, "CLOSING", { + enumerable: true, + value: readyStates.indexOf("CLOSING") + }); + Object.defineProperty(WebSocket2.prototype, "CLOSING", { + enumerable: true, + value: readyStates.indexOf("CLOSING") + }); + Object.defineProperty(WebSocket2, "CLOSED", { + enumerable: true, + value: readyStates.indexOf("CLOSED") + }); + Object.defineProperty(WebSocket2.prototype, "CLOSED", { + enumerable: true, + value: readyStates.indexOf("CLOSED") + }); + [ + "binaryType", + "bufferedAmount", + "extensions", + "isPaused", + "protocol", + "readyState", + "url" + ].forEach((property2) => { + Object.defineProperty(WebSocket2.prototype, property2, { enumerable: true }); + }); + ["open", "error", "close", "message"].forEach((method) => { + Object.defineProperty(WebSocket2.prototype, `on${method}`, { + enumerable: true, + get() { + for (const listener of this.listeners(method)) { + if (listener[kForOnEventAttribute]) + return listener[kListener]; + } + return null; + }, + set(handler) { + for (const listener of this.listeners(method)) { + if (listener[kForOnEventAttribute]) { + this.removeListener(method, listener); + break; + } + } + if (typeof handler !== "function") + return; + this.addEventListener(method, handler, { + [kForOnEventAttribute]: true + }); + } + }); + }); + WebSocket2.prototype.addEventListener = addEventListener; + WebSocket2.prototype.removeEventListener = removeEventListener; + module2.exports = WebSocket2; + function initAsClient(websocket, address, protocols, options2) { + const opts = { + protocolVersion: protocolVersions[1], + maxPayload: 100 * 1024 * 1024, + skipUTF8Validation: false, + perMessageDeflate: true, + followRedirects: false, + maxRedirects: 10, + ...options2, + createConnection: void 0, + socketPath: void 0, + hostname: void 0, + protocol: void 0, + timeout: void 0, + method: "GET", + host: void 0, + path: void 0, + port: void 0 + }; + if (!protocolVersions.includes(opts.protocolVersion)) { + throw new RangeError( + `Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})` + ); + } + let parsedUrl; + if (address instanceof URL2) { + parsedUrl = address; + websocket._url = address.href; + } else { + try { + parsedUrl = new URL2(address); + } catch (e3) { + throw new SyntaxError(`Invalid URL: ${address}`); + } + websocket._url = address; + } + const isSecure = parsedUrl.protocol === "wss:"; + const isIpcUrl = parsedUrl.protocol === "ws+unix:"; + let invalidUrlMessage; + if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) { + invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"`; + } else if (isIpcUrl && !parsedUrl.pathname) { + invalidUrlMessage = "The URL's pathname is empty"; + } else if (parsedUrl.hash) { + invalidUrlMessage = "The URL contains a fragment identifier"; + } + if (invalidUrlMessage) { + const err = new SyntaxError(invalidUrlMessage); + if (websocket._redirects === 0) { + throw err; + } else { + emitErrorAndClose(websocket, err); + return; + } + } + const defaultPort = isSecure ? 443 : 80; + const key = randomBytes(16).toString("base64"); + const request = isSecure ? https.request : http.request; + const protocolSet = /* @__PURE__ */ new Set(); + let perMessageDeflate; + opts.createConnection = isSecure ? tlsConnect : netConnect; + opts.defaultPort = opts.defaultPort || defaultPort; + opts.port = parsedUrl.port || defaultPort; + opts.host = parsedUrl.hostname.startsWith("[") ? parsedUrl.hostname.slice(1, -1) : parsedUrl.hostname; + opts.headers = { + ...opts.headers, + "Sec-WebSocket-Version": opts.protocolVersion, + "Sec-WebSocket-Key": key, + Connection: "Upgrade", + Upgrade: "websocket" + }; + opts.path = parsedUrl.pathname + parsedUrl.search; + opts.timeout = opts.handshakeTimeout; + if (opts.perMessageDeflate) { + perMessageDeflate = new PerMessageDeflate( + opts.perMessageDeflate !== true ? opts.perMessageDeflate : {}, + false, + opts.maxPayload + ); + opts.headers["Sec-WebSocket-Extensions"] = format3({ + [PerMessageDeflate.extensionName]: perMessageDeflate.offer() + }); + } + if (protocols.length) { + for (const protocol of protocols) { + if (typeof protocol !== "string" || !subprotocolRegex.test(protocol) || protocolSet.has(protocol)) { + throw new SyntaxError( + "An invalid or duplicated subprotocol was specified" + ); + } + protocolSet.add(protocol); + } + opts.headers["Sec-WebSocket-Protocol"] = protocols.join(","); + } + if (opts.origin) { + if (opts.protocolVersion < 13) { + opts.headers["Sec-WebSocket-Origin"] = opts.origin; + } else { + opts.headers.Origin = opts.origin; + } + } + if (parsedUrl.username || parsedUrl.password) { + opts.auth = `${parsedUrl.username}:${parsedUrl.password}`; + } + if (isIpcUrl) { + const parts = opts.path.split(":"); + opts.socketPath = parts[0]; + opts.path = parts[1]; + } + let req; + if (opts.followRedirects) { + if (websocket._redirects === 0) { + websocket._originalIpc = isIpcUrl; + websocket._originalSecure = isSecure; + websocket._originalHostOrSocketPath = isIpcUrl ? opts.socketPath : parsedUrl.host; + const headers = options2 && options2.headers; + options2 = { ...options2, headers: {} }; + if (headers) { + for (const [key2, value] of Object.entries(headers)) { + options2.headers[key2.toLowerCase()] = value; + } + } + } else if (websocket.listenerCount("redirect") === 0) { + const isSameHost = isIpcUrl ? websocket._originalIpc ? opts.socketPath === websocket._originalHostOrSocketPath : false : websocket._originalIpc ? false : parsedUrl.host === websocket._originalHostOrSocketPath; + if (!isSameHost || websocket._originalSecure && !isSecure) { + delete opts.headers.authorization; + delete opts.headers.cookie; + if (!isSameHost) + delete opts.headers.host; + opts.auth = void 0; + } + } + if (opts.auth && !options2.headers.authorization) { + options2.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64"); + } + req = websocket._req = request(opts); + if (websocket._redirects) { + websocket.emit("redirect", websocket.url, req); + } + } else { + req = websocket._req = request(opts); + } + if (opts.timeout) { + req.on("timeout", () => { + abortHandshake(websocket, req, "Opening handshake has timed out"); + }); + } + req.on("error", (err) => { + if (req === null || req[kAborted]) + return; + req = websocket._req = null; + emitErrorAndClose(websocket, err); + }); + req.on("response", (res) => { + const location = res.headers.location; + const statusCode = res.statusCode; + if (location && opts.followRedirects && statusCode >= 300 && statusCode < 400) { + if (++websocket._redirects > opts.maxRedirects) { + abortHandshake(websocket, req, "Maximum redirects exceeded"); + return; + } + req.abort(); + let addr; + try { + addr = new URL2(location, address); + } catch (e3) { + const err = new SyntaxError(`Invalid URL: ${location}`); + emitErrorAndClose(websocket, err); + return; + } + initAsClient(websocket, addr, protocols, options2); + } else if (!websocket.emit("unexpected-response", req, res)) { + abortHandshake( + websocket, + req, + `Unexpected server response: ${res.statusCode}` + ); + } + }); + req.on("upgrade", (res, socket, head) => { + websocket.emit("upgrade", res); + if (websocket.readyState !== WebSocket2.CONNECTING) + return; + req = websocket._req = null; + if (res.headers.upgrade.toLowerCase() !== "websocket") { + abortHandshake(websocket, socket, "Invalid Upgrade header"); + return; + } + const digest = createHash2("sha1").update(key + GUID).digest("base64"); + if (res.headers["sec-websocket-accept"] !== digest) { + abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header"); + return; + } + const serverProt = res.headers["sec-websocket-protocol"]; + let protError; + if (serverProt !== void 0) { + if (!protocolSet.size) { + protError = "Server sent a subprotocol but none was requested"; + } else if (!protocolSet.has(serverProt)) { + protError = "Server sent an invalid subprotocol"; + } + } else if (protocolSet.size) { + protError = "Server sent no subprotocol"; + } + if (protError) { + abortHandshake(websocket, socket, protError); + return; + } + if (serverProt) + websocket._protocol = serverProt; + const secWebSocketExtensions = res.headers["sec-websocket-extensions"]; + if (secWebSocketExtensions !== void 0) { + if (!perMessageDeflate) { + const message = "Server sent a Sec-WebSocket-Extensions header but no extension was requested"; + abortHandshake(websocket, socket, message); + return; + } + let extensions; + try { + extensions = parse6(secWebSocketExtensions); + } catch (err) { + const message = "Invalid Sec-WebSocket-Extensions header"; + abortHandshake(websocket, socket, message); + return; + } + const extensionNames = Object.keys(extensions); + if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate.extensionName) { + const message = "Server indicated an extension that was not requested"; + abortHandshake(websocket, socket, message); + return; + } + try { + perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]); + } catch (err) { + const message = "Invalid Sec-WebSocket-Extensions header"; + abortHandshake(websocket, socket, message); + return; + } + websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate; + } + websocket.setSocket(socket, head, { + generateMask: opts.generateMask, + maxPayload: opts.maxPayload, + skipUTF8Validation: opts.skipUTF8Validation + }); + }); + if (opts.finishRequest) { + opts.finishRequest(req, websocket); + } else { + req.end(); + } + } + function emitErrorAndClose(websocket, err) { + websocket._readyState = WebSocket2.CLOSING; + websocket.emit("error", err); + websocket.emitClose(); + } + function netConnect(options2) { + options2.path = options2.socketPath; + return net.connect(options2); + } + function tlsConnect(options2) { + options2.path = void 0; + if (!options2.servername && options2.servername !== "") { + options2.servername = net.isIP(options2.host) ? "" : options2.host; + } + return tls.connect(options2); + } + function abortHandshake(websocket, stream, message) { + websocket._readyState = WebSocket2.CLOSING; + const err = new Error(message); + Error.captureStackTrace(err, abortHandshake); + if (stream.setHeader) { + stream[kAborted] = true; + stream.abort(); + if (stream.socket && !stream.socket.destroyed) { + stream.socket.destroy(); + } + process.nextTick(emitErrorAndClose, websocket, err); + } else { + stream.destroy(err); + stream.once("error", websocket.emit.bind(websocket, "error")); + stream.once("close", websocket.emitClose.bind(websocket)); + } + } + function sendAfterClose(websocket, data, cb) { + if (data) { + const length = toBuffer(data).length; + if (websocket._socket) + websocket._sender._bufferedBytes += length; + else + websocket._bufferedAmount += length; + } + if (cb) { + const err = new Error( + `WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})` + ); + process.nextTick(cb, err); + } + } + function receiverOnConclude(code, reason) { + const websocket = this[kWebSocket]; + websocket._closeFrameReceived = true; + websocket._closeMessage = reason; + websocket._closeCode = code; + if (websocket._socket[kWebSocket] === void 0) + return; + websocket._socket.removeListener("data", socketOnData); + process.nextTick(resume, websocket._socket); + if (code === 1005) + websocket.close(); + else + websocket.close(code, reason); + } + function receiverOnDrain() { + const websocket = this[kWebSocket]; + if (!websocket.isPaused) + websocket._socket.resume(); + } + function receiverOnError(err) { + const websocket = this[kWebSocket]; + if (websocket._socket[kWebSocket] !== void 0) { + websocket._socket.removeListener("data", socketOnData); + process.nextTick(resume, websocket._socket); + websocket.close(err[kStatusCode]); + } + websocket.emit("error", err); + } + function receiverOnFinish() { + this[kWebSocket].emitClose(); + } + function receiverOnMessage(data, isBinary2) { + this[kWebSocket].emit("message", data, isBinary2); + } + function receiverOnPing(data) { + const websocket = this[kWebSocket]; + websocket.pong(data, !websocket._isServer, NOOP); + websocket.emit("ping", data); + } + function receiverOnPong(data) { + this[kWebSocket].emit("pong", data); + } + function resume(stream) { + stream.resume(); + } + function socketOnClose() { + const websocket = this[kWebSocket]; + this.removeListener("close", socketOnClose); + this.removeListener("data", socketOnData); + this.removeListener("end", socketOnEnd); + websocket._readyState = WebSocket2.CLOSING; + let chunk; + if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (chunk = websocket._socket.read()) !== null) { + websocket._receiver.write(chunk); + } + websocket._receiver.end(); + this[kWebSocket] = void 0; + clearTimeout(websocket._closeTimer); + if (websocket._receiver._writableState.finished || websocket._receiver._writableState.errorEmitted) { + websocket.emitClose(); + } else { + websocket._receiver.on("error", receiverOnFinish); + websocket._receiver.on("finish", receiverOnFinish); + } + } + function socketOnData(chunk) { + if (!this[kWebSocket]._receiver.write(chunk)) { + this.pause(); + } + } + function socketOnEnd() { + const websocket = this[kWebSocket]; + websocket._readyState = WebSocket2.CLOSING; + websocket._receiver.end(); + this.end(); + } + function socketOnError() { + const websocket = this[kWebSocket]; + this.removeListener("error", socketOnError); + this.on("error", NOOP); + if (websocket) { + websocket._readyState = WebSocket2.CLOSING; + this.destroy(); + } + } + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/subprotocol.js +var require_subprotocol = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/subprotocol.js"(exports2, module2) { + "use strict"; + var { tokenChars } = require_validation(); + function parse6(header) { + const protocols = /* @__PURE__ */ new Set(); + let start = -1; + let end = -1; + let i3 = 0; + for (i3; i3 < header.length; i3++) { + const code = header.charCodeAt(i3); + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) + start = i3; + } else if (i3 !== 0 && (code === 32 || code === 9)) { + if (end === -1 && start !== -1) + end = i3; + } else if (code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + if (end === -1) + end = i3; + const protocol2 = header.slice(start, end); + if (protocols.has(protocol2)) { + throw new SyntaxError(`The "${protocol2}" subprotocol is duplicated`); + } + protocols.add(protocol2); + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i3}`); + } + } + if (start === -1 || end !== -1) { + throw new SyntaxError("Unexpected end of input"); + } + const protocol = header.slice(start, i3); + if (protocols.has(protocol)) { + throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); + } + protocols.add(protocol); + return protocols; + } + module2.exports = { parse: parse6 }; + } +}); + +// ../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/websocket-server.js +var require_websocket_server = __commonJS({ + "../../.yarn/__virtual__/ws-virtual-1bf9cf9f56/0/cache/ws-npm-8.13.0-26ffa3016a-af5cfb5a70.zip/node_modules/ws/lib/websocket-server.js"(exports2, module2) { + "use strict"; + var EventEmitter2 = require("events"); + var http = require("http"); + var https = require("https"); + var net = require("net"); + var tls = require("tls"); + var { createHash: createHash2 } = require("crypto"); + var extension = require_extension(); + var PerMessageDeflate = require_permessage_deflate(); + var subprotocol = require_subprotocol(); + var WebSocket2 = require_websocket(); + var { GUID, kWebSocket } = require_constants(); + var keyRegex = /^[+/0-9A-Za-z]{22}==$/; + var RUNNING = 0; + var CLOSING = 1; + var CLOSED = 2; + var WebSocketServer2 = class extends EventEmitter2 { + /** + * Create a `WebSocketServer` instance. + * + * @param {Object} options Configuration options + * @param {Number} [options.backlog=511] The maximum length of the queue of + * pending connections + * @param {Boolean} [options.clientTracking=true] Specifies whether or not to + * track clients + * @param {Function} [options.handleProtocols] A hook to handle protocols + * @param {String} [options.host] The hostname where to bind the server + * @param {Number} [options.maxPayload=104857600] The maximum allowed message + * size + * @param {Boolean} [options.noServer=false] Enable no server mode + * @param {String} [options.path] Accept only connections matching this path + * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable + * permessage-deflate + * @param {Number} [options.port] The port where to bind the server + * @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S + * server to use + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + * @param {Function} [options.verifyClient] A hook to reject connections + * @param {Function} [options.WebSocket=WebSocket] Specifies the `WebSocket` + * class to use. It must be the `WebSocket` class or class that extends it + * @param {Function} [callback] A listener for the `listening` event + */ + constructor(options2, callback) { + super(); + options2 = { + maxPayload: 100 * 1024 * 1024, + skipUTF8Validation: false, + perMessageDeflate: false, + handleProtocols: null, + clientTracking: true, + verifyClient: null, + noServer: false, + backlog: null, + // use default (511 as implemented in net.js) + server: null, + host: null, + path: null, + port: null, + WebSocket: WebSocket2, + ...options2 + }; + if (options2.port == null && !options2.server && !options2.noServer || options2.port != null && (options2.server || options2.noServer) || options2.server && options2.noServer) { + throw new TypeError( + 'One and only one of the "port", "server", or "noServer" options must be specified' + ); + } + if (options2.port != null) { + this._server = http.createServer((req, res) => { + const body = http.STATUS_CODES[426]; + res.writeHead(426, { + "Content-Length": body.length, + "Content-Type": "text/plain" + }); + res.end(body); + }); + this._server.listen( + options2.port, + options2.host, + options2.backlog, + callback + ); + } else if (options2.server) { + this._server = options2.server; + } + if (this._server) { + const emitConnection = this.emit.bind(this, "connection"); + this._removeListeners = addListeners(this._server, { + listening: this.emit.bind(this, "listening"), + error: this.emit.bind(this, "error"), + upgrade: (req, socket, head) => { + this.handleUpgrade(req, socket, head, emitConnection); + } + }); + } + if (options2.perMessageDeflate === true) + options2.perMessageDeflate = {}; + if (options2.clientTracking) { + this.clients = /* @__PURE__ */ new Set(); + this._shouldEmitClose = false; + } + this.options = options2; + this._state = RUNNING; + } + /** + * Returns the bound address, the address family name, and port of the server + * as reported by the operating system if listening on an IP socket. + * If the server is listening on a pipe or UNIX domain socket, the name is + * returned as a string. + * + * @return {(Object|String|null)} The address of the server + * @public + */ + address() { + if (this.options.noServer) { + throw new Error('The server is operating in "noServer" mode'); + } + if (!this._server) + return null; + return this._server.address(); + } + /** + * Stop the server from accepting new connections and emit the `'close'` event + * when all existing connections are closed. + * + * @param {Function} [cb] A one-time listener for the `'close'` event + * @public + */ + close(cb) { + if (this._state === CLOSED) { + if (cb) { + this.once("close", () => { + cb(new Error("The server is not running")); + }); + } + process.nextTick(emitClose, this); + return; + } + if (cb) + this.once("close", cb); + if (this._state === CLOSING) + return; + this._state = CLOSING; + if (this.options.noServer || this.options.server) { + if (this._server) { + this._removeListeners(); + this._removeListeners = this._server = null; + } + if (this.clients) { + if (!this.clients.size) { + process.nextTick(emitClose, this); + } else { + this._shouldEmitClose = true; + } + } else { + process.nextTick(emitClose, this); + } + } else { + const server = this._server; + this._removeListeners(); + this._removeListeners = this._server = null; + server.close(() => { + emitClose(this); + }); + } + } + /** + * See if a given request should be handled by this server instance. + * + * @param {http.IncomingMessage} req Request object to inspect + * @return {Boolean} `true` if the request is valid, else `false` + * @public + */ + shouldHandle(req) { + if (this.options.path) { + const index = req.url.indexOf("?"); + const pathname = index !== -1 ? req.url.slice(0, index) : req.url; + if (pathname !== this.options.path) + return false; + } + return true; + } + /** + * Handle a HTTP Upgrade request. + * + * @param {http.IncomingMessage} req The request object + * @param {(net.Socket|tls.Socket)} socket The network socket between the + * server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Function} cb Callback + * @public + */ + handleUpgrade(req, socket, head, cb) { + socket.on("error", socketOnError); + const key = req.headers["sec-websocket-key"]; + const version = +req.headers["sec-websocket-version"]; + if (req.method !== "GET") { + const message = "Invalid HTTP method"; + abortHandshakeOrEmitwsClientError(this, req, socket, 405, message); + return; + } + if (req.headers.upgrade.toLowerCase() !== "websocket") { + const message = "Invalid Upgrade header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + if (!key || !keyRegex.test(key)) { + const message = "Missing or invalid Sec-WebSocket-Key header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + if (version !== 8 && version !== 13) { + const message = "Missing or invalid Sec-WebSocket-Version header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + if (!this.shouldHandle(req)) { + abortHandshake(socket, 400); + return; + } + const secWebSocketProtocol = req.headers["sec-websocket-protocol"]; + let protocols = /* @__PURE__ */ new Set(); + if (secWebSocketProtocol !== void 0) { + try { + protocols = subprotocol.parse(secWebSocketProtocol); + } catch (err) { + const message = "Invalid Sec-WebSocket-Protocol header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + } + const secWebSocketExtensions = req.headers["sec-websocket-extensions"]; + const extensions = {}; + if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) { + const perMessageDeflate = new PerMessageDeflate( + this.options.perMessageDeflate, + true, + this.options.maxPayload + ); + try { + const offers = extension.parse(secWebSocketExtensions); + if (offers[PerMessageDeflate.extensionName]) { + perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]); + extensions[PerMessageDeflate.extensionName] = perMessageDeflate; + } + } catch (err) { + const message = "Invalid or unacceptable Sec-WebSocket-Extensions header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + } + if (this.options.verifyClient) { + const info = { + origin: req.headers[`${version === 8 ? "sec-websocket-origin" : "origin"}`], + secure: !!(req.socket.authorized || req.socket.encrypted), + req + }; + if (this.options.verifyClient.length === 2) { + this.options.verifyClient(info, (verified, code, message, headers) => { + if (!verified) { + return abortHandshake(socket, code || 401, message, headers); + } + this.completeUpgrade( + extensions, + key, + protocols, + req, + socket, + head, + cb + ); + }); + return; + } + if (!this.options.verifyClient(info)) + return abortHandshake(socket, 401); + } + this.completeUpgrade(extensions, key, protocols, req, socket, head, cb); + } + /** + * Upgrade the connection to WebSocket. + * + * @param {Object} extensions The accepted extensions + * @param {String} key The value of the `Sec-WebSocket-Key` header + * @param {Set} protocols The subprotocols + * @param {http.IncomingMessage} req The request object + * @param {(net.Socket|tls.Socket)} socket The network socket between the + * server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Function} cb Callback + * @throws {Error} If called more than once with the same socket + * @private + */ + completeUpgrade(extensions, key, protocols, req, socket, head, cb) { + if (!socket.readable || !socket.writable) + return socket.destroy(); + if (socket[kWebSocket]) { + throw new Error( + "server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration" + ); + } + if (this._state > RUNNING) + return abortHandshake(socket, 503); + const digest = createHash2("sha1").update(key + GUID).digest("base64"); + const headers = [ + "HTTP/1.1 101 Switching Protocols", + "Upgrade: websocket", + "Connection: Upgrade", + `Sec-WebSocket-Accept: ${digest}` + ]; + const ws = new this.options.WebSocket(null); + if (protocols.size) { + const protocol = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value; + if (protocol) { + headers.push(`Sec-WebSocket-Protocol: ${protocol}`); + ws._protocol = protocol; + } + } + if (extensions[PerMessageDeflate.extensionName]) { + const params = extensions[PerMessageDeflate.extensionName].params; + const value = extension.format({ + [PerMessageDeflate.extensionName]: [params] + }); + headers.push(`Sec-WebSocket-Extensions: ${value}`); + ws._extensions = extensions; + } + this.emit("headers", headers, req); + socket.write(headers.concat("\r\n").join("\r\n")); + socket.removeListener("error", socketOnError); + ws.setSocket(socket, head, { + maxPayload: this.options.maxPayload, + skipUTF8Validation: this.options.skipUTF8Validation + }); + if (this.clients) { + this.clients.add(ws); + ws.on("close", () => { + this.clients.delete(ws); + if (this._shouldEmitClose && !this.clients.size) { + process.nextTick(emitClose, this); + } + }); + } + cb(ws, req); + } + }; + module2.exports = WebSocketServer2; + function addListeners(server, map2) { + for (const event of Object.keys(map2)) + server.on(event, map2[event]); + return function removeListeners() { + for (const event of Object.keys(map2)) { + server.removeListener(event, map2[event]); + } + }; + } + function emitClose(server) { + server._state = CLOSED; + server.emit("close"); + } + function socketOnError() { + this.destroy(); + } + function abortHandshake(socket, code, message, headers) { + message = message || http.STATUS_CODES[code]; + headers = { + Connection: "close", + "Content-Type": "text/html", + "Content-Length": Buffer.byteLength(message), + ...headers + }; + socket.once("finish", socket.destroy); + socket.end( + `HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r +` + Object.keys(headers).map((h2) => `${h2}: ${headers[h2]}`).join("\r\n") + "\r\n\r\n" + message + ); + } + function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) { + if (server.listenerCount("wsClientError")) { + const err = new Error(message); + Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError); + server.emit("wsClientError", err, socket, req); + } else { + abortHandshake(socket, code, message); + } + } + } +}); + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_freeGlobal.js +var freeGlobal = typeof global == "object" && global && global.Object === Object && global; +var freeGlobal_default = freeGlobal; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_root.js +var freeSelf = typeof self == "object" && self && self.Object === Object && self; +var root = freeGlobal_default || freeSelf || Function("return this")(); +var root_default = root; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Symbol.js +var Symbol2 = root_default.Symbol; +var Symbol_default = Symbol2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getRawTag.js +var objectProto = Object.prototype; +var hasOwnProperty = objectProto.hasOwnProperty; +var nativeObjectToString = objectProto.toString; +var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0; +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; + try { + value[symToStringTag] = void 0; + var unmasked = true; + } catch (e3) { + } + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} +var getRawTag_default = getRawTag; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_objectToString.js +var objectProto2 = Object.prototype; +var nativeObjectToString2 = objectProto2.toString; +function objectToString(value) { + return nativeObjectToString2.call(value); +} +var objectToString_default = objectToString; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseGetTag.js +var nullTag = "[object Null]"; +var undefinedTag = "[object Undefined]"; +var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0; +function baseGetTag(value) { + if (value == null) { + return value === void 0 ? undefinedTag : nullTag; + } + return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value); +} +var baseGetTag_default = baseGetTag; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isObjectLike.js +function isObjectLike(value) { + return value != null && typeof value == "object"; +} +var isObjectLike_default = isObjectLike; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isSymbol.js +var symbolTag = "[object Symbol]"; +function isSymbol(value) { + return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag; +} +var isSymbol_default = isSymbol; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayMap.js +function arrayMap(array, iteratee) { + var index = -1, length = array == null ? 0 : array.length, result = Array(length); + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} +var arrayMap_default = arrayMap; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isArray.js +var isArray = Array.isArray; +var isArray_default = isArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseToString.js +var INFINITY = 1 / 0; +var symbolProto = Symbol_default ? Symbol_default.prototype : void 0; +var symbolToString = symbolProto ? symbolProto.toString : void 0; +function baseToString(value) { + if (typeof value == "string") { + return value; + } + if (isArray_default(value)) { + return arrayMap_default(value, baseToString) + ""; + } + if (isSymbol_default(value)) { + return symbolToString ? symbolToString.call(value) : ""; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; +} +var baseToString_default = baseToString; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_trimmedEndIndex.js +var reWhitespace = /\s/; +function trimmedEndIndex(string) { + var index = string.length; + while (index-- && reWhitespace.test(string.charAt(index))) { + } + return index; +} +var trimmedEndIndex_default = trimmedEndIndex; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseTrim.js +var reTrimStart = /^\s+/; +function baseTrim(string) { + return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string; +} +var baseTrim_default = baseTrim; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isObject.js +function isObject(value) { + var type2 = typeof value; + return value != null && (type2 == "object" || type2 == "function"); +} +var isObject_default = isObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/toNumber.js +var NAN = 0 / 0; +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; +var reIsBinary = /^0b[01]+$/i; +var reIsOctal = /^0o[0-7]+$/i; +var freeParseInt = parseInt; +function toNumber(value) { + if (typeof value == "number") { + return value; + } + if (isSymbol_default(value)) { + return NAN; + } + if (isObject_default(value)) { + var other = typeof value.valueOf == "function" ? value.valueOf() : value; + value = isObject_default(other) ? other + "" : other; + } + if (typeof value != "string") { + return value === 0 ? value : +value; + } + value = baseTrim_default(value); + var isBinary2 = reIsBinary.test(value); + return isBinary2 || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary2 ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; +} +var toNumber_default = toNumber; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/toFinite.js +var INFINITY2 = 1 / 0; +var MAX_INTEGER = 17976931348623157e292; +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber_default(value); + if (value === INFINITY2 || value === -INFINITY2) { + var sign = value < 0 ? -1 : 1; + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} +var toFinite_default = toFinite; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/identity.js +function identity(value) { + return value; +} +var identity_default = identity; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isFunction.js +var asyncTag = "[object AsyncFunction]"; +var funcTag = "[object Function]"; +var genTag = "[object GeneratorFunction]"; +var proxyTag = "[object Proxy]"; +function isFunction(value) { + if (!isObject_default(value)) { + return false; + } + var tag = baseGetTag_default(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} +var isFunction_default = isFunction; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_coreJsData.js +var coreJsData = root_default["__core-js_shared__"]; +var coreJsData_default = coreJsData; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isMasked.js +var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; +}(); +function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; +} +var isMasked_default = isMasked; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_toSource.js +var funcProto = Function.prototype; +var funcToString = funcProto.toString; +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e3) { + } + try { + return func + ""; + } catch (e3) { + } + } + return ""; +} +var toSource_default = toSource; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsNative.js +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +var reIsHostCtor = /^\[object .+?Constructor\]$/; +var funcProto2 = Function.prototype; +var objectProto3 = Object.prototype; +var funcToString2 = funcProto2.toString; +var hasOwnProperty2 = objectProto3.hasOwnProperty; +var reIsNative = RegExp( + "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +); +function baseIsNative(value) { + if (!isObject_default(value) || isMasked_default(value)) { + return false; + } + var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource_default(value)); +} +var baseIsNative_default = baseIsNative; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getValue.js +function getValue(object, key) { + return object == null ? void 0 : object[key]; +} +var getValue_default = getValue; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getNative.js +function getNative(object, key) { + var value = getValue_default(object, key); + return baseIsNative_default(value) ? value : void 0; +} +var getNative_default = getNative; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_WeakMap.js +var WeakMap2 = getNative_default(root_default, "WeakMap"); +var WeakMap_default = WeakMap2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseCreate.js +var objectCreate = Object.create; +var baseCreate = function() { + function object() { + } + return function(proto) { + if (!isObject_default(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object(); + object.prototype = void 0; + return result; + }; +}(); +var baseCreate_default = baseCreate; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_apply.js +function apply(func, thisArg, args) { + switch (args.length) { + case 0: + return func.call(thisArg); + case 1: + return func.call(thisArg, args[0]); + case 2: + return func.call(thisArg, args[0], args[1]); + case 3: + return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} +var apply_default = apply; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/noop.js +function noop() { +} +var noop_default = noop; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_copyArray.js +function copyArray(source, array) { + var index = -1, length = source.length; + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} +var copyArray_default = copyArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_shortOut.js +var HOT_COUNT = 800; +var HOT_SPAN = 16; +var nativeNow = Date.now; +function shortOut(func) { + var count = 0, lastCalled = 0; + return function() { + var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(void 0, arguments); + }; +} +var shortOut_default = shortOut; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/constant.js +function constant(value) { + return function() { + return value; + }; +} +var constant_default = constant; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_defineProperty.js +var defineProperty = function() { + try { + var func = getNative_default(Object, "defineProperty"); + func({}, "", {}); + return func; + } catch (e3) { + } +}(); +var defineProperty_default = defineProperty; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseSetToString.js +var baseSetToString = !defineProperty_default ? identity_default : function(func, string) { + return defineProperty_default(func, "toString", { + "configurable": true, + "enumerable": false, + "value": constant_default(string), + "writable": true + }); +}; +var baseSetToString_default = baseSetToString; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_setToString.js +var setToString = shortOut_default(baseSetToString_default); +var setToString_default = setToString; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayEach.js +function arrayEach(array, iteratee) { + var index = -1, length = array == null ? 0 : array.length; + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} +var arrayEach_default = arrayEach; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseFindIndex.js +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, index = fromIndex + (fromRight ? 1 : -1); + while (fromRight ? index-- : ++index < length) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} +var baseFindIndex_default = baseFindIndex; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsNaN.js +function baseIsNaN(value) { + return value !== value; +} +var baseIsNaN_default = baseIsNaN; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_strictIndexOf.js +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, length = array.length; + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} +var strictIndexOf_default = strictIndexOf; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIndexOf.js +function baseIndexOf(array, value, fromIndex) { + return value === value ? strictIndexOf_default(array, value, fromIndex) : baseFindIndex_default(array, baseIsNaN_default, fromIndex); +} +var baseIndexOf_default = baseIndexOf; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayIncludes.js +function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf_default(array, value, 0) > -1; +} +var arrayIncludes_default = arrayIncludes; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isIndex.js +var MAX_SAFE_INTEGER = 9007199254740991; +var reIsUint = /^(?:0|[1-9]\d*)$/; +function isIndex(value, length) { + var type2 = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); +} +var isIndex_default = isIndex; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseAssignValue.js +function baseAssignValue(object, key, value) { + if (key == "__proto__" && defineProperty_default) { + defineProperty_default(object, key, { + "configurable": true, + "enumerable": true, + "value": value, + "writable": true + }); + } else { + object[key] = value; + } +} +var baseAssignValue_default = baseAssignValue; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/eq.js +function eq(value, other) { + return value === other || value !== value && other !== other; +} +var eq_default = eq; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_assignValue.js +var objectProto4 = Object.prototype; +var hasOwnProperty3 = objectProto4.hasOwnProperty; +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) { + baseAssignValue_default(object, key, value); + } +} +var assignValue_default = assignValue; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_copyObject.js +function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + var index = -1, length = props.length; + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + if (newValue === void 0) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue_default(object, key, newValue); + } else { + assignValue_default(object, key, newValue); + } + } + return object; +} +var copyObject_default = copyObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_overRest.js +var nativeMax = Math.max; +function overRest(func, start, transform) { + start = nativeMax(start === void 0 ? func.length - 1 : start, 0); + return function() { + var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply_default(func, this, otherArgs); + }; +} +var overRest_default = overRest; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseRest.js +function baseRest(func, start) { + return setToString_default(overRest_default(func, start, identity_default), func + ""); +} +var baseRest_default = baseRest; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isLength.js +var MAX_SAFE_INTEGER2 = 9007199254740991; +function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2; +} +var isLength_default = isLength; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isArrayLike.js +function isArrayLike(value) { + return value != null && isLength_default(value.length) && !isFunction_default(value); +} +var isArrayLike_default = isArrayLike; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isIterateeCall.js +function isIterateeCall(value, index, object) { + if (!isObject_default(object)) { + return false; + } + var type2 = typeof index; + if (type2 == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type2 == "string" && index in object) { + return eq_default(object[index], value); + } + return false; +} +var isIterateeCall_default = isIterateeCall; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_createAssigner.js +function createAssigner(assigner) { + return baseRest_default(function(object, sources) { + var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; + customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; + if (guard && isIterateeCall_default(sources[0], sources[1], guard)) { + customizer = length < 3 ? void 0 : customizer; + length = 1; + } + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); +} +var createAssigner_default = createAssigner; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isPrototype.js +var objectProto5 = Object.prototype; +function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5; + return value === proto; +} +var isPrototype_default = isPrototype; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseTimes.js +function baseTimes(n3, iteratee) { + var index = -1, result = Array(n3); + while (++index < n3) { + result[index] = iteratee(index); + } + return result; +} +var baseTimes_default = baseTimes; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsArguments.js +var argsTag = "[object Arguments]"; +function baseIsArguments(value) { + return isObjectLike_default(value) && baseGetTag_default(value) == argsTag; +} +var baseIsArguments_default = baseIsArguments; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isArguments.js +var objectProto6 = Object.prototype; +var hasOwnProperty4 = objectProto6.hasOwnProperty; +var propertyIsEnumerable = objectProto6.propertyIsEnumerable; +var isArguments = baseIsArguments_default(function() { + return arguments; +}()) ? baseIsArguments_default : function(value) { + return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); +}; +var isArguments_default = isArguments; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/stubFalse.js +function stubFalse() { + return false; +} +var stubFalse_default = stubFalse; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isBuffer.js +var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; +var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; +var moduleExports = freeModule && freeModule.exports === freeExports; +var Buffer2 = moduleExports ? root_default.Buffer : void 0; +var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; +var isBuffer = nativeIsBuffer || stubFalse_default; +var isBuffer_default = isBuffer; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsTypedArray.js +var argsTag2 = "[object Arguments]"; +var arrayTag = "[object Array]"; +var boolTag = "[object Boolean]"; +var dateTag = "[object Date]"; +var errorTag = "[object Error]"; +var funcTag2 = "[object Function]"; +var mapTag = "[object Map]"; +var numberTag = "[object Number]"; +var objectTag = "[object Object]"; +var regexpTag = "[object RegExp]"; +var setTag = "[object Set]"; +var stringTag = "[object String]"; +var weakMapTag = "[object WeakMap]"; +var arrayBufferTag = "[object ArrayBuffer]"; +var dataViewTag = "[object DataView]"; +var float32Tag = "[object Float32Array]"; +var float64Tag = "[object Float64Array]"; +var int8Tag = "[object Int8Array]"; +var int16Tag = "[object Int16Array]"; +var int32Tag = "[object Int32Array]"; +var uint8Tag = "[object Uint8Array]"; +var uint8ClampedTag = "[object Uint8ClampedArray]"; +var uint16Tag = "[object Uint16Array]"; +var uint32Tag = "[object Uint32Array]"; +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; +function baseIsTypedArray(value) { + return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)]; +} +var baseIsTypedArray_default = baseIsTypedArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseUnary.js +function baseUnary(func) { + return function(value) { + return func(value); + }; +} +var baseUnary_default = baseUnary; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_nodeUtil.js +var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports; +var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module; +var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2; +var freeProcess = moduleExports2 && freeGlobal_default.process; +var nodeUtil = function() { + try { + var types2 = freeModule2 && freeModule2.require && freeModule2.require("util").types; + if (types2) { + return types2; + } + return freeProcess && freeProcess.binding && freeProcess.binding("util"); + } catch (e3) { + } +}(); +var nodeUtil_default = nodeUtil; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isTypedArray.js +var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray; +var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default; +var isTypedArray_default = isTypedArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayLikeKeys.js +var objectProto7 = Object.prototype; +var hasOwnProperty5 = objectProto7.hasOwnProperty; +function arrayLikeKeys(value, inherited) { + var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length; + for (var key in value) { + if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. + (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. + isIndex_default(key, length)))) { + result.push(key); + } + } + return result; +} +var arrayLikeKeys_default = arrayLikeKeys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_overArg.js +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} +var overArg_default = overArg; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_nativeKeys.js +var nativeKeys = overArg_default(Object.keys, Object); +var nativeKeys_default = nativeKeys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseKeys.js +var objectProto8 = Object.prototype; +var hasOwnProperty6 = objectProto8.hasOwnProperty; +function baseKeys(object) { + if (!isPrototype_default(object)) { + return nativeKeys_default(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty6.call(object, key) && key != "constructor") { + result.push(key); + } + } + return result; +} +var baseKeys_default = baseKeys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/keys.js +function keys(object) { + return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object); +} +var keys_default = keys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_nativeKeysIn.js +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} +var nativeKeysIn_default = nativeKeysIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseKeysIn.js +var objectProto9 = Object.prototype; +var hasOwnProperty7 = objectProto9.hasOwnProperty; +function baseKeysIn(object) { + if (!isObject_default(object)) { + return nativeKeysIn_default(object); + } + var isProto = isPrototype_default(object), result = []; + for (var key in object) { + if (!(key == "constructor" && (isProto || !hasOwnProperty7.call(object, key)))) { + result.push(key); + } + } + return result; +} +var baseKeysIn_default = baseKeysIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/keysIn.js +function keysIn(object) { + return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object); +} +var keysIn_default = keysIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isKey.js +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; +var reIsPlainProp = /^\w*$/; +function isKey(value, object) { + if (isArray_default(value)) { + return false; + } + var type2 = typeof value; + if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol_default(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); +} +var isKey_default = isKey; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_nativeCreate.js +var nativeCreate = getNative_default(Object, "create"); +var nativeCreate_default = nativeCreate; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hashClear.js +function hashClear() { + this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}; + this.size = 0; +} +var hashClear_default = hashClear; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hashDelete.js +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} +var hashDelete_default = hashDelete; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hashGet.js +var HASH_UNDEFINED = "__lodash_hash_undefined__"; +var objectProto10 = Object.prototype; +var hasOwnProperty8 = objectProto10.hasOwnProperty; +function hashGet(key) { + var data = this.__data__; + if (nativeCreate_default) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty8.call(data, key) ? data[key] : void 0; +} +var hashGet_default = hashGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hashHas.js +var objectProto11 = Object.prototype; +var hasOwnProperty9 = objectProto11.hasOwnProperty; +function hashHas(key) { + var data = this.__data__; + return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty9.call(data, key); +} +var hashHas_default = hashHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hashSet.js +var HASH_UNDEFINED2 = "__lodash_hash_undefined__"; +function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value; + return this; +} +var hashSet_default = hashSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Hash.js +function Hash(entries2) { + var index = -1, length = entries2 == null ? 0 : entries2.length; + this.clear(); + while (++index < length) { + var entry = entries2[index]; + this.set(entry[0], entry[1]); + } +} +Hash.prototype.clear = hashClear_default; +Hash.prototype["delete"] = hashDelete_default; +Hash.prototype.get = hashGet_default; +Hash.prototype.has = hashHas_default; +Hash.prototype.set = hashSet_default; +var Hash_default = Hash; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_listCacheClear.js +function listCacheClear() { + this.__data__ = []; + this.size = 0; +} +var listCacheClear_default = listCacheClear; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_assocIndexOf.js +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq_default(array[length][0], key)) { + return length; + } + } + return -1; +} +var assocIndexOf_default = assocIndexOf; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_listCacheDelete.js +var arrayProto = Array.prototype; +var splice = arrayProto.splice; +function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf_default(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; +} +var listCacheDelete_default = listCacheDelete; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_listCacheGet.js +function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf_default(data, key); + return index < 0 ? void 0 : data[index][1]; +} +var listCacheGet_default = listCacheGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_listCacheHas.js +function listCacheHas(key) { + return assocIndexOf_default(this.__data__, key) > -1; +} +var listCacheHas_default = listCacheHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_listCacheSet.js +function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf_default(data, key); + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} +var listCacheSet_default = listCacheSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_ListCache.js +function ListCache(entries2) { + var index = -1, length = entries2 == null ? 0 : entries2.length; + this.clear(); + while (++index < length) { + var entry = entries2[index]; + this.set(entry[0], entry[1]); + } +} +ListCache.prototype.clear = listCacheClear_default; +ListCache.prototype["delete"] = listCacheDelete_default; +ListCache.prototype.get = listCacheGet_default; +ListCache.prototype.has = listCacheHas_default; +ListCache.prototype.set = listCacheSet_default; +var ListCache_default = ListCache; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Map.js +var Map2 = getNative_default(root_default, "Map"); +var Map_default = Map2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapCacheClear.js +function mapCacheClear() { + this.size = 0; + this.__data__ = { + "hash": new Hash_default(), + "map": new (Map_default || ListCache_default)(), + "string": new Hash_default() + }; +} +var mapCacheClear_default = mapCacheClear; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isKeyable.js +function isKeyable(value) { + var type2 = typeof value; + return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null; +} +var isKeyable_default = isKeyable; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getMapData.js +function getMapData(map2, key) { + var data = map2.__data__; + return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; +} +var getMapData_default = getMapData; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapCacheDelete.js +function mapCacheDelete(key) { + var result = getMapData_default(this, key)["delete"](key); + this.size -= result ? 1 : 0; + return result; +} +var mapCacheDelete_default = mapCacheDelete; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapCacheGet.js +function mapCacheGet(key) { + return getMapData_default(this, key).get(key); +} +var mapCacheGet_default = mapCacheGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapCacheHas.js +function mapCacheHas(key) { + return getMapData_default(this, key).has(key); +} +var mapCacheHas_default = mapCacheHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapCacheSet.js +function mapCacheSet(key, value) { + var data = getMapData_default(this, key), size = data.size; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} +var mapCacheSet_default = mapCacheSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_MapCache.js +function MapCache(entries2) { + var index = -1, length = entries2 == null ? 0 : entries2.length; + this.clear(); + while (++index < length) { + var entry = entries2[index]; + this.set(entry[0], entry[1]); + } +} +MapCache.prototype.clear = mapCacheClear_default; +MapCache.prototype["delete"] = mapCacheDelete_default; +MapCache.prototype.get = mapCacheGet_default; +MapCache.prototype.has = mapCacheHas_default; +MapCache.prototype.set = mapCacheSet_default; +var MapCache_default = MapCache; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/memoize.js +var FUNC_ERROR_TEXT = "Expected a function"; +function memoize(func, resolver) { + if (typeof func != "function" || resolver != null && typeof resolver != "function") { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache3 = memoized.cache; + if (cache3.has(key)) { + return cache3.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache3.set(key, result) || cache3; + return result; + }; + memoized.cache = new (memoize.Cache || MapCache_default)(); + return memoized; +} +memoize.Cache = MapCache_default; +var memoize_default = memoize; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_memoizeCapped.js +var MAX_MEMOIZE_SIZE = 500; +function memoizeCapped(func) { + var result = memoize_default(func, function(key) { + if (cache3.size === MAX_MEMOIZE_SIZE) { + cache3.clear(); + } + return key; + }); + var cache3 = result.cache; + return result; +} +var memoizeCapped_default = memoizeCapped; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stringToPath.js +var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; +var reEscapeChar = /\\(\\)?/g; +var stringToPath = memoizeCapped_default(function(string) { + var result = []; + if (string.charCodeAt(0) === 46) { + result.push(""); + } + string.replace(rePropName, function(match2, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match2); + }); + return result; +}); +var stringToPath_default = stringToPath; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/toString.js +function toString(value) { + return value == null ? "" : baseToString_default(value); +} +var toString_default = toString; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_castPath.js +function castPath(value, object) { + if (isArray_default(value)) { + return value; + } + return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value)); +} +var castPath_default = castPath; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_toKey.js +var INFINITY3 = 1 / 0; +function toKey(value) { + if (typeof value == "string" || isSymbol_default(value)) { + return value; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY3 ? "-0" : result; +} +var toKey_default = toKey; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseGet.js +function baseGet(object, path2) { + path2 = castPath_default(path2, object); + var index = 0, length = path2.length; + while (object != null && index < length) { + object = object[toKey_default(path2[index++])]; + } + return index && index == length ? object : void 0; +} +var baseGet_default = baseGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/get.js +function get(object, path2, defaultValue) { + var result = object == null ? void 0 : baseGet_default(object, path2); + return result === void 0 ? defaultValue : result; +} +var get_default = get; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayPush.js +function arrayPush(array, values3) { + var index = -1, length = values3.length, offset = array.length; + while (++index < length) { + array[offset + index] = values3[index]; + } + return array; +} +var arrayPush_default = arrayPush; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isFlattenable.js +var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0; +function isFlattenable(value) { + return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); +} +var isFlattenable_default = isFlattenable; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseFlatten.js +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, length = array.length; + predicate || (predicate = isFlattenable_default); + result || (result = []); + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush_default(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} +var baseFlatten_default = baseFlatten; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/flatten.js +function flatten(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten_default(array, 1) : []; +} +var flatten_default = flatten; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_flatRest.js +function flatRest(func) { + return setToString_default(overRest_default(func, void 0, flatten_default), func + ""); +} +var flatRest_default = flatRest; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getPrototype.js +var getPrototype = overArg_default(Object.getPrototypeOf, Object); +var getPrototype_default = getPrototype; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isPlainObject.js +var objectTag2 = "[object Object]"; +var funcProto3 = Function.prototype; +var objectProto12 = Object.prototype; +var funcToString3 = funcProto3.toString; +var hasOwnProperty10 = objectProto12.hasOwnProperty; +var objectCtorString = funcToString3.call(Object); +function isPlainObject(value) { + if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) { + return false; + } + var proto = getPrototype_default(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty10.call(proto, "constructor") && proto.constructor; + return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString; +} +var isPlainObject_default = isPlainObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseSlice.js +function baseSlice(array, start, end) { + var index = -1, length = array.length; + if (start < 0) { + start = -start > length ? 0 : length + start; + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : end - start >>> 0; + start >>>= 0; + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} +var baseSlice_default = baseSlice; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stackClear.js +function stackClear() { + this.__data__ = new ListCache_default(); + this.size = 0; +} +var stackClear_default = stackClear; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stackDelete.js +function stackDelete(key) { + var data = this.__data__, result = data["delete"](key); + this.size = data.size; + return result; +} +var stackDelete_default = stackDelete; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stackGet.js +function stackGet(key) { + return this.__data__.get(key); +} +var stackGet_default = stackGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stackHas.js +function stackHas(key) { + return this.__data__.has(key); +} +var stackHas_default = stackHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_stackSet.js +var LARGE_ARRAY_SIZE = 200; +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache_default) { + var pairs2 = data.__data__; + if (!Map_default || pairs2.length < LARGE_ARRAY_SIZE - 1) { + pairs2.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache_default(pairs2); + } + data.set(key, value); + this.size = data.size; + return this; +} +var stackSet_default = stackSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Stack.js +function Stack(entries2) { + var data = this.__data__ = new ListCache_default(entries2); + this.size = data.size; +} +Stack.prototype.clear = stackClear_default; +Stack.prototype["delete"] = stackDelete_default; +Stack.prototype.get = stackGet_default; +Stack.prototype.has = stackHas_default; +Stack.prototype.set = stackSet_default; +var Stack_default = Stack; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseAssign.js +function baseAssign(object, source) { + return object && copyObject_default(source, keys_default(source), object); +} +var baseAssign_default = baseAssign; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseAssignIn.js +function baseAssignIn(object, source) { + return object && copyObject_default(source, keysIn_default(source), object); +} +var baseAssignIn_default = baseAssignIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneBuffer.js +var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports; +var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module; +var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3; +var Buffer3 = moduleExports3 ? root_default.Buffer : void 0; +var allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : void 0; +function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + buffer.copy(result); + return result; +} +var cloneBuffer_default = cloneBuffer; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayFilter.js +function arrayFilter(array, predicate) { + var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} +var arrayFilter_default = arrayFilter; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/stubArray.js +function stubArray() { + return []; +} +var stubArray_default = stubArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getSymbols.js +var objectProto13 = Object.prototype; +var propertyIsEnumerable2 = objectProto13.propertyIsEnumerable; +var nativeGetSymbols = Object.getOwnPropertySymbols; +var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter_default(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable2.call(object, symbol); + }); +}; +var getSymbols_default = getSymbols; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_copySymbols.js +function copySymbols(source, object) { + return copyObject_default(source, getSymbols_default(source), object); +} +var copySymbols_default = copySymbols; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getSymbolsIn.js +var nativeGetSymbols2 = Object.getOwnPropertySymbols; +var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object) { + var result = []; + while (object) { + arrayPush_default(result, getSymbols_default(object)); + object = getPrototype_default(object); + } + return result; +}; +var getSymbolsIn_default = getSymbolsIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_copySymbolsIn.js +function copySymbolsIn(source, object) { + return copyObject_default(source, getSymbolsIn_default(source), object); +} +var copySymbolsIn_default = copySymbolsIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseGetAllKeys.js +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object)); +} +var baseGetAllKeys_default = baseGetAllKeys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getAllKeys.js +function getAllKeys(object) { + return baseGetAllKeys_default(object, keys_default, getSymbols_default); +} +var getAllKeys_default = getAllKeys; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getAllKeysIn.js +function getAllKeysIn(object) { + return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default); +} +var getAllKeysIn_default = getAllKeysIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_DataView.js +var DataView = getNative_default(root_default, "DataView"); +var DataView_default = DataView; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Promise.js +var Promise2 = getNative_default(root_default, "Promise"); +var Promise_default = Promise2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Set.js +var Set2 = getNative_default(root_default, "Set"); +var Set_default = Set2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getTag.js +var mapTag2 = "[object Map]"; +var objectTag3 = "[object Object]"; +var promiseTag = "[object Promise]"; +var setTag2 = "[object Set]"; +var weakMapTag2 = "[object WeakMap]"; +var dataViewTag2 = "[object DataView]"; +var dataViewCtorString = toSource_default(DataView_default); +var mapCtorString = toSource_default(Map_default); +var promiseCtorString = toSource_default(Promise_default); +var setCtorString = toSource_default(Set_default); +var weakMapCtorString = toSource_default(WeakMap_default); +var getTag = baseGetTag_default; +if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) { + getTag = function(value) { + var result = baseGetTag_default(value), Ctor = result == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : ""; + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag2; + case mapCtorString: + return mapTag2; + case promiseCtorString: + return promiseTag; + case setCtorString: + return setTag2; + case weakMapCtorString: + return weakMapTag2; + } + } + return result; + }; +} +var getTag_default = getTag; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_initCloneArray.js +var objectProto14 = Object.prototype; +var hasOwnProperty11 = objectProto14.hasOwnProperty; +function initCloneArray(array) { + var length = array.length, result = new array.constructor(length); + if (length && typeof array[0] == "string" && hasOwnProperty11.call(array, "index")) { + result.index = array.index; + result.input = array.input; + } + return result; +} +var initCloneArray_default = initCloneArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_Uint8Array.js +var Uint8Array2 = root_default.Uint8Array; +var Uint8Array_default = Uint8Array2; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneArrayBuffer.js +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer)); + return result; +} +var cloneArrayBuffer_default = cloneArrayBuffer; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneDataView.js +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} +var cloneDataView_default = cloneDataView; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneRegExp.js +var reFlags = /\w*$/; +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} +var cloneRegExp_default = cloneRegExp; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneSymbol.js +var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0; +var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0; +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} +var cloneSymbol_default = cloneSymbol; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cloneTypedArray.js +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} +var cloneTypedArray_default = cloneTypedArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_initCloneByTag.js +var boolTag2 = "[object Boolean]"; +var dateTag2 = "[object Date]"; +var mapTag3 = "[object Map]"; +var numberTag2 = "[object Number]"; +var regexpTag2 = "[object RegExp]"; +var setTag3 = "[object Set]"; +var stringTag2 = "[object String]"; +var symbolTag2 = "[object Symbol]"; +var arrayBufferTag2 = "[object ArrayBuffer]"; +var dataViewTag3 = "[object DataView]"; +var float32Tag2 = "[object Float32Array]"; +var float64Tag2 = "[object Float64Array]"; +var int8Tag2 = "[object Int8Array]"; +var int16Tag2 = "[object Int16Array]"; +var int32Tag2 = "[object Int32Array]"; +var uint8Tag2 = "[object Uint8Array]"; +var uint8ClampedTag2 = "[object Uint8ClampedArray]"; +var uint16Tag2 = "[object Uint16Array]"; +var uint32Tag2 = "[object Uint32Array]"; +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag2: + return cloneArrayBuffer_default(object); + case boolTag2: + case dateTag2: + return new Ctor(+object); + case dataViewTag3: + return cloneDataView_default(object, isDeep); + case float32Tag2: + case float64Tag2: + case int8Tag2: + case int16Tag2: + case int32Tag2: + case uint8Tag2: + case uint8ClampedTag2: + case uint16Tag2: + case uint32Tag2: + return cloneTypedArray_default(object, isDeep); + case mapTag3: + return new Ctor(); + case numberTag2: + case stringTag2: + return new Ctor(object); + case regexpTag2: + return cloneRegExp_default(object); + case setTag3: + return new Ctor(); + case symbolTag2: + return cloneSymbol_default(object); + } +} +var initCloneByTag_default = initCloneByTag; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_initCloneObject.js +function initCloneObject(object) { + return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {}; +} +var initCloneObject_default = initCloneObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsMap.js +var mapTag4 = "[object Map]"; +function baseIsMap(value) { + return isObjectLike_default(value) && getTag_default(value) == mapTag4; +} +var baseIsMap_default = baseIsMap; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isMap.js +var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap; +var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default; +var isMap_default = isMap; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsSet.js +var setTag4 = "[object Set]"; +function baseIsSet(value) { + return isObjectLike_default(value) && getTag_default(value) == setTag4; +} +var baseIsSet_default = baseIsSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isSet.js +var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet; +var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default; +var isSet_default = isSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseClone.js +var CLONE_DEEP_FLAG = 1; +var CLONE_FLAT_FLAG = 2; +var CLONE_SYMBOLS_FLAG = 4; +var argsTag3 = "[object Arguments]"; +var arrayTag2 = "[object Array]"; +var boolTag3 = "[object Boolean]"; +var dateTag3 = "[object Date]"; +var errorTag2 = "[object Error]"; +var funcTag3 = "[object Function]"; +var genTag2 = "[object GeneratorFunction]"; +var mapTag5 = "[object Map]"; +var numberTag3 = "[object Number]"; +var objectTag4 = "[object Object]"; +var regexpTag3 = "[object RegExp]"; +var setTag5 = "[object Set]"; +var stringTag3 = "[object String]"; +var symbolTag3 = "[object Symbol]"; +var weakMapTag3 = "[object WeakMap]"; +var arrayBufferTag3 = "[object ArrayBuffer]"; +var dataViewTag4 = "[object DataView]"; +var float32Tag3 = "[object Float32Array]"; +var float64Tag3 = "[object Float64Array]"; +var int8Tag3 = "[object Int8Array]"; +var int16Tag3 = "[object Int16Array]"; +var int32Tag3 = "[object Int32Array]"; +var uint8Tag3 = "[object Uint8Array]"; +var uint8ClampedTag3 = "[object Uint8ClampedArray]"; +var uint16Tag3 = "[object Uint16Array]"; +var uint32Tag3 = "[object Uint32Array]"; +var cloneableTags = {}; +cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag4] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag3] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true; +cloneableTags[errorTag2] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false; +function baseClone(value, bitmask, customizer, key, object, stack) { + var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; + if (customizer) { + result = object ? customizer(value, key, object, stack) : customizer(value); + } + if (result !== void 0) { + return result; + } + if (!isObject_default(value)) { + return value; + } + var isArr = isArray_default(value); + if (isArr) { + result = initCloneArray_default(value); + if (!isDeep) { + return copyArray_default(value, result); + } + } else { + var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2; + if (isBuffer_default(value)) { + return cloneBuffer_default(value, isDeep); + } + if (tag == objectTag4 || tag == argsTag3 || isFunc && !object) { + result = isFlat || isFunc ? {} : initCloneObject_default(value); + if (!isDeep) { + return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value)); + } + } else { + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag_default(value, tag, isDeep); + } + } + stack || (stack = new Stack_default()); + var stacked = stack.get(value); + if (stacked) { + return stacked; + } + stack.set(value, result); + if (isSet_default(value)) { + value.forEach(function(subValue) { + result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); + }); + } else if (isMap_default(value)) { + value.forEach(function(subValue, key2) { + result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); + }); + } + var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default; + var props = isArr ? void 0 : keysFunc(value); + arrayEach_default(props || value, function(subValue, key2) { + if (props) { + key2 = subValue; + subValue = value[key2]; + } + assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); + }); + return result; +} +var baseClone_default = baseClone; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_setCacheAdd.js +var HASH_UNDEFINED3 = "__lodash_hash_undefined__"; +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED3); + return this; +} +var setCacheAdd_default = setCacheAdd; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_setCacheHas.js +function setCacheHas(value) { + return this.__data__.has(value); +} +var setCacheHas_default = setCacheHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_SetCache.js +function SetCache(values3) { + var index = -1, length = values3 == null ? 0 : values3.length; + this.__data__ = new MapCache_default(); + while (++index < length) { + this.add(values3[index]); + } +} +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default; +SetCache.prototype.has = setCacheHas_default; +var SetCache_default = SetCache; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arraySome.js +function arraySome(array, predicate) { + var index = -1, length = array == null ? 0 : array.length; + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} +var arraySome_default = arraySome; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_cacheHas.js +function cacheHas(cache3, key) { + return cache3.has(key); +} +var cacheHas_default = cacheHas; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_equalArrays.js +var COMPARE_PARTIAL_FLAG = 1; +var COMPARE_UNORDERED_FLAG = 2; +function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + var arrStacked = stack.get(array); + var othStacked = stack.get(other); + if (arrStacked && othStacked) { + return arrStacked == other && othStacked == array; + } + var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0; + stack.set(array, other); + stack.set(other, array); + while (++index < arrLength) { + var arrValue = array[index], othValue = other[index]; + if (customizer) { + var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== void 0) { + if (compared) { + continue; + } + result = false; + break; + } + if (seen) { + if (!arraySome_default(other, function(othValue2, othIndex) { + if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + result = false; + break; + } + } + stack["delete"](array); + stack["delete"](other); + return result; +} +var equalArrays_default = equalArrays; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_mapToArray.js +function mapToArray(map2) { + var index = -1, result = Array(map2.size); + map2.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} +var mapToArray_default = mapToArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_setToArray.js +function setToArray(set2) { + var index = -1, result = Array(set2.size); + set2.forEach(function(value) { + result[++index] = value; + }); + return result; +} +var setToArray_default = setToArray; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_equalByTag.js +var COMPARE_PARTIAL_FLAG2 = 1; +var COMPARE_UNORDERED_FLAG2 = 2; +var boolTag4 = "[object Boolean]"; +var dateTag4 = "[object Date]"; +var errorTag3 = "[object Error]"; +var mapTag6 = "[object Map]"; +var numberTag4 = "[object Number]"; +var regexpTag4 = "[object RegExp]"; +var setTag6 = "[object Set]"; +var stringTag4 = "[object String]"; +var symbolTag4 = "[object Symbol]"; +var arrayBufferTag4 = "[object ArrayBuffer]"; +var dataViewTag5 = "[object DataView]"; +var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0; +var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0; +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag5: + if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { + return false; + } + object = object.buffer; + other = other.buffer; + case arrayBufferTag4: + if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) { + return false; + } + return true; + case boolTag4: + case dateTag4: + case numberTag4: + return eq_default(+object, +other); + case errorTag3: + return object.name == other.name && object.message == other.message; + case regexpTag4: + case stringTag4: + return object == other + ""; + case mapTag6: + var convert = mapToArray_default; + case setTag6: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG2; + convert || (convert = setToArray_default); + if (object.size != other.size && !isPartial) { + return false; + } + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG2; + stack.set(object, other); + var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack["delete"](object); + return result; + case symbolTag4: + if (symbolValueOf2) { + return symbolValueOf2.call(object) == symbolValueOf2.call(other); + } + } + return false; +} +var equalByTag_default = equalByTag; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_equalObjects.js +var COMPARE_PARTIAL_FLAG3 = 1; +var objectProto15 = Object.prototype; +var hasOwnProperty12 = objectProto15.hasOwnProperty; +function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length; + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty12.call(other, key))) { + return false; + } + } + var objStacked = stack.get(object); + var othStacked = stack.get(other); + if (objStacked && othStacked) { + return objStacked == other && othStacked == object; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], othValue = other[key]; + if (customizer) { + var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); + } + if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { + result = false; + break; + } + skipCtor || (skipCtor = key == "constructor"); + } + if (result && !skipCtor) { + var objCtor = object.constructor, othCtor = other.constructor; + if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { + result = false; + } + } + stack["delete"](object); + stack["delete"](other); + return result; +} +var equalObjects_default = equalObjects; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsEqualDeep.js +var COMPARE_PARTIAL_FLAG4 = 1; +var argsTag4 = "[object Arguments]"; +var arrayTag3 = "[object Array]"; +var objectTag5 = "[object Object]"; +var objectProto16 = Object.prototype; +var hasOwnProperty13 = objectProto16.hasOwnProperty; +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object), othTag = othIsArr ? arrayTag3 : getTag_default(other); + objTag = objTag == argsTag4 ? objectTag5 : objTag; + othTag = othTag == argsTag4 ? objectTag5 : othTag; + var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag; + if (isSameTag && isBuffer_default(object)) { + if (!isBuffer_default(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack_default()); + return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG4)) { + var objIsWrapped = objIsObj && hasOwnProperty13.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty13.call(other, "__wrapped__"); + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; + stack || (stack = new Stack_default()); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack_default()); + return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack); +} +var baseIsEqualDeep_default = baseIsEqualDeep; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsEqual.js +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) { + return value !== value && other !== other; + } + return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack); +} +var baseIsEqual_default = baseIsEqual; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIsMatch.js +var COMPARE_PARTIAL_FLAG5 = 1; +var COMPARE_UNORDERED_FLAG3 = 2; +function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, length = index, noCustomizer = !customizer; + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], objValue = object[key], srcValue = data[1]; + if (noCustomizer && data[2]) { + if (objValue === void 0 && !(key in object)) { + return false; + } + } else { + var stack = new Stack_default(); + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) { + return false; + } + } + } + return true; +} +var baseIsMatch_default = baseIsMatch; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_isStrictComparable.js +function isStrictComparable(value) { + return value === value && !isObject_default(value); +} +var isStrictComparable_default = isStrictComparable; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_getMatchData.js +function getMatchData(object) { + var result = keys_default(object), length = result.length; + while (length--) { + var key = result[length], value = object[key]; + result[length] = [key, value, isStrictComparable_default(value)]; + } + return result; +} +var getMatchData_default = getMatchData; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_matchesStrictComparable.js +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && (srcValue !== void 0 || key in Object(object)); + }; +} +var matchesStrictComparable_default = matchesStrictComparable; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseMatches.js +function baseMatches(source) { + var matchData = getMatchData_default(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable_default(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch_default(object, source, matchData); + }; +} +var baseMatches_default = baseMatches; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseHasIn.js +function baseHasIn(object, key) { + return object != null && key in Object(object); +} +var baseHasIn_default = baseHasIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_hasPath.js +function hasPath(object, path2, hasFunc) { + path2 = castPath_default(path2, object); + var index = -1, length = path2.length, result = false; + while (++index < length) { + var key = toKey_default(path2[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result || ++index != length) { + return result; + } + length = object == null ? 0 : object.length; + return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object)); +} +var hasPath_default = hasPath; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/hasIn.js +function hasIn(object, path2) { + return object != null && hasPath_default(object, path2, baseHasIn_default); +} +var hasIn_default = hasIn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseMatchesProperty.js +var COMPARE_PARTIAL_FLAG6 = 1; +var COMPARE_UNORDERED_FLAG4 = 2; +function baseMatchesProperty(path2, srcValue) { + if (isKey_default(path2) && isStrictComparable_default(srcValue)) { + return matchesStrictComparable_default(toKey_default(path2), srcValue); + } + return function(object) { + var objValue = get_default(object, path2); + return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path2) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4); + }; +} +var baseMatchesProperty_default = baseMatchesProperty; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseProperty.js +function baseProperty(key) { + return function(object) { + return object == null ? void 0 : object[key]; + }; +} +var baseProperty_default = baseProperty; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_basePropertyDeep.js +function basePropertyDeep(path2) { + return function(object) { + return baseGet_default(object, path2); + }; +} +var basePropertyDeep_default = basePropertyDeep; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/property.js +function property(path2) { + return isKey_default(path2) ? baseProperty_default(toKey_default(path2)) : basePropertyDeep_default(path2); +} +var property_default = property; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseIteratee.js +function baseIteratee(value) { + if (typeof value == "function") { + return value; + } + if (value == null) { + return identity_default; + } + if (typeof value == "object") { + return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value); + } + return property_default(value); +} +var baseIteratee_default = baseIteratee; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_createBaseFor.js +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} +var createBaseFor_default = createBaseFor; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseFor.js +var baseFor = createBaseFor_default(); +var baseFor_default = baseFor; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseForOwn.js +function baseForOwn(object, iteratee) { + return object && baseFor_default(object, iteratee, keys_default); +} +var baseForOwn_default = baseForOwn; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_createBaseEach.js +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike_default(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); + while (fromRight ? index-- : ++index < length) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} +var createBaseEach_default = createBaseEach; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseEach.js +var baseEach = createBaseEach_default(baseForOwn_default); +var baseEach_default = baseEach; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_assignMergeValue.js +function assignMergeValue(object, key, value) { + if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) { + baseAssignValue_default(object, key, value); + } +} +var assignMergeValue_default = assignMergeValue; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isArrayLikeObject.js +function isArrayLikeObject(value) { + return isObjectLike_default(value) && isArrayLike_default(value); +} +var isArrayLikeObject_default = isArrayLikeObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_safeGet.js +function safeGet(object, key) { + if (key === "constructor" && typeof object[key] === "function") { + return; + } + if (key == "__proto__") { + return; + } + return object[key]; +} +var safeGet_default = safeGet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/toPlainObject.js +function toPlainObject(value) { + return copyObject_default(value, keysIn_default(value)); +} +var toPlainObject_default = toPlainObject; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseMergeDeep.js +function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { + var objValue = safeGet_default(object, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue); + if (stacked) { + assignMergeValue_default(object, key, stacked); + return; + } + var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0; + var isCommon = newValue === void 0; + if (isCommon) { + var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue); + newValue = srcValue; + if (isArr || isBuff || isTyped) { + if (isArray_default(objValue)) { + newValue = objValue; + } else if (isArrayLikeObject_default(objValue)) { + newValue = copyArray_default(objValue); + } else if (isBuff) { + isCommon = false; + newValue = cloneBuffer_default(srcValue, true); + } else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray_default(srcValue, true); + } else { + newValue = []; + } + } else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) { + newValue = objValue; + if (isArguments_default(objValue)) { + newValue = toPlainObject_default(objValue); + } else if (!isObject_default(objValue) || isFunction_default(objValue)) { + newValue = initCloneObject_default(srcValue); + } + } else { + isCommon = false; + } + } + if (isCommon) { + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack["delete"](srcValue); + } + assignMergeValue_default(object, key, newValue); +} +var baseMergeDeep_default = baseMergeDeep; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseMerge.js +function baseMerge(object, source, srcIndex, customizer, stack) { + if (object === source) { + return; + } + baseFor_default(source, function(srcValue, key) { + stack || (stack = new Stack_default()); + if (isObject_default(srcValue)) { + baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack); + } else { + var newValue = customizer ? customizer(safeGet_default(object, key), srcValue, key + "", object, source, stack) : void 0; + if (newValue === void 0) { + newValue = srcValue; + } + assignMergeValue_default(object, key, newValue); + } + }, keysIn_default); +} +var baseMerge_default = baseMerge; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayIncludesWith.js +function arrayIncludesWith(array, value, comparator) { + var index = -1, length = array == null ? 0 : array.length; + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} +var arrayIncludesWith_default = arrayIncludesWith; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/last.js +function last(array) { + var length = array == null ? 0 : array.length; + return length ? array[length - 1] : void 0; +} +var last_default = last; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseMap.js +function baseMap(collection, iteratee) { + var index = -1, result = isArrayLike_default(collection) ? Array(collection.length) : []; + baseEach_default(collection, function(value, key, collection2) { + result[++index] = iteratee(value, key, collection2); + }); + return result; +} +var baseMap_default = baseMap; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/flattenDeep.js +var INFINITY4 = 1 / 0; +function flattenDeep(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten_default(array, INFINITY4) : []; +} +var flattenDeep_default = flattenDeep; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseGt.js +function baseGt(value, other) { + return value > other; +} +var baseGt_default = baseGt; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseValues.js +function baseValues(object, props) { + return arrayMap_default(props, function(key) { + return object[key]; + }); +} +var baseValues_default = baseValues; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/values.js +function values(object) { + return object == null ? [] : baseValues_default(object, keys_default(object)); +} +var values_default = values; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_parent.js +function parent(object, path2) { + return path2.length < 2 ? object : baseGet_default(object, baseSlice_default(path2, 0, -1)); +} +var parent_default = parent; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/isEqual.js +function isEqual(value, other) { + return baseIsEqual_default(value, other); +} +var isEqual_default = isEqual; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/mapValues.js +function mapValues(object, iteratee) { + var result = {}; + iteratee = baseIteratee_default(iteratee, 3); + baseForOwn_default(object, function(value, key, object2) { + baseAssignValue_default(result, key, iteratee(value, key, object2)); + }); + return result; +} +var mapValues_default = mapValues; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseExtremum.js +function baseExtremum(array, iteratee, comparator) { + var index = -1, length = array.length; + while (++index < length) { + var value = array[index], current = iteratee(value); + if (current != null && (computed === void 0 ? current === current && !isSymbol_default(current) : comparator(current, computed))) { + var computed = current, result = value; + } + } + return result; +} +var baseExtremum_default = baseExtremum; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/max.js +function max(array) { + return array && array.length ? baseExtremum_default(array, identity_default, baseGt_default) : void 0; +} +var max_default = max; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseSum.js +function baseSum(array, iteratee) { + var result, index = -1, length = array.length; + while (++index < length) { + var current = iteratee(array[index]); + if (current !== void 0) { + result = result === void 0 ? current : result + current; + } + } + return result; +} +var baseSum_default = baseSum; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/merge.js +var merge = createAssigner_default(function(object, source, srcIndex) { + baseMerge_default(object, source, srcIndex); +}); +var merge_default = merge; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseUnset.js +function baseUnset(object, path2) { + path2 = castPath_default(path2, object); + object = parent_default(object, path2); + return object == null || delete object[toKey_default(last_default(path2))]; +} +var baseUnset_default = baseUnset; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_customOmitClone.js +function customOmitClone(value) { + return isPlainObject_default(value) ? void 0 : value; +} +var customOmitClone_default = customOmitClone; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/omit.js +var CLONE_DEEP_FLAG2 = 1; +var CLONE_FLAT_FLAG2 = 2; +var CLONE_SYMBOLS_FLAG2 = 4; +var omit = flatRest_default(function(object, paths) { + var result = {}; + if (object == null) { + return result; + } + var isDeep = false; + paths = arrayMap_default(paths, function(path2) { + path2 = castPath_default(path2, object); + isDeep || (isDeep = path2.length > 1); + return path2; + }); + copyObject_default(object, getAllKeysIn_default(object), result); + if (isDeep) { + result = baseClone_default(result, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, customOmitClone_default); + } + var length = paths.length; + while (length--) { + baseUnset_default(result, paths[length]); + } + return result; +}); +var omit_default = omit; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseSortBy.js +function baseSortBy(array, comparer) { + var length = array.length; + array.sort(comparer); + while (length--) { + array[length] = array[length].value; + } + return array; +} +var baseSortBy_default = baseSortBy; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_compareAscending.js +function compareAscending(value, other) { + if (value !== other) { + var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value); + var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other); + if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { + return 1; + } + if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { + return -1; + } + } + return 0; +} +var compareAscending_default = compareAscending; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_compareMultiple.js +function compareMultiple(object, other, orders) { + var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; + while (++index < length) { + var result = compareAscending_default(objCriteria[index], othCriteria[index]); + if (result) { + if (index >= ordersLength) { + return result; + } + var order = orders[index]; + return result * (order == "desc" ? -1 : 1); + } + } + return object.index - other.index; +} +var compareMultiple_default = compareMultiple; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseOrderBy.js +function baseOrderBy(collection, iteratees, orders) { + if (iteratees.length) { + iteratees = arrayMap_default(iteratees, function(iteratee) { + if (isArray_default(iteratee)) { + return function(value) { + return baseGet_default(value, iteratee.length === 1 ? iteratee[0] : iteratee); + }; + } + return iteratee; + }); + } else { + iteratees = [identity_default]; + } + var index = -1; + iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default)); + var result = baseMap_default(collection, function(value, key, collection2) { + var criteria = arrayMap_default(iteratees, function(iteratee) { + return iteratee(value); + }); + return { "criteria": criteria, "index": ++index, "value": value }; + }); + return baseSortBy_default(result, function(object, other) { + return compareMultiple_default(object, other, orders); + }); +} +var baseOrderBy_default = baseOrderBy; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/orderBy.js +function orderBy(collection, iteratees, orders, guard) { + if (collection == null) { + return []; + } + if (!isArray_default(iteratees)) { + iteratees = iteratees == null ? [] : [iteratees]; + } + orders = guard ? void 0 : orders; + if (!isArray_default(orders)) { + orders = orders == null ? [] : [orders]; + } + return baseOrderBy_default(collection, iteratees, orders); +} +var orderBy_default = orderBy; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseRandom.js +var nativeFloor = Math.floor; +var nativeRandom = Math.random; +function baseRandom(lower, upper) { + return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); +} +var baseRandom_default = baseRandom; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseRange.js +var nativeCeil = Math.ceil; +var nativeMax2 = Math.max; +function baseRange(start, end, step, fromRight) { + var index = -1, length = nativeMax2(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); + while (length--) { + result[fromRight ? length : ++index] = start; + start += step; + } + return result; +} +var baseRange_default = baseRange; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_createRange.js +function createRange(fromRight) { + return function(start, end, step) { + if (step && typeof step != "number" && isIterateeCall_default(start, end, step)) { + end = step = void 0; + } + start = toFinite_default(start); + if (end === void 0) { + end = start; + start = 0; + } else { + end = toFinite_default(end); + } + step = step === void 0 ? start < end ? 1 : -1 : toFinite_default(step); + return baseRange_default(start, end, step, fromRight); + }; +} +var createRange_default = createRange; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/range.js +var range = createRange_default(); +var range_default = range; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_shuffleSelf.js +function shuffleSelf(array, size) { + var index = -1, length = array.length, lastIndex = length - 1; + size = size === void 0 ? length : size; + while (++index < size) { + var rand = baseRandom_default(index, lastIndex), value = array[rand]; + array[rand] = array[index]; + array[index] = value; + } + array.length = size; + return array; +} +var shuffleSelf_default = shuffleSelf; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_arrayShuffle.js +function arrayShuffle(array) { + return shuffleSelf_default(copyArray_default(array)); +} +var arrayShuffle_default = arrayShuffle; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseShuffle.js +function baseShuffle(collection) { + return shuffleSelf_default(values_default(collection)); +} +var baseShuffle_default = baseShuffle; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/shuffle.js +function shuffle(collection) { + var func = isArray_default(collection) ? arrayShuffle_default : baseShuffle_default; + return func(collection); +} +var shuffle_default = shuffle; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/sum.js +function sum(array) { + return array && array.length ? baseSum_default(array, identity_default) : 0; +} +var sum_default = sum; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_createSet.js +var INFINITY5 = 1 / 0; +var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY5) ? noop_default : function(values3) { + return new Set_default(values3); +}; +var createSet_default = createSet; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/_baseUniq.js +var LARGE_ARRAY_SIZE2 = 200; +function baseUniq(array, iteratee, comparator) { + var index = -1, includes = arrayIncludes_default, length = array.length, isCommon = true, result = [], seen = result; + if (comparator) { + isCommon = false; + includes = arrayIncludesWith_default; + } else if (length >= LARGE_ARRAY_SIZE2) { + var set2 = iteratee ? null : createSet_default(array); + if (set2) { + return setToArray_default(set2); + } + isCommon = false; + includes = cacheHas_default; + seen = new SetCache_default(); + } else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], computed = iteratee ? iteratee(value) : value; + value = comparator || value !== 0 ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} +var baseUniq_default = baseUniq; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/uniqBy.js +function uniqBy(array, iteratee) { + return array && array.length ? baseUniq_default(array, baseIteratee_default(iteratee, 2)) : []; +} +var uniqBy_default = uniqBy; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/unzip.js +var nativeMax3 = Math.max; +function unzip(array) { + if (!(array && array.length)) { + return []; + } + var length = 0; + array = arrayFilter_default(array, function(group) { + if (isArrayLikeObject_default(group)) { + length = nativeMax3(group.length, length); + return true; + } + }); + return baseTimes_default(length, function(index) { + return arrayMap_default(array, baseProperty_default(index)); + }); +} +var unzip_default = unzip; + +// ../../.yarn/cache/lodash-es-npm-4.17.21-b45832dfce-d1c3ee9411.zip/node_modules/lodash-es/zip.js +var zip = baseRest_default(unzip_default); +var zip_default = zip; + +// ../core/src/utils/symbols.ts +var ControlFlowExcluded = "__internalPort_ControlFlowExcluded"; +var ControlFlowExcludedPort = ControlFlowExcluded; +var Warnings = "__internalPort_Warnings"; +var WarningsPort = Warnings; + +// ../core/src/utils/genericUtilFunctions.ts +function isNotNull(value) { + return value != null; +} +var exhaustiveTuple = () => ( + // impressive inference from TS: it knows when the condition and the true branch can't both be satisfied + (...x3) => x3 +); + +// ../core/src/model/DataValue.ts +var dataTypes = exhaustiveTuple()( + "any", + "any[]", + "boolean", + "boolean[]", + "string", + "string[]", + "number", + "number[]", + "date", + "date[]", + "time", + "time[]", + "datetime", + "datetime[]", + "chat-message", + "chat-message[]", + "control-flow-excluded", + "control-flow-excluded[]", + "object", + "object[]", + "fn", + "fn", + "fn", + "fn", + "fn