diff --git a/.astro/settings.json b/.astro/settings.json index 7f30860f..89830faa 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -3,6 +3,6 @@ "enabled": false }, "_variables": { - "lastUpdateCheck": 1731177782673 + "lastUpdateCheck": 1730829808749 } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 89130dc3..b51554b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,11 +10,8 @@ "dependencies": { "@astrojs/starlight": "^0.28.2", "@astrojs/tailwind": "^5.1.1", - "@preline/overlay": "^2.0.2", "astro": "^4.15.9", "astro-expressive-code": "^0.32.3", - "boxicons": "^2.1.4", - "preline": "^2.0.3", "tailwindcss": "^3.4.0" } }, @@ -1849,20 +1846,6 @@ "node": ">=14" } }, - "node_modules/@popperjs/core": { - "version": "2.11.8", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", - "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, - "node_modules/@preline/overlay": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@preline/overlay/-/overlay-2.0.2.tgz", - "integrity": "sha512-X3Lw6zRsgxqEnjAqHUYnJD/88NAb2+Q3OlXmvepNmADfUPnWb+rxem2k/M56qiWfP767sZuhDvNeXTlQnGZciA==" - }, "node_modules/@rollup/pluginutils": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.2.tgz", @@ -2263,11 +2246,6 @@ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, - "node_modules/@webcomponents/webcomponentsjs": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.8.0.tgz", - "integrity": "sha512-loGD63sacRzOzSJgQnB9ZAhaQGkN7wl2Zuw7tsphI5Isa0irijrRo6EnJii/GgjGefIFO8AIO7UivzRhFaEk9w==" - }, "node_modules/acorn": { "version": "8.12.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", @@ -2913,19 +2891,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxicons": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/boxicons/-/boxicons-2.1.4.tgz", - "integrity": "sha512-BvJNfYfnE4g9WQ7GL91fftxMOTwAleWlPFwvQJPYb/Ju7aLjlQ/Eu55AH9JLNk/OR82z+ZSq4TbKzbV/e5Rr0A==", - "dependencies": { - "@webcomponents/webcomponentsjs": "^2.0.2", - "prop-types": "^15.6.0", - "react": "^16.0.0", - "react-dom": "^16.0.0", - "react-interactive": "^0.8.1", - "react-router-dom": "^4.2.2" - } - }, "node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -3329,22 +3294,6 @@ "node": ">=6" } }, - "node_modules/detect-hover": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-hover/-/detect-hover-1.0.3.tgz", - "integrity": "sha512-HtLoY+tClgYucJNiovNICGWFp9nOGVmHY44s7L62iPqORXM9vujeWFaVcqtA7XRvp/2Y+4RBUfHbDKFGN+xxZQ==" - }, - "node_modules/detect-it": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/detect-it/-/detect-it-3.0.7.tgz", - "integrity": "sha512-RxpgcdbatUX6epJE09K16iJqF7x6iEcEdoL18FR2zpBO4JhnL7aMOAUoUEyexdtbWOSfTmoDWmeD6mwRBQyRXg==", - "dependencies": { - "detect-hover": "^1.0.3", - "detect-passive-events": "^1.0.5", - "detect-pointer": "^1.0.3", - "detect-touch-events": "^2.0.2" - } - }, "node_modules/detect-libc": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", @@ -3354,21 +3303,6 @@ "node": ">=8" } }, - "node_modules/detect-passive-events": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/detect-passive-events/-/detect-passive-events-1.0.5.tgz", - "integrity": "sha512-foW7Q35wwOCxVzW0xLf5XeB5Fhe7oyRgvkBYdiP9IWgLMzjqUqTvsJv9ymuEWGjY6AoDXD3OC294+Z9iuOw0QA==" - }, - "node_modules/detect-pointer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-pointer/-/detect-pointer-1.0.3.tgz", - "integrity": "sha512-d0o/Puo3fiGSCXy6H039h9Kwz+mmYCGKZ/qtPFnpN3WfsumjC1C9b5KKvRu+aYnfdI8peqN/iAe7dPd85qIt2g==" - }, - "node_modules/detect-touch-events": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/detect-touch-events/-/detect-touch-events-2.0.2.tgz", - "integrity": "sha512-g8GWBkJLiIDRJfRXEdrd1wMXpNyGId2DkbfuwFahSb4OCvn717hyRJtAcEDISfp3zkwEhZ4Y4woHPA6DeyB3Fw==" - }, "node_modules/deterministic-object-hash": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/deterministic-object-hash/-/deterministic-object-hash-2.0.2.tgz", @@ -4237,24 +4171,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/history": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", - "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", - "dependencies": { - "@babel/runtime": "^7.1.2", - "loose-envify": "^1.2.0", - "resolve-pathname": "^3.0.0", - "tiny-invariant": "^1.0.2", - "tiny-warning": "^1.0.0", - "value-equal": "^1.0.1" - } - }, - "node_modules/hoist-non-react-statics": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", - "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" - }, "node_modules/html-escaper": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", @@ -4319,14 +4235,6 @@ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" }, - "node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, "node_modules/is-alphabetical": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", @@ -4546,11 +4454,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -4747,17 +4650,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -6424,14 +6316,6 @@ "node": ">=18.12" } }, - "node_modules/preline": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/preline/-/preline-2.0.3.tgz", - "integrity": "sha512-V/sLmRIHd23UCdvJNRKKszntgUqA0381erVzRpQ48NjjMOgI7DyFW4mr+lg387V0oeBc5Dx9Jxa5voppVoH9GA==", - "dependencies": { - "@popperjs/core": "^2.11.2" - } - }, "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", @@ -6460,16 +6344,6 @@ "node": ">=6" } }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, "node_modules/property-information": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.4.0.tgz", @@ -6498,92 +6372,6 @@ } ] }, - "node_modules/react": { - "version": "16.14.0", - "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", - "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "16.14.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", - "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2", - "scheduler": "^0.19.1" - }, - "peerDependencies": { - "react": "^16.14.0" - } - }, - "node_modules/react-interactive": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/react-interactive/-/react-interactive-0.8.3.tgz", - "integrity": "sha512-mmRvA9aKP7zu9kVfP1AX1egX8tFlnE3DDXq92z0JTZezfOpmeQBzr77O1+mTV54OOmn+M2t6c5kFD5VnuFoM7A==", - "dependencies": { - "detect-it": "^3.0.3", - "object-assign": "^4.1.1", - "prop-types": "^15.6.0" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/react-router": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-4.3.1.tgz", - "integrity": "sha512-yrvL8AogDh2X42Dt9iknk4wF4V8bWREPirFfS9gLU1huk6qK41sg7Z/1S81jjTrGHxa3B8R3J6xIkDAA6CVarg==", - "dependencies": { - "history": "^4.7.2", - "hoist-non-react-statics": "^2.5.0", - "invariant": "^2.2.4", - "loose-envify": "^1.3.1", - "path-to-regexp": "^1.7.0", - "prop-types": "^15.6.1", - "warning": "^4.0.1" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-router-dom": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-4.3.1.tgz", - "integrity": "sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA==", - "dependencies": { - "history": "^4.7.2", - "invariant": "^2.2.4", - "loose-envify": "^1.3.1", - "prop-types": "^15.6.1", - "react-router": "^4.3.1", - "warning": "^4.0.1" - }, - "peerDependencies": { - "react": ">=15" - } - }, - "node_modules/react-router/node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dependencies": { - "isarray": "0.0.1" - } - }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", @@ -7144,11 +6932,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-pathname": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", - "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" - }, "node_modules/restore-cursor": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", @@ -7291,15 +7074,6 @@ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, - "node_modules/scheduler": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", - "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, "node_modules/section-matter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", @@ -7730,16 +7504,6 @@ "node": ">=0.8" } }, - "node_modules/tiny-invariant": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", - "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==" - }, - "node_modules/tiny-warning": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" - }, "node_modules/tinyexec": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.0.tgz", @@ -8019,11 +7783,6 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/value-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", - "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" - }, "node_modules/vfile": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", @@ -8121,14 +7880,6 @@ } } }, - "node_modules/warning": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, "node_modules/web-namespaces": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", diff --git a/package.json b/package.json index bb36be44..2e7404a3 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,8 @@ "dependencies": { "@astrojs/starlight": "^0.28.2", "@astrojs/tailwind": "^5.1.1", - "@preline/overlay": "^2.0.2", "astro": "^4.15.9", "astro-expressive-code": "^0.32.3", - "boxicons": "^2.1.4", - "preline": "^2.0.3", "tailwindcss": "^3.4.0" } } diff --git a/public/index.css b/public/index.css index e096a296..092bbc7b 100644 --- a/public/index.css +++ b/public/index.css @@ -2,19 +2,5 @@ @tailwind components; @tailwind utilities; -.projects { - display: flex; - flex-wrap: wrap; - gap: 1rem; - justify-content: center; -} -.card { - width: 30% -} -@media (max-width: 768px) { - .card { - width: 90% - } -} \ No newline at end of file diff --git a/public/overlay.min.js b/public/overlay.min.js deleted file mode 100644 index ed5f8373..00000000 --- a/public/overlay.min.js +++ /dev/null @@ -1,1322 +0,0 @@ -/** - * Skipped minification because the original files appears to be already minified. - * Original file: /npm/@preline/overlay@2.0.2/index.js - * - * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files - */ -!(function (e, t) { - if ("object" == typeof exports && "object" == typeof module) - module.exports = t(); - else if ("function" == typeof define && define.amd) define([], t); - else { - var o = t(); - for (var n in o) ("object" == typeof exports ? exports : e)[n] = o[n]; - } -})(self, () => - (() => { - "use strict"; - var e = { - 737: (e, t) => { - /*/** - * Skipped minification because the original files appears to be already minified. - * Original file: /npm/@preline/overlay@2.0.2/index.js - * - * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files - */ - !(function (e, t) { - if ("object" == typeof exports && "object" == typeof module) - module.exports = t(); - else if ("function" == typeof define && define.amd) define([], t); - else { - var o = t(); - for (var n in o) - ("object" == typeof exports ? exports : e)[n] = o[n]; - } - })(self, () => - (() => { - "use strict"; - var e = { - 737: (e, t) => { - /* - * HSBasePlugin - * @version: 2.0.3 - * @author: HTMLStream - * @license: Licensed under MIT (https://preline.co/docs/license.html) - * Copyright 2023 HTMLStream - */ - Object.defineProperty(t, "__esModule", { value: !0 }); - var o = (function () { - function e(e, t, o) { - (this.el = e), - (this.options = t), - (this.events = o), - (this.el = e), - (this.options = t), - (this.events = {}); - } - return ( - (e.prototype.createCollection = function (e, t) { - var o; - e.push({ - id: - (null === (o = null == t ? void 0 : t.el) || - void 0 === o - ? void 0 - : o.id) || e.length + 1, - element: t, - }); - }), - (e.prototype.fireEvent = function (e, t) { - if ( - (void 0 === t && (t = null), - this.events.hasOwnProperty(e)) - ) - return this.events[e](t); - }), - (e.prototype.on = function (e, t) { - this.events[e] = t; - }), - e - ); - })(); - t.default = o; - }, - 770: function (e, t, o) { - /* - * HSOverlay - * @version: 2.0.3 - * @author: HTMLStream - * @license: Licensed under MIT (https://preline.co/docs/license.html) - * Copyright 2023 HTMLStream - */ - var n, - i = - (this && this.__extends) || - ((n = function (e, t) { - return ( - (n = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (e, t) { - e.__proto__ = t; - }) || - function (e, t) { - for (var o in t) - Object.prototype.hasOwnProperty.call(t, o) && - (e[o] = t[o]); - }), - n(e, t) - ); - }), - function (e, t) { - if ("function" != typeof t && null !== t) - throw new TypeError( - "Class extends value " + - String(t) + - " is not a constructor or null" - ); - function o() { - this.constructor = e; - } - n(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((o.prototype = t.prototype), new o())); - }), - r = - (this && this.__assign) || - function () { - return ( - (r = - Object.assign || - function (e) { - for ( - var t, o = 1, n = arguments.length; - o < n; - o++ - ) - for (var i in (t = arguments[o])) - Object.prototype.hasOwnProperty.call( - t, - i - ) && (e[i] = t[i]); - return e; - }), - r.apply(this, arguments) - ); - }; - Object.defineProperty(t, "__esModule", { value: !0 }); - var l = o(969), - s = (function (e) { - function t(t, o, n) { - var i, - s, - a = e.call(this, t, o, n) || this, - c = t.getAttribute("data-hs-overlay-options"), - u = c ? JSON.parse(c) : {}, - d = r(r({}, u), o); - return ( - (a.hiddenClass = - (null == d ? void 0 : d.hiddenClass) || "hidden"), - (a.isClosePrev = - null === - (i = null == d ? void 0 : d.isClosePrev) || - void 0 === i || - i), - (a.backdropClasses = - null !== - (s = null == d ? void 0 : d.backdropClasses) && - void 0 !== s - ? s - : "transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 hs-overlay-backdrop"), - (a.openNextOverlay = !1), - (a.autoHide = null), - (a.overlayId = - a.el.getAttribute("data-hs-overlay")), - (a.overlay = document.querySelector(a.overlayId)), - a.overlay && - ((a.isCloseWhenClickInside = - (0, l.getClassProperty)( - a.overlay, - "--close-when-click-inside", - "false" - ) || "false"), - (a.isTabAccessibilityLimited = - (0, l.getClassProperty)( - a.overlay, - "--tab-accessibility-limited", - "true" - ) || "true"), - (a.hasAutofocus = - (0, l.getClassProperty)( - a.overlay, - "--has-autofocus", - "true" - ) || "true"), - (a.hasAbilityToCloseOnBackdropClick = - a.overlay.getAttribute( - "data-hs-overlay-keyboard" - ) || "true")), - a.overlay && a.init(), - a - ); - } - return ( - i(t, e), - (t.prototype.init = function () { - var e = this; - this.createCollection( - window.$hsOverlayCollection, - this - ), - this.el.addEventListener("click", function () { - e.overlay.classList.contains(e.hiddenClass) - ? e.open() - : e.close(); - }), - this.overlay.addEventListener( - "click", - function (t) { - t.target.id && - "#".concat(t.target.id) === e.overlayId && - "true" === e.isCloseWhenClickInside && - "true" === - e.hasAbilityToCloseOnBackdropClick && - e.close(); - } - ); - }), - (t.prototype.hideAuto = function () { - var e = this, - t = parseInt( - (0, l.getClassProperty)( - this.overlay, - "--auto-hide", - "0" - ) - ); - t && - (this.autoHide = setTimeout(function () { - e.close(); - }, t)); - }), - (t.prototype.checkTimer = function () { - this.autoHide && - (clearTimeout(this.autoHide), - (this.autoHide = null)); - }), - (t.prototype.buildBackdrop = function () { - var e = this, - t = this.overlay.classList.value.split(" "), - o = parseInt( - window - .getComputedStyle(this.overlay) - .getPropertyValue("z-index") - ), - n = - this.overlay.getAttribute( - "data-hs-overlay-backdrop-container" - ) || !1, - i = document.createElement("div"), - r = this.backdropClasses, - s = - "static" !== - (0, l.getClassProperty)( - this.overlay, - "--overlay-backdrop", - "true" - ), - a = - "false" === - (0, l.getClassProperty)( - this.overlay, - "--overlay-backdrop", - "true" - ); - (i.id = "".concat(this.overlay.id, "-backdrop")), - "style" in i && - (i.style.zIndex = "".concat(o - 1)); - for (var c = 0, u = t; c < u.length; c++) { - var d = u[c]; - (d.startsWith("hs-overlay-backdrop-open:") || - d.includes(":hs-overlay-backdrop-open:")) && - (r += " ".concat(d)); - } - a || - (n && - ((i = document - .querySelector(n) - .cloneNode(!0)).classList.remove("hidden"), - (r = "".concat(i.classList.toString())), - (i.classList.value = "")), - s && - i.addEventListener( - "click", - function () { - return e.close(); - }, - !0 - ), - i.setAttribute( - "data-hs-overlay-backdrop-template", - "" - ), - document.body.appendChild(i), - setTimeout(function () { - i.classList.value = r; - })); - }), - (t.prototype.destroyBackdrop = function () { - var e = document.querySelector( - "#".concat(this.overlay.id, "-backdrop") - ); - e && - (this.openNextOverlay && - (e.style.transitionDuration = "".concat( - 1.8 * - parseFloat( - window - .getComputedStyle(e) - .transitionDuration.replace( - /[^\d.-]/g, - "" - ) - ), - "s" - )), - e.classList.add("opacity-0"), - (0, l.afterTransition)(e, function () { - e.remove(); - })); - }), - (t.prototype.focusElement = function () { - var e = this.overlay.querySelector("[autofocus]"); - if (!e) return !1; - e.focus(); - }), - (t.prototype.open = function () { - var e = this; - if (!this.overlay) return !1; - var t = window.$hsOverlayCollection.find(function ( - e - ) { - return ( - e.element.overlay === - document.querySelector(".hs-overlay.open") - ); - }), - o = - "true" !== - (0, l.getClassProperty)( - this.overlay, - "--body-scroll", - "false" - ); - if (this.isClosePrev && t) - return ( - (this.openNextOverlay = !0), - t.element.close().then(function () { - e.open(), (e.openNextOverlay = !1); - }) - ); - o && (document.body.style.overflow = "hidden"), - this.buildBackdrop(), - this.checkTimer(), - this.hideAuto(), - this.overlay.classList.remove(this.hiddenClass), - this.overlay.setAttribute("aria-overlay", "true"), - this.overlay.setAttribute("tabindex", "-1"), - setTimeout(function () { - if (e.overlay.classList.contains(e.hiddenClass)) - return !1; - e.overlay.classList.add("open"), - e.fireEvent("open", e.el), - (0, l.dispatch)( - "open.hs.overlay", - e.el, - e.el - ), - "true" === e.hasAutofocus && e.focusElement(); - }, 50); - }), - (t.prototype.close = function () { - var e = this; - return new Promise(function (t) { - if (!e.overlay) return !1; - e.overlay.classList.remove("open"), - e.overlay.removeAttribute("aria-overlay"), - e.overlay.removeAttribute("tabindex"), - (0, l.afterTransition)(e.overlay, function () { - if (e.overlay.classList.contains("open")) - return !1; - e.overlay.classList.add(e.hiddenClass), - e.destroyBackdrop(), - e.fireEvent("close", e.el), - (0, l.dispatch)( - "close.hs.overlay", - e.el, - e.el - ), - (document.body.style.overflow = ""), - t(e.overlay); - }); - }); - }), - (t.getInstance = function (e, t) { - var o = window.$hsOverlayCollection.find(function ( - t - ) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e - ? document.querySelector(e) - : e) - ); - }); - return o ? (t ? o : o.element.el) : null; - }), - (t.autoInit = function () { - window.$hsOverlayCollection || - (window.$hsOverlayCollection = []), - document - .querySelectorAll( - "[data-hs-overlay]:not(.--prevent-on-load-init)" - ) - .forEach(function (e) { - window.$hsOverlayCollection.find(function ( - t - ) { - var o; - return ( - (null === - (o = null == t ? void 0 : t.element) || - void 0 === o - ? void 0 - : o.el) === e - ); - }) || new t(e); - }), - window.$hsOverlayCollection && - document.addEventListener( - "keydown", - function (e) { - return t.accessibility(e); - } - ); - }), - (t.open = function (e) { - var t = window.$hsOverlayCollection.find(function ( - t - ) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e - ? document.querySelector(e) - : e) - ); - }); - t && - t.element.overlay.classList.contains( - t.element.hiddenClass - ) && - t.element.open(); - }), - (t.close = function (e) { - var t = window.$hsOverlayCollection.find(function ( - t - ) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e - ? document.querySelector(e) - : e) - ); - }); - t && - !t.element.overlay.classList.contains( - t.element.hiddenClass - ) && - t.element.close(); - }), - (t.accessibility = function (e) { - var t, - o, - n = window.$hsOverlayCollection.filter(function ( - e - ) { - return e.element.overlay.classList.contains( - "open" - ); - }), - i = n[n.length - 1], - r = - null === - (o = - null === - (t = null == i ? void 0 : i.element) || - void 0 === t - ? void 0 - : t.overlay) || void 0 === o - ? void 0 - : o.querySelectorAll( - 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' - ), - s = []; - (null == r ? void 0 : r.length) && - r.forEach(function (e) { - (0, l.isParentOrElementHidden)(e) || s.push(e); - }); - var a = i && !e.metaKey; - if ( - a && - "false" === i.element.isTabAccessibilityLimited && - "Tab" === e.code - ) - return !1; - a && - s.length && - "Tab" === e.code && - (e.preventDefault(), this.onTab(i, s)), - a && - "Escape" === e.code && - (e.preventDefault(), this.onEscape(i)); - }), - (t.onEscape = function (e) { - e && e.element.close(); - }), - (t.onTab = function (e, t) { - if (!t.length) return !1; - var o = e.element.overlay.querySelector(":focus"), - n = Array.from(t).indexOf(o); - n > -1 - ? t[(n + 1) % t.length].focus() - : t[0].focus(); - }), - (t.on = function (e, t, o) { - var n = window.$hsOverlayCollection.find(function ( - e - ) { - return ( - e.element.el === - ("string" == typeof t - ? document.querySelector(t) - : t) || - e.element.overlay === - ("string" == typeof t - ? document.querySelector(t) - : t) - ); - }); - n && (n.element.events[e] = o); - }), - t - ); - })(o(737).default); - window.addEventListener("load", function () { - s.autoInit(); - }), - "undefined" != typeof window && (window.HSOverlay = s), - (t.default = s); - }, - 969: function (e, t) { - var o = this; - Object.defineProperty(t, "__esModule", { value: !0 }), - (t.menuSearchHistory = - t.classToClassList = - t.htmlToElement = - t.afterTransition = - t.dispatch = - t.debounce = - t.isFormElement = - t.isParentOrElementHidden = - t.isEnoughSpace = - t.isIpadOS = - t.isIOS = - t.getClassPropertyAlt = - t.getClassProperty = - void 0); - t.getClassProperty = function (e, t, o) { - return ( - void 0 === o && (o = ""), - ( - window.getComputedStyle(e).getPropertyValue(t) || o - ).replace(" ", "") - ); - }; - t.getClassPropertyAlt = function (e, t, o) { - void 0 === o && (o = ""); - var n = ""; - return ( - e.classList.forEach(function (e) { - e.includes(t) && (n = e); - }), - n.match(/:(.*)]/) ? n.match(/:(.*)]/)[1] : o - ); - }; - t.isIOS = function () { - return ( - !!/iPad|iPhone|iPod/.test(navigator.platform) || - (navigator.maxTouchPoints && - navigator.maxTouchPoints > 2 && - /MacIntel/.test(navigator.platform)) - ); - }; - t.isIpadOS = function () { - return ( - navigator.maxTouchPoints && - navigator.maxTouchPoints > 2 && - /MacIntel/.test(navigator.platform) - ); - }; - t.isEnoughSpace = function (e, t, o, n, i) { - void 0 === o && (o = "auto"), - void 0 === n && (n = 10), - void 0 === i && (i = null); - var r = t.getBoundingClientRect(), - l = i ? i.getBoundingClientRect() : null, - s = window.innerHeight, - a = l ? r.top - l.top : r.top, - c = (i ? l.bottom : s) - r.bottom, - u = e.clientHeight + n; - return "bottom" === o - ? c >= u - : "top" === o - ? a >= u - : a >= u || c >= u; - }; - t.isFormElement = function (e) { - return ( - e instanceof HTMLInputElement || - e instanceof HTMLTextAreaElement || - e instanceof HTMLSelectElement - ); - }; - var n = function (e) { - return ( - !!e && - ("none" === window.getComputedStyle(e).display || - n(e.parentElement)) - ); - }; - t.isParentOrElementHidden = n; - t.debounce = function (e, t) { - var n; - return ( - void 0 === t && (t = 200), - function () { - for (var i = [], r = 0; r < arguments.length; r++) - i[r] = arguments[r]; - clearTimeout(n), - (n = setTimeout(function () { - e.apply(o, i); - }, t)); - } - ); - }; - t.dispatch = function (e, t, o) { - void 0 === o && (o = null); - var n = new CustomEvent(e, { - detail: { payload: o }, - bubbles: !0, - cancelable: !0, - composed: !1, - }); - t.dispatchEvent(n); - }; - t.afterTransition = function (e, t) { - var o = function () { - t(), e.removeEventListener("transitionend", o, !0); - }; - "all 0s ease 0s" !== - window - .getComputedStyle(e, null) - .getPropertyValue("transition") - ? e.addEventListener("transitionend", o, !0) - : t(); - }; - t.htmlToElement = function (e) { - var t = document.createElement("template"); - return ( - (e = e.trim()), (t.innerHTML = e), t.content.firstChild - ); - }; - t.classToClassList = function (e, t, o) { - void 0 === o && (o = " "), - e.split(o).forEach(function (e) { - return t.classList.add(e); - }); - }; - t.menuSearchHistory = { - historyIndex: -1, - addHistory: function (e) { - this.historyIndex = e; - }, - existsInHistory: function (e) { - return e > this.historyIndex; - }, - clearHistory: function () { - this.historyIndex = -1; - }, - }; - }, - }, - t = {}; - var o = (function o(n) { - var i = t[n]; - if (void 0 !== i) return i.exports; - var r = (t[n] = { exports: {} }); - return e[n].call(r.exports, r, r.exports, o), r.exports; - })(770); - return o; - })() - ); - - Object.defineProperty(t, "__esModule", { value: !0 }); - var o = (function () { - function e(e, t, o) { - (this.el = e), - (this.options = t), - (this.events = o), - (this.el = e), - (this.options = t), - (this.events = {}); - } - return ( - (e.prototype.createCollection = function (e, t) { - var o; - e.push({ - id: - (null === (o = null == t ? void 0 : t.el) || void 0 === o - ? void 0 - : o.id) || e.length + 1, - element: t, - }); - }), - (e.prototype.fireEvent = function (e, t) { - if ((void 0 === t && (t = null), this.events.hasOwnProperty(e))) - return this.events[e](t); - }), - (e.prototype.on = function (e, t) { - this.events[e] = t; - }), - e - ); - })(); - t.default = o; - }, - 770: function (e, t, o) { - var n, - i = - (this && this.__extends) || - ((n = function (e, t) { - return ( - (n = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (e, t) { - e.__proto__ = t; - }) || - function (e, t) { - for (var o in t) - Object.prototype.hasOwnProperty.call(t, o) && - (e[o] = t[o]); - }), - n(e, t) - ); - }), - function (e, t) { - if ("function" != typeof t && null !== t) - throw new TypeError( - "Class extends value " + - String(t) + - " is not a constructor or null" - ); - function o() { - this.constructor = e; - } - n(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((o.prototype = t.prototype), new o())); - }), - r = - (this && this.__assign) || - function () { - return ( - (r = - Object.assign || - function (e) { - for (var t, o = 1, n = arguments.length; o < n; o++) - for (var i in (t = arguments[o])) - Object.prototype.hasOwnProperty.call(t, i) && - (e[i] = t[i]); - return e; - }), - r.apply(this, arguments) - ); - }; - Object.defineProperty(t, "__esModule", { value: !0 }); - var l = o(969), - s = (function (e) { - function t(t, o, n) { - var i, - s, - a = e.call(this, t, o, n) || this, - c = t.getAttribute("data-hs-overlay-options"), - u = c ? JSON.parse(c) : {}, - d = r(r({}, u), o); - return ( - (a.hiddenClass = - (null == d ? void 0 : d.hiddenClass) || "hidden"), - (a.isClosePrev = - null === (i = null == d ? void 0 : d.isClosePrev) || - void 0 === i || - i), - (a.backdropClasses = - null !== (s = null == d ? void 0 : d.backdropClasses) && - void 0 !== s - ? s - : "transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 hs-overlay-backdrop"), - (a.openNextOverlay = !1), - (a.autoHide = null), - (a.overlayId = a.el.getAttribute("data-hs-overlay")), - (a.overlay = document.querySelector(a.overlayId)), - a.overlay && - ((a.isCloseWhenClickInside = - (0, l.getClassProperty)( - a.overlay, - "--close-when-click-inside", - "false" - ) || "false"), - (a.isTabAccessibilityLimited = - (0, l.getClassProperty)( - a.overlay, - "--tab-accessibility-limited", - "true" - ) || "true"), - (a.hasAutofocus = - (0, l.getClassProperty)( - a.overlay, - "--has-autofocus", - "true" - ) || "true"), - (a.hasAbilityToCloseOnBackdropClick = - a.overlay.getAttribute("data-hs-overlay-keyboard") || - "true")), - a.overlay && a.init(), - a - ); - } - return ( - i(t, e), - (t.prototype.init = function () { - var e = this; - this.createCollection(window.$hsOverlayCollection, this), - this.el.addEventListener("click", function () { - e.overlay.classList.contains(e.hiddenClass) - ? e.open() - : e.close(); - }), - this.overlay.addEventListener("click", function (t) { - t.target.id && - "#".concat(t.target.id) === e.overlayId && - "true" === e.isCloseWhenClickInside && - "true" === e.hasAbilityToCloseOnBackdropClick && - e.close(); - }); - }), - (t.prototype.hideAuto = function () { - var e = this, - t = parseInt( - (0, l.getClassProperty)(this.overlay, "--auto-hide", "0") - ); - t && - (this.autoHide = setTimeout(function () { - e.close(); - }, t)); - }), - (t.prototype.checkTimer = function () { - this.autoHide && - (clearTimeout(this.autoHide), (this.autoHide = null)); - }), - (t.prototype.buildBackdrop = function () { - var e = this, - t = this.overlay.classList.value.split(" "), - o = parseInt( - window - .getComputedStyle(this.overlay) - .getPropertyValue("z-index") - ), - n = - this.overlay.getAttribute( - "data-hs-overlay-backdrop-container" - ) || !1, - i = document.createElement("div"), - r = this.backdropClasses, - s = - "static" !== - (0, l.getClassProperty)( - this.overlay, - "--overlay-backdrop", - "true" - ), - a = - "false" === - (0, l.getClassProperty)( - this.overlay, - "--overlay-backdrop", - "true" - ); - (i.id = "".concat(this.overlay.id, "-backdrop")), - "style" in i && (i.style.zIndex = "".concat(o - 1)); - for (var c = 0, u = t; c < u.length; c++) { - var d = u[c]; - (d.startsWith("hs-overlay-backdrop-open:") || - d.includes(":hs-overlay-backdrop-open:")) && - (r += " ".concat(d)); - } - a || - (n && - ((i = document - .querySelector(n) - .cloneNode(!0)).classList.remove("hidden"), - (r = "".concat(i.classList.toString())), - (i.classList.value = "")), - s && - i.addEventListener( - "click", - function () { - return e.close(); - }, - !0 - ), - i.setAttribute("data-hs-overlay-backdrop-template", ""), - document.body.appendChild(i), - setTimeout(function () { - i.classList.value = r; - })); - }), - (t.prototype.destroyBackdrop = function () { - var e = document.querySelector( - "#".concat(this.overlay.id, "-backdrop") - ); - e && - (this.openNextOverlay && - (e.style.transitionDuration = "".concat( - 1.8 * - parseFloat( - window - .getComputedStyle(e) - .transitionDuration.replace(/[^\d.-]/g, "") - ), - "s" - )), - e.classList.add("opacity-0"), - (0, l.afterTransition)(e, function () { - e.remove(); - })); - }), - (t.prototype.focusElement = function () { - var e = this.overlay.querySelector("[autofocus]"); - if (!e) return !1; - e.focus(); - }), - (t.prototype.open = function () { - var e = this; - if (!this.overlay) return !1; - var t = window.$hsOverlayCollection.find(function (e) { - return ( - e.element.overlay === - document.querySelector(".hs-overlay.open") - ); - }), - o = - "true" !== - (0, l.getClassProperty)( - this.overlay, - "--body-scroll", - "false" - ); - if (this.isClosePrev && t) - return ( - (this.openNextOverlay = !0), - t.element.close().then(function () { - e.open(), (e.openNextOverlay = !1); - }) - ); - o && (document.body.style.overflow = "hidden"), - this.buildBackdrop(), - this.checkTimer(), - this.hideAuto(), - this.overlay.classList.remove(this.hiddenClass), - this.overlay.setAttribute("aria-overlay", "true"), - this.overlay.setAttribute("tabindex", "-1"), - setTimeout(function () { - if (e.overlay.classList.contains(e.hiddenClass)) - return !1; - e.overlay.classList.add("open"), - e.fireEvent("open", e.el), - (0, l.dispatch)("open.hs.overlay", e.el, e.el), - "true" === e.hasAutofocus && e.focusElement(); - }, 50); - }), - (t.prototype.close = function () { - var e = this; - return new Promise(function (t) { - if (!e.overlay) return !1; - e.overlay.classList.remove("open"), - e.overlay.removeAttribute("aria-overlay"), - e.overlay.removeAttribute("tabindex"), - (0, l.afterTransition)(e.overlay, function () { - if (e.overlay.classList.contains("open")) return !1; - e.overlay.classList.add(e.hiddenClass), - e.destroyBackdrop(), - e.fireEvent("close", e.el), - (0, l.dispatch)("close.hs.overlay", e.el, e.el), - (document.body.style.overflow = ""), - t(e.overlay); - }); - }); - }), - (t.getInstance = function (e, t) { - var o = window.$hsOverlayCollection.find(function (t) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e ? document.querySelector(e) : e) - ); - }); - return o ? (t ? o : o.element.el) : null; - }), - (t.autoInit = function () { - window.$hsOverlayCollection || - (window.$hsOverlayCollection = []), - document - .querySelectorAll( - "[data-hs-overlay]:not(.--prevent-on-load-init)" - ) - .forEach(function (e) { - window.$hsOverlayCollection.find(function (t) { - var o; - return ( - (null === (o = null == t ? void 0 : t.element) || - void 0 === o - ? void 0 - : o.el) === e - ); - }) || new t(e); - }), - window.$hsOverlayCollection && - document.addEventListener("keydown", function (e) { - return t.accessibility(e); - }); - }), - (t.open = function (e) { - var t = window.$hsOverlayCollection.find(function (t) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e ? document.querySelector(e) : e) - ); - }); - t && - t.element.overlay.classList.contains( - t.element.hiddenClass - ) && - t.element.open(); - }), - (t.close = function (e) { - var t = window.$hsOverlayCollection.find(function (t) { - return ( - t.element.el === - ("string" == typeof e - ? document.querySelector(e) - : e) || - t.element.overlay === - ("string" == typeof e ? document.querySelector(e) : e) - ); - }); - t && - !t.element.overlay.classList.contains( - t.element.hiddenClass - ) && - t.element.close(); - }), - (t.accessibility = function (e) { - var t, - o, - n = window.$hsOverlayCollection.filter(function (e) { - return e.element.overlay.classList.contains("open"); - }), - i = n[n.length - 1], - r = - null === - (o = - null === (t = null == i ? void 0 : i.element) || - void 0 === t - ? void 0 - : t.overlay) || void 0 === o - ? void 0 - : o.querySelectorAll( - 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' - ), - s = []; - (null == r ? void 0 : r.length) && - r.forEach(function (e) { - (0, l.isParentOrElementHidden)(e) || s.push(e); - }); - var a = i && !e.metaKey; - if ( - a && - "false" === i.element.isTabAccessibilityLimited && - "Tab" === e.code - ) - return !1; - a && - s.length && - "Tab" === e.code && - (e.preventDefault(), this.onTab(i, s)), - a && - "Escape" === e.code && - (e.preventDefault(), this.onEscape(i)); - }), - (t.onEscape = function (e) { - e && e.element.close(); - }), - (t.onTab = function (e, t) { - if (!t.length) return !1; - var o = e.element.overlay.querySelector(":focus"), - n = Array.from(t).indexOf(o); - n > -1 ? t[(n + 1) % t.length].focus() : t[0].focus(); - }), - (t.on = function (e, t, o) { - var n = window.$hsOverlayCollection.find(function (e) { - return ( - e.element.el === - ("string" == typeof t - ? document.querySelector(t) - : t) || - e.element.overlay === - ("string" == typeof t ? document.querySelector(t) : t) - ); - }); - n && (n.element.events[e] = o); - }), - t - ); - })(o(737).default); - window.addEventListener("load", function () { - s.autoInit(); - }), - "undefined" != typeof window && (window.HSOverlay = s), - (t.default = s); - }, - 969: function (e, t) { - var o = this; - Object.defineProperty(t, "__esModule", { value: !0 }), - (t.menuSearchHistory = - t.classToClassList = - t.htmlToElement = - t.afterTransition = - t.dispatch = - t.debounce = - t.isFormElement = - t.isParentOrElementHidden = - t.isEnoughSpace = - t.isIpadOS = - t.isIOS = - t.getClassPropertyAlt = - t.getClassProperty = - void 0); - t.getClassProperty = function (e, t, o) { - return ( - void 0 === o && (o = ""), - (window.getComputedStyle(e).getPropertyValue(t) || o).replace( - " ", - "" - ) - ); - }; - t.getClassPropertyAlt = function (e, t, o) { - void 0 === o && (o = ""); - var n = ""; - return ( - e.classList.forEach(function (e) { - e.includes(t) && (n = e); - }), - n.match(/:(.*)]/) ? n.match(/:(.*)]/)[1] : o - ); - }; - t.isIOS = function () { - return ( - !!/iPad|iPhone|iPod/.test(navigator.platform) || - (navigator.maxTouchPoints && - navigator.maxTouchPoints > 2 && - /MacIntel/.test(navigator.platform)) - ); - }; - t.isIpadOS = function () { - return ( - navigator.maxTouchPoints && - navigator.maxTouchPoints > 2 && - /MacIntel/.test(navigator.platform) - ); - }; - t.isEnoughSpace = function (e, t, o, n, i) { - void 0 === o && (o = "auto"), - void 0 === n && (n = 10), - void 0 === i && (i = null); - var r = t.getBoundingClientRect(), - l = i ? i.getBoundingClientRect() : null, - s = window.innerHeight, - a = l ? r.top - l.top : r.top, - c = (i ? l.bottom : s) - r.bottom, - u = e.clientHeight + n; - return "bottom" === o - ? c >= u - : "top" === o - ? a >= u - : a >= u || c >= u; - }; - t.isFormElement = function (e) { - return ( - e instanceof HTMLInputElement || - e instanceof HTMLTextAreaElement || - e instanceof HTMLSelectElement - ); - }; - var n = function (e) { - return ( - !!e && - ("none" === window.getComputedStyle(e).display || - n(e.parentElement)) - ); - }; - t.isParentOrElementHidden = n; - t.debounce = function (e, t) { - var n; - return ( - void 0 === t && (t = 200), - function () { - for (var i = [], r = 0; r < arguments.length; r++) - i[r] = arguments[r]; - clearTimeout(n), - (n = setTimeout(function () { - e.apply(o, i); - }, t)); - } - ); - }; - t.dispatch = function (e, t, o) { - void 0 === o && (o = null); - var n = new CustomEvent(e, { - detail: { payload: o }, - bubbles: !0, - cancelable: !0, - composed: !1, - }); - t.dispatchEvent(n); - }; - t.afterTransition = function (e, t) { - var o = function () { - t(), e.removeEventListener("transitionend", o, !0); - }; - "all 0s ease 0s" !== - window.getComputedStyle(e, null).getPropertyValue("transition") - ? e.addEventListener("transitionend", o, !0) - : t(); - }; - t.htmlToElement = function (e) { - var t = document.createElement("template"); - return (e = e.trim()), (t.innerHTML = e), t.content.firstChild; - }; - t.classToClassList = function (e, t, o) { - void 0 === o && (o = " "), - e.split(o).forEach(function (e) { - return t.classList.add(e); - }); - }; - t.menuSearchHistory = { - historyIndex: -1, - addHistory: function (e) { - this.historyIndex = e; - }, - existsInHistory: function (e) { - return e > this.historyIndex; - }, - clearHistory: function () { - this.historyIndex = -1; - }, - }; - }, - }, - t = {}; - var o = (function o(n) { - var i = t[n]; - if (void 0 !== i) return i.exports; - var r = (t[n] = { exports: {} }); - return e[n].call(r.exports, r, r.exports, o), r.exports; - })(770); - return o; - })() -); diff --git a/public/preline.min.js b/public/preline.min.js deleted file mode 100644 index 59ee2498..00000000 --- a/public/preline.min.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={216:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";var r=n(714),o=n(765),i=n(422);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";var r=n(765),o=n(422);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth&&(t.style.right="100%",t.style.left="unset"),setTimeout((function(){e.classList.add("open")}),10),this._fireEvent("open",e),this._dispatch("open.hs.megaMenu",e,e)}},{key:"toggle",value:function(e){e.classList.contains("open")?this.close(e):this.open(e)}},{key:"_keyboardSupport",value:function(e){var t=document.querySelectorAll(".hs-mega-menu.open");if(t.length){var n=t[t.length-1];return 27===e.keyCode?(e.preventDefault(),this._esc(n)):40===e.keyCode?(e.preventDefault(),this._down(n)):38===e.keyCode?(e.preventDefault(),this._up(n)):36===e.keyCode?(e.preventDefault(),this._start(n)):35===e.keyCode?(e.preventDefault(),this._end(n)):void this._byChar(n,e.key)}}},{key:"_esc",value:function(e){if(this.close(e),e.closest(".hs-mega-menu-content")){var t=e.querySelector(".hs-mega-menu-toggle");t&&t.focus()}}},{key:"_up",value:function(e){var t=e.querySelector(".hs-mega-menu-content"),n=s(t.querySelectorAll("a, button")).reverse().filter((function(e){return!e.disabled&&e.closest(".hs-mega-menu-content")===t})),r=t.querySelector("a:focus")||t.querySelector("button:focus"),o=n.findIndex((function(e){return e===r}));o+1{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n1||(t&&((n=document.querySelector(t).cloneNode(!0)).classList.remove("hidden"),n.classList,function(e){throw new TypeError('"backdropClasses" is read-only')}(),n.classList=""),n.setAttribute("data-hs-modal-backdrop-template",""),document.body.appendChild(n),setTimeout((function(){n.classList="transition duration fixed inset-0 z-50 bg-gray-900 bg-opacity-50 dark:bg-opacity-80"})))}},{key:"_destroyBackdrop",value:function(){var e=document.querySelector("[data-hs-modal-backdrop-template]");e&&(this.openNextModal&&(e.style.transitionDuration="".concat(1.8*parseFloat(window.getComputedStyle(e).transitionDuration.replace(/[^\d.-]/g,"")),"s")),e.classList.add("opacity-0"),this.afterTransition(e,(function(){e.remove()})))}},{key:"_focusInput",value:function(e){var t=e.querySelector("[autofocus]");t&&t.focus()}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(n(765).Z);window.HSModal=new c,document.addEventListener("load",window.HSModal.init())},366:(e,t,n)=>{"use strict";var r=n(765);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n0){if(this.activeSection===o)return;r.forEach((function(e){e.classList.remove("active")}));var u=n.querySelector('[href="#'.concat(o.getAttribute("id"),'"]'));if(u){u.classList.add("active");var f=u.closest("[data-hs-scrollspy-group]");if(f){var d=f.querySelector("[href]");d&&d.classList.add("active")}}this.activeSection=o}}},{key:"_scrollTo",value:function(e){var t=e.$scrollableEl,n=e.$link,r=e.globalOffset,o=document.querySelector(n.getAttribute("href")),i=o.getAttribute("data-hs-scrollspy-offset")||r,s=t===document?0:t.offsetTop,a=o.offsetTop-i-s,c=t===document?window:t;window.history.replaceState(null,null,n.getAttribute("href")),c.scrollTo({top:a,left:0,behavior:"smooth"})}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(n(765).Z);window.HSScrollspy=new c,document.addEventListener("load",window.HSScrollspy.init())},493:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";var r=n(765),o=n(714);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){for(var n=0;n{"use strict";function r(e,t){for(var n=0;no});var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$collection=[],this.selector=t,this.config=n,this.events={}}var t,n;return t=e,n=[{key:"_fireEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.events.hasOwnProperty(e)&&this.events[e](t)}},{key:"_dispatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=new CustomEvent(e,{detail:{payload:n},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(r)}},{key:"on",value:function(e,t){this.events[e]=t}},{key:"afterTransition",value:function(e,t){"all 0s ease 0s"!==window.getComputedStyle(e,null).getPropertyValue("transition")?e.addEventListener("transitionend",(function n(){t(),e.removeEventListener("transitionend",n,!0)}),!0):t()}}],n&&r(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={historyIndex:-1,addHistory:function(e){this.historyIndex=e},existsInHistory:function(e){return e>this.historyIndex},clearHistory:function(){this.historyIndex=-1}}},237:(e,t,n)=>{"use strict";var r;(r=n(284))&&r.__esModule;new Set},981:(e,t,n)=>{"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>`[${e(...n)+t}m`,o=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,a=(e,t,n)=>[e,t,n],c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let l;const u=(e,t,r,o)=>{void 0===l&&(l=n(754));const i=o?10:0,s={};for(const[n,o]of Object.entries(l)){const a="ansi16"===n?"ansi":n;n===t?s[a]=e(r,i):"object"==typeof o&&(s[a]=e(o[t],i))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r))t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`},r[n]=t[n],e.set(o[0],o[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",c(t.color,"ansi",(()=>u(r,"ansi16",s,!1))),c(t.color,"ansi256",(()=>u(o,"ansi256",s,!1))),c(t.color,"ansi16m",(()=>u(i,"rgb",a,!1))),c(t.bgColor,"ansi",(()=>u(r,"ansi16",s,!0))),c(t.bgColor,"ansi256",(()=>u(o,"ansi256",s,!0))),c(t.bgColor,"ansi16m",(()=>u(i,"rgb",a,!0))),t}})},284:(e,t,n)=>{"use strict";const r=n(981),{stdout:o,stderr:i}=n(570),{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:a}=n(44),{isArray:c}=Array,l=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null);class f{constructor(e){return d(e)}}const d=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=o?o.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=f,t.template};function p(e){return d(e)}for(const[e,t]of Object.entries(r))u[e]={get(){const n=m(this,b(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};u.visible={get(){const e=m(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h)u[e]={get(){const{level:t}=this;return function(...n){const o=b(r.color[l[t]][e](...n),r.color.close,this._styler);return m(this,o,this._isEmpty)}}};for(const e of h)u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const o=b(r.bgColor[l[t]][e](...n),r.bgColor.close,this._styler);return m(this,o,this._isEmpty)}}};const y=Object.defineProperties((()=>{}),{...u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),b=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},m=(e,t,n)=>{const r=(...e)=>c(e[0])&&c(e[0].raw)?v(r,w(r,...e)):v(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,y),r._generator=e,r._styler=t,r._isEmpty=n,r},v=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=s(t,n.close,n.open),n=n.parent;const i=t.indexOf("\n");return-1!==i&&(t=a(t,o,r,i)),r+t+o};let g;const w=(e,...t)=>{const[r]=t;if(!c(r)||!c(r.raw))return t.join(" ");const o=t.slice(1),i=[r.raw[0]];for(let e=1;e{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):i.get(e)||e}function a(e,t){const n=[],i=t.trim().split(/\s*,\s*/g);let a;for(const t of i){const i=Number(t);if(Number.isNaN(i)){if(!(a=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(a[2].replace(o,((e,t,n)=>t?s(t):n)))}else n.push(i)}return n}function c(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=a(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[],o=[];let i=[];if(n.replace(t,((t,n,a,u,f,d)=>{if(n)i.push(s(n));else if(u){const t=i.join("");i=[],o.push(0===r.length?t:l(e,r)(t)),r.push({inverse:a,styles:c(u)})}else if(f){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)})),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},44:e=>{"use strict";e.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let i=0,s="";do{s+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,i="";do{const s="\r"===e[r-1];i+=e.substr(o,(s?r-1:r)-o)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o),i}}},122:(e,t,n)=>{const r=n(638),o={};for(const e of Object.keys(r))o[r[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,c;i===o?a=0:t===i?a=(n-r)/s:n===i?a=2+(r-t)/s:r===i&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(o+i)/2;return c=i===o?0:l<=.5?s/(i+o):s/(2-i-o),[a,100*c,100*l]},i.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(s,a,c),u=l-Math.min(s,a,c),f=function(e){return(l-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/l,t=f(s),n=f(a),r=f(c),s===l?o=r-n:a===l?o=1/3+t-r:c===l&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*l]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*s,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(r)){const o=(a=r[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,s;if(0===n)return s=255*r,[s,s,s];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,c[e]=255*s;return c},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),c=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,c,s];case 1:return[a,r,s];case 2:return[s,r,c];case 3:return[s,a,r];case 4:return[c,s,r];case 5:return[r,s,a]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,0!=(1&s)&&(i=1-i);const c=n+i*(a-n);let l,u,f;switch(s){default:case 6:case 0:l=a,u=c,f=n;break;case 1:l=c,u=a,f=n;break;case 2:l=n,u=a,f=c;break;case 3:l=n,u=c,f=a;break;case 4:l=c,u=n,f=a;break;case 5:l=a,u=n,f=c}return[255*l,255*u,255*f]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,s=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=null===t?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a,c;return a=s<1?i/(1-s):0,c=s<=0?0:o===t?(n-r)/s%6:o===n?2+(r-t)/s:4+(t-n)/s,c/=6,c%=1,[360*c,100*s,100*a]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-n)*r,[255*(n*o[0]+c),255*(n*o[1]+c),255*(n*o[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},754:(e,t,n)=>{const r=n(122),o=n(954),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},954:(e,t,n)=>{const r=n(122);function o(e,t){return function(n){return t(e(n))}}function i(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),i=o(r[t[s].parent][s],i),s=t[s].parent;return i.conversion=n,i}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},570:e=>{"use strict";e.exports={stdout:!1,stderr:!1}},714:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:()=>ce});var a=Math.max,c=Math.min,l=Math.round;function u(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(i(e)&&t){var s=e.offsetHeight,a=e.offsetWidth;a>0&&(r=l(n.width)/a||1),s>0&&(o=l(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return u(p(e)).left+f(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function b(e){var t=y(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function m(e,t,n){void 0===n&&(n=!1);var o,s,a=i(t),c=i(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),y=p(t),m=u(e,c),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(a||!a&&!n)&&(("body"!==d(t)||b(y))&&(v=(o=t)!==r(o)&&i(o)?{scrollLeft:(s=o).scrollLeft,scrollTop:s.scrollTop}:f(o)),i(t)?((g=u(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):y&&(g.x=h(y))),{x:m.left+v.scrollLeft-g.x,y:m.top+v.scrollTop-g.y,width:m.width,height:m.height}}function v(e){var t=u(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function g(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||p(e)}function w(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:i(e)&&b(e)?e:w(g(e))}function O(e,t){var n;void 0===t&&(t=[]);var o=w(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=r(o),a=i?[s].concat(s.visualViewport||[],b(o)?o:[]):o,c=t.concat(a);return i?c:c.concat(O(g(a)))}function k(e){return["table","td","th"].indexOf(d(e))>=0}function S(e){return i(e)&&"fixed"!==y(e).position?e.offsetParent:null}function _(e){for(var t=r(e),n=S(e);n&&k(n)&&"static"===y(n).position;)n=S(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===y(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i(e)&&"fixed"===y(e).position)return null;for(var n=g(e);i(n)&&["html","body"].indexOf(d(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var j="top",x="bottom",E="right",A="left",L="auto",P=[j,x,E,A],q="start",C="end",R="viewport",T="popper",M=P.reduce((function(e,t){return e.concat([t+"-"+q,t+"-"+C])}),[]),B=[].concat(P,[L]).reduce((function(e,t){return e.concat([t,t+"-"+q,t+"-"+C])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var I={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function V(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Z(o):null,s=o?z(o):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case j:t={x:a,y:n.y-r.height};break;case x:t={x:a,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:c};break;case A:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=i?U(i):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case q:t[l]=t[l]-(n[u]/2-r[u]/2);break;case C:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}var F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,h=e.isFixed,b=a.x,m=void 0===b?0:b,v=a.y,g=void 0===v?0:v,w="function"==typeof d?d({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var O=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),S=A,L=j,P=window;if(f){var q=_(n),R="clientHeight",T="clientWidth";q===r(n)&&"static"!==y(q=p(n)).position&&"absolute"===c&&(R="scrollHeight",T="scrollWidth"),q=q,(i===j||(i===A||i===E)&&s===C)&&(L=x,g-=(h&&P.visualViewport?P.visualViewport.height:q[R])-o.height,g*=u?1:-1),i!==A&&(i!==j&&i!==x||s!==C)||(S=E,m-=(h&&P.visualViewport?P.visualViewport.width:q[T])-o.width,m*=u?1:-1)}var M,B=Object.assign({position:c},f&&F),D=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:l(t*r)/r||0,y:l(n*r)/r||0}}({x:m,y:g}):{x:m,y:g};return m=D.x,g=D.y,u?Object.assign({},B,((M={})[L]=k?"0":"",M[S]=O?"0":"",M.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",M)):Object.assign({},B,((t={})[L]=k?g+"px":"",t[S]=O?m+"px":"",t.transform="",t))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return Y[e]}))}var J={start:"end",end:"start"};function K(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function Q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function te(e,t){return t===R?ee(function(e){var t=r(e),n=p(e),o=t.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,c=0;return o&&(i=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,c=o.offsetTop)),{width:i,height:s,x:a+h(e),y:c}}(e)):o(t)?function(e){var t=u(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ee(function(e){var t,n=p(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+h(e),l=-r.scrollTop;return"rtl"===y(o||n).direction&&(c+=a(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:l}}(p(e)))}function ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function oe(e,t){void 0===t&&(t={});var n=t,r=n.placement,s=void 0===r?e.placement:r,l=n.boundary,f=void 0===l?"clippingParents":l,h=n.rootBoundary,b=void 0===h?R:h,m=n.elementContext,v=void 0===m?T:m,w=n.altBoundary,k=void 0!==w&&w,S=n.padding,A=void 0===S?0:S,L=ne("number"!=typeof A?A:re(A,P)),q=v===T?"reference":T,C=e.rects.popper,M=e.elements[k?q:v],B=function(e,t,n){var r="clippingParents"===t?function(e){var t=O(g(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&i(e)?_(e):e;return o(n)?t.filter((function(e){return o(e)&&Q(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),s=[].concat(r,[n]),l=s[0],u=s.reduce((function(t,n){var r=te(e,n);return t.top=a(r.top,t.top),t.right=c(r.right,t.right),t.bottom=c(r.bottom,t.bottom),t.left=a(r.left,t.left),t}),te(e,l));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(o(M)?M:M.contextElement||p(e.elements.popper),f,b),D=u(e.elements.reference),H=V({reference:D,element:C,strategy:"absolute",placement:s}),I=ee(Object.assign({},C,H)),$=v===T?I:D,W={top:B.top-$.top+L.top,bottom:$.bottom-B.bottom+L.bottom,left:B.left-$.left+L.left,right:$.right-B.right+L.right},N=e.modifiersData.offset;if(v===T&&N){var Z=N[s];Object.keys(W).forEach((function(e){var t=[E,x].indexOf(e)>=0?1:-1,n=[j,x].indexOf(e)>=0?"y":"x";W[e]+=Z[n]*t}))}return W}function ie(e,t,n){return a(e,c(t,n))}function se(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[j,E,x,A].some((function(t){return e[t]>=0}))}var ce=W({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,s=void 0===i||i,a=o.resize,c=void 0===a||a,l=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach((function(e){e.addEventListener("scroll",n.update,N)})),c&&l.addEventListener("resize",n.update,N),function(){s&&u.forEach((function(e){e.removeEventListener("scroll",n.update,N)})),c&&l.removeEventListener("resize",n.update,N)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=V({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,c=void 0===a||a,l={placement:Z(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,G(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,G(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&d(r)&&(Object.assign(r.style,s),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=Z(e),o=[A,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[A,E].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,y=n.allowedAutoPlacements,b=t.options.placement,m=Z(b),v=c||(m!==b&&h?function(e){if(Z(e)===L)return[];var t=X(e);return[K(e),t,K(t)]}(b):[X(b)]),g=[b].concat(v).reduce((function(e,n){return e.concat(Z(n)===L?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?B:c,u=z(r),f=u?a?M:M.filter((function(e){return z(e)===u})):P,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=oe(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Z(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:y}):n)}),[]),w=t.rects.reference,O=t.rects.popper,k=new Map,S=!0,_=g[0],C=0;C=0,I=H?"width":"height",$=oe(t,{placement:R,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),W=H?D?E:A:D?x:j;w[I]>O[I]&&(W=X(W));var N=X(W),U=[];if(i&&U.push($[T]<=0),a&&U.push($[W]<=0,$[N]<=0),U.every((function(e){return e}))){_=R,S=!1;break}k.set(R,U)}if(S)for(var V=function(e){var t=g.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},F=h?3:1;F>0&&"break"!==V(F);F--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,l=void 0!==s&&s,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,y=void 0===h||h,b=n.tetherOffset,m=void 0===b?0:b,g=oe(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:d}),w=Z(t.placement),O=z(t.placement),k=!O,S=U(w),L="x"===S?"y":"x",P=t.modifiersData.popperOffsets,C=t.rects.reference,R=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(P){if(i){var H,I="y"===S?j:A,$="y"===S?x:E,W="y"===S?"height":"width",N=P[S],V=N+g[I],F=N-g[$],G=y?-R[W]/2:0,Y=O===q?C[W]:R[W],X=O===q?-R[W]:-C[W],J=t.elements.arrow,K=y&&J?v(J):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[I],te=Q[$],ne=ie(0,C[W],K[W]),re=k?C[W]/2-G-ne-ee-M.mainAxis:Y-ne-ee-M.mainAxis,se=k?-C[W]/2+G+ne+te+M.mainAxis:X+ne+te+M.mainAxis,ae=t.elements.arrow&&_(t.elements.arrow),ce=ae?"y"===S?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(H=null==B?void 0:B[S])?H:0,ue=N+se-le,fe=ie(y?c(V,N+re-le-ce):V,N,y?a(F,ue):F);P[S]=fe,D[S]=fe-N}if(l){var de,pe="x"===S?j:A,he="x"===S?x:E,ye=P[L],be="y"===L?"height":"width",me=ye+g[pe],ve=ye-g[he],ge=-1!==[j,A].indexOf(w),we=null!=(de=null==B?void 0:B[L])?de:0,Oe=ge?me:ye-C[be]-R[be]-we+M.altAxis,ke=ge?ye+C[be]+R[be]-we-M.altAxis:ve,Se=y&&ge?function(e,t,n){var r=ie(e,t,n);return r>n?n:r}(Oe,ye,ke):ie(y?Oe:me,ye,y?ke:ve);P[L]=Se,D[L]=Se-ye}t.modifiersData[r]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Z(n.placement),c=U(a),l=[A,E].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:re(e,P))}(o.padding,n),f=v(i),d="y"===c?j:A,p="y"===c?x:E,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],y=s[c]-n.rects.reference[c],b=_(i),m=b?"y"===c?b.clientHeight||0:b.clientWidth||0:0,g=h/2-y/2,w=u[d],O=m-f[l]-u[p],k=m/2-f[l]/2+g,S=ie(w,k,O),L=c;n.modifiersData[r]=((t={})[L]=S,t.centerOffset=S-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Q(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=oe(t,{elementContext:"reference"}),a=oe(t,{altBoundary:!0}),c=se(s,r),l=se(a,o,i),u=ae(c),f=ae(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";n(483),n(185),n(216),n(51),n(439),n(366),n(795),n(572),n(181),n(2),n(493),n(778)})()})(); \ No newline at end of file diff --git a/public/vkquake.webp b/public/vkquake.webp new file mode 100644 index 00000000..60dfc099 Binary files /dev/null and b/public/vkquake.webp differ diff --git a/src/components/code_render.astro b/src/components/code_render.astro new file mode 100644 index 00000000..f8bdd88d --- /dev/null +++ b/src/components/code_render.astro @@ -0,0 +1,127 @@ +--- + +const { name, mobile_code, is_default, highlighter } = Astro.props; + + +let mobile_code_html = highlighter.codeToHtml( + mobile_code, + { + lang: 'c3', + themes: { + light: 'min-light', + // light: 'github-light-default', + dark: 'andromeeda', + } + } +) + + + +// Post-process the code-formatter output to link it to standard Tailwind classes +// This is so that darkmode works as expected +function processHtml(input) { + + // remove the background + input = input.replaceAll( + `class="shiki shiki-themes min-light andromeeda" style="background-color:#ffffff;--shiki-dark-bg:#23262E;color:#24292eff;--shiki-dark:#D5CED9"`, + `class="text-gray-800 dark:text-white"` + ) + + input = input.replaceAll( + `style="color:#24292EFF;--shiki-dark:#D5CED9"`, + `class="text-gray-800 dark:text-white"` + ) + + // Question marks + input = input.replaceAll( + `style="color:#D32F2F;--shiki-dark:#EE5D43"`, + `class="text-red-800 dark:text-red-500"` + ) + + // Language keywords + input = input.replaceAll( + `style="color:#D32F2F;--shiki-dark:#C74DED"`, + `class="text-purple-700 dark:text-purple-400"` + ) + + // Function names + input = input.replaceAll( + `style="color:#6F42C1;--shiki-dark:#FFE66D"`, + `class="text-orange-700 dark:text-amber-400"` + ) + + // Strings + input = input.replaceAll( + `style="color:#22863A;--shiki-dark:#96E072"`, + `class="text-green-800 dark:text-lime-500"` + ) + + // Strings special chars + input = input.replaceAll( + `style="color:#22863A;--shiki-dark:#EE5D43"`, + `class="text-green-800 dark:text-lime-600"` + ) + + + // Numbers + input = input.replaceAll( + `style="color:#1976D2;--shiki-dark:#F39C12"`, + `class="text-rose-700 dark:text-rose-400"` + ) + + // Comments + input = input.replaceAll( + `style="color:#C2C3C5;--shiki-dark:#A0A1A7CC"`, + `class="text-gray-600 dark:text-gray-300"` + ) + + // Variables + input = input.replaceAll( + `style="color:#24292eff;--shiki-dark:#D5CED9"`, + `class="text-gray-800 dark:text-green-400"` + ) + + input = input.replaceAll( + `style="color:#212121;--shiki-dark:#D5CED9"`, + `class="text-[#212121] dark:text-[#D5CED9]"` + ) + + // Enums + input = input.replaceAll( + `style="color:#24292EFF;--shiki-dark:#00E8C6"`, + `class="text-blue-800 dark:text-cyan-400"` + ) + + // Library functions or errors + input = input.replaceAll( + `style="color:#1976D2;--shiki-dark:#00E8C6"`, + `class="text-blue-800 dark:text-cyan-400"` + ) + + // Floating point + input = input.replaceAll( + `style="color:#1976D2;--shiki-dark:#EE5D43"`, + `class="text-blue-800 dark:text-red-500"` + ) + + return input; +} + +mobile_code_html = processHtml(mobile_code_html) + +--- + + +
+ +
+ + + diff --git a/src/components/demo_code.astro b/src/components/demo_code.astro new file mode 100644 index 00000000..bd6b3402 --- /dev/null +++ b/src/components/demo_code.astro @@ -0,0 +1,204 @@ +--- + +import type { + HighlighterGeneric, + BundledLanguage, + BundledTheme +} from 'shiki' + +interface Props { + selectID: string; + buttons: string[]; + code: { + name: string; + mobile_code: string; + }[]; + highlighter: HighlighterGeneric +} + +const { selectID, buttons, code, highlighter } = Astro.props; + +import CodeRender from "./code_render.astro"; + +--- + + + + + +
+
+ + + + +
+ + + +
+ + {code.map((item, index) => ( + + ))} + +
+ +
+ diff --git a/src/components/download.astro b/src/components/download.astro deleted file mode 100644 index 69abef09..00000000 --- a/src/components/download.astro +++ /dev/null @@ -1,257 +0,0 @@ -
- - Download for Windows - - - - - -
- - diff --git a/src/components/features.astro b/src/components/features.astro index 3c838c09..80ff9b0e 100644 --- a/src/components/features.astro +++ b/src/components/features.astro @@ -1,308 +1,431 @@ -
- -
-
-
-
- - - -
-

