From 3355f3ced0ec4b51a5c248939c0cf76eaf8a52b6 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 10:57:39 +0000 Subject: [PATCH 001/159] work in progress --- LICENSE | 2 +- package-lock.json | 480 ++++++++++++++++++++++++--------------------- package.json | 3 +- src/index.ts | 131 +------------ test/index.test.ts | 368 ---------------------------------- tsconfig.json | 14 +- 6 files changed, 271 insertions(+), 727 deletions(-) delete mode 100644 test/index.test.ts diff --git a/LICENSE b/LICENSE index 0692ceb5..427cc793 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 TypeFox GmbH +Copyright (c) 2022 TypeFox GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package-lock.json b/package-lock.json index 39956c3b..81a36e95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "MIT", "devDependencies": { "@vitest/coverage-c8": "^0.23.2", - "typescript": "^4.8.3", + "tsafe": "^1.1.1", + "typescript": "^4.8.4", "vitest": "^0.23.2" } }, @@ -20,10 +21,26 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@esbuild/android-arm": { + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.9.tgz", + "integrity": "sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/linux-loong64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.7.tgz", - "integrity": "sha512-IKznSJOsVUuyt7cDzzSZyqBEcZe+7WlBqTVXiF1OXP/4Nm387ToaXZ0fyLwI1iBlI/bzpxVq411QE2/Bt2XWWw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.9.tgz", + "integrity": "sha512-O+NfmkfRrb3uSsTa4jE3WApidSe3N5++fyOVGP1SmMZi4A3BZELkhUUvj5hwmMuNdlpzAZ8iAPz2vmcR7DCFQA==", "cpu": [ "loong64" ], @@ -92,19 +109,19 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.7.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.18.tgz", - "integrity": "sha512-m+6nTEOadJZuTPkKR/SYK3A2d7FZrgElol9UP1Kae90VVU4a6mxnPuLiIW1m4Cq4gZ/nWb9GrdVXJCoCazDAbg==", + "version": "18.7.23", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", + "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", "dev": true }, "node_modules/@vitest/coverage-c8": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.2.tgz", - "integrity": "sha512-VWT6zGj9iXEZCimnRLAUhf3siYVGIG9VryyMoo7B8zMOd+bnAbH8/7PhqvmjedVwa9wh61nkxqgG7/3Y/mzofQ==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.4.tgz", + "integrity": "sha512-jmD00a5DQH9gu9K+YdvVhcMuv2CzHvU4gCnySS40Ec5hKlXtlCzRfNHl00VnhfuBeaQUmaQYe60BLT413HyDdg==", "dev": true, "dependencies": { "c8": "^7.12.0", - "vitest": "0.23.2" + "vitest": "0.23.4" }, "funding": { "url": "https://github.com/sponsors/antfu" @@ -318,9 +335,9 @@ "dev": true }, "node_modules/esbuild": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.7.tgz", - "integrity": "sha512-7V8tzllIbAQV1M4QoE52ImKu8hT/NLGlGXkiDsbEU5PS6K8Mn09ZnYoS+dcmHxOS9CRsV4IRAMdT3I67IyUNXw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.9.tgz", + "integrity": "sha512-OnYr1rkMVxtmMHIAKZLMcEUlJmqcbxBz9QoBU8G9v455na0fuzlT/GLu6l+SRghrk0Mm2fSSciMmzV43Q8e0Gg==", "dev": true, "hasInstallScript": true, "bin": { @@ -330,33 +347,34 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/linux-loong64": "0.15.7", - "esbuild-android-64": "0.15.7", - "esbuild-android-arm64": "0.15.7", - "esbuild-darwin-64": "0.15.7", - "esbuild-darwin-arm64": "0.15.7", - "esbuild-freebsd-64": "0.15.7", - "esbuild-freebsd-arm64": "0.15.7", - "esbuild-linux-32": "0.15.7", - "esbuild-linux-64": "0.15.7", - "esbuild-linux-arm": "0.15.7", - "esbuild-linux-arm64": "0.15.7", - "esbuild-linux-mips64le": "0.15.7", - "esbuild-linux-ppc64le": "0.15.7", - "esbuild-linux-riscv64": "0.15.7", - "esbuild-linux-s390x": "0.15.7", - "esbuild-netbsd-64": "0.15.7", - "esbuild-openbsd-64": "0.15.7", - "esbuild-sunos-64": "0.15.7", - "esbuild-windows-32": "0.15.7", - "esbuild-windows-64": "0.15.7", - "esbuild-windows-arm64": "0.15.7" + "@esbuild/android-arm": "0.15.9", + "@esbuild/linux-loong64": "0.15.9", + "esbuild-android-64": "0.15.9", + "esbuild-android-arm64": "0.15.9", + "esbuild-darwin-64": "0.15.9", + "esbuild-darwin-arm64": "0.15.9", + "esbuild-freebsd-64": "0.15.9", + "esbuild-freebsd-arm64": "0.15.9", + "esbuild-linux-32": "0.15.9", + "esbuild-linux-64": "0.15.9", + "esbuild-linux-arm": "0.15.9", + "esbuild-linux-arm64": "0.15.9", + "esbuild-linux-mips64le": "0.15.9", + "esbuild-linux-ppc64le": "0.15.9", + "esbuild-linux-riscv64": "0.15.9", + "esbuild-linux-s390x": "0.15.9", + "esbuild-netbsd-64": "0.15.9", + "esbuild-openbsd-64": "0.15.9", + "esbuild-sunos-64": "0.15.9", + "esbuild-windows-32": "0.15.9", + "esbuild-windows-64": "0.15.9", + "esbuild-windows-arm64": "0.15.9" } }, "node_modules/esbuild-android-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.7.tgz", - "integrity": "sha512-p7rCvdsldhxQr3YHxptf1Jcd86dlhvc3EQmQJaZzzuAxefO9PvcI0GLOa5nCWem1AJ8iMRu9w0r5TG8pHmbi9w==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.9.tgz", + "integrity": "sha512-HQCX7FJn9T4kxZQkhPjNZC7tBWZqJvhlLHPU2SFzrQB/7nDXjmTIFpFTjt7Bd1uFpeXmuwf5h5fZm+x/hLnhbw==", "cpu": [ "x64" ], @@ -370,9 +388,9 @@ } }, "node_modules/esbuild-android-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.7.tgz", - "integrity": "sha512-L775l9ynJT7rVqRM5vo+9w5g2ysbOCfsdLV4CWanTZ1k/9Jb3IYlQ06VCI1edhcosTYJRECQFJa3eAvkx72eyQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.9.tgz", + "integrity": "sha512-E6zbLfqbFVCNEKircSHnPiSTsm3fCRxeIMPfrkS33tFjIAoXtwegQfVZqMGR0FlsvVxp2NEDOUz+WW48COCjSg==", "cpu": [ "arm64" ], @@ -386,9 +404,9 @@ } }, "node_modules/esbuild-darwin-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.7.tgz", - "integrity": "sha512-KGPt3r1c9ww009t2xLB6Vk0YyNOXh7hbjZ3EecHoVDxgtbUlYstMPDaReimKe6eOEfyY4hBEEeTvKwPsiH5WZg==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.9.tgz", + "integrity": "sha512-gI7dClcDN/HHVacZhTmGjl0/TWZcGuKJ0I7/xDGJwRQQn7aafZGtvagOFNmuOq+OBFPhlPv1T6JElOXb0unkSQ==", "cpu": [ "x64" ], @@ -402,9 +420,9 @@ } }, "node_modules/esbuild-darwin-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.7.tgz", - "integrity": "sha512-kBIHvtVqbSGajN88lYMnR3aIleH3ABZLLFLxwL2stiuIGAjGlQW741NxVTpUHQXUmPzxi6POqc9npkXa8AcSZQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.9.tgz", + "integrity": "sha512-VZIMlcRN29yg/sv7DsDwN+OeufCcoTNaTl3Vnav7dL/nvsApD7uvhVRbgyMzv0zU/PP0xRhhIpTyc7lxEzHGSw==", "cpu": [ "arm64" ], @@ -418,9 +436,9 @@ } }, "node_modules/esbuild-freebsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.7.tgz", - "integrity": "sha512-hESZB91qDLV5MEwNxzMxPfbjAhOmtfsr9Wnuci7pY6TtEh4UDuevmGmkUIjX/b+e/k4tcNBMf7SRQ2mdNuK/HQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.9.tgz", + "integrity": "sha512-uM4z5bTvuAXqPxrI204txhlsPIolQPWRMLenvGuCPZTnnGlCMF2QLs0Plcm26gcskhxewYo9LkkmYSS5Czrb5A==", "cpu": [ "x64" ], @@ -434,9 +452,9 @@ } }, "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.7.tgz", - "integrity": "sha512-dLFR0ChH5t+b3J8w0fVKGvtwSLWCv7GYT2Y2jFGulF1L5HftQLzVGN+6pi1SivuiVSmTh28FwUhi9PwQicXI6Q==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.9.tgz", + "integrity": "sha512-HHDjT3O5gWzicGdgJ5yokZVN9K9KG05SnERwl9nBYZaCjcCgj/sX8Ps1jvoFSfNCO04JSsHSOWo4qvxFuj8FoA==", "cpu": [ "arm64" ], @@ -450,9 +468,9 @@ } }, "node_modules/esbuild-linux-32": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.7.tgz", - "integrity": "sha512-v3gT/LsONGUZcjbt2swrMjwxo32NJzk+7sAgtxhGx1+ZmOFaTRXBAi1PPfgpeo/J//Un2jIKm/I+qqeo4caJvg==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.9.tgz", + "integrity": "sha512-AQIdE8FugGt1DkcekKi5ycI46QZpGJ/wqcMr7w6YUmOmp2ohQ8eO4sKUsOxNOvYL7hGEVwkndSyszR6HpVHLFg==", "cpu": [ "ia32" ], @@ -466,9 +484,9 @@ } }, "node_modules/esbuild-linux-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.7.tgz", - "integrity": "sha512-LxXEfLAKwOVmm1yecpMmWERBshl+Kv5YJ/1KnyAr6HRHFW8cxOEsEfisD3sVl/RvHyW//lhYUVSuy9jGEfIRAQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.9.tgz", + "integrity": "sha512-4RXjae7g6Qs7StZyiYyXTZXBlfODhb1aBVAjd+ANuPmMhWthQilWo7rFHwJwL7DQu1Fjej2sODAVwLbcIVsAYQ==", "cpu": [ "x64" ], @@ -482,9 +500,9 @@ } }, "node_modules/esbuild-linux-arm": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.7.tgz", - "integrity": "sha512-JKgAHtMR5f75wJTeuNQbyznZZa+pjiUHV7sRZp42UNdyXC6TiUYMW/8z8yIBAr2Fpad8hM1royZKQisqPABPvQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.9.tgz", + "integrity": "sha512-3Zf2GVGUOI7XwChH3qrnTOSqfV1V4CAc/7zLVm4lO6JT6wbJrTgEYCCiNSzziSju+J9Jhf9YGWk/26quWPC6yQ==", "cpu": [ "arm" ], @@ -498,9 +516,9 @@ } }, "node_modules/esbuild-linux-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.7.tgz", - "integrity": "sha512-P3cfhudpzWDkglutWgXcT2S7Ft7o2e3YDMrP1n0z2dlbUZghUkKCyaWw0zhp4KxEEzt/E7lmrtRu/pGWnwb9vw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.9.tgz", + "integrity": "sha512-a+bTtxJmYmk9d+s2W4/R1SYKDDAldOKmWjWP0BnrWtDbvUBNOm++du0ysPju4mZVoEFgS1yLNW+VXnG/4FNwdQ==", "cpu": [ "arm64" ], @@ -514,9 +532,9 @@ } }, "node_modules/esbuild-linux-mips64le": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.7.tgz", - "integrity": "sha512-T7XKuxl0VpeFLCJXub6U+iybiqh0kM/bWOTb4qcPyDDwNVhLUiPcGdG2/0S7F93czUZOKP57YiLV8YQewgLHKw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.9.tgz", + "integrity": "sha512-Zn9HSylDp89y+TRREMDoGrc3Z4Hs5u56ozZLQCiZAUx2+HdbbXbWdjmw3FdTJ/i7t5Cew6/Q+6kfO3KCcFGlyw==", "cpu": [ "mips64el" ], @@ -530,9 +548,9 @@ } }, "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.7.tgz", - "integrity": "sha512-6mGuC19WpFN7NYbecMIJjeQgvDb5aMuvyk0PDYBJrqAEMkTwg3Z98kEKuCm6THHRnrgsdr7bp4SruSAxEM4eJw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.9.tgz", + "integrity": "sha512-OEiOxNAMH9ENFYqRsWUj3CWyN3V8P3ZXyfNAtX5rlCEC/ERXrCEFCJji/1F6POzsXAzxvUJrTSTCy7G6BhA6Fw==", "cpu": [ "ppc64" ], @@ -546,9 +564,9 @@ } }, "node_modules/esbuild-linux-riscv64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.7.tgz", - "integrity": "sha512-uUJsezbswAYo/X7OU/P+PuL/EI9WzxsEQXDekfwpQ23uGiooxqoLFAPmXPcRAt941vjlY9jtITEEikWMBr+F/g==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.9.tgz", + "integrity": "sha512-ukm4KsC3QRausEFjzTsOZ/qqazw0YvJsKmfoZZm9QW27OHjk2XKSQGGvx8gIEswft/Sadp03/VZvAaqv5AIwNA==", "cpu": [ "riscv64" ], @@ -562,9 +580,9 @@ } }, "node_modules/esbuild-linux-s390x": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.7.tgz", - "integrity": "sha512-+tO+xOyTNMc34rXlSxK7aCwJgvQyffqEM5MMdNDEeMU3ss0S6wKvbBOQfgd5jRPblfwJ6b+bKiz0g5nABpY0QQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.9.tgz", + "integrity": "sha512-uDOQEH55wQ6ahcIKzQr3VyjGc6Po/xblLGLoUk3fVL1qjlZAibtQr6XRfy5wPJLu/M2o0vQKLq4lyJ2r1tWKcw==", "cpu": [ "s390x" ], @@ -578,9 +596,9 @@ } }, "node_modules/esbuild-netbsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.7.tgz", - "integrity": "sha512-yVc4Wz+Pu3cP5hzm5kIygNPrjar/v5WCSoRmIjCPWfBVJkZNb5brEGKUlf+0Y759D48BCWa0WHrWXaNy0DULTQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.9.tgz", + "integrity": "sha512-yWgxaYTQz+TqX80wXRq6xAtb7GSBAp6gqLKfOdANg9qEmAI1Bxn04IrQr0Mzm4AhxvGKoHzjHjMgXbCCSSDxcw==", "cpu": [ "x64" ], @@ -594,9 +612,9 @@ } }, "node_modules/esbuild-openbsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.7.tgz", - "integrity": "sha512-GsimbwC4FSR4lN3wf8XmTQ+r8/0YSQo21rWDL0XFFhLHKlzEA4SsT1Tl8bPYu00IU6UWSJ+b3fG/8SB69rcuEQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.9.tgz", + "integrity": "sha512-JmS18acQl4iSAjrEha1MfEmUMN4FcnnrtTaJ7Qg0tDCOcgpPPQRLGsZqhes0vmx8VA6IqRyScqXvaL7+Q0Uf3A==", "cpu": [ "x64" ], @@ -610,9 +628,9 @@ } }, "node_modules/esbuild-sunos-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.7.tgz", - "integrity": "sha512-8CDI1aL/ts0mDGbWzjEOGKXnU7p3rDzggHSBtVryQzkSOsjCHRVe0iFYUuhczlxU1R3LN/E7HgUO4NXzGGP/Ag==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.9.tgz", + "integrity": "sha512-UKynGSWpzkPmXW3D2UMOD9BZPIuRaSqphxSCwScfEE05Be3KAmvjsBhht1fLzKpiFVJb0BYMd4jEbWMyJ/z1hQ==", "cpu": [ "x64" ], @@ -626,9 +644,9 @@ } }, "node_modules/esbuild-windows-32": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.7.tgz", - "integrity": "sha512-cOnKXUEPS8EGCzRSFa1x6NQjGhGsFlVgjhqGEbLTPsA7x4RRYiy2RKoArNUU4iR2vHmzqS5Gr84MEumO/wxYKA==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.9.tgz", + "integrity": "sha512-aqXvu4/W9XyTVqO/hw3rNxKE1TcZiEYHPsXM9LwYmKSX9/hjvfIJzXwQBlPcJ/QOxedfoMVH0YnhhQ9Ffb0RGA==", "cpu": [ "ia32" ], @@ -642,9 +660,9 @@ } }, "node_modules/esbuild-windows-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.7.tgz", - "integrity": "sha512-7MI08Ec2sTIDv+zH6StNBKO+2hGUYIT42GmFyW6MBBWWtJhTcQLinKS6ldIN1d52MXIbiJ6nXyCJ+LpL4jBm3Q==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.9.tgz", + "integrity": "sha512-zm7h91WUmlS4idMtjvCrEeNhlH7+TNOmqw5dJPJZrgFaxoFyqYG6CKDpdFCQXdyKpD5yvzaQBOMVTCBVKGZDEg==", "cpu": [ "x64" ], @@ -658,9 +676,9 @@ } }, "node_modules/esbuild-windows-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.7.tgz", - "integrity": "sha512-R06nmqBlWjKHddhRJYlqDd3Fabx9LFdKcjoOy08YLimwmsswlFBJV4rXzZCxz/b7ZJXvrZgj8DDv1ewE9+StMw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.9.tgz", + "integrity": "sha512-yQEVIv27oauAtvtuhJVfSNMztJJX47ismRS6Sv2QMVV9RM+6xjbMWuuwM2nxr5A2/gj/mu2z9YlQxiwoFRCfZA==", "cpu": [ "arm64" ], @@ -1207,9 +1225,9 @@ } }, "node_modules/strip-literal": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.1.tgz", - "integrity": "sha512-z+F/xmDM8GOdvA5UoZXFxEnxdvMOZ+XEBIwjfLfc8hMSuHpGxjXAUCfuEo+t1GOHSb8+qgI/IBRpxXVMaABYWA==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", + "integrity": "sha512-pv48ybn4iE1O9RLgCAN0iU4Xv7RlBTiit6DKmMiErbs9x1wH6vXBs45tWc0H5wUIF6TLTrKweqkmYF/iraQKNw==", "dev": true, "dependencies": { "acorn": "^8.8.0" @@ -1257,9 +1275,9 @@ } }, "node_modules/tinybench": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.1.5.tgz", - "integrity": "sha512-ak+PZZEuH3mw6CCFOgf5S90YH0MARnZNhxjhjguAmoJimEMAJuNip/rJRd6/wyylHItomVpKTzZk9zrhTrQCoQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", + "integrity": "sha512-VxB1P8DUhpCC1j2WtKgFYpv3SwU7vtnfmG29cK7hXcqyD7lLiq6SYCVpDceoAT99mvTN+V8Ay4OdtZQbB72+Sw==", "dev": true }, "node_modules/tinypool": { @@ -1280,6 +1298,12 @@ "node": ">=14.0.0" } }, + "node_modules/tsafe": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", + "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", + "dev": true + }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -1290,9 +1314,9 @@ } }, "node_modules/typescript": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", - "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -1317,9 +1341,9 @@ } }, "node_modules/vite": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.2.tgz", - "integrity": "sha512-wTDKPkiVbeT+drTPdkuvjVIC/2vKKUc1w3qNOuwgpyvPCZF6fvdxB5v5WEcCsqaYea0zrwA4+XialJKCHM3oVQ==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.4.tgz", + "integrity": "sha512-JoQI08aBjY9lycL7jcEq4p9o1xUjq5aRvdH4KWaXtkSx7e7RpAh9D3IjzDWRD4Fg44LS3oDAIOG/Kq1L+82psA==", "dev": true, "dependencies": { "esbuild": "^0.15.6", @@ -1358,9 +1382,9 @@ } }, "node_modules/vitest": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.2.tgz", - "integrity": "sha512-kTBKp3ROPDkYC+x2zWt4znkDtnT08W1FQ6ngRFuqxpBGNuNVS+eWZKfffr8y2JGvEzZ9EzMAOcNaiqMj/FZqMw==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.4.tgz", + "integrity": "sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==", "dev": true, "dependencies": { "@types/chai": "^4.3.3", @@ -1369,7 +1393,7 @@ "chai": "^4.3.6", "debug": "^4.3.4", "local-pkg": "^0.4.2", - "strip-literal": "^0.4.0", + "strip-literal": "^0.4.1", "tinybench": "^2.1.5", "tinypool": "^0.3.0", "tinyspy": "^1.0.2", @@ -1503,10 +1527,17 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "@esbuild/android-arm": { + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.9.tgz", + "integrity": "sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==", + "dev": true, + "optional": true + }, "@esbuild/linux-loong64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.7.tgz", - "integrity": "sha512-IKznSJOsVUuyt7cDzzSZyqBEcZe+7WlBqTVXiF1OXP/4Nm387ToaXZ0fyLwI1iBlI/bzpxVq411QE2/Bt2XWWw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.9.tgz", + "integrity": "sha512-O+NfmkfRrb3uSsTa4jE3WApidSe3N5++fyOVGP1SmMZi4A3BZELkhUUvj5hwmMuNdlpzAZ8iAPz2vmcR7DCFQA==", "dev": true, "optional": true }, @@ -1560,19 +1591,19 @@ "dev": true }, "@types/node": { - "version": "18.7.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.18.tgz", - "integrity": "sha512-m+6nTEOadJZuTPkKR/SYK3A2d7FZrgElol9UP1Kae90VVU4a6mxnPuLiIW1m4Cq4gZ/nWb9GrdVXJCoCazDAbg==", + "version": "18.7.23", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", + "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", "dev": true }, "@vitest/coverage-c8": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.2.tgz", - "integrity": "sha512-VWT6zGj9iXEZCimnRLAUhf3siYVGIG9VryyMoo7B8zMOd+bnAbH8/7PhqvmjedVwa9wh61nkxqgG7/3Y/mzofQ==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.4.tgz", + "integrity": "sha512-jmD00a5DQH9gu9K+YdvVhcMuv2CzHvU4gCnySS40Ec5hKlXtlCzRfNHl00VnhfuBeaQUmaQYe60BLT413HyDdg==", "dev": true, "requires": { "c8": "^7.12.0", - "vitest": "0.23.2" + "vitest": "0.23.4" } }, "acorn": { @@ -1736,171 +1767,172 @@ "dev": true }, "esbuild": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.7.tgz", - "integrity": "sha512-7V8tzllIbAQV1M4QoE52ImKu8hT/NLGlGXkiDsbEU5PS6K8Mn09ZnYoS+dcmHxOS9CRsV4IRAMdT3I67IyUNXw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.9.tgz", + "integrity": "sha512-OnYr1rkMVxtmMHIAKZLMcEUlJmqcbxBz9QoBU8G9v455na0fuzlT/GLu6l+SRghrk0Mm2fSSciMmzV43Q8e0Gg==", "dev": true, "requires": { - "@esbuild/linux-loong64": "0.15.7", - "esbuild-android-64": "0.15.7", - "esbuild-android-arm64": "0.15.7", - "esbuild-darwin-64": "0.15.7", - "esbuild-darwin-arm64": "0.15.7", - "esbuild-freebsd-64": "0.15.7", - "esbuild-freebsd-arm64": "0.15.7", - "esbuild-linux-32": "0.15.7", - "esbuild-linux-64": "0.15.7", - "esbuild-linux-arm": "0.15.7", - "esbuild-linux-arm64": "0.15.7", - "esbuild-linux-mips64le": "0.15.7", - "esbuild-linux-ppc64le": "0.15.7", - "esbuild-linux-riscv64": "0.15.7", - "esbuild-linux-s390x": "0.15.7", - "esbuild-netbsd-64": "0.15.7", - "esbuild-openbsd-64": "0.15.7", - "esbuild-sunos-64": "0.15.7", - "esbuild-windows-32": "0.15.7", - "esbuild-windows-64": "0.15.7", - "esbuild-windows-arm64": "0.15.7" + "@esbuild/android-arm": "0.15.9", + "@esbuild/linux-loong64": "0.15.9", + "esbuild-android-64": "0.15.9", + "esbuild-android-arm64": "0.15.9", + "esbuild-darwin-64": "0.15.9", + "esbuild-darwin-arm64": "0.15.9", + "esbuild-freebsd-64": "0.15.9", + "esbuild-freebsd-arm64": "0.15.9", + "esbuild-linux-32": "0.15.9", + "esbuild-linux-64": "0.15.9", + "esbuild-linux-arm": "0.15.9", + "esbuild-linux-arm64": "0.15.9", + "esbuild-linux-mips64le": "0.15.9", + "esbuild-linux-ppc64le": "0.15.9", + "esbuild-linux-riscv64": "0.15.9", + "esbuild-linux-s390x": "0.15.9", + "esbuild-netbsd-64": "0.15.9", + "esbuild-openbsd-64": "0.15.9", + "esbuild-sunos-64": "0.15.9", + "esbuild-windows-32": "0.15.9", + "esbuild-windows-64": "0.15.9", + "esbuild-windows-arm64": "0.15.9" } }, "esbuild-android-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.7.tgz", - "integrity": "sha512-p7rCvdsldhxQr3YHxptf1Jcd86dlhvc3EQmQJaZzzuAxefO9PvcI0GLOa5nCWem1AJ8iMRu9w0r5TG8pHmbi9w==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.9.tgz", + "integrity": "sha512-HQCX7FJn9T4kxZQkhPjNZC7tBWZqJvhlLHPU2SFzrQB/7nDXjmTIFpFTjt7Bd1uFpeXmuwf5h5fZm+x/hLnhbw==", "dev": true, "optional": true }, "esbuild-android-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.7.tgz", - "integrity": "sha512-L775l9ynJT7rVqRM5vo+9w5g2ysbOCfsdLV4CWanTZ1k/9Jb3IYlQ06VCI1edhcosTYJRECQFJa3eAvkx72eyQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.9.tgz", + "integrity": "sha512-E6zbLfqbFVCNEKircSHnPiSTsm3fCRxeIMPfrkS33tFjIAoXtwegQfVZqMGR0FlsvVxp2NEDOUz+WW48COCjSg==", "dev": true, "optional": true }, "esbuild-darwin-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.7.tgz", - "integrity": "sha512-KGPt3r1c9ww009t2xLB6Vk0YyNOXh7hbjZ3EecHoVDxgtbUlYstMPDaReimKe6eOEfyY4hBEEeTvKwPsiH5WZg==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.9.tgz", + "integrity": "sha512-gI7dClcDN/HHVacZhTmGjl0/TWZcGuKJ0I7/xDGJwRQQn7aafZGtvagOFNmuOq+OBFPhlPv1T6JElOXb0unkSQ==", "dev": true, "optional": true }, "esbuild-darwin-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.7.tgz", - "integrity": "sha512-kBIHvtVqbSGajN88lYMnR3aIleH3ABZLLFLxwL2stiuIGAjGlQW741NxVTpUHQXUmPzxi6POqc9npkXa8AcSZQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.9.tgz", + "integrity": "sha512-VZIMlcRN29yg/sv7DsDwN+OeufCcoTNaTl3Vnav7dL/nvsApD7uvhVRbgyMzv0zU/PP0xRhhIpTyc7lxEzHGSw==", "dev": true, "optional": true }, "esbuild-freebsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.7.tgz", - "integrity": "sha512-hESZB91qDLV5MEwNxzMxPfbjAhOmtfsr9Wnuci7pY6TtEh4UDuevmGmkUIjX/b+e/k4tcNBMf7SRQ2mdNuK/HQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.9.tgz", + "integrity": "sha512-uM4z5bTvuAXqPxrI204txhlsPIolQPWRMLenvGuCPZTnnGlCMF2QLs0Plcm26gcskhxewYo9LkkmYSS5Czrb5A==", "dev": true, "optional": true }, "esbuild-freebsd-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.7.tgz", - "integrity": "sha512-dLFR0ChH5t+b3J8w0fVKGvtwSLWCv7GYT2Y2jFGulF1L5HftQLzVGN+6pi1SivuiVSmTh28FwUhi9PwQicXI6Q==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.9.tgz", + "integrity": "sha512-HHDjT3O5gWzicGdgJ5yokZVN9K9KG05SnERwl9nBYZaCjcCgj/sX8Ps1jvoFSfNCO04JSsHSOWo4qvxFuj8FoA==", "dev": true, "optional": true }, "esbuild-linux-32": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.7.tgz", - "integrity": "sha512-v3gT/LsONGUZcjbt2swrMjwxo32NJzk+7sAgtxhGx1+ZmOFaTRXBAi1PPfgpeo/J//Un2jIKm/I+qqeo4caJvg==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.9.tgz", + "integrity": "sha512-AQIdE8FugGt1DkcekKi5ycI46QZpGJ/wqcMr7w6YUmOmp2ohQ8eO4sKUsOxNOvYL7hGEVwkndSyszR6HpVHLFg==", "dev": true, "optional": true }, "esbuild-linux-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.7.tgz", - "integrity": "sha512-LxXEfLAKwOVmm1yecpMmWERBshl+Kv5YJ/1KnyAr6HRHFW8cxOEsEfisD3sVl/RvHyW//lhYUVSuy9jGEfIRAQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.9.tgz", + "integrity": "sha512-4RXjae7g6Qs7StZyiYyXTZXBlfODhb1aBVAjd+ANuPmMhWthQilWo7rFHwJwL7DQu1Fjej2sODAVwLbcIVsAYQ==", "dev": true, "optional": true }, "esbuild-linux-arm": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.7.tgz", - "integrity": "sha512-JKgAHtMR5f75wJTeuNQbyznZZa+pjiUHV7sRZp42UNdyXC6TiUYMW/8z8yIBAr2Fpad8hM1royZKQisqPABPvQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.9.tgz", + "integrity": "sha512-3Zf2GVGUOI7XwChH3qrnTOSqfV1V4CAc/7zLVm4lO6JT6wbJrTgEYCCiNSzziSju+J9Jhf9YGWk/26quWPC6yQ==", "dev": true, "optional": true }, "esbuild-linux-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.7.tgz", - "integrity": "sha512-P3cfhudpzWDkglutWgXcT2S7Ft7o2e3YDMrP1n0z2dlbUZghUkKCyaWw0zhp4KxEEzt/E7lmrtRu/pGWnwb9vw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.9.tgz", + "integrity": "sha512-a+bTtxJmYmk9d+s2W4/R1SYKDDAldOKmWjWP0BnrWtDbvUBNOm++du0ysPju4mZVoEFgS1yLNW+VXnG/4FNwdQ==", "dev": true, "optional": true }, "esbuild-linux-mips64le": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.7.tgz", - "integrity": "sha512-T7XKuxl0VpeFLCJXub6U+iybiqh0kM/bWOTb4qcPyDDwNVhLUiPcGdG2/0S7F93czUZOKP57YiLV8YQewgLHKw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.9.tgz", + "integrity": "sha512-Zn9HSylDp89y+TRREMDoGrc3Z4Hs5u56ozZLQCiZAUx2+HdbbXbWdjmw3FdTJ/i7t5Cew6/Q+6kfO3KCcFGlyw==", "dev": true, "optional": true }, "esbuild-linux-ppc64le": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.7.tgz", - "integrity": "sha512-6mGuC19WpFN7NYbecMIJjeQgvDb5aMuvyk0PDYBJrqAEMkTwg3Z98kEKuCm6THHRnrgsdr7bp4SruSAxEM4eJw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.9.tgz", + "integrity": "sha512-OEiOxNAMH9ENFYqRsWUj3CWyN3V8P3ZXyfNAtX5rlCEC/ERXrCEFCJji/1F6POzsXAzxvUJrTSTCy7G6BhA6Fw==", "dev": true, "optional": true }, "esbuild-linux-riscv64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.7.tgz", - "integrity": "sha512-uUJsezbswAYo/X7OU/P+PuL/EI9WzxsEQXDekfwpQ23uGiooxqoLFAPmXPcRAt941vjlY9jtITEEikWMBr+F/g==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.9.tgz", + "integrity": "sha512-ukm4KsC3QRausEFjzTsOZ/qqazw0YvJsKmfoZZm9QW27OHjk2XKSQGGvx8gIEswft/Sadp03/VZvAaqv5AIwNA==", "dev": true, "optional": true }, "esbuild-linux-s390x": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.7.tgz", - "integrity": "sha512-+tO+xOyTNMc34rXlSxK7aCwJgvQyffqEM5MMdNDEeMU3ss0S6wKvbBOQfgd5jRPblfwJ6b+bKiz0g5nABpY0QQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.9.tgz", + "integrity": "sha512-uDOQEH55wQ6ahcIKzQr3VyjGc6Po/xblLGLoUk3fVL1qjlZAibtQr6XRfy5wPJLu/M2o0vQKLq4lyJ2r1tWKcw==", "dev": true, "optional": true }, "esbuild-netbsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.7.tgz", - "integrity": "sha512-yVc4Wz+Pu3cP5hzm5kIygNPrjar/v5WCSoRmIjCPWfBVJkZNb5brEGKUlf+0Y759D48BCWa0WHrWXaNy0DULTQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.9.tgz", + "integrity": "sha512-yWgxaYTQz+TqX80wXRq6xAtb7GSBAp6gqLKfOdANg9qEmAI1Bxn04IrQr0Mzm4AhxvGKoHzjHjMgXbCCSSDxcw==", "dev": true, "optional": true }, "esbuild-openbsd-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.7.tgz", - "integrity": "sha512-GsimbwC4FSR4lN3wf8XmTQ+r8/0YSQo21rWDL0XFFhLHKlzEA4SsT1Tl8bPYu00IU6UWSJ+b3fG/8SB69rcuEQ==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.9.tgz", + "integrity": "sha512-JmS18acQl4iSAjrEha1MfEmUMN4FcnnrtTaJ7Qg0tDCOcgpPPQRLGsZqhes0vmx8VA6IqRyScqXvaL7+Q0Uf3A==", "dev": true, "optional": true }, "esbuild-sunos-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.7.tgz", - "integrity": "sha512-8CDI1aL/ts0mDGbWzjEOGKXnU7p3rDzggHSBtVryQzkSOsjCHRVe0iFYUuhczlxU1R3LN/E7HgUO4NXzGGP/Ag==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.9.tgz", + "integrity": "sha512-UKynGSWpzkPmXW3D2UMOD9BZPIuRaSqphxSCwScfEE05Be3KAmvjsBhht1fLzKpiFVJb0BYMd4jEbWMyJ/z1hQ==", "dev": true, "optional": true }, "esbuild-windows-32": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.7.tgz", - "integrity": "sha512-cOnKXUEPS8EGCzRSFa1x6NQjGhGsFlVgjhqGEbLTPsA7x4RRYiy2RKoArNUU4iR2vHmzqS5Gr84MEumO/wxYKA==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.9.tgz", + "integrity": "sha512-aqXvu4/W9XyTVqO/hw3rNxKE1TcZiEYHPsXM9LwYmKSX9/hjvfIJzXwQBlPcJ/QOxedfoMVH0YnhhQ9Ffb0RGA==", "dev": true, "optional": true }, "esbuild-windows-64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.7.tgz", - "integrity": "sha512-7MI08Ec2sTIDv+zH6StNBKO+2hGUYIT42GmFyW6MBBWWtJhTcQLinKS6ldIN1d52MXIbiJ6nXyCJ+LpL4jBm3Q==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.9.tgz", + "integrity": "sha512-zm7h91WUmlS4idMtjvCrEeNhlH7+TNOmqw5dJPJZrgFaxoFyqYG6CKDpdFCQXdyKpD5yvzaQBOMVTCBVKGZDEg==", "dev": true, "optional": true }, "esbuild-windows-arm64": { - "version": "0.15.7", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.7.tgz", - "integrity": "sha512-R06nmqBlWjKHddhRJYlqDd3Fabx9LFdKcjoOy08YLimwmsswlFBJV4rXzZCxz/b7ZJXvrZgj8DDv1ewE9+StMw==", + "version": "0.15.9", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.9.tgz", + "integrity": "sha512-yQEVIv27oauAtvtuhJVfSNMztJJX47ismRS6Sv2QMVV9RM+6xjbMWuuwM2nxr5A2/gj/mu2z9YlQxiwoFRCfZA==", "dev": true, "optional": true }, @@ -2283,9 +2315,9 @@ } }, "strip-literal": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.1.tgz", - "integrity": "sha512-z+F/xmDM8GOdvA5UoZXFxEnxdvMOZ+XEBIwjfLfc8hMSuHpGxjXAUCfuEo+t1GOHSb8+qgI/IBRpxXVMaABYWA==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", + "integrity": "sha512-pv48ybn4iE1O9RLgCAN0iU4Xv7RlBTiit6DKmMiErbs9x1wH6vXBs45tWc0H5wUIF6TLTrKweqkmYF/iraQKNw==", "dev": true, "requires": { "acorn": "^8.8.0" @@ -2318,9 +2350,9 @@ } }, "tinybench": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.1.5.tgz", - "integrity": "sha512-ak+PZZEuH3mw6CCFOgf5S90YH0MARnZNhxjhjguAmoJimEMAJuNip/rJRd6/wyylHItomVpKTzZk9zrhTrQCoQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", + "integrity": "sha512-VxB1P8DUhpCC1j2WtKgFYpv3SwU7vtnfmG29cK7hXcqyD7lLiq6SYCVpDceoAT99mvTN+V8Ay4OdtZQbB72+Sw==", "dev": true }, "tinypool": { @@ -2335,6 +2367,12 @@ "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", "dev": true }, + "tsafe": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", + "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", + "dev": true + }, "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -2342,9 +2380,9 @@ "dev": true }, "typescript": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", - "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true }, "v8-to-istanbul": { @@ -2359,9 +2397,9 @@ } }, "vite": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.2.tgz", - "integrity": "sha512-wTDKPkiVbeT+drTPdkuvjVIC/2vKKUc1w3qNOuwgpyvPCZF6fvdxB5v5WEcCsqaYea0zrwA4+XialJKCHM3oVQ==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.4.tgz", + "integrity": "sha512-JoQI08aBjY9lycL7jcEq4p9o1xUjq5aRvdH4KWaXtkSx7e7RpAh9D3IjzDWRD4Fg44LS3oDAIOG/Kq1L+82psA==", "dev": true, "requires": { "esbuild": "^0.15.6", @@ -2372,9 +2410,9 @@ } }, "vitest": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.2.tgz", - "integrity": "sha512-kTBKp3ROPDkYC+x2zWt4znkDtnT08W1FQ6ngRFuqxpBGNuNVS+eWZKfffr8y2JGvEzZ9EzMAOcNaiqMj/FZqMw==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.4.tgz", + "integrity": "sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==", "dev": true, "requires": { "@types/chai": "^4.3.3", @@ -2383,7 +2421,7 @@ "chai": "^4.3.6", "debug": "^4.3.4", "local-pkg": "^0.4.2", - "strip-literal": "^0.4.0", + "strip-literal": "^0.4.1", "tinybench": "^2.1.5", "tinypool": "^0.3.0", "tinyspy": "^1.0.2", diff --git a/package.json b/package.json index 4add58ff..be665bdc 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "license": "MIT", "devDependencies": { "@vitest/coverage-c8": "^0.23.2", - "typescript": "^4.8.3", + "tsafe": "^1.1.1", + "typescript": "^4.8.4", "vitest": "^0.23.2" } } diff --git a/src/index.ts b/src/index.ts index c9e02103..3c35bbac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,134 +1,7 @@ /****************************************************************************** - * Copyright 2021 TypeFox GmbH + * Copyright 2022 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. ******************************************************************************/ -/* eslint-disable @typescript-eslint/no-explicit-any */ - -/** - * A `Module` is a description of possibly grouped service factories. - * - * Given a type I = { group: { service: A } }, - * Module := { group: { service: (injector: I) => A } } - * - * Making `I` available during the creation of `I` allows us to create cyclic - * dependencies. - */ - export type Module = { - [K in keyof T]: Module | ((injector: I) => T[K]) -} - -/** - * Given a set of modules, the inject function returns a lazily evaluted injector - * that injects dependencies into the requested service when it is requested the - * first time. Subsequent requests will return the same service. - * - * In the case of cyclic dependencies, an Error will be thrown. This can be fixed - * by injecting a provider `() => T` instead of a `T`. - * - * Please note that the arguments may be objects or arrays. However, the result will - * be an object. Using it with for..of will have no effect. - * - * @param module1 first Module - * @param module2 (optional) second Module - * @param module3 (optional) third Module - * @param module4 (optional) fourth Module - * @returns a new object of type I - */ -export function inject(module1: Module, module2?: Module, module3?: Module, module4?: Module): I { - const module = [module1, module2, module3, module4].reduce(_merge, {}) as Module; - return _inject(module); -} - -const isProxy = Symbol('isProxy'); - -export function eagerLoad(item: any): any { - if (item && item[isProxy]) { - for (const value of Object.values(item)) { - eagerLoad(value); - } - } - return item; -} - -/** - * Helper function that returns an injector by creating a proxy. - * Invariant: injector is of type I. If injector is undefined, then T = I. - */ -function _inject(module: Module, injector?: any): T { - const proxy: any = new Proxy({} as any, { - deleteProperty: () => false, - get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), - getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in - has: (_, prop) => prop in module, // used by ..in.. - ownKeys: () => [...Reflect.ownKeys(module), isProxy] // used by for..in - }); - proxy[isProxy] = true; - return proxy; -} - -/** - * Internally used to tag a requested dependency, directly before calling the factory. - * This allows us to find cycles during instance creation. - */ -const __requested__ = Symbol(); - -/** - * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from - * the module description. The result of service factories is cached. Groups are - * recursively proxied. - * - * @param obj an object holding all group proxies and services - * @param prop the key of a value within obj - * @param module an object containing groups and service factories - * @param injector the first level proxy that provides access to all values - * @returns the requested value `obj[prop]` - * @throws Error if a dependency cycle is detected - */ -function _resolve(obj: any, prop: string | symbol | number, module: Module, injector: I): T[keyof T] | undefined { - if (prop in obj) { - if (obj[prop] instanceof Error) { - throw new Error('Construction failure. Please make sure that your dependencies are constructable.', {cause: obj[prop]}); - } - if (obj[prop] === __requested__) { - throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); - } - return obj[prop]; - } else if (prop in module) { - const value: Module | ((injector: I) => T[keyof T]) = module[prop as keyof T]; - obj[prop] = __requested__; - try { - obj[prop] = (typeof value === 'function') ? value(injector) : _inject(value, injector); - } catch (error) { - obj[prop] = error instanceof Error ? error : undefined; - throw error; - } - return obj[prop]; - } else { - return undefined; - } -} - -/** - * Performs a deep-merge of two modules by writing source entries into the target module. - * - * @param target the module which is written - * @param source the module which is read - * @returns the target module - */ -function _merge(target: Module, source?: Module): Module { - if (source) { - for (const [key, value2] of Object.entries(source)) { - if (value2 !== undefined) { - const value1 = target[key]; - if (value1 !== null && value2 !== null && typeof value1 === 'object' && typeof value2 === 'object') { - target[key] = _merge(value1, value2); - } else { - target[key] = value2; - } - } - } - } - return target; -} +export { inject, eager, Factory, Module, Container } from './inject'; diff --git a/test/index.test.ts b/test/index.test.ts deleted file mode 100644 index faeff4b9..00000000 --- a/test/index.test.ts +++ /dev/null @@ -1,368 +0,0 @@ -/****************************************************************************** - * Copyright 2021 TypeFox GmbH - * This program and the accompanying materials are made available under the - * terms of the MIT License, which is available in the project root. - ******************************************************************************/ - -/* eslint-disable @typescript-eslint/no-empty-function */ -/* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable @typescript-eslint/no-unused-vars */ - -import { describe, expect, it } from 'vitest' -import { inject, Module } from '../src'; - -describe('A dependency type', () => { - - it('should be undefined', () => checkType(undefined)); - it('should be null', () => checkType(null)); - it('should be false', () => checkType(false)); - it('should be true', () => checkType(true)); - it('should be 0', () => checkType(0)); - it('should be 1', () => checkType(1)); - it('should be empty string', () => checkType('')); - it('should be non empty string', () => checkType('a')); - it('should be empty array', () => checkType([])); - it('should be non-empty array', () => checkType([1])); - it('should be empty object', () => checkType({})); - it('should be non-empty object', () => checkType({ _: 1 })); - it('should be class', () => checkType(class { })); - it('should be class instance', () => checkType(new (class { })())); - it('should be function', () => checkType(function a() { })); - it('should be lambda', () => checkType(() => { })); - - function checkType(value: unknown): void { - const api = inject({ _: () => value }); - expect(typeof api._).toBe(typeof value); - expect(api._).toBe(value); - } - -}); - -describe('A non-cyclic dependency', () => { - - it('should be callable', () => { - expect( - inject({ dep: () => () => true }).dep() - ).toBe(true); - }); - - it('should be constructable', () => { - class A { } - expect( - new (inject({ dep: () => A }).dep)() - ).toBeInstanceOf(A); - }); - - it('should be getable', () => { - expect( - inject({ dep: () => ({ a: true }) }).dep.a - ).toBe(true); - }); - - it('should be result on an idempotent api call', () => { - const api = inject({ dep: () => ({}) }); - expect(api.dep).toBe(api.dep); - }); - -}); - -describe('A cyclic dependency', () => { - - // this is a requirement for the following tests - it('should be injected lazily', () => { - const api = createCycle(undefined); - expect(api.a).not.toBeUndefined(); - expect(api.b).not.toBeUndefined(); - expect(api.a.b).toBe(api.b); - expect(api.b.a()).toBe(api.a); - }); - - it('should be result on an idempotent api call', () => { - const api = createA({}); - expect(api.testee).not.toBeUndefined(); - expect(api.testee).toBe(api.testee); - }); - - it('should be callable', () => { - expect( - createA(() => true).testee() - ).toBe(true); - }); - - it('should be constructable', () => { - class A { } - expect( - new (createA(A).testee)() - ).toBeInstanceOf(A); - }); - - it('should be getable', () => { - expect( - createA({ c: true }).testee.c - ).toBe(true); - }); - - it('should work with for..in', () => { - const obj = createA(1); - const res: string[] = []; - for (const key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - res.push(key); - } - } - expect(res).toEqual(['b', 'testee']); - }); - - interface API { - a: A - b: B - } - - class A { - b: B; - testee: T; - constructor(b: B, testee: T) { - this.b = b; - this.testee = testee; - } - } - - class B { - a: () => A; - constructor(api: API) { - this.a = () => api.a; - } - } - - function createCycle(testee: T): API { - return inject({ - a: ({ b }) => new A(b, testee), - b: (api) => new B(api) - }); - } - - function createA(testee: T): A { - const api = createCycle(testee); - api.a; // initializes cycle - return api.b.a(); - } - -}); - -describe('The inject function', () => { - - it('should forward construction error', () => { - interface API { first: { a: boolean }, second: { b: boolean } } - const createFirst = () => { throw new Error('construction error'); }; - const createSecond = ({ first }: API) => ({ b: first.a }); - expect(() => - inject({ first: createFirst, second: createSecond }).second - ).toThrowError('construction error'); - }); - - it('should properly forward past construction errors when building multiple times', () => { - //before fixing issue #463 a second attempt was leading to a cycle detection error (wrong direction for debugging people) - interface API { first: { a: boolean }, second: { b: boolean }, third: { c: boolean } } - const createFirst = () => { throw new Error('construction error'); }; - const createSecond = ({ first }: API) => ({ b: first.a }); - const createThird = ({ first }: API) => ({ c: first.a }); - const result = inject({ first: createFirst, second: createSecond, third: createThird }); - expect(() => - result.second - ).toThrowError('construction error'); - expect(() => - result.second - ).toThrowError(/Construction failure/); //where cause is Error('construction error') - }); - - it('should work with arrays', () => { - const api = inject([ - () => true, - () => 1 - ]); - expect(api[0]).toBe(true); - expect(api[1]).toBe(1); - expect(api[2]).toBeUndefined(); - }); - - it('should work with objects', () => { - const api = inject({ - a: () => true, - b: () => 1 - }); - expect(api.a).toBe(true); - expect(api.b).toBe(1); - expect((api as any).c).toBeUndefined(); - }); - - it('should allow cycles in class constructors', () => { - interface API { a: A, b: B } - class A { - b: B; - constructor({ b }: API) { this.b = b; } - } - class B { - a: () => A; - constructor(api: API) { this.a = () => api.a; } - } - expect(() => - inject({ a: (api: API) => new A(api), b: (api: API) => new B(api) }).a - ).not.toThrow(); - }); - - it('should allow cycles in functions', () => { - type API = { a: A, b: B } - type A = { b: B } - type B = { a: () => A } - const createA = ({ b }: API) => ({ b }); - const createB = (api: API) => ({ a: () => api.a }); - expect(() => - inject({ a: createA, b: createB }).a - ).not.toThrow(); - }); - - it('should throw when cyclic dependency is accessed during class construction', () => { - interface API { a: A, b: B } - class A { - a: boolean; - constructor({ b }: API) { this.a = b.b; } - } - class B { - b: boolean; - constructor({ a }: API) { this.b = a.a; } - } - expect(() => - inject({ a: (api: API) => new A(api), b: (api: API) => new B(api) }).a - ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); - }); - - it('should throw when cyclic dependency is accessed during factory function call', () => { - interface API { a: { a: boolean }, b: { b: boolean } } - const createA = ({ b }: API) => ({ a: b.b }); - const createB = ({ a }: API) => ({ b: a.a }); - expect(() => - inject({ a: createA, b: createB }).a - ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); - }); - - it('should merge groups', () => { - - class A { - } - - class B extends A { - constructor(a: A) { - super(); - } - a = 1; - } - - interface I1 { - groupA: { - service1: A - } - } - - interface I2 { - groupB: { - groupC: { - service2: A - } - } - } - - const m1: Module = { - groupA: { - service1: () => new A() - } - }; - - const m2: Module = { - groupB: { - groupC: { - service2: () => new A() - } - } - }; - - const m3 = { // intentionally not declared as Module - groupB: { - groupC: { - // injector may have an arbitrary type but - // the inject() call will fail for m3 if no module - // exists that provides that injector - service2: (injector: I1) => new B(injector.groupA.service1) - } - }, - x: () => 1 - }; - - const xxx = inject(m1, m2, m3); - - const a: A = xxx.groupA.service1; // infers A - const ab: A & B = xxx.groupB.groupC.service2; // infers A & B - const x: number = xxx.x; // infers number - - expect(a).toBeInstanceOf(A); - expect(ab).toBeInstanceOf(B); - expect(x).toBe(1); - }); - -}); - -describe('The inject result', () => { - - it('should be immutable', () => { - const api: any = inject({ a: () => 1 }); - expect(() => delete api.a).toThrowError('\'deleteProperty\' on proxy: trap returned falsish for property \'a\''); - expect(api.a).toBe(1); - }); - - it('should work with for..in', () => { - const obj = inject({ a: () => 1, b: () => 2 }); - const res: string[] = []; - for (const key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - res.push(key); - } - } - expect(res).toEqual(['a', 'b']); - }); - - it('should throw error when used with for..of', () => { - const obj = inject([() => 1, () => 'a']); - expect(() => { - for (const _ of obj) { - // We expect an error here - } - }).toThrowError(); - }); - - it('should work with ..in.. for array', () => { - const obj = inject([() => 1]); - expect(0 in obj).toBe(true); - expect(1 in obj).toBe(false); - expect(obj[0]).toBe(1); - }); - - it('should work with ..in.. for object', () => { - const obj = inject({ a: () => 1 }); - expect('a' in obj).toBe(true); - expect('b' in obj).toBe(false); - }); - - it('should be extensible', () => { - const obj: any = inject({}); - expect(Object.isExtensible(obj)).toBe(true); - expect(obj.a).toBeUndefined(); - expect(() => obj.a = 1).not.toThrow(); - expect(obj.a).toBe(1); - }); - - it('should be sealable', () => { - const obj: any = Object.seal(inject({})); - expect(Object.isExtensible(obj)).toBe(false); - expect(() => (obj.a = 1)).toThrowError('Cannot define property a, object is not extensible'); - }); - -}); diff --git a/tsconfig.json b/tsconfig.json index 1a5b8b19..e4addd50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,15 @@ { "compilerOptions": { - "target": "ES2017", // emitted JavaScript version + "target": "ES6", // emitted JavaScript version + "lib": ["ES6"], // specify library files to be included in the compilation "module": "commonjs", // generated module code - "lib": ["ESNext"], // specify library files to be included in the compilation - "declaration": true, // gnerates corresponding '.d.ts' file - "declarationMap": true, // generates a sourcemap for each corresponding '.d.ts' file - "sourceMap": true, "rootDir": "./src", // source folder "outDir": "./dist", // *.d.ts goes here - "strict": true, // enable all strict type-checking options - "skipLibCheck": true // skip type checking all .d.ts files + "declaration": true, // gnerates corresponding '.d.ts' file + "declarationMap": true, // generates a sourcemap for each corresponding '.d.ts' file + "skipLibCheck": true, // skip type checking all .d.ts files + "sourceMap": true, // generates a sourcemap for each corresponding '.ts' file + "strict": true // enable all strict type-checking options }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "dist"] From 1e545ec71f6203a507cff07e6b15851034f9093e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 10:57:57 +0000 Subject: [PATCH 002/159] work in progress --- src/base.ts | 33 ++ src/inject.ts | 181 +++++++++ src/merge.ts | 58 +++ test/base.test.ts | 201 ++++++++++ test/inject.test.ts | 374 ++++++++++++++++++ test/merge.test.ts | 911 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1758 insertions(+) create mode 100644 src/base.ts create mode 100644 src/inject.ts create mode 100644 src/merge.ts create mode 100644 test/base.test.ts create mode 100644 test/inject.test.ts create mode 100644 test/merge.test.ts diff --git a/src/base.ts b/src/base.ts new file mode 100644 index 00000000..9f96e94e --- /dev/null +++ b/src/base.ts @@ -0,0 +1,33 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +// ✅ represents a function, i.e. a possible empty list of arguments and a return type +export type Fn = (...args: A) => R; + +// ✅ represents an object, i.e. an associative array with possbily no properties +export type Obj = + T extends Record ? ( + T extends Fn ? never : + T extends any[] ? never : + T + ) : never; + +/* TODO(@@dd): DELME --> +// ✅ If T is an intersection A & B, the union of all properties of A and B is returned, otherwise T is returned +// TODO(@@dd): better name? Unify or Unite? +export type Union = T extends Obj ? { + [K in keyof T]: T[K]; +} : T; +<-- DELME */ + +// ✅ tests if a value is an object +export function isObj(t: T): t is Obj { + return t !== null && typeof t === 'object' && !Array.isArray(t); +} + +export function keys>(obj: T): PropertyKey[] { + return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; +} diff --git a/src/inject.ts b/src/inject.ts new file mode 100644 index 00000000..4cec2697 --- /dev/null +++ b/src/inject.ts @@ -0,0 +1,181 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { Fn, Obj, isObj, keys } from "./base"; +import { merge, MergeArray } from "./merge"; + +/** + * Internally used by {@link eager} to tag an injector. + * When {@link inject} is called, all eager injectors of the merged module arguments will be called. + */ +const isEager = Symbol(); + +/** + * Internally used by {@link _resolve} to tag a requested dependency, directly before calling the factory. + * This allows us to find cycles during instance creation. + */ +const isRequested = Symbol(); + +// ✅ a module that can be passed to the inject function +export type Module = + C extends Obj ? T extends Obj ? { // ensure C and T are real ojects { ... } + [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy + } : never : never; + +// ✅ Internal. InverseModule> := T +type InverseModule = M extends Fn ? ReturnType : { + [K in keyof M]: InverseModule +}; + +// ✅ transforms a list of modules to an IoC container +export type Container = InverseModule>; + +// ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) +export type Factory = (ctr: C) => T; + +/** + * An internal type that reflects that an {@link Injector} will be eagerly initialized. + * See {@link eager}. + */ +type InternalFactory = Factory & { [isEager]?: boolean }; + +/** + * Decorates an {@link Injector} for eager initialization with {@link inject}. + * + * @param factory + */ + export function eager(factory: Factory): Factory { + return (factory as InternalFactory)[isEager] + ? factory + : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ) as InternalFactory; +} + +/** + * Given a set of modules, the inject function returns a lazily evaluted injector + * that injects dependencies into the requested service when it is requested the + * first time. Subsequent requests will return the same service. + * + * In the case of cyclic dependencies, an Error will be thrown. This can be fixed + * by injecting a provider `() => T` instead of a `T`. + * + * Please note that the arguments may be objects or arrays. However, the result will + * be an object. Using it with for..of will have no effect. + * + * @param module1 first Module + * @param module2 (optional) second Module + * @param module3 (optional) third Module + * @param module4 (optional) fourth Module + * @returns a new object of type I + */ +// ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use +export function inject(...modules: M): Container { + const module = modules.reduce(merge, {}) as MergeArray; + return createContainer(module); +} + +function createContainer(module: MergeArray): Container { + const eagerServices = []; + const container = proxify(module/*TODO(@@dd):, eagerServices*/); + // TODO(@@dd): create eager services + return container as Container; +} + +function proxify, C>(module: M, container?: C): InverseModule { + const obj: any = {}; + keys(module).forEach(key => { + const value = module[key]; + if (isObj(value)) { + obj[key] = proxify(value, container ?? obj); + } else if (typeof value === 'function') { + obj[key] = new Proxy({}, { + deleteProperty: () => false, + get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), + getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in + has: (_, prop) => prop in module, // used by ..in.. + ownKeys: () => Reflect.ownKeys(module) // used by for..in + }); + } else { + throw new Error(); // TODO(@@dd): error message + } + }); + return obj; + /* + } else if (typeof module === 'function') { + const proxy: any = new Proxy({}, { + deleteProperty: () => false, + get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), + getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in + has: (_, prop) => prop in module, // used by ..in.. + ownKeys: () => Reflect.ownKeys(module) // used by for..in + }); + if ((t as InternalFactory)[isEager]) { + /* TODO(@@dd): stackOfEagerModules.push(module) + } + return proxy; + } else { + throw new Error(''); // TODO(@@dd) + } + */ +} + +// ================================= BACKUP ================================= +// ================================= BACKUP ================================= +// ================================= BACKUP ================================= + +// /** +// * Helper function that returns an injector by creating a proxy. +// * Invariant: injector is of type I. If injector is undefined, then T = I. +// */ +// function _inject(module: Module, injector?: any): C { +// if (injector && injector.hasOwnProperty(isEager)) { +// return isRequested as C; +// } else { +// const proxy: C = new Proxy({} as any, { +// deleteProperty: () => false, +// get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), +// getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in +// has: (_, prop) => prop in module, // used by ..in.. +// ownKeys: () => Reflect.ownKeys(module) // used by for..in +// }); +// return proxy; +// } +// } + +/** + * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from + * the module description. The result of service factories is cached. Groups are + * recursively proxied. + * + * @param obj an object holding all group proxies and services + * @param prop the key of a value within obj + * @param module an object containing groups and service factories + * @param injector the first level proxy that provides access to all values + * @returns the requested value `obj[prop]` + * @throws Error if a dependency cycle is detected + */ +function _resolve(obj: any, prop: PropertyKey, module: Module, factory: I): T[keyof T] | undefined { + if (prop in obj) { + if (obj[prop] instanceof Error) { + throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); + } + if (obj[prop] === isRequested) { + throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + } + return obj[prop]; + } else if (prop in module) { + const value: Module | ((factory: I) => T[keyof T]) = module[prop as keyof T]; + obj[prop] = isRequested; + try { + obj[prop] = (typeof value === 'function') ? value(factory) : _inject(value, factory); + } catch (error) { + obj[prop] = error instanceof Error ? error : undefined; + throw error; + } + return obj[prop]; + } else { + return undefined; + } +} diff --git a/src/merge.ts b/src/merge.ts new file mode 100644 index 00000000..ec08d6a4 --- /dev/null +++ b/src/merge.ts @@ -0,0 +1,58 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { Fn, Obj, isObj, keys } from './base'; + +// ✅ merges N modules by merging them pair-wise from right to left +export type MergeArray[]> = + M extends [] ? {} : // no modules => empty result + M extends [Head, ...Tail] ? ( + Tail extends [] ? Head : Merge>, Head> + ) : never; + +// ✅ merge two arbitrary values +// Rule 1: mergining something with never resolves to never +// Rule 2: mergining something with any resolves to any +// Rule 3: mergining something with unknown resolves to unknown +export type Merge = + Or, Is> extends true ? never : + Or, Is> extends true ? any : + Or, Is> extends true ? unknown : + S extends Record + ? T extends Record ? MergeObjects : never + : T extends Record ? never : (S extends T ? S : never); + +// ✅ merge two objects +type MergeObjects, T extends Record> = { + [K in keyof S | keyof T]: + K extends keyof S + ? (K extends keyof T ? Merge : S[K]) + : (K extends keyof T ? T[K] : never) +}; + +// ✅ head of a list +type Head = A extends [] ? never : + Fn extends (head: infer H, ...tail: any[]) => any ? H : never; + +// ✅ tail of a list +type Tail = + Fn extends (head: any, ...tail: infer T) => any ? T : never; + +// ✅ is checks if type T1 strictly equals type T2 +type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; + +// ✅ logical or tests if condition C1 or condition C2 is true +type Or = C1 extends true ? true : C2 extends true ? true : false; + +// ✅ merge two objects, the signature is compatible with the reducer callback of Array.prototype.reduce +export function merge(target: Obj, source: Obj): Merge { + keys(source).forEach(key => { + const sourceValue = source[key]; + const targetValue = target[key]; + (target as any)[key] = isObj(sourceValue) && isObj(targetValue) ? merge(targetValue, sourceValue) : sourceValue; + }); + return target as Merge; +} diff --git a/test/base.test.ts b/test/base.test.ts new file mode 100644 index 00000000..26f98258 --- /dev/null +++ b/test/base.test.ts @@ -0,0 +1,201 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { describe, expect, it } from 'vitest' +import {assert as tsafeAssert, Equals, Extends, Not } from 'tsafe'; +import { Fn, Obj, isObj } from '../src/base'; + +describe('type Fn', () => { + + it('should cover () => any', () => { + tsafeAssert any, Fn>>(); + }); + + it('should cover () => void', () => { + tsafeAssert void, Fn>>(); + }); + + it('should cover (...args: any[]) => any', () => { + tsafeAssert any, Fn>>(); + }); + + it('should cover typeof fn', () => { + tsafeAssert>(); + }); + + it('should not cover undefined', () => { + tsafeAssert>>(); + }); + + it('should not cover null', () => { + tsafeAssert>>(); + }); + + it('should not cover boolean', () => { + tsafeAssert>>(); + }); + + it('should not cover number', () => { + tsafeAssert>>(); + }); + + it('should not cover string', () => { + tsafeAssert>>(); + }); + + it('should not cover array', () => { + tsafeAssert>>(); + }); + + it('should not cover object', () => { + tsafeAssert>>(); + }); + + it('should not cover class', () => { + tsafeAssert>>(); + }); + +}); + +describe('type Obj', () => { + + it('should be {}', () => { + tsafeAssert, {}>>(); + }); + + it('should be { a: 1 } & { b: 2 }', () => { + tsafeAssert, { a: 1, b: 2 }>>(); + }); + + it('should cover superset', () => { + tsafeAssert, {}>>(); + }); + + it('should cover interfaces', () => { + tsafeAssert, { a: number }>>(); + }); + + it('should cover classes (because a class can be used as supertype of an interface)', () => { + tsafeAssert, A>>(); + }); + + it('should cover object', () => { + tsafeAssert, object>>(); + }); + + it('should never be undefined', () => { + tsafeAssert, never>>(); + }); + + it('should never be null', () => { + tsafeAssert, never>>(); + }); + + it('should never be boolean', () => { + tsafeAssert, never>>(); + }); + + it('should never be number', () => { + tsafeAssert, never>>(); + }); + + it('should never be string', () => { + tsafeAssert, never>>(); + }); + + it('should never be any[]', () => { + tsafeAssert, never>>(); + }); + + it('should never be () => any', () => { + tsafeAssert any>, never>>(); + }); + + it('should never be () => void', () => { + tsafeAssert void>, never>>(); + }); + + it('should never be (...args: any[]) => any', () => { + tsafeAssert any>, never>>(); + }); + + it('should never be typeof fn', () => { + tsafeAssert, never>>(); + }); + +}); + +describe('isObj', () => { + + it('should accept {}', () => { + expect(isObj({})).toBeTruthy(); + }); + + it('should accept { a: 1 } & { b: 2 }', () => { + expect(isObj({ a: 1, b: 2 })).toBeTruthy(); + }); + + it('should not accept undefined', () => { + expect(isObj(undefined)).toBeFalsy(); + }); + + it('should not accept null', () => { + expect(isObj(null)).toBeFalsy(); + }); + + it('should not accept true', () => { + expect(isObj(true)).toBeFalsy(); + }); + + it('should not accept false', () => { + expect(isObj(false)).toBeFalsy(); + }); + + it('should not accept 0', () => { + expect(isObj(0)).toBeFalsy(); + }); + + it('should not accept 1', () => { + expect(isObj(1)).toBeFalsy(); + }); + + it('should not accept empty string', () => { + expect(isObj('')).toBeFalsy(); + }); + + it('should not accept non-empty string', () => { + expect(isObj('a')).toBeFalsy(); + }); + + it('should not accept empty array', () => { + expect(isObj([])).toBeFalsy(); + }); + + it('should not accept non-empty array', () => { + expect(isObj([1])).toBeFalsy(); + }); + + it('should not accept a class', () => { + expect(isObj(A)).toBeFalsy(); + }); + + it('should not accept () => 1', () => { + expect(isObj(() => 1)).toBeFalsy(); + }); + + it('should not accept fn', () => { + expect(isObj(fn)).toBeFalsy(); + }); + +}); + +function fn() {} + +class A {} + +interface InterfaceA { + a: number +} diff --git a/test/inject.test.ts b/test/inject.test.ts new file mode 100644 index 00000000..be56f584 --- /dev/null +++ b/test/inject.test.ts @@ -0,0 +1,374 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { describe, expect, it } from 'vitest' +import {assert as tsafeAssert, Equals} from 'tsafe'; +import { eager, inject, Module } from '../src'; + +describe('', () => { + + it('', () => { + + }); + +}); + +describe('A dependency type', () => { + + it('should be undefined', () => checkType(undefined)); + it('should be null', () => checkType(null)); + it('should be false', () => checkType(false)); + it('should be true', () => checkType(true)); + it('should be 0', () => checkType(0)); + it('should be 1', () => checkType(1)); + it('should be empty string', () => checkType('')); + it('should be non empty string', () => checkType('a')); + it('should be empty array', () => checkType([])); + it('should be non-empty array', () => checkType([1])); + it('should be empty object', () => checkType({})); + it('should be non-empty object', () => checkType({ _: 1 })); + it('should be class', () => checkType(class { })); + it('should be class instance', () => checkType(new (class { })())); + it('should be function', () => checkType(function a() { })); + it('should be lambda', () => checkType(() => { })); + + function checkType(value: unknown): void { + const ctr = inject({ _: () => value }); + expect(typeof ctr._).toBe(typeof value); + expect(ctr._).toBe(value); + } + +}); + +describe('A non-cyclic dependency', () => { + + it('should be callable', () => { + expect( + inject({ dep: () => () => true }).dep() + ).toBe(true); + }); + + it('should be constructable', () => { + class A { } + expect( + new (inject({ dep: () => A }).dep)() + ).toBeInstanceOf(A); + }); + + it('should be getable', () => { + expect( + inject({ dep: () => ({ a: true }) }).dep.a + ).toBe(true); + }); + + it('should be idempotent', () => { + const ctr = inject({ dep: () => ({}) }); + expect(ctr.dep).toBe(ctr.dep); + }); + +}); + +describe('A cyclic dependency', () => { + + // this is a requirement for the following tests + it('should be injected lazily', () => { + const ctr = createCycle(undefined); + expect(ctr.a).not.toBeUndefined(); + expect(ctr.b).not.toBeUndefined(); + expect(ctr.a.b).toBe(ctr.b); + expect(ctr.b.a()).toBe(ctr.a); + }); + + it('should be idempotent', () => { + const ctr = createA({}); + expect(ctr.testee).not.toBeUndefined(); + expect(ctr.testee).toBe(ctr.testee); + }); + + it('should be callable', () => { + expect( + createA(() => true).testee() + ).toBe(true); + }); + + it('should be constructable', () => { + class A { } + expect( + new (createA(A).testee)() + ).toBeInstanceOf(A); + }); + + it('should be getable', () => { + expect( + createA({ c: true }).testee.c + ).toBe(true); + }); + + it('should work with for..in', () => { + const obj = createA(1); + const res: string[] = []; + for (const key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + res.push(key); + } + } + expect(res).toEqual(['b', 'testee']); + }); + + interface API { + a: A + b: B + } + + class A { + b: B; + testee: T; + constructor(b: B, testee: T) { + this.b = b; + this.testee = testee; + } + } + + class B { + a: () => A; + constructor(ctr: API) { + this.a = () => ctr.a; + } + } + + function createCycle(testee: T): API { + return inject({ + a: ({ b }) => new A(b, testee), + b: (ctr: API) => new B(ctr) + }); + } + + function createA(testee: T): A { + const ctr = createCycle(testee); + ctr.a; // initializes cycle + return ctr.b.a(); + } + +}); + +describe('The dependency initialization', () => { + + it('should be lazy by default', () => { + let actual = false; + inject({ p: () => { actual = true; }}); + expect(actual).toBeFalsy(); + }); + + it('should be eager if needed', () => { + let actual = false; + inject({ p: eager(() => { actual = true; })}); + expect(actual).toBeTruthy(); + }); + + it('should not affect lazy initializers if eager', () => { + let actual1 = false; + let actual2 = false; + inject({ + p1: eager(() => { actual1 = true; }), + p2: () => { actual2 = true } + }); + expect(actual1).toBeTruthy(); + expect(actual2).toBeFalsy(); + }); + +}); + +describe('The inject function', () => { + + it('should forward construction error', () => { + interface API { first: { a: boolean }, second: { b: boolean } } + const createFirst = () => { throw new Error('construction error'); }; + const createSecond = ({ first }: API) => ({ b: first.a }); + expect(() => + inject({ first: createFirst, second: createSecond }).second + ).toThrowError('construction error'); + }); + + it('should properly forward past construction errors when building multiple times', () => { + //before fixing issue #463 a second attempt was leading to a cycle detection error (wrong direction for debugging people) + interface API { first: { a: boolean }, second: { b: boolean }, third: { c: boolean } } + const createFirst = () => { throw new Error('construction error'); }; + const createSecond = ({ first }: API) => ({ b: first.a }); + const createThird = ({ first }: API) => ({ c: first.a }); + const result = inject({ first: createFirst, second: createSecond, third: createThird }); + expect(() => + result.second + ).toThrowError('construction error'); + expect(() => + result.second + ).toThrowError(/Construction failure/); //where cause is Error('construction error') + }); + + it('should work with objects', () => { + const ctr = inject({ + a: () => true, + b: () => 1 + }); + expect(ctr.a).toBe(true); + expect(ctr.b).toBe(1); + expect((ctr as any).c).toBeUndefined(); + }); + + it('should allow cycles in class constructors', () => { + interface API { a: A, b: B } + class A { + b: B; + constructor({ b }: API) { this.b = b; } + } + class B { + a: () => A; + constructor(ctr: API) { this.a = () => ctr.a; } + } + expect(() => + inject({ a: (ctr: API) => new A(ctr), b: (ctr: API) => new B(ctr) }).a + ).not.toThrow(); + }); + + it('should allow cycles in functions', () => { + type API = { a: A, b: B } + type A = { b: B } + type B = { a: () => A } + const createA = ({ b }: API) => ({ b }); + const createB = (ctr: API) => ({ a: () => ctr.a }); + expect(() => + inject({ a: createA, b: createB }).a + ).not.toThrow(); + }); + + it('should throw when cyclic dependency is accessed during class construction', () => { + interface API { a: A, b: B } + class A { + a: boolean; + constructor({ b }: API) { this.a = b.b; } + } + class B { + b: boolean; + constructor({ a }: API) { this.b = a.a; } + } + expect(() => + inject({ a: (ctr: API) => new A(ctr), b: (ctr: API) => new B(ctr) }).a + ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + }); + + it('should throw when cyclic dependency is accessed during factory function call', () => { + interface API { a: { a: boolean }, b: { b: boolean } } + const createA = ({ b }: API) => ({ a: b.b }); + const createB = ({ a }: API) => ({ b: a.a }); + expect(() => + inject({ a: createA, b: createB }).a + ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + }); + + it('should merge groups', () => { + + class A { + } + + class B extends A { + constructor(a: A) { + super(); + } + a = 1; + } + + interface I1 { + groupA: { + service1: A + } + } + + interface I2 { + groupB: { + groupC: { + service2: A + } + } + } + + const m1: Module = { + groupA: { + service1: () => new A() + } + }; + + const m2: Module = { + groupB: { + groupC: { + service2: () => new A() + } + } + }; + + const m3 = { // intentionally not declared as Module + groupB: { + groupC: { + // injector may have an arbitrary type but + // the inject() call will fail for m3 if no module + // exists that provides that injector + service2: (injector: I1) => new B(injector.groupA.service1) + } + }, + x: () => 1 + }; + + const xxx = inject(m1, m2, m3); + + const a: A = xxx.groupA.service1; // infers A + const ab: A & B = xxx.groupB.groupC.service2; // infers A & B + const x: number = xxx.x; // infers number + + expect(a).toBeInstanceOf(A); + expect(ab).toBeInstanceOf(B); + expect(x).toBe(1); + }); + +}); + +describe('The inject result', () => { + + it('should be immutable', () => { + const ctr: any = inject({ a: () => 1 }); + expect(() => delete ctr.a).toThrowError('\'deleteProperty\' on proxy: trap returned falsish for property \'a\''); + expect(ctr.a).toBe(1); + }); + + it('should work with for..in', () => { + const obj = inject({ a: () => 1, b: () => 2 }); + const res: string[] = []; + for (const key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + res.push(key); + } + } + expect(res).toEqual(['a', 'b']); + }); + + it('should work with ..in.. for object', () => { + const obj = inject({ a: () => 1 }); + expect('a' in obj).toBe(true); + expect('b' in obj).toBe(false); + }); + + it('should be extensible', () => { + const obj: any = inject({}); + expect(Object.isExtensible(obj)).toBe(true); + expect(obj.a).toBeUndefined(); + expect(() => obj.a = 1).not.toThrow(); + expect(obj.a).toBe(1); + }); + + it('should be sealable', () => { + const obj: any = Object.seal(inject({})); + expect(Object.isExtensible(obj)).toBe(false); + expect(() => (obj.a = 1)).toThrowError('Cannot define property a, object is not extensible'); + }); + +}); diff --git a/test/merge.test.ts b/test/merge.test.ts new file mode 100644 index 00000000..90486a5f --- /dev/null +++ b/test/merge.test.ts @@ -0,0 +1,911 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { describe, expect, it } from 'vitest' +import {assert as tsafeAssert, Equals} from 'tsafe'; +import { Merge, merge, MergeArray } from '../src/merge'; +import { Fn } from '../src/base'; + +describe('type Merge', () => { + + describe('totality types', () => { + + it('should merge any', () => { + tsafeAssert, any>>(); + tsafeAssert, any>>(); + tsafeAssert, any>>(); + tsafeAssert, any>>(); + tsafeAssert, any>>(); + }); + + it('should merge never', () => { + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + it('should merge unknown', () => { + tsafeAssert, unknown>>(); + tsafeAssert, unknown>>(); + tsafeAssert, unknown>>(); + tsafeAssert, unknown>>(); + tsafeAssert, unknown>>(); + }); + + }); + + describe('empty types', () => { + + it('should merge null', () => { + tsafeAssert, null>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + it('should merge undefined', () => { + tsafeAssert, undefined>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + it('should merge void', () => { + tsafeAssert, void>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + }); + + describe('primitive types', () => { + + it('should merge boolean', () => { + tsafeAssert, boolean>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, true>>(); // not never + tsafeAssert, true>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + it('should merge number', () => { + tsafeAssert, number>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, 1>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + it('should merge string', () => { + tsafeAssert, string>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, ''>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + }); + + }); + + describe('array types', () => { + + it('should merge array', () => { + tsafeAssert, any[]>>(); + tsafeAssert, []>>(); + tsafeAssert, [1]>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, [1]>>(); + tsafeAssert, never>>(); + tsafeAssert, [1, '']>>(); + tsafeAssert, never>>(); + tsafeAssert, [1, any]>>(); + tsafeAssert, [1, '']>>(); + tsafeAssert, [1, never]>>(); + tsafeAssert, never>>(); + tsafeAssert, never>>(); + tsafeAssert, [1, '']>>(); + }); + + }); + + describe('function types', () => { + + it('should merge same function', () => { + tsafeAssert, Fn>>(); + tsafeAssert void, () => void>, () => void>>(); + tsafeAssert void, (a: number) => void>, (a: number) => void>>(); + tsafeAssert void, (a: 1) => void>, (a: 1) => void>>(); + }); + + it('should never merge different function', () => { + tsafeAssert void, (a: string) => void>, never>>(); + tsafeAssert void, (a: number) => void>, never>>(); + tsafeAssert string, () => number>, never>>(); + tsafeAssert number, () => string>, never>>(); + }); + + it('should merge if source Fn ignores target Fn args', () => { + tsafeAssert void, (a: string) => void>, () => void>>(); + }); + + it('should never merge if source Fn requires more args than target Fn', () => { + tsafeAssert void, () => void>, never>>(); + }); + + it('should merge if source Fn returns 1 and target Fn returns void', () => { + tsafeAssert 1, () => void>, () => 1>>(); + tsafeAssert any, () => void>, () => any>>(); + tsafeAssert never, () => void>, () => never>>(); + tsafeAssert unknown, () => void>, () => unknown>>(); + }); + + it('should merge if source Fn returns void and target Fn returns any/unknown', () => { + tsafeAssert void, () => any>, () => void>>(); + tsafeAssert void, () => unknown>, () => void>>(); + }); + + it('should never merge if source Fn returns void and target Fn returns 1/never', () => { + tsafeAssert void, () => 1>, never>>(); + tsafeAssert void, () => never>, never>>(); + }); + + it('should merge any function Fn with () => void', () => { + tsafeAssert void, Fn>, () => void>>(); + tsafeAssert void>, Fn>>(); + }); + + }); + + describe('object types', () => { + + describe('undefined properties', () => { + + it('should merge empty objects', () => { + type Source = {}; + type Target = {}; + type Expected = {}; + tsafeAssert, Expected>>(); + }); + + it('should merge source: 1 with target: non-existing property', () => { + type Source = { a: 1 }; + type Target = {}; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: optional prtoperty with target: non-existing property', () => { + type Source = { a?: 1 }; + type Target = {}; + type Expected = { a: 1 | undefined }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: 1 with target: optional number', () => { + type Source = { a: 1 }; + type Target = { a?: number }; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: optional 1 with target: optional number', () => { + type Source = { a?: 1 }; + type Target = { a?: number }; + type Expected = { a: 1 | undefined }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: undefined', () => { + type Source = { a: number }; + type Target = { a: undefined }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: undefined with target: number', () => { + type Source = { a: undefined }; + type Target = { a: number }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: 1 with target: undefined', () => { + type Source = { a: 1 }; + type Target = { a: undefined }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: undefined with target: 1', () => { + type Source = { a: undefined }; + type Target = { a: 1 }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('null properties', () => { + + it('should merge source: null with target: non-existing property', () => { + type Source = { a: null }; + type Target = {}; + type Expected = { a: null }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: 1 with target: null', () => { + type Source = { a: 1 }; + type Target = { a: null }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: null with target: 1', () => { + type Source = { a: null }; + type Target = { a: 1 }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: 1 with target: nullable number', () => { + type Source = { a: 1 }; + type Target = { a: number | null }; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: nullable 1 with target: nullable number', () => { + type Source = { a: 1 | null }; + type Target = { a: number | null }; + type Expected = { a: 1 | null }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: nullable number with target: nullable 1', () => { + type Source = { a: number | null }; + type Target = { a: 1 | null }; + type Expected = { a: null }; // intersection of Source and Target because number does not extend 1 + tsafeAssert, Expected>>(); + }); + + }); + + describe('boolean properties', () => { + + it('should merge non-empty source with empty target', () => { + type Source = { a: true }; + type Target = {}; + type Expected = { a: true }; + tsafeAssert, Expected>>(); + }); + + it('should merge empty source with non-empty target', () => { + type Source = {}; + type Target = { a: true }; + type Expected = { a: true }; + tsafeAssert, Expected>>(); + }); + + it('should merge non-empty types having different properties', () => { + type Source = { a: true }; + type Target = { b: false }; + type Expected = { a: true, b: false }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: true with target: boolean, in the presence of distinct properties', () => { + type Source = { a: true, b: number }; + type Target = { a: boolean, c: string }; + type Expected = { a: true, b: number, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: boolean with target: true, in the presence of distinct properties', () => { + type Source = { a: boolean, b: number }; + type Target = { a: true, c: string }; + type Expected = { a: true, b: number, c: string }; // a: true is the only source a: boolean that extends the target a: true + tsafeAssert, Expected>>(); + }); + + it('should merge source: true with target: true', () => { + type Source = { a: true }; + type Target = { a: true }; + type Expected = { a: true }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: true with target: false', () => { + type Source = { a: true }; + type Target = { a: false }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: boolean with target: boolean', () => { + type Source = { a: boolean }; + type Target = { a: boolean }; + type Expected = { a: boolean }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: undefined', () => { + type Source = { a: boolean }; + type Target = { a: undefined }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: null', () => { + type Source = { a: boolean }; + type Target = { a: null }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: number', () => { + type Source = { a: boolean }; + type Target = { a: number }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: string', () => { + type Source = { a: boolean }; + type Target = { a: string }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: any[]', () => { + type Source = { a: boolean }; + type Target = { a: any[] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: object', () => { + type Source = { a: boolean }; + type Target = { a: object }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: boolean with target: {}', () => { + type Source = { a: boolean }; + type Target = { a: {} }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: {} with target: boolean', () => { + type Source = { a: {} }; + type Target = { a: boolean }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('number properties', () => { + + it('should merge non-empty source with empty target', () => { + type Source = { a: 1 }; + type Target = {}; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should merge empty source with non-empty target', () => { + type Source = {}; + type Target = { a: 1 }; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should merge non-empty types having different properties', () => { + type Source = { a: 1 }; + type Target = { b: 2 }; + type Expected = { a: 1, b: 2 }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: 1 with target: number, in the presence of distinct properties', () => { + type Source = { a: 1, b: boolean }; + type Target = { a: number, c: string }; + type Expected = { a: 1, b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: 1, in the presence of distinct properties', () => { + type Source = { a: number, b: boolean }; + type Target = { a: 1, c: string }; + type Expected = { a: never, b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: 1 with target: 1', () => { + type Source = { a: 1 }; + type Target = { a: 1 }; + type Expected = { a: 1 }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: 1 with target: 2', () => { + type Source = { a: 1 }; + type Target = { a: 2 }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: number with target: number', () => { + type Source = { a: number }; + type Target = { a: number }; + type Expected = { a: number }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: undefined', () => { + type Source = { a: number }; + type Target = { a: undefined }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: null', () => { + type Source = { a: number }; + type Target = { a: null }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: boolean', () => { + type Source = { a: number }; + type Target = { a: boolean }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: string', () => { + type Source = { a: number }; + type Target = { a: string }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: any[]', () => { + type Source = { a: number }; + type Target = { a: any[] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: object', () => { + type Source = { a: number }; + type Target = { a: object }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: number with target: {}', () => { + type Source = { a: number }; + type Target = { a: {} }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: {} with target: number', () => { + type Source = { a: {} }; + type Target = { a: number }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('string properties', () => { + + it('should merge non-empty source with empty target', () => { + type Source = { a: '' }; + type Target = {}; + type Expected = { a: '' }; + tsafeAssert, Expected>>(); + }); + + it('should merge empty source with non-empty target', () => { + type Source = {}; + type Target = { a: '' }; + type Expected = { a: '' }; + tsafeAssert, Expected>>(); + }); + + it('should merge non-empty types having different properties', () => { + type Source = { a: 'a' }; + type Target = { b: 'b' }; + type Expected = { a: 'a', b: 'b' }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: "a" with target: string, in the presence of distinct properties', () => { + type Source = { a: "a", b: boolean }; + type Target = { a: string, c: string }; + type Expected = { a: "a", b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: "a", in the presence of distinct properties', () => { + type Source = { a: string, b: boolean }; + type Target = { a: 'a', c: string }; + type Expected = { a: never, b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: "a" with target: "a"', () => { + type Source = { a: 'a' }; + type Target = { a: 'a' }; + type Expected = { a: 'a' }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: "a" with target: "b"', () => { + type Source = { a: 'a' }; + type Target = { a: 'b' }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: string with target: string', () => { + type Source = { a: string }; + type Target = { a: string }; + type Expected = { a: string }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: undefined', () => { + type Source = { a: string }; + type Target = { a: undefined }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: null', () => { + type Source = { a: string }; + type Target = { a: null }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: boolean', () => { + type Source = { a: string }; + type Target = { a: boolean }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: number', () => { + type Source = { a: string }; + type Target = { a: number }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: any[]', () => { + type Source = { a: string }; + type Target = { a: any[] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: object', () => { + type Source = { a: string }; + type Target = { a: object }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: string with target: {}', () => { + type Source = { a: string }; + type Target = { a: {} }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: {} with target: string', () => { + type Source = { a: {} }; + type Target = { a: string }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('array properties', () => { + + it('should merge non-empty source with empty target', () => { + type Source = { a: [] }; + type Target = {}; + type Expected = { a: [] }; + tsafeAssert, Expected>>(); + }); + + it('should merge empty source with non-empty target', () => { + type Source = {}; + type Target = { a: [] }; + type Expected = { a: [] }; + tsafeAssert, Expected>>(); + }); + + it('should merge non-empty types having different properties', () => { + type Source = { a: ['a'] }; + type Target = { b: ['b'] }; + type Expected = { a: ['a'], b: ['b'] }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: ["a"] with target: [string], in the presence of distinct properties', () => { + type Source = { a: ["a"], b: boolean }; + type Target = { a: [string], c: string }; + type Expected = { a: ["a"], b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: ["a"], in the presence of distinct properties', () => { + type Source = { a: [string], b: boolean }; + type Target = { a: ['a'], c: string }; + type Expected = { a: never, b: boolean, c: string }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: ["a"] with target: ["a"]', () => { + type Source = { a: ['a'] }; + type Target = { a: ['a'] }; + type Expected = { a: ['a'] }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: ["a"] with target: ["b"]', () => { + type Source = { a: ['a'] }; + type Target = { a: ['b'] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: [string] with target: [string]', () => { + type Source = { a: [string] }; + type Target = { a: [string] }; + type Expected = { a: [string] }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: [undefined]', () => { + type Source = { a: [string] }; + type Target = { a: [undefined] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: [null]', () => { + type Source = { a: [string] }; + type Target = { a: [null] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: [boolean]', () => { + type Source = { a: [string] }; + type Target = { a: [boolean] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: [number]', () => { + type Source = { a: [string] }; + type Target = { a: [number] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: [string] with target: any[]', () => { + type Source = { a: [string] }; + type Target = { a: any[] }; + type Expected = { a: [string] }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: any[] with target: [string]', () => { + type Source = { a: any[] }; + type Target = { a: [string] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: [string] with target: object', () => { + type Source = { a: [string] }; + type Target = { a: object }; + type Expected = { a: [string] }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: [string] with target: {}', () => { + type Source = { a: [string] }; + type Target = { a: {} }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + it('should never merge source: {} with target: [string]', () => { + type Source = { a: {} }; + type Target = { a: [string] }; + type Expected = { a: never }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('function properties', () => { + + it('should merge source: Fn with target: () => void', () => { + type Source = { a: Fn }; + type Target = { a: () => void }; + type Expected = { a: Fn }; + tsafeAssert, Expected>>(); + }); + + it('should merge source: () => void with target: Fn', () => { + type Source = { a: () => void }; + type Target = { a: Fn }; + type Expected = { a: () => void }; + tsafeAssert, Expected>>(); + }); + + }); + + describe('object properties', () => { + + it('should merge deep properties that are assignable', () => { + type Source = { a: { b: 1 } }; + type Target = { a: { b: number } }; + type Expected = { a: { b: 1 } }; + tsafeAssert, Expected>>(); + }); + + it('should never merge deep properties that aren\'t assignable', () => { + type Source = { a: { b: number } }; + type Target = { a: { b: 1 } }; + type Expected = { a: { b: never } }; + tsafeAssert, Expected>>(); + }); + + }); + + }); + +}); + +describe('type MergeArray', () => { + + it('should merge empty array', () => { + tsafeAssert, {}>>(); + }); + + it('should merge array with one element', () => { + tsafeAssert, { a: 1 }>>(); + }); + + it('should merge array with two elements', () => { + tsafeAssert, { a: 1, b: true }>>(); + }); + + it('should merge array with three elements', () => { + class A {} + class B extends A { + b = 1 + } + type Input = [ + { a: A, b: boolean, c: number, d: 'a' }, + { b: true, d: string }, + { a: B, c: 1 } + ]; + type Expected = { + a: B, + b: true, + c: 1, + d: never + }; + tsafeAssert, Expected>>(); + }); + + it('should deep merge array with three elements', () => { + class A {} + class B extends A { + b = 1 + } + type Input = [ + { a: { b: { c: A }, d: Fn }, e: number }, + { a: { d: () => void } }, + { a: { b: { c: B } } }, + { e: 1 } + ]; + type Expected = { + a: { + b: { + c: B + }, + d: () => void + }, + e: 1 + }; + tsafeAssert, Expected>>(); + }); + +}); + +describe('merge', () => { + + it('should merge two objects', () => { + class A {} + class B extends A { + b = 1 + } + const fn1 = () => {} + const fn2 = () => {} + const target = { + a: A, + b: { + c: false, + e: fn1, + f: [1] + } + } + const source = { + a: B, + b: { + c: true, + e: fn2, + f: [2, 3] + } + } + const expected = { + a: B, + b: { + c: true, + e: fn2, + f: [2, 3] + } + } + expect(merge(target, source)).toEqual(expected); + }); + + it('should merge source: 1 with target: undefined in a typesafe way', () => { + const actual = merge({ a: 1 }, { a: undefined }); + const expected = { a: undefined }; + type Expected = { a: never }; + tsafeAssert>(); + expect(actual).toEqual(expected); + }); + + it('should merge source: undefined with target: 1 in a typesafe way', () => { + const actual = merge({ a: undefined }, { a: 1 }); + const expected = { a: 1 }; + type Expected = { a: never }; + tsafeAssert>(); + expect(actual).toEqual(expected); + }); + +}); From 19f8496a6ecdf1e6e14bff41188f6de3394ebfeb Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 13:55:27 +0000 Subject: [PATCH 003/159] cleanup types --- src/inject.ts | 16 ++- src/inject_backup.ts | 178 ++++++++++++++++++++++++++ src/merge.ts | 16 ++- src/{base.ts => object.ts} | 14 +- test/inject.test.ts | 10 +- test/merge.test.ts | 5 +- test/{base.test.ts => object.test.ts} | 4 +- 7 files changed, 205 insertions(+), 38 deletions(-) create mode 100644 src/inject_backup.ts rename src/{base.ts => object.ts} (65%) rename test/{base.test.ts => object.test.ts} (98%) diff --git a/src/inject.ts b/src/inject.ts index 4cec2697..15832468 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { Fn, Obj, isObj, keys } from "./base"; +import { Obj, isObj, keys } from "./object"; import { merge, MergeArray } from "./merge"; /** @@ -20,15 +20,17 @@ const isEager = Symbol(); const isRequested = Symbol(); // ✅ a module that can be passed to the inject function -export type Module = - C extends Obj ? T extends Obj ? { // ensure C and T are real ojects { ... } +export type Module = any, T = C> = + T extends Obj ? { // ensure C and T are real ojects { ... } [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy - } : never : never; + } : never; // ✅ Internal. InverseModule> := T -type InverseModule = M extends Fn ? ReturnType : { - [K in keyof M]: InverseModule -}; +type InverseModule = + M extends (...args: any[]) => any ? ReturnType : + M extends Obj ? { + [K in keyof M]: InverseModule + } : never; // ✅ transforms a list of modules to an IoC container export type Container = InverseModule>; diff --git a/src/inject_backup.ts b/src/inject_backup.ts new file mode 100644 index 00000000..81dd1097 --- /dev/null +++ b/src/inject_backup.ts @@ -0,0 +1,178 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { isObj, keys, Obj } from "./object"; +import { merge, MergeArray } from "./merge"; + +/** + * Internally used by {@link eager} to tag an injector. + * When {@link inject} is called, all eager injectors of the merged module arguments will be called. + */ +const isEager = Symbol(); + +/** + * Internally used by {@link _resolve} to tag a requested dependency, directly before calling the factory. + * This allows us to find cycles during instance creation. + */ +const isRequested = Symbol(); + +// ✅ a module that can be passed to the inject function +export type Module, T = C> = + T extends Obj ? { // ensure C and T are real ojects { ... } + [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy + } : never; + +// ✅ transforms a list of modules to an IoC container +export type Container = InverseModule>; + +// ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) +export type Factory = (ctr?: C) => T; + +/** + * An internal type that reflects that an {@link Injector} will be eagerly initialized. + * See {@link eager}. + */ +type InternalFactory = Factory & { [isEager]?: boolean }; + +// ✅ Internal. InverseModule> := T +type InverseModule = Union<{ + [K in keyof M]: + M[K] extends (...args: any[]) => any ? ReturnType : + M[K] extends Module ? InverseModule : + never +}>; + +// TODO(@@dd): DELME --> +{ + class A {} + + type M = { dep: () => A } + type I = InverseModule + type C = Container<[M]> + + type _MA = MergeArray<[M]> + type _IMA = InverseModule<_MA> + type _CMA = Container<[_MA]> + + type _MM = MergeModules<[M]> + type _IMM = InverseModule<_MM> + type _CMM = Container<[_MM]> + + const m = { dep: () => A } + const x = inject(m); + const y = x.dep; + + const mm: Module = { dep: () => A } // TODO(@@dd): use `satisfies Module` in TS 4.9 + const xx = inject(m); + const yy = x.dep; +} +// <-- DELME + + +type Union = T extends Obj ? { + [key in keyof T]: T[key] +} : T; + +// ✅ merges N modules by merging them pair-wise from right to left +type MergeModules = MergeArray; + +/** + * Decorates an {@link Injector} for eager initialization with {@link inject}. + * + * @param factory + */ + export function eager(factory: Factory): Factory { + return (factory as InternalFactory)[isEager] + ? factory + : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ) as InternalFactory; +} + +/** + * Given a set of modules, the inject function returns a lazily evaluted injector + * that injects dependencies into the requested service when it is requested the + * first time. Subsequent requests will return the same service. + * + * In the case of cyclic dependencies, an Error will be thrown. This can be fixed + * by injecting a provider `() => T` instead of a `T`. + * + * Please note that the arguments may be objects or arrays. However, the result will + * be an object. Using it with for..of will have no effect. + * + * @param module1 first Module + * @param module2 (optional) second Module + * @param module3 (optional) third Module + * @param module4 (optional) fourth Module + * @returns a new object of type I + */ +// ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use +export function inject(...modules: M): Container> { + const module = modules.reduce(merge, {}); + return createContainer(module) as Container>; +} + +function createContainer(module: M): Container { + const eagerServices = []; + const container = proxify(module/*TODO(@@dd):, eagerServices*/); + // TODO(@@dd): create eager services + return container as Container; +} + +function proxify, C>(module: M, container?: C): InverseModule { + const obj: any = {}; + keys(module).forEach(key => { + const value = module[key]; + if (isObj(value)) { + obj[key] = proxify(value, container ?? obj); + } else if (typeof value === 'function') { + obj[key] = new Proxy({}, { + deleteProperty: () => false, + get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), + getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in + has: (_, prop) => prop in module, // used by ..in.. + ownKeys: () => Reflect.ownKeys(module) // used by for..in + }); + } else { + throw new Error(); // TODO(@@dd): error message + } + }); + return obj; +} + +/** + * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from + * the module description. The result of service factories is cached. Groups are + * recursively proxied. + * + * @param obj an object holding all group proxies and services + * @param prop the key of a value within obj + * @param module an object containing groups and service factories + * @param injector the first level proxy that provides access to all values + * @returns the requested value `obj[prop]` + * @throws Error if a dependency cycle is detected + */ +function _resolve(obj: any, prop: PropertyKey, module: Module, factory: I): T[keyof T] | undefined { + if (prop in obj) { + if (obj[prop] instanceof Error) { + throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); + } + if (obj[prop] === isRequested) { + throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + } + return obj[prop]; + } else if (prop in module) { + const value: Module | ((factory: I) => T[keyof T]) = module[prop as keyof T]; + obj[prop] = isRequested; + try { + obj[prop] = (typeof value === 'function') ? value(factory) : _inject(value, factory); + } catch (error) { + obj[prop] = error instanceof Error ? error : undefined; + throw error; + } + return obj[prop]; + } else { + return undefined; + } +} diff --git a/src/merge.ts b/src/merge.ts index ec08d6a4..09d59bcd 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,10 +4,9 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { Fn, Obj, isObj, keys } from './base'; +import { isObj, keys, Obj } from './object'; -// ✅ merges N modules by merging them pair-wise from right to left -export type MergeArray[]> = +export type MergeArray = M extends [] ? {} : // no modules => empty result M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Merge>, Head> @@ -34,12 +33,15 @@ type MergeObjects, T extends Record = A extends [] ? never : - Fn extends (head: infer H, ...tail: any[]) => any ? H : never; +type Head = + A extends [] ? never : + A extends [head: infer H, ...tail: any[]] ? H : never; // ✅ tail of a list -type Tail = - Fn extends (head: any, ...tail: infer T) => any ? T : never; +type Tail = + A extends [head: any, ...tail: infer T] ? T : never; + +type T = Tail<[]>; // ✅ is checks if type T1 strictly equals type T2 type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; diff --git a/src/base.ts b/src/object.ts similarity index 65% rename from src/base.ts rename to src/object.ts index 9f96e94e..54895060 100644 --- a/src/base.ts +++ b/src/object.ts @@ -4,30 +4,20 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -// ✅ represents a function, i.e. a possible empty list of arguments and a return type -export type Fn = (...args: A) => R; - // ✅ represents an object, i.e. an associative array with possbily no properties export type Obj = T extends Record ? ( - T extends Fn ? never : + T extends (...args: any[]) => any ? never : T extends any[] ? never : T ) : never; -/* TODO(@@dd): DELME --> -// ✅ If T is an intersection A & B, the union of all properties of A and B is returned, otherwise T is returned -// TODO(@@dd): better name? Unify or Unite? -export type Union = T extends Obj ? { - [K in keyof T]: T[K]; -} : T; -<-- DELME */ - // ✅ tests if a value is an object export function isObj(t: T): t is Obj { return t !== null && typeof t === 'object' && !Array.isArray(t); } +// ✅ returns the keys of an object export function keys>(obj: T): PropertyKey[] { return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; } diff --git a/test/inject.test.ts b/test/inject.test.ts index be56f584..a02efb47 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -6,15 +6,7 @@ import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; -import { eager, inject, Module } from '../src'; - -describe('', () => { - - it('', () => { - - }); - -}); +import { eager, inject, Module } from '../src/inject'; describe('A dependency type', () => { diff --git a/test/merge.test.ts b/test/merge.test.ts index 90486a5f..53c8f568 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -6,8 +6,9 @@ import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; -import { Merge, merge, MergeArray } from '../src/merge'; -import { Fn } from '../src/base'; +import { merge, Merge, MergeArray } from '../src/merge'; + +type Fn = (...args: any[]) => any; describe('type Merge', () => { diff --git a/test/base.test.ts b/test/object.test.ts similarity index 98% rename from test/base.test.ts rename to test/object.test.ts index 26f98258..dce9da65 100644 --- a/test/base.test.ts +++ b/test/object.test.ts @@ -6,7 +6,9 @@ import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals, Extends, Not } from 'tsafe'; -import { Fn, Obj, isObj } from '../src/base'; +import { isObj, Obj } from '../src/object'; + +type Fn = (...args: any[]) => any; describe('type Fn', () => { From c375c652eae858a73197f144954d0c8ae5171de8 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 14:02:37 +0000 Subject: [PATCH 004/159] cleanup (wip) --- src/inject.ts | 6 ++--- src/merge.ts | 2 -- test/object.test.ts | 54 --------------------------------------------- 3 files changed, 2 insertions(+), 60 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 15832468..a9086424 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -50,9 +50,7 @@ type InternalFactory = Factory & { [isEager]?: b * @param factory */ export function eager(factory: Factory): Factory { - return (factory as InternalFactory)[isEager] - ? factory - : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ) as InternalFactory; + return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); } /** @@ -78,7 +76,7 @@ export function inject(...modules: M): Containe return createContainer(module); } -function createContainer(module: MergeArray): Container { +function createContainer(module: MergeArray): Container { const eagerServices = []; const container = proxify(module/*TODO(@@dd):, eagerServices*/); // TODO(@@dd): create eager services diff --git a/src/merge.ts b/src/merge.ts index 09d59bcd..33b127a5 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -41,8 +41,6 @@ type Head = type Tail = A extends [head: any, ...tail: infer T] ? T : never; -type T = Tail<[]>; - // ✅ is checks if type T1 strictly equals type T2 type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; diff --git a/test/object.test.ts b/test/object.test.ts index dce9da65..4b359e72 100644 --- a/test/object.test.ts +++ b/test/object.test.ts @@ -8,60 +8,6 @@ import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals, Extends, Not } from 'tsafe'; import { isObj, Obj } from '../src/object'; -type Fn = (...args: any[]) => any; - -describe('type Fn', () => { - - it('should cover () => any', () => { - tsafeAssert any, Fn>>(); - }); - - it('should cover () => void', () => { - tsafeAssert void, Fn>>(); - }); - - it('should cover (...args: any[]) => any', () => { - tsafeAssert any, Fn>>(); - }); - - it('should cover typeof fn', () => { - tsafeAssert>(); - }); - - it('should not cover undefined', () => { - tsafeAssert>>(); - }); - - it('should not cover null', () => { - tsafeAssert>>(); - }); - - it('should not cover boolean', () => { - tsafeAssert>>(); - }); - - it('should not cover number', () => { - tsafeAssert>>(); - }); - - it('should not cover string', () => { - tsafeAssert>>(); - }); - - it('should not cover array', () => { - tsafeAssert>>(); - }); - - it('should not cover object', () => { - tsafeAssert>>(); - }); - - it('should not cover class', () => { - tsafeAssert>>(); - }); - -}); - describe('type Obj', () => { it('should be {}', () => { From 55674487ff2336a20b74f0aa63e202d10561a1f4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 14:21:28 +0000 Subject: [PATCH 005/159] cleanup --- src/inject.ts | 44 +---------- src/inject_backup.ts | 178 ------------------------------------------- 2 files changed, 2 insertions(+), 220 deletions(-) delete mode 100644 src/inject_backup.ts diff --git a/src/inject.ts b/src/inject.ts index a9086424..b44e1f94 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -80,10 +80,10 @@ function createContainer(module: MergeArray): Container; + return container; } -function proxify, C>(module: M, container?: C): InverseModule { +function proxify(module: any, container?: C): any { const obj: any = {}; keys(module).forEach(key => { const value = module[key]; @@ -102,48 +102,8 @@ function proxify, C>(module: M, container } }); return obj; - /* - } else if (typeof module === 'function') { - const proxy: any = new Proxy({}, { - deleteProperty: () => false, - get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), - getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in - has: (_, prop) => prop in module, // used by ..in.. - ownKeys: () => Reflect.ownKeys(module) // used by for..in - }); - if ((t as InternalFactory)[isEager]) { - /* TODO(@@dd): stackOfEagerModules.push(module) - } - return proxy; - } else { - throw new Error(''); // TODO(@@dd) - } - */ } -// ================================= BACKUP ================================= -// ================================= BACKUP ================================= -// ================================= BACKUP ================================= - -// /** -// * Helper function that returns an injector by creating a proxy. -// * Invariant: injector is of type I. If injector is undefined, then T = I. -// */ -// function _inject(module: Module, injector?: any): C { -// if (injector && injector.hasOwnProperty(isEager)) { -// return isRequested as C; -// } else { -// const proxy: C = new Proxy({} as any, { -// deleteProperty: () => false, -// get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), -// getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in -// has: (_, prop) => prop in module, // used by ..in.. -// ownKeys: () => Reflect.ownKeys(module) // used by for..in -// }); -// return proxy; -// } -// } - /** * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from * the module description. The result of service factories is cached. Groups are diff --git a/src/inject_backup.ts b/src/inject_backup.ts deleted file mode 100644 index 81dd1097..00000000 --- a/src/inject_backup.ts +++ /dev/null @@ -1,178 +0,0 @@ -/****************************************************************************** - * Copyright 2022 TypeFox GmbH - * This program and the accompanying materials are made available under the - * terms of the MIT License, which is available in the project root. - ******************************************************************************/ - -import { isObj, keys, Obj } from "./object"; -import { merge, MergeArray } from "./merge"; - -/** - * Internally used by {@link eager} to tag an injector. - * When {@link inject} is called, all eager injectors of the merged module arguments will be called. - */ -const isEager = Symbol(); - -/** - * Internally used by {@link _resolve} to tag a requested dependency, directly before calling the factory. - * This allows us to find cycles during instance creation. - */ -const isRequested = Symbol(); - -// ✅ a module that can be passed to the inject function -export type Module, T = C> = - T extends Obj ? { // ensure C and T are real ojects { ... } - [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy - } : never; - -// ✅ transforms a list of modules to an IoC container -export type Container = InverseModule>; - -// ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) -export type Factory = (ctr?: C) => T; - -/** - * An internal type that reflects that an {@link Injector} will be eagerly initialized. - * See {@link eager}. - */ -type InternalFactory = Factory & { [isEager]?: boolean }; - -// ✅ Internal. InverseModule> := T -type InverseModule = Union<{ - [K in keyof M]: - M[K] extends (...args: any[]) => any ? ReturnType : - M[K] extends Module ? InverseModule : - never -}>; - -// TODO(@@dd): DELME --> -{ - class A {} - - type M = { dep: () => A } - type I = InverseModule - type C = Container<[M]> - - type _MA = MergeArray<[M]> - type _IMA = InverseModule<_MA> - type _CMA = Container<[_MA]> - - type _MM = MergeModules<[M]> - type _IMM = InverseModule<_MM> - type _CMM = Container<[_MM]> - - const m = { dep: () => A } - const x = inject(m); - const y = x.dep; - - const mm: Module = { dep: () => A } // TODO(@@dd): use `satisfies Module` in TS 4.9 - const xx = inject(m); - const yy = x.dep; -} -// <-- DELME - - -type Union = T extends Obj ? { - [key in keyof T]: T[key] -} : T; - -// ✅ merges N modules by merging them pair-wise from right to left -type MergeModules = MergeArray; - -/** - * Decorates an {@link Injector} for eager initialization with {@link inject}. - * - * @param factory - */ - export function eager(factory: Factory): Factory { - return (factory as InternalFactory)[isEager] - ? factory - : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ) as InternalFactory; -} - -/** - * Given a set of modules, the inject function returns a lazily evaluted injector - * that injects dependencies into the requested service when it is requested the - * first time. Subsequent requests will return the same service. - * - * In the case of cyclic dependencies, an Error will be thrown. This can be fixed - * by injecting a provider `() => T` instead of a `T`. - * - * Please note that the arguments may be objects or arrays. However, the result will - * be an object. Using it with for..of will have no effect. - * - * @param module1 first Module - * @param module2 (optional) second Module - * @param module3 (optional) third Module - * @param module4 (optional) fourth Module - * @returns a new object of type I - */ -// ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use -export function inject(...modules: M): Container> { - const module = modules.reduce(merge, {}); - return createContainer(module) as Container>; -} - -function createContainer(module: M): Container { - const eagerServices = []; - const container = proxify(module/*TODO(@@dd):, eagerServices*/); - // TODO(@@dd): create eager services - return container as Container; -} - -function proxify, C>(module: M, container?: C): InverseModule { - const obj: any = {}; - keys(module).forEach(key => { - const value = module[key]; - if (isObj(value)) { - obj[key] = proxify(value, container ?? obj); - } else if (typeof value === 'function') { - obj[key] = new Proxy({}, { - deleteProperty: () => false, - get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), - getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in - has: (_, prop) => prop in module, // used by ..in.. - ownKeys: () => Reflect.ownKeys(module) // used by for..in - }); - } else { - throw new Error(); // TODO(@@dd): error message - } - }); - return obj; -} - -/** - * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from - * the module description. The result of service factories is cached. Groups are - * recursively proxied. - * - * @param obj an object holding all group proxies and services - * @param prop the key of a value within obj - * @param module an object containing groups and service factories - * @param injector the first level proxy that provides access to all values - * @returns the requested value `obj[prop]` - * @throws Error if a dependency cycle is detected - */ -function _resolve(obj: any, prop: PropertyKey, module: Module, factory: I): T[keyof T] | undefined { - if (prop in obj) { - if (obj[prop] instanceof Error) { - throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); - } - if (obj[prop] === isRequested) { - throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); - } - return obj[prop]; - } else if (prop in module) { - const value: Module | ((factory: I) => T[keyof T]) = module[prop as keyof T]; - obj[prop] = isRequested; - try { - obj[prop] = (typeof value === 'function') ? value(factory) : _inject(value, factory); - } catch (error) { - obj[prop] = error instanceof Error ? error : undefined; - throw error; - } - return obj[prop]; - } else { - return undefined; - } -} From 9efadc04c2710357855ec692e62a6fc812ca956d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 30 Sep 2022 16:32:24 +0000 Subject: [PATCH 006/159] compiles & runs, 3 of 183 tests are failing --- src/inject.ts | 44 ++++++++++++++++++-------------------------- test/inject.test.ts | 16 ++++++++-------- tsconfig.json | 2 +- 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index b44e1f94..f0beb351 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { Obj, isObj, keys } from "./object"; +import { Obj } from "./object"; import { merge, MergeArray } from "./merge"; /** @@ -17,7 +17,7 @@ const isEager = Symbol(); * Internally used by {@link _resolve} to tag a requested dependency, directly before calling the factory. * This allows us to find cycles during instance creation. */ -const isRequested = Symbol(); +const requested = Symbol(); // ✅ a module that can be passed to the inject function export type Module = any, T = C> = @@ -83,25 +83,15 @@ function createContainer(module: MergeArray): Container(module: any, container?: C): any { - const obj: any = {}; - keys(module).forEach(key => { - const value = module[key]; - if (isObj(value)) { - obj[key] = proxify(value, container ?? obj); - } else if (typeof value === 'function') { - obj[key] = new Proxy({}, { - deleteProperty: () => false, - get: (obj, prop) => _resolve(obj, prop, module, injector || proxy), - getOwnPropertyDescriptor: (obj, prop) => (_resolve(obj, prop, module, injector || proxy), Object.getOwnPropertyDescriptor(obj, prop)), // used by for..in - has: (_, prop) => prop in module, // used by ..in.. - ownKeys: () => Reflect.ownKeys(module) // used by for..in - }); - } else { - throw new Error(); // TODO(@@dd): error message - } +function proxify(module: any, container?: any): any { + const proxy: any = new Proxy({} as any, { + deleteProperty: () => false, + get: (target, prop) => resolve(target, prop, module, container || proxy), + getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, module, container || proxy), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in + has: (_, prop) => prop in module, // used by ..in.. + ownKeys: () => Reflect.ownKeys(module) }); - return obj; + return proxy; } /** @@ -112,25 +102,27 @@ function proxify(module: any, container?: C): any { * @param obj an object holding all group proxies and services * @param prop the key of a value within obj * @param module an object containing groups and service factories - * @param injector the first level proxy that provides access to all values + * @param container the first level proxy that provides access to all values * @returns the requested value `obj[prop]` * @throws Error if a dependency cycle is detected */ -function _resolve(obj: any, prop: PropertyKey, module: Module, factory: I): T[keyof T] | undefined { + function resolve(obj: any, prop: PropertyKey, module: any, container: any): T[keyof T] | undefined { if (prop in obj) { if (obj[prop] instanceof Error) { throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); } - if (obj[prop] === isRequested) { + if (obj[prop] === requested) { + // TODO(@@dd): refer to the GitHub readme of ginject instead of langium docs throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); } return obj[prop]; } else if (prop in module) { - const value: Module | ((factory: I) => T[keyof T]) = module[prop as keyof T]; - obj[prop] = isRequested; + const value = module[prop]; + obj[prop] = requested; try { - obj[prop] = (typeof value === 'function') ? value(factory) : _inject(value, factory); + obj[prop] = (typeof value === 'function') ? value(container) : proxify(value, container); } catch (error) { + // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) obj[prop] = error instanceof Error ? error : undefined; throw error; } diff --git a/test/inject.test.ts b/test/inject.test.ts index a02efb47..f8352c7d 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -271,13 +271,13 @@ describe('The inject function', () => { a = 1; } - interface I1 { + interface C1 { groupA: { service1: A } } - interface I2 { + interface C2 { groupB: { groupC: { service2: A @@ -285,13 +285,13 @@ describe('The inject function', () => { } } - const m1: Module = { + const m1: Module = { groupA: { service1: () => new A() } }; - const m2: Module = { + const m2: Module = { groupB: { groupC: { service2: () => new A() @@ -299,13 +299,13 @@ describe('The inject function', () => { } }; - const m3 = { // intentionally not declared as Module + const m3 = { // intentionally not declared as Module groupB: { groupC: { - // injector may have an arbitrary type but + // container may have an arbitrary type but // the inject() call will fail for m3 if no module - // exists that provides that injector - service2: (injector: I1) => new B(injector.groupA.service1) + // exists that provides that container + service2: (ctr: C1) => new B(ctr.groupA.service1) } }, x: () => 1 diff --git a/tsconfig.json b/tsconfig.json index e4addd50..9405eb93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES6", // emitted JavaScript version - "lib": ["ES6"], // specify library files to be included in the compilation + "lib": ["ESNext"], // specify library files to be included in the compilation "module": "commonjs", // generated module code "rootDir": "./src", // source folder "outDir": "./dist", // *.d.ts goes here From 972689f0188a2988db05c7fb11cee360c5d40dae Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 20:24:30 +0000 Subject: [PATCH 007/159] added eslint --- .eslintrc.json | 73 ++ package-lock.json | 2055 ++++++++++++++++++++++++++++++++++++++++++++- package.json | 4 + src/inject.ts | 15 +- src/merge.ts | 29 +- src/object.ts | 11 +- 6 files changed, 2151 insertions(+), 36 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..91ee7ad0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,73 @@ +// see [ESLint Configuration](https://eslint.org/docs/user-guide/configuring) +{ + // libs that run in both envs, browser & node, don't access global variables that are browser or node specific + "env": { + "browser": false, // enables Browser global variables, like localStorage + "es6": true, // enables new ES6 global variables, such as Set + "node": true // enables Node global variables, like process + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { // [typescript-eslint parser configuration](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration) + "project": "tsconfig.json", // mandatory when using types + "sourceType": "module" // needed in order to use import declarations + }, + "plugins": [ + "@typescript-eslint" + ], + "rules": { + + // List of [ESLint rules](https://eslint.org/docs/rules/) + "arrow-parens": ["off", "as-needed"], // do not force arrow function parentheses + "constructor-super": "error", // checks the correct use of super() in sub-classes + "curly": "error", // if statement needs curly braces + "dot-notation": "error", // obj.a instead of obj['a'] when possible + "eqeqeq": "error", // ban '==', don't use 'smart' option! + "guard-for-in": "error", // needs obj.hasOwnProperty(key) checks + "new-parens": "error", // new Error() instead of new Error + "no-bitwise": "error", // bitwise operators &, | can be confused with &&, || + "no-caller": "error", // ECMAScript deprecated arguments.caller and arguments.callee + "no-cond-assign": "error", // assignments if (a = '1') are error-prone + "no-debugger": "error", // disallow debugger; statements + "no-eval": "error", // eval is considered unsafe + "no-inner-declarations": "off", // we need to have 'namespace' functions when using TS 'export =' + "no-labels": "error", // GOTO is only used in BASIC ;) + "no-multiple-empty-lines": ["error", {"max": 1}], // two or more empty lines need to be fused to one + "no-new-wrappers": "error", // there is no reason to wrap primitve values + "no-throw-literal": "error", // only throw Error but no objects {} + "no-trailing-spaces": "error", // trim end of lines + "no-unsafe-finally": "error", // safe try/catch/finally behavior + "no-var": "error", // use const and let instead of var + "prefer-const": "error", // use const when possible + "quote-props": ["error", "as-needed", { // defines how object-keys are quoted + "keywords": false, + "unnecessary": true, + "numbers": false + }], + "space-before-function-paren": ["error", { // space in function decl: f() vs async () => {} + "anonymous": "never", + "asyncArrow": "always", + "named": "never" + }], + "use-isnan": "error", // isNaN(i) Number.isNaN(i) instead of i === NaN + + // List of [@typescript-eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules) + "@typescript-eslint/adjacent-overload-signatures": "error", // grouping same method names + "@typescript-eslint/array-type": ["error", { // string[] instead of Array + "default": "array-simple" + }], + "@typescript-eslint/ban-types": "error", // bans types like String in favor of string + "@typescript-eslint/indent": "error", // consistent indentation + "@typescript-eslint/consistent-type-assertions": "error", // needed for .tsx, bad = bar, good = bar as Foo + "@typescript-eslint/no-misused-new": "error", // no constructors for interfaces or new for classes + "@typescript-eslint/no-parameter-properties": "error", // no property definitions in class constructors + "@typescript-eslint/no-var-requires": "error", // use import instead of require + "@typescript-eslint/prefer-for-of": "error", // prefer for-of loop over arrays + "@typescript-eslint/prefer-namespace-keyword": "error", // prefer namespace over module in TypeScript + "@typescript-eslint/triple-slash-reference": "error", // ban /// , prefer imports + "@typescript-eslint/type-annotation-spacing": "error" // consistent space around colon ':' + } +} diff --git a/package-lock.json b/package-lock.json index 81a36e95..7a5dd82c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,10 @@ "version": "0.0.0", "license": "MIT", "devDependencies": { + "@typescript-eslint/eslint-plugin": "^5.38.1", + "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", + "eslint": "^8.24.0", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" @@ -53,6 +56,72 @@ "node": ">=12" } }, + "node_modules/@eslint/eslintrc": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", + "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", + "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", @@ -87,6 +156,41 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@types/chai": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", @@ -108,12 +212,232 @@ "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, "node_modules/@types/node": { "version": "18.7.23", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", "dev": true }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz", + "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/type-utils": "5.38.1", + "@typescript-eslint/utils": "5.38.1", + "debug": "^4.3.4", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz", + "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/typescript-estree": "5.38.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz", + "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/visitor-keys": "5.38.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz", + "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/utils": "5.38.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz", + "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz", + "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/visitor-keys": "5.38.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz", + "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/typescript-estree": "5.38.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz", + "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.38.1", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@vitest/coverage-c8": { "version": "0.23.4", "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.4.tgz", @@ -139,6 +463,31 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -163,6 +512,21 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -188,6 +552,18 @@ "concat-map": "0.0.1" } }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/c8": { "version": "7.12.0", "resolved": "https://registry.npmjs.org/c8/-/c8-7.12.0.tgz", @@ -214,6 +590,15 @@ "node": ">=10.12.0" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/chai": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", @@ -232,6 +617,22 @@ "node": ">=4" } }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -328,6 +729,36 @@ "node": ">=0.12" } }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -700,6 +1131,301 @@ "node": ">=6" } }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.2", + "@humanwhocodes/config-array": "^0.10.5", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@humanwhocodes/module-importer": "^1.0.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/espree": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", + "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -716,6 +1442,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, "node_modules/foreground-child": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", @@ -793,6 +1538,59 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -820,6 +1618,40 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -848,13 +1680,43 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, "engines": { - "node": ">=8" + "node": ">=0.12.0" } }, "node_modules/isexe": { @@ -899,6 +1761,49 @@ "node": ">=8" } }, + "node_modules/js-sdsl": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", + "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/local-pkg": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", @@ -926,6 +1831,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "node_modules/loupe": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", @@ -935,6 +1846,18 @@ "get-func-name": "^2.0.0" } }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -950,6 +1873,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -980,6 +1925,12 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -989,6 +1940,23 @@ "wrappy": "1" } }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -1019,6 +1987,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -1052,6 +2032,15 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/pathval": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", @@ -1067,6 +2056,18 @@ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/postcss": { "version": "8.4.16", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", @@ -1091,6 +2092,56 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -1117,6 +2168,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -1147,6 +2217,29 @@ "fsevents": "~2.3.2" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -1189,6 +2282,15 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -1224,6 +2326,18 @@ "node": ">=8" } }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-literal": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", @@ -1274,6 +2388,12 @@ "node": ">=8" } }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, "node_modules/tinybench": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", @@ -1298,12 +2418,57 @@ "node": ">=14.0.0" } }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/tsafe": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", "dev": true }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -1313,6 +2478,18 @@ "node": ">=4" } }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/typescript": { "version": "4.8.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", @@ -1326,6 +2503,15 @@ "node": ">=4.2.0" } }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/v8-to-istanbul": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", @@ -1448,6 +2634,15 @@ "node": ">= 8" } }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -1480,6 +2675,12 @@ "node": ">=10" } }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -1541,6 +2742,52 @@ "dev": true, "optional": true }, + "@eslint/eslintrc": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", + "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + } + }, + "@humanwhocodes/config-array": { + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", + "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "dev": true + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, "@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", @@ -1569,6 +2816,32 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, "@types/chai": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", @@ -1590,11 +2863,134 @@ "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, - "@types/node": { - "version": "18.7.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", - "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", - "dev": true + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "@types/node": { + "version": "18.7.23", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", + "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", + "dev": true + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz", + "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/type-utils": "5.38.1", + "@typescript-eslint/utils": "5.38.1", + "debug": "^4.3.4", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/parser": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz", + "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/typescript-estree": "5.38.1", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz", + "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/visitor-keys": "5.38.1" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz", + "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/utils": "5.38.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz", + "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz", + "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/visitor-keys": "5.38.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz", + "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.38.1", + "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/typescript-estree": "5.38.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.38.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz", + "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.38.1", + "eslint-visitor-keys": "^3.3.0" + } }, "@vitest/coverage-c8": { "version": "0.23.4", @@ -1612,6 +3008,25 @@ "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", "dev": true }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -1627,6 +3042,18 @@ "color-convert": "^2.0.1" } }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, "assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -1649,6 +3076,15 @@ "concat-map": "0.0.1" } }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, "c8": { "version": "7.12.0", "resolved": "https://registry.npmjs.org/c8/-/c8-7.12.0.tgz", @@ -1669,6 +3105,12 @@ "yargs-parser": "^20.2.9" } }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, "chai": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", @@ -1684,6 +3126,16 @@ "type-detect": "^4.0.5" } }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -1760,6 +3212,30 @@ "type-detect": "^4.0.0" } }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -1942,6 +3418,236 @@ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint": { + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", + "dev": true, + "requires": { + "@eslint/eslintrc": "^1.3.2", + "@humanwhocodes/config-array": "^0.10.5", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@humanwhocodes/module-importer": "^1.0.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true + }, + "espree": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", + "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "dev": true, + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -1952,6 +3658,22 @@ "path-exists": "^4.0.0" } }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, "foreground-child": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", @@ -2007,6 +3729,44 @@ "path-is-absolute": "^1.0.0" } }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "globals": { + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -2028,6 +3788,28 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2053,12 +3835,33 @@ "has": "^1.0.3" } }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true + }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -2092,6 +3895,43 @@ "istanbul-lib-report": "^3.0.0" } }, + "js-sdsl": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", + "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, "local-pkg": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", @@ -2107,6 +3947,12 @@ "p-locate": "^5.0.0" } }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "loupe": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", @@ -2116,6 +3962,15 @@ "get-func-name": "^2.0.0" } }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -2125,6 +3980,22 @@ "semver": "^6.0.0" } }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2146,6 +4017,12 @@ "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "dev": true }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -2155,6 +4032,20 @@ "wrappy": "1" } }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -2173,6 +4064,15 @@ "p-limit": "^3.0.2" } }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -2197,6 +4097,12 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, "pathval": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", @@ -2209,6 +4115,12 @@ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, "postcss": { "version": "8.4.16", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", @@ -2220,6 +4132,30 @@ "source-map-js": "^1.0.2" } }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true + }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -2237,6 +4173,18 @@ "supports-preserve-symlinks-flag": "^1.0.0" } }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -2255,6 +4203,15 @@ "fsevents": "~2.3.2" } }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -2288,6 +4245,12 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, "source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -2314,6 +4277,12 @@ "ansi-regex": "^5.0.1" } }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, "strip-literal": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", @@ -2349,6 +4318,12 @@ "minimatch": "^3.0.4" } }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, "tinybench": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", @@ -2367,24 +4342,72 @@ "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", "dev": true }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, "tsafe": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", "dev": true }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, "typescript": { "version": "4.8.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, "v8-to-istanbul": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", @@ -2437,6 +4460,12 @@ "isexe": "^2.0.0" } }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -2460,6 +4489,12 @@ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", diff --git a/package.json b/package.json index be665bdc..5c4ab426 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "scripts": { "build": "tsc", "coverage": "vitest run --coverage", + "lint": "eslint src test --ext .ts", "test": "vitest" }, "repository": { @@ -34,7 +35,10 @@ }, "license": "MIT", "devDependencies": { + "@typescript-eslint/eslint-plugin": "^5.38.1", + "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", + "eslint": "^8.24.0", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" diff --git a/src/inject.ts b/src/inject.ts index f0beb351..dc59d772 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -27,15 +27,16 @@ export type Module = any, T = C> = // ✅ Internal. InverseModule> := T type InverseModule = - M extends (...args: any[]) => any ? ReturnType : - M extends Obj ? { - [K in keyof M]: InverseModule - } : never; + M extends () => any ? ReturnType : + M extends Obj ? { + [K in keyof M]: InverseModule + } : never; // ✅ transforms a list of modules to an IoC container export type Container = InverseModule>; // ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) +// eslint-disable-next-line no-unused-vars export type Factory = (ctr: C) => T; /** @@ -46,10 +47,10 @@ type InternalFactory = Factory & { [isEager]?: b /** * Decorates an {@link Injector} for eager initialization with {@link inject}. - * + * * @param factory */ - export function eager(factory: Factory): Factory { +export function eager(factory: Factory): Factory { return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); } @@ -106,7 +107,7 @@ function proxify(module: any, container?: any): any { * @returns the requested value `obj[prop]` * @throws Error if a dependency cycle is detected */ - function resolve(obj: any, prop: PropertyKey, module: any, container: any): T[keyof T] | undefined { +function resolve(obj: any, prop: PropertyKey, module: any, container: any): T[keyof T] | undefined { if (prop in obj) { if (obj[prop] instanceof Error) { throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); diff --git a/src/merge.ts b/src/merge.ts index 33b127a5..2db9a589 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,13 +4,13 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { isObj, keys, Obj } from './object'; +import { EmptyObj, isObj, keys, Obj } from './object'; export type MergeArray = - M extends [] ? {} : // no modules => empty result - M extends [Head, ...Tail] ? ( - Tail extends [] ? Head : Merge>, Head> - ) : never; + M extends [] ? EmptyObj : // no modules => empty result + M extends [Head, ...Tail] ? ( + Tail extends [] ? Head : Merge>, Head> + ) : never; // ✅ merge two arbitrary values // Rule 1: mergining something with never resolves to never @@ -18,24 +18,23 @@ export type MergeArray = // Rule 3: mergining something with unknown resolves to unknown export type Merge = Or, Is> extends true ? never : - Or, Is> extends true ? any : - Or, Is> extends true ? unknown : - S extends Record - ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never); + Or, Is> extends true ? any : + Or, Is> extends true ? unknown : + S extends Record + ? T extends Record ? MergeObjects : never + : T extends Record ? never : (S extends T ? S : never); // ✅ merge two objects type MergeObjects, T extends Record> = { - [K in keyof S | keyof T]: - K extends keyof S - ? (K extends keyof T ? Merge : S[K]) - : (K extends keyof T ? T[K] : never) + [K in keyof S | keyof T]: K extends keyof S + ? (K extends keyof T ? Merge : S[K]) + : (K extends keyof T ? T[K] : never) }; // ✅ head of a list type Head = A extends [] ? never : - A extends [head: infer H, ...tail: any[]] ? H : never; + A extends [head: infer H, ...tail: any[]] ? H : never; // ✅ tail of a list type Tail = diff --git a/src/object.ts b/src/object.ts index 54895060..23a1c81c 100644 --- a/src/object.ts +++ b/src/object.ts @@ -7,12 +7,15 @@ // ✅ represents an object, i.e. an associative array with possbily no properties export type Obj = T extends Record ? ( - T extends (...args: any[]) => any ? never : - T extends any[] ? never : - T + T extends () => any ? never : + T extends any[] ? never : T ) : never; -// ✅ tests if a value is an object +export type EmptyObj = { + [key: PropertyKey]: never; +} + +// ✅ tests if a value is an object export function isObj(t: T): t is Obj { return t !== null && typeof t === 'object' && !Array.isArray(t); } From d17a5fcc35a12886c882cfcb6e7464cb07cce1a2 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 21:40:05 +0000 Subject: [PATCH 008/159] cleanup --- src/merge.ts | 6 +++--- src/object.ts | 4 ---- test/merge.test.ts | 4 +++- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/merge.ts b/src/merge.ts index 2db9a589..287570ae 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,10 +4,10 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { EmptyObj, isObj, keys, Obj } from './object'; +import { isObj, keys, Obj } from './object'; export type MergeArray = - M extends [] ? EmptyObj : // no modules => empty result + M extends [] ? {} : // eslint-disable-line @typescript-eslint/ban-types M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Merge>, Head> ) : never; @@ -22,7 +22,7 @@ export type Merge = Or, Is> extends true ? unknown : S extends Record ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never); + : T extends Record ? never : (S extends T ? S : never) // ✅ merge two objects type MergeObjects, T extends Record> = { diff --git a/src/object.ts b/src/object.ts index 23a1c81c..fa319397 100644 --- a/src/object.ts +++ b/src/object.ts @@ -11,10 +11,6 @@ export type Obj = T extends any[] ? never : T ) : never; -export type EmptyObj = { - [key: PropertyKey]: never; -} - // ✅ tests if a value is an object export function isObj(t: T): t is Obj { return t !== null && typeof t === 'object' && !Array.isArray(t); diff --git a/test/merge.test.ts b/test/merge.test.ts index 53c8f568..574f5af6 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -12,7 +12,7 @@ type Fn = (...args: any[]) => any; describe('type Merge', () => { - describe('totality types', () => { + describe('universal types', () => { it('should merge any', () => { tsafeAssert, any>>(); @@ -171,6 +171,8 @@ describe('type Merge', () => { tsafeAssert void>, Fn>>(); }); + // TODO(@@dd): classes are functions + }); describe('object types', () => { From 5757031da17eaf56b25508171f11e542422ebf58 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:02:24 +0000 Subject: [PATCH 009/159] cleanup --- .eslintrc.json | 3 +-- src/merge.ts | 2 +- test/inject.test.ts | 2 ++ test/merge.test.ts | 14 ++++++++------ test/object.test.ts | 6 +++--- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 91ee7ad0..346148b9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,7 @@ ], "parser": "@typescript-eslint/parser", "parserOptions": { // [typescript-eslint parser configuration](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration) - "project": "tsconfig.json", // mandatory when using types + "project": "tsconfig.eslint.json", // mandatory when using types "sourceType": "module" // needed in order to use import declarations }, "plugins": [ @@ -59,7 +59,6 @@ "@typescript-eslint/array-type": ["error", { // string[] instead of Array "default": "array-simple" }], - "@typescript-eslint/ban-types": "error", // bans types like String in favor of string "@typescript-eslint/indent": "error", // consistent indentation "@typescript-eslint/consistent-type-assertions": "error", // needed for .tsx, bad = bar, good = bar as Foo "@typescript-eslint/no-misused-new": "error", // no constructors for interfaces or new for classes diff --git a/src/merge.ts b/src/merge.ts index 287570ae..cc35cc33 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -7,7 +7,7 @@ import { isObj, keys, Obj } from './object'; export type MergeArray = - M extends [] ? {} : // eslint-disable-line @typescript-eslint/ban-types + M extends [] ? {} : M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Merge>, Head> ) : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index f8352c7d..03458e8d 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -4,6 +4,8 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ +/* eslint-disable no-unused-vars */ + import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; import { eager, inject, Module } from '../src/inject'; diff --git a/test/merge.test.ts b/test/merge.test.ts index 574f5af6..be5aa10d 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -4,11 +4,13 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ +/* eslint-disable no-unused-vars */ + import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; import { merge, Merge, MergeArray } from '../src/merge'; -type Fn = (...args: any[]) => any; +type Fn = () => any; describe('type Merge', () => { @@ -176,7 +178,7 @@ describe('type Merge', () => { }); describe('object types', () => { - + describe('undefined properties', () => { it('should merge empty objects', () => { @@ -234,7 +236,7 @@ describe('type Merge', () => { type Expected = { a: never }; tsafeAssert, Expected>>(); }); - + it('should never merge source: undefined with target: 1', () => { type Source = { a: undefined }; type Target = { a: 1 }; @@ -639,7 +641,7 @@ describe('type Merge', () => { }); describe('array properties', () => { - + it('should merge non-empty source with empty target', () => { type Source = { a: [] }; type Target = {}; @@ -762,7 +764,7 @@ describe('type Merge', () => { }); describe('function properties', () => { - + it('should merge source: Fn with target: () => void', () => { type Source = { a: Fn }; type Target = { a: () => void }; @@ -780,7 +782,7 @@ describe('type Merge', () => { }); describe('object properties', () => { - + it('should merge deep properties that are assignable', () => { type Source = { a: { b: 1 } }; type Target = { a: { b: number } }; diff --git a/test/object.test.ts b/test/object.test.ts index 4b359e72..6ff03fa6 100644 --- a/test/object.test.ts +++ b/test/object.test.ts @@ -5,7 +5,7 @@ ******************************************************************************/ import { describe, expect, it } from 'vitest' -import {assert as tsafeAssert, Equals, Extends, Not } from 'tsafe'; +import {assert as tsafeAssert, Equals, Extends } from 'tsafe'; import { isObj, Obj } from '../src/object'; describe('type Obj', () => { @@ -67,7 +67,7 @@ describe('type Obj', () => { }); it('should never be (...args: any[]) => any', () => { - tsafeAssert any>, never>>(); + tsafeAssert any>, never>>(); }); it('should never be typeof fn', () => { @@ -89,7 +89,7 @@ describe('isObj', () => { it('should not accept undefined', () => { expect(isObj(undefined)).toBeFalsy(); }); - + it('should not accept null', () => { expect(isObj(null)).toBeFalsy(); }); From ac13249cd1f7a366434fd1ae3ba130cb37d3d7c2 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:02:33 +0000 Subject: [PATCH 010/159] cleanup --- tsconfig.eslint.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tsconfig.eslint.json diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 00000000..263fe68c --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "src", + "test" + ] +} From f5ec92eab62bbf801ead1c1c20adbfba25588f43 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:07:23 +0000 Subject: [PATCH 011/159] cleanup --- vitest.config.ts | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 vitest.config.ts diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index e69de29b..00000000 From a8912a2d8215482fad08cf4f2aaf90a2718977b5 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:25:18 +0000 Subject: [PATCH 012/159] cleanup --- .eslintrc.json | 4 +++- package-lock.json | 46 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + src/inject.ts | 2 +- src/object.ts | 2 +- test/inject.test.ts | 2 +- test/merge.test.ts | 2 +- 7 files changed, 54 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 346148b9..f9ae539e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -16,7 +16,8 @@ "sourceType": "module" // needed in order to use import declarations }, "plugins": [ - "@typescript-eslint" + "@typescript-eslint", + "unused-imports" ], "rules": { @@ -40,6 +41,7 @@ "no-throw-literal": "error", // only throw Error but no objects {} "no-trailing-spaces": "error", // trim end of lines "no-unsafe-finally": "error", // safe try/catch/finally behavior + "unused-imports/no-unused-imports": "error", // no unsused imports "no-var": "error", // use const and let instead of var "prefer-const": "error", // use const when possible "quote-props": ["error", "as-needed", { // defines how object-keys are quoted diff --git a/package-lock.json b/package-lock.json index 7a5dd82c..7a6187a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", + "eslint-plugin-unused-imports": "^2.0.0", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" @@ -1199,6 +1200,36 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-plugin-unused-imports": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", + "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", + "dev": true, + "dependencies": { + "eslint-rule-composer": "^0.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^5.0.0", + "eslint": "^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, + "node_modules/eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -3489,6 +3520,21 @@ } } }, + "eslint-plugin-unused-imports": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", + "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", + "dev": true, + "requires": { + "eslint-rule-composer": "^0.3.0" + } + }, + "eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", diff --git a/package.json b/package.json index 5c4ab426..cfd14b37 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", + "eslint-plugin-unused-imports": "^2.0.0", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" diff --git a/src/inject.ts b/src/inject.ts index dc59d772..64e0160c 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -27,7 +27,7 @@ export type Module = any, T = C> = // ✅ Internal. InverseModule> := T type InverseModule = - M extends () => any ? ReturnType : + M extends (...args: any[]) => any ? ReturnType : // eslint-disable-line no-unused-vars M extends Obj ? { [K in keyof M]: InverseModule } : never; diff --git a/src/object.ts b/src/object.ts index fa319397..b7102725 100644 --- a/src/object.ts +++ b/src/object.ts @@ -7,7 +7,7 @@ // ✅ represents an object, i.e. an associative array with possbily no properties export type Obj = T extends Record ? ( - T extends () => any ? never : + T extends (...args: any[]) => any ? never : // eslint-disable-line no-unused-vars T extends any[] ? never : T ) : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index 03458e8d..085a4606 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -7,7 +7,7 @@ /* eslint-disable no-unused-vars */ import { describe, expect, it } from 'vitest' -import {assert as tsafeAssert, Equals} from 'tsafe'; +import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject, Module } from '../src/inject'; describe('A dependency type', () => { diff --git a/test/merge.test.ts b/test/merge.test.ts index be5aa10d..29b6703d 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -10,7 +10,7 @@ import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; import { merge, Merge, MergeArray } from '../src/merge'; -type Fn = () => any; +type Fn = (...args: any[]) => any; describe('type Merge', () => { From 668a480caf2e8914ff8cd7c89274e621e8db05eb Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:28:14 +0000 Subject: [PATCH 013/159] cleanup --- test/object.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/object.test.ts b/test/object.test.ts index 6ff03fa6..c3f1b968 100644 --- a/test/object.test.ts +++ b/test/object.test.ts @@ -67,7 +67,7 @@ describe('type Obj', () => { }); it('should never be (...args: any[]) => any', () => { - tsafeAssert any>, never>>(); + tsafeAssert any>, never>>(); }); it('should never be typeof fn', () => { From b55c034c6aff1947e638ecced12952446c6d8506 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:47:38 +0000 Subject: [PATCH 014/159] cleanup --- src/inject.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 64e0160c..0294b9c7 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -74,14 +74,7 @@ export function eager(factory: Factory): Factory { // ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use export function inject(...modules: M): Container { const module = modules.reduce(merge, {}) as MergeArray; - return createContainer(module); -} - -function createContainer(module: MergeArray): Container { - const eagerServices = []; - const container = proxify(module/*TODO(@@dd):, eagerServices*/); - // TODO(@@dd): create eager services - return container; + return proxify(module); } function proxify(module: any, container?: any): any { From e055c0ae102f0b221adf43c3bdc9709d1c35e4c6 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 1 Oct 2022 22:59:26 +0000 Subject: [PATCH 015/159] cleanup --- .eslintrc.json | 3 ++- src/inject.ts | 3 +-- src/object.ts | 2 +- test/inject.test.ts | 2 -- test/merge.test.ts | 2 -- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f9ae539e..973e996e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -41,7 +41,7 @@ "no-throw-literal": "error", // only throw Error but no objects {} "no-trailing-spaces": "error", // trim end of lines "no-unsafe-finally": "error", // safe try/catch/finally behavior - "unused-imports/no-unused-imports": "error", // no unsused imports + "no-unused-vars": "off", // we need unused vars for proper typing "no-var": "error", // use const and let instead of var "prefer-const": "error", // use const when possible "quote-props": ["error", "as-needed", { // defines how object-keys are quoted @@ -54,6 +54,7 @@ "asyncArrow": "always", "named": "never" }], + "unused-imports/no-unused-imports": "error", // no unsused imports "use-isnan": "error", // isNaN(i) Number.isNaN(i) instead of i === NaN // List of [@typescript-eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules) diff --git a/src/inject.ts b/src/inject.ts index 0294b9c7..dc524ced 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -27,7 +27,7 @@ export type Module = any, T = C> = // ✅ Internal. InverseModule> := T type InverseModule = - M extends (...args: any[]) => any ? ReturnType : // eslint-disable-line no-unused-vars + M extends (...args: any[]) => any ? ReturnType : M extends Obj ? { [K in keyof M]: InverseModule } : never; @@ -36,7 +36,6 @@ type InverseModule = export type Container = InverseModule>; // ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) -// eslint-disable-next-line no-unused-vars export type Factory = (ctr: C) => T; /** diff --git a/src/object.ts b/src/object.ts index b7102725..f618dd11 100644 --- a/src/object.ts +++ b/src/object.ts @@ -7,7 +7,7 @@ // ✅ represents an object, i.e. an associative array with possbily no properties export type Obj = T extends Record ? ( - T extends (...args: any[]) => any ? never : // eslint-disable-line no-unused-vars + T extends (...args: any[]) => any ? never : T extends any[] ? never : T ) : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index 085a4606..880a8de2 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -4,8 +4,6 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -/* eslint-disable no-unused-vars */ - import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject, Module } from '../src/inject'; diff --git a/test/merge.test.ts b/test/merge.test.ts index 29b6703d..238edc9f 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -4,8 +4,6 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -/* eslint-disable no-unused-vars */ - import { describe, expect, it } from 'vitest' import {assert as tsafeAssert, Equals} from 'tsafe'; import { merge, Merge, MergeArray } from '../src/merge'; From 1eb2124d6d9118948f94b38d7bf5590bfe964d39 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 2 Oct 2022 15:53:03 +0000 Subject: [PATCH 016/159] cleanup --- src/inject.ts | 17 +++-- src/merge.ts | 16 ++++- src/object.ts | 22 ------- test/object.test.ts | 149 -------------------------------------------- 4 files changed, 20 insertions(+), 184 deletions(-) delete mode 100644 src/object.ts delete mode 100644 test/object.test.ts diff --git a/src/inject.ts b/src/inject.ts index dc524ced..d4051e26 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,6 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { Obj } from "./object"; import { merge, MergeArray } from "./merge"; /** @@ -20,17 +19,14 @@ const isEager = Symbol(); const requested = Symbol(); // ✅ a module that can be passed to the inject function -export type Module = any, T = C> = - T extends Obj ? { // ensure C and T are real ojects { ... } - [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy - } : never; +export type Module = { // ensure C and T are real ojects { ... } + [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy +}; // ✅ Internal. InverseModule> := T -type InverseModule = - M extends (...args: any[]) => any ? ReturnType : - M extends Obj ? { - [K in keyof M]: InverseModule - } : never; +type InverseModule = T extends (...args: any[]) => any ? ReturnType : { + [K in keyof T]: InverseModule +}; // ✅ transforms a list of modules to an IoC container export type Container = InverseModule>; @@ -71,6 +67,7 @@ export function eager(factory: Factory): Factory { * @returns a new object of type I */ // ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use +// TODO(@@dd): verify that the container contains all dependencies that are needed export function inject(...modules: M): Container { const module = modules.reduce(merge, {}) as MergeArray; return proxify(module); diff --git a/src/merge.ts b/src/merge.ts index cc35cc33..3c9424bd 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,8 +4,6 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { isObj, keys, Obj } from './object'; - export type MergeArray = M extends [] ? {} : M extends [Head, ...Tail] ? ( @@ -46,9 +44,21 @@ type Is = (() => T extends T2 ? true : false) extends () => T exte // ✅ logical or tests if condition C1 or condition C2 is true type Or = C1 extends true ? true : C2 extends true ? true : false; +// ✅ represents an object, i.e. an associative array with possbily no properties +type Obj = + T extends Record ? ( + T extends (...args: any[]) => any ? never : + T extends any[] ? never : T + ) : never; + +// ✅ tests if a value is an object +function isObj(t: T): t is Obj { + return t !== null && typeof t === 'object' && !Array.isArray(t); +} + // ✅ merge two objects, the signature is compatible with the reducer callback of Array.prototype.reduce export function merge(target: Obj, source: Obj): Merge { - keys(source).forEach(key => { + [...Object.keys(source), ...Object.getOwnPropertySymbols(source)].forEach(key => { const sourceValue = source[key]; const targetValue = target[key]; (target as any)[key] = isObj(sourceValue) && isObj(targetValue) ? merge(targetValue, sourceValue) : sourceValue; diff --git a/src/object.ts b/src/object.ts deleted file mode 100644 index f618dd11..00000000 --- a/src/object.ts +++ /dev/null @@ -1,22 +0,0 @@ -/****************************************************************************** - * Copyright 2022 TypeFox GmbH - * This program and the accompanying materials are made available under the - * terms of the MIT License, which is available in the project root. - ******************************************************************************/ - -// ✅ represents an object, i.e. an associative array with possbily no properties -export type Obj = - T extends Record ? ( - T extends (...args: any[]) => any ? never : - T extends any[] ? never : T - ) : never; - -// ✅ tests if a value is an object -export function isObj(t: T): t is Obj { - return t !== null && typeof t === 'object' && !Array.isArray(t); -} - -// ✅ returns the keys of an object -export function keys>(obj: T): PropertyKey[] { - return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; -} diff --git a/test/object.test.ts b/test/object.test.ts deleted file mode 100644 index c3f1b968..00000000 --- a/test/object.test.ts +++ /dev/null @@ -1,149 +0,0 @@ -/****************************************************************************** - * Copyright 2022 TypeFox GmbH - * This program and the accompanying materials are made available under the - * terms of the MIT License, which is available in the project root. - ******************************************************************************/ - -import { describe, expect, it } from 'vitest' -import {assert as tsafeAssert, Equals, Extends } from 'tsafe'; -import { isObj, Obj } from '../src/object'; - -describe('type Obj', () => { - - it('should be {}', () => { - tsafeAssert, {}>>(); - }); - - it('should be { a: 1 } & { b: 2 }', () => { - tsafeAssert, { a: 1, b: 2 }>>(); - }); - - it('should cover superset', () => { - tsafeAssert, {}>>(); - }); - - it('should cover interfaces', () => { - tsafeAssert, { a: number }>>(); - }); - - it('should cover classes (because a class can be used as supertype of an interface)', () => { - tsafeAssert, A>>(); - }); - - it('should cover object', () => { - tsafeAssert, object>>(); - }); - - it('should never be undefined', () => { - tsafeAssert, never>>(); - }); - - it('should never be null', () => { - tsafeAssert, never>>(); - }); - - it('should never be boolean', () => { - tsafeAssert, never>>(); - }); - - it('should never be number', () => { - tsafeAssert, never>>(); - }); - - it('should never be string', () => { - tsafeAssert, never>>(); - }); - - it('should never be any[]', () => { - tsafeAssert, never>>(); - }); - - it('should never be () => any', () => { - tsafeAssert any>, never>>(); - }); - - it('should never be () => void', () => { - tsafeAssert void>, never>>(); - }); - - it('should never be (...args: any[]) => any', () => { - tsafeAssert any>, never>>(); - }); - - it('should never be typeof fn', () => { - tsafeAssert, never>>(); - }); - -}); - -describe('isObj', () => { - - it('should accept {}', () => { - expect(isObj({})).toBeTruthy(); - }); - - it('should accept { a: 1 } & { b: 2 }', () => { - expect(isObj({ a: 1, b: 2 })).toBeTruthy(); - }); - - it('should not accept undefined', () => { - expect(isObj(undefined)).toBeFalsy(); - }); - - it('should not accept null', () => { - expect(isObj(null)).toBeFalsy(); - }); - - it('should not accept true', () => { - expect(isObj(true)).toBeFalsy(); - }); - - it('should not accept false', () => { - expect(isObj(false)).toBeFalsy(); - }); - - it('should not accept 0', () => { - expect(isObj(0)).toBeFalsy(); - }); - - it('should not accept 1', () => { - expect(isObj(1)).toBeFalsy(); - }); - - it('should not accept empty string', () => { - expect(isObj('')).toBeFalsy(); - }); - - it('should not accept non-empty string', () => { - expect(isObj('a')).toBeFalsy(); - }); - - it('should not accept empty array', () => { - expect(isObj([])).toBeFalsy(); - }); - - it('should not accept non-empty array', () => { - expect(isObj([1])).toBeFalsy(); - }); - - it('should not accept a class', () => { - expect(isObj(A)).toBeFalsy(); - }); - - it('should not accept () => 1', () => { - expect(isObj(() => 1)).toBeFalsy(); - }); - - it('should not accept fn', () => { - expect(isObj(fn)).toBeFalsy(); - }); - -}); - -function fn() {} - -class A {} - -interface InterfaceA { - a: number -} From a95fef93f96173001be43a99d62450582279b15b Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 13:40:02 +0000 Subject: [PATCH 017/159] eager eval --- src/inject.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/inject.ts b/src/inject.ts index d4051e26..c774fe4a 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -70,7 +70,22 @@ export function eager(factory: Factory): Factory { // TODO(@@dd): verify that the container contains all dependencies that are needed export function inject(...modules: M): Container { const module = modules.reduce(merge, {}) as MergeArray; - return proxify(module); + const container = proxify(module); + initializeEagerServices(module, container); + return container; +} + +function initializeEagerServices(module: any, container: any): any { + [...Object.keys(module), ...Object.getOwnPropertySymbols(module)].forEach(key => { + const value = module[key]; + if (typeof value === 'function') { + if (value[isEager]) { + value(container); + } + } else { + initializeEagerServices(value, container); + } + }); } function proxify(module: any, container?: any): any { From 10440f6c5eaa98e56c503782be28944a56937a75 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 13:56:00 +0000 Subject: [PATCH 018/159] better error messages --- src/inject.ts | 25 ++++++++++++------------- src/merge.ts | 7 ++++++- test/inject.test.ts | 4 ++-- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index c774fe4a..0314cc7b 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { merge, MergeArray } from "./merge"; +import { keys, merge, MergeArray } from "./merge"; /** * Internally used by {@link eager} to tag an injector. @@ -75,24 +75,22 @@ export function inject(...modules: M): Containe return container; } -function initializeEagerServices(module: any, container: any): any { - [...Object.keys(module), ...Object.getOwnPropertySymbols(module)].forEach(key => { +function initializeEagerServices(module: any, container: any): void { + keys(module).forEach(key => { const value = module[key]; if (typeof value === 'function') { - if (value[isEager]) { - value(container); - } + value[isEager] && value(container); } else { initializeEagerServices(value, container); } }); } -function proxify(module: any, container?: any): any { +function proxify(module: any, container?: any, path?: string): any { const proxy: any = new Proxy({} as any, { deleteProperty: () => false, - get: (target, prop) => resolve(target, prop, module, container || proxy), - getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, module, container || proxy), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in + get: (target, prop) => resolve(target, prop, module, container || proxy, path), + getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, module, container || proxy, path), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in has: (_, prop) => prop in module, // used by ..in.. ownKeys: () => Reflect.ownKeys(module) }); @@ -111,21 +109,22 @@ function proxify(module: any, container?: any): any { * @returns the requested value `obj[prop]` * @throws Error if a dependency cycle is detected */ -function resolve(obj: any, prop: PropertyKey, module: any, container: any): T[keyof T] | undefined { +function resolve(obj: any, prop: PropertyKey, module: any, container: any, parentPath?: string): T[keyof T] | undefined { + const path = (parentPath ? '.' : '') + String(prop); if (prop in obj) { if (obj[prop] instanceof Error) { - throw new Error('Construction failure. Please make sure that your dependencies are constructable.', { cause: obj[prop] }); + throw new Error('Construction failure: ' + path); } if (obj[prop] === requested) { // TODO(@@dd): refer to the GitHub readme of ginject instead of langium docs - throw new Error('Cycle detected. Please make "' + String(prop) + '" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + throw new Error('Cycle detected. Please make ' + path + ' lazy. See https://github.com/langium/ginject#cyclic-dependencies'); } return obj[prop]; } else if (prop in module) { const value = module[prop]; obj[prop] = requested; try { - obj[prop] = (typeof value === 'function') ? value(container) : proxify(value, container); + obj[prop] = (typeof value === 'function') ? value(container) : proxify(value, container, (path ? '.' : '')); } catch (error) { // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) obj[prop] = error instanceof Error ? error : undefined; diff --git a/src/merge.ts b/src/merge.ts index 3c9424bd..91ee73f9 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -58,10 +58,15 @@ function isObj(t: T): t is Obj { // ✅ merge two objects, the signature is compatible with the reducer callback of Array.prototype.reduce export function merge(target: Obj, source: Obj): Merge { - [...Object.keys(source), ...Object.getOwnPropertySymbols(source)].forEach(key => { + keys(source).forEach(key => { const sourceValue = source[key]; const targetValue = target[key]; (target as any)[key] = isObj(sourceValue) && isObj(targetValue) ? merge(targetValue, sourceValue) : sourceValue; }); return target as Merge; } + +// ✅ returns object keys and symbols +export function keys(t: Obj): PropertyKey[] { + return [...Object.keys(t), ...Object.getOwnPropertySymbols(t)]; +} diff --git a/test/inject.test.ts b/test/inject.test.ts index 880a8de2..9080cdc4 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -247,7 +247,7 @@ describe('The inject function', () => { } expect(() => inject({ a: (ctr: API) => new A(ctr), b: (ctr: API) => new B(ctr) }).a - ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + ).toThrowError('Cycle detected. Please make a lazy. See https://github.com/langium/ginject#cyclic-dependencies'); }); it('should throw when cyclic dependency is accessed during factory function call', () => { @@ -256,7 +256,7 @@ describe('The inject function', () => { const createB = ({ a }: API) => ({ b: a.a }); expect(() => inject({ a: createA, b: createB }).a - ).toThrowError('Cycle detected. Please make "a" lazy. See https://langium.org/docs/di/cyclic-dependencies'); + ).toThrowError('Cycle detected. Please make a lazy. See https://github.com/langium/ginject#cyclic-dependencies'); }); it('should merge groups', () => { From 440873b6ba0ab3a7a70e6411ad470f6bd12d6247 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 16:27:55 +0200 Subject: [PATCH 019/159] Added GitHub actions --- .github/ISSUE_TEMPLATE/bug_report.md | 40 +++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 ++ .github/ISSUE_TEMPLATE/feature_request.md | 8 ++ .github/ISSUE_TEMPLATE/improvement.md | 7 ++ .github/workflows/actions.yml | 27 ++++++ package-lock.json | 103 ++++++++++++++++++++++ package.json | 5 +- 7 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/improvement.md create mode 100644 .github/workflows/actions.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..908a92fa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,40 @@ +--- +name: "Bug report" +about: Report a reproducible bug or regression. +labels: 'bug' + +--- + +# Bug Report + +Ginject version: + + + +## Steps To Reproduce + +1. +2. + + + +Link to code example: + + + +## The current behavior + +## The expected behavior diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..f686d24e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Question + url: https://github.com/langium/ginject/discussions + about: Please ask questions here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..68de508d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,8 @@ +--- +name: Feature request +about: Suggest an idea for this project +labels: 'feature-request' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/improvement.md b/.github/ISSUE_TEMPLATE/improvement.md new file mode 100644 index 00000000..09847e5e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/improvement.md @@ -0,0 +1,7 @@ +--- +name: General improvement +about: Suggest an improvement for this project + +--- + + diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000..5c9363dd --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Ginject + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + - name: Build + shell: bash + run: | + npm ci + npm test diff --git a/package-lock.json b/package-lock.json index 7a6187a8..500904a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", "eslint-plugin-unused-imports": "^2.0.0", + "shx": "^0.3.4", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" @@ -1699,6 +1700,15 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/is-core-module": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", @@ -1938,6 +1948,12 @@ "node": "*" } }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -2161,6 +2177,18 @@ } ] }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", @@ -2307,6 +2335,39 @@ "node": ">=8" } }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shx": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.4.tgz", + "integrity": "sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==", + "dev": true, + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -3872,6 +3933,12 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, "is-core-module": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", @@ -4051,6 +4118,12 @@ "brace-expansion": "^1.1.7" } }, + "minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -4196,6 +4269,15 @@ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, "regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", @@ -4285,6 +4367,27 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "shx": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.4.tgz", + "integrity": "sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==", + "dev": true, + "requires": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + } + }, "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", diff --git a/package.json b/package.json index cfd14b37..9e8de4c7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ginject", "version": "0.0.0", - "description": "Ginject is a featherweight dependency injection solution for decoupling JavaScript and Node.js apps.", + "description": "Ginject is a featherweight and typesafe dependency injection library for decoupling JavaScript and Node.js apps.", "keywords": [ "inject", "dependency injection", @@ -15,7 +15,9 @@ "types": "./dist/index.d.ts", "main": "./dist/index.js", "scripts": { + "prepare": "npm run clean && npm run build && npm run lint", "build": "tsc", + "clean": "shx rm -rf dist", "coverage": "vitest run --coverage", "lint": "eslint src test --ext .ts", "test": "vitest" @@ -40,6 +42,7 @@ "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", "eslint-plugin-unused-imports": "^2.0.0", + "shx": "^0.3.4", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" From 6808c407b85a73a9c8bfd7b9ce00807441aa5d0b Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 14:36:31 +0000 Subject: [PATCH 020/159] cleanup --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 9405eb93..e4addd50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES6", // emitted JavaScript version - "lib": ["ESNext"], // specify library files to be included in the compilation + "lib": ["ES6"], // specify library files to be included in the compilation "module": "commonjs", // generated module code "rootDir": "./src", // source folder "outDir": "./dist", // *.d.ts goes here From ad35781b9a480a2c514fee72698ac5bbf25bddc6 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 16:04:21 +0000 Subject: [PATCH 021/159] cleanup --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ src/inject.ts | 17 ++++++----------- src/merge.ts | 20 ++++++++++++-------- test/merge.test.ts | 6 ++---- 4 files changed, 66 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index e69de29b..284af598 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,46 @@ + + +
+ + [![npm](https://img.shields.io/npm/v/ginject)](https://www.npmjs.com/package/ginject) + [![Build](https://github.com/langium/ginject/actions/workflows/build.yml/badge.svg)](https://github.com/langium/ginject/actions/workflows/build.yml) + [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/langium/ginject) + +
+ +
+ +Ginject is a ... + +## Quickstart + +Add _ginject_ to your project + +```sh +npm i ginject +``` + +Start to decouple your application + +```ts +import { inject } from 'ginject' + +// create an inversion of control container +const ctr = inject({ + hi: () => 'Hi!' +}); + +// +console.log(ctr.hi); +``` + +## Cyclic Dependencies + +## Type Safety diff --git a/src/inject.ts b/src/inject.ts index 0314cc7b..7a25ff24 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { keys, merge, MergeArray } from "./merge"; +import { keys, merge, Fn, MergeArray } from "./merge"; /** * Internally used by {@link eager} to tag an injector. @@ -23,8 +23,8 @@ export type Module = { // ensure C and T are real ojects { ... } [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy }; -// ✅ Internal. InverseModule> := T -type InverseModule = T extends (...args: any[]) => any ? ReturnType : { +// ✅ Internal +type InverseModule = T extends Fn ? ReturnType : { [K in keyof T]: InverseModule }; @@ -34,12 +34,6 @@ export type Container = InverseModule>; // ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) export type Factory = (ctr: C) => T; -/** - * An internal type that reflects that an {@link Injector} will be eagerly initialized. - * See {@link eager}. - */ -type InternalFactory = Factory & { [isEager]?: boolean }; - /** * Decorates an {@link Injector} for eager initialization with {@link inject}. * @@ -75,11 +69,11 @@ export function inject(...modules: M): Containe return container; } -function initializeEagerServices(module: any, container: any): void { +function initializeEagerServices>(module: M, container: C): void { keys(module).forEach(key => { const value = module[key]; if (typeof value === 'function') { - value[isEager] && value(container); + (isEager in value) && value(container); } else { initializeEagerServices(value, container); } @@ -112,6 +106,7 @@ function proxify(module: any, container?: any, path?: string): any { function resolve(obj: any, prop: PropertyKey, module: any, container: any, parentPath?: string): T[keyof T] | undefined { const path = (parentPath ? '.' : '') + String(prop); if (prop in obj) { + // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) if (obj[prop] instanceof Error) { throw new Error('Construction failure: ' + path); } diff --git a/src/merge.ts b/src/merge.ts index 91ee73f9..908c411e 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type MergeArray = +export type MergeArray = M extends [] ? {} : M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Merge>, Head> @@ -32,11 +32,11 @@ type MergeObjects, T extends Record = A extends [] ? never : - A extends [head: infer H, ...tail: any[]] ? H : never; + A extends [head: infer H, ...tail: unknown[]] ? H : never; // ✅ tail of a list type Tail = - A extends [head: any, ...tail: infer T] ? T : never; + A extends [head: unknown, ...tail: infer T] ? T : never; // ✅ is checks if type T1 strictly equals type T2 type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; @@ -44,11 +44,14 @@ type Is = (() => T extends T2 ? true : false) extends () => T exte // ✅ logical or tests if condition C1 or condition C2 is true type Or = C1 extends true ? true : C2 extends true ? true : false; +// ✅ represents a function +export type Fn = (...args: any[]) => any; + // ✅ represents an object, i.e. an associative array with possbily no properties type Obj = - T extends Record ? ( - T extends (...args: any[]) => any ? never : - T extends any[] ? never : T + T extends Record ? ( + T extends Fn ? never : + T extends unknown[] ? never : T ) : never; // ✅ tests if a value is an object @@ -67,6 +70,7 @@ export function merge(target: Obj, source: Obj): Merge { } // ✅ returns object keys and symbols -export function keys(t: Obj): PropertyKey[] { - return [...Object.keys(t), ...Object.getOwnPropertySymbols(t)]; +export function keys(t: T): Array { + // TODO(@@dd): remove type cast + return [...Object.keys(t as Obj), ...Object.getOwnPropertySymbols(t)] as Array; } diff --git a/test/merge.test.ts b/test/merge.test.ts index 238edc9f..35e5b7fc 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -5,10 +5,8 @@ ******************************************************************************/ import { describe, expect, it } from 'vitest' -import {assert as tsafeAssert, Equals} from 'tsafe'; -import { merge, Merge, MergeArray } from '../src/merge'; - -type Fn = (...args: any[]) => any; +import { assert as tsafeAssert, Equals } from 'tsafe'; +import { merge, Fn, Merge, MergeArray } from '../src/merge'; describe('type Merge', () => { From 1bf3a8ce60b3472ac465db279839bf4ff4f1bcfc Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 16:50:35 +0000 Subject: [PATCH 022/159] types + readme --- README.md | 4 ++-- src/inject.ts | 6 +++--- src/merge.ts | 4 ++-- test/inject.test.ts | 7 +++++++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 284af598..06c25e36 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ npm i ginject Start to decouple your application ```ts -import { inject } from 'ginject' +import { inject } from '.' // create an inversion of control container const ctr = inject({ hi: () => 'Hi!' }); -// +// prints "Hi!" console.log(ctr.hi); ``` diff --git a/src/inject.ts b/src/inject.ts index 7a25ff24..55742837 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -63,7 +63,7 @@ export function eager(factory: Factory): Factory { // ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use // TODO(@@dd): verify that the container contains all dependencies that are needed export function inject(...modules: M): Container { - const module = modules.reduce(merge, {}) as MergeArray; + const module = modules.reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); return container; @@ -80,8 +80,8 @@ function initializeEagerServices>(module: M, contai }); } -function proxify(module: any, container?: any, path?: string): any { - const proxy: any = new Proxy({} as any, { +function proxify(module: Module, container?: C, path?: string): T { + const proxy: any = new Proxy({}, { deleteProperty: () => false, get: (target, prop) => resolve(target, prop, module, container || proxy, path), getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, module, container || proxy, path), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in diff --git a/src/merge.ts b/src/merge.ts index 908c411e..7a17d3ef 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -30,12 +30,12 @@ type MergeObjects, T extends Record = +type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; // ✅ tail of a list -type Tail = +type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; // ✅ is checks if type T1 strictly equals type T2 diff --git a/test/inject.test.ts b/test/inject.test.ts index 9080cdc4..e7cbd543 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -322,6 +322,13 @@ describe('The inject function', () => { expect(x).toBe(1); }); + it('should disallow to use wrong containers types', () => { + inject({ + // @ts-expect-error + hi: (ctr: false) => 'Hi!' + }); + }) + }); describe('The inject result', () => { From 7f695e8920fb3c1fb53c3615fa22127a738efe46 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 3 Oct 2022 17:12:25 +0000 Subject: [PATCH 023/159] typings --- src/inject.ts | 10 +++++----- src/merge.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 55742837..4da7f3b1 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { keys, merge, Fn, MergeArray } from "./merge"; +import { keys, merge, Fn, MergeArray, Obj } from "./merge"; /** * Internally used by {@link eager} to tag an injector. @@ -103,7 +103,7 @@ function proxify(module: Module, container?: C, path?: string): T { * @returns the requested value `obj[prop]` * @throws Error if a dependency cycle is detected */ -function resolve(obj: any, prop: PropertyKey, module: any, container: any, parentPath?: string): T[keyof T] | undefined { +function resolve, P extends PropertyKey>(obj: Obj, prop: P, module: M, container: C, parentPath?: string): Obj[P] | undefined { const path = (parentPath ? '.' : '') + String(prop); if (prop in obj) { // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) @@ -116,13 +116,13 @@ function resolve(obj: any, prop: PropertyKey, module: any, container: any, pa } return obj[prop]; } else if (prop in module) { - const value = module[prop]; - obj[prop] = requested; + const value = (module as any)[prop]; + (obj as any)[prop] = requested; try { obj[prop] = (typeof value === 'function') ? value(container) : proxify(value, container, (path ? '.' : '')); } catch (error) { // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) - obj[prop] = error instanceof Error ? error : undefined; + (obj as any)[prop] = error instanceof Error ? error : undefined; throw error; } return obj[prop]; diff --git a/src/merge.ts b/src/merge.ts index 7a17d3ef..0804578f 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -30,12 +30,12 @@ type MergeObjects, T extends Record = +type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; // ✅ tail of a list -type Tail = +type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; // ✅ is checks if type T1 strictly equals type T2 @@ -48,7 +48,7 @@ type Or = C1 extends true ? true : C2 ex export type Fn = (...args: any[]) => any; // ✅ represents an object, i.e. an associative array with possbily no properties -type Obj = +export type Obj = T extends Record ? ( T extends Fn ? never : T extends unknown[] ? never : T From dc21144f84407bbc5f98a8307b5db59b2734eade Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 12:51:03 +0000 Subject: [PATCH 024/159] typescript 4.9-beta --- package-lock.json | 175 ++++++++++++++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 145 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 500904a8..5d04d02e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "eslint-plugin-unused-imports": "^2.0.0", "shx": "^0.3.4", "tsafe": "^1.1.1", - "typescript": "^4.8.4", + "typescript": "^4.9.1-beta", "vitest": "^0.23.2" } }, @@ -273,6 +273,35 @@ "node": ">=10" } }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@typescript-eslint/parser": { "version": "5.38.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz", @@ -344,6 +373,35 @@ } } }, + "node_modules/@typescript-eslint/type-utils/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@typescript-eslint/types": { "version": "5.38.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz", @@ -399,6 +457,35 @@ "node": ">=10" } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@typescript-eslint/utils": { "version": "5.38.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz", @@ -2534,21 +2621,6 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -2583,9 +2655,9 @@ } }, "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.1-beta", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.1-beta.tgz", + "integrity": "sha512-D4c0t1+sMOS5Hy8DQsGFfEYUuKzolXhf+7e/N0Td5etBPflEYzVwWLBrbVgHpLpLC53OJQCtxk31+NWO2SBPaA==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -2991,6 +3063,22 @@ "requires": { "lru-cache": "^6.0.0" } + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true } } }, @@ -3026,6 +3114,24 @@ "@typescript-eslint/utils": "5.38.1", "debug": "^4.3.4", "tsutils": "^3.21.0" + }, + "dependencies": { + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true + } } }, "@typescript-eslint/types": { @@ -3057,6 +3163,22 @@ "requires": { "lru-cache": "^6.0.0" } + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "peer": true } } }, @@ -4512,15 +4634,6 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -4543,9 +4656,9 @@ "dev": true }, "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.1-beta", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.1-beta.tgz", + "integrity": "sha512-D4c0t1+sMOS5Hy8DQsGFfEYUuKzolXhf+7e/N0Td5etBPflEYzVwWLBrbVgHpLpLC53OJQCtxk31+NWO2SBPaA==", "dev": true }, "uri-js": { diff --git a/package.json b/package.json index 9e8de4c7..fc9af371 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "eslint-plugin-unused-imports": "^2.0.0", "shx": "^0.3.4", "tsafe": "^1.1.1", - "typescript": "^4.8.4", + "typescript": "^4.9.1-beta", "vitest": "^0.23.2" } } From f78431a5cb8b527969800d26ccccfa171c1714f0 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 12:51:51 +0000 Subject: [PATCH 025/159] readme --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 06c25e36..6b1ebc7a 100644 --- a/README.md +++ b/README.md @@ -30,15 +30,30 @@ npm i ginject Start to decouple your application ```ts -import { inject } from '.' +import { inject } from 'ginject'; // create an inversion of control container const ctr = inject({ - hi: () => 'Hi!' + hi: () => 'Hi!', + sayHi: (ctr) => () => { console.log(ctr.hi) } }); -// prints "Hi!" -console.log(ctr.hi); +// prints 'Hi!' +ctr.sayHi(); +``` + +## Multiple Modules + +```ts +const ctr = inject({ + hi: () => 'Hi!', + sayHi: (ctr) => () => { console.log(ctr.hi) } +}, { + hi: () => '¡Hola!' +}); + +// prints '¡Hola!' +ctr.sayHi(); ``` ## Cyclic Dependencies From ddf8b8e256838edb2a799c3c4ffcbf5ea45a9814 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 12:52:03 +0000 Subject: [PATCH 026/159] re-organized types --- src/index.ts | 3 +- src/inject.ts | 75 +++++------------------------------------- src/merge.ts | 68 +++++--------------------------------- src/types.ts | 54 ++++++++++++++++++++++++++++++ test/inject.test.ts | 80 +++++++++++++++++++++++++++++++++++++++++++-- test/merge.test.ts | 15 +++++---- 6 files changed, 159 insertions(+), 136 deletions(-) create mode 100644 src/types.ts diff --git a/src/index.ts b/src/index.ts index 3c35bbac..eb1179eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,4 +4,5 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export { inject, eager, Factory, Module, Container } from './inject'; +export { eager, inject } from './inject'; +export { Container, Factory, Module } from './types'; diff --git a/src/inject.ts b/src/inject.ts index 4da7f3b1..6322e9b3 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,71 +4,24 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -import { keys, merge, Fn, MergeArray, Obj } from "./merge"; +import { keys, merge } from "./merge"; +import { Module, Container, Factory } from "./types"; -/** - * Internally used by {@link eager} to tag an injector. - * When {@link inject} is called, all eager injectors of the merged module arguments will be called. - */ const isEager = Symbol(); -/** - * Internally used by {@link _resolve} to tag a requested dependency, directly before calling the factory. - * This allows us to find cycles during instance creation. - */ const requested = Symbol(); -// ✅ a module that can be passed to the inject function -export type Module = { // ensure C and T are real ojects { ... } - [K in keyof T]: Module | Factory // it is up to the user to define the factories within the object hierarchy -}; - -// ✅ Internal -type InverseModule = T extends Fn ? ReturnType : { - [K in keyof T]: InverseModule -}; - -// ✅ transforms a list of modules to an IoC container -export type Container = InverseModule>; - -// ✅ a factory which receives the IoC container and returns a value/service (which may be a singleton value or a provider) -export type Factory = (ctr: C) => T; - -/** - * Decorates an {@link Injector} for eager initialization with {@link inject}. - * - * @param factory - */ -export function eager(factory: Factory): Factory { - return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); -} - -/** - * Given a set of modules, the inject function returns a lazily evaluted injector - * that injects dependencies into the requested service when it is requested the - * first time. Subsequent requests will return the same service. - * - * In the case of cyclic dependencies, an Error will be thrown. This can be fixed - * by injecting a provider `() => T` instead of a `T`. - * - * Please note that the arguments may be objects or arrays. However, the result will - * be an object. Using it with for..of will have no effect. - * - * @param module1 first Module - * @param module2 (optional) second Module - * @param module3 (optional) third Module - * @param module4 (optional) fourth Module - * @returns a new object of type I - */ -// ✅ inject takes modules (= dependency factories) and returns an IoC container (aka DI container) that is ready to use -// TODO(@@dd): verify that the container contains all dependencies that are needed -export function inject(...modules: M): Container { +export function inject>>(...modules: M): Container { const module = modules.reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); return container; } +export function eager(factory: Factory): Factory { + return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); +} + function initializeEagerServices>(module: M, container: C): void { keys(module).forEach(key => { const value = module[key]; @@ -91,19 +44,7 @@ function proxify(module: Module, container?: C, path?: string): T { return proxy; } -/** - * Returns the value `obj[prop]`. If the value does not exist, yet, it is resolved from - * the module description. The result of service factories is cached. Groups are - * recursively proxied. - * - * @param obj an object holding all group proxies and services - * @param prop the key of a value within obj - * @param module an object containing groups and service factories - * @param container the first level proxy that provides access to all values - * @returns the requested value `obj[prop]` - * @throws Error if a dependency cycle is detected - */ -function resolve, P extends PropertyKey>(obj: Obj, prop: P, module: M, container: C, parentPath?: string): Obj[P] | undefined { +function resolve, M extends Module, P extends PropertyKey>(obj: T, prop: P, module: M, container: C, parentPath?: string): T[P] | undefined { const path = (parentPath ? '.' : '') + String(prop); if (prop in obj) { // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) diff --git a/src/merge.ts b/src/merge.ts index 0804578f..00a2863d 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -4,63 +4,9 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type MergeArray = - M extends [] ? {} : - M extends [Head, ...Tail] ? ( - Tail extends [] ? Head : Merge>, Head> - ) : never; +import { Merge } from "./types"; -// ✅ merge two arbitrary values -// Rule 1: mergining something with never resolves to never -// Rule 2: mergining something with any resolves to any -// Rule 3: mergining something with unknown resolves to unknown -export type Merge = - Or, Is> extends true ? never : - Or, Is> extends true ? any : - Or, Is> extends true ? unknown : - S extends Record - ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never) - -// ✅ merge two objects -type MergeObjects, T extends Record> = { - [K in keyof S | keyof T]: K extends keyof S - ? (K extends keyof T ? Merge : S[K]) - : (K extends keyof T ? T[K] : never) -}; - -// ✅ head of a list -type Head = - A extends [] ? never : - A extends [head: infer H, ...tail: unknown[]] ? H : never; - -// ✅ tail of a list -type Tail = - A extends [head: unknown, ...tail: infer T] ? T : never; - -// ✅ is checks if type T1 strictly equals type T2 -type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; - -// ✅ logical or tests if condition C1 or condition C2 is true -type Or = C1 extends true ? true : C2 extends true ? true : false; - -// ✅ represents a function -export type Fn = (...args: any[]) => any; - -// ✅ represents an object, i.e. an associative array with possbily no properties -export type Obj = - T extends Record ? ( - T extends Fn ? never : - T extends unknown[] ? never : T - ) : never; - -// ✅ tests if a value is an object -function isObj(t: T): t is Obj { - return t !== null && typeof t === 'object' && !Array.isArray(t); -} - -// ✅ merge two objects, the signature is compatible with the reducer callback of Array.prototype.reduce -export function merge(target: Obj, source: Obj): Merge { +export function merge, T extends Record>(target: T, source: S): Merge { keys(source).forEach(key => { const sourceValue = source[key]; const targetValue = target[key]; @@ -69,8 +15,10 @@ export function merge(target: Obj, source: Obj): Merge { return target as Merge; } -// ✅ returns object keys and symbols -export function keys(t: T): Array { - // TODO(@@dd): remove type cast - return [...Object.keys(t as Obj), ...Object.getOwnPropertySymbols(t)] as Array; +function isObj(t: any): t is Record { + return t !== null && typeof t === 'object' && !Array.isArray(t); +} + +export function keys>(t: T): Array { + return [...Object.keys(t), ...Object.getOwnPropertySymbols(t)]; } diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 00000000..192f87c9 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,54 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +export type Module = { + [K in keyof T]: Module | Factory +}; + +export type Factory = (ctr: C) => T; + +export type Container = + M extends Array> ? Container> : + M extends EmptyObject ? {} : + M extends Module ? T : + never; + +type EmptyObject = { + [key: PropertyKey]: never +}; + +export type MergeModules>> = + M extends [] ? {} : + M extends [Head, ...Tail] ? ( + Tail extends [] ? Head : + Tail extends Array> ? Merge>, Head> : + never + ) : never; + +export type Merge = + Or, Is> extends true ? never : + Or, Is> extends true ? any : + Or, Is> extends true ? unknown : + S extends Record + ? T extends Record ? MergeObjects : never + : T extends Record ? never : (S extends T ? S : never); // TODO(@@dd): S + +type MergeObjects, T extends Record> = + Union<{ + [K in keyof S | keyof T]: K extends keyof S + ? (K extends keyof T ? Merge : S[K]) + : (K extends keyof T ? T[K] : never) + }>; + +type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; + +type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; + +type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; + +type Or = C1 extends true ? true : C2 extends true ? true : false; + +type Union = T extends Record ? { [K in keyof T]: T[K] } : T; diff --git a/test/inject.test.ts b/test/inject.test.ts index e7cbd543..9a561b32 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -6,7 +6,8 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; -import { eager, inject, Module } from '../src/inject'; +import { eager, inject } from '../src/inject'; +import { Module } from '../src/types'; describe('A dependency type', () => { @@ -322,12 +323,87 @@ describe('The inject function', () => { expect(x).toBe(1); }); + it('should infer right container type given an ad-hoc module', () => { + const testee = inject({ + hi: () => 'Hi!', + sayHi: (ctr) => () => { + tsafeAssert string + }>>(); + return ctr.hi; + } + }); + expect(testee.sayHi()).toBe('Hi!'); + }); + + it('should infer right container type given an explicit module', () => { + type Services = { + hi: string, + sayHi: () => string + }; + const module: Module = { + hi: () => 'Hi!', + sayHi: (ctr) => () => { + tsafeAssert string + }>>(); + return ctr.hi; + } + }; + const testee = inject(module); + expect(testee.sayHi()).toBe('Hi!'); + }); + + it('should overwrite a particular service', () => { + const testee = inject({ + hi: () => 'Hi!', + sayHi: (ctr) => () => { + tsafeAssert void + }>>(); + return ctr.hi; + } + }, { + hi: () => '¡Hola!' + }); + expect(testee.sayHi()).toBe('¡Hola!'); + }); + + it('sould infer the type of factories of mergable modules', () => { + class A { + a = 'a' + } + class B extends A { + b = 'b' + } + const container = inject({ a: () => 1, b: { c: () => '' }, d: { e: () => new A() } }, { a: () => 2, b: { c: () => 'hallo' }, d: { e: () => new B() } }); + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + }); + + it('sould infer the type of curried factories of non-mergable modules', () => { + class A { + a = 'a' + } + class B extends A { + b = 'b' + } + const container = inject({ a: () => 1, b: { c: () => () => '' }, d: { e: () => new A() } }, { a: () => 2, b: { c: () => () => 'hallo' }, d: { e: () => new B() } }); + tsafeAssert>(); + tsafeAssert string>>(); + tsafeAssert>(); + }); + it('should disallow to use wrong containers types', () => { inject({ // @ts-expect-error hi: (ctr: false) => 'Hi!' }); - }) + }); }); diff --git a/test/merge.test.ts b/test/merge.test.ts index 35e5b7fc..7a51ceb6 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -6,7 +6,10 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; -import { merge, Fn, Merge, MergeArray } from '../src/merge'; +import { merge } from '../src/merge'; +import { Merge, MergeModules } from '../src/types'; + +type Fn = (...args: any[]) => any; describe('type Merge', () => { @@ -802,15 +805,15 @@ describe('type Merge', () => { describe('type MergeArray', () => { it('should merge empty array', () => { - tsafeAssert, {}>>(); + tsafeAssert, {}>>(); }); it('should merge array with one element', () => { - tsafeAssert, { a: 1 }>>(); + tsafeAssert, { a: 1 }>>(); }); it('should merge array with two elements', () => { - tsafeAssert, { a: 1, b: true }>>(); + tsafeAssert, { a: 1, b: true }>>(); }); it('should merge array with three elements', () => { @@ -829,7 +832,7 @@ describe('type MergeArray', () => { c: 1, d: never }; - tsafeAssert, Expected>>(); + tsafeAssert, Expected>>(); }); it('should deep merge array with three elements', () => { @@ -852,7 +855,7 @@ describe('type MergeArray', () => { }, e: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert, Expected>>(); }); }); From f573ec4bb7eec0071414f28121464b8aee219b2d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 13:06:20 +0000 Subject: [PATCH 027/159] todo --- src/types.ts | 2 +- test/inject.test.ts | 42 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/types.ts b/src/types.ts index 192f87c9..c5db86ba 100644 --- a/src/types.ts +++ b/src/types.ts @@ -34,7 +34,7 @@ export type Merge = Or, Is> extends true ? unknown : S extends Record ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never); // TODO(@@dd): S + : T extends Record ? never : (S extends T ? S : never); // TODO(S extends T): infer curried function types type MergeObjects, T extends Record> = Union<{ diff --git a/test/inject.test.ts b/test/inject.test.ts index 9a561b32..154b324a 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -379,7 +379,23 @@ describe('The inject function', () => { class B extends A { b = 'b' } - const container = inject({ a: () => 1, b: { c: () => '' }, d: { e: () => new A() } }, { a: () => 2, b: { c: () => 'hallo' }, d: { e: () => new B() } }); + const container = inject({ + a: () => 1, + b: { + c: () => '' + }, + d: { + e: () => new A() + } + }, { + a: () => 2, + b: { + c: () => 'hallo' + }, + d: { + e: () => new B() + } + }); tsafeAssert>(); tsafeAssert>(); tsafeAssert>(); @@ -392,9 +408,29 @@ describe('The inject function', () => { class B extends A { b = 'b' } - const container = inject({ a: () => 1, b: { c: () => () => '' }, d: { e: () => new A() } }, { a: () => 2, b: { c: () => () => 'hallo' }, d: { e: () => new B() } }); + const container = inject({ + a: () => 1, + b: { + c: () => () => '' + }, + d: { + e: () => new A() + } + }, { + a: () => 2, + b: { + c: () => () => 'hallo' + }, + d: { + e: () => new B() + } + }, { + b: { + c: () => () => 'salut' + } + }); tsafeAssert>(); - tsafeAssert string>>(); + tsafeAssert 'salut'>>(); tsafeAssert>(); }); From 463818e450e212032d0fa29c7237754d7a5454f8 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 13:15:19 +0000 Subject: [PATCH 028/159] typescript 4.8.x --- package-lock.json | 815 +++++++++++++++++++--------------------------- package.json | 2 +- 2 files changed, 339 insertions(+), 478 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5d04d02e..7d40e90f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "eslint-plugin-unused-imports": "^2.0.0", "shx": "^0.3.4", "tsafe": "^1.1.1", - "typescript": "^4.9.1-beta", + "typescript": "^4.8.4", "vitest": "^0.23.2" } }, @@ -27,9 +27,9 @@ "dev": true }, "node_modules/@esbuild/android-arm": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.9.tgz", - "integrity": "sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.10.tgz", + "integrity": "sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==", "cpu": [ "arm" ], @@ -43,9 +43,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.9.tgz", - "integrity": "sha512-O+NfmkfRrb3uSsTa4jE3WApidSe3N5++fyOVGP1SmMZi4A3BZELkhUUvj5hwmMuNdlpzAZ8iAPz2vmcR7DCFQA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz", + "integrity": "sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==", "cpu": [ "loong64" ], @@ -221,20 +221,20 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.7.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", - "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", + "version": "18.8.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz", + "integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==", "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz", - "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", + "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/type-utils": "5.38.1", - "@typescript-eslint/utils": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/type-utils": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "ignore": "^5.2.0", "regexpp": "^3.2.0", @@ -258,59 +258,15 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/@typescript-eslint/parser": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz", - "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", + "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "debug": "^4.3.4" }, "engines": { @@ -330,13 +286,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz", - "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", + "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/visitor-keys": "5.38.1" + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -347,13 +303,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz", - "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", + "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.38.1", - "@typescript-eslint/utils": "5.38.1", + "@typescript-eslint/typescript-estree": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -373,39 +329,10 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/@typescript-eslint/types": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz", - "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", + "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -416,13 +343,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz", - "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", + "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/visitor-keys": "5.38.1", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -442,60 +369,16 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/@typescript-eslint/utils": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz", - "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", + "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" }, @@ -511,12 +394,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz", - "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", + "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/types": "5.39.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -855,9 +738,9 @@ "dev": true }, "node_modules/esbuild": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.9.tgz", - "integrity": "sha512-OnYr1rkMVxtmMHIAKZLMcEUlJmqcbxBz9QoBU8G9v455na0fuzlT/GLu6l+SRghrk0Mm2fSSciMmzV43Q8e0Gg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.10.tgz", + "integrity": "sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==", "dev": true, "hasInstallScript": true, "bin": { @@ -867,34 +750,34 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.15.9", - "@esbuild/linux-loong64": "0.15.9", - "esbuild-android-64": "0.15.9", - "esbuild-android-arm64": "0.15.9", - "esbuild-darwin-64": "0.15.9", - "esbuild-darwin-arm64": "0.15.9", - "esbuild-freebsd-64": "0.15.9", - "esbuild-freebsd-arm64": "0.15.9", - "esbuild-linux-32": "0.15.9", - "esbuild-linux-64": "0.15.9", - "esbuild-linux-arm": "0.15.9", - "esbuild-linux-arm64": "0.15.9", - "esbuild-linux-mips64le": "0.15.9", - "esbuild-linux-ppc64le": "0.15.9", - "esbuild-linux-riscv64": "0.15.9", - "esbuild-linux-s390x": "0.15.9", - "esbuild-netbsd-64": "0.15.9", - "esbuild-openbsd-64": "0.15.9", - "esbuild-sunos-64": "0.15.9", - "esbuild-windows-32": "0.15.9", - "esbuild-windows-64": "0.15.9", - "esbuild-windows-arm64": "0.15.9" + "@esbuild/android-arm": "0.15.10", + "@esbuild/linux-loong64": "0.15.10", + "esbuild-android-64": "0.15.10", + "esbuild-android-arm64": "0.15.10", + "esbuild-darwin-64": "0.15.10", + "esbuild-darwin-arm64": "0.15.10", + "esbuild-freebsd-64": "0.15.10", + "esbuild-freebsd-arm64": "0.15.10", + "esbuild-linux-32": "0.15.10", + "esbuild-linux-64": "0.15.10", + "esbuild-linux-arm": "0.15.10", + "esbuild-linux-arm64": "0.15.10", + "esbuild-linux-mips64le": "0.15.10", + "esbuild-linux-ppc64le": "0.15.10", + "esbuild-linux-riscv64": "0.15.10", + "esbuild-linux-s390x": "0.15.10", + "esbuild-netbsd-64": "0.15.10", + "esbuild-openbsd-64": "0.15.10", + "esbuild-sunos-64": "0.15.10", + "esbuild-windows-32": "0.15.10", + "esbuild-windows-64": "0.15.10", + "esbuild-windows-arm64": "0.15.10" } }, "node_modules/esbuild-android-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.9.tgz", - "integrity": "sha512-HQCX7FJn9T4kxZQkhPjNZC7tBWZqJvhlLHPU2SFzrQB/7nDXjmTIFpFTjt7Bd1uFpeXmuwf5h5fZm+x/hLnhbw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz", + "integrity": "sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==", "cpu": [ "x64" ], @@ -908,9 +791,9 @@ } }, "node_modules/esbuild-android-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.9.tgz", - "integrity": "sha512-E6zbLfqbFVCNEKircSHnPiSTsm3fCRxeIMPfrkS33tFjIAoXtwegQfVZqMGR0FlsvVxp2NEDOUz+WW48COCjSg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz", + "integrity": "sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==", "cpu": [ "arm64" ], @@ -924,9 +807,9 @@ } }, "node_modules/esbuild-darwin-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.9.tgz", - "integrity": "sha512-gI7dClcDN/HHVacZhTmGjl0/TWZcGuKJ0I7/xDGJwRQQn7aafZGtvagOFNmuOq+OBFPhlPv1T6JElOXb0unkSQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz", + "integrity": "sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==", "cpu": [ "x64" ], @@ -940,9 +823,9 @@ } }, "node_modules/esbuild-darwin-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.9.tgz", - "integrity": "sha512-VZIMlcRN29yg/sv7DsDwN+OeufCcoTNaTl3Vnav7dL/nvsApD7uvhVRbgyMzv0zU/PP0xRhhIpTyc7lxEzHGSw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz", + "integrity": "sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==", "cpu": [ "arm64" ], @@ -956,9 +839,9 @@ } }, "node_modules/esbuild-freebsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.9.tgz", - "integrity": "sha512-uM4z5bTvuAXqPxrI204txhlsPIolQPWRMLenvGuCPZTnnGlCMF2QLs0Plcm26gcskhxewYo9LkkmYSS5Czrb5A==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz", + "integrity": "sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==", "cpu": [ "x64" ], @@ -972,9 +855,9 @@ } }, "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.9.tgz", - "integrity": "sha512-HHDjT3O5gWzicGdgJ5yokZVN9K9KG05SnERwl9nBYZaCjcCgj/sX8Ps1jvoFSfNCO04JSsHSOWo4qvxFuj8FoA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz", + "integrity": "sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==", "cpu": [ "arm64" ], @@ -988,9 +871,9 @@ } }, "node_modules/esbuild-linux-32": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.9.tgz", - "integrity": "sha512-AQIdE8FugGt1DkcekKi5ycI46QZpGJ/wqcMr7w6YUmOmp2ohQ8eO4sKUsOxNOvYL7hGEVwkndSyszR6HpVHLFg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz", + "integrity": "sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==", "cpu": [ "ia32" ], @@ -1004,9 +887,9 @@ } }, "node_modules/esbuild-linux-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.9.tgz", - "integrity": "sha512-4RXjae7g6Qs7StZyiYyXTZXBlfODhb1aBVAjd+ANuPmMhWthQilWo7rFHwJwL7DQu1Fjej2sODAVwLbcIVsAYQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz", + "integrity": "sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==", "cpu": [ "x64" ], @@ -1020,9 +903,9 @@ } }, "node_modules/esbuild-linux-arm": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.9.tgz", - "integrity": "sha512-3Zf2GVGUOI7XwChH3qrnTOSqfV1V4CAc/7zLVm4lO6JT6wbJrTgEYCCiNSzziSju+J9Jhf9YGWk/26quWPC6yQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz", + "integrity": "sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==", "cpu": [ "arm" ], @@ -1036,9 +919,9 @@ } }, "node_modules/esbuild-linux-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.9.tgz", - "integrity": "sha512-a+bTtxJmYmk9d+s2W4/R1SYKDDAldOKmWjWP0BnrWtDbvUBNOm++du0ysPju4mZVoEFgS1yLNW+VXnG/4FNwdQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz", + "integrity": "sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==", "cpu": [ "arm64" ], @@ -1052,9 +935,9 @@ } }, "node_modules/esbuild-linux-mips64le": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.9.tgz", - "integrity": "sha512-Zn9HSylDp89y+TRREMDoGrc3Z4Hs5u56ozZLQCiZAUx2+HdbbXbWdjmw3FdTJ/i7t5Cew6/Q+6kfO3KCcFGlyw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz", + "integrity": "sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==", "cpu": [ "mips64el" ], @@ -1068,9 +951,9 @@ } }, "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.9.tgz", - "integrity": "sha512-OEiOxNAMH9ENFYqRsWUj3CWyN3V8P3ZXyfNAtX5rlCEC/ERXrCEFCJji/1F6POzsXAzxvUJrTSTCy7G6BhA6Fw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz", + "integrity": "sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==", "cpu": [ "ppc64" ], @@ -1084,9 +967,9 @@ } }, "node_modules/esbuild-linux-riscv64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.9.tgz", - "integrity": "sha512-ukm4KsC3QRausEFjzTsOZ/qqazw0YvJsKmfoZZm9QW27OHjk2XKSQGGvx8gIEswft/Sadp03/VZvAaqv5AIwNA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz", + "integrity": "sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==", "cpu": [ "riscv64" ], @@ -1100,9 +983,9 @@ } }, "node_modules/esbuild-linux-s390x": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.9.tgz", - "integrity": "sha512-uDOQEH55wQ6ahcIKzQr3VyjGc6Po/xblLGLoUk3fVL1qjlZAibtQr6XRfy5wPJLu/M2o0vQKLq4lyJ2r1tWKcw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz", + "integrity": "sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==", "cpu": [ "s390x" ], @@ -1116,9 +999,9 @@ } }, "node_modules/esbuild-netbsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.9.tgz", - "integrity": "sha512-yWgxaYTQz+TqX80wXRq6xAtb7GSBAp6gqLKfOdANg9qEmAI1Bxn04IrQr0Mzm4AhxvGKoHzjHjMgXbCCSSDxcw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz", + "integrity": "sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==", "cpu": [ "x64" ], @@ -1132,9 +1015,9 @@ } }, "node_modules/esbuild-openbsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.9.tgz", - "integrity": "sha512-JmS18acQl4iSAjrEha1MfEmUMN4FcnnrtTaJ7Qg0tDCOcgpPPQRLGsZqhes0vmx8VA6IqRyScqXvaL7+Q0Uf3A==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz", + "integrity": "sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==", "cpu": [ "x64" ], @@ -1148,9 +1031,9 @@ } }, "node_modules/esbuild-sunos-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.9.tgz", - "integrity": "sha512-UKynGSWpzkPmXW3D2UMOD9BZPIuRaSqphxSCwScfEE05Be3KAmvjsBhht1fLzKpiFVJb0BYMd4jEbWMyJ/z1hQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz", + "integrity": "sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==", "cpu": [ "x64" ], @@ -1164,9 +1047,9 @@ } }, "node_modules/esbuild-windows-32": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.9.tgz", - "integrity": "sha512-aqXvu4/W9XyTVqO/hw3rNxKE1TcZiEYHPsXM9LwYmKSX9/hjvfIJzXwQBlPcJ/QOxedfoMVH0YnhhQ9Ffb0RGA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz", + "integrity": "sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==", "cpu": [ "ia32" ], @@ -1180,9 +1063,9 @@ } }, "node_modules/esbuild-windows-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.9.tgz", - "integrity": "sha512-zm7h91WUmlS4idMtjvCrEeNhlH7+TNOmqw5dJPJZrgFaxoFyqYG6CKDpdFCQXdyKpD5yvzaQBOMVTCBVKGZDEg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz", + "integrity": "sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==", "cpu": [ "x64" ], @@ -1196,9 +1079,9 @@ } }, "node_modules/esbuild-windows-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.9.tgz", - "integrity": "sha512-yQEVIv27oauAtvtuhJVfSNMztJJX47ismRS6Sv2QMVV9RM+6xjbMWuuwM2nxr5A2/gj/mu2z9YlQxiwoFRCfZA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz", + "integrity": "sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==", "cpu": [ "arm64" ], @@ -2001,6 +1884,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -2203,9 +2095,9 @@ } }, "node_modules/postcss": { - "version": "8.4.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", - "integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==", + "version": "8.4.17", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", + "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", "dev": true, "funding": [ { @@ -2393,12 +2285,18 @@ "dev": true }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, "bin": { "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/shebang-command": { @@ -2621,6 +2519,21 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -2655,9 +2568,9 @@ } }, "node_modules/typescript": { - "version": "4.9.1-beta", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.1-beta.tgz", - "integrity": "sha512-D4c0t1+sMOS5Hy8DQsGFfEYUuKzolXhf+7e/N0Td5etBPflEYzVwWLBrbVgHpLpLC53OJQCtxk31+NWO2SBPaA==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -2893,16 +2806,16 @@ "dev": true }, "@esbuild/android-arm": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.9.tgz", - "integrity": "sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.10.tgz", + "integrity": "sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==", "dev": true, "optional": true }, "@esbuild/linux-loong64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.9.tgz", - "integrity": "sha512-O+NfmkfRrb3uSsTa4jE3WApidSe3N5++fyOVGP1SmMZi4A3BZELkhUUvj5hwmMuNdlpzAZ8iAPz2vmcR7DCFQA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz", + "integrity": "sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==", "dev": true, "optional": true }, @@ -3034,175 +2947,103 @@ "dev": true }, "@types/node": { - "version": "18.7.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", - "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==", + "version": "18.8.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz", + "integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==", "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz", - "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", + "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/type-utils": "5.38.1", - "@typescript-eslint/utils": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/type-utils": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "ignore": "^5.2.0", "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" - }, - "dependencies": { - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - }, - "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true - } } }, "@typescript-eslint/parser": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz", - "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", + "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz", - "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", + "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/visitor-keys": "5.38.1" + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0" } }, "@typescript-eslint/type-utils": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz", - "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", + "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.38.1", - "@typescript-eslint/utils": "5.38.1", + "@typescript-eslint/typescript-estree": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "tsutils": "^3.21.0" - }, - "dependencies": { - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - }, - "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true - } } }, "@typescript-eslint/types": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz", - "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", + "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz", - "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", + "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/visitor-keys": "5.38.1", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", "semver": "^7.3.7", "tsutils": "^3.21.0" - }, - "dependencies": { - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - } - }, - "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true - } } }, "@typescript-eslint/utils": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz", - "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", + "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.38.1", - "@typescript-eslint/types": "5.38.1", - "@typescript-eslint/typescript-estree": "5.38.1", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.38.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz", - "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", + "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.1", + "@typescript-eslint/types": "5.39.0", "eslint-visitor-keys": "^3.3.0" } }, @@ -3457,172 +3298,172 @@ "dev": true }, "esbuild": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.9.tgz", - "integrity": "sha512-OnYr1rkMVxtmMHIAKZLMcEUlJmqcbxBz9QoBU8G9v455na0fuzlT/GLu6l+SRghrk0Mm2fSSciMmzV43Q8e0Gg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.10.tgz", + "integrity": "sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==", "dev": true, "requires": { - "@esbuild/android-arm": "0.15.9", - "@esbuild/linux-loong64": "0.15.9", - "esbuild-android-64": "0.15.9", - "esbuild-android-arm64": "0.15.9", - "esbuild-darwin-64": "0.15.9", - "esbuild-darwin-arm64": "0.15.9", - "esbuild-freebsd-64": "0.15.9", - "esbuild-freebsd-arm64": "0.15.9", - "esbuild-linux-32": "0.15.9", - "esbuild-linux-64": "0.15.9", - "esbuild-linux-arm": "0.15.9", - "esbuild-linux-arm64": "0.15.9", - "esbuild-linux-mips64le": "0.15.9", - "esbuild-linux-ppc64le": "0.15.9", - "esbuild-linux-riscv64": "0.15.9", - "esbuild-linux-s390x": "0.15.9", - "esbuild-netbsd-64": "0.15.9", - "esbuild-openbsd-64": "0.15.9", - "esbuild-sunos-64": "0.15.9", - "esbuild-windows-32": "0.15.9", - "esbuild-windows-64": "0.15.9", - "esbuild-windows-arm64": "0.15.9" + "@esbuild/android-arm": "0.15.10", + "@esbuild/linux-loong64": "0.15.10", + "esbuild-android-64": "0.15.10", + "esbuild-android-arm64": "0.15.10", + "esbuild-darwin-64": "0.15.10", + "esbuild-darwin-arm64": "0.15.10", + "esbuild-freebsd-64": "0.15.10", + "esbuild-freebsd-arm64": "0.15.10", + "esbuild-linux-32": "0.15.10", + "esbuild-linux-64": "0.15.10", + "esbuild-linux-arm": "0.15.10", + "esbuild-linux-arm64": "0.15.10", + "esbuild-linux-mips64le": "0.15.10", + "esbuild-linux-ppc64le": "0.15.10", + "esbuild-linux-riscv64": "0.15.10", + "esbuild-linux-s390x": "0.15.10", + "esbuild-netbsd-64": "0.15.10", + "esbuild-openbsd-64": "0.15.10", + "esbuild-sunos-64": "0.15.10", + "esbuild-windows-32": "0.15.10", + "esbuild-windows-64": "0.15.10", + "esbuild-windows-arm64": "0.15.10" } }, "esbuild-android-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.9.tgz", - "integrity": "sha512-HQCX7FJn9T4kxZQkhPjNZC7tBWZqJvhlLHPU2SFzrQB/7nDXjmTIFpFTjt7Bd1uFpeXmuwf5h5fZm+x/hLnhbw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz", + "integrity": "sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==", "dev": true, "optional": true }, "esbuild-android-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.9.tgz", - "integrity": "sha512-E6zbLfqbFVCNEKircSHnPiSTsm3fCRxeIMPfrkS33tFjIAoXtwegQfVZqMGR0FlsvVxp2NEDOUz+WW48COCjSg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz", + "integrity": "sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==", "dev": true, "optional": true }, "esbuild-darwin-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.9.tgz", - "integrity": "sha512-gI7dClcDN/HHVacZhTmGjl0/TWZcGuKJ0I7/xDGJwRQQn7aafZGtvagOFNmuOq+OBFPhlPv1T6JElOXb0unkSQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz", + "integrity": "sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==", "dev": true, "optional": true }, "esbuild-darwin-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.9.tgz", - "integrity": "sha512-VZIMlcRN29yg/sv7DsDwN+OeufCcoTNaTl3Vnav7dL/nvsApD7uvhVRbgyMzv0zU/PP0xRhhIpTyc7lxEzHGSw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz", + "integrity": "sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==", "dev": true, "optional": true }, "esbuild-freebsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.9.tgz", - "integrity": "sha512-uM4z5bTvuAXqPxrI204txhlsPIolQPWRMLenvGuCPZTnnGlCMF2QLs0Plcm26gcskhxewYo9LkkmYSS5Czrb5A==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz", + "integrity": "sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==", "dev": true, "optional": true }, "esbuild-freebsd-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.9.tgz", - "integrity": "sha512-HHDjT3O5gWzicGdgJ5yokZVN9K9KG05SnERwl9nBYZaCjcCgj/sX8Ps1jvoFSfNCO04JSsHSOWo4qvxFuj8FoA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz", + "integrity": "sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==", "dev": true, "optional": true }, "esbuild-linux-32": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.9.tgz", - "integrity": "sha512-AQIdE8FugGt1DkcekKi5ycI46QZpGJ/wqcMr7w6YUmOmp2ohQ8eO4sKUsOxNOvYL7hGEVwkndSyszR6HpVHLFg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz", + "integrity": "sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==", "dev": true, "optional": true }, "esbuild-linux-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.9.tgz", - "integrity": "sha512-4RXjae7g6Qs7StZyiYyXTZXBlfODhb1aBVAjd+ANuPmMhWthQilWo7rFHwJwL7DQu1Fjej2sODAVwLbcIVsAYQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz", + "integrity": "sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==", "dev": true, "optional": true }, "esbuild-linux-arm": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.9.tgz", - "integrity": "sha512-3Zf2GVGUOI7XwChH3qrnTOSqfV1V4CAc/7zLVm4lO6JT6wbJrTgEYCCiNSzziSju+J9Jhf9YGWk/26quWPC6yQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz", + "integrity": "sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==", "dev": true, "optional": true }, "esbuild-linux-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.9.tgz", - "integrity": "sha512-a+bTtxJmYmk9d+s2W4/R1SYKDDAldOKmWjWP0BnrWtDbvUBNOm++du0ysPju4mZVoEFgS1yLNW+VXnG/4FNwdQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz", + "integrity": "sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==", "dev": true, "optional": true }, "esbuild-linux-mips64le": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.9.tgz", - "integrity": "sha512-Zn9HSylDp89y+TRREMDoGrc3Z4Hs5u56ozZLQCiZAUx2+HdbbXbWdjmw3FdTJ/i7t5Cew6/Q+6kfO3KCcFGlyw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz", + "integrity": "sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==", "dev": true, "optional": true }, "esbuild-linux-ppc64le": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.9.tgz", - "integrity": "sha512-OEiOxNAMH9ENFYqRsWUj3CWyN3V8P3ZXyfNAtX5rlCEC/ERXrCEFCJji/1F6POzsXAzxvUJrTSTCy7G6BhA6Fw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz", + "integrity": "sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==", "dev": true, "optional": true }, "esbuild-linux-riscv64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.9.tgz", - "integrity": "sha512-ukm4KsC3QRausEFjzTsOZ/qqazw0YvJsKmfoZZm9QW27OHjk2XKSQGGvx8gIEswft/Sadp03/VZvAaqv5AIwNA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz", + "integrity": "sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==", "dev": true, "optional": true }, "esbuild-linux-s390x": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.9.tgz", - "integrity": "sha512-uDOQEH55wQ6ahcIKzQr3VyjGc6Po/xblLGLoUk3fVL1qjlZAibtQr6XRfy5wPJLu/M2o0vQKLq4lyJ2r1tWKcw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz", + "integrity": "sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==", "dev": true, "optional": true }, "esbuild-netbsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.9.tgz", - "integrity": "sha512-yWgxaYTQz+TqX80wXRq6xAtb7GSBAp6gqLKfOdANg9qEmAI1Bxn04IrQr0Mzm4AhxvGKoHzjHjMgXbCCSSDxcw==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz", + "integrity": "sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==", "dev": true, "optional": true }, "esbuild-openbsd-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.9.tgz", - "integrity": "sha512-JmS18acQl4iSAjrEha1MfEmUMN4FcnnrtTaJ7Qg0tDCOcgpPPQRLGsZqhes0vmx8VA6IqRyScqXvaL7+Q0Uf3A==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz", + "integrity": "sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==", "dev": true, "optional": true }, "esbuild-sunos-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.9.tgz", - "integrity": "sha512-UKynGSWpzkPmXW3D2UMOD9BZPIuRaSqphxSCwScfEE05Be3KAmvjsBhht1fLzKpiFVJb0BYMd4jEbWMyJ/z1hQ==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz", + "integrity": "sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==", "dev": true, "optional": true }, "esbuild-windows-32": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.9.tgz", - "integrity": "sha512-aqXvu4/W9XyTVqO/hw3rNxKE1TcZiEYHPsXM9LwYmKSX9/hjvfIJzXwQBlPcJ/QOxedfoMVH0YnhhQ9Ffb0RGA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz", + "integrity": "sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==", "dev": true, "optional": true }, "esbuild-windows-64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.9.tgz", - "integrity": "sha512-zm7h91WUmlS4idMtjvCrEeNhlH7+TNOmqw5dJPJZrgFaxoFyqYG6CKDpdFCQXdyKpD5yvzaQBOMVTCBVKGZDEg==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz", + "integrity": "sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==", "dev": true, "optional": true }, "esbuild-windows-arm64": { - "version": "0.15.9", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.9.tgz", - "integrity": "sha512-yQEVIv27oauAtvtuhJVfSNMztJJX47ismRS6Sv2QMVV9RM+6xjbMWuuwM2nxr5A2/gj/mu2z9YlQxiwoFRCfZA==", + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz", + "integrity": "sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==", "dev": true, "optional": true }, @@ -4213,6 +4054,14 @@ "dev": true, "requires": { "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, "merge2": { @@ -4363,9 +4212,9 @@ "dev": true }, "postcss": { - "version": "8.4.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", - "integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==", + "version": "8.4.17", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", + "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", "dev": true, "requires": { "nanoid": "^3.3.4", @@ -4469,10 +4318,13 @@ "dev": true }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, "shebang-command": { "version": "2.0.0", @@ -4634,6 +4486,15 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -4656,9 +4517,9 @@ "dev": true }, "typescript": { - "version": "4.9.1-beta", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.1-beta.tgz", - "integrity": "sha512-D4c0t1+sMOS5Hy8DQsGFfEYUuKzolXhf+7e/N0Td5etBPflEYzVwWLBrbVgHpLpLC53OJQCtxk31+NWO2SBPaA==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true }, "uri-js": { diff --git a/package.json b/package.json index fc9af371..9e8de4c7 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "eslint-plugin-unused-imports": "^2.0.0", "shx": "^0.3.4", "tsafe": "^1.1.1", - "typescript": "^4.9.1-beta", + "typescript": "^4.8.4", "vitest": "^0.23.2" } } From b9049e1427ef2bd77f621cf78e62785fdf8a6115 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 13:18:59 +0000 Subject: [PATCH 029/159] tests --- test/inject.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 154b324a..c9d42879 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -312,15 +312,15 @@ describe('The inject function', () => { x: () => 1 }; - const xxx = inject(m1, m2, m3); + const testee = inject(m1, m2, m3); - const a: A = xxx.groupA.service1; // infers A - const ab: A & B = xxx.groupB.groupC.service2; // infers A & B - const x: number = xxx.x; // infers number + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); - expect(a).toBeInstanceOf(A); - expect(ab).toBeInstanceOf(B); - expect(x).toBe(1); + expect(testee.groupA.service1).toBeInstanceOf(A); + expect(testee.groupB.groupC.service2).toBeInstanceOf(B); + expect(testee.x).toBe(1); }); it('should infer right container type given an ad-hoc module', () => { From f3dc1d2f777f149a6d21ecc9a6379eb658a84b6c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 4 Oct 2022 14:43:50 +0000 Subject: [PATCH 030/159] work in progress / open todos --- src/types.ts | 25 ++++++++++++++++++++++--- test/inject.test.ts | 5 +++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/types.ts b/src/types.ts index c5db86ba..7d6ffde7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,12 +10,15 @@ export type Module = { export type Factory = (ctr: C) => T; +// TODO(@@dd): whether to infer container type C of Module or not? export type Container = M extends Array> ? Container> : - M extends EmptyObject ? {} : - M extends Module ? T : + M extends EmptyObject ? EmptyObject : + M extends Module ? Validate : never; +type Validate = never; // TODO(@@dd): validate factory arguments + type EmptyObject = { [key: PropertyKey]: never }; @@ -34,7 +37,7 @@ export type Merge = Or, Is> extends true ? unknown : S extends Record ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never); // TODO(S extends T): infer curried function types + : T extends Record ? never : Extends; type MergeObjects, T extends Record> = Union<{ @@ -43,6 +46,22 @@ type MergeObjects, T extends Record; +type Extends = + T1 extends T2 ? T1 : + T1 extends Obj ? T2 extends Obj ? never : never : + T1 extends unknown[] ? T2 extends unknown[] ? T1 extends T2 ? T1 : [Extends, Head>, ...Extends, Tail>] : never : + T1 extends (() => infer R1) ? T2 extends (() => infer R2) ? () => Extends : never : // TODO(@@dd): consider argument types + T1 extends boolean ? T2 extends boolean ? boolean : never : + T1 extends number ? T2 extends number ? number : never : + T1 extends string ? T2 extends string ? string : never : + never; + +type Obj = + T extends Record ? ( + T extends () => unknown ? never : + T extends unknown[] ? never : T + ) : never; + type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index c9d42879..25ab149d 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -263,13 +263,14 @@ describe('The inject function', () => { it('should merge groups', () => { class A { + a = 1 } class B extends A { constructor(a: A) { super(); } - a = 1; + b = 1; } interface C1 { @@ -430,7 +431,7 @@ describe('The inject function', () => { } }); tsafeAssert>(); - tsafeAssert 'salut'>>(); + tsafeAssert string>>(); tsafeAssert>(); }); From f962132930e2cc9f4470d36114602069980a3cba Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 05:08:16 +0000 Subject: [PATCH 031/159] docs --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b1ebc7a..8ea3e341 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ const ctr = inject({ ctr.sayHi(); ``` -## Multiple Modules +## Rebinding Dependencies ```ts const ctr = inject({ @@ -56,6 +56,20 @@ const ctr = inject({ ctr.sayHi(); ``` +## Modules + +### Factories + +### Ad-Hoc Modules + +### Factoring out Modules + +## Lazy vs Eager Initialization + ## Cyclic Dependencies +## Asynchronous Factories + ## Type Safety + +### Validation From 8478f4205b159a589faad067fbbc91e0514fc2d4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 05:08:27 +0000 Subject: [PATCH 032/159] dist -> lib --- .eslintrc.json | 82 +++++++++++++++++++++++++------------------------- .gitignore | 2 +- package.json | 8 ++--- tsconfig.json | 4 +-- 4 files changed, 48 insertions(+), 48 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 973e996e..1138ebd9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,18 +2,18 @@ { // libs that run in both envs, browser & node, don't access global variables that are browser or node specific "env": { - "browser": false, // enables Browser global variables, like localStorage - "es6": true, // enables new ES6 global variables, such as Set - "node": true // enables Node global variables, like process + "browser": false, // enables Browser global variables, like localStorage + "es6": true, // enables new ES6 global variables, such as Set + "node": true // enables Node global variables, like process }, "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended" ], "parser": "@typescript-eslint/parser", - "parserOptions": { // [typescript-eslint parser configuration](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration) - "project": "tsconfig.eslint.json", // mandatory when using types - "sourceType": "module" // needed in order to use import declarations + "parserOptions": { // [typescript-eslint parser configuration](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration) + "project": "tsconfig.eslint.json", // mandatory when using types + "sourceType": "module" // needed in order to use import declarations }, "plugins": [ "@typescript-eslint", @@ -22,54 +22,54 @@ "rules": { // List of [ESLint rules](https://eslint.org/docs/rules/) - "arrow-parens": ["off", "as-needed"], // do not force arrow function parentheses - "constructor-super": "error", // checks the correct use of super() in sub-classes - "curly": "error", // if statement needs curly braces - "dot-notation": "error", // obj.a instead of obj['a'] when possible - "eqeqeq": "error", // ban '==', don't use 'smart' option! - "guard-for-in": "error", // needs obj.hasOwnProperty(key) checks - "new-parens": "error", // new Error() instead of new Error - "no-bitwise": "error", // bitwise operators &, | can be confused with &&, || - "no-caller": "error", // ECMAScript deprecated arguments.caller and arguments.callee - "no-cond-assign": "error", // assignments if (a = '1') are error-prone - "no-debugger": "error", // disallow debugger; statements - "no-eval": "error", // eval is considered unsafe - "no-inner-declarations": "off", // we need to have 'namespace' functions when using TS 'export =' - "no-labels": "error", // GOTO is only used in BASIC ;) - "no-multiple-empty-lines": ["error", {"max": 1}], // two or more empty lines need to be fused to one - "no-new-wrappers": "error", // there is no reason to wrap primitve values - "no-throw-literal": "error", // only throw Error but no objects {} - "no-trailing-spaces": "error", // trim end of lines - "no-unsafe-finally": "error", // safe try/catch/finally behavior - "no-unused-vars": "off", // we need unused vars for proper typing - "no-var": "error", // use const and let instead of var - "prefer-const": "error", // use const when possible - "quote-props": ["error", "as-needed", { // defines how object-keys are quoted + "arrow-parens": ["off", "as-needed"], // do not force arrow function parentheses + "constructor-super": "error", // checks the correct use of super() in sub-classes + "curly": "error", // if statement needs curly braces + "dot-notation": "error", // obj.a instead of obj['a'] when possible + "eqeqeq": "error", // ban '==', don't use 'smart' option! + "guard-for-in": "error", // needs obj.hasOwnProperty(key) checks + "new-parens": "error", // new Error() instead of new Error + "no-bitwise": "error", // bitwise operators &, | can be confused with &&, || + "no-caller": "error", // ECMAScript deprecated arguments.caller and arguments.callee + "no-cond-assign": "error", // assignments if (a = '1') are error-prone + "no-debugger": "error", // disallow debugger; statements + "no-eval": "error", // eval is considered unsafe + "no-inner-declarations": "off", // we need to have 'namespace' functions when using TS 'export =' + "no-labels": "error", // GOTO is only used in BASIC ;) + "no-multiple-empty-lines": ["error", {"max": 1}], // two or more empty lines need to be fused to one + "no-new-wrappers": "error", // there is no reason to wrap primitve values + "no-throw-literal": "error", // only throw Error but no objects {} + "no-trailing-spaces": "error", // trim end of lines + "no-unsafe-finally": "error", // safe try/catch/finally behavior + "no-unused-vars": "off", // we need unused vars for proper typing + "no-var": "error", // use const and let instead of var + "prefer-const": "error", // use const when possible + "quote-props": ["error", "as-needed", { // defines how object-keys are quoted "keywords": false, "unnecessary": true, "numbers": false }], - "space-before-function-paren": ["error", { // space in function decl: f() vs async () => {} + "space-before-function-paren": ["error", { // space in function decl: f() vs async () => {} "anonymous": "never", "asyncArrow": "always", "named": "never" }], - "unused-imports/no-unused-imports": "error", // no unsused imports - "use-isnan": "error", // isNaN(i) Number.isNaN(i) instead of i === NaN + "unused-imports/no-unused-imports": "error", // no unsused imports + "use-isnan": "error", // isNaN(i) Number.isNaN(i) instead of i === NaN // List of [@typescript-eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules) "@typescript-eslint/adjacent-overload-signatures": "error", // grouping same method names "@typescript-eslint/array-type": ["error", { // string[] instead of Array "default": "array-simple" }], - "@typescript-eslint/indent": "error", // consistent indentation - "@typescript-eslint/consistent-type-assertions": "error", // needed for .tsx, bad = bar, good = bar as Foo - "@typescript-eslint/no-misused-new": "error", // no constructors for interfaces or new for classes - "@typescript-eslint/no-parameter-properties": "error", // no property definitions in class constructors - "@typescript-eslint/no-var-requires": "error", // use import instead of require - "@typescript-eslint/prefer-for-of": "error", // prefer for-of loop over arrays - "@typescript-eslint/prefer-namespace-keyword": "error", // prefer namespace over module in TypeScript - "@typescript-eslint/triple-slash-reference": "error", // ban /// , prefer imports - "@typescript-eslint/type-annotation-spacing": "error" // consistent space around colon ':' + "@typescript-eslint/indent": "error", // consistent indentation + "@typescript-eslint/consistent-type-assertions": "error", // needed for .tsx, bad = bar, good = bar as Foo + "@typescript-eslint/no-misused-new": "error", // no constructors for interfaces or new for classes + "@typescript-eslint/no-parameter-properties": "error", // no property definitions in class constructors + "@typescript-eslint/no-var-requires": "error", // use import instead of require + "@typescript-eslint/prefer-for-of": "error", // prefer for-of loop over arrays + "@typescript-eslint/prefer-namespace-keyword": "error", // prefer namespace over module in TypeScript + "@typescript-eslint/triple-slash-reference": "error", // ban /// , prefer imports + "@typescript-eslint/type-annotation-spacing": "error" // consistent space around colon ':' } } diff --git a/.gitignore b/.gitignore index 9bcce4c0..68c292c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .DS_Store coverage/ -dist/ +lib/ node_modules/ diff --git a/package.json b/package.json index 9e8de4c7..0bd4f21e 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,14 @@ "ioc" ], "files": [ - "dist" + "lib" ], - "types": "./dist/index.d.ts", - "main": "./dist/index.js", + "types": "./lib/index.d.ts", + "main": "./lib/index.js", "scripts": { "prepare": "npm run clean && npm run build && npm run lint", "build": "tsc", - "clean": "shx rm -rf dist", + "clean": "shx rm -rf lib", "coverage": "vitest run --coverage", "lint": "eslint src test --ext .ts", "test": "vitest" diff --git a/tsconfig.json b/tsconfig.json index e4addd50..ee7ab5bb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["ES6"], // specify library files to be included in the compilation "module": "commonjs", // generated module code "rootDir": "./src", // source folder - "outDir": "./dist", // *.d.ts goes here + "outDir": "./lib", // *.d.ts goes here "declaration": true, // gnerates corresponding '.d.ts' file "declarationMap": true, // generates a sourcemap for each corresponding '.d.ts' file "skipLibCheck": true, // skip type checking all .d.ts files @@ -12,5 +12,5 @@ "strict": true // enable all strict type-checking options }, "include": ["src/**/*.ts"], - "exclude": ["node_modules", "dist"] + "exclude": ["node_modules", "lib"] } From 7f2c7804de6cf36774acb8bfe35be6e2af423dc9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 05:20:27 +0000 Subject: [PATCH 033/159] docs --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8ea3e341..e01563f2 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,10 @@ ctr.sayHi(); ## Type Safety ### Validation + +## Ginject vs Inversify + +* Size / Zero Dependencies +* API Surface Area +* Non-Intrusive / Self Contained +* Typesafe From a74508585cde9883fb108e90bf5ea3e2203dbc60 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 06:11:04 +0000 Subject: [PATCH 034/159] docs --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e01563f2..73462d2f 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,15 @@ ctr.sayHi(); ## Ginject vs Inversify +| | ginject | inversify | +|-----------|:----------:|:-----------:| +| minified | 1 KB | 45 KB | +| gzipped | 0.5 KB | 11 KB | +| typesafe | ✅ | ❌ | +| requirements | none | decorators / reflect-metadata | +| style | functional | imperative | +| API surface area | one function | non-trivial | + * Size / Zero Dependencies * API Surface Area * Non-Intrusive / Self Contained From eff9ae8ddd83392460e0d14576140af1c45379cf Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 06:12:16 +0000 Subject: [PATCH 035/159] bundling for stats --- package-lock.json | 12695 +++++++++++++++++++++++++++++++++++++------- package.json | 3 + 2 files changed, 10762 insertions(+), 1936 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7d40e90f..ab50f7b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,2791 +14,9262 @@ "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", "eslint-plugin-unused-imports": "^2.0.0", + "microbundle": "^0.15.1", "shx": "^0.3.4", "tsafe": "^1.1.1", "typescript": "^4.8.4", "vitest": "^0.23.2" } }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "node_modules/@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/@esbuild/android-arm": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.10.tgz", - "integrity": "sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==", - "cpu": [ - "arm" - ], + "node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "dependencies": { + "@babel/highlight": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz", - "integrity": "sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==", - "cpu": [ - "loong64" - ], + "node_modules/@babel/compat-data": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", + "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=12" + "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", - "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", + "node_modules/@babel/core": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", + "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", "dev": true, "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helpers": "^7.19.0", + "@babel/parser": "^7.19.3", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.3", + "@babel/types": "^7.19.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", + "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.19.3", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, - "funding": { - "url": "https://opencollective.com/eslint" + "engines": { + "node": ">=6.0.0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.10.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", - "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.4" + "@babel/types": "^7.18.6" }, "engines": { - "node": ">=10.10.0" + "node": ">=6.9.0" } }, - "node_modules/@humanwhocodes/gitignore-to-minimatch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", - "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", + "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", + "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", "dev": true, + "dependencies": { + "@babel/compat-data": "^7.19.3", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "semver": "^6.3.0" + }, "engines": { - "node": ">=12.22" + "node": ">=6.9.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz", + "integrity": "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==", "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.9", + "@babel/helper-split-export-declaration": "^7.18.6" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz", + "integrity": "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==", "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.1.0" + }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.15", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", - "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", "dev": true, "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", + "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", "dev": true, "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@babel/types": "^7.18.6" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "node_modules/@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", "dev": true, + "dependencies": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", "dev": true, "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "@babel/types": "^7.18.6" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@types/chai": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", - "integrity": "sha512-hC7OMnszpxhZPduX+m+nrx+uFoLkWOMiR4oa/AZF3MuSETYTZmFfJAHqZEM8MVlvfG7BEUcgvtwoCTxBp6hm3g==", - "dev": true + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", + "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/chai-subset": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@types/chai-subset/-/chai-subset-1.3.3.tgz", - "integrity": "sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==", + "node_modules/@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", "dev": true, "dependencies": { - "@types/chai": "*" + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true + "node_modules/@babel/helper-module-transforms": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", + "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.18.6", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", - "dev": true + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/node": { - "version": "18.8.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz", - "integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==", - "dev": true + "node_modules/@babel/helper-plugin-utils": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", + "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", - "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.39.0", - "@typescript-eslint/type-utils": "5.39.0", - "@typescript-eslint/utils": "5.39.0", - "debug": "^4.3.4", - "ignore": "^5.2.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=6.9.0" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "@babel/core": "^7.0.0" } }, - "node_modules/@typescript-eslint/parser": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", - "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", + "node_modules/@babel/helper-replace-supers": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", + "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.39.0", - "@typescript-eslint/types": "5.39.0", - "@typescript-eslint/typescript-estree": "5.39.0", - "debug": "^4.3.4" + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/traverse": "^7.19.1", + "@babel/types": "^7.19.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", - "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", + "node_modules/@babel/helper-simple-access": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", + "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.39.0", - "@typescript-eslint/visitor-keys": "5.39.0" + "@babel/types": "^7.18.6" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", - "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.18.9.tgz", + "integrity": "sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.39.0", - "@typescript-eslint/utils": "5.39.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" + "@babel/types": "^7.18.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/types": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", - "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", + "node_modules/@babel/helper-string-parser": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", + "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", - "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz", + "integrity": "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.39.0", - "@typescript-eslint/visitor-keys": "5.39.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/utils": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", - "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", + "node_modules/@babel/helpers": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", + "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", "dev": true, "dependencies": { - "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.39.0", - "@typescript-eslint/types": "5.39.0", - "@typescript-eslint/typescript-estree": "5.39.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node": ">=6.9.0" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", - "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.39.0", - "eslint-visitor-keys": "^3.3.0" + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=6.9.0" } }, - "node_modules/@vitest/coverage-c8": { - "version": "0.23.4", - "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.4.tgz", - "integrity": "sha512-jmD00a5DQH9gu9K+YdvVhcMuv2CzHvU4gCnySS40Ec5hKlXtlCzRfNHl00VnhfuBeaQUmaQYe60BLT413HyDdg==", + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "dependencies": { - "c8": "^7.12.0", - "vitest": "0.23.4" + "color-convert": "^1.9.0" }, - "funding": { - "url": "https://github.com/sponsors/antfu" + "engines": { + "node": ">=4" } }, - "node_modules/acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=0.4.0" + "node": ">=4" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "color-name": "1.1.3" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=0.8.0" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=4" } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "node_modules/@babel/parser": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz", + "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==", "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, "engines": { - "node": ">=8" + "node": ">=6.0.0" } }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": "*" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", + "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", "dev": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-proposal-optional-chaining": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" } }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz", + "integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/c8": { - "version": "7.12.0", - "resolved": "https://registry.npmjs.org/c8/-/c8-7.12.0.tgz", - "integrity": "sha512-CtgQrHOkyxr5koX1wEUmN/5cfDa2ckbHRA4Gy5LAL0zaCFtVWJS5++n+w4/sr2GWGerBxgTjpKeDclk/Qk6W/A==", + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz", + "integrity": "sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==", "dev": true, "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@istanbuljs/schema": "^0.1.3", - "find-up": "^5.0.0", - "foreground-child": "^2.0.0", - "istanbul-lib-coverage": "^3.2.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-reports": "^3.1.4", - "rimraf": "^3.0.2", - "test-exclude": "^6.0.0", - "v8-to-istanbul": "^9.0.0", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9" + "@babel/helper-create-class-features-plugin": "^7.12.1", + "@babel/helper-plugin-utils": "^7.10.4" }, - "bin": { - "c8": "bin/c8.js" - }, - "engines": { - "node": ">=10.12.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", + "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, "engines": { - "node": ">=6" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" } }, - "node_modules/chai": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", - "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", "dev": true, "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", - "pathval": "^1.1.1", - "type-detect": "^4.0.5" + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" }, "engines": { - "node": ">=4" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, "engines": { - "node": "*" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz", + "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==", "dev": true, "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" }, "engines": { - "node": ">=7.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", "dev": true, "dependencies": { - "safe-buffer": "~5.1.1" + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz", + "integrity": "sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "@babel/compat-data": "^7.18.8", + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.18.8" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", "dev": true, "dependencies": { - "ms": "2.1.2" + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" }, "engines": { - "node": ">=6.0" + "node": ">=6.9.0" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", + "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==", "dev": true, "dependencies": { - "type-detect": "^4.0.0" + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, "engines": { - "node": ">=0.12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", "dev": true, "dependencies": { - "path-type": "^4.0.0" + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz", + "integrity": "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/esbuild": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.10.tgz", - "integrity": "sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==", + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=12" + "node": ">=4" }, - "optionalDependencies": { - "@esbuild/android-arm": "0.15.10", - "@esbuild/linux-loong64": "0.15.10", - "esbuild-android-64": "0.15.10", - "esbuild-android-arm64": "0.15.10", - "esbuild-darwin-64": "0.15.10", - "esbuild-darwin-arm64": "0.15.10", - "esbuild-freebsd-64": "0.15.10", - "esbuild-freebsd-arm64": "0.15.10", - "esbuild-linux-32": "0.15.10", - "esbuild-linux-64": "0.15.10", - "esbuild-linux-arm": "0.15.10", - "esbuild-linux-arm64": "0.15.10", - "esbuild-linux-mips64le": "0.15.10", - "esbuild-linux-ppc64le": "0.15.10", - "esbuild-linux-riscv64": "0.15.10", - "esbuild-linux-s390x": "0.15.10", - "esbuild-netbsd-64": "0.15.10", - "esbuild-openbsd-64": "0.15.10", - "esbuild-sunos-64": "0.15.10", - "esbuild-windows-32": "0.15.10", - "esbuild-windows-64": "0.15.10", - "esbuild-windows-arm64": "0.15.10" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-android-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz", - "integrity": "sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-android-arm64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz", - "integrity": "sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==", - "cpu": [ - "arm64" - ], + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-darwin-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz", - "integrity": "sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-darwin-arm64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz", - "integrity": "sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==", - "cpu": [ - "arm64" - ], + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-freebsd-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz", - "integrity": "sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz", - "integrity": "sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==", - "cpu": [ - "arm64" - ], + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz", + "integrity": "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-32": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz", - "integrity": "sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==", - "cpu": [ - "ia32" - ], + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.18.6.tgz", + "integrity": "sha512-/DU3RXad9+bZwrgWJQKbr39gYbJpLJHezqEzRzi/BHRlJ9zsQb4CK2CA/5apllXNomwA1qHwzvHl+AdEmC5krQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz", - "integrity": "sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-arm": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz", - "integrity": "sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==", - "cpu": [ - "arm" - ], + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-arm64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz", - "integrity": "sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==", - "cpu": [ - "arm64" - ], + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz", - "integrity": "sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==", - "cpu": [ - "mips64el" - ], + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz", - "integrity": "sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==", - "cpu": [ - "ppc64" - ], + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz", - "integrity": "sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==", - "cpu": [ - "riscv64" - ], + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-linux-s390x": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz", - "integrity": "sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==", - "cpu": [ - "s390x" - ], + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-netbsd-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz", - "integrity": "sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-openbsd-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz", - "integrity": "sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-sunos-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz", - "integrity": "sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, - "optional": true, - "os": [ - "sunos" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-windows-32": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz", - "integrity": "sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==", - "cpu": [ - "ia32" - ], + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-windows-64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz", - "integrity": "sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==", - "cpu": [ - "x64" - ], + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", + "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esbuild-windows-arm64": { - "version": "0.15.10", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz", - "integrity": "sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==", - "cpu": [ - "arm64" - ], + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz", + "integrity": "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-remap-async-to-generator": "^7.18.6" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=6" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz", + "integrity": "sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint": { - "version": "8.24.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", - "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", + "node_modules/@babel/plugin-transform-classes": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz", + "integrity": "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.3.2", - "@humanwhocodes/config-array": "^0.10.5", - "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", - "@humanwhocodes/module-importer": "^1.0.1", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.1", - "globals": "^13.15.0", - "globby": "^11.1.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.19.0", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-replace-supers": "^7.18.9", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-plugin-unused-imports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", - "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", + "node_modules/@babel/plugin-transform-classes/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", + "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", "dev": true, "dependencies": { - "eslint-rule-composer": "^0.3.0" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0", - "eslint": "^8.0.0" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - } + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-rule-composer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", - "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.18.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz", + "integrity": "sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, "engines": { - "node": ">=4.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=8.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^2.0.0" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" + "node": ">=6.9.0" }, "peerDependencies": { - "eslint": ">=5" + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=10" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz", + "integrity": "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/plugin-syntax-flow": "^7.18.6" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", + "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, "engines": { - "node": ">=4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/espree": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", - "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", "dev": true, "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", "dev": true, "dependencies": { - "estraverse": "^5.1.0" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=0.10" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.18.6.tgz", + "integrity": "sha512-Pra5aXsmTsOnjM3IajS8rTaLCy++nGM4v3YR4esk5PCsyg9z8NA5oQLwxzMUtDBd8F+UmVza3VxoAaWCbzH1rg==", "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, "engines": { - "node": ">=4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.18.6.tgz", + "integrity": "sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q==", "dev": true, "dependencies": { - "estraverse": "^5.2.0" + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" }, "engines": { - "node": ">=4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.0.tgz", + "integrity": "sha512-x9aiR0WXAWmOWsqcsnrzGR+ieaTMVyGyffPVA7F8cXAGt/UxefYv6uSHZLkAFChN5M5Iy1+wjE+xJuPt22H39A==", "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-validator-identifier": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, "engines": { - "node": ">=4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz", + "integrity": "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==", "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.19.0", + "@babel/helper-plugin-utils": "^7.19.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", + "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", "dev": true, "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=8.6.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" }, "engines": { - "node": ">= 6" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz", + "integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==", "dev": true, "dependencies": { - "reusify": "^1.0.4" + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", "dev": true, "dependencies": { - "flat-cache": "^3.0.4" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", "dev": true, "dependencies": { - "to-regex-range": "^5.0.1" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz", + "integrity": "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==", "dev": true, "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/plugin-syntax-jsx": "^7.18.6", + "@babel/types": "^7.19.0" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", "dev": true, "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "@babel/plugin-transform-react-jsx": "^7.18.6" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=8.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz", + "integrity": "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "regenerator-transform": "^0.15.0" + }, "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": "*" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/@babel/plugin-transform-spread": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", + "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" }, "engines": { - "node": "*" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", "dev": true, "dependencies": { - "is-glob": "^4.0.3" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=10.13.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", "dev": true, "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", + "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", "dev": true, "dependencies": { - "function-bind": "^1.1.1" + "@babel/helper-plugin-utils": "^7.18.9" }, "engines": { - "node": ">= 0.4.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "node_modules/@babel/preset-env": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.3.tgz", + "integrity": "sha512-ziye1OTc9dGFOAXSWKUqQblYHNlBOaDl8wzqf2iKXJAltYiR3hKHUKmkt+S9PppW7RQpq4fFCrwwpIDj/f5P4w==", "dev": true, - "engines": { - "node": ">= 4" + "dependencies": { + "@babel/compat-data": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-async-generator-functions": "^7.19.1", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.18.6", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.18.9", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.18.6", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.18.6", + "@babel/plugin-transform-async-to-generator": "^7.18.6", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.18.9", + "@babel/plugin-transform-classes": "^7.19.0", + "@babel/plugin-transform-computed-properties": "^7.18.9", + "@babel/plugin-transform-destructuring": "^7.18.13", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.18.8", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.18.6", + "@babel/plugin-transform-modules-commonjs": "^7.18.6", + "@babel/plugin-transform-modules-systemjs": "^7.19.0", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.18.8", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.18.6", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.19.0", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.19.3", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "dev": true, "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { - "node": ">=6" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "engines": { - "node": ">=0.8.19" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "node_modules/@babel/preset-flow": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.18.6.tgz", + "integrity": "sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ==", "dev": true, "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-flow-strip-types": "^7.18.6" + }, "engines": { - "node": ">= 0.10" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", "dev": true, "dependencies": { - "has": "^1.0.3" + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/@babel/preset-react": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", + "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.18.6", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/@babel/runtime": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", + "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", "dev": true, "dependencies": { - "is-extglob": "^2.1.1" + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/@babel/traverse": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", + "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.19.3", + "@babel/types": "^7.19.3", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, "engines": { - "node": ">=0.12.0" + "node": ">=6.9.0" } }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "node_modules/@babel/types": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz", + "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==", "dev": true, "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" + "@babel/helper-string-parser": "^7.18.10", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@esbuild/android-arm": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.10.tgz", + "integrity": "sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/js-sdsl": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", - "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", - "dev": true + "node_modules/@esbuild/linux-loong64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz", + "integrity": "sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/@eslint/eslintrc": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", + "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", "dev": true, "dependencies": { - "argparse": "^2.0.1" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/@humanwhocodes/config-array": { + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", + "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", "dev": true, "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" }, "engines": { - "node": ">= 0.8.0" + "node": ">=10.10.0" } }, - "node_modules/local-pkg": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", - "integrity": "sha512-mlERgSPrbxU3BP4qBqAvvwlgW4MTg78iwJdGGnv7kibKjWcJksrG3t6LB5lXI93wXRDvG4NpUgJFmTG4T6rdrg==", + "node_modules/@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", "dev": true, - "engines": { - "node": ">=14" - }, "funding": { - "url": "https://github.com/sponsors/antfu" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, "engines": { - "node": ">=10" + "node": ">=12.22" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, - "node_modules/loupe": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", - "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "dependencies": { - "get-func-name": "^2.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", "dev": true, "dependencies": { - "yallist": "^4.0.0" + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" }, "engines": { - "node": ">=10" + "node": ">=6.0.0" } }, - "node_modules/make-dir": { + "node_modules/@jridgewell/resolve-uri": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "node": ">=6.0.0" } }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, "engines": { - "node": ">= 8" + "node": ">=6.0.0" } }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "node_modules/@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", "dev": true, "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" } }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", "dev": true, "dependencies": { - "brace-expansion": "^1.1.7" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { - "node": "*" + "node": ">=6.0.0" } }, - "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", + "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } }, - "node_modules/nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": ">= 8" } }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "dependencies": { - "wrappy": "1" + "engines": { + "node": ">= 8" } }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 8" } }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "node_modules/@rollup/plugin-alias": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz", + "integrity": "sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw==", "dev": true, "dependencies": { - "yocto-queue": "^0.1.0" + "slash": "^3.0.0" }, "engines": { - "node": ">=10" + "node": ">=8.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "node_modules/@rollup/plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", + "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", "dev": true, "dependencies": { - "p-limit": "^3.0.2" + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" }, "engines": { - "node": ">=10" + "node": ">= 10.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + } } }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/@rollup/plugin-commonjs": { + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz", + "integrity": "sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==", "dev": true, "dependencies": { - "callsites": "^3.0.0" + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" }, "engines": { - "node": ">=6" + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^2.30.0" } }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/@rollup/plugin-json": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz", + "integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "@rollup/pluginutils": "^3.0.8" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "node_modules/@rollup/plugin-node-resolve": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", + "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", "dev": true, + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, "engines": { - "node": ">=8" + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", "dev": true }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "node_modules/@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", + "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" } }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", "dev": true, "engines": { - "node": "*" + "node": ">=10.13.0" } }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "node_modules/@types/chai": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", + "integrity": "sha512-hC7OMnszpxhZPduX+m+nrx+uFoLkWOMiR4oa/AZF3MuSETYTZmFfJAHqZEM8MVlvfG7BEUcgvtwoCTxBp6hm3g==", "dev": true }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.4.17", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", - "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", + "node_modules/@types/chai-subset": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@types/chai-subset/-/chai-subset-1.3.3.tgz", + "integrity": "sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - } - ], "dependencies": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" + "@types/chai": "*" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } + "node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "node_modules/@types/node": { + "version": "18.8.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.1.tgz", + "integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", "dev": true, "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" + "@types/node": "*" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", + "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/type-utils": "5.39.0", + "@typescript-eslint/utils": "5.39.0", + "debug": "^4.3.4", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, "engines": { - "node": ">=8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "node_modules/@typescript-eslint/parser": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", + "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", + "debug": "^4.3.4" }, - "bin": { - "resolve": "bin/resolve" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", + "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0" + }, "engines": { - "node": ">=4" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "node_modules/@typescript-eslint/type-utils": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", + "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.39.0", + "@typescript-eslint/utils": "5.39.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/@typescript-eslint/types": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", + "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", + "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", "dev": true, "dependencies": { - "glob": "^7.1.3" + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" }, - "bin": { - "rimraf": "bin.js" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/rollup": { - "version": "2.78.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.78.1.tgz", - "integrity": "sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==", + "node_modules/@typescript-eslint/utils": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", + "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", "dev": true, - "bin": { - "rollup": "dist/bin/rollup" + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" }, "engines": { - "node": ">=10.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", + "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], "dependencies": { - "queue-microtask": "^1.2.2" + "@typescript-eslint/types": "5.39.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "node_modules/@vitest/coverage-c8": { + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.23.4.tgz", + "integrity": "sha512-jmD00a5DQH9gu9K+YdvVhcMuv2CzHvU4gCnySS40Ec5hKlXtlCzRfNHl00VnhfuBeaQUmaQYe60BLT413HyDdg==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "c8": "^7.12.0", + "vitest": "0.23.4" }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true, "bin": { - "semver": "bin/semver.js" + "acorn": "bin/acorn" }, "engines": { - "node": ">=10" + "node": ">=0.4.0" } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "dependencies": { - "shebang-regex": "^3.0.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=8" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/shx": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.4.tgz", - "integrity": "sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==", - "dev": true, - "dependencies": { - "minimist": "^1.2.3", - "shelljs": "^0.8.5" - }, - "bin": { - "shx": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": "*" } }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, + "node_modules/asyncro": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/asyncro/-/asyncro-3.0.0.tgz", + "integrity": "sha512-nEnWYfrBmA3taTiuiOoZYmgJ/CNrSoQLeLs29SeLcPu60yaw/mHDBHV0iOZ051fTvsTHxpCY+gXibqT9wbQYfg==", + "dev": true + }, + "node_modules/autoprefixer": { + "version": "10.4.12", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.12.tgz", + "integrity": "sha512-WrCGV9/b97Pa+jtwf5UGaRjgQIg7OK3D06GnoYoZNcG1Xb8Gt3EfuKjlhh9i/VtT16g6PYjZ69jdJ2g8FxSC4Q==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "browserslist": "^4.21.4", + "caniuse-lite": "^1.0.30001407", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" }, "engines": { - "node": ">=8" + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", "dev": true, "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "object.assign": "^4.1.0" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=10", + "npm": ">=6" } }, - "node_modules/strip-literal": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", - "integrity": "sha512-pv48ybn4iE1O9RLgCAN0iU4Xv7RlBTiit6DKmMiErbs9x1wH6vXBs45tWc0H5wUIF6TLTrKweqkmYF/iraQKNw==", + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", "dev": true, "dependencies": { - "acorn": "^8.8.0" + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" }, - "funding": { - "url": "https://github.com/sponsors/antfu" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", + "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", "dev": true, - "engines": { - "node": ">= 0.4" + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", + "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", "dev": true, "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" + "@babel/helper-define-polyfill-provider": "^0.3.3" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/tinybench": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", - "integrity": "sha512-VxB1P8DUhpCC1j2WtKgFYpv3SwU7vtnfmG29cK7hXcqyD7lLiq6SYCVpDceoAT99mvTN+V8Ay4OdtZQbB72+Sw==", + "node_modules/babel-plugin-transform-async-to-promises": { + "version": "0.8.18", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-promises/-/babel-plugin-transform-async-to-promises-0.8.18.tgz", + "integrity": "sha512-WpOrF76nUHijnNn10eBGOHZmXQC8JYRME9rOLxStOga7Av2VO53ehVFvVNImMksVtQuL2/7ZNxEgxnx7oo/3Hw==", "dev": true }, - "node_modules/tinypool": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.3.0.tgz", - "integrity": "sha512-NX5KeqHOBZU6Bc0xj9Vr5Szbb1j8tUHIeD18s41aDJaPeC5QTdEhK0SpdpUrZlj2nv5cctNcSjaKNanXlfcVEQ==", + "node_modules/babel-plugin-transform-replace-expressions": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-replace-expressions/-/babel-plugin-transform-replace-expressions-0.2.0.tgz", + "integrity": "sha512-Eh1rRd9hWEYgkgoA3D0kGp7xJ/wgVshgsqmq60iC4HVWD+Lux+fNHSHBa2v1Hsv+dHflShC71qKhiH40OiPtDA==", "dev": true, - "engines": { - "node": ">=14.0.0" + "dependencies": { + "@babel/parser": "^7.3.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/tinyspy": { + "node_modules/balanced-match": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-1.0.2.tgz", - "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "engines": { - "node": ">=14.0.0" + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "dependencies": { - "is-number": "^7.0.0" + "fill-range": "^7.0.1" }, "engines": { - "node": ">=8.0" + "node": ">=8" } }, - "node_modules/tsafe": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", - "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", - "dev": true - }, - "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "node_modules/brotli-size": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/brotli-size/-/brotli-size-4.0.0.tgz", + "integrity": "sha512-uA9fOtlTRC0iqKfzff1W34DXUA3GyVqbUaeo3Rw3d4gd1eavKVCETXrn3NzO74W+UVkG3UHu8WxUi+XvKI/huA==", "dev": true, "dependencies": { - "tslib": "^1.8.1" + "duplexer": "0.1.1" }, "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + "node": ">= 10.16.0" } }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "node_modules/browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], "dependencies": { - "prelude-ls": "^1.2.1" + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" + }, + "bin": { + "browserslist": "cli.js" }, "engines": { - "node": ">= 0.8.0" + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", "dev": true, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "node_modules/c8": { + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/c8/-/c8-7.12.0.tgz", + "integrity": "sha512-CtgQrHOkyxr5koX1wEUmN/5cfDa2ckbHRA4Gy5LAL0zaCFtVWJS5++n+w4/sr2GWGerBxgTjpKeDclk/Qk6W/A==", "dev": true, "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/v8-to-istanbul": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", - "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "@bcoe/v8-coverage": "^0.2.3", + "@istanbuljs/schema": "^0.1.3", + "find-up": "^5.0.0", + "foreground-child": "^2.0.0", + "istanbul-lib-coverage": "^3.2.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-reports": "^3.1.4", + "rimraf": "^3.0.2", + "test-exclude": "^6.0.0", + "v8-to-istanbul": "^9.0.0", + "yargs": "^16.2.0", + "yargs-parser": "^20.2.9" + }, + "bin": { + "c8": "bin/c8.js" }, "engines": { "node": ">=10.12.0" } }, - "node_modules/vite": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.4.tgz", - "integrity": "sha512-JoQI08aBjY9lycL7jcEq4p9o1xUjq5aRvdH4KWaXtkSx7e7RpAh9D3IjzDWRD4Fg44LS3oDAIOG/Kq1L+82psA==", + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dev": true, "dependencies": { - "esbuild": "^0.15.6", - "postcss": "^8.4.16", - "resolve": "^1.22.1", - "rollup": "~2.78.0" - }, - "bin": { - "vite": "bin/vite.js" + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "less": "*", - "sass": "*", - "stylus": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "terser": { - "optional": true - } + "node": ">=6" } }, - "node_modules/vitest": { - "version": "0.23.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.4.tgz", - "integrity": "sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==", + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "dependencies": { - "@types/chai": "^4.3.3", - "@types/chai-subset": "^1.3.3", - "@types/node": "*", - "chai": "^4.3.6", - "debug": "^4.3.4", - "local-pkg": "^0.4.2", - "strip-literal": "^0.4.1", - "tinybench": "^2.1.5", - "tinypool": "^0.3.0", - "tinyspy": "^1.0.2", - "vite": "^2.9.12 || ^3.0.0-0" - }, - "bin": { - "vitest": "vitest.mjs" - }, "engines": { - "node": ">=v14.16.0" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@vitest/browser": "*", - "@vitest/ui": "*", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", "dev": true, "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "node_modules/caniuse-lite": { + "version": "1.0.30001415", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001415.tgz", + "integrity": "sha512-ER+PfgCJUe8BqunLGWd/1EY4g8AzQcsDAVzdtMGKVtQEmKAwaFfU6vb7EAVIqTMYsqxBorYZi2+22Iouj/y7GQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "node_modules/chai": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", + "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "loupe": "^2.3.1", + "pathval": "^1.1.1", + "type-detect": "^4.0.5" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/wrappy": { + "node_modules/check-error": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", "dev": true, "engines": { - "node": ">=10" + "node": "*" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=10" + "node": ">=7.0.0" } }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 10" } - } - }, - "dependencies": { + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/core-js-compat": { + "version": "3.25.5", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.5.tgz", + "integrity": "sha512-ovcyhs2DEBUIE0MGEKHP4olCUW/XYte3Vroyxuh38rD1wAO4dHohsovUC4eAOuzFxE6b+RXvBU3UZ9o0YhUTkA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.3.1.tgz", + "integrity": "sha512-fBffmak0bPAnyqc/HO8C3n2sHrp9wcqQz6ES9koRF2/mLOVAx9zIQ3Y7R29sYCteTPqMCwns4WYQoCX91Xl3+w==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.13", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.13.tgz", + "integrity": "sha512-S2SL2ekdEz6w6a2epXn4CmMKU4K3KpcyXLKfAYc9UQQqJRkD/2eLUG0vJ3Db/9OvO5GuAdgXw3pFbR6abqghDQ==", + "dev": true, + "dependencies": { + "cssnano-preset-default": "^5.2.12", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.12", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.12.tgz", + "integrity": "sha512-OyCBTZi+PXgylz9HAA5kHyoYhfGcYdwFmyaJzWnzxuGRtnMw/kR6ilW9XzlzlRAtB6PLT/r+prYgkef7hngFew==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^6.3.0", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.0", + "postcss-convert-values": "^5.1.2", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.6", + "postcss-merge-rules": "^5.1.2", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.3", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.0", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.0", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha512-sxNZ+ljy+RA1maXoUReeqBBpBC6RLKmg5ewzV+x+mSETmWNoKdZN6vcQjpFROemza23hGFskJtFNoUWUaQ+R4Q==", + "dev": true + }, + "node_modules/ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.272", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.272.tgz", + "integrity": "sha512-KS6gPPGNrzpVv9HzFVq+Etd0AjZEPr5pvaTBn2yD6KV4+cKW4I0CJoJNgmTG6gUQPAMZ4wIPtcOuoou3qFAZCA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.3.tgz", + "integrity": "sha512-AyrnaKVpMzljIdwjzrj+LxGmj8ik2LckwXacHqrJJ/jxz6dDDBcZ7I7nlHM0FvEW8MfbWJwOd+yT2XzYW49Frw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.3", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.6", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.2", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/esbuild": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.10.tgz", + "integrity": "sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.15.10", + "@esbuild/linux-loong64": "0.15.10", + "esbuild-android-64": "0.15.10", + "esbuild-android-arm64": "0.15.10", + "esbuild-darwin-64": "0.15.10", + "esbuild-darwin-arm64": "0.15.10", + "esbuild-freebsd-64": "0.15.10", + "esbuild-freebsd-arm64": "0.15.10", + "esbuild-linux-32": "0.15.10", + "esbuild-linux-64": "0.15.10", + "esbuild-linux-arm": "0.15.10", + "esbuild-linux-arm64": "0.15.10", + "esbuild-linux-mips64le": "0.15.10", + "esbuild-linux-ppc64le": "0.15.10", + "esbuild-linux-riscv64": "0.15.10", + "esbuild-linux-s390x": "0.15.10", + "esbuild-netbsd-64": "0.15.10", + "esbuild-openbsd-64": "0.15.10", + "esbuild-sunos-64": "0.15.10", + "esbuild-windows-32": "0.15.10", + "esbuild-windows-64": "0.15.10", + "esbuild-windows-arm64": "0.15.10" + } + }, + "node_modules/esbuild-android-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz", + "integrity": "sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-android-arm64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz", + "integrity": "sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz", + "integrity": "sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-arm64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz", + "integrity": "sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz", + "integrity": "sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-arm64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz", + "integrity": "sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-32": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz", + "integrity": "sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz", + "integrity": "sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz", + "integrity": "sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz", + "integrity": "sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-mips64le": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz", + "integrity": "sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-ppc64le": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz", + "integrity": "sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-riscv64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz", + "integrity": "sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-s390x": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz", + "integrity": "sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-netbsd-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz", + "integrity": "sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-openbsd-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz", + "integrity": "sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-sunos-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz", + "integrity": "sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-32": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz", + "integrity": "sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz", + "integrity": "sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-arm64": { + "version": "0.15.10", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz", + "integrity": "sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.2", + "@humanwhocodes/config-array": "^0.10.5", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@humanwhocodes/module-importer": "^1.0.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-unused-imports": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", + "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", + "dev": true, + "dependencies": { + "eslint-rule-composer": "^0.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^5.0.0", + "eslint": "^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + } + } + }, + "node_modules/eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/espree": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", + "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/figures/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/filesize": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-6.4.0.tgz", + "integrity": "sha512-mjFIpOHC4jbfcTfoh4rkWpI31mF7viw9ikj/JyLoKzqlwG/YsefKfvYlYhdYdg/9mtK2z1AzgN/0LvVQ3zdlSQ==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/foreground-child": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", + "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/generic-names": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/generic-names/-/generic-names-4.0.0.tgz", + "integrity": "sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==", + "dev": true, + "dependencies": { + "loader-utils": "^3.2.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==", + "dev": true + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", + "dev": true + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gzip-size/node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/icss-replace-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", + "integrity": "sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==", + "dev": true + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-3.0.0.tgz", + "integrity": "sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg==", + "dev": true, + "dependencies": { + "import-from": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", + "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-from/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", + "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/js-sdsl": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", + "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/loader-utils": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz", + "integrity": "sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/local-pkg": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", + "integrity": "sha512-mlERgSPrbxU3BP4qBqAvvwlgW4MTg78iwJdGGnv7kibKjWcJksrG3t6LB5lXI93wXRDvG4NpUgJFmTG4T6rdrg==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "node_modules/loupe": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", + "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.0" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/maxmin": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz", + "integrity": "sha512-NWlApBjW9az9qRPaeg7CX4sQBWwytqz32bIEo1PW9pRW+kBP9KLRfJO3UC+TV31EcQZEUq7eMzikC7zt3zPJcw==", + "dev": true, + "dependencies": { + "chalk": "^1.0.0", + "figures": "^1.0.1", + "gzip-size": "^3.0.0", + "pretty-bytes": "^3.0.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/maxmin/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/maxmin/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/maxmin/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/maxmin/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/maxmin/node_modules/gzip-size": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", + "integrity": "sha512-6s8trQiK+OMzSaCSVXX+iqIcLV9tC+E73jrJrJTyS4h/AJhlxHvzFKqM1YLDJWRGgHX8uLkBeXkA0njNj39L4w==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.1" + }, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/maxmin/node_modules/pretty-bytes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", + "integrity": "sha512-eb7ZAeUTgfh294cElcu51w+OTRp/6ItW758LjwJSK72LDevcuJn0P4eD71PLMDGPwwatXmAmYHTkzvpKlJE3ow==", + "dev": true, + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/maxmin/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/maxmin/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/microbundle": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/microbundle/-/microbundle-0.15.1.tgz", + "integrity": "sha512-aAF+nwFbkSIJGfrJk+HyzmJOq3KFaimH6OIFBU6J2DPjQeg1jXIYlIyEv81Gyisb9moUkudn+wj7zLNYMOv75Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.10", + "@babel/plugin-proposal-class-properties": "7.12.1", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-jsx": "^7.12.1", + "@babel/plugin-transform-flow-strip-types": "^7.12.10", + "@babel/plugin-transform-react-jsx": "^7.12.11", + "@babel/plugin-transform-regenerator": "^7.12.1", + "@babel/preset-env": "^7.12.11", + "@babel/preset-flow": "^7.12.1", + "@babel/preset-react": "^7.12.10", + "@rollup/plugin-alias": "^3.1.1", + "@rollup/plugin-babel": "^5.2.2", + "@rollup/plugin-commonjs": "^17.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^11.0.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.2", + "asyncro": "^3.0.0", + "autoprefixer": "^10.1.0", + "babel-plugin-macros": "^3.0.1", + "babel-plugin-transform-async-to-promises": "^0.8.18", + "babel-plugin-transform-replace-expressions": "^0.2.0", + "brotli-size": "^4.0.0", + "builtin-modules": "^3.1.0", + "camelcase": "^6.2.0", + "escape-string-regexp": "^4.0.0", + "filesize": "^6.1.0", + "gzip-size": "^6.0.0", + "kleur": "^4.1.3", + "lodash.merge": "^4.6.2", + "postcss": "^8.2.1", + "pretty-bytes": "^5.4.1", + "rollup": "^2.35.1", + "rollup-plugin-bundle-size": "^1.0.3", + "rollup-plugin-postcss": "^4.0.0", + "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-typescript2": "^0.32.0", + "rollup-plugin-visualizer": "^5.6.0", + "sade": "^1.7.4", + "terser": "^5.7.0", + "tiny-glob": "^0.2.8", + "tslib": "^2.0.3", + "typescript": "^4.1.3" + }, + "bin": { + "microbundle": "dist/cli.js" + } + }, + "node_modules/microbundle/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/open": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "dev": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-queue": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", + "integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", + "dev": true, + "dependencies": { + "eventemitter3": "^4.0.4", + "p-timeout": "^3.2.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "dev": true, + "dependencies": { + "p-finally": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/postcss": { + "version": "8.4.17", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", + "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.0.tgz", + "integrity": "sha512-WdDO4gOFG2Z8n4P8TWBpshnL3JpmNmJwdnfP2gbk2qBA8PWwOYcmjmI/t3CmMeL72a7Hkd+x/Mg9O2/0rD54Pg==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.2.tgz", + "integrity": "sha512-c6Hzc4GAv95B7suy4udszX9Zy4ETyMCgFPUDtWjdFTKH1SE9eFY/jEpHSwTH1QPuwxHpWslhckUQWbNRM4ho5g==", + "dev": true, + "dependencies": { + "browserslist": "^4.20.3", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dev": true, + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.6.tgz", + "integrity": "sha512-6C/UGF/3T5OE2CEbOuX7iNO63dnvqhGZeUnKkDeifebY0XqkkvrctYSZurpNE902LDf2yKwwPFgotnfSoPhQiw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.2.tgz", + "integrity": "sha512-zKMUlnw+zYCWoPN6yhPjtcEdlJaMUZ0WyVcxTAmw3lkkN/NDMRkOkiuctQEoWAOvH7twaxUUdvBWl0d4+hifRQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dev": true, + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.3.tgz", + "integrity": "sha512-bkzpWcjykkqIujNL+EVEPOlLYi/eZ050oImVtHU7b4lFS82jPnsCb44gvC6pxaNt38Els3jWYDHTjHKf0koTgg==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/postcss-modules/-/postcss-modules-4.3.1.tgz", + "integrity": "sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q==", + "dev": true, + "dependencies": { + "generic-names": "^4.0.0", + "icss-replace-symbols": "^1.1.0", + "lodash.camelcase": "^4.3.0", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "string-hash": "^1.1.1" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.0.tgz", + "integrity": "sha512-J6M3MizAAZ2dOdSjy2caayJLQT8E8K9XjLce8AUQMwOrCvjCHv24aLC/Lps1R1ylOfol5VIDMaM/Lo9NGlk1SQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dev": true, + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.0.tgz", + "integrity": "sha512-5OgTUviz0aeH6MtBjHfbr57tml13PuedK/Ecg8szzd4XRMbYxH4572JFG067z+FqBIf6Zp/d+0581glkvvWMFw==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/promise.series": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/promise.series/-/promise.series-0.2.0.tgz", + "integrity": "sha512-VWQJyU2bcDTgZw8kpfBpB/ejZASlCrzwz5f2hjb/zlujOEB4oeiAhHygAWq8ubsX2GVkD4kCU5V2dwOTaCY5EQ==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz", + "integrity": "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/regexpu-core": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", + "integrity": "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsgen": "^0.7.1", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", + "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", + "dev": true + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.78.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.78.1.tgz", + "integrity": "sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-bundle-size": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/rollup-plugin-bundle-size/-/rollup-plugin-bundle-size-1.0.3.tgz", + "integrity": "sha512-aWj0Pvzq90fqbI5vN1IvUrlf4utOqy+AERYxwWjegH1G8PzheMnrRIgQ5tkwKVtQMDP0bHZEACW/zLDF+XgfXQ==", + "dev": true, + "dependencies": { + "chalk": "^1.1.3", + "maxmin": "^2.1.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup-plugin-bundle-size/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/rollup-plugin-postcss": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz", + "integrity": "sha512-05EaY6zvZdmvPUDi3uCcAQoESDcYnv8ogJJQRp6V5kZ6J6P7uAVJlrTZcaaA20wTH527YTnKfkAoPxWI/jPp4w==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "concat-with-sourcemaps": "^1.1.0", + "cssnano": "^5.0.1", + "import-cwd": "^3.0.0", + "p-queue": "^6.6.2", + "pify": "^5.0.0", + "postcss-load-config": "^3.0.0", + "postcss-modules": "^4.0.0", + "promise.series": "^0.2.0", + "resolve": "^1.19.0", + "rollup-pluginutils": "^2.8.2", + "safe-identifier": "^0.4.2", + "style-inject": "^0.3.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "postcss": "8.x" + } + }, + "node_modules/rollup-plugin-terser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", + "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0" + } + }, + "node_modules/rollup-plugin-typescript2": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", + "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^4.1.2", + "find-cache-dir": "^3.3.2", + "fs-extra": "^10.0.0", + "resolve": "^1.20.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "rollup": ">=1.26.3", + "typescript": ">=2.4.0" + } + }, + "node_modules/rollup-plugin-typescript2/node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/rollup-plugin-typescript2/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "node_modules/rollup-plugin-visualizer": { + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.8.2.tgz", + "integrity": "sha512-Fh7KoAa7FVVOojmyyX9ro7fBSR7mPG2cgfDbA877HM4IeJJtSZO+I/R3h/u6TB8wVP5J4pXPpTaRMSREyqCS3g==", + "dev": true, + "dependencies": { + "open": "^8.4.0", + "source-map": "^0.7.4", + "yargs": "^17.5.1" + }, + "bin": { + "rollup-plugin-visualizer": "dist/bin/cli.js" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "rollup": "^2.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/yargs": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.0.tgz", + "integrity": "sha512-8H/wTDqlSwoSnScvV2N/JHfLWOKuh5MVla9hqLjK3nsfyy6Y4kDSYSvkU5YCUEPOSnRXfIyx3Sq+B/IWudTo4g==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "dependencies": { + "estree-walker": "^0.6.1" + } + }, + "node_modules/rollup-pluginutils/node_modules/estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dev": true, + "dependencies": { + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safe-identifier": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz", + "integrity": "sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w==", + "dev": true + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shx": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.4.tgz", + "integrity": "sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==", + "dev": true, + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/string-hash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", + "integrity": "sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==", + "dev": true + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz", + "integrity": "sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.1", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-literal": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-0.4.2.tgz", + "integrity": "sha512-pv48ybn4iE1O9RLgCAN0iU4Xv7RlBTiit6DKmMiErbs9x1wH6vXBs45tWc0H5wUIF6TLTrKweqkmYF/iraQKNw==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/style-inject": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/style-inject/-/style-inject-0.3.0.tgz", + "integrity": "sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw==", + "dev": true + }, + "node_modules/stylehacks": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.0.tgz", + "integrity": "sha512-SzLmvHQTrIWfSgljkQCw2++C9+Ne91d/6Sp92I8c5uHTcy/PgeHamwITIbBW9wnFTY/3ZfSXR9HIL6Ikqmcu6Q==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/terser": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "dev": true, + "dependencies": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, + "node_modules/tinybench": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", + "integrity": "sha512-VxB1P8DUhpCC1j2WtKgFYpv3SwU7vtnfmG29cK7hXcqyD7lLiq6SYCVpDceoAT99mvTN+V8Ay4OdtZQbB72+Sw==", + "dev": true + }, + "node_modules/tinypool": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.3.0.tgz", + "integrity": "sha512-NX5KeqHOBZU6Bc0xj9Vr5Szbb1j8tUHIeD18s41aDJaPeC5QTdEhK0SpdpUrZlj2nv5cctNcSjaKNanXlfcVEQ==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-1.0.2.tgz", + "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tsafe": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.1.1.tgz", + "integrity": "sha512-Ogblm3uh0dVupcCcC4IT641rnSQ7CW9IO0q8yIncG8OBe4DDXEqGtUE8LWf7+0MK1qZGeWPWEqSxlLzY2xzREA==", + "dev": true + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", + "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz", + "integrity": "sha512-/xsqn21EGVdXI3EXSum1Yckj3ZVZugqyOZQ/CxYPBD/R+ko9NSUScf8tFF4dOKY+2pvSSJA/S+5B8s4Zr4kyvg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", + "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vite": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.1.4.tgz", + "integrity": "sha512-JoQI08aBjY9lycL7jcEq4p9o1xUjq5aRvdH4KWaXtkSx7e7RpAh9D3IjzDWRD4Fg44LS3oDAIOG/Kq1L+82psA==", + "dev": true, + "dependencies": { + "esbuild": "^0.15.6", + "postcss": "^8.4.16", + "resolve": "^1.22.1", + "rollup": "~2.78.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "less": "*", + "sass": "*", + "stylus": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vitest": { + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.23.4.tgz", + "integrity": "sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==", + "dev": true, + "dependencies": { + "@types/chai": "^4.3.3", + "@types/chai-subset": "^1.3.3", + "@types/node": "*", + "chai": "^4.3.6", + "debug": "^4.3.4", + "local-pkg": "^0.4.2", + "strip-literal": "^0.4.1", + "tinybench": "^2.1.5", + "tinypool": "^0.3.0", + "tinyspy": "^1.0.2", + "vite": "^2.9.12 || ^3.0.0-0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": ">=v14.16.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@vitest/browser": "*", + "@vitest/ui": "*", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dev": true, + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", + "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", + "dev": true + }, + "@babel/core": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", + "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helpers": "^7.19.0", + "@babel/parser": "^7.19.3", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.3", + "@babel/types": "^7.19.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", + "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", + "dev": true, + "requires": { + "@babel/types": "^7.19.3", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", + "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", + "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.19.3", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz", + "integrity": "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.9", + "@babel/helper-split-export-declaration": "^7.18.6" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz", + "integrity": "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.1.0" + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", + "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "dev": true, + "requires": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", + "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "dev": true, + "requires": { + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-transforms": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", + "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.18.6", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", + "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", + "dev": true + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-replace-supers": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", + "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.18.9", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/traverse": "^7.19.1", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", + "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.18.9.tgz", + "integrity": "sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw==", + "dev": true, + "requires": { + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", + "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true + }, + "@babel/helper-wrap-function": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz", + "integrity": "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" + } + }, + "@babel/helpers": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", + "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", + "dev": true, + "requires": { + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz", + "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==", + "dev": true + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", + "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-proposal-optional-chaining": "^7.18.9" + } + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz", + "integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz", + "integrity": "sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.12.1", + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-proposal-class-static-block": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", + "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz", + "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz", + "integrity": "sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.18.8", + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.18.8" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", + "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz", + "integrity": "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-flow": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz", + "integrity": "sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-import-assertions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.18.6.tgz", + "integrity": "sha512-/DU3RXad9+bZwrgWJQKbr39gYbJpLJHezqEzRzi/BHRlJ9zsQb4CK2CA/5apllXNomwA1qHwzvHl+AdEmC5krQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", + "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz", + "integrity": "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-remap-async-to-generator": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz", + "integrity": "sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz", + "integrity": "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.19.0", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-replace-supers": "^7.18.9", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", + "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.18.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz", + "integrity": "sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-flow-strip-types": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz", + "integrity": "sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/plugin-syntax-flow": "^7.18.6" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", + "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.18.6.tgz", + "integrity": "sha512-Pra5aXsmTsOnjM3IajS8rTaLCy++nGM4v3YR4esk5PCsyg9z8NA5oQLwxzMUtDBd8F+UmVza3VxoAaWCbzH1rg==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.18.6.tgz", + "integrity": "sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.0.tgz", + "integrity": "sha512-x9aiR0WXAWmOWsqcsnrzGR+ieaTMVyGyffPVA7F8cXAGt/UxefYv6uSHZLkAFChN5M5Iy1+wjE+xJuPt22H39A==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-validator-identifier": "^7.18.6", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz", + "integrity": "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.19.0", + "@babel/helper-plugin-utils": "^7.19.0" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", + "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz", + "integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-jsx": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz", + "integrity": "sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/plugin-syntax-jsx": "^7.18.6", + "@babel/types": "^7.19.0" + } + }, + "@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "dev": true, + "requires": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + } + }, + "@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz", + "integrity": "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "regenerator-transform": "^0.15.0" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", + "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", + "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/preset-env": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.3.tgz", + "integrity": "sha512-ziye1OTc9dGFOAXSWKUqQblYHNlBOaDl8wzqf2iKXJAltYiR3hKHUKmkt+S9PppW7RQpq4fFCrwwpIDj/f5P4w==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-plugin-utils": "^7.19.0", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-async-generator-functions": "^7.19.1", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.18.6", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.18.9", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.18.6", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.18.6", + "@babel/plugin-transform-async-to-generator": "^7.18.6", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.18.9", + "@babel/plugin-transform-classes": "^7.19.0", + "@babel/plugin-transform-computed-properties": "^7.18.9", + "@babel/plugin-transform-destructuring": "^7.18.13", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.18.8", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.18.6", + "@babel/plugin-transform-modules-commonjs": "^7.18.6", + "@babel/plugin-transform-modules-systemjs": "^7.19.0", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.18.8", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.18.6", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.19.0", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.19.3", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + }, + "dependencies": { + "@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/preset-flow": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.18.6.tgz", + "integrity": "sha512-E7BDhL64W6OUqpuyHnSroLnqyRTcG6ZdOBl1OKI/QK/HJfplqK/S3sq1Cckx7oTodJ5yOXyfw7rEADJ6UjoQDQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-flow-strip-types": "^7.18.6" + } + }, + "@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-react": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", + "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.18.6", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + } + }, + "@babel/runtime": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", + "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + }, + "@babel/traverse": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", + "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.19.3", + "@babel/types": "^7.19.3", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz", + "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.18.10", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, "@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", @@ -2871,12 +9342,51 @@ "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true }, + "@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", "dev": true }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, "@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", @@ -2919,6 +9429,100 @@ "fastq": "^1.6.0" } }, + "@rollup/plugin-alias": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz", + "integrity": "sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw==", + "dev": true, + "requires": { + "slash": "^3.0.0" + } + }, + "@rollup/plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", + "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + } + }, + "@rollup/plugin-commonjs": { + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz", + "integrity": "sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" + } + }, + "@rollup/plugin-json": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz", + "integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^3.0.8" + } + }, + "@rollup/plugin-node-resolve": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", + "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + } + }, + "@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dev": true, + "requires": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "dependencies": { + "estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + } + } + }, + "@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", + "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", + "dev": true, + "requires": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true + }, "@types/chai": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.3.tgz", @@ -2934,6 +9538,12 @@ "@types/chai": "*" } }, + "@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, "@types/istanbul-lib-coverage": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", @@ -2952,6 +9562,21 @@ "integrity": "sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==", "dev": true }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@typescript-eslint/eslint-plugin": { "version": "5.39.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", @@ -3115,12 +9740,117 @@ "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", "dev": true }, + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, + "asyncro": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/asyncro/-/asyncro-3.0.0.tgz", + "integrity": "sha512-nEnWYfrBmA3taTiuiOoZYmgJ/CNrSoQLeLs29SeLcPu60yaw/mHDBHV0iOZ051fTvsTHxpCY+gXibqT9wbQYfg==", + "dev": true + }, + "autoprefixer": { + "version": "10.4.12", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.12.tgz", + "integrity": "sha512-WrCGV9/b97Pa+jtwf5UGaRjgQIg7OK3D06GnoYoZNcG1Xb8Gt3EfuKjlhh9i/VtT16g6PYjZ69jdJ2g8FxSC4Q==", + "dev": true, + "requires": { + "browserslist": "^4.21.4", + "caniuse-lite": "^1.0.30001407", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, + "babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dev": true, + "requires": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", + "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", + "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.3" + } + }, + "babel-plugin-transform-async-to-promises": { + "version": "0.8.18", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-promises/-/babel-plugin-transform-async-to-promises-0.8.18.tgz", + "integrity": "sha512-WpOrF76nUHijnNn10eBGOHZmXQC8JYRME9rOLxStOga7Av2VO53ehVFvVNImMksVtQuL2/7ZNxEgxnx7oo/3Hw==", + "dev": true + }, + "babel-plugin-transform-replace-expressions": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-replace-expressions/-/babel-plugin-transform-replace-expressions-0.2.0.tgz", + "integrity": "sha512-Eh1rRd9hWEYgkgoA3D0kGp7xJ/wgVshgsqmq60iC4HVWD+Lux+fNHSHBa2v1Hsv+dHflShC71qKhiH40OiPtDA==", + "dev": true, + "requires": { + "@babel/parser": "^7.3.3" + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -3140,6 +9870,39 @@ "fill-range": "^7.0.1" } }, + "brotli-size": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/brotli-size/-/brotli-size-4.0.0.tgz", + "integrity": "sha512-uA9fOtlTRC0iqKfzff1W34DXUA3GyVqbUaeo3Rw3d4gd1eavKVCETXrn3NzO74W+UVkG3UHu8WxUi+XvKI/huA==", + "dev": true, + "requires": { + "duplexer": "0.1.1" + } + }, + "browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true + }, "c8": { "version": "7.12.0", "resolved": "https://registry.npmjs.org/c8/-/c8-7.12.0.tgz", @@ -3160,12 +9923,46 @@ "yargs-parser": "^20.2.9" } }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, + "caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "requires": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001415", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001415.tgz", + "integrity": "sha512-ER+PfgCJUe8BqunLGWd/1EY4g8AzQcsDAVzdtMGKVtQEmKAwaFfU6vb7EAVIqTMYsqxBorYZi2+22Iouj/y7GQ==", + "dev": true + }, "chai": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", @@ -3223,12 +10020,39 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, + "concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "requires": { + "source-map": "^0.6.1" + } + }, "convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", @@ -3238,6 +10062,28 @@ "safe-buffer": "~5.1.1" } }, + "core-js-compat": { + "version": "3.25.5", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.5.tgz", + "integrity": "sha512-ovcyhs2DEBUIE0MGEKHP4olCUW/XYte3Vroyxuh38rD1wAO4dHohsovUC4eAOuzFxE6b+RXvBU3UZ9o0YhUTkA==", + "dev": true, + "requires": { + "browserslist": "^4.21.4" + } + }, + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -3249,6 +10095,112 @@ "which": "^2.0.1" } }, + "css-declaration-sorter": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.3.1.tgz", + "integrity": "sha512-fBffmak0bPAnyqc/HO8C3n2sHrp9wcqQz6ES9koRF2/mLOVAx9zIQ3Y7R29sYCteTPqMCwns4WYQoCX91Xl3+w==", + "dev": true, + "requires": {} + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true + }, + "cssnano": { + "version": "5.1.13", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.13.tgz", + "integrity": "sha512-S2SL2ekdEz6w6a2epXn4CmMKU4K3KpcyXLKfAYc9UQQqJRkD/2eLUG0vJ3Db/9OvO5GuAdgXw3pFbR6abqghDQ==", + "dev": true, + "requires": { + "cssnano-preset-default": "^5.2.12", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + } + }, + "cssnano-preset-default": { + "version": "5.2.12", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.12.tgz", + "integrity": "sha512-OyCBTZi+PXgylz9HAA5kHyoYhfGcYdwFmyaJzWnzxuGRtnMw/kR6ilW9XzlzlRAtB6PLT/r+prYgkef7hngFew==", + "dev": true, + "requires": { + "css-declaration-sorter": "^6.3.0", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.0", + "postcss-convert-values": "^5.1.2", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.6", + "postcss-merge-rules": "^5.1.2", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.3", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.0", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.0", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + } + }, + "cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "dev": true, + "requires": {} + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "requires": { + "css-tree": "^1.1.2" + } + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -3273,6 +10225,28 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true + }, + "define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -3291,12 +10265,128 @@ "esutils": "^2.0.2" } }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha512-sxNZ+ljy+RA1maXoUReeqBBpBC6RLKmg5ewzV+x+mSETmWNoKdZN6vcQjpFROemza23hGFskJtFNoUWUaQ+R4Q==", + "dev": true + }, + "ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dev": true, + "requires": { + "jake": "^10.8.5" + } + }, + "electron-to-chromium": { + "version": "1.4.272", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.272.tgz", + "integrity": "sha512-KS6gPPGNrzpVv9HzFVq+Etd0AjZEPr5pvaTBn2yD6KV4+cKW4I0CJoJNgmTG6gUQPAMZ4wIPtcOuoou3qFAZCA==", + "dev": true + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.3.tgz", + "integrity": "sha512-AyrnaKVpMzljIdwjzrj+LxGmj8ik2LckwXacHqrJJ/jxz6dDDBcZ7I7nlHM0FvEW8MfbWJwOd+yT2XzYW49Frw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.3", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.6", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.2", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, "esbuild": { "version": "0.15.10", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.10.tgz", @@ -3643,12 +10733,24 @@ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true }, + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -3700,6 +10802,24 @@ "reusify": "^1.0.4" } }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + } + } + }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -3709,6 +10829,41 @@ "flat-cache": "^3.0.4" } }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "filesize": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-6.4.0.tgz", + "integrity": "sha512-mjFIpOHC4jbfcTfoh4rkWpI31mF7viw9ikj/JyLoKzqlwG/YsefKfvYlYhdYdg/9mtK2z1AzgN/0LvVQ3zdlSQ==", + "dev": true + }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -3718,6 +10873,17 @@ "to-regex-range": "^5.0.1" } }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -3754,6 +10920,23 @@ "signal-exit": "^3.0.2" } }, + "fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "dev": true + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3773,6 +10956,39 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true + }, + "generic-names": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/generic-names/-/generic-names-4.0.0.tgz", + "integrity": "sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==", + "dev": true, + "requires": { + "loader-utils": "^3.2.0" + } + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -3785,6 +11001,27 @@ "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", "dev": true }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, "glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -3817,6 +11054,12 @@ "type-fest": "^0.20.2" } }, + "globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==", + "dev": true + }, "globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -3831,12 +11074,41 @@ "slash": "^3.0.0" } }, + "globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", + "dev": true + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, "grapheme-splitter": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "requires": { + "duplexer": "^0.1.2" + }, + "dependencies": { + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + } + } + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -3846,24 +11118,93 @@ "function-bind": "^1.1.1" } }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + } + } + }, + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true + }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, "html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "icss-replace-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", + "integrity": "sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==", + "dev": true + }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "requires": {} + }, "ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true }, + "import-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-3.0.0.tgz", + "integrity": "sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg==", + "dev": true, + "requires": { + "import-from": "^3.0.0" + } + }, "import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", @@ -3874,6 +11215,23 @@ "resolve-from": "^4.0.0" } }, + "import-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", + "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -3896,12 +11254,54 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, "interpret": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true + }, "is-core-module": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", @@ -3911,6 +11311,21 @@ "has": "^1.0.3" } }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true + }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -3932,12 +11347,97 @@ "is-extglob": "^2.1.1" } }, + "is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true + }, "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "requires": { + "@types/estree": "*" + } + }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "requires": { + "is-docker": "^2.0.0" + } + }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -3971,12 +11471,41 @@ "istanbul-lib-report": "^3.0.0" } }, + "jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dev": true, + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + } + }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, "js-sdsl": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", "dev": true }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -3986,6 +11515,18 @@ "argparse": "^2.0.1" } }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -3998,6 +11539,28 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "json5": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "dev": true + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -4008,6 +11571,24 @@ "type-check": "~0.4.0" } }, + "lilconfig": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", + "dev": true + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "loader-utils": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz", + "integrity": "sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==", + "dev": true + }, "local-pkg": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", @@ -4023,12 +11604,36 @@ "p-locate": "^5.0.0" } }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, "loupe": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", @@ -4047,6 +11652,15 @@ "yallist": "^4.0.0" } }, + "magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -4064,12 +11678,160 @@ } } }, + "maxmin": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz", + "integrity": "sha512-NWlApBjW9az9qRPaeg7CX4sQBWwytqz32bIEo1PW9pRW+kBP9KLRfJO3UC+TV31EcQZEUq7eMzikC7zt3zPJcw==", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "figures": "^1.0.1", + "gzip-size": "^3.0.0", + "pretty-bytes": "^3.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "gzip-size": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", + "integrity": "sha512-6s8trQiK+OMzSaCSVXX+iqIcLV9tC+E73jrJrJTyS4h/AJhlxHvzFKqM1YLDJWRGgHX8uLkBeXkA0njNj39L4w==", + "dev": true, + "requires": { + "duplexer": "^0.1.1" + } + }, + "pretty-bytes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", + "integrity": "sha512-eb7ZAeUTgfh294cElcu51w+OTRp/6ItW758LjwJSK72LDevcuJn0P4eD71PLMDGPwwatXmAmYHTkzvpKlJE3ow==", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, "merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, + "microbundle": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/microbundle/-/microbundle-0.15.1.tgz", + "integrity": "sha512-aAF+nwFbkSIJGfrJk+HyzmJOq3KFaimH6OIFBU6J2DPjQeg1jXIYlIyEv81Gyisb9moUkudn+wj7zLNYMOv75Q==", + "dev": true, + "requires": { + "@babel/core": "^7.12.10", + "@babel/plugin-proposal-class-properties": "7.12.1", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-jsx": "^7.12.1", + "@babel/plugin-transform-flow-strip-types": "^7.12.10", + "@babel/plugin-transform-react-jsx": "^7.12.11", + "@babel/plugin-transform-regenerator": "^7.12.1", + "@babel/preset-env": "^7.12.11", + "@babel/preset-flow": "^7.12.1", + "@babel/preset-react": "^7.12.10", + "@rollup/plugin-alias": "^3.1.1", + "@rollup/plugin-babel": "^5.2.2", + "@rollup/plugin-commonjs": "^17.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^11.0.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.2", + "asyncro": "^3.0.0", + "autoprefixer": "^10.1.0", + "babel-plugin-macros": "^3.0.1", + "babel-plugin-transform-async-to-promises": "^0.8.18", + "babel-plugin-transform-replace-expressions": "^0.2.0", + "brotli-size": "^4.0.0", + "builtin-modules": "^3.1.0", + "camelcase": "^6.2.0", + "escape-string-regexp": "^4.0.0", + "filesize": "^6.1.0", + "gzip-size": "^6.0.0", + "kleur": "^4.1.3", + "lodash.merge": "^4.6.2", + "postcss": "^8.2.1", + "pretty-bytes": "^5.4.1", + "rollup": "^2.35.1", + "rollup-plugin-bundle-size": "^1.0.3", + "rollup-plugin-postcss": "^4.0.0", + "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-typescript2": "^0.32.0", + "rollup-plugin-visualizer": "^5.6.0", + "sade": "^1.7.4", + "terser": "^5.7.0", + "tiny-glob": "^0.2.8", + "tslib": "^2.0.3", + "typescript": "^4.1.3" + }, + "dependencies": { + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + } + } + }, "micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -4095,6 +11857,12 @@ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, + "mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -4113,6 +11881,69 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "dev": true + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true + }, + "object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -4122,6 +11953,17 @@ "wrappy": "1" } }, + "open": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, "optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -4136,6 +11978,12 @@ "word-wrap": "^1.2.3" } }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -4154,6 +12002,31 @@ "p-limit": "^3.0.2" } }, + "p-queue": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", + "integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", + "dev": true, + "requires": { + "eventemitter3": "^4.0.4", + "p-timeout": "^3.2.0" + } + }, + "p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "dev": true, + "requires": { + "p-finally": "^1.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -4163,6 +12036,18 @@ "callsites": "^3.0.0" } }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -4193,41 +12078,436 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, - "pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true + "pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "postcss": { + "version": "8.4.17", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", + "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", + "dev": true, + "requires": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-colormin": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.0.tgz", + "integrity": "sha512-WdDO4gOFG2Z8n4P8TWBpshnL3JpmNmJwdnfP2gbk2qBA8PWwOYcmjmI/t3CmMeL72a7Hkd+x/Mg9O2/0rD54Pg==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-convert-values": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.2.tgz", + "integrity": "sha512-c6Hzc4GAv95B7suy4udszX9Zy4ETyMCgFPUDtWjdFTKH1SE9eFY/jEpHSwTH1QPuwxHpWslhckUQWbNRM4ho5g==", + "dev": true, + "requires": { + "browserslist": "^4.20.3", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "dev": true, + "requires": {} + }, + "postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "dev": true, + "requires": {} + }, + "postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "dev": true, + "requires": {} + }, + "postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "dev": true, + "requires": {} + }, + "postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dev": true, + "requires": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + } + }, + "postcss-merge-longhand": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.6.tgz", + "integrity": "sha512-6C/UGF/3T5OE2CEbOuX7iNO63dnvqhGZeUnKkDeifebY0XqkkvrctYSZurpNE902LDf2yKwwPFgotnfSoPhQiw==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.0" + } + }, + "postcss-merge-rules": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.2.tgz", + "integrity": "sha512-zKMUlnw+zYCWoPN6yhPjtcEdlJaMUZ0WyVcxTAmw3lkkN/NDMRkOkiuctQEoWAOvH7twaxUUdvBWl0d4+hifRQ==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dev": true, + "requires": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-params": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.3.tgz", + "integrity": "sha512-bkzpWcjykkqIujNL+EVEPOlLYi/eZ050oImVtHU7b4lFS82jPnsCb44gvC6pxaNt38Els3jWYDHTjHKf0koTgg==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-modules": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/postcss-modules/-/postcss-modules-4.3.1.tgz", + "integrity": "sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q==", + "dev": true, + "requires": { + "generic-names": "^4.0.0", + "icss-replace-symbols": "^1.1.0", + "lodash.camelcase": "^4.3.0", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "string-hash": "^1.1.1" + } + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "requires": {} + }, + "postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "dev": true, + "requires": {} + }, + "postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-unicode": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.0.tgz", + "integrity": "sha512-J6M3MizAAZ2dOdSjy2caayJLQT8E8K9XjLce8AUQMwOrCvjCHv24aLC/Lps1R1ylOfol5VIDMaM/Lo9NGlk1SQ==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dev": true, + "requires": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dev": true, + "requires": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-reduce-initial": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.0.tgz", + "integrity": "sha512-5OgTUviz0aeH6MtBjHfbr57tml13PuedK/Ecg8szzd4XRMbYxH4572JFG067z+FqBIf6Zp/d+0581glkvvWMFw==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0" + } + }, + "postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0" + } }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dev": true, + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + } }, - "postcss": { - "version": "8.4.17", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz", - "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==", + "postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", "dev": true, "requires": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "postcss-selector-parser": "^6.0.5" } }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true + }, + "promise.series": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/promise.series/-/promise.series-0.2.0.tgz", + "integrity": "sha512-VWQJyU2bcDTgZw8kpfBpB/ejZASlCrzwz5f2hjb/zlujOEB4oeiAhHygAWq8ubsX2GVkD4kCU5V2dwOTaCY5EQ==", + "dev": true + }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -4240,6 +12520,15 @@ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, "rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", @@ -4249,12 +12538,90 @@ "resolve": "^1.1.6" } }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "regenerator-transform": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz", + "integrity": "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + } + }, "regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, + "regexpu-core": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", + "integrity": "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsgen": "^0.7.1", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.0.0" + } + }, + "regjsgen": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", + "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", + "dev": true + }, + "regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true + } + } + }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -4302,6 +12669,196 @@ "fsevents": "~2.3.2" } }, + "rollup-plugin-bundle-size": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/rollup-plugin-bundle-size/-/rollup-plugin-bundle-size-1.0.3.tgz", + "integrity": "sha512-aWj0Pvzq90fqbI5vN1IvUrlf4utOqy+AERYxwWjegH1G8PzheMnrRIgQ5tkwKVtQMDP0bHZEACW/zLDF+XgfXQ==", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "maxmin": "^2.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "rollup-plugin-postcss": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz", + "integrity": "sha512-05EaY6zvZdmvPUDi3uCcAQoESDcYnv8ogJJQRp6V5kZ6J6P7uAVJlrTZcaaA20wTH527YTnKfkAoPxWI/jPp4w==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "concat-with-sourcemaps": "^1.1.0", + "cssnano": "^5.0.1", + "import-cwd": "^3.0.0", + "p-queue": "^6.6.2", + "pify": "^5.0.0", + "postcss-load-config": "^3.0.0", + "postcss-modules": "^4.0.0", + "promise.series": "^0.2.0", + "resolve": "^1.19.0", + "rollup-pluginutils": "^2.8.2", + "safe-identifier": "^0.4.2", + "style-inject": "^0.3.0" + } + }, + "rollup-plugin-terser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", + "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + } + }, + "rollup-plugin-typescript2": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", + "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^4.1.2", + "find-cache-dir": "^3.3.2", + "fs-extra": "^10.0.0", + "resolve": "^1.20.0", + "tslib": "^2.4.0" + }, + "dependencies": { + "@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "requires": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + } + }, + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + } + } + }, + "rollup-plugin-visualizer": { + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.8.2.tgz", + "integrity": "sha512-Fh7KoAa7FVVOojmyyX9ro7fBSR7mPG2cgfDbA877HM4IeJJtSZO+I/R3h/u6TB8wVP5J4pXPpTaRMSREyqCS3g==", + "dev": true, + "requires": { + "open": "^8.4.0", + "source-map": "^0.7.4", + "yargs": "^17.5.1" + }, + "dependencies": { + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true + }, + "yargs": { + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.0.tgz", + "integrity": "sha512-8H/wTDqlSwoSnScvV2N/JHfLWOKuh5MVla9hqLjK3nsfyy6Y4kDSYSvkU5YCUEPOSnRXfIyx3Sq+B/IWudTo4g==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.0.0" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + } + } + }, + "rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "requires": { + "estree-walker": "^0.6.1" + }, + "dependencies": { + "estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true + } + } + }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -4311,12 +12868,38 @@ "queue-microtask": "^1.2.2" } }, + "sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dev": true, + "requires": { + "mri": "^1.1.0" + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, + "safe-identifier": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz", + "integrity": "sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w==", + "dev": true + }, + "safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } + }, "semver": { "version": "7.3.7", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", @@ -4326,6 +12909,15 @@ "lru-cache": "^6.0.0" } }, + "serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -4362,6 +12954,17 @@ "shelljs": "^0.8.5" } }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -4374,12 +12977,46 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, "source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "dev": true }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "string-hash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", + "integrity": "sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==", + "dev": true + }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -4391,6 +13028,44 @@ "strip-ansi": "^6.0.1" } }, + "string.prototype.matchall": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz", + "integrity": "sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.1", + "side-channel": "^1.0.4" + } + }, + "string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, + "string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -4415,6 +13090,22 @@ "acorn": "^8.8.0" } }, + "style-inject": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/style-inject/-/style-inject-0.3.0.tgz", + "integrity": "sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw==", + "dev": true + }, + "stylehacks": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.0.tgz", + "integrity": "sha512-SzLmvHQTrIWfSgljkQCw2++C9+Ne91d/6Sp92I8c5uHTcy/PgeHamwITIbBW9wnFTY/3ZfSXR9HIL6Ikqmcu6Q==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "postcss-selector-parser": "^6.0.4" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -4430,6 +13121,41 @@ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + }, + "terser": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + } + } + }, "test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -4447,6 +13173,16 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "dev": true, + "requires": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, "tinybench": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.2.1.tgz", @@ -4465,6 +13201,12 @@ "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", "dev": true }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -4522,6 +13264,62 @@ "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true }, + "unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", + "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz", + "integrity": "sha512-/xsqn21EGVdXI3EXSum1Yckj3ZVZugqyOZQ/CxYPBD/R+ko9NSUScf8tFF4dOKY+2pvSSJA/S+5B8s4Zr4kyvg==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, "uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -4531,6 +13329,12 @@ "punycode": "^2.1.0" } }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, "v8-to-istanbul": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", @@ -4583,6 +13387,19 @@ "isexe": "^2.0.0" } }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -4618,6 +13435,12 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true + }, "yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", diff --git a/package.json b/package.json index 0bd4f21e..8083e1b2 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,13 @@ "files": [ "lib" ], + "type": "module", "types": "./lib/index.d.ts", "main": "./lib/index.js", "scripts": { "prepare": "npm run clean && npm run build && npm run lint", "build": "tsc", + "bundle": "microbundle", "clean": "shx rm -rf lib", "coverage": "vitest run --coverage", "lint": "eslint src test --ext .ts", @@ -42,6 +44,7 @@ "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", "eslint-plugin-unused-imports": "^2.0.0", + "microbundle": "^0.15.1", "shx": "^0.3.4", "tsafe": "^1.1.1", "typescript": "^4.8.4", From 306968cd2259326d020857b239db6736d255edff Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 07:14:19 +0000 Subject: [PATCH 036/159] cleanup --- package.json | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8083e1b2..2b5c679f 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,26 @@ "ioc" ], "files": [ - "lib" + "lib", + "src" ], - "type": "module", - "types": "./lib/index.d.ts", - "main": "./lib/index.js", + "types": "lib/index.d.ts", + "main": "lib/index.js", + "module": "lib/ginject.module.js", + "umd:main": "lib/ginject.umd.js", + "unpkg": "lib/ginject.min.js", + "source": "src/index.ts", + "exports": { + ".": { + "types": "./lib/index.d.ts", + "browser": "./lib/ginject.module.js", + "umd": "./lib/ginject.umd.js", + "import": "./lib/ginject.mjs", + "require": "./lib/ginject.js" + } + }, "scripts": { - "prepare": "npm run clean && npm run build && npm run lint", + "prepare": "npm run clean && npm run build && npm run lint && npm run bundle", "build": "tsc", "bundle": "microbundle", "clean": "shx rm -rf lib", From 38ba5c9076706fead7d53d025c792895b94b0b43 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 07:34:42 +0000 Subject: [PATCH 037/159] docs --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 73462d2f..9dcb7539 100644 --- a/README.md +++ b/README.md @@ -56,19 +56,23 @@ const ctr = inject({ ctr.sayHi(); ``` -## Modules +## Module Definitions ### Factories -### Ad-Hoc Modules +* constants +* singletons +* providers -### Factoring out Modules +### Lazy vs Eager Initialization -## Lazy vs Eager Initialization +### Cyclic Dependencies -## Cyclic Dependencies +### Asynchronous Factories -## Asynchronous Factories +### Ad-Hoc Modules + +### Factoring out Modules ## Type Safety From b68e13fccf5fc2ce3e58d35793a5a72a7cba86c3 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 07:42:50 +0000 Subject: [PATCH 038/159] fix bundle names --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b5c679f..19833a07 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "scripts": { "prepare": "npm run clean && npm run build && npm run lint && npm run bundle", "build": "tsc", - "bundle": "microbundle", + "bundle": "microbundle build -o lib/ginject.js --name ginject", "clean": "shx rm -rf lib", "coverage": "vitest run --coverage", "lint": "eslint src test --ext .ts", From c44e7db9ec14d12de6f385acea1451a94fda1115 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 07:50:05 +0000 Subject: [PATCH 039/159] TODO --- src/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inject.ts b/src/inject.ts index 6322e9b3..72034776 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -52,7 +52,7 @@ function resolve, M extends Module Date: Wed, 5 Oct 2022 08:05:32 +0000 Subject: [PATCH 040/159] linter --- .eslintrc.json | 4 ++++ package-lock.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 52 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 1138ebd9..95efa051 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,6 +17,7 @@ }, "plugins": [ "@typescript-eslint", + "typescript-enum", "unused-imports" ], "rules": { @@ -57,6 +58,9 @@ "unused-imports/no-unused-imports": "error", // no unsused imports "use-isnan": "error", // isNaN(i) Number.isNaN(i) instead of i === NaN + // List of [typescript-enum rules](https://github.com/shian15810/eslint-plugin-typescript-enum) + "typescript-enum/no-enum": "error", // disallow enums, see https://2ality.com/2020/02/enum-alternatives-typescript.html + // List of [@typescript-eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules) "@typescript-eslint/adjacent-overload-signatures": "error", // grouping same method names "@typescript-eslint/array-type": ["error", { // string[] instead of Array diff --git a/package-lock.json b/package-lock.json index ab50f7b8..ea040951 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", + "eslint-plugin-typescript-enum": "^2.1.0", "eslint-plugin-unused-imports": "^2.0.0", "microbundle": "^0.15.1", "shx": "^0.3.4", @@ -2358,6 +2359,25 @@ } } }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.39.0.tgz", + "integrity": "sha512-n5N9kG/oGu2xXhHzsWzn94s6CWoiUj59FPU2dF2IQZxPftw+q6Jm5sV2vj5qTgAElRooHhrgtl2gxBQDCPt6WA==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "5.39.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, "node_modules/@typescript-eslint/parser": { "version": "5.39.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", @@ -3924,6 +3944,15 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-plugin-typescript-enum": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-typescript-enum/-/eslint-plugin-typescript-enum-2.1.0.tgz", + "integrity": "sha512-n6RO89KJ2V2nHVAdIq1q3IBeYZSNZjBreqXOzpjmsBtw+NNhSTTSQXqwO00VYOce9Gy8cr2cDEYpj0Km+Ij90Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.3.0" + } + }, "node_modules/eslint-plugin-unused-imports": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", @@ -9593,6 +9622,15 @@ "tsutils": "^3.21.0" } }, + "@typescript-eslint/experimental-utils": { + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.39.0.tgz", + "integrity": "sha512-n5N9kG/oGu2xXhHzsWzn94s6CWoiUj59FPU2dF2IQZxPftw+q6Jm5sV2vj5qTgAElRooHhrgtl2gxBQDCPt6WA==", + "dev": true, + "requires": { + "@typescript-eslint/utils": "5.39.0" + } + }, "@typescript-eslint/parser": { "version": "5.39.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", @@ -10634,6 +10672,15 @@ } } }, + "eslint-plugin-typescript-enum": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-typescript-enum/-/eslint-plugin-typescript-enum-2.1.0.tgz", + "integrity": "sha512-n6RO89KJ2V2nHVAdIq1q3IBeYZSNZjBreqXOzpjmsBtw+NNhSTTSQXqwO00VYOce9Gy8cr2cDEYpj0Km+Ij90Q==", + "dev": true, + "requires": { + "@typescript-eslint/experimental-utils": "^5.3.0" + } + }, "eslint-plugin-unused-imports": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", diff --git a/package.json b/package.json index 19833a07..eb54d416 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@typescript-eslint/parser": "^5.38.1", "@vitest/coverage-c8": "^0.23.2", "eslint": "^8.24.0", + "eslint-plugin-typescript-enum": "^2.1.0", "eslint-plugin-unused-imports": "^2.0.0", "microbundle": "^0.15.1", "shx": "^0.3.4", From f848d4c8132c9f89cc9a4094489eceda7b082f85 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 08:08:08 +0000 Subject: [PATCH 041/159] lint arrays --- .eslintrc.json | 2 +- src/inject.ts | 2 +- src/merge.ts | 2 +- src/types.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 95efa051..f03a662d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -64,7 +64,7 @@ // List of [@typescript-eslint rules](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules) "@typescript-eslint/adjacent-overload-signatures": "error", // grouping same method names "@typescript-eslint/array-type": ["error", { // string[] instead of Array - "default": "array-simple" + "default": "array" }], "@typescript-eslint/indent": "error", // consistent indentation "@typescript-eslint/consistent-type-assertions": "error", // needed for .tsx, bad = bar, good = bar as Foo diff --git a/src/inject.ts b/src/inject.ts index 72034776..e5791a92 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -11,7 +11,7 @@ const isEager = Symbol(); const requested = Symbol(); -export function inject>>(...modules: M): Container { +export function inject[]>(...modules: M): Container { const module = modules.reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); diff --git a/src/merge.ts b/src/merge.ts index 00a2863d..12dd8447 100644 --- a/src/merge.ts +++ b/src/merge.ts @@ -19,6 +19,6 @@ function isObj(t: any): t is Record { return t !== null && typeof t === 'object' && !Array.isArray(t); } -export function keys>(t: T): Array { +export function keys>(t: T): (keyof T)[] { return [...Object.keys(t), ...Object.getOwnPropertySymbols(t)]; } diff --git a/src/types.ts b/src/types.ts index 7d6ffde7..0a706894 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,7 +12,7 @@ export type Factory = (ctr: C) => T; // TODO(@@dd): whether to infer container type C of Module or not? export type Container = - M extends Array> ? Container> : + M extends Module[] ? Container> : M extends EmptyObject ? EmptyObject : M extends Module ? Validate : never; @@ -23,11 +23,11 @@ type EmptyObject = { [key: PropertyKey]: never }; -export type MergeModules>> = +export type MergeModules[]> = M extends [] ? {} : M extends [Head, ...Tail] ? ( Tail extends [] ? Head : - Tail extends Array> ? Merge>, Head> : + Tail extends Module[] ? Merge>, Head> : never ) : never; From 8820b41df00fa14a6d30e733473815e78930f7f3 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 08:09:51 +0000 Subject: [PATCH 042/159] naming --- src/inject.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index e5791a92..d4703aa1 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -9,7 +9,7 @@ import { Module, Container, Factory } from "./types"; const isEager = Symbol(); -const requested = Symbol(); +const isRequested = Symbol(); export function inject[]>(...modules: M): Container { const module = modules.reduce(merge, {}); @@ -51,14 +51,14 @@ function resolve, M extends Module Date: Wed, 5 Oct 2022 08:23:46 +0000 Subject: [PATCH 043/159] TODO --- src/types.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/types.ts b/src/types.ts index 0a706894..2a151c17 100644 --- a/src/types.ts +++ b/src/types.ts @@ -14,17 +14,18 @@ export type Factory = (ctr: C) => T; export type Container = M extends Module[] ? Container> : M extends EmptyObject ? EmptyObject : + // TODO(@@dd): handle functions first because classes are objects and function M extends Module ? Validate : never; -type Validate = never; // TODO(@@dd): validate factory arguments +type Validate = T; // TODO(@@dd): validate factory arguments type EmptyObject = { [key: PropertyKey]: never }; export type MergeModules[]> = - M extends [] ? {} : + M extends [] ? EmptyObject: M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Tail extends Module[] ? Merge>, Head> : @@ -35,6 +36,7 @@ export type Merge = Or, Is> extends true ? never : Or, Is> extends true ? any : Or, Is> extends true ? unknown : + // TODO(@@dd): handle functions first because classes are objects and function S extends Record ? T extends Record ? MergeObjects : never : T extends Record ? never : Extends; @@ -50,7 +52,7 @@ type Extends = T1 extends T2 ? T1 : T1 extends Obj ? T2 extends Obj ? never : never : T1 extends unknown[] ? T2 extends unknown[] ? T1 extends T2 ? T1 : [Extends, Head>, ...Extends, Tail>] : never : - T1 extends (() => infer R1) ? T2 extends (() => infer R2) ? () => Extends : never : // TODO(@@dd): consider argument types + T1 extends ((...args: any[]) => infer R1) ? T2 extends ((...args: any[]) => infer R2) ? () => Extends : never : // TODO(@@dd): consider argument types T1 extends boolean ? T2 extends boolean ? boolean : never : T1 extends number ? T2 extends number ? number : never : T1 extends string ? T2 extends string ? string : never : @@ -58,7 +60,7 @@ type Extends = type Obj = T extends Record ? ( - T extends () => unknown ? never : + T extends (...args: any[]) => any ? never : T extends unknown[] ? never : T ) : never; From 3416b7e2241a22616f187c06350f65f70c1ffebd Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 08:28:51 +0000 Subject: [PATCH 044/159] docs --- README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9dcb7539..522951e0 100644 --- a/README.md +++ b/README.md @@ -42,19 +42,9 @@ const ctr = inject({ ctr.sayHi(); ``` -## Rebinding Dependencies +## API -```ts -const ctr = inject({ - hi: () => 'Hi!', - sayHi: (ctr) => () => { console.log(ctr.hi) } -}, { - hi: () => '¡Hola!' -}); - -// prints '¡Hola!' -ctr.sayHi(); -``` +TODO(@@dd): use terminology of [Google Juice](https://github.com/google/guice) and [Inversify](https://inversify.io) ## Module Definitions @@ -66,6 +56,8 @@ ctr.sayHi(); ### Lazy vs Eager Initialization +## Rebinding Dependencies + ### Cyclic Dependencies ### Asynchronous Factories From ebde0b18e6b8ba3f61ca997a09d5eee2e23d835f Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 08:32:03 +0000 Subject: [PATCH 045/159] docs --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 522951e0..1a6b780a 100644 --- a/README.md +++ b/README.md @@ -72,14 +72,14 @@ TODO(@@dd): use terminology of [Google Juice](https://github.com/google/guice) a ## Ginject vs Inversify -| | ginject | inversify | -|-----------|:----------:|:-----------:| -| minified | 1 KB | 45 KB | -| gzipped | 0.5 KB | 11 KB | -| typesafe | ✅ | ❌ | -| requirements | none | decorators / reflect-metadata | -| style | functional | imperative | -| API surface area | one function | non-trivial | +| | ginject | inversify | +|------------------|:------------:|:-----------------------------:| +| minified | 1 KB | 45 KB | +| gzipped | 0.5 KB | 11 KB | +| typesafe | ✅ | ❌ | +| requirements | none | decorators / reflect-metadata | +| style | functional | imperative | +| API surface area | one function | non-trivial | * Size / Zero Dependencies * API Surface Area From 39322853f6b3335f91a650a2e739514bfab37196 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 08:44:18 +0000 Subject: [PATCH 046/159] docs --- README.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a6b780a..46cc7462 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,25 @@ import { inject } from 'ginject'; // create an inversion of control container const ctr = inject({ - hi: () => 'Hi!', - sayHi: (ctr) => () => { console.log(ctr.hi) } + hi: () => 'Hi', + sayHi: () => (name: string) => `${ctr.hi} ${name}!` }); -// prints 'Hi!' -ctr.sayHi(); +// prints 'Hi Ginject!' +console.log(ctr.sayHi('Ginject')); ``` ## API +```ts +class Service {} // A service is a dependency. +const factory = () => new Service(); // Lazily creates a dependency. +const module = { // A module contains + group: { service: factory } // 1. nested groups (optional) +} // 2. service factories (required) +const container = inject(module); // Inject turns a module into a container. +``` + TODO(@@dd): use terminology of [Google Juice](https://github.com/google/guice) and [Inversify](https://inversify.io) ## Module Definitions @@ -53,6 +62,19 @@ TODO(@@dd): use terminology of [Google Juice](https://github.com/google/guice) a * constants * singletons * providers +* action handlers + +```ts +const ctr = inject({ + hi: () => 'Hi', + sayHi: () => (name: string) => { + console.log(`Starting: ${new Date().getTime()}`); + const greet = `${ctr.hi} ${name}!`; + console.log(`Finished: ${new Date().getTime()}`); + return greet; + } +}); +``` ### Lazy vs Eager Initialization From e247c962ff3a14d439b7d295bbbcddd5724756e4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 09:28:42 +0000 Subject: [PATCH 047/159] docs --- README.md | 88 ++++++++++++++++++++++++++++++++++------------------ src/index.ts | 29 +++++++++++++++++ 2 files changed, 87 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 46cc7462..0ff1f9b8 100644 --- a/README.md +++ b/README.md @@ -44,53 +44,81 @@ console.log(ctr.sayHi('Ginject')); ## API +### Terminology + ```ts -class Service {} // A service is a dependency. -const factory = () => new Service(); // Lazily creates a dependency. -const module = { // A module contains - group: { service: factory } // 1. nested groups (optional) -} // 2. service factories (required) -const container = inject(module); // Inject turns a module into a container. +import { inject, Module } from 'ginject'; + +// Defining a context of dependencies +type Context = { + group: { + service: Service // any JS type, e.g. a class + } +} + +// A module contains nested groups (optional) and service factories +const module: Module = { + group: { + // a service factory of type Factory + service: (ctx: Context) => new Service(ctr) + } +} + +// A container of type Container> +const container = inject(module); + +// Services can be obtained from the container +const service = container.group.service; ``` -TODO(@@dd): use terminology of [Google Juice](https://github.com/google/guice) and [Inversify](https://inversify.io) +Factories may return -## Module Definitions +* constants/singletons (primitive values, functions, arrays, classes) +* providers `() => T`, where `T` may be any type -### Factories +### Eager vs lazy initialization -* constants -* singletons -* providers -* action handlers +```diff +- import { inject, Module } from 'ginject'; ++ import { eager, inject, Module } from 'ginject'; -```ts -const ctr = inject({ - hi: () => 'Hi', - sayHi: () => (name: string) => { - console.log(`Starting: ${new Date().getTime()}`); - const greet = `${ctr.hi} ${name}!`; - console.log(`Finished: ${new Date().getTime()}`); - return greet; +const module: Module = { + group: { +- service: (ctx: Context) => new Service(ctr) ++ service: eager((ctx: Context) => new Service(ctr)) } -}); +} ``` -### Lazy vs Eager Initialization +A dependency `container.group.service` is _lazily_ initialized on the first access. +When a factory is turned _eager_, the dependency is initialized on the `inject` call. -## Rebinding Dependencies +### Rebinding dependencies -### Cyclic Dependencies +TODO(@@dd): rebinding dependencies -### Asynchronous Factories +### Partial modules -### Ad-Hoc Modules +TODO(@@dd): partial modules -### Factoring out Modules +### Action handlers -## Type Safety +```diff +const module: Module = { + group: { + service: (ctx: Context) => { ++ console.log('Before'); + const service = new Service(ctr); ++ console.log('After'); + return service; + } + } +} +``` + +### Cyclic Dependencies -### Validation +### Asynchronous Factories ## Ginject vs Inversify diff --git a/src/index.ts b/src/index.ts index eb1179eb..7b6b2df8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,3 +6,32 @@ export { eager, inject } from './inject'; export { Container, Factory, Module } from './types'; + +import { inject } from './inject' + +type Container = { + group: { + service: (ctr: Container) => Service + } +} + +// A service is a dependency, it may be any JS value +class Service { + constructor(ctr: Container) {} +} + +// A factory creates a dependency +const factory = (ctr: Container) => new Service(ctr); + +// A module contains nested groups (optional) and service factories +const module = { + group: { + service: factory + } +} + +// Inject turns a module into a container +const container = inject(module); + +// Services can be obtained from the container +const service = container.group.service; From 61997628bcc22412d79933d52e30342e769dbf0d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 09:29:52 +0000 Subject: [PATCH 048/159] docs --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index 0ff1f9b8..bac4c230 100644 --- a/README.md +++ b/README.md @@ -130,8 +130,3 @@ const module: Module = { | requirements | none | decorators / reflect-metadata | | style | functional | imperative | | API surface area | one function | non-trivial | - -* Size / Zero Dependencies -* API Surface Area -* Non-Intrusive / Self Contained -* Typesafe From 7ea8cf825775fd7a0c23413594335c8355287361 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 09:30:36 +0000 Subject: [PATCH 049/159] docs --- README.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bac4c230..b3e25117 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,16 @@
-Ginject is a ... +Ginject is a TODO(@@dd): short description + +| | ginject | inversify | +|------------------|:------------:|:-----------------------------:| +| minified | 1 KB | 45 KB | +| gzipped | 0.5 KB | 11 KB | +| typesafe | ✅ | ❌ | +| requirements | none | decorators / reflect-metadata | +| style | functional | imperative | +| API surface area | one function | non-trivial | ## Quickstart @@ -119,14 +128,3 @@ const module: Module = { ### Cyclic Dependencies ### Asynchronous Factories - -## Ginject vs Inversify - -| | ginject | inversify | -|------------------|:------------:|:-----------------------------:| -| minified | 1 KB | 45 KB | -| gzipped | 0.5 KB | 11 KB | -| typesafe | ✅ | ❌ | -| requirements | none | decorators / reflect-metadata | -| style | functional | imperative | -| API surface area | one function | non-trivial | From d136ec2b3d4f177074dde862bef7c360ab896528 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 09:34:17 +0000 Subject: [PATCH 050/159] docs --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b3e25117..493b54ef 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@
- [![npm](https://img.shields.io/npm/v/ginject)](https://www.npmjs.com/package/ginject) - [![Build](https://github.com/langium/ginject/actions/workflows/build.yml/badge.svg)](https://github.com/langium/ginject/actions/workflows/build.yml) - [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/langium/ginject) +[![npm](https://img.shields.io/npm/v/ginject)](https://www.npmjs.com/package/ginject) +[![Build](https://github.com/langium/ginject/actions/workflows/build.yml/badge.svg)](https://github.com/langium/ginject/actions/workflows/build.yml) +[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/langium/ginject)
@@ -19,6 +19,8 @@ Ginject is a TODO(@@dd): short description +
+ | | ginject | inversify | |------------------|:------------:|:-----------------------------:| | minified | 1 KB | 45 KB | @@ -28,6 +30,8 @@ Ginject is a TODO(@@dd): short description | style | functional | imperative | | API surface area | one function | non-trivial | +
+ ## Quickstart Add _ginject_ to your project From b5fe99826a7f7ddf79b445123674a53d657e4a12 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 14:46:26 +0000 Subject: [PATCH 051/159] badges --- .github/workflows/{actions.yml => build.yml} | 0 README.md | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{actions.yml => build.yml} (100%) diff --git a/.github/workflows/actions.yml b/.github/workflows/build.yml similarity index 100% rename from .github/workflows/actions.yml rename to .github/workflows/build.yml diff --git a/README.md b/README.md index 493b54ef..3dcee755 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@
-[![npm](https://img.shields.io/npm/v/ginject)](https://www.npmjs.com/package/ginject) -[![Build](https://github.com/langium/ginject/actions/workflows/build.yml/badge.svg)](https://github.com/langium/ginject/actions/workflows/build.yml) -[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/langium/ginject) +[![npm version](https://img.shields.io/npm/v/ginject?logo=npm&style=flat-square)](https://www.npmjs.com/package/ginject/) +[![build](https://img.shields.io/github/workflow/status/langium/ginject/Build/main?logo=github&style=flat-square)](https://github.com/langium/ginject/actions/workflows/build.yml) +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/langium/ginject)
@@ -23,8 +23,8 @@ Ginject is a TODO(@@dd): short description | | ginject | inversify | |------------------|:------------:|:-----------------------------:| -| minified | 1 KB | 45 KB | -| gzipped | 0.5 KB | 11 KB | +| minified | [![minified size](https://img.shields.io/bundlephobia/min/ginject?style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minified size](https://img.shields.io/bundlephobia/min/inversify?style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | +| gzipped | [![minzipped size](https://img.shields.io/bundlephobia/minzip/ginject?style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minzipped size](https://img.shields.io/bundlephobia/minzip/inversify?style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | | typesafe | ✅ | ❌ | | requirements | none | decorators / reflect-metadata | | style | functional | imperative | From 10693e803d79fccea4b8d3d56f0e2565dfed3dee Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 14:55:24 +0000 Subject: [PATCH 052/159] ci --- .github/workflows/{build.yml => actions.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{build.yml => actions.yml} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/actions.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/actions.yml From 3a16cb5270ccbf163b76e0a38b1c5f272fe08805 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 15:01:45 +0000 Subject: [PATCH 053/159] docs --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3dcee755..38643216 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,6 @@ -
- -Ginject is a TODO(@@dd): short description -
| | ginject | inversify | @@ -32,6 +28,10 @@ Ginject is a TODO(@@dd): short description
+
+ +Ginject is a TODO(@@dd): short description + ## Quickstart Add _ginject_ to your project From 730d0014547ff1c6b3106f1ed9234d6d8f10832e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 17:21:40 +0200 Subject: [PATCH 054/159] Rename actions.yml to build.yml --- .github/workflows/{actions.yml => build.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{actions.yml => build.yml} (100%) diff --git a/.github/workflows/actions.yml b/.github/workflows/build.yml similarity index 100% rename from .github/workflows/actions.yml rename to .github/workflows/build.yml From fda449f841eb885a030e6aca0028020d0f24595c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 15:21:58 +0000 Subject: [PATCH 055/159] docs --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38643216..b5ce6e5b 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,14 @@ +

+
| | ginject | inversify | |------------------|:------------:|:-----------------------------:| -| minified | [![minified size](https://img.shields.io/bundlephobia/min/ginject?style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minified size](https://img.shields.io/bundlephobia/min/inversify?style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | -| gzipped | [![minzipped size](https://img.shields.io/bundlephobia/minzip/ginject?style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minzipped size](https://img.shields.io/bundlephobia/minzip/inversify?style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | +| minified | [![minified size](https://img.shields.io/bundlephobia/min/ginject?label=&style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minified size](https://img.shields.io/bundlephobia/min/inversify?label=&style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | +| minzipped | [![minzipped size](https://img.shields.io/bundlephobia/minzip/ginject?label=&style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minzipped size](https://img.shields.io/bundlephobia/minzip/inversify?label=&style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | | typesafe | ✅ | ❌ | | requirements | none | decorators / reflect-metadata | | style | functional | imperative | @@ -28,8 +30,12 @@
+

+
+

+ Ginject is a TODO(@@dd): short description ## Quickstart From d146d3ba4195da58833a707a5241f867bac8b0f1 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 15:34:36 +0000 Subject: [PATCH 056/159] docs --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b5ce6e5b..56b72101 100644 --- a/README.md +++ b/README.md @@ -17,27 +17,25 @@

+Ginject is a TODO(@@dd): short description + +

+
-| | ginject | inversify | -|------------------|:------------:|:-----------------------------:| +| | ginject | inversify | +|------------------|:----------:|:-----------:| | minified | [![minified size](https://img.shields.io/bundlephobia/min/ginject?label=&style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minified size](https://img.shields.io/bundlephobia/min/inversify?label=&style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | -| minzipped | [![minzipped size](https://img.shields.io/bundlephobia/minzip/ginject?label=&style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minzipped size](https://img.shields.io/bundlephobia/minzip/inversify?label=&style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | -| typesafe | ✅ | ❌ | -| requirements | none | decorators / reflect-metadata | -| style | functional | imperative | -| API surface area | one function | non-trivial | +| minzipped | [![minzipped size](https://img.shields.io/bundlephobia/minzip/ginject?label=&style=flat-square)](https://bundlephobia.com/result?p=ginject@latest) | [![minzipped size](https://img.shields.io/bundlephobia/minzip/inversify?label=&style=flat-square)](https://bundlephobia.com/result?p=inversify@latest) | +| typesafe | ✅ | ❌ | +| requirements | none | decorators | +| style | functional | imperative | +| API surface area | tiny | non-trivial |


-
- -

- -Ginject is a TODO(@@dd): short description - ## Quickstart Add _ginject_ to your project From b8e29fd9ff2dd92e027588a34daa4229d4144246 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 17:05:55 +0000 Subject: [PATCH 057/159] docs --- README.md | 62 ++++++++++++++++++++++++++-------------------------- package.json | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 56b72101..1c1b4257 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Ginject Logo

- Featherweight and typesafe dependency injection + Dependency injection done right.

@@ -15,11 +15,15 @@ -

+
-Ginject is a TODO(@@dd): short description +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to remove runtime errors. -

+The concept of a central module definition is heavily inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. + +Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are only a few features to mention. + +
@@ -34,82 +38,78 @@ Ginject is a TODO(@@dd): short description
-

+
## Quickstart -Add _ginject_ to your project +The first step is to add **ginject** to your application. ```sh npm i ginject ``` -Start to decouple your application +Bascially, the only thing needed is to define **modules** of **factories** and finally call **inject**. The resulting **container** provides concrete **instances**. ```ts import { inject } from 'ginject'; // create an inversion of control container -const ctr = inject({ +const container = inject({ hi: () => 'Hi', - sayHi: () => (name: string) => `${ctr.hi} ${name}!` + sayHi: () => (name: string) => `${container.hi} ${name}!` }); // prints 'Hi Ginject!' -console.log(ctr.sayHi('Ginject')); +console.log(container.sayHi('Ginject')); ``` ## API ### Terminology +The **inject** function is turning **modules** into a **container**. A module is a plain vanilla JS object, composed of nested **groups** and **dependency factories**. Factories may return any JS value, e.g. constants, singletons and providers. Unlike [Inversify](https://github.com/inversify/InversifyJS), there is no need to decorate classes. + ```ts import { inject, Module } from 'ginject'; -// Defining a context of dependencies +// Defining a _context_ of dependencies type Context = { group: { - service: Service // any JS type, e.g. a class + value: Value // any JS type, here a class } } -// A module contains nested groups (optional) and service factories +// A _module_ contains nested _groups_ (optional) and _factories_ const module: Module = { group: { - // a service factory of type Factory - service: (ctx: Context) => new Service(ctr) + // a factory of type Factory + value: (ctx: Context) => new Value(ctx) } } -// A container of type Container> +// A _container_ of type Container> = Context const container = inject(module); -// Services can be obtained from the container -const service = container.group.service; +// Values can be obtained from the container +const value = container.group.value; ``` -Factories may return - -* constants/singletons (primitive values, functions, arrays, classes) -* providers `() => T`, where `T` may be any type - ### Eager vs lazy initialization +A dependency `container.group.value` is _lazily_ initialized when first accessed on the container. Turn a factory _eager_ to initialize the dependency at the time of the `inject` call. + ```diff - import { inject, Module } from 'ginject'; + import { eager, inject, Module } from 'ginject'; const module: Module = { group: { -- service: (ctx: Context) => new Service(ctr) -+ service: eager((ctx: Context) => new Service(ctr)) +- value: (ctx: Context) => new Value(ctx) ++ value: eager((ctx: Context) => new Value(ctx)) } } ``` -A dependency `container.group.service` is _lazily_ initialized on the first access. -When a factory is turned _eager_, the dependency is initialized on the `inject` call. - ### Rebinding dependencies TODO(@@dd): rebinding dependencies @@ -123,11 +123,11 @@ TODO(@@dd): partial modules ```diff const module: Module = { group: { - service: (ctx: Context) => { + value: (ctx) => { + console.log('Before'); - const service = new Service(ctr); + const value = new Value(ctx); + console.log('After'); - return service; + return value; } } } diff --git a/package.json b/package.json index eb54d416..5e36954c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ginject", "version": "0.0.0", - "description": "Ginject is a featherweight and typesafe dependency injection library for decoupling JavaScript and Node.js apps.", + "description": "Dependency injection done right.", "keywords": [ "inject", "dependency injection", From 0707e1fab67e7d4d380d978902daf461a6df1559 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 17:08:53 +0000 Subject: [PATCH 058/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c1b4257..fd07f110 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ **Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to remove runtime errors. -The concept of a central module definition is heavily inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. +The concept of a central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are only a few features to mention. From c2900efb4d1a11f357c0394766d2ce500553fff1 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 19:20:30 +0000 Subject: [PATCH 059/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd07f110..630acb8d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ **Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to remove runtime errors. -The concept of a central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. +The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are only a few features to mention. From 267c2e525455719d9d581b4b7e08acadaeaecec8 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Wed, 5 Oct 2022 19:22:54 +0000 Subject: [PATCH 060/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 630acb8d..adcc53c8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ **Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to remove runtime errors. -The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **Ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. +The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are only a few features to mention. From 4a3e9c4fad9ac39f376e9ccc59396eaf022ada61 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 07:56:59 +0000 Subject: [PATCH 061/159] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index adcc53c8..a14bd1fc 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,11 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to remove runtime errors. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. -Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are only a few features to mention. +Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are just a few of the features worth mentioning.
From 63902a6d922b85b99c77f23bf5ca96c8c7b9f3a1 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 07:59:08 +0000 Subject: [PATCH 062/159] cleanup --- src/index.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7b6b2df8..eb1179eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,32 +6,3 @@ export { eager, inject } from './inject'; export { Container, Factory, Module } from './types'; - -import { inject } from './inject' - -type Container = { - group: { - service: (ctr: Container) => Service - } -} - -// A service is a dependency, it may be any JS value -class Service { - constructor(ctr: Container) {} -} - -// A factory creates a dependency -const factory = (ctr: Container) => new Service(ctr); - -// A module contains nested groups (optional) and service factories -const module = { - group: { - service: factory - } -} - -// Inject turns a module into a container -const container = inject(module); - -// Services can be obtained from the container -const service = container.group.service; From b4b142bd18ca89ffc37e5d1f26a073adb9e8259d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 12:05:36 +0000 Subject: [PATCH 063/159] refactoring --- src/inject.ts | 46 +++++++++++++++------------------------------ src/types.ts | 5 +++-- test/inject.test.ts | 7 ++----- test/merge.test.ts | 2 +- 4 files changed, 21 insertions(+), 39 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index d4703aa1..aa530b10 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -33,41 +33,25 @@ function initializeEagerServices>(module: M, contai }); } -function proxify(module: Module, container?: C, path?: string): T { +function proxify(module: Module, container?: C, path: string = ''): T { + const resolve = (obj: any, prop: PropertyKey, proxy: T) => { + const name = path + '[' + String(prop) + ']'; + if (obj[prop] === isRequested) { + throw new Error('Cyclic dependency ' + name + '. See https://github.com/langium/ginject#cyclic-dependencies'); + } + const ctx = container || proxy; + const val = (module as any)[prop]; + return (prop in obj) ? obj[prop] : (prop in module) ? ( + obj[prop] = isRequested, + obj[prop] = (typeof val === 'function') ? val(ctx) : proxify(val, ctx, name) + ) : undefined; + }; const proxy: any = new Proxy({}, { deleteProperty: () => false, - get: (target, prop) => resolve(target, prop, module, container || proxy, path), - getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, module, container || proxy, path), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in + get: resolve, + getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, proxy), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in has: (_, prop) => prop in module, // used by ..in.. ownKeys: () => Reflect.ownKeys(module) }); return proxy; } - -function resolve, M extends Module, P extends PropertyKey>(obj: T, prop: P, module: M, container: C, parentPath?: string): T[P] | undefined { - const path = (parentPath ? '.' : '') + String(prop); - if (prop in obj) { - // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) - if (obj[prop] instanceof Error) { - throw new Error('Construction failure: ' + path); - } - if (obj[prop] === isRequested) { - // TODO(@@dd): list all involved dependencies? this may be misleading in the case of transitive dependencies - throw new Error('Cycle detected. Please make ' + path + ' lazy. See https://github.com/langium/ginject#cyclic-dependencies'); - } - return obj[prop]; - } else if (prop in module) { - const value = (module as any)[prop]; - (obj as any)[prop] = isRequested; - try { - obj[prop] = (typeof value === 'function') ? value(container) : proxify(value, container, (path ? '.' : '')); - } catch (error) { - // TODO(@@dd): create an error that isn't instanceof Error (which could be a valid service) - (obj as any)[prop] = error instanceof Error ? error : undefined; - throw error; - } - return obj[prop]; - } else { - return undefined; - } -} diff --git a/src/types.ts b/src/types.ts index 2a151c17..f98b566a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -25,7 +25,6 @@ type EmptyObject = { }; export type MergeModules[]> = - M extends [] ? EmptyObject: M extends [Head, ...Tail] ? ( Tail extends [] ? Head : Tail extends Module[] ? Merge>, Head> : @@ -48,7 +47,9 @@ type MergeObjects, T extends Record; -type Extends = +// TODO(@@dd): Extends +type Extends = T1 extends T2 ? T1 : never; +type Extends2 = T1 extends T2 ? T1 : T1 extends Obj ? T2 extends Obj ? never : never : T1 extends unknown[] ? T2 extends unknown[] ? T1 extends T2 ? T1 : [Extends, Head>, ...Extends, Tail>] : never : diff --git a/test/inject.test.ts b/test/inject.test.ts index 25ab149d..f292277c 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -195,9 +195,6 @@ describe('The inject function', () => { expect(() => result.second ).toThrowError('construction error'); - expect(() => - result.second - ).toThrowError(/Construction failure/); //where cause is Error('construction error') }); it('should work with objects', () => { @@ -248,7 +245,7 @@ describe('The inject function', () => { } expect(() => inject({ a: (ctr: API) => new A(ctr), b: (ctr: API) => new B(ctr) }).a - ).toThrowError('Cycle detected. Please make a lazy. See https://github.com/langium/ginject#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://github.com/langium/ginject#cyclic-dependencies'); }); it('should throw when cyclic dependency is accessed during factory function call', () => { @@ -257,7 +254,7 @@ describe('The inject function', () => { const createB = ({ a }: API) => ({ b: a.a }); expect(() => inject({ a: createA, b: createB }).a - ).toThrowError('Cycle detected. Please make a lazy. See https://github.com/langium/ginject#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://github.com/langium/ginject#cyclic-dependencies'); }); it('should merge groups', () => { diff --git a/test/merge.test.ts b/test/merge.test.ts index 7a51ceb6..deb2501a 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -805,7 +805,7 @@ describe('type Merge', () => { describe('type MergeArray', () => { it('should merge empty array', () => { - tsafeAssert, {}>>(); + tsafeAssert, never>>(); }); it('should merge array with one element', () => { From 42a61eacf303515209e50f411454fd9ca550c5ed Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 12:54:15 +0000 Subject: [PATCH 064/159] types --- src/types.ts | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/types.ts b/src/types.ts index f98b566a..68543551 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,26 +10,17 @@ export type Module = { export type Factory = (ctr: C) => T; -// TODO(@@dd): whether to infer container type C of Module or not? export type Container = M extends Module[] ? Container> : - M extends EmptyObject ? EmptyObject : - // TODO(@@dd): handle functions first because classes are objects and function - M extends Module ? Validate : - never; - -type Validate = T; // TODO(@@dd): validate factory arguments - -type EmptyObject = { - [key: PropertyKey]: never -}; + M extends Module ? T : + never; export type MergeModules[]> = - M extends [Head, ...Tail] ? ( - Tail extends [] ? Head : - Tail extends Module[] ? Merge>, Head> : - never - ) : never; + M extends [Head, ...Tail] ? ( + Tail extends [] ? Head : + Tail extends Module[] ? Merge>, Head> : + never + ) : never; export type Merge = Or, Is> extends true ? never : @@ -47,8 +38,8 @@ type MergeObjects, T extends Record; -// TODO(@@dd): Extends type Extends = T1 extends T2 ? T1 : never; +// TODO(@@dd): type Extends2 = T1 extends T2 ? T1 : T1 extends Obj ? T2 extends Obj ? never : never : From d2dfcd8f8dfd33747b04dff00d3918bfe263713c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 13:34:52 +0000 Subject: [PATCH 065/159] types --- src/inject.ts | 4 ++-- src/types.ts | 32 +++++++------------------------- test/inject.test.ts | 8 ++++---- 3 files changed, 13 insertions(+), 31 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index aa530b10..19639535 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -22,7 +22,7 @@ export function eager(factory: Factory): Factory { return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); } -function initializeEagerServices>(module: M, container: C): void { +function initializeEagerServices>(module: M, container: any): void { keys(module).forEach(key => { const value = module[key]; if (typeof value === 'function') { @@ -33,7 +33,7 @@ function initializeEagerServices>(module: M, contai }); } -function proxify(module: Module, container?: C, path: string = ''): T { +function proxify(module: Module, container?: C, path: string = ''): T { const resolve = (obj: any, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { diff --git a/src/types.ts b/src/types.ts index 68543551..0eb7caca 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,21 +4,21 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Module = { - [K in keyof T]: Module | Factory +export type Module = { + [K in keyof T]: Module | Factory }; export type Factory = (ctr: C) => T; export type Container = - M extends Module[] ? Container> : - M extends Module ? T : + M extends Module[] ? Container> : + M extends Module ? T : never; -export type MergeModules[]> = +export type MergeModules = M extends [Head, ...Tail] ? ( Tail extends [] ? Head : - Tail extends Module[] ? Merge>, Head> : + Tail extends Module[] ? Merge>, Head> : never ) : never; @@ -29,7 +29,7 @@ export type Merge = // TODO(@@dd): handle functions first because classes are objects and function S extends Record ? T extends Record ? MergeObjects : never - : T extends Record ? never : Extends; + : T extends Record ? never : (S extends T ? S : never); type MergeObjects, T extends Record> = Union<{ @@ -38,24 +38,6 @@ type MergeObjects, T extends Record; -type Extends = T1 extends T2 ? T1 : never; -// TODO(@@dd): -type Extends2 = - T1 extends T2 ? T1 : - T1 extends Obj ? T2 extends Obj ? never : never : - T1 extends unknown[] ? T2 extends unknown[] ? T1 extends T2 ? T1 : [Extends, Head>, ...Extends, Tail>] : never : - T1 extends ((...args: any[]) => infer R1) ? T2 extends ((...args: any[]) => infer R2) ? () => Extends : never : // TODO(@@dd): consider argument types - T1 extends boolean ? T2 extends boolean ? boolean : never : - T1 extends number ? T2 extends number ? number : never : - T1 extends string ? T2 extends string ? string : never : - never; - -type Obj = - T extends Record ? ( - T extends (...args: any[]) => any ? never : - T extends unknown[] ? never : T - ) : never; - type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index f292277c..2511090a 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -324,7 +324,7 @@ describe('The inject function', () => { it('should infer right container type given an ad-hoc module', () => { const testee = inject({ hi: () => 'Hi!', - sayHi: (ctr) => () => { + sayHi: (ctr: { hi: '' }) => () => { tsafeAssert string @@ -409,7 +409,7 @@ describe('The inject function', () => { const container = inject({ a: () => 1, b: { - c: () => () => '' + c: () => () => '' as string }, d: { e: () => new A() @@ -417,14 +417,14 @@ describe('The inject function', () => { }, { a: () => 2, b: { - c: () => () => 'hallo' + c: () => () => 'hallo' as string }, d: { e: () => new B() } }, { b: { - c: () => () => 'salut' + c: () => () => 'salut' as string } }); tsafeAssert>(); From 89912058124809696e0f657b6492f50caa853db0 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 13:52:02 +0000 Subject: [PATCH 066/159] cleanup --- src/inject.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 19639535..bdd1b5af 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -34,7 +34,7 @@ function initializeEagerServices>(module: M, container: a } function proxify(module: Module, container?: C, path: string = ''): T { - const resolve = (obj: any, prop: PropertyKey, proxy: T) => { + const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { throw new Error('Cyclic dependency ' + name + '. See https://github.com/langium/ginject#cyclic-dependencies'); @@ -48,8 +48,8 @@ function proxify(module: Module, container?: C, path: string = ''): T { }; const proxy: any = new Proxy({}, { deleteProperty: () => false, - get: resolve, - getOwnPropertyDescriptor: (target, prop) => (resolve(target, prop, proxy), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in + get, + getOwnPropertyDescriptor: (target, prop) => (get(target, prop, proxy), Object.getOwnPropertyDescriptor(target, prop)), // used by for..in has: (_, prop) => prop in module, // used by ..in.. ownKeys: () => Reflect.ownKeys(module) }); From 2479049f02b15b12a3d386f173439be54ee49b9f Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 15:47:07 +0000 Subject: [PATCH 067/159] types --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 0eb7caca..158439aa 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,8 +4,8 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Module = { - [K in keyof T]: Module | Factory +export type Module = { + [K in keyof T]: Module | Factory }; export type Factory = (ctr: C) => T; From 00f54b6713e7a05bcdcc76bde837a02192e81795 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 15:48:47 +0000 Subject: [PATCH 068/159] types --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 158439aa..5246b416 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,7 +5,7 @@ ******************************************************************************/ export type Module = { - [K in keyof T]: Module | Factory + [K in keyof T]: Module | Factory }; export type Factory = (ctr: C) => T; From 085472bfb0ed9cc2eed22b2a49a9b4abeaaf3511 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 15:50:28 +0000 Subject: [PATCH 069/159] types --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 5246b416..9b29ff39 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,7 +12,7 @@ export type Factory = (ctr: C) => T; export type Container = M extends Module[] ? Container> : - M extends Module ? T : + M extends Module ? T : never; export type MergeModules = From 914921156edc63c76e54a1bc5d00ceaaceb7cf36 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 17:09:32 +0000 Subject: [PATCH 070/159] types --- src/inject.ts | 2 +- src/types.ts | 2 +- test/merge.test.ts | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index bdd1b5af..b732f34f 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -11,7 +11,7 @@ const isEager = Symbol(); const isRequested = Symbol(); -export function inject[]>(...modules: M): Container { +export function inject(...modules: M): Container { const module = modules.reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); diff --git a/src/types.ts b/src/types.ts index 9b29ff39..da62b7a8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,7 +4,7 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Module = { +export type Module = { [K in keyof T]: Module | Factory }; diff --git a/test/merge.test.ts b/test/merge.test.ts index deb2501a..012da97f 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -809,11 +809,11 @@ describe('type MergeArray', () => { }); it('should merge array with one element', () => { - tsafeAssert, { a: 1 }>>(); + tsafeAssert 1 }]>, { a: () => 1 }>>(); }); it('should merge array with two elements', () => { - tsafeAssert, { a: 1, b: true }>>(); + tsafeAssert 1 }, { b: () => true }]>, { a: () => 1, b: () => true }>>(); }); it('should merge array with three elements', () => { @@ -822,14 +822,14 @@ describe('type MergeArray', () => { b = 1 } type Input = [ - { a: A, b: boolean, c: number, d: 'a' }, - { b: true, d: string }, - { a: B, c: 1 } + { a: () => A, b: () => boolean, c: () => number, d: () => 'a' }, + { b: () => true, d: () => string }, + { a: () => B, c: () => 1 } ]; type Expected = { - a: B, - b: true, - c: 1, + a: () => B, + b: () => true, + c: () => 1, d: never }; tsafeAssert, Expected>>(); @@ -841,19 +841,19 @@ describe('type MergeArray', () => { b = 1 } type Input = [ - { a: { b: { c: A }, d: Fn }, e: number }, + { a: { b: { c: () => A }, d: Fn }, e: () => number }, { a: { d: () => void } }, - { a: { b: { c: B } } }, - { e: 1 } + { a: { b: { c: () => B } } }, + { e: () => 1 } ]; type Expected = { a: { b: { - c: B + c: () => B }, d: () => void }, - e: 1 + e: () => 1 }; tsafeAssert, Expected>>(); }); From ed25dbffe4b50d47be2b0f3cd19936e461d40ac1 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 17:43:16 +0000 Subject: [PATCH 071/159] tests --- test/merge.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/merge.test.ts b/test/merge.test.ts index 012da97f..96f3ec0b 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -858,6 +858,15 @@ describe('type MergeArray', () => { tsafeAssert, Expected>>(); }); + it('should not merge non-modules', () => { + type Input = [ + { a: number }, // intentionally no factory functions! + { b: string } + ]; + // @ts-expect-error + type T = MergeModules; + }); + }); describe('merge', () => { From ce359d93ead6c74d97aac2c59651918e7bd15e87 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 19:51:09 +0200 Subject: [PATCH 072/159] tests & types --- src/types.ts | 6 +++--- test/inject.test.ts | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index da62b7a8..fa539e48 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,15 +4,15 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Module = { - [K in keyof T]: Module | Factory +export type Module = { + [K in keyof T]: Module | Factory // TODO(@@dd): use naked type instead of any? }; export type Factory = (ctr: C) => T; export type Container = M extends Module[] ? Container> : - M extends Module ? T : + M extends Module ? T : never; export type MergeModules = diff --git a/test/inject.test.ts b/test/inject.test.ts index 2511090a..5e07bf1f 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -149,6 +149,21 @@ describe('A cyclic dependency', () => { describe('The dependency initialization', () => { + it('should not inject null', () => { + // @ts-expect-error + inject(null); + }); + + it('should not inject true', () => { + // @ts-expect-error + inject(true); + }); + + it('should not inject object without factory', () => { + // @ts-expect-error + inject({ a: 1 }); + }); + it('should be lazy by default', () => { let actual = false; inject({ p: () => { actual = true; }}); From 5eae0784f2cc1cc6ed349425a2dda7769f45a84a Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 17:54:05 +0000 Subject: [PATCH 073/159] tests --- test/inject.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 5e07bf1f..8e96e8b3 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -150,8 +150,10 @@ describe('A cyclic dependency', () => { describe('The dependency initialization', () => { it('should not inject null', () => { - // @ts-expect-error - inject(null); + expect(() => { + // @ts-expect-error + inject(null); + }).toThrow(); }); it('should not inject true', () => { From 96078cefd9cef22ea4efbea2516bdb0693710d69 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 21:53:53 +0000 Subject: [PATCH 074/159] generalized MergeModules to MergeArray --- src/types.ts | 6 +++--- test/merge.test.ts | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/types.ts b/src/types.ts index fa539e48..8bbf9c50 100644 --- a/src/types.ts +++ b/src/types.ts @@ -11,14 +11,14 @@ export type Module = { export type Factory = (ctr: C) => T; export type Container = - M extends Module[] ? Container> : + M extends Module[] ? Container> : M extends Module ? T : never; -export type MergeModules = +export type MergeArray = M extends [Head, ...Tail] ? ( Tail extends [] ? Head : - Tail extends Module[] ? Merge>, Head> : + Tail extends unknown[] ? Merge>, Head> : never ) : never; diff --git a/test/merge.test.ts b/test/merge.test.ts index 96f3ec0b..4a86498e 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -7,7 +7,7 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { merge } from '../src/merge'; -import { Merge, MergeModules } from '../src/types'; +import { Merge, MergeArray } from '../src/types'; type Fn = (...args: any[]) => any; @@ -805,15 +805,15 @@ describe('type Merge', () => { describe('type MergeArray', () => { it('should merge empty array', () => { - tsafeAssert, never>>(); + tsafeAssert, never>>(); }); it('should merge array with one element', () => { - tsafeAssert 1 }]>, { a: () => 1 }>>(); + tsafeAssert 1 }]>, { a: () => 1 }>>(); }); it('should merge array with two elements', () => { - tsafeAssert 1 }, { b: () => true }]>, { a: () => 1, b: () => true }>>(); + tsafeAssert 1 }, { b: () => true }]>, { a: () => 1, b: () => true }>>(); }); it('should merge array with three elements', () => { @@ -832,7 +832,7 @@ describe('type MergeArray', () => { c: () => 1, d: never }; - tsafeAssert, Expected>>(); + tsafeAssert, Expected>>(); }); it('should deep merge array with three elements', () => { @@ -855,7 +855,7 @@ describe('type MergeArray', () => { }, e: () => 1 }; - tsafeAssert, Expected>>(); + tsafeAssert, Expected>>(); }); it('should not merge non-modules', () => { From 88f3f47fcf2039f15ead761a17bc06f88d3c7d84 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 22:40:25 +0000 Subject: [PATCH 075/159] reflect container --- src/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/types.ts b/src/types.ts index 8bbf9c50..83c49a44 100644 --- a/src/types.ts +++ b/src/types.ts @@ -47,3 +47,15 @@ type Is = (() => T extends T2 ? true : false) extends () => T exte type Or = C1 extends true ? true : C2 extends true ? true : false; type Union = T extends Record ? { [K in keyof T]: T[K] } : T; + +export type ReflectContainer = Union + ? Union any>>> & ReflectContainer>>>>> + : unknown>; + +type FunctionArgs = T[keyof T] extends (arg0: infer A) => any ? A : never; + +type PickByValue = Pick; + +type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never + +type Values = T[keyof T]; From 0a6edff9692d2d4dbfa650487205e9975e91e761 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 23:13:50 +0000 Subject: [PATCH 076/159] types --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 83c49a44..d8717e68 100644 --- a/src/types.ts +++ b/src/types.ts @@ -31,7 +31,7 @@ export type Merge = ? T extends Record ? MergeObjects : never : T extends Record ? never : (S extends T ? S : never); -type MergeObjects, T extends Record> = +type MergeObjects = Union<{ [K in keyof S | keyof T]: K extends keyof S ? (K extends keyof T ? Merge : S[K]) @@ -49,7 +49,7 @@ type Or = C1 extends true ? true : C2 ex type Union = T extends Record ? { [K in keyof T]: T[K] } : T; export type ReflectContainer = Union - ? Union any>>> & ReflectContainer>>>>> + ? MergeObjects any>>, ReflectContainer>>>>> : unknown>; type FunctionArgs = T[keyof T] extends (arg0: infer A) => any ? A : never; From 9e25889a889c1847585cdb8c04c0d74dca0eb5d8 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 6 Oct 2022 23:27:24 +0000 Subject: [PATCH 077/159] validate container --- src/types.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index d8717e68..bd6d500e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,9 +12,11 @@ export type Factory = (ctr: C) => T; export type Container = M extends Module[] ? Container> : - M extends Module ? T : + M extends Module ? Validate> : never; +type Validate = T extends C ? T : never; + export type MergeArray = M extends [Head, ...Tail] ? ( Tail extends [] ? Head : @@ -48,9 +50,9 @@ type Or = C1 extends true ? true : C2 ex type Union = T extends Record ? { [K in keyof T]: T[K] } : T; -export type ReflectContainer = Union +export type ReflectContainer = T extends Record ? MergeObjects any>>, ReflectContainer>>>>> - : unknown>; + : unknown; type FunctionArgs = T[keyof T] extends (arg0: infer A) => any ? A : never; From 84da9eaa6e2c6372f4ed8c615cad94d4eb4f903f Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 03:30:57 +0000 Subject: [PATCH 078/159] inject argument validation --- src/inject.ts | 11 ++++++----- src/types.ts | 22 +++++++++++++++------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index b732f34f..5030233c 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -5,21 +5,22 @@ ******************************************************************************/ import { keys, merge } from "./merge"; -import { Module, Container, Factory } from "./types"; +import { Module, Container, Factory, Validate } from "./types"; const isEager = Symbol(); const isRequested = Symbol(); -export function inject(...modules: M): Container { - const module = modules.reduce(merge, {}); +// @ts-expect-error Validate is no array +export function inject(...modules: Validate): Container { + const module = (modules as Module[]).reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); return container; } -export function eager(factory: Factory): Factory { - return (isEager in factory) ? factory : Object.assign((ctr: C) => factory(ctr), { [isEager]: true } ); +export function eager(factory: Factory): typeof factory { + return (isEager in factory) ? factory : Object.assign((ctr: any) => factory(ctr), { [isEager]: true } ); } function initializeEagerServices>(module: M, container: any): void { diff --git a/src/types.ts b/src/types.ts index bd6d500e..07a048ce 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,17 +5,25 @@ ******************************************************************************/ export type Module = { - [K in keyof T]: Module | Factory // TODO(@@dd): use naked type instead of any? + [K in keyof T]: Module | Factory }; -export type Factory = (ctr: C) => T; +export type Factory = (ctr: any) => T; export type Container = M extends Module[] ? Container> : - M extends Module ? Validate> : - never; - -type Validate = T extends C ? T : never; + M extends Module ? + T extends ReflectContainer ? T : never : never; + +export type Validate> = + M extends Module ? + T extends ReflectContainer ? A : { + ginject_error: { + message: 'Missing dependency', + docs: 'https://github.com/langium/ginject#context', + missing_dependencies: M // TODO(@@dd): compute missing dependencies + } + } : never; export type MergeArray = M extends [Head, ...Tail] ? ( @@ -28,7 +36,7 @@ export type Merge = Or, Is> extends true ? never : Or, Is> extends true ? any : Or, Is> extends true ? unknown : - // TODO(@@dd): handle functions first because classes are objects and function + // TODO(@@dd): handle functions first because classes are objects and functions? S extends Record ? T extends Record ? MergeObjects : never : T extends Record ? never : (S extends T ? S : never); From 6a17f7890c6f97024fdb2a2a317b836312fd3561 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 04:04:17 +0000 Subject: [PATCH 079/159] types & tests --- src/inject.ts | 2 +- test/inject.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 5030233c..b486841f 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -20,7 +20,7 @@ export function inject(...modules: Validate) } export function eager(factory: Factory): typeof factory { - return (isEager in factory) ? factory : Object.assign((ctr: any) => factory(ctr), { [isEager]: true } ); + return (isEager in factory) ? factory : Object.assign((ctr: any) => factory(ctr), { [isEager]: true }); } function initializeEagerServices>(module: M, container: any): void { diff --git a/test/inject.test.ts b/test/inject.test.ts index 8e96e8b3..5ce751e5 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -134,7 +134,7 @@ describe('A cyclic dependency', () => { function createCycle(testee: T): API { return inject({ - a: ({ b }) => new A(b, testee), + a: ({ b }: API) => new A(b, testee), b: (ctr: API) => new B(ctr) }); } From 1874cf9899b7d2e3dfe2172203eec5ff442d50ae Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 05:15:56 +0000 Subject: [PATCH 080/159] types --- src/index.ts | 2 +- src/inject.ts | 8 +++++--- src/types.ts | 6 +++--- test/inject.test.ts | 46 ++++++++++++++++++--------------------------- 4 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/index.ts b/src/index.ts index eb1179eb..7e9ac435 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,4 +5,4 @@ ******************************************************************************/ export { eager, inject } from './inject'; -export { Container, Factory, Module } from './types'; +export { Container, Factory, Module, Validate } from './types'; diff --git a/src/inject.ts b/src/inject.ts index b486841f..558388a6 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -5,7 +5,7 @@ ******************************************************************************/ import { keys, merge } from "./merge"; -import { Module, Container, Factory, Validate } from "./types"; +import { Module, Container, Validate, Factory } from "./types"; const isEager = Symbol(); @@ -19,10 +19,12 @@ export function inject(...modules: Validate) return container; } -export function eager(factory: Factory): typeof factory { - return (isEager in factory) ? factory : Object.assign((ctr: any) => factory(ctr), { [isEager]: true }); +export function eager, T>(factory: F): F { + return (isEager in factory) ? factory : Object.assign(((ctr: any) => factory(ctr)) as F, { [isEager]: true }); } +const f: Factory = () => 1 + function initializeEagerServices>(module: M, container: any): void { keys(module).forEach(key => { const value = module[key]; diff --git a/src/types.ts b/src/types.ts index 07a048ce..5d9c1ffe 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,11 +4,11 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Module = { - [K in keyof T]: Module | Factory +export type Module = { + [K in keyof T]: Module | Factory }; -export type Factory = (ctr: any) => T; +export type Factory = (ctx: C) => T; export type Container = M extends Module[] ? Container> : diff --git a/test/inject.test.ts b/test/inject.test.ts index 5ce751e5..1e563532 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -261,7 +261,7 @@ describe('The inject function', () => { constructor({ a }: API) { this.b = a.a; } } expect(() => - inject({ a: (ctr: API) => new A(ctr), b: (ctr: API) => new B(ctr) }).a + inject({ a: (ctx: API) => new A(ctx), b: (ctx: API) => new B(ctx) }).a ).toThrowError('Cyclic dependency [a]. See https://github.com/langium/ginject#cyclic-dependencies'); }); @@ -328,6 +328,7 @@ describe('The inject function', () => { }; const testee = inject(m1, m2, m3); + testee.groupB.groupC.service2 tsafeAssert>(); tsafeAssert>(); @@ -339,17 +340,12 @@ describe('The inject function', () => { }); it('should infer right container type given an ad-hoc module', () => { - const testee = inject({ + const ctr = inject({ hi: () => 'Hi!', - sayHi: (ctr: { hi: '' }) => () => { - tsafeAssert string - }>>(); - return ctr.hi; - } + sayHi: (ctx: { hi: string }) => () => ctr.hi }); - expect(testee.sayHi()).toBe('Hi!'); + tsafeAssert>(); + expect(ctr.sayHi()).toBe('Hi!'); }); it('should infer right container type given an explicit module', () => { @@ -359,32 +355,26 @@ describe('The inject function', () => { }; const module: Module = { hi: () => 'Hi!', - sayHi: (ctr) => () => { - tsafeAssert string - }>>(); - return ctr.hi; - } + sayHi: (ctr) => () => ctr.hi }; - const testee = inject(module); - expect(testee.sayHi()).toBe('Hi!'); + const ctr = inject(module); + tsafeAssert>(); + expect(ctr.sayHi()).toBe('Hi!'); }); it('should overwrite a particular service', () => { - const testee = inject({ + type C = { + hi: string, + sayHi: (ctx: C) => () => string + }; + const ctr = inject({ hi: () => 'Hi!', - sayHi: (ctr) => () => { - tsafeAssert void - }>>(); - return ctr.hi; - } + sayHi: (ctx: C) => () => ctx.hi }, { hi: () => '¡Hola!' }); - expect(testee.sayHi()).toBe('¡Hola!'); + tsafeAssert>(); + expect(ctr.sayHi()).toBe('¡Hola!'); }); it('sould infer the type of factories of mergable modules', () => { From 49cdf7eb7bc60e6b49be0929f5d64a228ba3ed8a Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 05:18:15 +0000 Subject: [PATCH 081/159] types --- src/inject.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 558388a6..9b78ce84 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -19,12 +19,10 @@ export function inject(...modules: Validate) return container; } -export function eager, T>(factory: F): F { +export function eager>(factory: F): F { return (isEager in factory) ? factory : Object.assign(((ctr: any) => factory(ctr)) as F, { [isEager]: true }); } -const f: Factory = () => 1 - function initializeEagerServices>(module: M, container: any): void { keys(module).forEach(key => { const value = module[key]; From 3ca3ad244ee8e4538c0f3c71eb6e460d23d9a5b3 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 06:04:08 +0000 Subject: [PATCH 082/159] cleanup --- test/inject.test.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 1e563532..834b2bbc 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -318,25 +318,21 @@ describe('The inject function', () => { const m3 = { // intentionally not declared as Module groupB: { groupC: { - // container may have an arbitrary type but - // the inject() call will fail for m3 if no module - // exists that provides that container - service2: (ctr: C1) => new B(ctr.groupA.service1) + service2: (ctx: C1) => new B(ctx.groupA.service1) } }, x: () => 1 }; - const testee = inject(m1, m2, m3); - testee.groupB.groupC.service2 + const ctr = inject(m1, m2, m3); - tsafeAssert>(); - tsafeAssert>(); - tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); - expect(testee.groupA.service1).toBeInstanceOf(A); - expect(testee.groupB.groupC.service2).toBeInstanceOf(B); - expect(testee.x).toBe(1); + expect(ctr.groupA.service1).toBeInstanceOf(A); + expect(ctr.groupB.groupC.service2).toBeInstanceOf(B); + expect(ctr.x).toBe(1); }); it('should infer right container type given an ad-hoc module', () => { From 64ecd097e987f334df153e2f33657b4324f770a4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 06:44:42 +0000 Subject: [PATCH 083/159] 100% test coverage --- test/inject.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/inject.test.ts b/test/inject.test.ts index 834b2bbc..7762da89 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -189,6 +189,14 @@ describe('The dependency initialization', () => { expect(actual2).toBeFalsy(); }); + it('should be idempotent when calling eager twice', () => { + const f = () => {}; + const g = eager(f); + const h = eager(g); + expect(g).not.toEqual(f); + expect(eager(g)).toEqual(g); + }); + }); describe('The inject function', () => { From 3e5dca2f6a07cda412d0a0cb73419b5c9ce1fc90 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 06:45:06 +0000 Subject: [PATCH 084/159] 100% test coverage --- test/inject.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 7762da89..f7643afc 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -192,7 +192,6 @@ describe('The dependency initialization', () => { it('should be idempotent when calling eager twice', () => { const f = () => {}; const g = eager(f); - const h = eager(g); expect(g).not.toEqual(f); expect(eager(g)).toEqual(g); }); From dfe82bb460945911f1600623cd6d1ec855db1458 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 06:55:40 +0000 Subject: [PATCH 085/159] tests --- test/inject.test.ts | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index f7643afc..084090c4 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -28,7 +28,7 @@ describe('A dependency type', () => { it('should be function', () => checkType(function a() { })); it('should be lambda', () => checkType(() => { })); - function checkType(value: unknown): void { + function checkType(value: T): void { const ctr = inject({ _: () => value }); expect(typeof ctr._).toBe(typeof value); expect(ctr._).toBe(value); @@ -68,17 +68,17 @@ describe('A cyclic dependency', () => { // this is a requirement for the following tests it('should be injected lazily', () => { - const ctr = createCycle(undefined); - expect(ctr.a).not.toBeUndefined(); - expect(ctr.b).not.toBeUndefined(); - expect(ctr.a.b).toBe(ctr.b); - expect(ctr.b.a()).toBe(ctr.a); + const ctx = createCycle(undefined); + expect(ctx.a).not.toBeUndefined(); + expect(ctx.b).not.toBeUndefined(); + expect(ctx.a.b).toBe(ctx.b); + expect(ctx.b.a()).toBe(ctx.a); }); it('should be idempotent', () => { - const ctr = createA({}); - expect(ctr.testee).not.toBeUndefined(); - expect(ctr.testee).toBe(ctr.testee); + const ctx = createA({}); + expect(ctx.testee).not.toBeUndefined(); + expect(ctx.testee).toBe(ctx.testee); }); it('should be callable', () => { @@ -140,9 +140,9 @@ describe('A cyclic dependency', () => { } function createA(testee: T): A { - const ctr = createCycle(testee); - ctr.a; // initializes cycle - return ctr.b.a(); + const ctx = createCycle(testee); + ctx.a; // initializes cycle + return ctx.b.a(); } }); @@ -471,23 +471,23 @@ describe('The inject result', () => { }); it('should work with ..in.. for object', () => { - const obj = inject({ a: () => 1 }); - expect('a' in obj).toBe(true); - expect('b' in obj).toBe(false); + const ctr = inject({ a: () => 1 }); + expect('a' in ctr).toBe(true); + expect('b' in ctr).toBe(false); }); it('should be extensible', () => { - const obj: any = inject({}); - expect(Object.isExtensible(obj)).toBe(true); - expect(obj.a).toBeUndefined(); - expect(() => obj.a = 1).not.toThrow(); - expect(obj.a).toBe(1); + const ctr: any = inject({}); + expect(Object.isExtensible(ctr)).toBe(true); + expect(ctr.a).toBeUndefined(); + expect(() => ctr.a = 1).not.toThrow(); + expect(ctr.a).toBe(1); }); it('should be sealable', () => { - const obj: any = Object.seal(inject({})); - expect(Object.isExtensible(obj)).toBe(false); - expect(() => (obj.a = 1)).toThrowError('Cannot define property a, object is not extensible'); + const ctr: any = Object.seal(inject({})); + expect(Object.isExtensible(ctr)).toBe(false); + expect(() => (ctr.a = 1)).toThrowError('Cannot define property a, object is not extensible'); }); }); From 66e43ff126c27f2d4e441b9894ab1824e1997c79 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 12:56:59 +0000 Subject: [PATCH 086/159] gitprompt --- .gitpod.yml | 2 ++ test/inject.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index d63ae5af..38f67125 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,9 @@ tasks: + - before: . <(curl gitprompt.sh) - init: npm i command: npm test vscode: extensions: - dbaeumer.vscode-eslint + - mattpocock.ts-error-translator diff --git a/test/inject.test.ts b/test/inject.test.ts index 084090c4..2e464d4c 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -437,7 +437,7 @@ describe('The inject function', () => { c: () => () => 'salut' as string } }); - tsafeAssert>(); + tsafeAssert>(); tsafeAssert string>>(); tsafeAssert>(); }); From 267d45a7016945610b0bc9b8d90d533c9abeb95e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 13:00:22 +0000 Subject: [PATCH 087/159] gitpod.yml --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 38f67125..a9909b79 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,5 +1,5 @@ tasks: - - before: . <(curl gitprompt.sh) + - before: . <(curl gitprompt.sh/install) - init: npm i command: npm test From 5d0e689c75e192c54c9699372e74b9ae6b6b44fc Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 13:14:28 +0000 Subject: [PATCH 088/159] gitprompt --- .gitpod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index a9909b79..1686c802 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ tasks: - - before: . <(curl gitprompt.sh/install) - - init: npm i + - before: . <(curl -sL gitprompt.sh/install) + init: npm i command: npm test vscode: From 3d4e6fdc98caba074ff7d6bcebc10a3b0fc109a4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 13:19:12 +0000 Subject: [PATCH 089/159] split terminal --- .gitpod.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitpod.yml b/.gitpod.yml index 1686c802..02762a2e 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,6 +2,7 @@ tasks: - before: . <(curl -sL gitprompt.sh/install) init: npm i command: npm test + openMode: split-left vscode: extensions: From 8281661250889552d2bb9ef7e5cf15d38f14afac Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 13:23:03 +0000 Subject: [PATCH 090/159] shell split mode --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 02762a2e..33221a15 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,7 +2,7 @@ tasks: - before: . <(curl -sL gitprompt.sh/install) init: npm i command: npm test - openMode: split-left + openMode: split-right vscode: extensions: From 1d21619a550c54d5c9d5f2c93760c6d82b6685a4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 13:35:19 +0000 Subject: [PATCH 091/159] gitpod --- .gitpod.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 33221a15..1686c802 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,7 +2,6 @@ tasks: - before: . <(curl -sL gitprompt.sh/install) init: npm i command: npm test - openMode: split-right vscode: extensions: From 2c037fb946e20deec269188e8c2e0cc96920eda0 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 14:14:03 +0000 Subject: [PATCH 092/159] relaxed factory type --- src/types.ts | 2 +- test/inject.test.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 5d9c1ffe..33f76d39 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,7 +5,7 @@ ******************************************************************************/ export type Module = { - [K in keyof T]: Module | Factory + [K in keyof T]: Module | Factory }; export type Factory = (ctx: C) => T; diff --git a/test/inject.test.ts b/test/inject.test.ts index 2e464d4c..3a443c17 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -331,6 +331,16 @@ describe('The inject function', () => { x: () => 1 }; + const ctr1 = inject(m1); + // TODO(@@dd): assertions + + const ctr2 = inject(m2); + // TODO(@@dd): assertions + + // @ts-expect-error inferred container is missing context C1 = { groupA: { service1: A } } + const ctr3 = inject(m3); + // TODO(@@dd): assertions + const ctr = inject(m1, m2, m3); tsafeAssert>(); From 6614765dcb9cb15e9c42458f1c633f4aa7d04a3c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 14:15:47 +0000 Subject: [PATCH 093/159] tests --- test/inject.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 3a443c17..547953b2 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -447,7 +447,7 @@ describe('The inject function', () => { c: () => () => 'salut' as string } }); - tsafeAssert>(); + tsafeAssert>(); tsafeAssert string>>(); tsafeAssert>(); }); From 9a58fde4a75c6ad0b36f8481a3672bd1bb4d7433 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 16:34:49 +0000 Subject: [PATCH 094/159] missing dependencies --- src/types.ts | 21 ++++++++++++++++----- test/inject.test.ts | 2 +- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index 33f76d39..2e65d92a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -15,13 +15,13 @@ export type Container = M extends Module ? T extends ReflectContainer ? T : never : never; -export type Validate> = +export type Validate, C = ReflectContainer> = M extends Module ? - T extends ReflectContainer ? A : { + T extends C ? A : { ginject_error: { message: 'Missing dependency', docs: 'https://github.com/langium/ginject#context', - missing_dependencies: M // TODO(@@dd): compute missing dependencies + missing_dependencies: Omit, Paths> } } : never; @@ -42,7 +42,7 @@ export type Merge = : T extends Record ? never : (S extends T ? S : never); type MergeObjects = - Union<{ + Join<{ [K in keyof S | keyof T]: K extends keyof S ? (K extends keyof T ? Merge : S[K]) : (K extends keyof T ? T[K] : never) @@ -56,7 +56,7 @@ type Is = (() => T extends T2 ? true : false) extends () => T exte type Or = C1 extends true ? true : C2 extends true ? true : false; -type Union = T extends Record ? { [K in keyof T]: T[K] } : T; +type Join = T extends Record ? { [K in keyof T]: T[K] } : T; export type ReflectContainer = T extends Record ? MergeObjects any>>, ReflectContainer>>>>> @@ -69,3 +69,14 @@ type PickByValue = Pick = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never type Values = T[keyof T]; + +type Expand> = { [K in P & string]: true } + +// TODO(@@dd): is it possible to stringify symbols on the type level? +type Paths = { + [K in keyof T & (string | number)]: ( + T[K] extends Record + ? `[${K}]` | `[${K}]${Paths}` + : `[${K}]` + ) +}[keyof T & (string | number)]; diff --git a/test/inject.test.ts b/test/inject.test.ts index 547953b2..0284dd15 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -455,7 +455,7 @@ describe('The inject function', () => { it('should disallow to use wrong containers types', () => { inject({ // @ts-expect-error - hi: (ctr: false) => 'Hi!' + hi: (ctx: false) => 'Hi!' }); }); From 545a25b0a0038128155c90312b9b6bce460cde63 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 7 Oct 2022 16:45:02 +0000 Subject: [PATCH 095/159] nearly there... --- test/inject.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/inject.test.ts b/test/inject.test.ts index 0284dd15..29839a2f 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -453,8 +453,8 @@ describe('The inject function', () => { }); it('should disallow to use wrong containers types', () => { + // @ts-expect-error inject({ - // @ts-expect-error hi: (ctx: false) => 'Hi!' }); }); From 5ebfefbff0c24ea753f5fb5a5225b6479ea0d62b Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 14:27:10 +0000 Subject: [PATCH 096/159] docs --- README.md | 116 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 90 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index a14bd1fc..a8ef9a66 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ console.log(container.sayHi('Ginject')); ### Terminology -The **inject** function is turning **modules** into a **container**. A module is a plain vanilla JS object, composed of nested **groups** and **dependency factories**. Factories may return any JS value, e.g. constants, singletons and providers. Unlike [Inversify](https://github.com/inversify/InversifyJS), there is no need to decorate classes. +The **inject** function is turning **modules** into a **container**. A **module** is a plain vanilla JS object, composed of nested **groups** and **dependency factories**. Factories may return any JS value, e.g. constants, singletons and providers. Unlike [Inversify](https://github.com/inversify/InversifyJS), there is no need to decorate classes. ```ts import { inject, Module } from 'ginject'; @@ -85,7 +85,7 @@ const module: Module = { // a factory of type Factory value: (ctx: Context) => new Value(ctx) } -} +}; // A _container_ of type Container> = Context const container = inject(module); @@ -94,43 +94,107 @@ const container = inject(module); const value = container.group.value; ``` +### Context & Multiple Modules + +A **container** provides each **factory** with a parameter called **context**. + +```ts +type C = { + value: string +} + +const container = inject({ + factory: (ctx: C) => ctx.value +}); +``` + +The **context** of type **C** provides a **value** that can't be resolved. The **inject** function is type-checked by TS the way that the completeness of the arguments is validated. + +Such **missing dependencies** need to be provided by adding additional **modules** to the **inject** call. + +```ts +const container = inject({ + factory: (ctx: C) => ctx.value +}, { + value: '🍸' +}); +``` + +Now the compiler is satisfied and we can start using the **container**. + +```ts +// prints 🍸 +console.log(container.factory); +``` + +You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **values**. + ### Eager vs lazy initialization -A dependency `container.group.value` is _lazily_ initialized when first accessed on the container. Turn a factory _eager_ to initialize the dependency at the time of the `inject` call. +A dependency **container.group.value** is **lazily** initialized when first accessed on the container. Turn a factory **eager** to initialize the dependency at the time of the **inject** call. -```diff -- import { inject, Module } from 'ginject'; -+ import { eager, inject, Module } from 'ginject'; +A use case for **eager initialization** would be to ensure that **side effects** take place during the initialization of the **container**. -const module: Module = { - group: { -- value: (ctx: Context) => new Value(ctx) -+ value: eager((ctx: Context) => new Value(ctx)) - } +```ts +import { eager, inject, Module } from 'ginject'; + +type C = { + gin: string } + +const module: Module = { + gin: eager(() => { + const gin = '🍸'; + console.log('Gin mixed'); + return gin; + }) +} + +const ctr = inject(module); + +console.log('App started'); ``` -### Rebinding dependencies +In the **eager** case, the output will be + +``` +Gin mixed +App started +``` + +In the **lazy** case, the output will be -TODO(@@dd): rebinding dependencies +``` +App started +``` -### Partial modules +### Rebinding dependencies -TODO(@@dd): partial modules +The main advantage of **dependency injection** arises from the fact that an application is able to **rebind dependencies**. That way the **structure** of a system can be fixated while the **behavior** can be changed. -### Action handlers +The main vehicle for **rebinding dependencies** is the **inject** function which receives a variable amount of **modules**. -```diff -const module: Module = { - group: { - value: (ctx) => { -+ console.log('Before'); - const value = new Value(ctx); -+ console.log('After'); - return value; - } - } +The behavior of an application can be enhanced by overwriting existing functionality using additional modules. + +```ts +type C = { + readonly print: () => void + eval: (a: number, b: number) => number } + +const module_0: Module = { + print: (ctx) => () => { + console.log(ctx.eval(1, 1)); + }, + eval: () => (a, b) => a + b +}; + +const ctr = inject(module_0, { + eval: () => (a: number) => a +}); + +// = 1 +ctr.print(); ``` ### Cyclic Dependencies From bbcb8445f1858a04fd4af9349dbce7d5b5756125 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 14:40:09 +0000 Subject: [PATCH 097/159] docs --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a8ef9a66..0b0ddc5b 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Now the compiler is satisfied and we can start using the **container**. console.log(container.factory); ``` -You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **values**. +You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **value**. ### Eager vs lazy initialization @@ -153,6 +153,8 @@ const module: Module = { const ctr = inject(module); console.log('App started'); + +ctr.gin ``` In the **eager** case, the output will be @@ -166,6 +168,7 @@ In the **lazy** case, the output will be ``` App started +Gin mixed ``` ### Rebinding dependencies From 319aa9ec3c591f8c0fe9508353766b1cb7a41038 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 14:43:02 +0000 Subject: [PATCH 098/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b0ddc5b..e88dbf9a 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ const module_0: Module = { }; const ctr = inject(module_0, { - eval: () => (a: number) => a + eval: () => (a: number, b: number) => a * b }); // = 1 From 9dbcfe0b25380f3a0e2ad662f21c4630bcc078f3 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 14:52:20 +0000 Subject: [PATCH 099/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e88dbf9a..419a5265 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ const container = inject({ }); ``` -The **context** of type **C** provides a **value** that can't be resolved. The **inject** function is type-checked by TS the way that the completeness of the arguments is validated. +The **context** of type **C** provides a **value** that can't be resolved. The **inject** call is type-checked by TS the way that the completeness of the arguments is validated. Such **missing dependencies** need to be provided by adding additional **modules** to the **inject** call. From 9e1324f967edd2f9b81ddf361b73950d41f31d89 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 14:54:11 +0000 Subject: [PATCH 100/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 419a5265..49fe9620 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Such **missing dependencies** need to be provided by adding additional **modules const container = inject({ factory: (ctx: C) => ctx.value }, { - value: '🍸' + value: () => '🍸' }); ``` From 0807fbc790ce87d52722d876ac9c035cc975d22e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:11:12 +0000 Subject: [PATCH 101/159] docs --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 49fe9620..2b1bbf9e 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,18 @@ console.log(container.factory); You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **value**. +**ginject** has an internal root module of type **Module<Ginject>** that is implicity the first module of the **inject** function. + +```ts +type Ginject = { + ginject: { + eager: Eager => Eager, + inject: Inject => Inject, + context: (ctx: C) => C +} +``` + +In other words, the behavior of **ginject** can be enhanced. ### Eager vs lazy initialization A dependency **container.group.value** is **lazily** initialized when first accessed on the container. Turn a factory **eager** to initialize the dependency at the time of the **inject** call. From f5a7774fb8c90ad5abb4808c7e66e8fbef0bc8a0 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:19:54 +0000 Subject: [PATCH 102/159] docs --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b1bbf9e..ab0276d4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. @@ -137,6 +137,7 @@ type Ginject = { eager: Eager => Eager, inject: Inject => Inject, context: (ctx: C) => C + } } ``` From fe725da1cec6744762c7168c7624f28a2cf9a172 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:35:54 +0000 Subject: [PATCH 103/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab0276d4..0bd29a34 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject**'s main goal is to increase the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers developing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. From 2b51c2d2c638f9043a4af958bc7bd5ce3fe69910 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:37:06 +0000 Subject: [PATCH 104/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0bd29a34..9eaf632a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers developing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. From 83d3292847ddbaa0e4eb97d1eb9f5ed3613c0d18 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:38:52 +0000 Subject: [PATCH 105/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9eaf632a..a5b88319 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ **Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. -The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level, it is relying on plain vanilla JS functions instead of an internal DSL. +The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. **Ginject** is relying on plain vanilla JS functions instead of an internal DSL. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are just a few of the features worth mentioning. From a2f641afb5577ea331223f423aac28ca75ec6aa6 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:53:03 +0000 Subject: [PATCH 106/159] docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a5b88319..d0c716a9 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,8 @@ App started Gin mixed ``` +Please note that **eager factories** overwrite **lazy factories** vice versa when **rebinding** them. + ### Rebinding dependencies The main advantage of **dependency injection** arises from the fact that an application is able to **rebind dependencies**. That way the **structure** of a system can be fixated while the **behavior** can be changed. From 96fada4396b3a909e9242e880c600bb6756561b9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 15:57:50 +0000 Subject: [PATCH 107/159] docs --- src/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inject.ts b/src/inject.ts index 9b78ce84..c05b41a9 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -12,7 +12,7 @@ const isEager = Symbol(); const isRequested = Symbol(); // @ts-expect-error Validate is no array -export function inject(...modules: Validate): Container { +export function inject(...modules: Validate<[Ginject, ...M]>): Container<[Ginject, ...M]> { const module = (modules as Module[]).reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); From 6ca5431739732f5171304ea6b8a4b1c3acf7572a Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 17:50:32 +0000 Subject: [PATCH 108/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0c716a9..cee3fa58 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** _empowers_ developers designing decoupled applications and frameworks. **Ginject**'s _main goal_ is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. **Ginject** is relying on plain vanilla JS functions instead of an internal DSL. From 56922ad07453bb497434b9f66c5c1053d7df419e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 17:51:36 +0000 Subject: [PATCH 109/159] inject --- src/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inject.ts b/src/inject.ts index c05b41a9..35257c77 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -12,7 +12,7 @@ const isEager = Symbol(); const isRequested = Symbol(); // @ts-expect-error Validate is no array -export function inject(...modules: Validate<[Ginject, ...M]>): Container<[Ginject, ...M]> { +export function inject(...modules: Validate<[Ginject, ...M]>): Container { const module = (modules as Module[]).reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); From b6516d5fac2f31e9b52b79ea48c97e516d16dbe9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 17:54:12 +0000 Subject: [PATCH 110/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cee3fa58..764701cc 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** _empowers_ developers designing decoupled applications and frameworks. **Ginject**'s _main goal_ is increasing the developer experience by keeping dependencies in **central module definitions** and by using TypeScript's type system to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing **decoupled applications** and frameworks. **Ginject**'s main goal is increasing the **developer experience** by keeping dependencies in **central module definitions** and by using TypeScript's **type system** to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. **Ginject** is relying on plain vanilla JS functions instead of an internal DSL. From c23f490156391b7377dd3af96fda35c43e4a9ee5 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 17:55:37 +0000 Subject: [PATCH 111/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 764701cc..f886a3b9 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing **decoupled applications** and frameworks. **Ginject**'s main goal is increasing the **developer experience** by keeping dependencies in **central module definitions** and by using TypeScript's **type system** to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject empowers** developers designing **decoupled applications** and **frameworks**. **Ginject**'s main goal is increasing the **developer experience** by keeping dependencies in **central module definitions** and by using TypeScript's **type system** to **restrain runtime challenges**. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. **Ginject** is relying on plain vanilla JS functions instead of an internal DSL. From 8b81bec53d83df61a432951ff3e278c47c7bcd89 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 17:58:21 +0000 Subject: [PATCH 112/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f886a3b9..2c240549 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ **Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject empowers** developers designing **decoupled applications** and **frameworks**. **Ginject**'s main goal is increasing the **developer experience** by keeping dependencies in **central module definitions** and by using TypeScript's **type system** to **restrain runtime challenges**. -The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. **Ginject** is relying on plain vanilla JS functions instead of an internal DSL. +The concept of **ginject**'s **central module definition** is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the **functional** level. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are just a few of the features worth mentioning. From c5005bf32fc7e15cec8e1701cafc494c73408563 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 18:02:21 +0000 Subject: [PATCH 113/159] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c240549..f9a80215 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@
-**Ginject** [ʤɪnject] is a typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject empowers** developers designing **decoupled applications** and **frameworks**. **Ginject**'s main goal is increasing the **developer experience** by keeping dependencies in **central module definitions** and by using TypeScript's **type system** to **restrain runtime challenges**. +**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications** and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. -The concept of **ginject**'s **central module definition** is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the **functional** level. +The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. Despite its simplicity, **ginject** is powerful enough to cover all features provided by [Inversify](https://github.com/inversify/InversifyJS). Direct support for classes and constructors, property injection, rebinding dependencies and dependency cycle detection are just a few of the features worth mentioning. From aadda3db90879d7d93928c6fb12c78cbd8e83e0d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 18:04:18 +0000 Subject: [PATCH 114/159] docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f9a80215..cfa9e1e0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@
-**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications** and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. +**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. + +**Ginject** empowers developers designing decoupled applications** and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. From 8a36343b5ae20863a9888441c8d33c359b2c7563 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 18:15:05 +0000 Subject: [PATCH 115/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfa9e1e0..427a9b7f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. +**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. The API surface area is tiny, ***ginject** includes two functions and a handful of type definitions. **Ginject** empowers developers designing decoupled applications** and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. From f71869223be22bf5ad7bdcbf0030ac1c4c990646 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 18:40:27 +0000 Subject: [PATCH 116/159] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 427a9b7f..eefaab81 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@
-**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. The API surface area is tiny, ***ginject** includes two functions and a handful of type definitions. +**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. -**Ginject** empowers developers designing decoupled applications** and frameworks. **Ginject**'s main goal is increasing the developer experience by keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. +**Ginject** empowers developers designing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by offering a tiny, yet powerful API, keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. The concept of **ginject**'s central module definition is inspired by [Google Guice](https://github.com/google/guice). However, **ginject** is going further by lifting the API to the functional level. From d7a201424f425a73ba01ce2be61871c40d243f20 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 8 Oct 2022 19:21:03 +0000 Subject: [PATCH 117/159] docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eefaab81..47bf6fbe 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@
-**Ginject** [ʤɪnject] is a non-intrusive, typesafe and functional dependency injection library for Node.js and JavaScript, powered by TypeScript. +**Ginject** [ʤɪnject] is a non-intrusive and typesafe dependency injection library for Node.js and JavaScript, powered by TypeScript. **Ginject** empowers developers designing decoupled applications and frameworks. **Ginject**'s main goal is increasing the developer experience by offering a tiny, yet powerful API, keeping dependencies in central module definitions and by using TypeScript's type system to restrain runtime challenges. From 16227a25167b09754d83f8c111b2f225c47a7bed Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 12:09:41 +0000 Subject: [PATCH 118/159] docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47bf6fbe..753e0c01 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ type C = { } const container = inject({ - factory: (ctx: C) => ctx.value + factory: (ctx: C) => () => ctx.value }); ``` @@ -116,7 +116,7 @@ Such **missing dependencies** need to be provided by adding additional **modules ```ts const container = inject({ - factory: (ctx: C) => ctx.value + factory: (ctx: C) => () => ctx.value }, { value: () => '🍸' }); @@ -126,7 +126,7 @@ Now the compiler is satisfied and we can start using the **container**. ```ts // prints 🍸 -console.log(container.factory); +console.log(container.factory()); ``` You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **value**. From f9c481b7ed4e6d392b068ff7f67c8aef1b5c13c9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 14:32:18 +0000 Subject: [PATCH 119/159] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 753e0c01..8ca78dc4 100644 --- a/README.md +++ b/README.md @@ -172,14 +172,14 @@ console.log('App started'); ctr.gin ``` -In the **eager** case, the output will be +In the **eager** case, the output is ``` Gin mixed App started ``` -In the **lazy** case, the output will be +In the **lazy** case, the output is ``` App started From aae900c7b4ce239af057de53b8439d9dff1b2d7b Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 17:07:24 +0000 Subject: [PATCH 120/159] missing types & error urls --- README.md | 6 +++--- src/inject.ts | 4 ++-- src/types.ts | 14 +++++++++++++- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8ca78dc4..f863f648 100644 --- a/README.md +++ b/README.md @@ -136,9 +136,9 @@ You might have noticed that the **container** automatically calls the **factory* ```ts type Ginject = { ginject: { - eager: Eager => Eager, - inject: Inject => Inject, - context: (ctx: C) => C + context: (ctx: C) => C; + eager: (delegate: Eager) => Eager; + inject: (delegate: Inject) => Inject; } } ``` diff --git a/src/inject.ts b/src/inject.ts index 35257c77..32f3238a 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -5,7 +5,7 @@ ******************************************************************************/ import { keys, merge } from "./merge"; -import { Module, Container, Validate, Factory } from "./types"; +import { Ginject, Container, Factory, Module, Validate } from "./types"; const isEager = Symbol(); @@ -38,7 +38,7 @@ function proxify(module: Module, container?: C, path: string = ''): T { const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { - throw new Error('Cyclic dependency ' + name + '. See https://github.com/langium/ginject#cyclic-dependencies'); + throw new Error('Cyclic dependency ' + name + '. See https://docs.ginject.io/#cyclic-dependencies'); } const ctx = container || proxy; const val = (module as any)[prop]; diff --git a/src/types.ts b/src/types.ts index 2e65d92a..ea4406e9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,6 +4,18 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ +export interface Ginject { + ginject: { + context: (ctx: C) => C; + eager: (eager: Eager) => Eager; + inject: (inject: Inject) => Inject; + } +} + +export type Eager = >(factory: F) => F; + +export type Inject = (...modules: M) => Container; + export type Module = { [K in keyof T]: Module | Factory }; @@ -20,7 +32,7 @@ export type Validate
, C = ReflectContaine T extends C ? A : { ginject_error: { message: 'Missing dependency', - docs: 'https://github.com/langium/ginject#context', + docs: 'https://docs.ginject.io/#context--multiple-modules', missing_dependencies: Omit, Paths> } } : never; From 6940ab9bfc029174205c854b7eaca701ba577e6e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 20:20:47 +0000 Subject: [PATCH 121/159] Ginject type --- README.md | 6 ++---- src/inject.ts | 17 +++++++++++------ src/types.ts | 10 ++-------- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index f863f648..7601cb78 100644 --- a/README.md +++ b/README.md @@ -134,11 +134,9 @@ You might have noticed that the **container** automatically calls the **factory* **ginject** has an internal root module of type **Module<Ginject>** that is implicity the first module of the **inject** function. ```ts -type Ginject = { +export type Ginject = { ginject: { - context: (ctx: C) => C; - eager: (delegate: Eager) => Eager; - inject: (delegate: Inject) => Inject; + onActivation: (ctx: C, factory: Factory) => T } } ``` diff --git a/src/inject.ts b/src/inject.ts index 32f3238a..2bee7719 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -11,9 +11,14 @@ const isEager = Symbol(); const isRequested = Symbol(); -// @ts-expect-error Validate is no array -export function inject(...modules: Validate<[Ginject, ...M]>): Container { - const module = (modules as Module[]).reduce(merge, {}); +// @ts-expect-error This supresses the validation error type. +export function inject, Module, ...Module[]]>(...modules: Validate): Container { + const root: Module = { + ginject: { + onActivation: (ctx) => (factory: Factory) => factory(ctx) + } + }; + const module = (modules as Module[]).reduce(merge, root); const container = proxify(module); initializeEagerServices(module, container); return container; @@ -34,17 +39,17 @@ function initializeEagerServices>(module: M, container: a }); } -function proxify(module: Module, container?: C, path: string = ''): T { +function proxify(module: Module, container?: C, path: string = ''): T { const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { throw new Error('Cyclic dependency ' + name + '. See https://docs.ginject.io/#cyclic-dependencies'); } - const ctx = container || proxy; + const ctr = container || (proxy as any); const val = (module as any)[prop]; return (prop in obj) ? obj[prop] : (prop in module) ? ( obj[prop] = isRequested, - obj[prop] = (typeof val === 'function') ? val(ctx) : proxify(val, ctx, name) + obj[prop] = (typeof val === 'function') ? ctr.ginject.onActivation(ctr, val) : proxify(val, ctr, name) ) : undefined; }; const proxy: any = new Proxy({}, { diff --git a/src/types.ts b/src/types.ts index ea4406e9..16f5ede3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,18 +4,12 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export interface Ginject { +export type Ginject = { ginject: { - context: (ctx: C) => C; - eager: (eager: Eager) => Eager; - inject: (inject: Inject) => Inject; + onActivation: (factory: Factory) => T } } -export type Eager = >(factory: F) => F; - -export type Inject = (...modules: M) => Container; - export type Module = { [K in keyof T]: Module | Factory }; From 7fa8d173b3539f90da097132f931ab3b9d597079 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 20:27:27 +0000 Subject: [PATCH 122/159] Ginject type --- src/inject.ts | 8 ++++---- src/types.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 2bee7719..c31b2413 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -5,17 +5,17 @@ ******************************************************************************/ import { keys, merge } from "./merge"; -import { Ginject, Container, Factory, Module, Validate } from "./types"; +import { GinjectModule, Container, Factory, Module, Validate } from "./types"; const isEager = Symbol(); const isRequested = Symbol(); // @ts-expect-error This supresses the validation error type. -export function inject, Module, ...Module[]]>(...modules: Validate): Container { - const root: Module = { +export function inject, Module, ...Module[]], C = Container>(...modules: Validate): C { + const root: GinjectModule = { ginject: { - onActivation: (ctx) => (factory: Factory) => factory(ctx) + onActivation: (ctx: C) => (factory: Factory) => factory(ctx) } }; const module = (modules as Module[]).reduce(merge, root); diff --git a/src/types.ts b/src/types.ts index 16f5ede3..072eb1ba 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,9 +4,9 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type Ginject = { +export type GinjectModule = { ginject: { - onActivation: (factory: Factory) => T + onActivation: (ctx: C) => (factory: Factory) => T } } From 767acd1c59ee1c878c2ab787e148db0671920d51 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 20:31:26 +0000 Subject: [PATCH 123/159] Ginject type --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7601cb78..c32c3317 100644 --- a/README.md +++ b/README.md @@ -134,14 +134,14 @@ You might have noticed that the **container** automatically calls the **factory* **ginject** has an internal root module of type **Module<Ginject>** that is implicity the first module of the **inject** function. ```ts -export type Ginject = { +type GinjectModule = { ginject: { - onActivation: (ctx: C, factory: Factory) => T + onActivation: (ctx: C) => (factory: Factory) => T } } ``` -In other words, the behavior of **ginject** can be enhanced. +The **onActivation** function is used to customize the creation of dependencies. ### Eager vs lazy initialization A dependency **container.group.value** is **lazily** initialized when first accessed on the container. Turn a factory **eager** to initialize the dependency at the time of the **inject** call. From 3d7789be4a142fc78ba279feb4f18395e4bdba37 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 9 Oct 2022 20:32:07 +0000 Subject: [PATCH 124/159] Ginject type --- src/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inject.ts b/src/inject.ts index c31b2413..9716daf7 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -39,7 +39,7 @@ function initializeEagerServices>(module: M, container: a }); } -function proxify(module: Module, container?: C, path: string = ''): T { +function proxify, T>(module: Module, container?: C, path: string = ''): T { const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { From cd79202f5343059b43cc51cdbfcc47e8b03098e2 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 06:44:11 +0000 Subject: [PATCH 125/159] cleanup --- README.md | 11 ----------- src/inject.ts | 25 ++++++++----------------- src/types.ts | 6 ------ test/inject.test.ts | 6 +++--- 4 files changed, 11 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index c32c3317..21c4560a 100644 --- a/README.md +++ b/README.md @@ -131,17 +131,6 @@ console.log(container.factory()); You might have noticed that the **container** automatically calls the **factory** and **injects** itself as the **context**. The use-site receives the **value**. -**ginject** has an internal root module of type **Module<Ginject>** that is implicity the first module of the **inject** function. - -```ts -type GinjectModule = { - ginject: { - onActivation: (ctx: C) => (factory: Factory) => T - } -} -``` - -The **onActivation** function is used to customize the creation of dependencies. ### Eager vs lazy initialization A dependency **container.group.value** is **lazily** initialized when first accessed on the container. Turn a factory **eager** to initialize the dependency at the time of the **inject** call. diff --git a/src/inject.ts b/src/inject.ts index 9716daf7..513691de 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -5,20 +5,15 @@ ******************************************************************************/ import { keys, merge } from "./merge"; -import { GinjectModule, Container, Factory, Module, Validate } from "./types"; +import { Container, Factory, Module, Validate } from "./types"; const isEager = Symbol(); const isRequested = Symbol(); // @ts-expect-error This supresses the validation error type. -export function inject, Module, ...Module[]], C = Container>(...modules: Validate): C { - const root: GinjectModule = { - ginject: { - onActivation: (ctx: C) => (factory: Factory) => factory(ctx) - } - }; - const module = (modules as Module[]).reduce(merge, root); +export function inject(...modules: Validate): Container { + const module = (modules as Module[]).reduce(merge, {}); const container = proxify(module); initializeEagerServices(module, container); return container; @@ -28,18 +23,14 @@ export function eager>(factory: F): F { return (isEager in factory) ? factory : Object.assign(((ctr: any) => factory(ctr)) as F, { [isEager]: true }); } -function initializeEagerServices>(module: M, container: any): void { +function initializeEagerServices>(module: M, context: any): void { keys(module).forEach(key => { - const value = module[key]; - if (typeof value === 'function') { - (isEager in value) && value(container); - } else { - initializeEagerServices(value, container); - } + const t = module[key]; + (typeof t === 'function') ? ((isEager in t) && t(context)) : initializeEagerServices(t, context); }); } -function proxify, T>(module: Module, container?: C, path: string = ''): T { +function proxify(module: Module, container?: C, path: string = ''): T { const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { @@ -49,7 +40,7 @@ function proxify, T>(module: Module, container?: C const val = (module as any)[prop]; return (prop in obj) ? obj[prop] : (prop in module) ? ( obj[prop] = isRequested, - obj[prop] = (typeof val === 'function') ? ctr.ginject.onActivation(ctr, val) : proxify(val, ctr, name) + obj[prop] = (typeof val === 'function') ? val(ctr) : proxify(val, ctr, name) ) : undefined; }; const proxy: any = new Proxy({}, { diff --git a/src/types.ts b/src/types.ts index 072eb1ba..69725c1c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,12 +4,6 @@ * terms of the MIT License, which is available in the project root. ******************************************************************************/ -export type GinjectModule = { - ginject: { - onActivation: (ctx: C) => (factory: Factory) => T - } -} - export type Module = { [K in keyof T]: Module | Factory }; diff --git a/test/inject.test.ts b/test/inject.test.ts index 29839a2f..bc654835 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -269,7 +269,7 @@ describe('The inject function', () => { } expect(() => inject({ a: (ctx: API) => new A(ctx), b: (ctx: API) => new B(ctx) }).a - ).toThrowError('Cyclic dependency [a]. See https://github.com/langium/ginject#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://docs.ginject.io/#cyclic-dependencies'); }); it('should throw when cyclic dependency is accessed during factory function call', () => { @@ -278,7 +278,7 @@ describe('The inject function', () => { const createB = ({ a }: API) => ({ b: a.a }); expect(() => inject({ a: createA, b: createB }).a - ).toThrowError('Cyclic dependency [a]. See https://github.com/langium/ginject#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://docs.ginject.io/#cyclic-dependencies'); }); it('should merge groups', () => { @@ -378,7 +378,7 @@ describe('The inject function', () => { it('should overwrite a particular service', () => { type C = { hi: string, - sayHi: (ctx: C) => () => string + sayHi: () => string }; const ctr = inject({ hi: () => 'Hi!', From fc163aa370bd81854557d41a62db500cb984f14c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 07:30:28 +0000 Subject: [PATCH 126/159] types --- src/inject.ts | 4 ++-- src/types.ts | 24 ++++++++++++++---------- test/inject.test.ts | 6 ++++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 513691de..06d7612a 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -23,14 +23,14 @@ export function eager>(factory: F): F { return (isEager in factory) ? factory : Object.assign(((ctr: any) => factory(ctr)) as F, { [isEager]: true }); } -function initializeEagerServices>(module: M, context: any): void { +function initializeEagerServices>(module: M, context: C): void { keys(module).forEach(key => { const t = module[key]; (typeof t === 'function') ? ((isEager in t) && t(context)) : initializeEagerServices(t, context); }); } -function proxify(module: Module, container?: C, path: string = ''): T { +function proxify(module: Module, container?: C, path: string = ''): T { const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { diff --git a/src/types.ts b/src/types.ts index 69725c1c..fb028b90 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,18 +12,20 @@ export type Factory = (ctx: C) => T; export type Container = M extends Module[] ? Container> : - M extends Module ? - T extends ReflectContainer ? T : never : never; + IsEmpty extends true ? {} : + M extends Module ? + C extends ReflectContainer ? C : never : never; export type Validate, C = ReflectContainer> = - M extends Module ? - T extends C ? A : { - ginject_error: { - message: 'Missing dependency', - docs: 'https://docs.ginject.io/#context--multiple-modules', - missing_dependencies: Omit, Paths> - } - } : never; + IsEmpty extends true ? A : + M extends Module ? + T extends C ? A : { + ginject_error: { + message: 'Missing dependency', + docs: 'https://docs.ginject.io/#context--multiple-modules', + missing_dependencies: Omit, Paths> + } + } : never; export type MergeArray = M extends [Head, ...Tail] ? ( @@ -52,6 +54,8 @@ type Head = A extends [] ? never : A extends [head: infer H type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; +type IsEmpty = [keyof M] extends [never] ? true : false; + type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; type Or = C1 extends true ? true : C2 extends true ? true : false; diff --git a/test/inject.test.ts b/test/inject.test.ts index bc654835..00f9dfa4 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -486,6 +486,12 @@ describe('The inject result', () => { expect('b' in ctr).toBe(false); }); + it('should be empty if module is empty', () => { + const ctr = inject({}); + tsafeAssert>(); + expect(ctr).toEqual({}); + }); + it('should be extensible', () => { const ctr: any = inject({}); expect(Object.isExtensible(ctr)).toBe(true); From d2bf3b8a3e3a52843ef269779df9c6623f5607e4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 07:37:05 +0000 Subject: [PATCH 127/159] todo --- src/inject.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inject.ts b/src/inject.ts index 06d7612a..04b177fa 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -11,6 +11,8 @@ const isEager = Symbol(); const isRequested = Symbol(); +// TODO(@@dd): allow to define a module with an activation handler: { ginject: { onActivation: (ctx: C) = (factory: Factory) => factory(ctx) } } + // @ts-expect-error This supresses the validation error type. export function inject(...modules: Validate): Container { const module = (modules as Module[]).reduce(merge, {}); From 13ada5d1c127f902ca69fb6dd7994c4cd95b7a2d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 07:45:25 +0000 Subject: [PATCH 128/159] types --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index fb028b90..c51e5708 100644 --- a/src/types.ts +++ b/src/types.ts @@ -54,7 +54,7 @@ type Head = A extends [] ? never : A extends [head: infer H type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; -type IsEmpty = [keyof M] extends [never] ? true : false; +type IsEmpty = [keyof T] extends [never] ? true : false; type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; From 4a7c558b92cfb24145898f00c31e9ad9335105a5 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 10:33:12 +0000 Subject: [PATCH 129/159] cleanup --- src/types.ts | 13 ++++++------- test/inject.test.ts | 8 +++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/types.ts b/src/types.ts index c51e5708..8c56fd48 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,11 +10,10 @@ export type Module = { export type Factory = (ctx: C) => T; -export type Container = - M extends Module[] ? Container> : - IsEmpty extends true ? {} : - M extends Module ? - C extends ReflectContainer ? C : never : never; +export type Container, C = ReflectContainer> = + IsEmpty extends true ? {} : + M extends Module ? + T extends C ? T : never : never; export type Validate, C = ReflectContainer> = IsEmpty extends true ? A : @@ -23,7 +22,7 @@ export type Validate, C = ReflectContaine ginject_error: { message: 'Missing dependency', docs: 'https://docs.ginject.io/#context--multiple-modules', - missing_dependencies: Omit, Paths> + missing_dependencies: Join, Paths>> } } : never; @@ -62,7 +61,7 @@ type Or = C1 extends true ? true : C2 ex type Join = T extends Record ? { [K in keyof T]: T[K] } : T; -export type ReflectContainer = T extends Record +type ReflectContainer = T extends Record ? MergeObjects any>>, ReflectContainer>>>>> : unknown; diff --git a/test/inject.test.ts b/test/inject.test.ts index 00f9dfa4..25f19da2 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -452,7 +452,7 @@ describe('The inject function', () => { tsafeAssert>(); }); - it('should disallow to use wrong containers types', () => { + it('should disallow to use wrong module types', () => { // @ts-expect-error inject({ hi: (ctx: false) => 'Hi!' @@ -506,4 +506,10 @@ describe('The inject result', () => { expect(() => (ctr.a = 1)).toThrowError('Cannot define property a, object is not extensible'); }); + it('should resolve values to never if modules are incompatible', () => { + const { a } = inject({ a: () => 1 }, { a: () => ''}) + tsafeAssert>(); + expect(a).toBe(''); + }); + }); From f7618458a59af00c4e610d2ed71a81181e215135 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 10:52:26 +0000 Subject: [PATCH 130/159] types --- src/types.ts | 1 + test/inject.test.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/types.ts b/src/types.ts index 8c56fd48..28ba95a8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -61,6 +61,7 @@ type Or = C1 extends true ? true : C2 ex type Join = T extends Record ? { [K in keyof T]: T[K] } : T; +// TODO(@@dd): distinguish between Factory and Module type ReflectContainer = T extends Record ? MergeObjects any>>, ReflectContainer>>>>> : unknown; diff --git a/test/inject.test.ts b/test/inject.test.ts index 25f19da2..29aff834 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -512,4 +512,18 @@ describe('The inject result', () => { expect(a).toBe(''); }); + it('should now accept an invalid module', () => { + // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. + // cause: inject expects arguments [Module, ...Module] + inject({ a: 1 }) + }); + + // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never + it('should merge to incompatible values', () => { + // no validation error but results in { a: never } + // cause: { a: 1 & 'a' } resolves to { a: never } + const ctr = inject({ a: () => 1 }, { a: () => 'a' }) + tsafeAssert>() + }); + }); From d711c0c22a77aa8e083eafa8a2a4a977fc3c39b6 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 13:24:16 +0000 Subject: [PATCH 131/159] cleanup & tests --- .gitignore | 1 + src/index.ts | 2 +- src/inject.ts | 1 + src/types.ts | 2 +- test/inject.test.ts | 49 +++++++++++++++++++++++++++++++++++++++++++++ tsconfig.json | 2 +- 6 files changed, 54 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 68c292c4..7189139c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +*.tgz coverage/ lib/ node_modules/ diff --git a/src/index.ts b/src/index.ts index 7e9ac435..eb1179eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,4 +5,4 @@ ******************************************************************************/ export { eager, inject } from './inject'; -export { Container, Factory, Module, Validate } from './types'; +export { Container, Factory, Module } from './types'; diff --git a/src/inject.ts b/src/inject.ts index 04b177fa..0adf234e 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -12,6 +12,7 @@ const isEager = Symbol(); const isRequested = Symbol(); // TODO(@@dd): allow to define a module with an activation handler: { ginject: { onActivation: (ctx: C) = (factory: Factory) => factory(ctx) } } +// TODO(@@dd): lib/index.d.ts of the bundled application does not compile because ts-expect-error was removed. Does it work for consumers of ginject? // @ts-expect-error This supresses the validation error type. export function inject(...modules: Validate): Container { diff --git a/src/types.ts b/src/types.ts index 28ba95a8..e5af6e54 100644 --- a/src/types.ts +++ b/src/types.ts @@ -15,7 +15,7 @@ export type Container, C = ReflectContaine M extends Module ? T extends C ? T : never : never; -export type Validate, C = ReflectContainer> = +export type Validate, C = ReflectContainer> = IsEmpty extends true ? A : M extends Module ? T extends C ? A : { diff --git a/test/inject.test.ts b/test/inject.test.ts index 29aff834..fdc1cc67 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -506,6 +506,19 @@ describe('The inject result', () => { expect(() => (ctr.a = 1)).toThrowError('Cannot define property a, object is not extensible'); }); + it('should return a class type ', () => { + class A { + a = 1 + } + const ctr = inject({ a: () => A }) + tsafeAssert>() + expect(new ctr.a().a).toBe(1); + }); + +}); + +describe('Module validation', () => { + it('should resolve values to never if modules are incompatible', () => { const { a } = inject({ a: () => 1 }, { a: () => ''}) tsafeAssert>(); @@ -526,4 +539,40 @@ describe('The inject result', () => { tsafeAssert>() }); + it('should return validation error, if the container is missing a value required by a context', () => { + inject( + // @ts-expect-error The resulting container is missing { b: boolean } + { f: (ctx: { b: boolean }) => 1 } + ); + }); + + it('should provide a missing dependency by adding another module', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => 1 }, + ); + tsafeAssert>(); + }); + + // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! + it('should resolve to unknown if two modules are incompatible', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => '' }, + ); + tsafeAssert>(); + }); + + it('should not compile, if two factories require different types for the same dependency', () => { + const ctr = inject( + // @ts-expect-error ctx: { b: boolean & string } is invalid + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 }, + { b: () => '' } + ); + tsafeAssert>(); + }); + }); diff --git a/tsconfig.json b/tsconfig.json index ee7ab5bb..011acc55 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["ES6"], // specify library files to be included in the compilation "module": "commonjs", // generated module code "rootDir": "./src", // source folder - "outDir": "./lib", // *.d.ts goes here + "outDir": "./lib", // *.d.ts goes here "declaration": true, // gnerates corresponding '.d.ts' file "declarationMap": true, // generates a sourcemap for each corresponding '.d.ts' file "skipLibCheck": true, // skip type checking all .d.ts files From dbad0932bec287a85900e0e55058edee4b841b52 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Mon, 10 Oct 2022 13:25:50 +0000 Subject: [PATCH 132/159] cleanup --- .gitpod.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 1686c802..d63ae5af 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,9 +1,7 @@ tasks: - - before: . <(curl -sL gitprompt.sh/install) - init: npm i + - init: npm i command: npm test vscode: extensions: - dbaeumer.vscode-eslint - - mattpocock.ts-error-translator From 5a32529cd4992275a4fd1a06553eb9675e2de20d Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 11 Oct 2022 15:09:43 +0000 Subject: [PATCH 133/159] ReflectContainer --- README.md | 2 +- src/types.ts | 80 +++++++++++++++++++++++++++++---------------- test/inject.test.ts | 25 ++++++++++++-- 3 files changed, 75 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 21c4560a..59c4791a 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ const container = inject(module); const value = container.group.value; ``` -### Context & Multiple Modules +### Context A **container** provides each **factory** with a parameter called **context**. diff --git a/src/types.ts b/src/types.ts index e5af6e54..91c77ef9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -21,23 +21,44 @@ export type Validate, C = ReflectContainer T extends C ? A : { ginject_error: { message: 'Missing dependency', - docs: 'https://docs.ginject.io/#context--multiple-modules', - missing_dependencies: Join, Paths>> + docs: 'https://docs.ginject.io/#context', + missing_dependencies: Keys, Paths>> } } : never; -export type MergeArray = - M extends [Head, ...Tail] ? ( - Tail extends [] ? Head : - Tail extends unknown[] ? Merge>, Head> : - never - ) : never; +type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } + _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] + _ContextArray = FunctionArrayToContext<_FunctionArray>, // C[] + Ctx = MergeArray<_ContextArray>, // C + _SubModules = Filter>, // {} | {} + SubModule = UnionToIntersection> // {} +> = M extends Record ? ( + Is extends true ? (IsEmpty extends true ? unknown : ReflectContainer) : + Is extends true ? (IsEmpty extends true ? unknown : ReflectContainer) : + MergeObjects> +) : unknown; + +type FunctionArrayToContext = + T extends [] ? [] : + T extends [Function1, ...Tail] + ? [Ctx, ...FunctionArrayToContext>] + : never; + +type Function1 = (args0: T, ...args: any[]) => R; + +export type MergeArray = + M extends unknown[] ? + M extends [Head, ...Tail] ? ( + Tail extends [] ? Head : + Tail extends unknown[] ? Merge>, Head> : + never + ) : never : never; export type Merge = Or, Is> extends true ? never : Or, Is> extends true ? any : Or, Is> extends true ? unknown : - // TODO(@@dd): handle functions first because classes are objects and functions? S extends Record ? T extends Record ? MergeObjects : never : T extends Record ? never : (S extends T ? S : never); @@ -49,9 +70,9 @@ type MergeObjects = : (K extends keyof T ? T[K] : never) }>; -type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; +type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; -type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; +type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; type IsEmpty = [keyof T] extends [never] ? true : false; @@ -61,26 +82,29 @@ type Or = C1 extends true ? true : C2 ex type Join = T extends Record ? { [K in keyof T]: T[K] } : T; -// TODO(@@dd): distinguish between Factory and Module -type ReflectContainer = T extends Record - ? MergeObjects any>>, ReflectContainer>>>>> - : unknown; +type Filter = Pick; -type FunctionArgs = T[keyof T] extends (arg0: infer A) => any ? A : never; +type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never; -type PickByValue = Pick; +type UnionToTuple> = [T] extends [never] ? [] : [...UnionToTuple>, L]; -type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never +type LastOf = + UnionToIntersection T : never> extends () => infer R + ? R + : never; -type Values = T[keyof T]; +type Keys = IsEmpty extends true ? [] : [keyof T]; -type Expand> = { [K in P & string]: true } +type Values = T[keyof T]; -// TODO(@@dd): is it possible to stringify symbols on the type level? -type Paths = { - [K in keyof T & (string | number)]: ( - T[K] extends Record - ? `[${K}]` | `[${K}]${Paths}` - : `[${K}]` - ) -}[keyof T & (string | number)]; +type Expand> = { [K in P & string]: true }; + +// currently symbol keys are not supported +type Paths = + M extends Record ? { + [K in keyof M & (string | number)]: ( + M[K] extends Record + ? `${P}${X}${K}` | (Is, never> extends true ? `${P}${X}${Paths}` : never) + : `${P}${X}${K}` + ) + }[keyof M & (string | number)] : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index fdc1cc67..6e9485b0 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -7,7 +7,7 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject } from '../src/inject'; -import { Module } from '../src/types'; +import { Module, Validate } from '../src/types'; describe('A dependency type', () => { @@ -337,7 +337,7 @@ describe('The inject function', () => { const ctr2 = inject(m2); // TODO(@@dd): assertions - // @ts-expect-error inferred container is missing context C1 = { groupA: { service1: A } } + // @ts-expect-error const ctr3 = inject(m3); // TODO(@@dd): assertions @@ -355,7 +355,7 @@ describe('The inject function', () => { it('should infer right container type given an ad-hoc module', () => { const ctr = inject({ hi: () => 'Hi!', - sayHi: (ctx: { hi: string }) => () => ctr.hi + sayHi: (ctx: { hi: string }) => () => ctx.hi }); tsafeAssert>(); expect(ctr.sayHi()).toBe('Hi!'); @@ -517,6 +517,25 @@ describe('The inject result', () => { }); +describe('Validate', () => { + + it('should ...', () => { + type Actual = Validate<[ + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 } + ]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://docs.ginject.io/#context"; + missing_dependencies: ['b']; + } + }; + tsafeAssert>(); + }); + +}); + describe('Module validation', () => { it('should resolve values to never if modules are incompatible', () => { From abc1d4d7f7fd978bb9f3a578d2063588654329ee Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 07:56:08 +0000 Subject: [PATCH 134/159] x --- test/inject.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/inject.test.ts b/test/inject.test.ts index 6e9485b0..5ee0f3bf 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -536,6 +536,14 @@ describe('Validate', () => { }); +describe('ReflectContainer', () => { + + it('should ...', () => { + + }); + +}); + describe('Module validation', () => { it('should resolve values to never if modules are incompatible', () => { From 5f0442b35d53f18dbe580c6d09da71584d927d58 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 08:56:12 +0000 Subject: [PATCH 135/159] docs --- src/inject.ts | 2 +- src/types.ts | 2 +- test/inject.test.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/inject.ts b/src/inject.ts index 0adf234e..885c506a 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -37,7 +37,7 @@ function proxify(module: Module, container?: C, path: string = ''): const get = (obj: Record, prop: PropertyKey, proxy: T) => { const name = path + '[' + String(prop) + ']'; if (obj[prop] === isRequested) { - throw new Error('Cyclic dependency ' + name + '. See https://docs.ginject.io/#cyclic-dependencies'); + throw new Error('Cyclic dependency ' + name + '. See https://ginject.io/#cyclic-dependencies'); } const ctr = container || (proxy as any); const val = (module as any)[prop]; diff --git a/src/types.ts b/src/types.ts index 91c77ef9..fc2dc76d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -21,7 +21,7 @@ export type Validate, C = ReflectContainer T extends C ? A : { ginject_error: { message: 'Missing dependency', - docs: 'https://docs.ginject.io/#context', + docs: 'https://ginject.io/#context', missing_dependencies: Keys, Paths>> } } : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index 5ee0f3bf..5ec258e7 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -269,7 +269,7 @@ describe('The inject function', () => { } expect(() => inject({ a: (ctx: API) => new A(ctx), b: (ctx: API) => new B(ctx) }).a - ).toThrowError('Cyclic dependency [a]. See https://docs.ginject.io/#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://ginject.io/#cyclic-dependencies'); }); it('should throw when cyclic dependency is accessed during factory function call', () => { @@ -278,7 +278,7 @@ describe('The inject function', () => { const createB = ({ a }: API) => ({ b: a.a }); expect(() => inject({ a: createA, b: createB }).a - ).toThrowError('Cyclic dependency [a]. See https://docs.ginject.io/#cyclic-dependencies'); + ).toThrowError('Cyclic dependency [a]. See https://ginject.io/#cyclic-dependencies'); }); it('should merge groups', () => { @@ -527,7 +527,7 @@ describe('Validate', () => { type Expected = { ginject_error: { message: "Missing dependency"; - docs: "https://docs.ginject.io/#context"; + docs: "https://ginject.io/#context"; missing_dependencies: ['b']; } }; From d19254874a6cb58a2a9d992e59d1b37f9defe6b4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 11:32:32 +0000 Subject: [PATCH 136/159] tests --- src/types.ts | 57 +++++++++++++++------- test/inject.test.ts | 106 ++++++++++++++++++++++++++++++++++++++-- test/merge.test.ts | 115 ++++++++++++++++++++++++++++++++++++-------- 3 files changed, 238 insertions(+), 40 deletions(-) diff --git a/src/types.ts b/src/types.ts index fc2dc76d..77ee9e0a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -26,18 +26,22 @@ export type Validate, C = ReflectContainer } } : never; -type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] _ContextArray = FunctionArrayToContext<_FunctionArray>, // C[] Ctx = MergeArray<_ContextArray>, // C _SubModules = Filter>, // {} | {} SubModule = UnionToIntersection> // {} -> = M extends Record ? ( - Is extends true ? (IsEmpty extends true ? unknown : ReflectContainer) : - Is extends true ? (IsEmpty extends true ? unknown : ReflectContainer) : - MergeObjects> -) : unknown; +> = + Is extends true ? unknown : + M extends Record ? ( + // TODO(@@dd): WIP + //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + IsEmpty extends true ? Ctx : MergeObjects, Ctx> + ) : Ctx; type FunctionArrayToContext = T extends [] ? [] : @@ -47,21 +51,38 @@ type FunctionArrayToContext = type Function1 = (args0: T, ...args: any[]) => R; -export type MergeArray = - M extends unknown[] ? - M extends [Head, ...Tail] ? ( - Tail extends [] ? Head : - Tail extends unknown[] ? Merge>, Head> : - never - ) : never : never; +export type MergeArray = + A extends unknown[] + ? A extends [Head, ...Tail] + ? Tail extends [] + ? Head + : Tail extends unknown[] + ? Merge>, Head> + : never + : never + : never; + +export type MergeArrays = + S extends [Head, ...Tail] + ? T extends [Head, ...Tail] + ? [Merge, Head>, ...MergeArrays, Tail>] + : S // T is empty [] + : T; // S is empty export type Merge = - Or, Is> extends true ? never : - Or, Is> extends true ? any : + Is extends true ? S : // identity + Or, Is> extends true ? never : Or, Is> extends true ? unknown : - S extends Record - ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never); + Is extends true ? never : Is extends true ? S : + S extends any[] + ? T extends any[] ? MergeArrays : never + : S extends (...args: infer SA) => infer SR + ? T extends (...args: infer TA) => infer TR + ? Merge extends (infer A)[] ? (...args: A[]) => Merge : never + : never + : S extends Record + ? T extends Record ? MergeObjects : never + : T extends Record ? never : (S extends T ? S : never) type MergeObjects = Join<{ diff --git a/test/inject.test.ts b/test/inject.test.ts index 5ec258e7..924b4759 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -7,7 +7,8 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject } from '../src/inject'; -import { Module, Validate } from '../src/types'; +import { Module, ReflectContainer, Validate } from '../src/types'; +import { merge } from '../src/merge'; describe('A dependency type', () => { @@ -538,8 +539,107 @@ describe('Validate', () => { describe('ReflectContainer', () => { - it('should ...', () => { - + it('should reflect never', () => { + type Actual = ReflectContainer; + type Expected = never; + tsafeAssert>(); + }); + + it('should reflect unknown', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect any', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect null', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect undefined', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect module with one factory and no context', () => { + const module = { + f: () => 1 + }; + type Actual = ReflectContainer; + type Expected = {}; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context = container', () => { + const module = { + f: (ctx: { f: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + f: number + }; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context ∩ container = ∅', () => { + const module = { + f: (ctx: { g: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + g: number + }; + tsafeAssert>(); + }); + + it('should deep reflect module', () => { + const module = { + a: (ctx: { x: boolean }) => 1, + b: { + c: (ctx: { + y: { + yy: string + } + }) => 1 + }, + c: { + d: { + z: (ctx: { + z: number + }) => 1 + } + } + }; + type Actual = ReflectContainer; + type Expected = { + x: boolean + y: { + yy: string + } + z: number + }; + tsafeAssert>(); + }); + + it('should reflect module with contradictory contexts', () => { + const module = merge({ + b: (ctx: { b: boolean }) => 1 + }, { + b: (ctx: { b: string }) => 1, + }); + type Actual = ReflectContainer; + type Expected = { + b: never + }; + tsafeAssert>(); }); }); diff --git a/test/merge.test.ts b/test/merge.test.ts index 4a86498e..8b0a7d86 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -15,12 +15,52 @@ describe('type Merge', () => { describe('universal types', () => { + it('should honor identity', () => { + + type Id = Equals, T>; + + // universal types + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + + // (non-)values + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + + // arrays + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert>(); + + // functions + tsafeAssert void>>(); + tsafeAssert void>>(); + tsafeAssert void>>(); + + tsafeAssert number>>(); + tsafeAssert number>>(); + tsafeAssert number>>(); + + tsafeAssert { a: number }>>(); + tsafeAssert { a: number }>>(); + tsafeAssert { a: number }>>(); + + // objects + tsafeAssert>(); + tsafeAssert>(); + tsafeAssert number } }>>(); + }) + it('should merge any', () => { tsafeAssert, any>>(); - tsafeAssert, any>>(); - tsafeAssert, any>>(); - tsafeAssert, any>>(); - tsafeAssert, any>>(); + tsafeAssert, never>>(); + tsafeAssert, { a: 1 }>>(); + tsafeAssert, never>>(); + tsafeAssert, 1>>(); }); it('should merge never', () => { @@ -105,23 +145,41 @@ describe('type Merge', () => { describe('array types', () => { - it('should merge array', () => { + it('should merge elements of type never', () => { + tsafeAssert, [1, never]>>(); + tsafeAssert, [never, 1]>>(); + tsafeAssert, [1, never]>>(); + tsafeAssert, [never, 1]>>(); + }); + + it('should merge elements of type unknown', () => { + tsafeAssert, [1, unknown]>>(); + tsafeAssert, [unknown, 1]>>(); + tsafeAssert, [1, unknown]>>(); + tsafeAssert, [unknown, 1]>>(); + }); + + it('should merge elements of type any', () => { + tsafeAssert, [1, never]>>(); + tsafeAssert, [never, 1]>>(); + tsafeAssert, [1, '']>>(); + tsafeAssert, ['', 1]>>(); + }); + + it('should merge array elements if source extends target element type', () => { tsafeAssert, any[]>>(); tsafeAssert, []>>(); tsafeAssert, [1]>>(); - tsafeAssert, never>>(); - tsafeAssert, never>>(); - tsafeAssert, never>>(); tsafeAssert, [1]>>(); - tsafeAssert, never>>(); tsafeAssert, [1, '']>>(); - tsafeAssert, never>>(); - tsafeAssert, [1, any]>>(); - tsafeAssert, [1, '']>>(); - tsafeAssert, [1, never]>>(); - tsafeAssert, never>>(); - tsafeAssert, never>>(); - tsafeAssert, [1, '']>>(); + }); + + + it('should not merge array elements if source does not extend target', () => { + tsafeAssert, [never]>>(); + tsafeAssert, [never]>>(); + tsafeAssert, [never]>>(); + tsafeAssert, [never, never]>>(); }); }); @@ -162,9 +220,16 @@ describe('type Merge', () => { tsafeAssert void, () => unknown>, () => void>>(); }); - it('should never merge if source Fn returns void and target Fn returns 1/never', () => { - tsafeAssert void, () => 1>, never>>(); - tsafeAssert void, () => never>, never>>(); + it('should never merge if source Fn returns void and target Fn returns 1', () => { + type Actual = Merge<() => void, () => 1>; + type Expected = (...args: never[]) => never; + tsafeAssert>(); + }); + + it('should never merge if source Fn returns void and target Fn returns never', () => { + type Actual = Merge<() => void, () => never>; + type Expected = (...args: never[]) => never; + tsafeAssert>(); }); it('should merge any function Fn with () => void', () => { @@ -172,6 +237,18 @@ describe('type Merge', () => { tsafeAssert void>, Fn>>(); }); + it('should merge functions with inconsistent arguments', () => { + type Actual = Merge<{ + b: (ctx: { b: boolean }) => number + }, { + b: (ctx: { b: string }) => number, + }>; + type Expected = { + b: (ctx: { b: never }) => number + } + tsafeAssert>() + }); + // TODO(@@dd): classes are functions }); From 21bafb574add7a9cf010e9e1bb901a4ff2dab1cb Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 14:39:23 +0000 Subject: [PATCH 137/159] reworked Merge type --- src/types.ts | 52 +++-- test/merge.test.ts | 474 +++++++++++++++++++-------------------------- 2 files changed, 227 insertions(+), 299 deletions(-) diff --git a/src/types.ts b/src/types.ts index 77ee9e0a..b4c9e705 100644 --- a/src/types.ts +++ b/src/types.ts @@ -49,8 +49,6 @@ type FunctionArrayToContext = ? [Ctx, ...FunctionArrayToContext>] : never; -type Function1 = (args0: T, ...args: any[]) => R; - export type MergeArray = A extends unknown[] ? A extends [Head, ...Tail] @@ -62,27 +60,35 @@ export type MergeArray = : never : never; -export type MergeArrays = +export type Merge = + Is extends true ? S : // identity + Is extends true ? S : // if target expects nothing it is ok to provide something + Or, Is> extends true ? never : // Merge = Merge = never + Or, Is> extends true ? unknown : // Merge = Merge = unknown + Is extends true ? never : Is extends true ? S : // Merge = X, Merge = never + S extends any[] ? (T extends any[] ? MergeArrays : (S extends T ? S : never)) : + S extends Fn ? (T extends Fn ? MergeFunctions : (S extends T ? S : never)) : + S extends Obj ? (T extends Obj ? MergeObjects : (S extends T ? S : never)) : + S extends T ? S : never; + +// Consumers of T expect a certain abount of elements. +// It is required that S has at less or equal elements as T. +// It is sufficient, if elements of S extend elements of T. +type MergeArrays = S extends [Head, ...Tail] ? T extends [Head, ...Tail] ? [Merge, Head>, ...MergeArrays, Tail>] - : S // T is empty [] - : T; // S is empty - -export type Merge = - Is extends true ? S : // identity - Or, Is> extends true ? never : - Or, Is> extends true ? unknown : - Is extends true ? never : Is extends true ? S : - S extends any[] - ? T extends any[] ? MergeArrays : never - : S extends (...args: infer SA) => infer SR - ? T extends (...args: infer TA) => infer TR - ? Merge extends (infer A)[] ? (...args: A[]) => Merge : never - : never - : S extends Record - ? T extends Record ? MergeObjects : never - : T extends Record ? never : (S extends T ? S : never) + : [never] // T = [], users which expect T don't provide more elements required by S + : []; // S = [], S ignores additions elements required by users of T + +type MergeFunctions = + S extends (...args: infer SA) => infer SR + ? T extends (...args: infer TA) => infer TR + ? Merge extends infer A + ? A extends any[] ? (...args: A) => Merge : never + : never + : never + : never; type MergeObjects = Join<{ @@ -91,6 +97,12 @@ type MergeObjects = : (K extends keyof T ? T[K] : never) }>; +type Obj = Record; + +type Fn = (...args: T) => R; + +type Function1 = (args0: T, ...args: any[]) => R; + type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; diff --git a/test/merge.test.ts b/test/merge.test.ts index 8b0a7d86..4a844a0a 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -102,9 +102,9 @@ describe('type Merge', () => { it('should merge void', () => { tsafeAssert, void>>(); tsafeAssert, never>>(); - tsafeAssert, never>>(); + tsafeAssert, { a: 1 }>>(); tsafeAssert, never>>(); - tsafeAssert, never>>(); + tsafeAssert, 1>>(); }); }); @@ -174,7 +174,6 @@ describe('type Merge', () => { tsafeAssert, [1, '']>>(); }); - it('should not merge array elements if source does not extend target', () => { tsafeAssert, [never]>>(); tsafeAssert, [never]>>(); @@ -194,10 +193,10 @@ describe('type Merge', () => { }); it('should never merge different function', () => { - tsafeAssert void, (a: string) => void>, never>>(); - tsafeAssert void, (a: number) => void>, never>>(); - tsafeAssert string, () => number>, never>>(); - tsafeAssert number, () => string>, never>>(); + tsafeAssert void, (a: string) => void>, (a: never) => void>>(); + tsafeAssert void, (a: number) => void>, (a: never) => void>>(); + tsafeAssert string, () => number>, () => never>>(); + tsafeAssert number, () => string>, () => never>>(); }); it('should merge if source Fn ignores target Fn args', () => { @@ -205,7 +204,7 @@ describe('type Merge', () => { }); it('should never merge if source Fn requires more args than target Fn', () => { - tsafeAssert void, () => void>, never>>(); + tsafeAssert void, () => void>, (a: never) => void>>(); }); it('should merge if source Fn returns 1 and target Fn returns void', () => { @@ -217,24 +216,24 @@ describe('type Merge', () => { it('should merge if source Fn returns void and target Fn returns any/unknown', () => { tsafeAssert void, () => any>, () => void>>(); - tsafeAssert void, () => unknown>, () => void>>(); + tsafeAssert void, () => unknown>, () => unknown>>(); }); it('should never merge if source Fn returns void and target Fn returns 1', () => { type Actual = Merge<() => void, () => 1>; - type Expected = (...args: never[]) => never; + type Expected = () => never; tsafeAssert>(); }); it('should never merge if source Fn returns void and target Fn returns never', () => { type Actual = Merge<() => void, () => never>; - type Expected = (...args: never[]) => never; + type Expected = () => never; tsafeAssert>(); }); it('should merge any function Fn with () => void', () => { tsafeAssert void, Fn>, () => void>>(); - tsafeAssert void>, Fn>>(); + tsafeAssert void>, () => any>>(); }); it('should merge functions with inconsistent arguments', () => { @@ -258,66 +257,57 @@ describe('type Merge', () => { describe('undefined properties', () => { it('should merge empty objects', () => { - type Source = {}; - type Target = {}; + type Actual = Merge<{}, {}>; type Expected = {}; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: 1 with target: non-existing property', () => { - type Source = { a: 1 }; - type Target = {}; + type Actual = Merge<{ a: 1 }, {}>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: optional prtoperty with target: non-existing property', () => { - type Source = { a?: 1 }; - type Target = {}; + type Actual = Merge<{ a?: 1 }, {}>; type Expected = { a: 1 | undefined }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: 1 with target: optional number', () => { - type Source = { a: 1 }; - type Target = { a?: number }; + type Actual = Merge<{ a: 1 }, { a?: number }>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: optional 1 with target: optional number', () => { - type Source = { a?: 1 }; - type Target = { a?: number }; + type Actual = Merge<{ a?: 1 }, { a?: number }>; type Expected = { a: 1 | undefined }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: undefined', () => { - type Source = { a: number }; - type Target = { a: undefined }; + type Actual = Merge<{ a: number }, { a: undefined }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: undefined with target: number', () => { - type Source = { a: undefined }; - type Target = { a: number }; + type Actual = Merge<{ a: undefined }, { a: number }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: 1 with target: undefined', () => { - type Source = { a: 1 }; - type Target = { a: undefined }; + type Actual = Merge<{ a: 1 }, { a: undefined }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: undefined with target: 1', () => { - type Source = { a: undefined }; - type Target = { a: 1 }; + type Actual = Merge<{ a: undefined }, { a: 1 }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -325,45 +315,39 @@ describe('type Merge', () => { describe('null properties', () => { it('should merge source: null with target: non-existing property', () => { - type Source = { a: null }; - type Target = {}; + type Actual = Merge<{ a: null }, {}>; type Expected = { a: null }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: 1 with target: null', () => { - type Source = { a: 1 }; - type Target = { a: null }; + type Actual = Merge<{ a: 1 }, { a: null }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: null with target: 1', () => { - type Source = { a: null }; - type Target = { a: 1 }; + type Actual = Merge<{ a: null }, { a: 1 }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: 1 with target: nullable number', () => { - type Source = { a: 1 }; - type Target = { a: number | null }; + type Actual = Merge<{ a: 1 }, { a: number | null }>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: nullable 1 with target: nullable number', () => { - type Source = { a: 1 | null }; - type Target = { a: number | null }; + type Actual = Merge<{ a: 1 | null }, { a: number | null }>; type Expected = { a: 1 | null }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: nullable number with target: nullable 1', () => { - type Source = { a: number | null }; - type Target = { a: 1 | null }; + type Actual = Merge<{ a: number | null }, { a: 1 | null }>; type Expected = { a: null }; // intersection of Source and Target because number does not extend 1 - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -371,115 +355,99 @@ describe('type Merge', () => { describe('boolean properties', () => { it('should merge non-empty source with empty target', () => { - type Source = { a: true }; - type Target = {}; + type Actual = Merge<{ a: true }, {}>; type Expected = { a: true }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge empty source with non-empty target', () => { - type Source = {}; - type Target = { a: true }; + type Actual = Merge<{}, { a: true }>; type Expected = { a: true }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge non-empty types having different properties', () => { - type Source = { a: true }; - type Target = { b: false }; + type Actual = Merge<{ a: true }, { b: false }>; type Expected = { a: true, b: false }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: true with target: boolean, in the presence of distinct properties', () => { - type Source = { a: true, b: number }; - type Target = { a: boolean, c: string }; + type Actual = Merge<{ a: true, b: number }, { a: boolean, c: string }>; type Expected = { a: true, b: number, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: boolean with target: true, in the presence of distinct properties', () => { - type Source = { a: boolean, b: number }; - type Target = { a: true, c: string }; + type Actual = Merge<{ a: boolean, b: number }, { a: true, c: string }>; type Expected = { a: true, b: number, c: string }; // a: true is the only source a: boolean that extends the target a: true - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: true with target: true', () => { - type Source = { a: true }; - type Target = { a: true }; + type Actual = Merge<{ a: true }, { a: true }>; type Expected = { a: true }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: true with target: false', () => { - type Source = { a: true }; - type Target = { a: false }; + type Actual = Merge<{ a: true }, { a: false }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: boolean with target: boolean', () => { - type Source = { a: boolean }; - type Target = { a: boolean }; + type Actual = Merge<{ a: boolean }, { a: boolean }>; type Expected = { a: boolean }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: undefined', () => { - type Source = { a: boolean }; - type Target = { a: undefined }; + type Actual = Merge<{ a: boolean }, { a: undefined }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: null', () => { - type Source = { a: boolean }; - type Target = { a: null }; + type Actual = Merge<{ a: boolean }, { a: null }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: number', () => { - type Source = { a: boolean }; - type Target = { a: number }; + type Actual = Merge<{ a: boolean }, { a: number }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: string', () => { - type Source = { a: boolean }; - type Target = { a: string }; + type Actual = Merge<{ a: boolean }, { a: string }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: any[]', () => { - type Source = { a: boolean }; - type Target = { a: any[] }; + type Actual = Merge<{ a: boolean }, { a: any[] }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: object', () => { - type Source = { a: boolean }; - type Target = { a: object }; + type Actual = Merge<{ a: boolean }, { a: object }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: boolean with target: {}', () => { - type Source = { a: boolean }; - type Target = { a: {} }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: boolean }, { a: {} }>; + type Expected = { a: boolean }; + tsafeAssert>(); }); it('should never merge source: {} with target: boolean', () => { - type Source = { a: {} }; - type Target = { a: boolean }; + type Actual = Merge<{ a: {} }, { a: boolean }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -487,115 +455,99 @@ describe('type Merge', () => { describe('number properties', () => { it('should merge non-empty source with empty target', () => { - type Source = { a: 1 }; - type Target = {}; + type Actual = Merge<{ a: 1 }, {}>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge empty source with non-empty target', () => { - type Source = {}; - type Target = { a: 1 }; + type Actual = Merge<{}, { a: 1 }>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge non-empty types having different properties', () => { - type Source = { a: 1 }; - type Target = { b: 2 }; + type Actual = Merge<{ a: 1 }, { b: 2 }>; type Expected = { a: 1, b: 2 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: 1 with target: number, in the presence of distinct properties', () => { - type Source = { a: 1, b: boolean }; - type Target = { a: number, c: string }; + type Actual = Merge<{ a: 1, b: boolean }, { a: number, c: string }>; type Expected = { a: 1, b: boolean, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: 1, in the presence of distinct properties', () => { - type Source = { a: number, b: boolean }; - type Target = { a: 1, c: string }; + type Actual = Merge<{ a: number, b: boolean }, { a: 1, c: string }>; type Expected = { a: never, b: boolean, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: 1 with target: 1', () => { - type Source = { a: 1 }; - type Target = { a: 1 }; + type Actual = Merge<{ a: 1 }, { a: 1 }>; type Expected = { a: 1 }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: 1 with target: 2', () => { - type Source = { a: 1 }; - type Target = { a: 2 }; + type Actual = Merge<{ a: 1 }, { a: 2 }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: number with target: number', () => { - type Source = { a: number }; - type Target = { a: number }; + type Actual = Merge<{ a: number }, { a: number }>; type Expected = { a: number }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: undefined', () => { - type Source = { a: number }; - type Target = { a: undefined }; + type Actual = Merge<{ a: number }, { a: undefined }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: null', () => { - type Source = { a: number }; - type Target = { a: null }; + type Actual = Merge<{ a: number }, { a: null }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: boolean', () => { - type Source = { a: number }; - type Target = { a: boolean }; + type Actual = Merge<{ a: number }, { a: boolean }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: string', () => { - type Source = { a: number }; - type Target = { a: string }; + type Actual = Merge<{ a: number }, { a: string }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: any[]', () => { - type Source = { a: number }; - type Target = { a: any[] }; + type Actual = Merge<{ a: number }, { a: any[] }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: object', () => { - type Source = { a: number }; - type Target = { a: object }; + type Actual = Merge<{ a: number }, { a: object }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: number with target: {}', () => { - type Source = { a: number }; - type Target = { a: {} }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: number }, { a: {} }>; + type Expected = { a: number }; + tsafeAssert>(); }); it('should never merge source: {} with target: number', () => { - type Source = { a: {} }; - type Target = { a: number }; + type Actual = Merge<{ a: {} }, { a: number }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -603,115 +555,99 @@ describe('type Merge', () => { describe('string properties', () => { it('should merge non-empty source with empty target', () => { - type Source = { a: '' }; - type Target = {}; + type Actual = Merge<{ a: '' }, {}>; type Expected = { a: '' }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge empty source with non-empty target', () => { - type Source = {}; - type Target = { a: '' }; + type Actual = Merge<{}, { a: '' }>; type Expected = { a: '' }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge non-empty types having different properties', () => { - type Source = { a: 'a' }; - type Target = { b: 'b' }; + type Actual = Merge<{ a: 'a' }, { b: 'b' }>; type Expected = { a: 'a', b: 'b' }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: "a" with target: string, in the presence of distinct properties', () => { - type Source = { a: "a", b: boolean }; - type Target = { a: string, c: string }; + type Actual = Merge<{ a: "a", b: boolean }, { a: string, c: string }>; type Expected = { a: "a", b: boolean, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: "a", in the presence of distinct properties', () => { - type Source = { a: string, b: boolean }; - type Target = { a: 'a', c: string }; + type Actual = Merge<{ a: string, b: boolean }, { a: 'a', c: string }>; type Expected = { a: never, b: boolean, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: "a" with target: "a"', () => { - type Source = { a: 'a' }; - type Target = { a: 'a' }; + type Actual = Merge<{ a: 'a' }, { a: 'a' }>; type Expected = { a: 'a' }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: "a" with target: "b"', () => { - type Source = { a: 'a' }; - type Target = { a: 'b' }; + type Actual = Merge<{ a: 'a' }, { a: 'b' }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: string with target: string', () => { - type Source = { a: string }; - type Target = { a: string }; + type Actual = Merge<{ a: string }, { a: string }>; type Expected = { a: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: undefined', () => { - type Source = { a: string }; - type Target = { a: undefined }; + type Actual = Merge<{ a: string }, { a: undefined }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: null', () => { - type Source = { a: string }; - type Target = { a: null }; + type Actual = Merge<{ a: string }, { a: null }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: boolean', () => { - type Source = { a: string }; - type Target = { a: boolean }; + type Actual = Merge<{ a: string }, { a: boolean }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: number', () => { - type Source = { a: string }; - type Target = { a: number }; + type Actual = Merge<{ a: string }, { a: number }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: any[]', () => { - type Source = { a: string }; - type Target = { a: any[] }; + type Actual = Merge<{ a: string }, { a: any[] }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: object', () => { - type Source = { a: string }; - type Target = { a: object }; + type Actual = Merge<{ a: string }, { a: object }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: string with target: {}', () => { - type Source = { a: string }; - type Target = { a: {} }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: string }, { a: {} }>; + type Expected = { a: string }; + tsafeAssert>(); }); it('should never merge source: {} with target: string', () => { - type Source = { a: {} }; - type Target = { a: string }; + type Actual = Merge<{ a: {} }, { a: string }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -719,122 +655,105 @@ describe('type Merge', () => { describe('array properties', () => { it('should merge non-empty source with empty target', () => { - type Source = { a: [] }; - type Target = {}; + type Actual = Merge<{ a: [] }, {}>; type Expected = { a: [] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge empty source with non-empty target', () => { - type Source = {}; - type Target = { a: [] }; + type Actual = Merge<{}, { a: [] }>; type Expected = { a: [] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge non-empty types having different properties', () => { - type Source = { a: ['a'] }; - type Target = { b: ['b'] }; + type Actual = Merge<{ a: ['a'] }, { b: ['b'] }>; type Expected = { a: ['a'], b: ['b'] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should merge source: ["a"] with target: [string], in the presence of distinct properties', () => { - type Source = { a: ["a"], b: boolean }; - type Target = { a: [string], c: string }; + type Actual = Merge<{ a: ["a"], b: boolean }, { a: [string], c: string }>; type Expected = { a: ["a"], b: boolean, c: string }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: [string] with target: ["a"], in the presence of distinct properties', () => { - type Source = { a: [string], b: boolean }; - type Target = { a: ['a'], c: string }; - type Expected = { a: never, b: boolean, c: string }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string], b: boolean }, { a: ['a'], c: string }>; + type Expected = { a: [never], b: boolean, c: string }; + tsafeAssert>(); }); it('should merge source: ["a"] with target: ["a"]', () => { - type Source = { a: ['a'] }; - type Target = { a: ['a'] }; + type Actual = Merge<{ a: ['a'] }, { a: ['a'] }>; type Expected = { a: ['a'] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: ["a"] with target: ["b"]', () => { - type Source = { a: ['a'] }; - type Target = { a: ['b'] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: ['a'] }, { a: ['b'] }>; + type Expected = { a: [never] }; + tsafeAssert>(); }); it('should merge source: [string] with target: [string]', () => { - type Source = { a: [string] }; - type Target = { a: [string] }; + type Actual = Merge<{ a: [string] }, { a: [string] }>; type Expected = { a: [string] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: [string] with target: [undefined]', () => { - type Source = { a: [string] }; - type Target = { a: [undefined] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: [undefined] }>; + type Expected = { a: [never] }; + tsafeAssert>(); }); it('should never merge source: [string] with target: [null]', () => { - type Source = { a: [string] }; - type Target = { a: [null] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: [null] }>; + type Expected = { a: [never] }; + tsafeAssert>(); }); it('should never merge source: [string] with target: [boolean]', () => { - type Source = { a: [string] }; - type Target = { a: [boolean] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: [boolean] }>; + type Expected = { a: [never] }; + tsafeAssert>(); }); it('should never merge source: [string] with target: [number]', () => { - type Source = { a: [string] }; - type Target = { a: [number] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: [number] }>; + type Expected = { a: [never] }; + tsafeAssert>(); }); it('should merge source: [string] with target: any[]', () => { - type Source = { a: [string] }; - type Target = { a: any[] }; - type Expected = { a: [string] }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: any[] }>; + type Expected = { a: [never] }; // any[] isn't [any] and could be [], so this is ok! + tsafeAssert>(); }); it('should never merge source: any[] with target: [string]', () => { - type Source = { a: any[] }; - type Target = { a: [string] }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: any[] }, { a: [string] }>; + type Expected = { a: [] }; + tsafeAssert>(); }); it('should merge source: [string] with target: object', () => { - type Source = { a: [string] }; - type Target = { a: object }; + type Actual = Merge<{ a: [string] }, { a: object }>; type Expected = { a: [string] }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge source: [string] with target: {}', () => { - type Source = { a: [string] }; - type Target = { a: {} }; - type Expected = { a: never }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: [string] }, { a: {} }>; + type Expected = { a: [string] }; + tsafeAssert>(); }); it('should never merge source: {} with target: [string]', () => { - type Source = { a: {} }; - type Target = { a: [string] }; + type Actual = Merge<{ a: {} }, { a: [string] }>; type Expected = { a: never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -842,17 +761,15 @@ describe('type Merge', () => { describe('function properties', () => { it('should merge source: Fn with target: () => void', () => { - type Source = { a: Fn }; - type Target = { a: () => void }; - type Expected = { a: Fn }; - tsafeAssert, Expected>>(); + type Actual = Merge<{ a: Fn }, { a: () => void }>; + type Expected = { a: () => any }; + tsafeAssert>(); }); it('should merge source: () => void with target: Fn', () => { - type Source = { a: () => void }; - type Target = { a: Fn }; + type Actual = Merge<{ a: () => void }, { a: Fn }>; type Expected = { a: () => void }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -860,17 +777,15 @@ describe('type Merge', () => { describe('object properties', () => { it('should merge deep properties that are assignable', () => { - type Source = { a: { b: 1 } }; - type Target = { a: { b: number } }; + type Actual = Merge<{ a: { b: 1 } }, { a: { b: number } }>; type Expected = { a: { b: 1 } }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should never merge deep properties that aren\'t assignable', () => { - type Source = { a: { b: number } }; - type Target = { a: { b: 1 } }; + type Actual = Merge<{ a: { b: number } }, { a: { b: 1 } }>; type Expected = { a: { b: never } }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); }); @@ -903,13 +818,14 @@ describe('type MergeArray', () => { { b: () => true, d: () => string }, { a: () => B, c: () => 1 } ]; + type Actual = MergeArray; type Expected = { a: () => B, b: () => true, c: () => 1, - d: never + d: () => never }; - tsafeAssert, Expected>>(); + tsafeAssert>(); }); it('should deep merge array with three elements', () => { From b22f123af87d4e4bf1945cbac6583b8c6b3fecad Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 15:09:36 +0000 Subject: [PATCH 138/159] ReflectContainer --- src/types.ts | 40 ++++++++++++++++++++++++++-------------- test/inject.test.ts | 10 +++++----- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/types.ts b/src/types.ts index b4c9e705..74e2a25a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -29,25 +29,37 @@ export type Validate, C = ReflectContainer export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] - _ContextArray = FunctionArrayToContext<_FunctionArray>, // C[] + _ContextArray = MapFunctionsToContexts<_FunctionArray>, // C[] Ctx = MergeArray<_ContextArray>, // C _SubModules = Filter>, // {} | {} SubModule = UnionToIntersection> // {} > = - Is extends true ? unknown : - M extends Record ? ( - // TODO(@@dd): WIP - //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - IsEmpty extends true ? Ctx : MergeObjects, Ctx> - ) : Ctx; - -type FunctionArrayToContext = + Is extends true ? {} : // no contexts found => result is the empty context + Is extends true ? unknown : + M extends Record ? ( + // TODO(@@dd): WIP + //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + IsEmpty extends true ? Ctx : MergeObjects, Ctx> + ) : Ctx; + +const module = { + f: () => 1 +}; +type M = typeof module; +type _Functions = Filter +type _FunctionArray = UnionToTuple<_Functions[keyof _Functions]> +type _ContextArray = MapFunctionsToContexts<_FunctionArray> +type Ctx = MergeArray<_ContextArray> +type Actual = ReflectContainer; +type Expected = {}; + +type MapFunctionsToContexts = T extends [] ? [] : - T extends [Function1, ...Tail] - ? [Ctx, ...FunctionArrayToContext>] - : never; + T extends [Function1, ...Tail] + ? Is extends true ? MapFunctionsToContexts> : [C, ...MapFunctionsToContexts>] + : never; // we expect only functions in array T export type MergeArray = A extends unknown[] diff --git a/test/inject.test.ts b/test/inject.test.ts index 924b4759..423c9020 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -541,31 +541,31 @@ describe('ReflectContainer', () => { it('should reflect never', () => { type Actual = ReflectContainer; - type Expected = never; + type Expected = {}; tsafeAssert>(); }); it('should reflect unknown', () => { type Actual = ReflectContainer; - type Expected = unknown; + type Expected = {}; tsafeAssert>(); }); it('should reflect any', () => { type Actual = ReflectContainer; - type Expected = unknown; + type Expected = {}; tsafeAssert>(); }); it('should reflect null', () => { type Actual = ReflectContainer; - type Expected = unknown; + type Expected = {}; tsafeAssert>(); }); it('should reflect undefined', () => { type Actual = ReflectContainer; - type Expected = unknown; + type Expected = {}; tsafeAssert>(); }); From 302fd7bdf43536d76cc375d5fa5546b3f15406ad Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 15:20:36 +0000 Subject: [PATCH 139/159] cleanup --- src/types.ts | 11 ----------- test/inject.test.ts | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/types.ts b/src/types.ts index 74e2a25a..1ddf8b71 100644 --- a/src/types.ts +++ b/src/types.ts @@ -44,17 +44,6 @@ export type ReflectContainer extends true ? Ctx : MergeObjects, Ctx> ) : Ctx; -const module = { - f: () => 1 -}; -type M = typeof module; -type _Functions = Filter -type _FunctionArray = UnionToTuple<_Functions[keyof _Functions]> -type _ContextArray = MapFunctionsToContexts<_FunctionArray> -type Ctx = MergeArray<_ContextArray> -type Actual = ReflectContainer; -type Expected = {}; - type MapFunctionsToContexts = T extends [] ? [] : T extends [Function1, ...Tail] diff --git a/test/inject.test.ts b/test/inject.test.ts index 423c9020..e63f1ffd 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -644,7 +644,7 @@ describe('ReflectContainer', () => { }); -describe('Module validation', () => { +describe('Validate module', () => { it('should resolve values to never if modules are incompatible', () => { const { a } = inject({ a: () => 1 }, { a: () => ''}) From a0ad2807b749fea56ee0bada1d34b6d0ce15b476 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Thu, 13 Oct 2022 15:29:42 +0000 Subject: [PATCH 140/159] cleanup --- src/types.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/types.ts b/src/types.ts index 1ddf8b71..d5018ae6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -34,15 +34,14 @@ export type ReflectContainer>, // {} | {} SubModule = UnionToIntersection> // {} > = - Is extends true ? {} : // no contexts found => result is the empty context - Is extends true ? unknown : - M extends Record ? ( - // TODO(@@dd): WIP - //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - IsEmpty extends true ? Ctx : MergeObjects, Ctx> - ) : Ctx; + Is extends true ? unknown : + M extends Record ? ( + // TODO(@@dd): WIP + //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : + IsEmpty extends true ? Ctx : MergeObjects, Ctx> + ) : Ctx; type MapFunctionsToContexts = T extends [] ? [] : From d6e1e3c03d1dd3f60db7ae8f31200c0ef2990d91 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 14 Oct 2022 11:33:59 +0000 Subject: [PATCH 141/159] finished ReflectContainer --- src/types.ts | 15 +- test/inject.test.ts | 367 ++++++++++++++++++++++---------------------- test/merge.test.ts | 13 +- 3 files changed, 198 insertions(+), 197 deletions(-) diff --git a/src/types.ts b/src/types.ts index d5018ae6..12e4836d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -30,18 +30,15 @@ export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] _ContextArray = MapFunctionsToContexts<_FunctionArray>, // C[] - Ctx = MergeArray<_ContextArray>, // C + _Ctx = MergeArray<_ContextArray>, // C | never + Ctx = Is<_Ctx, never> extends true ? {} : _Ctx, // C _SubModules = Filter>, // {} | {} SubModule = UnionToIntersection> // {} > = Is extends true ? unknown : - M extends Record ? ( - // TODO(@@dd): WIP - //Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - // Is extends true ? (IsEmpty extends true ? Ctx : ReflectContainer) : - IsEmpty extends true ? Ctx : MergeObjects, Ctx> - ) : Ctx; + M extends Record + ? MergeObjects, Ctx> // TODO(@@dd): I would like to use Merge instead of MergeObjects + : unknown; type MapFunctionsToContexts = T extends [] ? [] : @@ -90,7 +87,7 @@ type MergeFunctions = : never : never; -type MergeObjects = +export type MergeObjects = Join<{ [K in keyof S | keyof T]: K extends keyof S ? (K extends keyof T ? Merge : S[K]) diff --git a/test/inject.test.ts b/test/inject.test.ts index e63f1ffd..efa7b855 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -8,7 +8,186 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject } from '../src/inject'; import { Module, ReflectContainer, Validate } from '../src/types'; -import { merge } from '../src/merge'; + +describe('ReflectContainer', () => { + + it('should reflect any', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect unknown', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect never', () => { + type Actual = ReflectContainer; + type Expected = never; + tsafeAssert>(); + }); + + it('should reflect null', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect undefined', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect module with one factory and no context', () => { + const module = { + f: () => 1 + }; + type Actual = ReflectContainer; + type Expected = {}; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context = container', () => { + const module = { + f: (ctx: { f: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + f: number + }; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context ∩ container = ∅', () => { + const module = { + f: (ctx: { g: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + g: number + }; + tsafeAssert>(); + }); + + it('should deep reflect module', () => { + const module = { + a: (ctx: { x: boolean }) => 1, + b: { + c: (ctx: { + y: { + yy: string + } + }) => 1 + }, + c: { + d: { + z: (ctx: { + z: number + }) => 1 + } + } + }; + type Actual = ReflectContainer; + type Expected = { + x: boolean + y: { + yy: string + } + z: number + }; + tsafeAssert>(); + }); + + it('should reflect module with a property that is never satisfied', () => { + type M = { + b: (ctx: { b: never }) => number + }; + type Actual = ReflectContainer; + type Expected = { + b: never + }; + tsafeAssert>(); + }); + +}); + +describe('Validate', () => { + + it('should ...', () => { + type Actual = Validate<[ + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 } + ]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b']; + } + }; + tsafeAssert>(); + }); + + it('should resolve values to never if modules are incompatible', () => { + const { a } = inject({ a: () => 1 }, { a: () => ''}) + tsafeAssert>(); + expect(a).toBe(''); + }); + + it('should now accept an invalid module', () => { + // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. + // cause: inject expects arguments [Module, ...Module] + inject({ a: 1 }) + }); + + // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never + it('should merge to incompatible values', () => { + // no validation error but results in { a: never } + // cause: { a: 1 & 'a' } resolves to { a: never } + const ctr = inject({ a: () => 1 }, { a: () => 'a' }) + tsafeAssert>() + }); + + it('should return validation error, if the container is missing a value required by a context', () => { + inject( + // @ts-expect-error The resulting container is missing { b: boolean } + { f: (ctx: { b: boolean }) => 1 } + ); + }); + + it('should provide a missing dependency by adding another module', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => 1 }, + ); + tsafeAssert>(); + }); + + // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! + it('should resolve to unknown if two modules are incompatible', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => '' }, + ); + tsafeAssert>(); + }); + + it('should not compile, if two factories require different types for the same dependency', () => { + const ctr = inject( + // @ts-expect-error ctx: { b: boolean & string } is invalid + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 }, + { b: () => '' } + ); + tsafeAssert>(); + }); + +}); describe('A dependency type', () => { @@ -517,189 +696,3 @@ describe('The inject result', () => { }); }); - -describe('Validate', () => { - - it('should ...', () => { - type Actual = Validate<[ - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 } - ]>; - type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } - }; - tsafeAssert>(); - }); - -}); - -describe('ReflectContainer', () => { - - it('should reflect never', () => { - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect unknown', () => { - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect any', () => { - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect null', () => { - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect undefined', () => { - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect module with one factory and no context', () => { - const module = { - f: () => 1 - }; - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect module with one factory and a context = container', () => { - const module = { - f: (ctx: { f: number }) => 1 - }; - type Actual = ReflectContainer; - type Expected = { - f: number - }; - tsafeAssert>(); - }); - - it('should reflect module with one factory and a context ∩ container = ∅', () => { - const module = { - f: (ctx: { g: number }) => 1 - }; - type Actual = ReflectContainer; - type Expected = { - g: number - }; - tsafeAssert>(); - }); - - it('should deep reflect module', () => { - const module = { - a: (ctx: { x: boolean }) => 1, - b: { - c: (ctx: { - y: { - yy: string - } - }) => 1 - }, - c: { - d: { - z: (ctx: { - z: number - }) => 1 - } - } - }; - type Actual = ReflectContainer; - type Expected = { - x: boolean - y: { - yy: string - } - z: number - }; - tsafeAssert>(); - }); - - it('should reflect module with contradictory contexts', () => { - const module = merge({ - b: (ctx: { b: boolean }) => 1 - }, { - b: (ctx: { b: string }) => 1, - }); - type Actual = ReflectContainer; - type Expected = { - b: never - }; - tsafeAssert>(); - }); - -}); - -describe('Validate module', () => { - - it('should resolve values to never if modules are incompatible', () => { - const { a } = inject({ a: () => 1 }, { a: () => ''}) - tsafeAssert>(); - expect(a).toBe(''); - }); - - it('should now accept an invalid module', () => { - // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. - // cause: inject expects arguments [Module, ...Module] - inject({ a: 1 }) - }); - - // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never - it('should merge to incompatible values', () => { - // no validation error but results in { a: never } - // cause: { a: 1 & 'a' } resolves to { a: never } - const ctr = inject({ a: () => 1 }, { a: () => 'a' }) - tsafeAssert>() - }); - - it('should return validation error, if the container is missing a value required by a context', () => { - inject( - // @ts-expect-error The resulting container is missing { b: boolean } - { f: (ctx: { b: boolean }) => 1 } - ); - }); - - it('should provide a missing dependency by adding another module', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => 1 }, - ); - tsafeAssert>(); - }); - - // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! - it('should resolve to unknown if two modules are incompatible', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => '' }, - ); - tsafeAssert>(); - }); - - it('should not compile, if two factories require different types for the same dependency', () => { - const ctr = inject( - // @ts-expect-error ctx: { b: boolean & string } is invalid - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 }, - { b: () => '' } - ); - tsafeAssert>(); - }); - -}); diff --git a/test/merge.test.ts b/test/merge.test.ts index 4a844a0a..0b97ff44 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -7,7 +7,7 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { merge } from '../src/merge'; -import { Merge, MergeArray } from '../src/types'; +import { Merge, MergeArray, MergeObjects } from '../src/types'; type Fn = (...args: any[]) => any; @@ -862,6 +862,17 @@ describe('type MergeArray', () => { }); +describe('type MergeObjects', () => { + + it('should merge with unknown', () => { + tsafeAssert, {}>>(); + tsafeAssert, { a: 1 }>>(); + tsafeAssert, {}>>(); + tsafeAssert, { a: 1 }>>(); + }); + +}); + describe('merge', () => { it('should merge two objects', () => { From 8b093a1ea206044f6f89d5e71f81bb9fe40b9717 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 14 Oct 2022 11:49:27 +0000 Subject: [PATCH 142/159] added type tests --- test/inject.test.ts | 182 +----------------------------------------- test/types.test.ts | 189 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 190 insertions(+), 181 deletions(-) create mode 100644 test/types.test.ts diff --git a/test/inject.test.ts b/test/inject.test.ts index efa7b855..e9945969 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -7,187 +7,7 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject } from '../src/inject'; -import { Module, ReflectContainer, Validate } from '../src/types'; - -describe('ReflectContainer', () => { - - it('should reflect any', () => { - type Actual = ReflectContainer; - type Expected = unknown; - tsafeAssert>(); - }); - - it('should reflect unknown', () => { - type Actual = ReflectContainer; - type Expected = unknown; - tsafeAssert>(); - }); - - it('should reflect never', () => { - type Actual = ReflectContainer; - type Expected = never; - tsafeAssert>(); - }); - - it('should reflect null', () => { - type Actual = ReflectContainer; - type Expected = unknown; - tsafeAssert>(); - }); - - it('should reflect undefined', () => { - type Actual = ReflectContainer; - type Expected = unknown; - tsafeAssert>(); - }); - - it('should reflect module with one factory and no context', () => { - const module = { - f: () => 1 - }; - type Actual = ReflectContainer; - type Expected = {}; - tsafeAssert>(); - }); - - it('should reflect module with one factory and a context = container', () => { - const module = { - f: (ctx: { f: number }) => 1 - }; - type Actual = ReflectContainer; - type Expected = { - f: number - }; - tsafeAssert>(); - }); - - it('should reflect module with one factory and a context ∩ container = ∅', () => { - const module = { - f: (ctx: { g: number }) => 1 - }; - type Actual = ReflectContainer; - type Expected = { - g: number - }; - tsafeAssert>(); - }); - - it('should deep reflect module', () => { - const module = { - a: (ctx: { x: boolean }) => 1, - b: { - c: (ctx: { - y: { - yy: string - } - }) => 1 - }, - c: { - d: { - z: (ctx: { - z: number - }) => 1 - } - } - }; - type Actual = ReflectContainer; - type Expected = { - x: boolean - y: { - yy: string - } - z: number - }; - tsafeAssert>(); - }); - - it('should reflect module with a property that is never satisfied', () => { - type M = { - b: (ctx: { b: never }) => number - }; - type Actual = ReflectContainer; - type Expected = { - b: never - }; - tsafeAssert>(); - }); - -}); - -describe('Validate', () => { - - it('should ...', () => { - type Actual = Validate<[ - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 } - ]>; - type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } - }; - tsafeAssert>(); - }); - - it('should resolve values to never if modules are incompatible', () => { - const { a } = inject({ a: () => 1 }, { a: () => ''}) - tsafeAssert>(); - expect(a).toBe(''); - }); - - it('should now accept an invalid module', () => { - // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. - // cause: inject expects arguments [Module, ...Module] - inject({ a: 1 }) - }); - - // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never - it('should merge to incompatible values', () => { - // no validation error but results in { a: never } - // cause: { a: 1 & 'a' } resolves to { a: never } - const ctr = inject({ a: () => 1 }, { a: () => 'a' }) - tsafeAssert>() - }); - - it('should return validation error, if the container is missing a value required by a context', () => { - inject( - // @ts-expect-error The resulting container is missing { b: boolean } - { f: (ctx: { b: boolean }) => 1 } - ); - }); - - it('should provide a missing dependency by adding another module', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => 1 }, - ); - tsafeAssert>(); - }); - - // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! - it('should resolve to unknown if two modules are incompatible', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => '' }, - ); - tsafeAssert>(); - }); - - it('should not compile, if two factories require different types for the same dependency', () => { - const ctr = inject( - // @ts-expect-error ctx: { b: boolean & string } is invalid - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 }, - { b: () => '' } - ); - tsafeAssert>(); - }); - -}); +import { Module } from '../src/types'; describe('A dependency type', () => { diff --git a/test/types.test.ts b/test/types.test.ts new file mode 100644 index 00000000..93ea6edb --- /dev/null +++ b/test/types.test.ts @@ -0,0 +1,189 @@ +/****************************************************************************** + * Copyright 2022 TypeFox GmbH + * This program and the accompanying materials are made available under the + * terms of the MIT License, which is available in the project root. + ******************************************************************************/ + +import { describe, it } from 'vitest' +import { assert as tsafeAssert, Equals } from 'tsafe'; +import { ReflectContainer } from '../src/types'; + +describe('ReflectContainer', () => { + + it('should reflect any', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect unknown', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect never', () => { + type Actual = ReflectContainer; + type Expected = never; + tsafeAssert>(); + }); + + it('should reflect null', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect undefined', () => { + type Actual = ReflectContainer; + type Expected = unknown; + tsafeAssert>(); + }); + + it('should reflect module with one factory and no context', () => { + const module = { + f: () => 1 + }; + type Actual = ReflectContainer; + type Expected = {}; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context = container', () => { + const module = { + f: (ctx: { f: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + f: number + }; + tsafeAssert>(); + }); + + it('should reflect module with one factory and a context ∩ container = ∅', () => { + const module = { + f: (ctx: { g: number }) => 1 + }; + type Actual = ReflectContainer; + type Expected = { + g: number + }; + tsafeAssert>(); + }); + + it('should deep reflect module', () => { + const module = { + a: (ctx: { x: boolean }) => 1, + b: { + c: (ctx: { + y: { + yy: string + } + }) => 1 + }, + c: { + d: { + z: (ctx: { + z: number + }) => 1 + } + } + }; + type Actual = ReflectContainer; + type Expected = { + x: boolean + y: { + yy: string + } + z: number + }; + tsafeAssert>(); + }); + + it('should reflect module with a property that is never satisfied', () => { + type M = { + b: (ctx: { b: never }) => number + }; + type Actual = ReflectContainer; + type Expected = { + b: never + }; + tsafeAssert>(); + }); + +}); + +describe('Validate', () => { + + it('should declare a property of type never as missing', () => { + type Actual = Validate<[ + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 } + ]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b']; + } + }; + tsafeAssert>(); + }); + + it('should resolve values to never if modules are incompatible', () => { + const { a } = inject({ a: () => 1 }, { a: () => ''}); + tsafeAssert>(); + expect(a).toBe(''); + }); + + it('should now accept an invalid module', () => { + // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. + // cause: inject expects arguments [Module, ...Module] + inject({ a: 1 }) + }); + + // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never + it('should merge to incompatible values', () => { + // no validation error but results in { a: never } + // cause: { a: 1 & 'a' } resolves to { a: never } + const ctr = inject({ a: () => 1 }, { a: () => 'a' }); + tsafeAssert>(); + }); + + it('should return validation error, if the container is missing a value required by a context', () => { + inject( + // @ts-expect-error The resulting container is missing { b: boolean } + { f: (ctx: { b: boolean }) => 1 } + ); + }); + + it('should provide a missing dependency by adding another module', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => 1 }, + ); + tsafeAssert>(); + }); + + // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! + it('should resolve to unknown if two modules are incompatible', () => { + // compiles, because the new f does not need { b: boolean } anymore + const ctr = inject( + { f: (ctx: { b: boolean }) => 1 }, + { f: () => '' }, + ); + tsafeAssert>(); + }); + + it('should not compile, if two factories require different types for the same dependency', () => { + const ctr = inject( + // @ts-expect-error ctx: { b: boolean & string } is invalid + { f: (ctx: { b: boolean }) => 1 }, + { g: (ctx: { b: string }) => 1 }, + { b: () => '' } + ); + tsafeAssert>(); + }); + +}); From ac7a916453b85bfe08fb5e9d3d2046c88c9fc6a9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Fri, 14 Oct 2022 12:13:43 +0000 Subject: [PATCH 143/159] more validation tests --- test/types.test.ts | 120 +++++++++++++++++++++++++-------------------- 1 file changed, 68 insertions(+), 52 deletions(-) diff --git a/test/types.test.ts b/test/types.test.ts index 93ea6edb..4017aff9 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -6,7 +6,7 @@ import { describe, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; -import { ReflectContainer } from '../src/types'; +import { ReflectContainer, Validate } from '../src/types'; describe('ReflectContainer', () => { @@ -115,11 +115,10 @@ describe('ReflectContainer', () => { describe('Validate', () => { - it('should declare a property of type never as missing', () => { - type Actual = Validate<[ - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 } - ]>; + it('should declare a plain property of type never as missing', () => { + type Actual = Validate<[{ + f: (ctx: { b: never }) => 1 + },]>; type Expected = { ginject_error: { message: "Missing dependency"; @@ -130,60 +129,77 @@ describe('Validate', () => { tsafeAssert>(); }); - it('should resolve values to never if modules are incompatible', () => { - const { a } = inject({ a: () => 1 }, { a: () => ''}); - tsafeAssert>(); - expect(a).toBe(''); + it('should identify a merged property of type never as missing', () => { + // { b: boolean } and { b: string} = { b: never } + type Actual = Validate<[{ + f: (ctx: { b: boolean }) => 1 + }, { + g: (ctx: { b: string }) => 1 + }]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b']; + } + }; + tsafeAssert>(); }); - it('should now accept an invalid module', () => { - // @ts-expect-error: Argument of type '{ a: number; }' is not assignable to parameter of type 'never'. - // cause: inject expects arguments [Module, ...Module] - inject({ a: 1 }) + it('should error if two factories require different types of the same dependency', () => { + type Actual = Validate<[{ + a: (ctx: { b: boolean }) => boolean + }, { + b: (ctx: { b: string }) => string + }]>; + type Expected = never; // TODO(@@dd): missing impl + tsafeAssert>(); }); - // TODO(@@dd): validation should recognize that 1 & 'a' resolve to never - it('should merge to incompatible values', () => { - // no validation error but results in { a: never } - // cause: { a: 1 & 'a' } resolves to { a: never } - const ctr = inject({ a: () => 1 }, { a: () => 'a' }); - tsafeAssert>(); + it('should identify missing container property required by a context', () => { + type Actual = Validate<[{ + f: (ctx: { b: boolean }) => 1 + }]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b']; + } + }; + tsafeAssert>(); }); - it('should return validation error, if the container is missing a value required by a context', () => { - inject( - // @ts-expect-error The resulting container is missing { b: boolean } - { f: (ctx: { b: boolean }) => 1 } - ); + it('should provide a missing dependency by adding another module', () => { + // no missing dependency because the new f does not need { b: boolean } anymore + type Actual = Validate<[{ + f: (ctx: { b: boolean }) => 1 + }, { + f: () => 1 + }]>; + type Expected = [{ + f: (ctx: { + b: boolean; + }) => 1; + }, { + f: () => 1; + }]; + tsafeAssert>(); }); - it('should provide a missing dependency by adding another module', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => 1 }, - ); - tsafeAssert>(); - }); - - // TODO(@@dd): resolve to never instead of unknown? maybe not and improve validation instead! - it('should resolve to unknown if two modules are incompatible', () => { - // compiles, because the new f does not need { b: boolean } anymore - const ctr = inject( - { f: (ctx: { b: boolean }) => 1 }, - { f: () => '' }, - ); - tsafeAssert>(); - }); - - it('should not compile, if two factories require different types for the same dependency', () => { - const ctr = inject( - // @ts-expect-error ctx: { b: boolean & string } is invalid - { f: (ctx: { b: boolean }) => 1 }, - { g: (ctx: { b: string }) => 1 }, - { b: () => '' } - ); - tsafeAssert>(); + it('should not validate factory return types', () => { + // { f: () => number } and { f: () => string } = { f: () => never } + type Actual = Validate<[{ + f: () => 1 + }, { + f: () => '' + }]>; + type Expected = [{ + f: () => 1; + }, { + f: () => ''; + }]; + tsafeAssert>(); }); }); From e8804b1fc791e965f417e4851ccb05880b805446 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 00:18:28 +0000 Subject: [PATCH 144/159] validation --- src/types.ts | 54 ++++++++++++++++++++++++++++++++-------------- test/types.test.ts | 3 +++ 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/types.ts b/src/types.ts index 12e4836d..3c720f21 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,21 +22,35 @@ export type Validate, C = ReflectContainer ginject_error: { message: 'Missing dependency', docs: 'https://ginject.io/#context', - missing_dependencies: Keys, Paths>> + missing_dependencies: [keyof Omit, keyof FilterNot, never>>] } } : never; +// TODO(@@dd): DELME --> +type A = [{ + a: (ctx: { b: boolean }) => boolean +}, { + b: (ctx: { b: string }) => string +}]; +type M = MergeArray; +type C = ReflectContainer; +type T = M extends Module ? T : never; +type V1 = Expand; +type V2 = Paths; +type V = Keys, Paths> & Filter>>; +// <-- DELME + export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] _ContextArray = MapFunctionsToContexts<_FunctionArray>, // C[] _Ctx = MergeArray<_ContextArray>, // C | never Ctx = Is<_Ctx, never> extends true ? {} : _Ctx, // C - _SubModules = Filter>, // {} | {} + _SubModules = Filter, // {} | {} SubModule = UnionToIntersection> // {} > = Is extends true ? unknown : - M extends Record + M extends Obj ? MergeObjects, Ctx> // TODO(@@dd): I would like to use Merge instead of MergeObjects : unknown; @@ -110,10 +124,12 @@ type Is = (() => T extends T2 ? true : false) extends () => T exte type Or = C1 extends true ? true : C2 extends true ? true : false; -type Join = T extends Record ? { [K in keyof T]: T[K] } : T; +type Join = T extends Obj ? { [K in keyof T]: T[K] } : T; type Filter = Pick; +type FilterNot = Pick; + type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never; type UnionToTuple> = [T] extends [never] ? [] : [...UnionToTuple>, L]; @@ -123,18 +139,24 @@ type LastOf = ? R : never; -type Keys = IsEmpty extends true ? [] : [keyof T]; - type Values = T[keyof T]; -type Expand> = { [K in P & string]: true }; - // currently symbol keys are not supported -type Paths = - M extends Record ? { - [K in keyof M & (string | number)]: ( - M[K] extends Record - ? `${P}${X}${K}` | (Is, never> extends true ? `${P}${X}${Paths}` : never) - : `${P}${X}${K}` - ) - }[keyof M & (string | number)] : never; +type Paths> = + Join>; + +type Flatten = + T extends Obj + ? K extends string | number + ? T[K] extends Record + ? Flatten extends infer F + ? F extends [string, unknown] + ? [`${K}.${F[0]}`, F[1]] + : never + : never + : [`${K}`, T[K]] + : never + : never; diff --git a/test/types.test.ts b/test/types.test.ts index 4017aff9..cd2cfa0f 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -187,6 +187,7 @@ describe('Validate', () => { tsafeAssert>(); }); + // TODO(@@dd): feature request: return validation error in this case it('should not validate factory return types', () => { // { f: () => number } and { f: () => string } = { f: () => never } type Actual = Validate<[{ @@ -202,4 +203,6 @@ describe('Validate', () => { tsafeAssert>(); }); + // TODO(@@dd): deeply validate properties + }); From 18ea4bbdff62d89ced573684efe440fbe3697ff8 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 00:29:27 +0000 Subject: [PATCH 145/159] types --- src/types.ts | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/types.ts b/src/types.ts index 3c720f21..98fb486e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,10 +22,30 @@ export type Validate, C = ReflectContainer ginject_error: { message: 'Missing dependency', docs: 'https://ginject.io/#context', - missing_dependencies: [keyof Omit, keyof FilterNot, never>>] + missing_dependencies: [keyof Omit, keyof Omit, keyof FilterNot, never>>>] } } : never; +// currently symbol keys are not supported +type Paths> = + Join>; + +type Flatten = + T extends Obj + ? K extends string | number + ? T[K] extends Record + ? Flatten extends infer F + ? F extends [string, unknown] + ? [`${K}.${F[0]}`, F[1]] + : never + : never + : [`${K}`, T[K]] + : never + : never; + // TODO(@@dd): DELME --> type A = [{ a: (ctx: { b: boolean }) => boolean @@ -35,9 +55,8 @@ type A = [{ type M = MergeArray; type C = ReflectContainer; type T = M extends Module ? T : never; -type V1 = Expand; +type V1 = Paths; type V2 = Paths; -type V = Keys, Paths> & Filter>>; // <-- DELME export type ReflectContainer = type Values = T[keyof T]; -// currently symbol keys are not supported -type Paths> = - Join>; - -type Flatten = - T extends Obj - ? K extends string | number - ? T[K] extends Record - ? Flatten extends infer F - ? F extends [string, unknown] - ? [`${K}.${F[0]}`, F[1]] - : never - : never - : [`${K}`, T[K]] - : never - : never; From 2f3789c0c01335ec992ee5d7da532554fab6214f Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 00:40:58 +0000 Subject: [PATCH 146/159] types --- src/types.ts | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/src/types.ts b/src/types.ts index 98fb486e..2690afb6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -36,29 +36,18 @@ type Paths> = type Flatten = T extends Obj ? K extends string | number - ? T[K] extends Record - ? Flatten extends infer F - ? F extends [string, unknown] - ? [`${K}.${F[0]}`, F[1]] + ? Is extends true + ? [`${K}`, never] + : T[K] extends Record + ? Flatten extends infer F + ? F extends [string, unknown] + ? [`${K}.${F[0]}`, F[1]] + : never : never - : never - : [`${K}`, T[K]] + : [`${K}`, T[K]] : never : never; -// TODO(@@dd): DELME --> -type A = [{ - a: (ctx: { b: boolean }) => boolean -}, { - b: (ctx: { b: string }) => string -}]; -type M = MergeArray; -type C = ReflectContainer; -type T = M extends Module ? T : never; -type V1 = Paths; -type V2 = Paths; -// <-- DELME - export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] @@ -159,4 +148,3 @@ type LastOf = : never; type Values = T[keyof T]; - From 36fe785485c1aa00d71554135235dff197d0d70e Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 01:11:30 +0000 Subject: [PATCH 147/159] types --- src/types.ts | 2 +- test/types.test.ts | 51 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 2690afb6..e2dec433 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,7 +22,7 @@ export type Validate, C = ReflectContainer ginject_error: { message: 'Missing dependency', docs: 'https://ginject.io/#context', - missing_dependencies: [keyof Omit, keyof Omit, keyof FilterNot, never>>>] + missing_dependencies: UnionToTuple, keyof Paths> & Filter, never>>> } } : never; diff --git a/test/types.test.ts b/test/types.test.ts index cd2cfa0f..b0d320d6 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -129,6 +129,49 @@ describe('Validate', () => { tsafeAssert>(); }); + it('should declare a deep property of type never as missing', () => { + type Actual = Validate<[{ + f: (ctx: { + b: { + c: { + d: never + } + } + }) => 1 + },]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b.c.d']; + } + }; + tsafeAssert>(); + }); + + it('should declare two deep properties of type never as missing', () => { + type Actual = Validate<[{ + f: (ctx: { + b: { + c: { + d: never + } + e: { + f: never + } + } + }) => 1 + },]>; + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b.c.d', 'b.e.f']; + } + }; + tsafeAssert>(); + }); + it('should identify a merged property of type never as missing', () => { // { b: boolean } and { b: string} = { b: never } type Actual = Validate<[{ @@ -152,7 +195,13 @@ describe('Validate', () => { }, { b: (ctx: { b: string }) => string }]>; - type Expected = never; // TODO(@@dd): missing impl + type Expected = { + ginject_error: { + message: "Missing dependency"; + docs: "https://ginject.io/#context"; + missing_dependencies: ['b']; + } + }; tsafeAssert>(); }); From 376b9ec147d422f486353555f7cf4262c287cb08 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 01:13:47 +0000 Subject: [PATCH 148/159] cleanup --- src/types.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index e2dec433..8ba7b80f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -136,8 +136,6 @@ type Join = T extends Obj ? { [K in keyof T]: T[K] } : T; type Filter = Pick; -type FilterNot = Pick; - type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never; type UnionToTuple> = [T] extends [never] ? [] : [...UnionToTuple>, L]; From 6866499363d108cc85acf59d25afee2ee8221f83 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 01:16:06 +0000 Subject: [PATCH 149/159] cleanup --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 8ba7b80f..24f3fd0f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -26,13 +26,13 @@ export type Validate, C = ReflectContainer } } : never; -// currently symbol keys are not supported type Paths> = Join>; +// currently symbol keys are not supported type Flatten = T extends Obj ? K extends string | number From 01d3ff336a6cda14c46dcff272e5d00d38b9194c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 02:14:37 +0000 Subject: [PATCH 150/159] validation --- src/types.ts | 35 ++++++++++++++++++++++-------- test/types.test.ts | 54 ++++++++++++++++++++-------------------------- 2 files changed, 49 insertions(+), 40 deletions(-) diff --git a/src/types.ts b/src/types.ts index 24f3fd0f..feb1f8a9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -16,15 +16,32 @@ export type Container, C = ReflectContaine T extends C ? T : never : never; export type Validate, C = ReflectContainer> = - IsEmpty extends true ? A : - M extends Module ? - T extends C ? A : { - ginject_error: { - message: 'Missing dependency', - docs: 'https://ginject.io/#context', - missing_dependencies: UnionToTuple, keyof Paths> & Filter, never>>> - } - } : never; + IsEmpty extends true + ? A + : M extends Module + ? ValidationResult, ValidateContext> + : never; + +type ValidationResult = + Is extends true + ? Is extends true + ? A + : { ginject_error: V2 } + : Is extends true + ? { ginject_error: V1 } + : { ginject_error: [V1, V2] }; + +export type ValidationError = { + message: M + properties: P + docs: D +}; + +export type ValidateTypes, never>> = + IsEmpty

extends true ? A : ValidationError<'Type conflict', UnionToTuple, 'https://docs.ginject.io/#modules'>; + +export type ValidateContext, keyof Paths> & Filter, never>>> = + T extends C ? A : ValidationError<'Missing dependencies', UnionToTuple, 'https://docs.ginject.io/#context'>; type Paths> = Join { @@ -120,11 +120,7 @@ describe('Validate', () => { f: (ctx: { b: never }) => 1 },]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } + ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -140,11 +136,23 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b.c.d']; - } + ginject_error: ValidationError<"Missing dependencies", ['b.c.d'], "https://docs.ginject.io/#context"> + }; + tsafeAssert>(); + }); + + it('should declare a deep property of type string as missing', () => { + type Actual = Validate<[{ + f: (ctx: { + b: { + c: { + d: string + } + } + }) => 1 + },]>; + type Expected = { + ginject_error: ValidationError<"Missing dependencies", ['b.c.d'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -163,11 +171,7 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b.c.d', 'b.e.f']; - } + ginject_error: ValidationError<"Missing dependencies", ['b.c.d', 'b.e.f'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -180,11 +184,7 @@ describe('Validate', () => { g: (ctx: { b: string }) => 1 }]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } + ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -196,11 +196,7 @@ describe('Validate', () => { b: (ctx: { b: string }) => string }]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } + ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -210,11 +206,7 @@ describe('Validate', () => { f: (ctx: { b: boolean }) => 1 }]>; type Expected = { - ginject_error: { - message: "Missing dependency"; - docs: "https://ginject.io/#context"; - missing_dependencies: ['b']; - } + ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); From 6272d9dd91ab9615749e416c26643de65b0a8845 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 02:52:41 +0000 Subject: [PATCH 151/159] validation --- test/types.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/types.test.ts b/test/types.test.ts index 13af5f0f..87f5285a 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -236,11 +236,9 @@ describe('Validate', () => { }, { f: () => '' }]>; - type Expected = [{ - f: () => 1; - }, { - f: () => ''; - }]; + type Expected = { + ginject_error: ValidationError<"Type conflict", ["f"], "https://docs.ginject.io/#modules">; + }; tsafeAssert>(); }); From 1c38e6b09819db870b9e0b99939764a932f0d93c Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 10:02:07 +0000 Subject: [PATCH 152/159] ValidationError draft --- src/types.ts | 67 +++++++++++++++++++++++++++++++++------------- test/types.test.ts | 18 ++++++------- 2 files changed, 58 insertions(+), 27 deletions(-) diff --git a/src/types.ts b/src/types.ts index feb1f8a9..d821a4f0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -19,29 +19,53 @@ export type Validate, C = ReflectContainer IsEmpty extends true ? A : M extends Module - ? ValidationResult, ValidateContext> + ? ValidationResult, + ValidateContextTypes, + ValidateContextProperties + ]> : never; -type ValidationResult = - Is extends true - ? Is extends true - ? A - : { ginject_error: V2 } - : Is extends true - ? { ginject_error: V1 } - : { ginject_error: [V1, V2] }; +// TODO(@@dd): DELME --> +type A = [{ + f: (ctx: { b: never }) => 1 +}]; +type M = MergeArray; +type C = ReflectContainer; +type V1 = M extends Module ? ValidateTypes : never; +type V2 = ValidateContextTypes; +type V3 = M extends Module ? ValidateContextProperties : never; +type V = [V1, V2, V3]; +type VA = [A, ValidationError<"Dependency conflict", ["b"], "https://docs.ginject.io/#context">, A] +type RA = FilterArray +type R = ValidationResult + +type T0 = ValidationError<"Dependency conflict", ["b"], "https://docs.ginject.io/#context"> extends ValidationError ? true : false; +type T1 = [1, 'a', 'b', 2] +type T2 = FilterArray +// <-- DELME + +// TODO(@@dd): missing impl +type ValidationResult> = + E extends [] ? A : E; export type ValidationError = { - message: M - properties: P - docs: D + message: M; + dependencies: P; + help: D; }; -export type ValidateTypes, never>> = +// checks if merged module types are valid +type ValidateTypes, never>> = IsEmpty

extends true ? A : ValidationError<'Type conflict', UnionToTuple, 'https://docs.ginject.io/#modules'>; -export type ValidateContext, keyof Paths> & Filter, never>>> = - T extends C ? A : ValidationError<'Missing dependencies', UnionToTuple, 'https://docs.ginject.io/#context'>; +// checks if same properties in different contexts have compatible types +type ValidateContextTypes, never>> = + IsEmpty

extends true ? A : ValidationError<'Dependency conflict', UnionToTuple, 'https://docs.ginject.io/#context'>; + +// checks if the container provides all properties the context requires +type ValidateContextProperties, never>, keyof Paths>>> = + IsEmpty

extends true ? A : ValidationError<'Dependency missing', UnionToTuple, 'https://docs.ginject.io/#context'>; type Paths> = Join = : never; export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } + _Functions = FilterObj, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] _ContextArray = MapFunctionsToContexts<_FunctionArray>, // C[] _Ctx = MergeArray<_ContextArray>, // C | never Ctx = Is<_Ctx, never> extends true ? {} : _Ctx, // C - _SubModules = Filter, // {} | {} + _SubModules = FilterObj, // {} | {} SubModule = UnionToIntersection> // {} > = Is extends true ? unknown : @@ -151,7 +175,14 @@ type Or = C1 extends true ? true : C2 ex type Join = T extends Obj ? { [K in keyof T]: T[K] } : T; -type Filter = Pick; +type FilterObj = Pick; + +type FilterNotObj = Pick; + +type FilterArray = + A extends [Head, ...Tail] + ? H extends V ? [H, ...FilterArray] : FilterArray + : []; type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never; diff --git a/test/types.test.ts b/test/types.test.ts index 87f5285a..2d9f0c1e 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -118,9 +118,9 @@ describe('Validate', () => { it('should declare a plain property of type never as missing', () => { type Actual = Validate<[{ f: (ctx: { b: never }) => 1 - },]>; + }]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency conflict", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -136,7 +136,7 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b.c.d'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b.c.d'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -152,7 +152,7 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b.c.d'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b.c.d'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -171,7 +171,7 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b.c.d', 'b.e.f'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b.c.d', 'b.e.f'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -184,7 +184,7 @@ describe('Validate', () => { g: (ctx: { b: string }) => 1 }]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -196,7 +196,7 @@ describe('Validate', () => { b: (ctx: { b: string }) => string }]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); @@ -206,12 +206,12 @@ describe('Validate', () => { f: (ctx: { b: boolean }) => 1 }]>; type Expected = { - ginject_error: ValidationError<"Missing dependencies", ['b'], "https://docs.ginject.io/#context"> + ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> }; tsafeAssert>(); }); - it('should provide a missing dependency by adding another module', () => { + it('should remove a missing dependency by adding another module', () => { // no missing dependency because the new f does not need { b: boolean } anymore type Actual = Validate<[{ f: (ctx: { b: boolean }) => 1 From e5c8283ab621a8e0c76d7f4a1c8de581df3768cc Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 10:32:30 +0000 Subject: [PATCH 153/159] ValidationError and cleanup --- src/types.ts | 97 +++++++++++++++++++++++----------------------- test/types.test.ts | 32 +++++++++++---- 2 files changed, 72 insertions(+), 57 deletions(-) diff --git a/src/types.ts b/src/types.ts index d821a4f0..1eef607d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -26,28 +26,10 @@ export type Validate, C = ReflectContainer ]> : never; -// TODO(@@dd): DELME --> -type A = [{ - f: (ctx: { b: never }) => 1 -}]; -type M = MergeArray; -type C = ReflectContainer; -type V1 = M extends Module ? ValidateTypes : never; -type V2 = ValidateContextTypes; -type V3 = M extends Module ? ValidateContextProperties : never; -type V = [V1, V2, V3]; -type VA = [A, ValidationError<"Dependency conflict", ["b"], "https://docs.ginject.io/#context">, A] -type RA = FilterArray -type R = ValidationResult - -type T0 = ValidationError<"Dependency conflict", ["b"], "https://docs.ginject.io/#context"> extends ValidationError ? true : false; -type T1 = [1, 'a', 'b', 2] -type T2 = FilterArray -// <-- DELME - -// TODO(@@dd): missing impl -type ValidationResult> = - E extends [] ? A : E; +type ValidationResult> = + E extends [] ? A : { + ginject_error: E + }; export type ValidationError = { message: M; @@ -56,15 +38,15 @@ export type ValidationError, never>> = +type ValidateTypes, never>> = IsEmpty

extends true ? A : ValidationError<'Type conflict', UnionToTuple, 'https://docs.ginject.io/#modules'>; // checks if same properties in different contexts have compatible types -type ValidateContextTypes, never>> = +type ValidateContextTypes, never>> = IsEmpty

extends true ? A : ValidationError<'Dependency conflict', UnionToTuple, 'https://docs.ginject.io/#context'>; // checks if the container provides all properties the context requires -type ValidateContextProperties, never>, keyof Paths>>> = +type ValidateContextProperties, never>, keyof Paths>>> = IsEmpty

extends true ? A : ValidationError<'Dependency missing', UnionToTuple, 'https://docs.ginject.io/#context'>; type Paths> = @@ -90,12 +72,12 @@ type Flatten = : never; export type ReflectContainer, // { f1: (ctx: C1) = any, f2: ... } + _Functions = Filter, // { f1: (ctx: C1) = any, f2: ... } _FunctionArray = UnionToTuple<_Functions[keyof _Functions]>, // ((ctx: C) => any)[] _ContextArray = MapFunctionsToContexts<_FunctionArray>, // C[] _Ctx = MergeArray<_ContextArray>, // C | never Ctx = Is<_Ctx, never> extends true ? {} : _Ctx, // C - _SubModules = FilterObj, // {} | {} + _SubModules = Filter, // {} | {} SubModule = UnionToIntersection> // {} > = Is extends true ? unknown : @@ -105,17 +87,17 @@ export type ReflectContainer = T extends [] ? [] : - T extends [Function1, ...Tail] - ? Is extends true ? MapFunctionsToContexts> : [C, ...MapFunctionsToContexts>] + T extends [Function1, ...infer Tail] + ? Is extends true ? MapFunctionsToContexts : [Ctx, ...MapFunctionsToContexts] : never; // we expect only functions in array T export type MergeArray = A extends unknown[] - ? A extends [Head, ...Tail] - ? Tail extends [] - ? Head - : Tail extends unknown[] - ? Merge>, Head> + ? A extends [infer Head, ...infer Tail] + ? Tail extends [] + ? Head + : Tail extends unknown[] + ? Merge, Head> : never : never : never; @@ -135,17 +117,17 @@ export type Merge = // It is required that S has at less or equal elements as T. // It is sufficient, if elements of S extend elements of T. type MergeArrays = - S extends [Head, ...Tail] - ? T extends [Head, ...Tail] - ? [Merge, Head>, ...MergeArrays, Tail>] + S extends [infer HeadS, ...infer TailS] + ? T extends [infer HeadT, ...infer TailT] + ? [Merge, ...MergeArrays] : [never] // T = [], users which expect T don't provide more elements required by S : []; // S = [], S ignores additions elements required by users of T type MergeFunctions = - S extends (...args: infer SA) => infer SR - ? T extends (...args: infer TA) => infer TR - ? Merge extends infer A - ? A extends any[] ? (...args: A) => Merge : never + S extends (...args: infer ArgsS) => infer ResS + ? T extends (...args: infer ArgsT) => infer ResT + ? Merge extends infer A + ? A extends any[] ? (...args: A) => Merge : never : never : never : never; @@ -163,10 +145,6 @@ type Fn = (...args: T) => R; type Function1 = (args0: T, ...args: any[]) => R; -type Head = A extends [] ? never : A extends [head: infer H, ...tail: unknown[]] ? H : never; - -type Tail = A extends [head: unknown, ...tail: infer T] ? T : never; - type IsEmpty = [keyof T] extends [never] ? true : false; type Is = (() => T extends T2 ? true : false) extends () => T extends T1 ? true : false ? true : false; @@ -175,14 +153,35 @@ type Or = C1 extends true ? true : C2 ex type Join = T extends Obj ? { [K in keyof T]: T[K] } : T; +type Filter = + T extends any[] ? FilterArray : + T extends Obj ? FilterObj : + never; + +type FilterNot = + T extends any[] ? FilterNotArray : + T extends Obj ? FilterNotObj : + never; + type FilterObj = Pick; type FilterNotObj = Pick; -type FilterArray = - A extends [Head, ...Tail] - ? H extends V ? [H, ...FilterArray] : FilterArray - : []; +type FilterArray = + A extends [] ? [] : + A extends [infer H, ...infer T] + ? H extends V + ? [H, ...FilterArray] + : FilterArray + : []; + +type FilterNotArray = + A extends [] ? [] : + A extends [infer H, ...infer T] + ? H extends V + ? FilterNotArray + : [H, ...FilterNotArray] + : []; type UnionToIntersection = (U extends any ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never; diff --git a/test/types.test.ts b/test/types.test.ts index 2d9f0c1e..900407b3 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -120,7 +120,9 @@ describe('Validate', () => { f: (ctx: { b: never }) => 1 }]>; type Expected = { - ginject_error: ValidationError<"Dependency conflict", ['b'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency conflict", ['b'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -136,7 +138,9 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b.c.d'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency conflict", ['b.c.d'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -152,7 +156,9 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b.c.d'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency missing", ['b.c.d'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -171,7 +177,9 @@ describe('Validate', () => { }) => 1 },]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b.c.d', 'b.e.f'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency conflict", ['b.c.d', 'b.e.f'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -184,7 +192,9 @@ describe('Validate', () => { g: (ctx: { b: string }) => 1 }]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency conflict", ['b'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -196,7 +206,9 @@ describe('Validate', () => { b: (ctx: { b: string }) => string }]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency conflict", ['b'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -206,7 +218,9 @@ describe('Validate', () => { f: (ctx: { b: boolean }) => 1 }]>; type Expected = { - ginject_error: ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> + ginject_error: [ + ValidationError<"Dependency missing", ['b'], "https://docs.ginject.io/#context"> + ] }; tsafeAssert>(); }); @@ -237,7 +251,9 @@ describe('Validate', () => { f: () => '' }]>; type Expected = { - ginject_error: ValidationError<"Type conflict", ["f"], "https://docs.ginject.io/#modules">; + ginject_error: [ + ValidationError<"Type conflict", ["f"], "https://docs.ginject.io/#modules"> + ] }; tsafeAssert>(); }); From dcba644ad3142538856f2717f16cdd1b2f3e6477 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 10:36:18 +0000 Subject: [PATCH 154/159] ValidationError --- test/types.test.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/types.test.ts b/test/types.test.ts index 900407b3..e228aa07 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -242,7 +242,6 @@ describe('Validate', () => { tsafeAssert>(); }); - // TODO(@@dd): feature request: return validation error in this case it('should not validate factory return types', () => { // { f: () => number } and { f: () => string } = { f: () => never } type Actual = Validate<[{ @@ -258,6 +257,20 @@ describe('Validate', () => { tsafeAssert>(); }); - // TODO(@@dd): deeply validate properties + it('should show multiple validation errors', () => { + type Actual = Validate<[{ + f: (ctx: { b: boolean }) => 1 + }, { + f: (ctx: { a: number, b: string }) => '' + }]>; + type Expected = { + ginject_error: [ + ValidationError<"Type conflict", ["f"], "https://docs.ginject.io/#modules">, + ValidationError<"Dependency conflict", ["b"], "https://docs.ginject.io/#context">, + ValidationError<"Dependency missing", ["a"], "https://docs.ginject.io/#context"> + ] + }; + tsafeAssert>(); + }); }); From f676f532926b6a7009eaa9750fdc27eefd0fc48a Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 10:53:59 +0000 Subject: [PATCH 155/159] types & tests --- src/types.ts | 9 +++++---- test/inject.test.ts | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/types.ts b/src/types.ts index 1eef607d..2d3c169b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -50,10 +50,11 @@ type ValidateContextProperties, never> IsEmpty

extends true ? A : ValidationError<'Dependency missing', UnionToTuple, 'https://docs.ginject.io/#context'>; type Paths> = - Join>; + IsEmpty extends true ? {} : + Join>; // currently symbol keys are not supported type Flatten = diff --git a/test/inject.test.ts b/test/inject.test.ts index e9945969..d0593753 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -205,16 +205,17 @@ describe('The inject function', () => { const createFirst = () => { throw new Error('construction error'); }; const createSecond = ({ first }: API) => ({ b: first.a }); expect(() => + // @ts-expect-error inject({ first: createFirst, second: createSecond }).second ).toThrowError('construction error'); }); it('should properly forward past construction errors when building multiple times', () => { - //before fixing issue #463 a second attempt was leading to a cycle detection error (wrong direction for debugging people) interface API { first: { a: boolean }, second: { b: boolean }, third: { c: boolean } } const createFirst = () => { throw new Error('construction error'); }; const createSecond = ({ first }: API) => ({ b: first.a }); const createThird = ({ first }: API) => ({ c: first.a }); + // @ts-expect-error const result = inject({ first: createFirst, second: createSecond, third: createThird }); expect(() => result.second From 1f3fd92cb2be4dfd7465ccce22138bd5ce193bb4 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 12:50:31 +0000 Subject: [PATCH 156/159] types & tests --- src/types.ts | 25 +++++++++++++++++++------ test/inject.test.ts | 9 +++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/types.ts b/src/types.ts index 2d3c169b..f1e814a3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -56,19 +56,32 @@ type Paths> = : never >>; +// TODO(@@dd): DELME --> +function test(t: U) { + type A = [{ dep: () => ({}) }] + type M = MergeArray + type C = ReflectContainer + type T = M extends Module ? T : never; + type V = Validate +} + +// <-- DELME + // currently symbol keys are not supported type Flatten = T extends Obj ? K extends string | number ? Is extends true ? [`${K}`, never] - : T[K] extends Record - ? Flatten extends infer F - ? F extends [string, unknown] - ? [`${K}.${F[0]}`, F[1]] + : Is extends true + ? [`${K}`, {}] + : T[K] extends Record + ? Flatten extends infer F + ? F extends [string, unknown] + ? [`${K}.${F[0]}`, F[1]] + : never : never - : never - : [`${K}`, T[K]] + : [`${K}`, T[K]] : never : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index d0593753..38a170b5 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -28,10 +28,11 @@ describe('A dependency type', () => { it('should be function', () => checkType(function a() { })); it('should be lambda', () => checkType(() => { })); - function checkType(value: T): void { - const ctr = inject({ _: () => value }); - expect(typeof ctr._).toBe(typeof value); - expect(ctr._).toBe(value); + function checkType(t: T): void { + // @ts-expect-error + const ctr = inject({ _: () => T }); + expect(typeof ctr._).toBe(typeof t); + expect(ctr._).toBe(t); } }); From 6b55eb879f5ea0bfe990aa1df2a9b71e40a43096 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 13:01:09 +0000 Subject: [PATCH 157/159] types & tests --- src/types.ts | 7 ++++++- test/inject.test.ts | 19 ++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index f1e814a3..ea6f9739 100644 --- a/src/types.ts +++ b/src/types.ts @@ -58,7 +58,12 @@ type Paths> = // TODO(@@dd): DELME --> function test(t: U) { - type A = [{ dep: () => ({}) }] + interface C1 { + groupA: { + service1: A + } + } + type A = [Module] type M = MergeArray type C = ReflectContainer type T = M extends Module ? T : never; diff --git a/test/inject.test.ts b/test/inject.test.ts index 38a170b5..9dcc3c32 100644 --- a/test/inject.test.ts +++ b/test/inject.test.ts @@ -7,9 +7,9 @@ import { describe, expect, it } from 'vitest' import { assert as tsafeAssert, Equals } from 'tsafe'; import { eager, inject } from '../src/inject'; -import { Module } from '../src/types'; +import { Module, Validate, ValidationError } from '../src/types'; -describe('A dependency type', () => { +describe('A generic dependency type', () => { it('should be undefined', () => checkType(undefined)); it('should be null', () => checkType(null)); @@ -29,8 +29,7 @@ describe('A dependency type', () => { it('should be lambda', () => checkType(() => { })); function checkType(t: T): void { - // @ts-expect-error - const ctr = inject({ _: () => T }); + const ctr = inject({ _: () => t }); expect(typeof ctr._).toBe(typeof t); expect(ctr._).toBe(t); } @@ -333,16 +332,26 @@ describe('The inject function', () => { x: () => 1 }; + // -- CHECK MODULE 1 -- const ctr1 = inject(m1); // TODO(@@dd): assertions + // -- CHECK MODULE 2 -- const ctr2 = inject(m2); // TODO(@@dd): assertions + // -- CHECK MODULE 3 -- + type Actual3 = Validate<[typeof m3]> + type Expected3 = { + ginject_error: [ValidationError<"Dependency missing", ["groupA.service1"], "https://docs.ginject.io/#context">]; + }; + tsafeAssert>(); // @ts-expect-error const ctr3 = inject(m3); - // TODO(@@dd): assertions + tsafeAssert>(); + expect(ctr3).toBeNull(); + // -- CHECK COMPLETE CONTAINER -- const ctr = inject(m1, m2, m3); tsafeAssert>(); From 43b7f591366cc2b45f567febb984ed24a359ad2b Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sat, 15 Oct 2022 15:02:00 +0000 Subject: [PATCH 158/159] types & tests --- src/types.ts | 2 +- test/merge.test.ts | 19 ++++++------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/types.ts b/src/types.ts index ea6f9739..b135f8ea 100644 --- a/src/types.ts +++ b/src/types.ts @@ -49,7 +49,7 @@ type ValidateContextTypes, never>> = type ValidateContextProperties, never>, keyof Paths>>> = IsEmpty

extends true ? A : ValidationError<'Dependency missing', UnionToTuple, 'https://docs.ginject.io/#context'>; -type Paths> = +export type Paths> = IsEmpty extends true ? {} : Join { tsafeAssert, Expected>>(); }); - it('should not merge non-modules', () => { - type Input = [ - { a: number }, // intentionally no factory functions! - { b: string } - ]; - // @ts-expect-error - type T = MergeModules; - }); - }); describe('type MergeObjects', () => { @@ -889,7 +880,7 @@ describe('merge', () => { e: fn1, f: [1] } - } + }; const source = { a: B, b: { @@ -897,7 +888,7 @@ describe('merge', () => { e: fn2, f: [2, 3] } - } + }; const expected = { a: B, b: { @@ -905,8 +896,10 @@ describe('merge', () => { e: fn2, f: [2, 3] } - } - expect(merge(target, source)).toEqual(expected); + }; + type Expected = typeof expected; + type Actual = Merge; + assert>() }); it('should merge source: 1 with target: undefined in a typesafe way', () => { From 9581822c315e1d3f3bbb75df1174f3ac39f5b9fb Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Sun, 16 Oct 2022 02:22:01 +0000 Subject: [PATCH 159/159] merge --- test/merge.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/merge.test.ts b/test/merge.test.ts index fb31f1b5..2abbda23 100644 --- a/test/merge.test.ts +++ b/test/merge.test.ts @@ -899,7 +899,7 @@ describe('merge', () => { }; type Expected = typeof expected; type Actual = Merge; - assert>() + tsafeAssert>(); }); it('should merge source: 1 with target: undefined in a typesafe way', () => {