- Full C ABI Compatibility -

-

- C3 fits right into your C/C++ application with full C ABI - compatibility out of the box: no need for special "C compatible" - types or functions, no limitations on what C3 features you can use - from C. -

-
-
- -
- - - -
-

- Module System -

-

- A simple and straightforward module system that doesn't get into the - way with defaults that makes sense. -

-
-
- -
- - - -
-

- Semantic Macros -

-

- Macros that are just as easy to read and write as regular functions. - Packing much more power than C's preprocessor, they're deliberately - balanced to ensure that code reading isn't made difficult. -

-
-
-
-
-

- C3 is an evolution, not a revolution: - the C-like for programmers who like C. -

-

- C3 is a programming language that builds on the syntax and semantics of - the C language, with the goal of evolving it while still retaining - familiarity for C programmers.

- Thanks to full ABI compatibility with C, it's possible to mix C and C3 in - the same project with no effort. As a demonstration, vkQuake was compiled - with a small portion of the code converted to C3 and compiled with the c3c - compiler. -

- - The fork can be found here - - - - -
-
-
- -
-
- -
-
- -
- - - -
-

- Gradual Contracts -

-

- C3 brings programming-by-contract to the mainstream with - unobtrusive contracts that are used to express both runtime and - compile-time constraints. -

-
-
- - - -
- -
-

- Zero Overhead Errors -

-

- Error handling that combines the best parts of "Result" errors - with the easy use of exceptions and integrates seamlessly with C. -

-
-
- - - -
- -
-

- Built-in slices and slicing -

-

- Slices are type safe "pointer + length" types which natively - supports copying and comparison. -

-
-
- -
- -
-

- Generic modules -

-

- C3 generic modules offer superior simplicity and clarity for - creating generic types. -

-
-
- -
- - -
- -
- -
-

- Runtime and compile reflection -

-

- Type introspection is available both at compile time and runtime, - powering flexible macros and functions -

-
-
- - - -
- -
-

- Inline Assembly -

-

- Write asm as regular inline code without using strings or cryptic - constraints. -

-
-
- -
- -
-

- Debug with safety checks -

-

- Feel confident in your code's correctness: in debug mode the - compiler inserts extensive runtime bounds checks and value checks, - which together with contracts will let you catch bugs early. -

-
-
- -
- -
-

- Detailed stacktraces -

-

- No more anonymous "segmentation fault" errors: the C3 standard - library enables detailed stacktraces out of the box for your debug - builds. -

-
-
-
- -
- -
-
- -
+ + +
+ +
+ + + + + +

+ Full C ABI Compatibility +

+

+ C3 fits right into your C/C++ application with full C ABI + compatibility out of the box: no need for special "C compatible" + types or functions, no limitations on what C3 features you can use + from C. +

+
+ + +
+ + + + + +

+ Module System +

+

+ A simple and straightforward module system that doesn't get in the + way, with sane defaults. +

+
+ + +
+ + + + + +

+ Generic modules +

+

+ C3 generic modules offer superior simplicity and clarity for + creating generic types. +

+
+ +
+ + + + + +

+ Semantic Macros +

+

+ Macros that are just as easy to read and write as regular functions. + Packing much more power than C's preprocessor, they're deliberately + balanced to ensure that code reading isn't made difficult. +

+
+ + + + + +
+ + + + + +

+ Runtime and compile reflection +

+

+ Type introspection is available both at compile time and runtime, + powering flexible macros and functions +

+
+ + + +
+ + + + + +

+ Inline Assembly +

+

+ Write asm as regular inline code without using strings or cryptic + constraints. +

+
+ + +
+ + + + + +

+ Built-in slices and slicing +

+

+ Slices are type safe "pointer + length" types which natively + supports copying and comparison. +

+
+ +
+ + + + + +

+ Gradual Contracts +

+

+ C3 brings programming-by-contract to the mainstream with + unobtrusive contracts that are used to express both runtime and + compile-time constraints. +

+
+ +
+ + + + + + +

+ Zero Overhead Errors +

+

+ Error handling that combines the best parts of "Result" errors + with the easy use of exceptions and integrates seamlessly with C. +

+
+ + +
+ + + + + +

+ Debug with safety checks +

+

+ Feel confident in your code's correctness: in debug mode the + compiler inserts extensive runtime bounds checks and value checks, + which together with contracts will let you catch bugs early. +

+
+ + +
+ + + + + + + + +

+ Detailed stacktraces +

+

+ No more anonymous "segmentation fault" errors: the C3 standard + library enables detailed stacktraces out of the box for your debug + builds. +

+
+ + +
\ No newline at end of file diff --git a/src/components/front_page_layout.astro b/src/components/front_page_layout.astro new file mode 100644 index 00000000..a12d2ed8 --- /dev/null +++ b/src/components/front_page_layout.astro @@ -0,0 +1,2711 @@ +--- +import DemoCode from "./demo_code.astro" +// import Features from "./features.astro" +import PackagedLibraries from "./packaged_libraries.astro" + +//======================================= +// Code highlighting +import * as fs from 'fs'; +import { createHighlighter } from 'shiki' + +// load the language +const c3LangGrammar = JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8")) + +const highlighter = await createHighlighter({ + themes: ['slack-dark', 'min-light', 'andromeeda', 'github-light-default', 'material-theme-lighter'], + langs: [c3LangGrammar] +}) + +//======================================= +// Code to highlight +const code_input = [ +{ + "name": "Optionals", + "mobile_code": +`import std::io; + +fn void! test() +{ + // Return an Excuse by with + // '?' after the fault. + return IoError.READ_ONLY?; +} + +fn void main(String[] args) +{ + // If the Optional is empty + // assign the Excuse + // to a variable: + if (catch excuse = test()) + { + io::printfn( + "Excuse: %s", excuse + ); + } +}` +}, +{ + "name": "Defer", + "mobile_code": +`import std::io; + +fn void! main() +{ + int* x = mem::new(int); + // Free memory on scope exit + defer free(x); + + io::printfn("x: %s", *x); +}` +}, +{ + "name": "Slices", + "mobile_code": +`fn void main() +{ + int[3] a = { 1, 20, 50 }; + // selects [ 20, 50 ] + int[] c = a[1 .. 2]; +}` +}, +{ + "name": "Contracts", + "mobile_code": +`<* + @require x != 0 "returns inf" +*> +fn float divide(int x) +{ + return 1.0f / x; +}` +} +] + + +//============================================= + + +const code_input_perf = [ +{ + "name": "Temp Allocator", + "mobile_code": +`fn void! main() +{ + @pool() + { + DString msg; + msg.temp_init(); + msg.append("Hi!\\n"); + msg.append("你好!"); + io::printn(msg); + }; + // "msg" is freed + // freed variables unavailable +}` +}, +{ + "name": "SIMD", + "mobile_code": +`import std::io; + +// Vectors are based on hardware +// SIMD vectors, and support +// operations that work on all +// elements in parallel +// For example arithmetic: + +fn void main() +{ + int[<2>] a = { 3, 8 }; + int[<2>] b = { 7, 2 }; + // c is { 21, 16 } + int[<2>] c = a * b; + io::print(c); +}`, +}, +{ + "name": "Inline ASM", + "mobile_code": +`int x = 3; +int g; +int* ptr = &g; + +asm +{ + // Move 1 into the variable x + movl x, 1; + + // *ptr = x + movl [ptr], x; + + // Move 23 + x into EAX + movl $eax, (23 + x); +}` +}, +{ + "name": "Threads", + "mobile_code": +`import std::thread; +import std::io; + +fn int thread_fn(void* arg) +{ + int x = *(int*)arg; + io::printfn("x: %s", x); + return 0; +} + +fn void! main() +{ + int arg = 7; + std::thread::Thread t1,t2; + t1.create(&thread_fn, &arg)!; + t2.create(&thread_fn, &arg)!; + + t1.join()!; + t2.join()!; +}` +} +] + + + + + +//======================================= + +// Clear up the formatter resources after 2s +await setTimeout(highlighter.dispose, 2000) + +--- + + + + + + +
+ + + +
+ + C3 + + + + + + Docs + + + + + + Examples + + + + + + Download + + + + + + Community + + + + + + Sponsor + + + + +
+ +

+ 🌙 +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+
+ +

+ C3 logo +

+ +
+ + + + +
+ Current version: + + + 0.6.4 + +
+
+
+ + + + + +
+
+

+ The + + C3 + + Programming Language +

+ +

+ Effortlessly safe, high performance, modular code + + +

+ + +
+ + +
+ + + +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +

+ C3 Uses C ABI +

+ +

+ C3 natively integrates into existing C projects + You can also natively link C into C3 projects without C3 bindings. + + If you're working in a C codebase and you want some more + modern features like improved error handling, contracts and safety, + you might be interested in writing new functionality in C3. +

+ +
+ + + +
+ +
+ + + +
+ + + + +
+ + + + + + + +

+ C3 integrates with C +

+ +

+ When compiled, C and C3 code are + indistinguishable and can work together seamlessly. +

+ +
+ + +
+ + + + + + +

+ C Integrates With C3 +

+ +

+ C libraries can be compiled natively with C3 code so + it's easy to benefit from the rich C ecosystem from C3. +

+ +
+ + + + + +
+ +
+ + + + +
+ + + + + + + + + + + + + +
+
+
+ + +

+ Modules Generics And Reflection +

+ + +

+ Code in C3 is organised into namespaced modules, with simple + mechanisms to share behaviour between structs via interfaces or + struct subtyping and to abstract differences in behaviour + with typed function pointers. +

+ +

+ Generic modules make it easy to create abstract data types + and functions, and you can expand this capability to compile-time + reflection with C3's macros. +

+ +
+ + +
+ +
+ +
+ + + +
+ +
+ + + + + +

+ Modules +

+

+ To namespace and organise your code + simple and scalable design which follows established patterns + making large codebases easy to manage. +

+
+ + +
+ + + + + + +

+ Generic Modules +

+ +

+ For simple polymorphism + anyone can understand, read and contribute to, not just the + experts. +

+
+ + +
+ + + + + +

+ Declarative Macros +

+ +

+ That are just as easy as regular functions. + Packing much more power than C's preprocessor, they're deliberately + balanced to ensure that code reading isn't made difficult. +

+
+ + + +
+ + + + + +

+ Runtime And Compiletime Reflection +

+ +

+ For type introspection + powering flexible macros and functions. +

+
+ +
+
+ + + + + +
+
+
+ + + +

+ High Performance +

+ +

+ Choose from multiple memory allocators to achieve + high performance for your application. Ranging from + throughput centered servers to latency critical embedded systems. +

+ +

+ Optimise your code's throughput with control your program's + memory layout, multi-threading and easy access to SIMD and + inline ASM when you need it. +

+ +

+ You no longer have to choose between performance and correctness, + error handling is natively supported without performance cost. +

+ + + +
+ + +
+ +
+ +
+ + +
+ +
+ + + + + +

+ Inline Assembly +

+

+ Write asm as regular inline code without using strings or cryptic + constraints. +

+
+ + +
+ + + + + + + +

+ Zero Overhead Errors +

+ +

+ Error handling that combines the best parts of "Result" errors + with the easy use of exceptions and integrates seamlessly with C. +

+
+ + + +
+
+ + + + + + + + + +
+
+
+ + +

+ Safety And Flexibility +

+ +

+ C3's has powerful safety features covering null safety, + error handling, handling resource cleanup, + verifying system constraints and certain kinds of + use-after-free and memory leaks. +

+ +

+ Flexibly choose how you manage safety, as each feature + is opt-in so you can tailor it to suit your domain. +

+
+ + +
+ +
+ +
+ + +
+ +
+ + + + + +

+ Built-In Slices And Slicing +

+

+ Slices are type safe "pointer + length" types that natively + support copying and comparison. +

+
+ + +
+ + + + + + +

+ Gradual Contracts +

+ +

+ C3 brings programming-by-contract to the mainstream with + unobtrusive contracts that are used to express both run-time and + compile-time constraints. +

+
+ + +
+ + + + + +

+ Debug With Safety Checks +

+

+ Feel confident in your code's correctness in debug mode the + compiler inserts extensive runtime bounds checks and value checks, + which together with contracts will let you catch bugs early. +

+
+ + +
+ + + + + + + + +

+ Detailed Stacktraces +

+ +

+ No more cryptic "segmentation fault" errors! The C3 standard + library enables detailed stacktraces out of the box for your debug + builds. +

+
+ + + +
+
+ + + + + + + +
+ + +

+ Get Involved +

+ +
+
+ + + + + + + + + + + +

+ Github +

+ +
+ + + + + + + + + + + + + + +

+ Discord +

+ +
+ + + + + +
+
+ +
+ + + + + diff --git a/src/components/packaged_libraries.astro b/src/components/packaged_libraries.astro new file mode 100644 index 00000000..c5cbfd2f --- /dev/null +++ b/src/components/packaged_libraries.astro @@ -0,0 +1,556 @@ + + + + + + + diff --git a/src/components/sample.astro b/src/components/sample.astro deleted file mode 100644 index 7c396a02..00000000 --- a/src/components/sample.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -import DownloadButton from "./download.astro"; ---- - -
-
-
-
-

- The - C3 - Programming Language -

-

- - The Ergonomic, Safe and Familiar Evolution of C -

- -
-
-
-
-
-
-
-
-
-
-
- - module hello_world;
import std::io;

fn void main()
{
io::printn("Hello, world!");
- }
-
-
-
-
-
-
-
-
-
diff --git a/src/content/docs/Get Involved/index.md b/src/content/docs/Get Involved/index.md index b58ac364..cd080497 100644 --- a/src/content/docs/Get Involved/index.md +++ b/src/content/docs/Get Involved/index.md @@ -13,8 +13,9 @@ that any contribution right now will have a big impact on the language. So if you find the project interesting, here’s what you can do to help: ### 💬 Discuss The Language -- Join us on [C3 Discord](https://discord.gg/qN76R87). +- Join us on the [C3 Discord](https://discord.gg/qN76R87). - Open a thread on [Discourse](https://c3lang.discourse.group). +- Open a discussion on [Github Disucssions](https://github.com/c3lang/c3c/discussions) ### 💡 Suggest Improvements - Found a bug? [File an issue for C3 compiler](https://github.com/c3lang/c3c/issues/new) diff --git a/src/content/docs/Getting Started/prebuilt-binaries.md b/src/content/docs/Getting Started/prebuilt-binaries.md index 41724e2c..26ab5031 100644 --- a/src/content/docs/Getting Started/prebuilt-binaries.md +++ b/src/content/docs/Getting Started/prebuilt-binaries.md @@ -1,6 +1,6 @@ --- -title: Install C3 Compiler Binary -description: Installing C3 Compiler Binary +title: Install C3 Compiler +description: Installing C3 Compiler sidebar: order: 20 --- diff --git a/src/pages/index.astro b/src/pages/index.astro index ef39695c..8cda31b5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,43 +1,126 @@ --- -import Hero from "../components/hero.astro"; -import Sample from "../components/sample.astro"; -import Features from "../components/features.astro"; -import Community from "../components/community.astro"; + +import Layout from "../components/front_page_layout.astro"; + --- - - - - - - - - - - - - C3 | An evolution, not a revolution - + + + + + + + + + + + + + C3 | An evolution, not a revolution + + - -
- - - - -
- - + + + + + + + + + + +
+ +
+ + + + + + + diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 3f19fcdd..1f971dce 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,5 +1,16 @@ module.exports = { content: ["./index.html", "./src/**/*.{astro,js,ts,jsx,tsx}"], darkMode: "class", - plugins: [require("preline/plugin")], + plugins: [], + // Ensure these tailwind classes are always available, so may be toggled in Javascript + safelist: [ + { + pattern: /(row|col)-(span|start)-(1|2|3|4|8)/, + variants: ['sm', 'md', 'lg'], + }, + { + pattern: /grid-(rows|cols)-[repeat\((1|2|3|4|8),minmax\(0,1fr\)\)]/, + variants: ['sm', 'md', 'lg'], + }, + ], };