From fe73b481e1a22f9f99661d699c40c35d8ba7799d Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 15 Jun 2022 00:35:41 +0200 Subject: [PATCH 1/3] chore: bump react dev dep to 18.2 --- package.json | 4 +- .../next-middleware-ssr-loader/index.ts | 2 - pnpm-lock.yaml | 185 ++++++++++++------ 3 files changed, 126 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index c73652f29bb471..c1061716ec42c1 100644 --- a/package.json +++ b/package.json @@ -168,9 +168,9 @@ "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", - "react": "18.1.0", + "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-dom": "18.1.0", + "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", diff --git a/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts b/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts index 5feb565ac9043a..a7ca225b93f1f1 100644 --- a/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts +++ b/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts @@ -48,8 +48,6 @@ export default async function middlewareSSRLoader(this: any) { const transformed = ` import { adapter } from 'next/dist/server/web/adapter' - import { RouterContext } from 'next/dist/shared/lib/router-context' - import { getRender } from 'next/dist/build/webpack/loaders/next-middleware-ssr-loader/render' import Document from ${stringifiedDocumentPath} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d7463c8fb3dd7b..9e7ae336812c1b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -133,9 +133,9 @@ importers: pretty-bytes: 5.3.0 pretty-ms: 7.0.0 random-seed: 0.3.0 - react: 18.1.0 + react: 18.2.0 react-17: npm:react@17.0.2 - react-dom: 18.1.0 + react-dom: 18.2.0 react-dom-17: npm:react-dom@17.0.2 react-ssr-prepass: 1.0.8 react-virtualized: 9.22.3 @@ -171,7 +171,7 @@ importers: '@babel/preset-react': 7.14.5_@babel+core@7.18.0 '@edge-runtime/jest-environment': 1.1.0-beta.2 '@fullhuman/postcss-purgecss': 1.3.0 - '@mdx-js/loader': 0.18.0_obpnotbfpw3vqhxpouazlalzou + '@mdx-js/loader': 0.18.0_uuaxwgga6hqycsez5ok7v2wg4i '@next/bundle-analyzer': link:packages/next-bundle-analyzer '@next/env': link:packages/next-env '@next/eslint-plugin-next': link:packages/eslint-plugin-next @@ -184,7 +184,7 @@ importers: '@swc/cli': 0.1.55_@swc+core@1.2.148 '@swc/core': 1.2.148 '@swc/helpers': 0.3.17 - '@testing-library/react': 13.0.0_ef5jwxihqo6n7gxfmzogljlgcm + '@testing-library/react': 13.0.0_biqbaboplfbrettd7655fr4n2y '@types/cheerio': 0.22.16 '@types/fs-extra': 8.1.0 '@types/html-validator': 5.0.2 @@ -283,12 +283,12 @@ importers: pretty-bytes: 5.3.0 pretty-ms: 7.0.0 random-seed: 0.3.0 - react: 18.1.0 + react: 18.2.0 react-17: /react/17.0.2 - react-dom: 18.1.0_react@18.1.0 - react-dom-17: /react-dom/17.0.2_react@18.1.0 - react-ssr-prepass: 1.0.8_hlgeuu36mywb3l5da2rxhzh74u - react-virtualized: 9.22.3_ef5jwxihqo6n7gxfmzogljlgcm + react-dom: 18.2.0_react@18.2.0 + react-dom-17: /react-dom/17.0.2_react@18.2.0 + react-ssr-prepass: 1.0.8_qncsgtzehe3fgiqp6tr7lwq6fm + react-virtualized: 9.22.3_biqbaboplfbrettd7655fr4n2y relay-compiler: 13.0.2 relay-runtime: 13.0.2 release: 6.3.0 @@ -299,7 +299,7 @@ importers: selenium-webdriver: 4.0.0-beta.4 semver: 7.3.7 shell-quote: 1.7.3 - styled-components: 5.3.3_mg42qvqxyojuro644naflvwmve + styled-components: 5.3.3_vtcxgy2wlmese7djxl6h7ok674 styled-jsx-plugin-postcss: 3.0.2 tailwindcss: 1.1.3 taskr: 1.1.0 @@ -308,9 +308,9 @@ importers: turbo: 1.2.14 typescript: 4.6.3 wait-port: 0.2.2 - webpack: link:node_modules/webpack5 + webpack: 5.73.0_@swc+core@1.2.148 webpack-bundle-analyzer: 4.3.0 - worker-loader: 3.0.7_2opjno65lyt7hgwek6rdc5kfzu + worker-loader: 3.0.7_webpack@5.73.0 packages/create-next-app: specifiers: @@ -703,7 +703,7 @@ importers: lodash.curry: 4.1.1 lru-cache: 5.1.1 micromatch: 4.0.4 - mini-css-extract-plugin: 2.4.3 + mini-css-extract-plugin: 2.4.3_webpack@5.73.0 nanoid: 3.1.30 native-url: 0.3.4 neo-async: 2.6.1 @@ -729,9 +729,9 @@ importers: raw-body: 2.4.1 react-is: 17.0.2 react-refresh: 0.12.0 - react-server-dom-webpack: 0.0.0-experimental-d2c9e834a-20220601 + react-server-dom-webpack: 0.0.0-experimental-d2c9e834a-20220601_webpack@5.73.0 regenerator-runtime: 0.13.4 - sass-loader: 12.4.0 + sass-loader: 12.4.0_webpack@5.73.0 schema-utils2: /schema-utils/2.7.1 schema-utils3: /schema-utils/3.0.0 semver: 7.3.2 @@ -4591,11 +4591,11 @@ packages: - supports-color dev: true - /@mdx-js/loader/0.18.0_obpnotbfpw3vqhxpouazlalzou: + /@mdx-js/loader/0.18.0_uuaxwgga6hqycsez5ok7v2wg4i: resolution: {integrity: sha512-eRgtB14JwyIiZZPXjrpYhSHHQ5+GtZ5cbG744EV2DZVKjxxg4OT/EtKc4JoxWHRK2HVU6W7cf8IXjQpqDviRuQ==} dependencies: '@mdx-js/mdx': 0.18.2_@babel+core@7.18.0 - '@mdx-js/tag': 0.18.0_react@18.1.0 + '@mdx-js/tag': 0.18.0_react@18.2.0 loader-utils: 1.4.0 transitivePeerDependencies: - '@babel/core' @@ -4620,12 +4620,12 @@ packages: - '@babel/core' dev: true - /@mdx-js/tag/0.18.0_react@18.1.0: + /@mdx-js/tag/0.18.0_react@18.2.0: resolution: {integrity: sha512-3g1NOnbw+sJZohNOEN9NlaYYDdzq1y34S7PDimSn3zLV8etCu7pTCMFbnFHMSe6mMmm4yJ1gfbS3QiE7t+WMGA==} peerDependencies: react: ^0.14.x || ^15.x || ^16.x dependencies: - react: 18.1.0 + react: 18.2.0 dev: true /@mrmlnc/readdir-enhanced/2.2.1: @@ -5368,7 +5368,7 @@ packages: pretty-format: 27.5.1 dev: true - /@testing-library/react/13.0.0_ef5jwxihqo6n7gxfmzogljlgcm: + /@testing-library/react/13.0.0_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-p0lYA1M7uoEmk2LnCbZLGmHJHyH59sAaZVXChTXlyhV/PRW9LoIh4mdf7tiXsO8BoNG+vN8UnFJff1hbZeXv+w==} engines: {node: '>=12'} peerDependencies: @@ -5378,8 +5378,8 @@ packages: '@babel/runtime': 7.16.7 '@testing-library/dom': 8.13.0 '@types/react-dom': 17.0.14 - react: 18.1.0 - react-dom: 18.1.0_react@18.1.0 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 dev: true /@tootallnate/once/1.1.2: @@ -6514,20 +6514,12 @@ packages: acorn: 8.6.0 dev: true - /acorn-jsx/5.3.1_acorn@7.4.1: - resolution: {integrity: sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - acorn: 7.4.1 - /acorn-jsx/5.3.1_acorn@8.6.0: resolution: {integrity: sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: acorn: 8.6.0 - dev: true /acorn-walk/7.1.1: resolution: {integrity: sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==} @@ -6548,6 +6540,7 @@ packages: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} hasBin: true + dev: true /acorn/8.5.0: resolution: {integrity: sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==} @@ -7287,7 +7280,7 @@ packages: '@babel/helper-module-imports': 7.16.7 babel-plugin-syntax-jsx: 6.18.0 lodash: 4.17.21 - styled-components: 5.3.3_mg42qvqxyojuro644naflvwmve + styled-components: 5.3.3_vtcxgy2wlmese7djxl6h7ok674 dev: true /babel-plugin-syntax-jsx/6.18.0: @@ -10560,8 +10553,8 @@ packages: resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - acorn: 7.4.1 - acorn-jsx: 5.3.1_acorn@7.4.1 + acorn: 8.6.0 + acorn-jsx: 5.3.1_acorn@8.6.0 eslint-visitor-keys: 1.3.0 /esprima/4.0.1: @@ -15364,13 +15357,14 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - /mini-css-extract-plugin/2.4.3: + /mini-css-extract-plugin/2.4.3_webpack@5.73.0: resolution: {integrity: sha512-zekavl9mZuGyk7COjsfFY/f655AX61EKE0AthXPrmDk+oZyjZ9WzO4WPjXnnO9xl8obK2kmM6rAQrBEmk+WK1g==} engines: {node: '>= 12.13.0'} peerDependencies: webpack: ^5.0.0 dependencies: schema-utils: 3.1.1 + webpack: 5.73.0 dev: true /minimalistic-assert/1.0.1: @@ -18344,25 +18338,25 @@ packages: strip-json-comments: 2.0.1 dev: true - /react-dom/17.0.2_react@18.1.0: + /react-dom/17.0.2_react@18.2.0: resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: react: 17.0.2 dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react: 18.1.0 + react: 18.2.0 scheduler: 0.20.2 dev: true - /react-dom/18.1.0_react@18.1.0: - resolution: {integrity: sha512-fU1Txz7Budmvamp7bshe4Zi32d0ll7ect+ccxNu9FlObT605GOEB8BfO4tmRJ39R5Zj831VCpvQ05QPBW5yb+w==} + /react-dom/18.2.0_react@18.2.0: + resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: - react: ^18.1.0 + react: ^18.2.0 dependencies: loose-envify: 1.4.0 - react: 18.1.0 - scheduler: 0.22.0 + react: 18.2.0 + scheduler: 0.23.0 dev: true /react-is/16.13.1: @@ -18385,7 +18379,7 @@ packages: engines: {node: '>=0.10.0'} dev: true - /react-server-dom-webpack/0.0.0-experimental-d2c9e834a-20220601: + /react-server-dom-webpack/0.0.0-experimental-d2c9e834a-20220601_webpack@5.73.0: resolution: {integrity: sha512-HBWH9fhTJwbX7x3K9kuZ1gHXMN6CCdN0uH1N7jqBqPf8/uLDjNYN/ZKVNqb8augZax6HJDfv5VHVcKr0qr7ZbQ==} engines: {node: '>=0.10.0'} peerDependencies: @@ -18395,20 +18389,21 @@ packages: acorn: 6.4.2 loose-envify: 1.4.0 neo-async: 2.6.2 + webpack: 5.73.0 dev: true - /react-ssr-prepass/1.0.8_hlgeuu36mywb3l5da2rxhzh74u: + /react-ssr-prepass/1.0.8_qncsgtzehe3fgiqp6tr7lwq6fm: resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: react: ^16.8.0 react-is: ^16.8.0 dependencies: object-is: 1.0.2 - react: 18.1.0 + react: 18.2.0 react-is: 16.13.1 dev: true - /react-virtualized/9.22.3_ef5jwxihqo6n7gxfmzogljlgcm: + /react-virtualized/9.22.3_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: react: ^15.3.0 || ^16.0.0-alpha @@ -18419,8 +18414,8 @@ packages: dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 18.1.0 - react-dom: 18.1.0_react@18.1.0 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 react-lifecycles-compat: 3.0.4 dev: true @@ -18432,8 +18427,8 @@ packages: object-assign: 4.1.1 dev: true - /react/18.1.0: - resolution: {integrity: sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ==} + /react/18.2.0: + resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 @@ -19381,7 +19376,7 @@ packages: yargs: 13.3.2 dev: true - /sass-loader/12.4.0: + /sass-loader/12.4.0_webpack@5.73.0: resolution: {integrity: sha512-7xN+8khDIzym1oL9XyS6zP6Ges+Bo2B2xbPrjdMHEYyV3AQYhd/wXeru++3ODHF0zMjYmVadblSKrPrjEkL8mg==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -19399,6 +19394,7 @@ packages: dependencies: klona: 2.0.4 neo-async: 2.6.2 + webpack: 5.73.0 dev: true /sax/1.2.4: @@ -19419,8 +19415,8 @@ packages: object-assign: 4.1.1 dev: true - /scheduler/0.22.0: - resolution: {integrity: sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ==} + /scheduler/0.23.0: + resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} dependencies: loose-envify: 1.4.0 dev: true @@ -20322,7 +20318,7 @@ packages: resolution: {integrity: sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw==} dev: true - /styled-components/5.3.3_mg42qvqxyojuro644naflvwmve: + /styled-components/5.3.3_vtcxgy2wlmese7djxl6h7ok674: resolution: {integrity: sha512-++4iHwBM7ZN+x6DtPPWkCI4vdtwumQ+inA/DdAsqYd4SVgUKJie5vXyzotA00ttcFdQkCng7zc6grwlfIfw+lw==} engines: {node: '>=10'} peerDependencies: @@ -20338,8 +20334,8 @@ packages: babel-plugin-styled-components: 1.13.3_styled-components@5.3.3 css-to-react-native: 3.0.0 hoist-non-react-statics: 3.3.2 - react: 18.1.0 - react-dom: 18.1.0_react@18.1.0 + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 react-is: 16.13.1 shallowequal: 1.1.0 supports-color: 5.5.0 @@ -20627,7 +20623,7 @@ packages: supports-hyperlinks: 2.1.0 dev: true - /terser-webpack-plugin/1.4.4: + /terser-webpack-plugin/1.4.4_webpack@5.73.0: resolution: {integrity: sha512-U4mACBHIegmfoEe5fdongHESNJWqsGU+W0S/9+BmYGVQDw1+c2Ow05TpMhxjPK1sRb7cuYq1BPl1e5YHJMTCqA==} engines: {node: '>= 6.9.0'} peerDependencies: @@ -20640,10 +20636,37 @@ packages: serialize-javascript: 3.1.0 source-map: 0.6.1 terser: 4.8.0 + webpack: 5.73.0 webpack-sources: 1.4.3 worker-farm: 1.7.0 dev: true + /terser-webpack-plugin/5.2.4_ai2j7bpouqpuepqe2h7rahoxba: + resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + dependencies: + '@swc/core': 1.2.148 + jest-worker: 27.0.6 + p-limit: 3.1.0 + schema-utils: 3.1.1 + serialize-javascript: 6.0.0 + source-map: 0.6.1 + terser: 5.10.0 + webpack: 5.73.0_@swc+core@1.2.148 + dev: true + /terser-webpack-plugin/5.2.4_webpack@5.73.0: resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==} engines: {node: '>= 10.13.0'} @@ -21020,7 +21043,7 @@ packages: dev: true /tunnel-agent/0.6.0: - resolution: {integrity: sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=} + resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} dependencies: safe-buffer: 5.2.0 dev: true @@ -21150,7 +21173,7 @@ packages: dev: true /tweetnacl/0.14.5: - resolution: {integrity: sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=} + resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} dev: true /type-check/0.3.2: @@ -22048,7 +22071,7 @@ packages: node-libs-browser: 2.2.1 schema-utils: 1.0.0 tapable: 1.1.3 - terser-webpack-plugin: 1.4.4 + terser-webpack-plugin: 1.4.4_webpack@5.73.0 watchpack: 1.7.4 webpack-sources: 1.4.3 transitivePeerDependencies: @@ -22095,6 +22118,46 @@ packages: - uglify-js dev: true + /webpack/5.73.0_@swc+core@1.2.148: + resolution: {integrity: sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + dependencies: + '@types/eslint-scope': 3.7.3 + '@types/estree': 0.0.51 + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/wasm-edit': 1.11.1 + '@webassemblyjs/wasm-parser': 1.11.1 + acorn: 8.6.0 + acorn-import-assertions: 1.7.6_acorn@8.6.0 + browserslist: 4.20.2 + chrome-trace-event: 1.0.2 + enhanced-resolve: 5.9.3 + es-module-lexer: 0.9.0 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.9 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.2.0 + mime-types: 2.1.30 + neo-async: 2.6.2 + schema-utils: 3.1.1 + tapable: 2.2.0 + terser-webpack-plugin: 5.2.4_ai2j7bpouqpuepqe2h7rahoxba + watchpack: 2.4.0 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + dev: true + /websocket-driver/0.7.3: resolution: {integrity: sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==} engines: {node: '>=0.8.0'} @@ -22224,7 +22287,7 @@ packages: errno: 0.1.7 dev: true - /worker-loader/3.0.7_2opjno65lyt7hgwek6rdc5kfzu: + /worker-loader/3.0.7_webpack@5.73.0: resolution: {integrity: sha512-LjYLuYJw6kqQKDoygpoD5vWeR1CbZjuVSW3/8pFsptMlUl8gatNM/pszhasSDAWt+dYxMipWB6695k+1zId+iQ==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -22232,7 +22295,7 @@ packages: dependencies: loader-utils: 2.0.0 schema-utils: 3.1.1 - webpack: link:node_modules/webpack5 + webpack: 5.73.0_@swc+core@1.2.148 dev: true /wrap-ansi/3.0.1: From 53592c73f84de50cba0359faa5180545d837064f Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 15 Jun 2022 09:36:03 +0200 Subject: [PATCH 2/3] fix test and exclude inc cache path for edge --- packages/next/server/lib/incremental-cache/index.ts | 2 +- .../next-dynamic-lazy-compilation/test/index.test.js | 8 ++------ test/integration/next-dynamic/test/index.test.js | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/next/server/lib/incremental-cache/index.ts b/packages/next/server/lib/incremental-cache/index.ts index e2a088cf687721..7ffed05d5a5964 100644 --- a/packages/next/server/lib/incremental-cache/index.ts +++ b/packages/next/server/lib/incremental-cache/index.ts @@ -63,7 +63,7 @@ export class IncrementalCache { }) { let cacheHandlerMod: any = FileSystemCache - if (incrementalCacheHandlerPath) { + if (process.env.NEXT_RUNTIME !== 'edge' && incrementalCacheHandlerPath) { cacheHandlerMod = require(incrementalCacheHandlerPath) cacheHandlerMod = cacheHandlerMod.default || cacheHandlerMod } diff --git a/test/integration/next-dynamic-lazy-compilation/test/index.test.js b/test/integration/next-dynamic-lazy-compilation/test/index.test.js index 9a35a187fbe494..e76b1176b91ee6 100644 --- a/test/integration/next-dynamic-lazy-compilation/test/index.test.js +++ b/test/integration/next-dynamic-lazy-compilation/test/index.test.js @@ -29,9 +29,7 @@ function runTests() { const browser = await webdriver(appPort, '/') const text = await browser.elementByCss('#before-hydration').text() - expect(text).toBe( - 'Index12344' - ) + expect(text).toBe('Index12344') expect(await browser.eval('window.caughtErrors')).toBe('') }) @@ -39,9 +37,7 @@ function runTests() { const browser = await webdriver(appPort, '/') const text = await browser.elementByCss('#first-render').text() - expect(text).toBe( - 'Index12344' - ) + expect(text).toBe('Index12344') expect(await browser.eval('window.caughtErrors')).toBe('') }) } diff --git a/test/integration/next-dynamic/test/index.test.js b/test/integration/next-dynamic/test/index.test.js index ee70ca8b4dce8d..e0c8f9be9ae73c 100644 --- a/test/integration/next-dynamic/test/index.test.js +++ b/test/integration/next-dynamic/test/index.test.js @@ -29,9 +29,7 @@ function runTests() { const text = await browser.elementByCss('#first-render').text() // Failure case is 'Index3' - expect(text).toBe( - 'Index12344' - ) + expect(text).toBe('Index12344') expect(await browser.eval('window.caughtErrors')).toBe('') }) } From 46d5f2beb1515c5c89ab4c1d4e30a62795647464 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 15 Jun 2022 09:47:58 -0500 Subject: [PATCH 3/3] update compiled --- packages/next/compiled/mini-css-extract-plugin/cjs.js | 2 +- .../mini-css-extract-plugin/hmr/hotModuleReplacement.js | 2 +- packages/next/compiled/mini-css-extract-plugin/index.js | 2 +- packages/next/compiled/mini-css-extract-plugin/loader.js | 2 +- packages/next/compiled/sass-loader/cjs.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/next/compiled/mini-css-extract-plugin/cjs.js b/packages/next/compiled/mini-css-extract-plugin/cjs.js index 0056ef46682661..98de23b5549bd0 100644 --- a/packages/next/compiled/mini-css-extract-plugin/cjs.js +++ b/packages/next/compiled/mini-css-extract-plugin/cjs.js @@ -1 +1 @@ -(()=>{"use strict";var e={471:(e,r,_)=>{e.exports=_(717)["default"]},717:e=>{e.exports=require("./index.js")}};var r={};function __nccwpck_require__(_){var t=r[_];if(t!==undefined){return t.exports}var a=r[_]={exports:{}};var i=true;try{e[_](a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[_]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var _=__nccwpck_require__(471);module.exports=_})(); \ No newline at end of file +(()=>{"use strict";var e={305:(e,r,_)=>{e.exports=_(717)["default"]},717:e=>{e.exports=require("./index.js")}};var r={};function __nccwpck_require__(_){var t=r[_];if(t!==undefined){return t.exports}var a=r[_]={exports:{}};var i=true;try{e[_](a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[_]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var _=__nccwpck_require__(305);module.exports=_})(); \ No newline at end of file diff --git a/packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js b/packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js index 6e4172917816ce..c289e0957c2e30 100644 --- a/packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +++ b/packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js @@ -1 +1 @@ -(()=>{"use strict";var e={722:(e,r,t)=>{var n=t(121);var i=Object.create(null);var a=typeof document==="undefined";var o=Array.prototype.forEach;function debounce(e,r){var t=0;return function(){var n=this;var i=arguments;var a=function functionCall(){return e.apply(n,i)};clearTimeout(t);t=setTimeout(a,r)}}function noop(){}function getCurrentScriptUrl(e){var r=i[e];if(!r){if(document.currentScript){r=document.currentScript.src}else{var t=document.getElementsByTagName("script");var a=t[t.length-1];if(a){r=a.src}}i[e]=r}return function(e){if(!r){return null}var t=r.split(/([^\\/]+)\.js$/);var i=t&&t[1];if(!i){return[r.replace(".js",".css")]}if(!e){return[r.replace(".js",".css")]}return e.split(",").map((function(e){var t=new RegExp("".concat(i,"\\.js$"),"g");return n(r.replace(t,"".concat(e.replace(/{fileName}/g,i),".css")))}))}}function updateCss(e,r){if(!r){if(!e.href){return}r=e.href.split("?")[0]}if(!isUrlRequest(r)){return}if(e.isLoaded===false){return}if(!r||!(r.indexOf(".css")>-1)){return}e.visited=true;var t=e.cloneNode();t.isLoaded=false;t.addEventListener("load",(function(){if(t.isLoaded){return}t.isLoaded=true;e.parentNode.removeChild(e)}));t.addEventListener("error",(function(){if(t.isLoaded){return}t.isLoaded=true;e.parentNode.removeChild(e)}));t.href="".concat(r,"?").concat(Date.now());if(e.nextSibling){e.parentNode.insertBefore(t,e.nextSibling)}else{e.parentNode.appendChild(t)}}function getReloadUrl(e,r){var t;e=n(e,{stripWWW:false});r.some((function(n){if(e.indexOf(r)>-1){t=n}}));return t}function reloadStyle(e){if(!e){return false}var r=document.querySelectorAll("link");var t=false;o.call(r,(function(r){if(!r.href){return}var n=getReloadUrl(r.href,e);if(!isUrlRequest(n)){return}if(r.visited===true){return}if(n){updateCss(r,n);t=true}}));return t}function reloadAll(){var e=document.querySelectorAll("link");o.call(e,(function(e){if(e.visited===true){return}updateCss(e)}))}function isUrlRequest(e){if(!/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)){return false}return true}e.exports=function(e,r){if(a){console.log("no window.document found, will not HMR CSS");return noop}var t=getCurrentScriptUrl(e);function update(){var e=t(r.filename);var n=reloadStyle(e);if(r.locals){console.log("[HMR] Detected local css modules. Reload all css");reloadAll();return}if(n){console.log("[HMR] css reload %s",e.join(" "))}else{console.log("[HMR] Reload all css");reloadAll()}}return debounce(update,50)}},121:e=>{function normalizeUrl(e){return e.reduce((function(e,r){switch(r){case"..":e.pop();break;case".":break;default:e.push(r)}return e}),[]).join("/")}e.exports=function(e){e=e.trim();if(/^data:/i.test(e)){return e}var r=e.indexOf("//")!==-1?e.split("//")[0]+"//":"";var t=e.replace(new RegExp(r,"i"),"").split("/");var n=t[0].toLowerCase().replace(/\.$/,"");t[0]="";var i=normalizeUrl(t);return r+n+i}}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={exports:{}};var a=true;try{e[t](i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(722);module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var e={677:(e,r,t)=>{var n=t(996);var i=Object.create(null);var a=typeof document==="undefined";var o=Array.prototype.forEach;function debounce(e,r){var t=0;return function(){var n=this;var i=arguments;var a=function functionCall(){return e.apply(n,i)};clearTimeout(t);t=setTimeout(a,r)}}function noop(){}function getCurrentScriptUrl(e){var r=i[e];if(!r){if(document.currentScript){r=document.currentScript.src}else{var t=document.getElementsByTagName("script");var a=t[t.length-1];if(a){r=a.src}}i[e]=r}return function(e){if(!r){return null}var t=r.split(/([^\\/]+)\.js$/);var i=t&&t[1];if(!i){return[r.replace(".js",".css")]}if(!e){return[r.replace(".js",".css")]}return e.split(",").map((function(e){var t=new RegExp("".concat(i,"\\.js$"),"g");return n(r.replace(t,"".concat(e.replace(/{fileName}/g,i),".css")))}))}}function updateCss(e,r){if(!r){if(!e.href){return}r=e.href.split("?")[0]}if(!isUrlRequest(r)){return}if(e.isLoaded===false){return}if(!r||!(r.indexOf(".css")>-1)){return}e.visited=true;var t=e.cloneNode();t.isLoaded=false;t.addEventListener("load",(function(){if(t.isLoaded){return}t.isLoaded=true;e.parentNode.removeChild(e)}));t.addEventListener("error",(function(){if(t.isLoaded){return}t.isLoaded=true;e.parentNode.removeChild(e)}));t.href="".concat(r,"?").concat(Date.now());if(e.nextSibling){e.parentNode.insertBefore(t,e.nextSibling)}else{e.parentNode.appendChild(t)}}function getReloadUrl(e,r){var t;e=n(e,{stripWWW:false});r.some((function(n){if(e.indexOf(r)>-1){t=n}}));return t}function reloadStyle(e){if(!e){return false}var r=document.querySelectorAll("link");var t=false;o.call(r,(function(r){if(!r.href){return}var n=getReloadUrl(r.href,e);if(!isUrlRequest(n)){return}if(r.visited===true){return}if(n){updateCss(r,n);t=true}}));return t}function reloadAll(){var e=document.querySelectorAll("link");o.call(e,(function(e){if(e.visited===true){return}updateCss(e)}))}function isUrlRequest(e){if(!/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)){return false}return true}e.exports=function(e,r){if(a){console.log("no window.document found, will not HMR CSS");return noop}var t=getCurrentScriptUrl(e);function update(){var e=t(r.filename);var n=reloadStyle(e);if(r.locals){console.log("[HMR] Detected local css modules. Reload all css");reloadAll();return}if(n){console.log("[HMR] css reload %s",e.join(" "))}else{console.log("[HMR] Reload all css");reloadAll()}}return debounce(update,50)}},996:e=>{function normalizeUrl(e){return e.reduce((function(e,r){switch(r){case"..":e.pop();break;case".":break;default:e.push(r)}return e}),[]).join("/")}e.exports=function(e){e=e.trim();if(/^data:/i.test(e)){return e}var r=e.indexOf("//")!==-1?e.split("//")[0]+"//":"";var t=e.replace(new RegExp(r,"i"),"").split("/");var n=t[0].toLowerCase().replace(/\.$/,"");t[0]="";var i=normalizeUrl(t);return r+n+i}}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={exports:{}};var a=true;try{e[t](i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(677);module.exports=t})(); \ No newline at end of file diff --git a/packages/next/compiled/mini-css-extract-plugin/index.js b/packages/next/compiled/mini-css-extract-plugin/index.js index 675159f9205556..6e17f1e57a0236 100644 --- a/packages/next/compiled/mini-css-extract-plugin/index.js +++ b/packages/next/compiled/mini-css-extract-plugin/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={722:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUndoPath=getUndoPath;t.stringifyRequest=stringifyRequest;t.trueFn=trueFn;var s=_interopRequireDefault(n(188));var i=_interopRequireDefault(n(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function trueFn(){return true}function findModuleById(e,t){const{modules:n,chunkGraph:s}=e;for(const e of n){const n=typeof s!=="undefined"?s.getModuleId(e):e.id;if(n===t){return e}}return null}function evalModuleCode(e,t,n){const i=new s.default(n,e);i.paths=s.default._nodeModulePaths(e.context);i.filename=n;i._compile(t,n);return i.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof et){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}const r="css/mini-extract";t.MODULE_TYPE=r;const o="__mini_css_extract_plugin_public_path_auto__";t.AUTO_PUBLIC_PATH=o;const a="webpack:///mini-css-extract-plugin/";t.ABSOLUTE_PUBLIC_PATH=a;const u="__mini_css_extract_plugin_single_dot_path_segment__";t.SINGLE_DOT_PATH_SEGMENT=u;function isAbsolutePath(e){return i.default.posix.isAbsolute(e)||i.default.win32.isAbsolute(e)}const l=/^\.\.?[/\\]/;function isRelativePath(e){return l.test(e)}function stringifyRequest(e,t){if(typeof e.utils!=="undefined"&&typeof e.utils.contextify==="function"){return JSON.stringify(e.utils.contextify(e.context,t))}const n=t.split("!");const{context:s}=e;return JSON.stringify(n.map((e=>{const t=e.match(/^(.*?)(\?.*)/);const n=t?t[2]:"";let r=t?t[1]:e;if(isAbsolutePath(r)&&s){r=i.default.relative(s,r);if(isAbsolutePath(r)){return r+n}if(isRelativePath(r)===false){r=`./${r}`}}return r.replace(/\\/g,"/")+n})).join("!"))}function getUndoPath(e,t,n){let s=-1;let i="";t=t.replace(/[\\/]$/,"");for(const n of e.split(/[/\\]+/)){if(n===".."){if(s>-1){s--}else{const e=t.lastIndexOf("/");const n=t.lastIndexOf("\\");const s=e<0?n:n<0?e:Math.max(e,n);if(s<0){return`${t}/`}i=`${t.slice(s+1)}/${i}`;t=t.slice(0,s)}}else if(n!=="."){s++}}return s>0?`${"../".repeat(s)}${i}`:n?`./${i}`:i}},188:e=>{e.exports=require("module")},476:e=>{e.exports=require("next/dist/compiled/schema-utils3")},17:e=>{e.exports=require("path")},3:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin options","type":"object","additionalProperties":false,"properties":{"filename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of each output CSS file.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#filename"},"chunkFilename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of non-entry chunk files.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"},"experimentalUseImportModule":{"type":"boolean","description":"Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"},"ignoreOrder":{"type":"boolean","description":"Remove Order Warnings.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"},"insert":{"description":"Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"attributes":{"description":"Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#attributes","type":"object"},"linkType":{"anyOf":[{"enum":["text/css"]},{"type":"boolean"}],"description":"This option allows loading asynchronous chunks with a custom link type","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"},"runtime":{"type":"boolean","description":"Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"}}}')}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var i=t[n]={exports:{}};var r=true;try{e[n](i,i.exports,__nccwpck_require__);r=false}finally{if(r)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:true});e.pluginSymbol=e.pluginName=e["default"]=void 0;var t=__nccwpck_require__(476);var s=_interopRequireDefault(__nccwpck_require__(3));var i=__nccwpck_require__(722);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r="mini-css-extract-plugin";e.pluginName=r;const o=Symbol(r);e.pluginSymbol=o;const a="[name].css";const u=new Set([i.MODULE_TYPE]);const l={sources:new Map,runtimeRequirements:new Set};const d=new WeakMap;const c=new WeakMap;const p=new WeakSet;class MiniCssExtractPlugin{static getCssModule(e){if(d.has(e)){return d.get(e)}class CssModule extends e.Module{constructor({context:e,identifier:t,identifierIndex:n,content:s,layer:r,supports:o,media:a,sourceMap:u,assets:l,assetsInfo:d}){super(i.MODULE_TYPE,e);this.id="";this._context=e;this._identifier=t;this._identifierIndex=n;this.content=s;this.layer=r;this.supports=o;this.media=a;this.sourceMap=u;this.assets=l;this.assetsInfo=d;this._needBuild=true}size(){return this.content.length}identifier(){return`css|${this._identifier}|${this._identifierIndex}`}readableIdentifier(e){return`css ${e.shorten(this._identifier)}${this._identifierIndex?` (${this._identifierIndex})`:""}`}getSourceTypes(){return u}codeGeneration(){return l}nameForCondition(){const e=this._identifier.split("!").pop();const t=e.indexOf("?");if(t>=0){return e.substring(0,t)}return e}updateCacheModule(e){if(this.content!==e.content||this.layer!==e.layer||this.supports!==e.supports||this.media!==e.media||this.sourceMap!==e.sourceMap||this.assets!==e.assets||this.assetsInfo!==e.assetsInfo){this._needBuild=true;this.content=e.content;this.layer=e.layer;this.supports=e.supports;this.media=e.media;this.sourceMap=e.sourceMap;this.assets=e.assets;this.assetsInfo=e.assetsInfo}}needRebuild(){return this._needBuild}needBuild(e,t){t(null,this._needBuild)}build(e,t,n,s,i){this.buildInfo={assets:this.assets,assetsInfo:this.assetsInfo,cacheable:true,hash:this._computeHash(t.outputOptions.hashFunction)};this.buildMeta={};this._needBuild=false;i()}_computeHash(t){const n=e.util.createHash(t);n.update(this.content);if(this.layer){n.update(this.layer)}n.update(this.supports||"");n.update(this.media||"");n.update(this.sourceMap||"");return n.digest("hex")}updateHash(e,t){super.updateHash(e,t);e.update(this.buildInfo.hash)}serialize(e){const{write:t}=e;t(this._context);t(this._identifier);t(this._identifierIndex);t(this.content);t(this.layer);t(this.supports);t(this.media);t(this.sourceMap);t(this.assets);t(this.assetsInfo);t(this._needBuild);super.serialize(e)}deserialize(e){this._needBuild=e.read();super.deserialize(e)}}d.set(e,CssModule);e.util.serialization.register(CssModule,"mini-css-extract-plugin/dist/CssModule",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const n=t();const s=t();const i=t();const r=t();const o=t();const a=t();const u=t();const l=t();const d=t();const c=t();const p=new CssModule({context:n,identifier:s,identifierIndex:i,content:r,layer:o,supports:a,media:u,sourceMap:l,assets:d,assetsInfo:c});p.deserialize(e);return p}});return CssModule}static getCssDependency(e){if(c.has(e)){return c.get(e)}class CssDependency extends e.Dependency{constructor({identifier:e,content:t,layer:n,supports:s,media:i,sourceMap:r},o,a){super();this.identifier=e;this.identifierIndex=a;this.content=t;this.layer=n;this.supports=s;this.media=i;this.sourceMap=r;this.context=o;this.assets=undefined;this.assetsInfo=undefined}getResourceIdentifier(){return`css-module-${this.identifier}-${this.identifierIndex}`}getModuleEvaluationSideEffectsState(){return e.ModuleGraphConnection.TRANSITIVE_ONLY}serialize(e){const{write:t}=e;t(this.identifier);t(this.content);t(this.layer);t(this.supports);t(this.media);t(this.sourceMap);t(this.context);t(this.identifierIndex);t(this.assets);t(this.assetsInfo);super.serialize(e)}deserialize(e){super.deserialize(e)}}c.set(e,CssDependency);e.util.serialization.register(CssDependency,"mini-css-extract-plugin/dist/CssDependency",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const n=new CssDependency({identifier:t(),content:t(),layer:t(),supports:t(),media:t(),sourceMap:t()},t(),t());const s=t();const i=t();n.assets=s;n.assetsInfo=i;n.deserialize(e);return n}});return CssDependency}constructor(e={}){(0,t.validate)(s.default,e,{baseDataPath:"options"});this._sortedModulesCache=new WeakMap;this.options=Object.assign({filename:a,ignoreOrder:false,experimentalUseImportModule:undefined,runtime:true},e);this.runtimeOptions={insert:e.insert,linkType:e.linkType===true||typeof e.linkType==="undefined"?"text/css":e.linkType,attributes:e.attributes};if(!this.options.chunkFilename){const{filename:e}=this.options;if(typeof e!=="function"){const t=e.includes("[name]");const n=e.includes("[id]");const s=e.includes("[chunkhash]");const i=e.includes("[contenthash]");if(s||i||t||n){this.options.chunkFilename=e}else{this.options.chunkFilename=e.replace(/(^|\/)([^/]*(?:\?|$))/,"$1[id].$2")}}else{this.options.chunkFilename="[id].css"}}}apply(e){const{webpack:t}=e;if(this.options.experimentalUseImportModule){if(typeof e.options.experiments.executeModule==="undefined"){e.options.experiments.executeModule=true}}if(!p.has(t)){p.add(t);t.util.serialization.registerLoader(/^mini-css-extract-plugin\//,i.trueFn)}const{splitChunks:n}=e.options.optimization;if(n){if(n.defaultSizeTypes.includes("...")){n.defaultSizeTypes.push(i.MODULE_TYPE)}}const s=MiniCssExtractPlugin.getCssModule(t);const a=MiniCssExtractPlugin.getCssDependency(t);const{NormalModule:u}=e.webpack;e.hooks.compilation.tap(r,(e=>{const{loader:t}=u.getCompilationHooks(e);t.tap(r,(e=>{e[o]={experimentalUseImportModule:this.options.experimentalUseImportModule}}))}));e.hooks.thisCompilation.tap(r,(n=>{class CssModuleFactory{create({dependencies:[e]},t){t(null,new s(e))}}n.dependencyFactories.set(a,new CssModuleFactory);class CssDependencyTemplate{apply(){}}n.dependencyTemplates.set(a,new CssDependencyTemplate);n.hooks.renderManifest.tap(r,((s,{chunk:o})=>{const{chunkGraph:a}=n;const{HotUpdateChunk:u}=t;if(o instanceof u){return}const l=Array.from(this.getChunkModules(o,a)).filter((e=>e.type===i.MODULE_TYPE));const d=o.canBeInitial()?this.options.filename:this.options.chunkFilename;if(l.length>0){s.push({render:()=>this.renderContentAsset(e,n,o,l,n.runtimeTemplate.requestShortener,d,{contentHashType:i.MODULE_TYPE,chunk:o}),filenameTemplate:d,pathOptions:{chunk:o,contentHashType:i.MODULE_TYPE},identifier:`${r}.${o.id}`,hash:o.contentHash[i.MODULE_TYPE]})}}));n.hooks.contentHash.tap(r,(t=>{const{outputOptions:s,chunkGraph:r}=n;const o=this.sortModules(n,t,r.getChunkModulesIterableBySourceType(t,i.MODULE_TYPE),n.runtimeTemplate.requestShortener);if(o){const{hashFunction:n,hashDigest:a,hashDigestLength:u}=s;const{createHash:l}=e.webpack.util;const d=l(n);for(const e of o){d.update(r.getModuleHash(e,t.runtime))}t.contentHash[i.MODULE_TYPE]=d.digest(a).substring(0,u)}}));if(!this.options.runtime){return}const{Template:o,RuntimeGlobals:u,RuntimeModule:l,runtime:d}=t;const getCssChunkObject=(e,t)=>{const n={};const{chunkGraph:s}=t;for(const t of e.getAllAsyncChunks()){const e=s.getOrderedChunkModulesIterable(t,i.compareModulesByIdentifier);for(const s of e){if(s.type===i.MODULE_TYPE){n[t.id]=1;break}}}return n};class CssLoadingRuntimeModule extends l{constructor(e,t){super("css loading",10);this.runtimeRequirements=e;this.runtimeOptions=t}generate(){const{chunk:e,runtimeRequirements:t}=this;const{runtimeTemplate:n,outputOptions:{crossOriginLoading:s}}=this.compilation;const i=getCssChunkObject(e,this.compilation);const r=t.has(u.ensureChunkHandlers)&&Object.keys(i).length>0;const a=t.has(u.hmrDownloadUpdateHandlers);if(!r&&!a){return null}return o.asString([`var createStylesheet = ${n.basicFunction("chunkId, fullhref, resolve, reject",['var linkTag = document.createElement("link");',this.runtimeOptions.attributes?o.asString(Object.entries(this.runtimeOptions.attributes).map((e=>{const[t,n]=e;return`linkTag.setAttribute(${JSON.stringify(t)}, ${JSON.stringify(n)});`}))):"",'linkTag.rel = "stylesheet";',this.runtimeOptions.linkType?`linkTag.type = ${JSON.stringify(this.runtimeOptions.linkType)};`:"",`var onLinkComplete = ${n.basicFunction("event",["// avoid mem leaks.","linkTag.onerror = linkTag.onload = null;","if (event.type === 'load') {",o.indent(["resolve();"]),"} else {",o.indent(["var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realHref = event && event.target && event.target.href || fullhref;",'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");','err.code = "CSS_CHUNK_LOAD_FAILED";',"err.type = errorType;","err.request = realHref;","linkTag.parentNode.removeChild(linkTag)","reject(err);"]),"}"])}`,"linkTag.onerror = linkTag.onload = onLinkComplete;","linkTag.href = fullhref;",s?o.asString([`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,o.indent(`linkTag.crossOrigin = ${JSON.stringify(s)};`),"}"]):"",typeof this.runtimeOptions.insert!=="undefined"?typeof this.runtimeOptions.insert==="function"?`(${this.runtimeOptions.insert.toString()})(linkTag)`:o.asString([`var target = document.querySelector("${this.runtimeOptions.insert}");`,`target.parentNode.insertBefore(linkTag, target.nextSibling);`]):o.asString(["document.head.appendChild(linkTag);"]),"return linkTag;"])};`,`var findStylesheet = ${n.basicFunction("href, fullhref",['var existingLinkTags = document.getElementsByTagName("link");',"for(var i = 0; i < existingLinkTags.length; i++) {",o.indent(["var tag = existingLinkTags[i];",'var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");','if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;']),"}",'var existingStyleTags = document.getElementsByTagName("style");',"for(var i = 0; i < existingStyleTags.length; i++) {",o.indent(["var tag = existingStyleTags[i];",'var dataHref = tag.getAttribute("data-href");',"if(dataHref === href || dataHref === fullhref) return tag;"]),"}"])};`,`var loadStylesheet = ${n.basicFunction("chunkId",`return new Promise(${n.basicFunction("resolve, reject",[`var href = ${u.require}.miniCssF(chunkId);`,`var fullhref = ${u.publicPath} + href;`,"if(findStylesheet(href, fullhref)) return resolve();","createStylesheet(chunkId, fullhref, resolve, reject);"])});`)}`,r?o.asString(["// object to store loaded CSS chunks","var installedCssChunks = {",o.indent(e.ids.map((e=>`${JSON.stringify(e)}: 0`)).join(",\n")),"};","",`${u.ensureChunkHandlers}.miniCss = ${n.basicFunction("chunkId, promises",[`var cssChunks = ${JSON.stringify(i)};`,"if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);","else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {",o.indent([`promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(${n.basicFunction("","installedCssChunks[chunkId] = 0;")}, ${n.basicFunction("e",["delete installedCssChunks[chunkId];","throw e;"])}));`]),"}"])};`]):"// no chunk loading","",a?o.asString(["var oldTags = [];","var newTags = [];",`var applyHandler = ${n.basicFunction("options",[`return { dispose: ${n.basicFunction("",["for(var i = 0; i < oldTags.length; i++) {",o.indent(["var oldTag = oldTags[i];","if(oldTag.parentNode) oldTag.parentNode.removeChild(oldTag);"]),"}","oldTags.length = 0;"])}, apply: ${n.basicFunction("",['for(var i = 0; i < newTags.length; i++) newTags[i].rel = "stylesheet";',"newTags.length = 0;"])} };`])}`,`${u.hmrDownloadUpdateHandlers}.miniCss = ${n.basicFunction("chunkIds, removedChunks, removedModules, promises, applyHandlers, updatedModulesList",["applyHandlers.push(applyHandler);",`chunkIds.forEach(${n.basicFunction("chunkId",[`var href = ${u.require}.miniCssF(chunkId);`,`var fullhref = ${u.publicPath} + href;`,"var oldTag = findStylesheet(href, fullhref);","if(!oldTag) return;",`promises.push(new Promise(${n.basicFunction("resolve, reject",[`var tag = createStylesheet(chunkId, fullhref, ${n.basicFunction("",['tag.as = "style";','tag.rel = "preload";',"resolve();"])}, reject);`,"oldTags.push(oldTag);","newTags.push(tag);"])}));`])});`])}`]):"// no hmr"])}}const c=new WeakSet;const handler=(e,t)=>{if(c.has(e)){return}c.add(e);if(typeof this.options.chunkFilename==="string"&&/\[(full)?hash(:\d+)?\]/.test(this.options.chunkFilename)){t.add(u.getFullHash)}t.add(u.publicPath);n.addRuntimeModule(e,new d.GetChunkFilenameRuntimeModule(i.MODULE_TYPE,"mini-css",`${u.require}.miniCssF`,(e=>{if(!e.contentHash[i.MODULE_TYPE]){return false}return e.canBeInitial()?this.options.filename:this.options.chunkFilename}),true));n.addRuntimeModule(e,new CssLoadingRuntimeModule(t,this.runtimeOptions))};n.hooks.runtimeRequirementInTree.for(u.ensureChunkHandlers).tap(r,handler);n.hooks.runtimeRequirementInTree.for(u.hmrDownloadUpdateHandlers).tap(r,handler)}))}getChunkModules(e,t){return typeof t!=="undefined"?t.getOrderedChunkModulesIterable(e,i.compareModulesByIdentifier):e.modulesIterable}sortModules(e,t,n,s){let i=this._sortedModulesCache.get(t);if(i||!n){return i}const o=[...n];const a=new Map(o.map((e=>[e,new Set])));const u=new Map(o.map((e=>[e,new Map])));const l=Array.from(t.groupsIterable,(e=>{const t=o.map((t=>({module:t,index:e.getModulePostOrderIndex(t)}))).filter((e=>e.index!==undefined)).sort(((e,t)=>t.index-e.index)).map((e=>e.module));for(let n=0;n!i.has(e);while(i.size0&&i.has(e[e.length-1])){e.pop()}if(e.length!==0){const t=e[e.length-1];const s=a.get(t);const r=Array.from(s).filter(unusedModulesFilter);if(!d||d.length>r.length){o=e;d=r}if(r.length===0){i.add(e.pop());n=true;break}}}if(!n){const n=o.pop();if(!this.options.ignoreOrder){const i=u.get(n);e.warnings.push(new Error([`chunk ${t.name||t.id} [${r}]`,"Conflicting order. Following module has been added:",` * ${n.readableIdentifier(s)}`,"despite it was not able to fulfill desired ordering with these modules:",...d.map((e=>{const t=u.get(e);const r=t&&t.get(n);const o=Array.from(i.get(e),(e=>e.name)).join(", ");const a=r&&Array.from(r,(e=>e.name)).join(", ");return[` * ${e.readableIdentifier(s)}`,` - couldn't fulfill desired order of chunk group(s) ${o}`,a&&` - while fulfilling desired order of chunk group(s) ${a}`].filter(Boolean).join("\n")}))].join("\n")))}i.add(n)}}this._sortedModulesCache.set(t,i);return i}renderContentAsset(e,t,n,s,r,o,a){const u=this.sortModules(t,n,s,r);const{ConcatSource:l,SourceMapSource:d,RawSource:c}=e.webpack.sources;const p=new l;const h=new l;for(const n of u){let s=n.content.toString();const u=n.readableIdentifier(r);const l=/^@import url/.test(s);let f;if(t.outputOptions.pathinfo){const e=u.replace(/\*\//g,"*_/");const t="*".repeat(e.length);const n=`/*!****${t}****!*\\\n !*** ${e} ***!\n \\****${t}****/\n`;f=new c(n)}if(l){if(typeof f!=="undefined"){h.add(f)}if(n.media){s=s.replace(/;|\s*$/,n.media)}h.add(s);h.add("\n")}else{if(typeof f!=="undefined"){p.add(f)}if(n.supports){p.add(`@supports (${n.supports}) {\n`)}if(n.media){p.add(`@media ${n.media} {\n`)}const r=typeof n.layer!=="undefined";if(r){p.add(`@layer${n.layer.length>0?` ${n.layer}`:""} {\n`)}const{path:l}=t.getPathWithInfo(o,a);const h=(0,i.getUndoPath)(l,e.outputPath,false);s=s.replace(new RegExp(i.ABSOLUTE_PUBLIC_PATH,"g"),"");s=s.replace(new RegExp(i.SINGLE_DOT_PATH_SEGMENT,"g"),".");s=s.replace(new RegExp(i.AUTO_PUBLIC_PATH,"g"),h);if(n.sourceMap){p.add(new d(s,u,n.sourceMap.toString()))}else{p.add(new c(s,u))}p.add("\n");if(r){p.add("}\n")}if(n.media){p.add("}\n")}if(n.supports){p.add("}\n")}}}return new l(h,p)}}MiniCssExtractPlugin.loader=__nccwpck_require__.ab+"loader.js";var h=MiniCssExtractPlugin;e["default"]=h})();module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={154:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUndoPath=getUndoPath;t.stringifyRequest=stringifyRequest;t.trueFn=trueFn;var s=_interopRequireDefault(n(188));var i=_interopRequireDefault(n(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function trueFn(){return true}function findModuleById(e,t){const{modules:n,chunkGraph:s}=e;for(const e of n){const n=typeof s!=="undefined"?s.getModuleId(e):e.id;if(n===t){return e}}return null}function evalModuleCode(e,t,n){const i=new s.default(n,e);i.paths=s.default._nodeModulePaths(e.context);i.filename=n;i._compile(t,n);return i.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof et){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}const r="css/mini-extract";t.MODULE_TYPE=r;const o="__mini_css_extract_plugin_public_path_auto__";t.AUTO_PUBLIC_PATH=o;const a="webpack:///mini-css-extract-plugin/";t.ABSOLUTE_PUBLIC_PATH=a;const u="__mini_css_extract_plugin_single_dot_path_segment__";t.SINGLE_DOT_PATH_SEGMENT=u;function isAbsolutePath(e){return i.default.posix.isAbsolute(e)||i.default.win32.isAbsolute(e)}const l=/^\.\.?[/\\]/;function isRelativePath(e){return l.test(e)}function stringifyRequest(e,t){if(typeof e.utils!=="undefined"&&typeof e.utils.contextify==="function"){return JSON.stringify(e.utils.contextify(e.context,t))}const n=t.split("!");const{context:s}=e;return JSON.stringify(n.map((e=>{const t=e.match(/^(.*?)(\?.*)/);const n=t?t[2]:"";let r=t?t[1]:e;if(isAbsolutePath(r)&&s){r=i.default.relative(s,r);if(isAbsolutePath(r)){return r+n}if(isRelativePath(r)===false){r=`./${r}`}}return r.replace(/\\/g,"/")+n})).join("!"))}function getUndoPath(e,t,n){let s=-1;let i="";t=t.replace(/[\\/]$/,"");for(const n of e.split(/[/\\]+/)){if(n===".."){if(s>-1){s--}else{const e=t.lastIndexOf("/");const n=t.lastIndexOf("\\");const s=e<0?n:n<0?e:Math.max(e,n);if(s<0){return`${t}/`}i=`${t.slice(s+1)}/${i}`;t=t.slice(0,s)}}else if(n!=="."){s++}}return s>0?`${"../".repeat(s)}${i}`:n?`./${i}`:i}},188:e=>{e.exports=require("module")},476:e=>{e.exports=require("next/dist/compiled/schema-utils3")},17:e=>{e.exports=require("path")},910:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin options","type":"object","additionalProperties":false,"properties":{"filename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of each output CSS file.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#filename"},"chunkFilename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of non-entry chunk files.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"},"experimentalUseImportModule":{"type":"boolean","description":"Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"},"ignoreOrder":{"type":"boolean","description":"Remove Order Warnings.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"},"insert":{"description":"Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"attributes":{"description":"Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#attributes","type":"object"},"linkType":{"anyOf":[{"enum":["text/css"]},{"type":"boolean"}],"description":"This option allows loading asynchronous chunks with a custom link type","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"},"runtime":{"type":"boolean","description":"Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"}}}')}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var i=t[n]={exports:{}};var r=true;try{e[n](i,i.exports,__nccwpck_require__);r=false}finally{if(r)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:true});e.pluginSymbol=e.pluginName=e["default"]=void 0;var t=__nccwpck_require__(476);var s=_interopRequireDefault(__nccwpck_require__(910));var i=__nccwpck_require__(154);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r="mini-css-extract-plugin";e.pluginName=r;const o=Symbol(r);e.pluginSymbol=o;const a="[name].css";const u=new Set([i.MODULE_TYPE]);const l={sources:new Map,runtimeRequirements:new Set};const d=new WeakMap;const c=new WeakMap;const p=new WeakSet;class MiniCssExtractPlugin{static getCssModule(e){if(d.has(e)){return d.get(e)}class CssModule extends e.Module{constructor({context:e,identifier:t,identifierIndex:n,content:s,layer:r,supports:o,media:a,sourceMap:u,assets:l,assetsInfo:d}){super(i.MODULE_TYPE,e);this.id="";this._context=e;this._identifier=t;this._identifierIndex=n;this.content=s;this.layer=r;this.supports=o;this.media=a;this.sourceMap=u;this.assets=l;this.assetsInfo=d;this._needBuild=true}size(){return this.content.length}identifier(){return`css|${this._identifier}|${this._identifierIndex}`}readableIdentifier(e){return`css ${e.shorten(this._identifier)}${this._identifierIndex?` (${this._identifierIndex})`:""}`}getSourceTypes(){return u}codeGeneration(){return l}nameForCondition(){const e=this._identifier.split("!").pop();const t=e.indexOf("?");if(t>=0){return e.substring(0,t)}return e}updateCacheModule(e){if(this.content!==e.content||this.layer!==e.layer||this.supports!==e.supports||this.media!==e.media||this.sourceMap!==e.sourceMap||this.assets!==e.assets||this.assetsInfo!==e.assetsInfo){this._needBuild=true;this.content=e.content;this.layer=e.layer;this.supports=e.supports;this.media=e.media;this.sourceMap=e.sourceMap;this.assets=e.assets;this.assetsInfo=e.assetsInfo}}needRebuild(){return this._needBuild}needBuild(e,t){t(null,this._needBuild)}build(e,t,n,s,i){this.buildInfo={assets:this.assets,assetsInfo:this.assetsInfo,cacheable:true,hash:this._computeHash(t.outputOptions.hashFunction)};this.buildMeta={};this._needBuild=false;i()}_computeHash(t){const n=e.util.createHash(t);n.update(this.content);if(this.layer){n.update(this.layer)}n.update(this.supports||"");n.update(this.media||"");n.update(this.sourceMap||"");return n.digest("hex")}updateHash(e,t){super.updateHash(e,t);e.update(this.buildInfo.hash)}serialize(e){const{write:t}=e;t(this._context);t(this._identifier);t(this._identifierIndex);t(this.content);t(this.layer);t(this.supports);t(this.media);t(this.sourceMap);t(this.assets);t(this.assetsInfo);t(this._needBuild);super.serialize(e)}deserialize(e){this._needBuild=e.read();super.deserialize(e)}}d.set(e,CssModule);e.util.serialization.register(CssModule,"mini-css-extract-plugin/dist/CssModule",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const n=t();const s=t();const i=t();const r=t();const o=t();const a=t();const u=t();const l=t();const d=t();const c=t();const p=new CssModule({context:n,identifier:s,identifierIndex:i,content:r,layer:o,supports:a,media:u,sourceMap:l,assets:d,assetsInfo:c});p.deserialize(e);return p}});return CssModule}static getCssDependency(e){if(c.has(e)){return c.get(e)}class CssDependency extends e.Dependency{constructor({identifier:e,content:t,layer:n,supports:s,media:i,sourceMap:r},o,a){super();this.identifier=e;this.identifierIndex=a;this.content=t;this.layer=n;this.supports=s;this.media=i;this.sourceMap=r;this.context=o;this.assets=undefined;this.assetsInfo=undefined}getResourceIdentifier(){return`css-module-${this.identifier}-${this.identifierIndex}`}getModuleEvaluationSideEffectsState(){return e.ModuleGraphConnection.TRANSITIVE_ONLY}serialize(e){const{write:t}=e;t(this.identifier);t(this.content);t(this.layer);t(this.supports);t(this.media);t(this.sourceMap);t(this.context);t(this.identifierIndex);t(this.assets);t(this.assetsInfo);super.serialize(e)}deserialize(e){super.deserialize(e)}}c.set(e,CssDependency);e.util.serialization.register(CssDependency,"mini-css-extract-plugin/dist/CssDependency",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const n=new CssDependency({identifier:t(),content:t(),layer:t(),supports:t(),media:t(),sourceMap:t()},t(),t());const s=t();const i=t();n.assets=s;n.assetsInfo=i;n.deserialize(e);return n}});return CssDependency}constructor(e={}){(0,t.validate)(s.default,e,{baseDataPath:"options"});this._sortedModulesCache=new WeakMap;this.options=Object.assign({filename:a,ignoreOrder:false,experimentalUseImportModule:undefined,runtime:true},e);this.runtimeOptions={insert:e.insert,linkType:e.linkType===true||typeof e.linkType==="undefined"?"text/css":e.linkType,attributes:e.attributes};if(!this.options.chunkFilename){const{filename:e}=this.options;if(typeof e!=="function"){const t=e.includes("[name]");const n=e.includes("[id]");const s=e.includes("[chunkhash]");const i=e.includes("[contenthash]");if(s||i||t||n){this.options.chunkFilename=e}else{this.options.chunkFilename=e.replace(/(^|\/)([^/]*(?:\?|$))/,"$1[id].$2")}}else{this.options.chunkFilename="[id].css"}}}apply(e){const{webpack:t}=e;if(this.options.experimentalUseImportModule){if(typeof e.options.experiments.executeModule==="undefined"){e.options.experiments.executeModule=true}}if(!p.has(t)){p.add(t);t.util.serialization.registerLoader(/^mini-css-extract-plugin\//,i.trueFn)}const{splitChunks:n}=e.options.optimization;if(n){if(n.defaultSizeTypes.includes("...")){n.defaultSizeTypes.push(i.MODULE_TYPE)}}const s=MiniCssExtractPlugin.getCssModule(t);const a=MiniCssExtractPlugin.getCssDependency(t);const{NormalModule:u}=e.webpack;e.hooks.compilation.tap(r,(e=>{const{loader:t}=u.getCompilationHooks(e);t.tap(r,(e=>{e[o]={experimentalUseImportModule:this.options.experimentalUseImportModule}}))}));e.hooks.thisCompilation.tap(r,(n=>{class CssModuleFactory{create({dependencies:[e]},t){t(null,new s(e))}}n.dependencyFactories.set(a,new CssModuleFactory);class CssDependencyTemplate{apply(){}}n.dependencyTemplates.set(a,new CssDependencyTemplate);n.hooks.renderManifest.tap(r,((s,{chunk:o})=>{const{chunkGraph:a}=n;const{HotUpdateChunk:u}=t;if(o instanceof u){return}const l=Array.from(this.getChunkModules(o,a)).filter((e=>e.type===i.MODULE_TYPE));const d=o.canBeInitial()?this.options.filename:this.options.chunkFilename;if(l.length>0){s.push({render:()=>this.renderContentAsset(e,n,o,l,n.runtimeTemplate.requestShortener,d,{contentHashType:i.MODULE_TYPE,chunk:o}),filenameTemplate:d,pathOptions:{chunk:o,contentHashType:i.MODULE_TYPE},identifier:`${r}.${o.id}`,hash:o.contentHash[i.MODULE_TYPE]})}}));n.hooks.contentHash.tap(r,(t=>{const{outputOptions:s,chunkGraph:r}=n;const o=this.sortModules(n,t,r.getChunkModulesIterableBySourceType(t,i.MODULE_TYPE),n.runtimeTemplate.requestShortener);if(o){const{hashFunction:n,hashDigest:a,hashDigestLength:u}=s;const{createHash:l}=e.webpack.util;const d=l(n);for(const e of o){d.update(r.getModuleHash(e,t.runtime))}t.contentHash[i.MODULE_TYPE]=d.digest(a).substring(0,u)}}));if(!this.options.runtime){return}const{Template:o,RuntimeGlobals:u,RuntimeModule:l,runtime:d}=t;const getCssChunkObject=(e,t)=>{const n={};const{chunkGraph:s}=t;for(const t of e.getAllAsyncChunks()){const e=s.getOrderedChunkModulesIterable(t,i.compareModulesByIdentifier);for(const s of e){if(s.type===i.MODULE_TYPE){n[t.id]=1;break}}}return n};class CssLoadingRuntimeModule extends l{constructor(e,t){super("css loading",10);this.runtimeRequirements=e;this.runtimeOptions=t}generate(){const{chunk:e,runtimeRequirements:t}=this;const{runtimeTemplate:n,outputOptions:{crossOriginLoading:s}}=this.compilation;const i=getCssChunkObject(e,this.compilation);const r=t.has(u.ensureChunkHandlers)&&Object.keys(i).length>0;const a=t.has(u.hmrDownloadUpdateHandlers);if(!r&&!a){return null}return o.asString([`var createStylesheet = ${n.basicFunction("chunkId, fullhref, resolve, reject",['var linkTag = document.createElement("link");',this.runtimeOptions.attributes?o.asString(Object.entries(this.runtimeOptions.attributes).map((e=>{const[t,n]=e;return`linkTag.setAttribute(${JSON.stringify(t)}, ${JSON.stringify(n)});`}))):"",'linkTag.rel = "stylesheet";',this.runtimeOptions.linkType?`linkTag.type = ${JSON.stringify(this.runtimeOptions.linkType)};`:"",`var onLinkComplete = ${n.basicFunction("event",["// avoid mem leaks.","linkTag.onerror = linkTag.onload = null;","if (event.type === 'load') {",o.indent(["resolve();"]),"} else {",o.indent(["var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realHref = event && event.target && event.target.href || fullhref;",'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");','err.code = "CSS_CHUNK_LOAD_FAILED";',"err.type = errorType;","err.request = realHref;","linkTag.parentNode.removeChild(linkTag)","reject(err);"]),"}"])}`,"linkTag.onerror = linkTag.onload = onLinkComplete;","linkTag.href = fullhref;",s?o.asString([`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,o.indent(`linkTag.crossOrigin = ${JSON.stringify(s)};`),"}"]):"",typeof this.runtimeOptions.insert!=="undefined"?typeof this.runtimeOptions.insert==="function"?`(${this.runtimeOptions.insert.toString()})(linkTag)`:o.asString([`var target = document.querySelector("${this.runtimeOptions.insert}");`,`target.parentNode.insertBefore(linkTag, target.nextSibling);`]):o.asString(["document.head.appendChild(linkTag);"]),"return linkTag;"])};`,`var findStylesheet = ${n.basicFunction("href, fullhref",['var existingLinkTags = document.getElementsByTagName("link");',"for(var i = 0; i < existingLinkTags.length; i++) {",o.indent(["var tag = existingLinkTags[i];",'var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");','if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;']),"}",'var existingStyleTags = document.getElementsByTagName("style");',"for(var i = 0; i < existingStyleTags.length; i++) {",o.indent(["var tag = existingStyleTags[i];",'var dataHref = tag.getAttribute("data-href");',"if(dataHref === href || dataHref === fullhref) return tag;"]),"}"])};`,`var loadStylesheet = ${n.basicFunction("chunkId",`return new Promise(${n.basicFunction("resolve, reject",[`var href = ${u.require}.miniCssF(chunkId);`,`var fullhref = ${u.publicPath} + href;`,"if(findStylesheet(href, fullhref)) return resolve();","createStylesheet(chunkId, fullhref, resolve, reject);"])});`)}`,r?o.asString(["// object to store loaded CSS chunks","var installedCssChunks = {",o.indent(e.ids.map((e=>`${JSON.stringify(e)}: 0`)).join(",\n")),"};","",`${u.ensureChunkHandlers}.miniCss = ${n.basicFunction("chunkId, promises",[`var cssChunks = ${JSON.stringify(i)};`,"if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);","else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {",o.indent([`promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(${n.basicFunction("","installedCssChunks[chunkId] = 0;")}, ${n.basicFunction("e",["delete installedCssChunks[chunkId];","throw e;"])}));`]),"}"])};`]):"// no chunk loading","",a?o.asString(["var oldTags = [];","var newTags = [];",`var applyHandler = ${n.basicFunction("options",[`return { dispose: ${n.basicFunction("",["for(var i = 0; i < oldTags.length; i++) {",o.indent(["var oldTag = oldTags[i];","if(oldTag.parentNode) oldTag.parentNode.removeChild(oldTag);"]),"}","oldTags.length = 0;"])}, apply: ${n.basicFunction("",['for(var i = 0; i < newTags.length; i++) newTags[i].rel = "stylesheet";',"newTags.length = 0;"])} };`])}`,`${u.hmrDownloadUpdateHandlers}.miniCss = ${n.basicFunction("chunkIds, removedChunks, removedModules, promises, applyHandlers, updatedModulesList",["applyHandlers.push(applyHandler);",`chunkIds.forEach(${n.basicFunction("chunkId",[`var href = ${u.require}.miniCssF(chunkId);`,`var fullhref = ${u.publicPath} + href;`,"var oldTag = findStylesheet(href, fullhref);","if(!oldTag) return;",`promises.push(new Promise(${n.basicFunction("resolve, reject",[`var tag = createStylesheet(chunkId, fullhref, ${n.basicFunction("",['tag.as = "style";','tag.rel = "preload";',"resolve();"])}, reject);`,"oldTags.push(oldTag);","newTags.push(tag);"])}));`])});`])}`]):"// no hmr"])}}const c=new WeakSet;const handler=(e,t)=>{if(c.has(e)){return}c.add(e);if(typeof this.options.chunkFilename==="string"&&/\[(full)?hash(:\d+)?\]/.test(this.options.chunkFilename)){t.add(u.getFullHash)}t.add(u.publicPath);n.addRuntimeModule(e,new d.GetChunkFilenameRuntimeModule(i.MODULE_TYPE,"mini-css",`${u.require}.miniCssF`,(e=>{if(!e.contentHash[i.MODULE_TYPE]){return false}return e.canBeInitial()?this.options.filename:this.options.chunkFilename}),true));n.addRuntimeModule(e,new CssLoadingRuntimeModule(t,this.runtimeOptions))};n.hooks.runtimeRequirementInTree.for(u.ensureChunkHandlers).tap(r,handler);n.hooks.runtimeRequirementInTree.for(u.hmrDownloadUpdateHandlers).tap(r,handler)}))}getChunkModules(e,t){return typeof t!=="undefined"?t.getOrderedChunkModulesIterable(e,i.compareModulesByIdentifier):e.modulesIterable}sortModules(e,t,n,s){let i=this._sortedModulesCache.get(t);if(i||!n){return i}const o=[...n];const a=new Map(o.map((e=>[e,new Set])));const u=new Map(o.map((e=>[e,new Map])));const l=Array.from(t.groupsIterable,(e=>{const t=o.map((t=>({module:t,index:e.getModulePostOrderIndex(t)}))).filter((e=>e.index!==undefined)).sort(((e,t)=>t.index-e.index)).map((e=>e.module));for(let n=0;n!i.has(e);while(i.size0&&i.has(e[e.length-1])){e.pop()}if(e.length!==0){const t=e[e.length-1];const s=a.get(t);const r=Array.from(s).filter(unusedModulesFilter);if(!d||d.length>r.length){o=e;d=r}if(r.length===0){i.add(e.pop());n=true;break}}}if(!n){const n=o.pop();if(!this.options.ignoreOrder){const i=u.get(n);e.warnings.push(new Error([`chunk ${t.name||t.id} [${r}]`,"Conflicting order. Following module has been added:",` * ${n.readableIdentifier(s)}`,"despite it was not able to fulfill desired ordering with these modules:",...d.map((e=>{const t=u.get(e);const r=t&&t.get(n);const o=Array.from(i.get(e),(e=>e.name)).join(", ");const a=r&&Array.from(r,(e=>e.name)).join(", ");return[` * ${e.readableIdentifier(s)}`,` - couldn't fulfill desired order of chunk group(s) ${o}`,a&&` - while fulfilling desired order of chunk group(s) ${a}`].filter(Boolean).join("\n")}))].join("\n")))}i.add(n)}}this._sortedModulesCache.set(t,i);return i}renderContentAsset(e,t,n,s,r,o,a){const u=this.sortModules(t,n,s,r);const{ConcatSource:l,SourceMapSource:d,RawSource:c}=e.webpack.sources;const p=new l;const h=new l;for(const n of u){let s=n.content.toString();const u=n.readableIdentifier(r);const l=/^@import url/.test(s);let f;if(t.outputOptions.pathinfo){const e=u.replace(/\*\//g,"*_/");const t="*".repeat(e.length);const n=`/*!****${t}****!*\\\n !*** ${e} ***!\n \\****${t}****/\n`;f=new c(n)}if(l){if(typeof f!=="undefined"){h.add(f)}if(n.media){s=s.replace(/;|\s*$/,n.media)}h.add(s);h.add("\n")}else{if(typeof f!=="undefined"){p.add(f)}if(n.supports){p.add(`@supports (${n.supports}) {\n`)}if(n.media){p.add(`@media ${n.media} {\n`)}const r=typeof n.layer!=="undefined";if(r){p.add(`@layer${n.layer.length>0?` ${n.layer}`:""} {\n`)}const{path:l}=t.getPathWithInfo(o,a);const h=(0,i.getUndoPath)(l,e.outputPath,false);s=s.replace(new RegExp(i.ABSOLUTE_PUBLIC_PATH,"g"),"");s=s.replace(new RegExp(i.SINGLE_DOT_PATH_SEGMENT,"g"),".");s=s.replace(new RegExp(i.AUTO_PUBLIC_PATH,"g"),h);if(n.sourceMap){p.add(new d(s,u,n.sourceMap.toString()))}else{p.add(new c(s,u))}p.add("\n");if(r){p.add("}\n")}if(n.media){p.add("}\n")}if(n.supports){p.add("}\n")}}}return new l(h,p)}}MiniCssExtractPlugin.loader=__nccwpck_require__.ab+"loader.js";var h=MiniCssExtractPlugin;e["default"]=h})();module.exports=n})(); \ No newline at end of file diff --git a/packages/next/compiled/mini-css-extract-plugin/loader.js b/packages/next/compiled/mini-css-extract-plugin/loader.js index aa8aacb8fce5e4..eb76fda0d71ac7 100644 --- a/packages/next/compiled/mini-css-extract-plugin/loader.js +++ b/packages/next/compiled/mini-css-extract-plugin/loader.js @@ -1 +1 @@ -(()=>{"use strict";var e={722:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUndoPath=getUndoPath;t.stringifyRequest=stringifyRequest;t.trueFn=trueFn;var n=_interopRequireDefault(i(188));var o=_interopRequireDefault(i(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function trueFn(){return true}function findModuleById(e,t){const{modules:i,chunkGraph:n}=e;for(const e of i){const i=typeof n!=="undefined"?n.getModuleId(e):e.id;if(i===t){return e}}return null}function evalModuleCode(e,t,i){const o=new n.default(i,e);o.paths=n.default._nodeModulePaths(e.context);o.filename=i;o._compile(t,i);return o.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof et){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}const r="css/mini-extract";t.MODULE_TYPE=r;const s="__mini_css_extract_plugin_public_path_auto__";t.AUTO_PUBLIC_PATH=s;const a="webpack:///mini-css-extract-plugin/";t.ABSOLUTE_PUBLIC_PATH=a;const u="__mini_css_extract_plugin_single_dot_path_segment__";t.SINGLE_DOT_PATH_SEGMENT=u;function isAbsolutePath(e){return o.default.posix.isAbsolute(e)||o.default.win32.isAbsolute(e)}const l=/^\.\.?[/\\]/;function isRelativePath(e){return l.test(e)}function stringifyRequest(e,t){if(typeof e.utils!=="undefined"&&typeof e.utils.contextify==="function"){return JSON.stringify(e.utils.contextify(e.context,t))}const i=t.split("!");const{context:n}=e;return JSON.stringify(i.map((e=>{const t=e.match(/^(.*?)(\?.*)/);const i=t?t[2]:"";let r=t?t[1]:e;if(isAbsolutePath(r)&&n){r=o.default.relative(n,r);if(isAbsolutePath(r)){return r+i}if(isRelativePath(r)===false){r=`./${r}`}}return r.replace(/\\/g,"/")+i})).join("!"))}function getUndoPath(e,t,i){let n=-1;let o="";t=t.replace(/[\\/]$/,"");for(const i of e.split(/[/\\]+/)){if(i===".."){if(n>-1){n--}else{const e=t.lastIndexOf("/");const i=t.lastIndexOf("\\");const n=e<0?i:i<0?e:Math.max(e,i);if(n<0){return`${t}/`}o=`${t.slice(n+1)}/${o}`;t=t.slice(0,n)}}else if(i!=="."){n++}}return n>0?`${"../".repeat(n)}${o}`:i?`./${o}`:o}},717:e=>{e.exports=require("./index.js")},188:e=>{e.exports=require("module")},17:e=>{e.exports=require("path")},594:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin Loader options","type":"object","additionalProperties":false,"properties":{"publicPath":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"Specifies a custom public path for the external resources like images, files, etc inside CSS.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"},"emit":{"type":"boolean","description":"If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#emit"},"esModule":{"type":"boolean","description":"Generates JS modules that use the ES modules syntax.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"},"layer":{"type":"string"}}}')}};var t={};function __nccwpck_require__(i){var n=t[i];if(n!==undefined){return n.exports}var o=t[i]={exports:{}};var r=true;try{e[i](o,o.exports,__nccwpck_require__);r=false}finally{if(r)delete t[i]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:true});e["default"]=_default;e.pitch=pitch;var t=_interopRequireDefault(__nccwpck_require__(17));var n=__nccwpck_require__(722);var o=_interopRequireDefault(__nccwpck_require__(594));var r=_interopRequireWildcard(__nccwpck_require__(717));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var i=new WeakMap;return(_getRequireWildcardCache=function(e){return e?i:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var i=_getRequireWildcardCache(t);if(i&&i.has(e)){return i.get(e)}var n={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)){var s=o?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(n,r,s)}else{n[r]=e[r]}}}n.default=e;if(i){i.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function hotLoader(e,i){const o=i.locals?"":"module.hot.accept(undefined, cssReload);";return`${e}\n if(module.hot) {\n // ${Date.now()}\n var cssReload = require(${(0,n.stringifyRequest)(i.context,t.default.join(__dirname,"hmr/hotModuleReplacement.js"))})(module.id, ${JSON.stringify({...i.options,locals:!!i.locals})});\n module.hot.dispose(cssReload);\n ${o}\n }\n `}function pitch(e){const t=this.getOptions(o.default);const i=this.async();const s=this[r.pluginSymbol];if(!s){i(new Error("You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started"));return}const{webpack:a}=this._compiler;const handleExports=(e,o,s,u)=>{let l;let c;const p=typeof t.esModule!=="undefined"?t.esModule:true;const addDependencies=e=>{if(!Array.isArray(e)&&e!=null){throw new Error(`Exported value was not extracted as an array: ${JSON.stringify(e)}`)}const i=new Map;const n=typeof t.emit!=="undefined"?t.emit:true;let o;for(const t of e){if(!t.identifier||!n){continue}const e=i.get(t.identifier)||0;const s=r.default.getCssDependency(a);this._module.addDependency(o=new s(t,t.context,e));i.set(t.identifier,e+1)}if(o&&s){o.assets=s;o.assetsInfo=u}};try{const t=e.__esModule?e.default:e;c=e.__esModule&&(!e.default||!("locals"in e.default));if(c){Object.keys(e).forEach((t=>{if(t!=="default"){if(!l){l={}}l[t]=e[t]}}))}else{l=t&&t.locals}let i;if(!Array.isArray(t)){i=[[null,t]]}else{i=t.map((([e,t,i,r,s,a])=>{let u=e;let l;if(o){const t=(0,n.findModuleById)(o,e);u=t.identifier();({context:l}=t)}else{l=this.rootContext}return{identifier:u,context:l,content:Buffer.from(t),media:i,supports:s,layer:a,sourceMap:r?Buffer.from(JSON.stringify(r)):undefined}}))}addDependencies(i)}catch(e){return i(e)}const d=l?c?Object.keys(l).map((e=>`\nexport var ${e} = ${JSON.stringify(l[e])};`)).join(""):`\n${p?"export default":"module.exports ="} ${JSON.stringify(l)};`:p?`\nexport {};`:"";let f=`// extracted by ${r.pluginName}`;f+=this.hot?hotLoader(d,{context:this.context,options:t,locals:l}):d;return i(null,f)};let{publicPath:u}=this._compilation.outputOptions;if(typeof t.publicPath==="string"){u=t.publicPath}else if(typeof t.publicPath==="function"){u=t.publicPath(this.resourcePath,this.rootContext)}if(u==="auto"){u=n.AUTO_PUBLIC_PATH}if(typeof s.experimentalUseImportModule==="undefined"&&typeof this.importModule==="function"||s.experimentalUseImportModule){if(!this.importModule){i(new Error("You are using 'experimentalUseImportModule' but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));return}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(u);const r=o?u:`${n.ABSOLUTE_PUBLIC_PATH}${u.replace(/\./g,n.SINGLE_DOT_PATH_SEGMENT)}`;this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${e}`,{layer:t.layer,publicPath:r},((e,t)=>{if(e){i(e);return}handleExports(t)}));return}const l=this.loaders.slice(this.loaderIndex+1);this.addDependency(this.resourcePath);const c="*";const p={filename:c,publicPath:u};const d=this._compilation.createChildCompiler(`${r.pluginName} ${e}`,p);d.options.module={...d.options.module};d.options.module.parser={...d.options.module.parser};d.options.module.parser.javascript={...d.options.module.parser.javascript,url:"relative"};const{NodeTemplatePlugin:f}=a.node;const{NodeTargetPlugin:_}=a.node;new f(p).apply(d);(new _).apply(d);const{EntryOptionPlugin:h}=a;const{library:{EnableLibraryPlugin:m}}=a;new m("commonjs2").apply(d);h.applyEntryOption(d,this.context,{child:{library:{type:"commonjs2"},import:[`!!${e}`]}});const{LimitChunkCountPlugin:y}=a.optimize;new y({maxChunks:1}).apply(d);const{NormalModule:g}=a;d.hooks.thisCompilation.tap(`${r.pluginName} loader`,(t=>{const i=g.getCompilationHooks(t).loader;i.tap(`${r.pluginName} loader`,((t,i)=>{if(i.request===e){i.loaders=l.map((e=>({loader:e.path,options:e.options,ident:e.ident})))}}))}));let b;d.hooks.compilation.tap(r.pluginName,(e=>{e.hooks.processAssets.tap(r.pluginName,(()=>{b=e.assets[c]&&e.assets[c].source();e.chunks.forEach((t=>{t.files.forEach((t=>{e.deleteAsset(t)}))}))}))}));d.runAsChild(((t,o,r)=>{if(t){return i(t)}if(r.errors.length>0){return i(r.errors[0])}const s=Object.create(null);const a=new Map;for(const e of r.getAssets()){s[e.name]=e.source;a.set(e.name,e.info)}r.fileDependencies.forEach((e=>{this.addDependency(e)}),this);r.contextDependencies.forEach((e=>{this.addContextDependency(e)}),this);if(!b){return i(new Error("Didn't get a result from child compiler"))}let u;try{u=(0,n.evalModuleCode)(this,b,e)}catch(e){return i(e)}return handleExports(u,r,s,a)}))}function _default(e){console.log(e)}})();module.exports=i})(); \ No newline at end of file +(()=>{"use strict";var e={154:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUndoPath=getUndoPath;t.stringifyRequest=stringifyRequest;t.trueFn=trueFn;var n=_interopRequireDefault(i(188));var o=_interopRequireDefault(i(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function trueFn(){return true}function findModuleById(e,t){const{modules:i,chunkGraph:n}=e;for(const e of i){const i=typeof n!=="undefined"?n.getModuleId(e):e.id;if(i===t){return e}}return null}function evalModuleCode(e,t,i){const o=new n.default(i,e);o.paths=n.default._nodeModulePaths(e.context);o.filename=i;o._compile(t,i);return o.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof et){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}const r="css/mini-extract";t.MODULE_TYPE=r;const s="__mini_css_extract_plugin_public_path_auto__";t.AUTO_PUBLIC_PATH=s;const a="webpack:///mini-css-extract-plugin/";t.ABSOLUTE_PUBLIC_PATH=a;const u="__mini_css_extract_plugin_single_dot_path_segment__";t.SINGLE_DOT_PATH_SEGMENT=u;function isAbsolutePath(e){return o.default.posix.isAbsolute(e)||o.default.win32.isAbsolute(e)}const l=/^\.\.?[/\\]/;function isRelativePath(e){return l.test(e)}function stringifyRequest(e,t){if(typeof e.utils!=="undefined"&&typeof e.utils.contextify==="function"){return JSON.stringify(e.utils.contextify(e.context,t))}const i=t.split("!");const{context:n}=e;return JSON.stringify(i.map((e=>{const t=e.match(/^(.*?)(\?.*)/);const i=t?t[2]:"";let r=t?t[1]:e;if(isAbsolutePath(r)&&n){r=o.default.relative(n,r);if(isAbsolutePath(r)){return r+i}if(isRelativePath(r)===false){r=`./${r}`}}return r.replace(/\\/g,"/")+i})).join("!"))}function getUndoPath(e,t,i){let n=-1;let o="";t=t.replace(/[\\/]$/,"");for(const i of e.split(/[/\\]+/)){if(i===".."){if(n>-1){n--}else{const e=t.lastIndexOf("/");const i=t.lastIndexOf("\\");const n=e<0?i:i<0?e:Math.max(e,i);if(n<0){return`${t}/`}o=`${t.slice(n+1)}/${o}`;t=t.slice(0,n)}}else if(i!=="."){n++}}return n>0?`${"../".repeat(n)}${o}`:i?`./${o}`:o}},717:e=>{e.exports=require("./index.js")},188:e=>{e.exports=require("module")},17:e=>{e.exports=require("path")},230:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin Loader options","type":"object","additionalProperties":false,"properties":{"publicPath":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"Specifies a custom public path for the external resources like images, files, etc inside CSS.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"},"emit":{"type":"boolean","description":"If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#emit"},"esModule":{"type":"boolean","description":"Generates JS modules that use the ES modules syntax.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"},"layer":{"type":"string"}}}')}};var t={};function __nccwpck_require__(i){var n=t[i];if(n!==undefined){return n.exports}var o=t[i]={exports:{}};var r=true;try{e[i](o,o.exports,__nccwpck_require__);r=false}finally{if(r)delete t[i]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:true});e["default"]=_default;e.pitch=pitch;var t=_interopRequireDefault(__nccwpck_require__(17));var n=__nccwpck_require__(154);var o=_interopRequireDefault(__nccwpck_require__(230));var r=_interopRequireWildcard(__nccwpck_require__(717));function _getRequireWildcardCache(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var i=new WeakMap;return(_getRequireWildcardCache=function(e){return e?i:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var i=_getRequireWildcardCache(t);if(i&&i.has(e)){return i.get(e)}var n={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)){var s=o?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(n,r,s)}else{n[r]=e[r]}}}n.default=e;if(i){i.set(e,n)}return n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function hotLoader(e,i){const o=i.locals?"":"module.hot.accept(undefined, cssReload);";return`${e}\n if(module.hot) {\n // ${Date.now()}\n var cssReload = require(${(0,n.stringifyRequest)(i.context,t.default.join(__dirname,"hmr/hotModuleReplacement.js"))})(module.id, ${JSON.stringify({...i.options,locals:!!i.locals})});\n module.hot.dispose(cssReload);\n ${o}\n }\n `}function pitch(e){const t=this.getOptions(o.default);const i=this.async();const s=this[r.pluginSymbol];if(!s){i(new Error("You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started"));return}const{webpack:a}=this._compiler;const handleExports=(e,o,s,u)=>{let l;let c;const p=typeof t.esModule!=="undefined"?t.esModule:true;const addDependencies=e=>{if(!Array.isArray(e)&&e!=null){throw new Error(`Exported value was not extracted as an array: ${JSON.stringify(e)}`)}const i=new Map;const n=typeof t.emit!=="undefined"?t.emit:true;let o;for(const t of e){if(!t.identifier||!n){continue}const e=i.get(t.identifier)||0;const s=r.default.getCssDependency(a);this._module.addDependency(o=new s(t,t.context,e));i.set(t.identifier,e+1)}if(o&&s){o.assets=s;o.assetsInfo=u}};try{const t=e.__esModule?e.default:e;c=e.__esModule&&(!e.default||!("locals"in e.default));if(c){Object.keys(e).forEach((t=>{if(t!=="default"){if(!l){l={}}l[t]=e[t]}}))}else{l=t&&t.locals}let i;if(!Array.isArray(t)){i=[[null,t]]}else{i=t.map((([e,t,i,r,s,a])=>{let u=e;let l;if(o){const t=(0,n.findModuleById)(o,e);u=t.identifier();({context:l}=t)}else{l=this.rootContext}return{identifier:u,context:l,content:Buffer.from(t),media:i,supports:s,layer:a,sourceMap:r?Buffer.from(JSON.stringify(r)):undefined}}))}addDependencies(i)}catch(e){return i(e)}const d=l?c?Object.keys(l).map((e=>`\nexport var ${e} = ${JSON.stringify(l[e])};`)).join(""):`\n${p?"export default":"module.exports ="} ${JSON.stringify(l)};`:p?`\nexport {};`:"";let f=`// extracted by ${r.pluginName}`;f+=this.hot?hotLoader(d,{context:this.context,options:t,locals:l}):d;return i(null,f)};let{publicPath:u}=this._compilation.outputOptions;if(typeof t.publicPath==="string"){u=t.publicPath}else if(typeof t.publicPath==="function"){u=t.publicPath(this.resourcePath,this.rootContext)}if(u==="auto"){u=n.AUTO_PUBLIC_PATH}if(typeof s.experimentalUseImportModule==="undefined"&&typeof this.importModule==="function"||s.experimentalUseImportModule){if(!this.importModule){i(new Error("You are using 'experimentalUseImportModule' but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));return}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(u);const r=o?u:`${n.ABSOLUTE_PUBLIC_PATH}${u.replace(/\./g,n.SINGLE_DOT_PATH_SEGMENT)}`;this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${e}`,{layer:t.layer,publicPath:r},((e,t)=>{if(e){i(e);return}handleExports(t)}));return}const l=this.loaders.slice(this.loaderIndex+1);this.addDependency(this.resourcePath);const c="*";const p={filename:c,publicPath:u};const d=this._compilation.createChildCompiler(`${r.pluginName} ${e}`,p);d.options.module={...d.options.module};d.options.module.parser={...d.options.module.parser};d.options.module.parser.javascript={...d.options.module.parser.javascript,url:"relative"};const{NodeTemplatePlugin:f}=a.node;const{NodeTargetPlugin:_}=a.node;new f(p).apply(d);(new _).apply(d);const{EntryOptionPlugin:h}=a;const{library:{EnableLibraryPlugin:m}}=a;new m("commonjs2").apply(d);h.applyEntryOption(d,this.context,{child:{library:{type:"commonjs2"},import:[`!!${e}`]}});const{LimitChunkCountPlugin:y}=a.optimize;new y({maxChunks:1}).apply(d);const{NormalModule:g}=a;d.hooks.thisCompilation.tap(`${r.pluginName} loader`,(t=>{const i=g.getCompilationHooks(t).loader;i.tap(`${r.pluginName} loader`,((t,i)=>{if(i.request===e){i.loaders=l.map((e=>({loader:e.path,options:e.options,ident:e.ident})))}}))}));let b;d.hooks.compilation.tap(r.pluginName,(e=>{e.hooks.processAssets.tap(r.pluginName,(()=>{b=e.assets[c]&&e.assets[c].source();e.chunks.forEach((t=>{t.files.forEach((t=>{e.deleteAsset(t)}))}))}))}));d.runAsChild(((t,o,r)=>{if(t){return i(t)}if(r.errors.length>0){return i(r.errors[0])}const s=Object.create(null);const a=new Map;for(const e of r.getAssets()){s[e.name]=e.source;a.set(e.name,e.info)}r.fileDependencies.forEach((e=>{this.addDependency(e)}),this);r.contextDependencies.forEach((e=>{this.addContextDependency(e)}),this);if(!b){return i(new Error("Didn't get a result from child compiler"))}let u;try{u=(0,n.evalModuleCode)(this,b,e)}catch(e){return i(e)}return handleExports(u,r,s,a)}))}function _default(e){console.log(e)}})();module.exports=i})(); \ No newline at end of file diff --git a/packages/next/compiled/sass-loader/cjs.js b/packages/next/compiled/sass-loader/cjs.js index 26dbe5b3c2c651..e83ef689e55c3c 100644 --- a/packages/next/compiled/sass-loader/cjs.js +++ b/packages/next/compiled/sass-loader/cjs.js @@ -1 +1 @@ -(function(){var __webpack_modules__={814:function(e,t){function set(e,t,s){if(typeof s.value==="object")s.value=klona(s.value);if(!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"){Object.defineProperty(e,t,s)}else e[t]=s.value}function klona(e){if(typeof e!=="object")return e;var t=0,s,r,n,o=Object.prototype.toString.call(e);if(o==="[object Object]"){n=Object.create(e.__proto__||null)}else if(o==="[object Array]"){n=Array(e.length)}else if(o==="[object Set]"){n=new Set;e.forEach((function(e){n.add(klona(e))}))}else if(o==="[object Map]"){n=new Map;e.forEach((function(e,t){n.set(klona(t),klona(e))}))}else if(o==="[object Date]"){n=new Date(+e)}else if(o==="[object RegExp]"){n=new RegExp(e.source,e.flags)}else if(o==="[object DataView]"){n=new e.constructor(klona(e.buffer))}else if(o==="[object ArrayBuffer]"){n=e.slice(0)}else if(o.slice(-6)==="Array]"){n=new e.constructor(e)}if(n){for(r=Object.getOwnPropertySymbols(e);t{if(e){if(e.file){this.addDependency(r.default.normalize(e.file))}s(new a.default(e));return}let n=t.map?JSON.parse(t.map):null;if(n&&c){n=(0,o.normalizeSourceMap)(n,this.rootContext)}t.stats.includedFiles.forEach((e=>{const t=r.default.normalize(e);if(r.default.isAbsolute(t)){this.addDependency(t)}}));s(null,t.css.toString(),n)}))}var i=loader;t["default"]=i},179:function(__unused_webpack_module,exports,__nccwpck_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getRenderFunctionFromSassImplementation=getRenderFunctionFromSassImplementation;exports.getSassImplementation=getSassImplementation;exports.getSassOptions=getSassOptions;exports.getWebpackImporter=getWebpackImporter;exports.getWebpackResolver=getWebpackResolver;exports.isSupportedFibers=isSupportedFibers;exports.normalizeSourceMap=normalizeSourceMap;var _url=_interopRequireDefault(__nccwpck_require__(310));var _path=_interopRequireDefault(__nccwpck_require__(17));var _full=__nccwpck_require__(814);var _neoAsync=_interopRequireDefault(__nccwpck_require__(175));var _SassWarning=_interopRequireDefault(__nccwpck_require__(66));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getDefaultSassImplementation(){let sassImplPkg="sass";try{require.resolve("sass")}catch(error){try{eval("require.resolve('node-sass')");sassImplPkg="node-sass"}catch(e){sassImplPkg="sass"}}return require(sassImplPkg)}function getSassImplementation(e,t){let s=t;if(!s){try{s=getDefaultSassImplementation()}catch(t){e.emitError(t);return}}if(typeof s==="string"){try{s=require(s)}catch(t){e.emitError(t);return}}const{info:r}=s;if(!r){e.emitError(new Error("Unknown Sass implementation."));return}const n=r.split("\t");if(n.length<2){e.emitError(new Error(`Unknown Sass implementation "${r}".`));return}const[o]=n;if(o==="dart-sass"){return s}else if(o==="node-sass"){return s}e.emitError(new Error(`Unknown Sass implementation "${o}".`))}function isProductionLikeMode(e){return e.mode==="production"||!e.mode}function proxyCustomImporters(e,t){return[].concat(e).map((e=>function proxyImporter(...s){const r={...this,webpackLoaderContext:t};return e.apply(r,s)}))}function isSupportedFibers(){const[e]=process.versions.node.split(".");return Number(e)<16}async function getSassOptions(e,t,s,r,n){const o=(0,_full.klona)(t.sassOptions?typeof t.sassOptions==="function"?t.sassOptions(e)||{}:t.sassOptions:{});const a=r.info.includes("dart-sass");if(a&&isSupportedFibers()){const e=!o.fiber&&o.fiber!==false;if(e){let e;try{e=require.resolve("fibers")}catch(e){}if(e){o.fiber=require(e)}}else if(o.fiber===false){delete o.fiber}}else{delete o.fiber}o.file=e.resourcePath;o.data=t.additionalData?typeof t.additionalData==="function"?await t.additionalData(s,e):`${t.additionalData}\n${s}`:s;if(!o.outputStyle&&isProductionLikeMode(e)){o.outputStyle="compressed"}if(n){o.sourceMap=true;o.outFile=_path.default.join(e.rootContext,"style.css.map");o.sourceMapContents=true;o.omitSourceMapUrl=true;o.sourceMapEmbed=false}const{resourcePath:i}=e;const c=_path.default.extname(i);if(c&&c.toLowerCase()===".sass"&&typeof o.indentedSyntax==="undefined"){o.indentedSyntax=true}else{o.indentedSyntax=Boolean(o.indentedSyntax)}o.importer=o.importer?proxyCustomImporters(Array.isArray(o.importer)?o.importer:[o.importer],e):[];o.includePaths=[].concat(process.cwd()).concat((o.includePaths||[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);if(typeof o.charset==="undefined"){o.charset=true}if(!o.logger){const s=t.warnRuleAsWarning===true;const r=e.getLogger("sass-loader");const formatSpan=e=>`${e.url||"-"}:${e.start.line}:${e.start.column}: `;o.logger={debug(e,t){let s="";if(t.span){s=formatSpan(t.span)}s+=e;r.debug(s)},warn(t,n){let o="";if(n.deprecation){o+="Deprecation "}if(n.span&&!n.stack){o=formatSpan(n.span)}o+=t;if(n.stack){o+=`\n\n${n.stack}`}if(s){e.emitWarning(new _SassWarning.default(o,n))}else{r.warn(o)}}}}return o}const MODULE_REQUEST_REGEX=/^[^?]*~/;const IS_MODULE_IMPORT=/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;function getPossibleRequests(e,t=false,s=false){let r=e;if(t){if(MODULE_REQUEST_REGEX.test(e)){r=r.replace(MODULE_REQUEST_REGEX,"")}if(IS_MODULE_IMPORT.test(e)){r=r[r.length-1]==="/"?r:`${r}/`;return[...new Set([r,e])]}}const n=_path.default.extname(r).toLowerCase();if(n===".css"){return[]}const o=_path.default.dirname(r);const a=o==="."?"":`${o}/`;const i=_path.default.basename(r);const c=_path.default.basename(r,n);return[...new Set([].concat(s?[`${a}_${c}.import${n}`,`${a}${c}.import${n}`]:[]).concat([`${a}_${i}`,`${a}${i}`]).concat(t?[e]:[]))]}function promiseResolve(e){return(t,s)=>new Promise(((r,n)=>{e(t,s,((e,t)=>{if(e){n(e)}else{r(t)}}))}))}const IS_SPECIAL_MODULE_IMPORT=/^~[^/]+$/;const IS_NATIVE_WIN32_PATH=/^[a-z]:[/\\]|^\\\\/i;function getWebpackResolver(e,t,s=[]){async function startResolving(e){if(e.length===0){return Promise.reject()}const[{possibleRequests:t}]=e;if(t.length===0){return Promise.reject()}const[{resolve:s,context:r}]=e;try{return await s(r,t[0])}catch(s){const[,...r]=t;if(r.length===0){const[,...t]=e;return startResolving(t)}e[0].possibleRequests=r;return startResolving(e)}}const r=t.info.includes("dart-sass");const n=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const o=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index.import","_index","index.import","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const a=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style"],mainFields:["sass","style","main","..."],mainFiles:["_index","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const i=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style"],mainFields:["sass","style","main","..."],mainFiles:["_index.import","_index","index.import","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));return(e,t,c)=>{if(!r&&!_path.default.isAbsolute(e)){return Promise.reject()}const l=t;const u=l.slice(0,5).toLowerCase()==="file:";if(u){try{t=_url.default.fileURLToPath(l)}catch(e){t=t.slice(7)}}let p=[];const f=!IS_SPECIAL_MODULE_IMPORT.test(t)&&!u&&!l.startsWith("/")&&!IS_NATIVE_WIN32_PATH.test(l);if(s.length>0&&f){const a=getPossibleRequests(t,false,c);if(!r){p=p.concat({resolve:c?o:n,context:_path.default.dirname(e),possibleRequests:a})}p=p.concat(s.map((e=>({resolve:c?o:n,context:e,possibleRequests:a}))))}const d=getPossibleRequests(t,true,c);p=p.concat({resolve:c?i:a,context:_path.default.dirname(e),possibleRequests:d});return startResolving(p)}}const MATCH_CSS=/\.css$/i;function getWebpackImporter(e,t,s){const r=getWebpackResolver(e.getResolve,t,s);return function importer(t,s,n){const{fromImport:o}=this;r(s,t,o).then((t=>{e.addDependency(_path.default.normalize(t));n({file:t.replace(MATCH_CSS,"")})})).catch((()=>{n({file:t})}))}}let nodeSassJobQueue=null;function getRenderFunctionFromSassImplementation(e){const t=e.info.includes("dart-sass");if(t){return e.render.bind(e)}if(nodeSassJobQueue===null){const t=Number(process.env.UV_THREADPOOL_SIZE||4);nodeSassJobQueue=_neoAsync.default.queue(e.render.bind(e),t-1)}return nodeSassJobQueue.push.bind(nodeSassJobQueue)}const ABSOLUTE_SCHEME=/^[A-Za-z0-9+\-.]+:/;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(IS_NATIVE_WIN32_PATH.test(e)){return"path-absolute"}return ABSOLUTE_SCHEME.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){const s=e;delete s.file;s.sourceRoot="";s.sources=s.sources.map((e=>{const s=getURLType(e);if(s==="path-relative"){return _path.default.resolve(t,_path.default.normalize(e))}return e}));return s}},175:function(e){"use strict";e.exports=require("next/dist/compiled/neo-async")},17:function(e){"use strict";e.exports=require("path")},310:function(e){"use strict";e.exports=require("url")},615:function(e){"use strict";e.exports=JSON.parse('{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var s=__webpack_module_cache__[e]={exports:{}};var r=true;try{__webpack_modules__[e](s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(172);module.exports=__webpack_exports__})(); \ No newline at end of file +(function(){var __webpack_modules__={814:function(e,t){function set(e,t,s){if(typeof s.value==="object")s.value=klona(s.value);if(!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"){Object.defineProperty(e,t,s)}else e[t]=s.value}function klona(e){if(typeof e!=="object")return e;var t=0,s,r,n,o=Object.prototype.toString.call(e);if(o==="[object Object]"){n=Object.create(e.__proto__||null)}else if(o==="[object Array]"){n=Array(e.length)}else if(o==="[object Set]"){n=new Set;e.forEach((function(e){n.add(klona(e))}))}else if(o==="[object Map]"){n=new Map;e.forEach((function(e,t){n.set(klona(t),klona(e))}))}else if(o==="[object Date]"){n=new Date(+e)}else if(o==="[object RegExp]"){n=new RegExp(e.source,e.flags)}else if(o==="[object DataView]"){n=new e.constructor(klona(e.buffer))}else if(o==="[object ArrayBuffer]"){n=e.slice(0)}else if(o.slice(-6)==="Array]"){n=new e.constructor(e)}if(n){for(r=Object.getOwnPropertySymbols(e);t{if(e){if(e.file){this.addDependency(r.default.normalize(e.file))}s(new a.default(e));return}let n=t.map?JSON.parse(t.map):null;if(n&&c){n=(0,o.normalizeSourceMap)(n,this.rootContext)}t.stats.includedFiles.forEach((e=>{const t=r.default.normalize(e);if(r.default.isAbsolute(t)){this.addDependency(t)}}));s(null,t.css.toString(),n)}))}var i=loader;t["default"]=i},429:function(__unused_webpack_module,exports,__nccwpck_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getRenderFunctionFromSassImplementation=getRenderFunctionFromSassImplementation;exports.getSassImplementation=getSassImplementation;exports.getSassOptions=getSassOptions;exports.getWebpackImporter=getWebpackImporter;exports.getWebpackResolver=getWebpackResolver;exports.isSupportedFibers=isSupportedFibers;exports.normalizeSourceMap=normalizeSourceMap;var _url=_interopRequireDefault(__nccwpck_require__(310));var _path=_interopRequireDefault(__nccwpck_require__(17));var _full=__nccwpck_require__(814);var _neoAsync=_interopRequireDefault(__nccwpck_require__(175));var _SassWarning=_interopRequireDefault(__nccwpck_require__(200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getDefaultSassImplementation(){let sassImplPkg="sass";try{require.resolve("sass")}catch(error){try{eval("require.resolve('node-sass')");sassImplPkg="node-sass"}catch(e){sassImplPkg="sass"}}return require(sassImplPkg)}function getSassImplementation(e,t){let s=t;if(!s){try{s=getDefaultSassImplementation()}catch(t){e.emitError(t);return}}if(typeof s==="string"){try{s=require(s)}catch(t){e.emitError(t);return}}const{info:r}=s;if(!r){e.emitError(new Error("Unknown Sass implementation."));return}const n=r.split("\t");if(n.length<2){e.emitError(new Error(`Unknown Sass implementation "${r}".`));return}const[o]=n;if(o==="dart-sass"){return s}else if(o==="node-sass"){return s}e.emitError(new Error(`Unknown Sass implementation "${o}".`))}function isProductionLikeMode(e){return e.mode==="production"||!e.mode}function proxyCustomImporters(e,t){return[].concat(e).map((e=>function proxyImporter(...s){const r={...this,webpackLoaderContext:t};return e.apply(r,s)}))}function isSupportedFibers(){const[e]=process.versions.node.split(".");return Number(e)<16}async function getSassOptions(e,t,s,r,n){const o=(0,_full.klona)(t.sassOptions?typeof t.sassOptions==="function"?t.sassOptions(e)||{}:t.sassOptions:{});const a=r.info.includes("dart-sass");if(a&&isSupportedFibers()){const e=!o.fiber&&o.fiber!==false;if(e){let e;try{e=require.resolve("fibers")}catch(e){}if(e){o.fiber=require(e)}}else if(o.fiber===false){delete o.fiber}}else{delete o.fiber}o.file=e.resourcePath;o.data=t.additionalData?typeof t.additionalData==="function"?await t.additionalData(s,e):`${t.additionalData}\n${s}`:s;if(!o.outputStyle&&isProductionLikeMode(e)){o.outputStyle="compressed"}if(n){o.sourceMap=true;o.outFile=_path.default.join(e.rootContext,"style.css.map");o.sourceMapContents=true;o.omitSourceMapUrl=true;o.sourceMapEmbed=false}const{resourcePath:i}=e;const c=_path.default.extname(i);if(c&&c.toLowerCase()===".sass"&&typeof o.indentedSyntax==="undefined"){o.indentedSyntax=true}else{o.indentedSyntax=Boolean(o.indentedSyntax)}o.importer=o.importer?proxyCustomImporters(Array.isArray(o.importer)?o.importer:[o.importer],e):[];o.includePaths=[].concat(process.cwd()).concat((o.includePaths||[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);if(typeof o.charset==="undefined"){o.charset=true}if(!o.logger){const s=t.warnRuleAsWarning===true;const r=e.getLogger("sass-loader");const formatSpan=e=>`${e.url||"-"}:${e.start.line}:${e.start.column}: `;o.logger={debug(e,t){let s="";if(t.span){s=formatSpan(t.span)}s+=e;r.debug(s)},warn(t,n){let o="";if(n.deprecation){o+="Deprecation "}if(n.span&&!n.stack){o=formatSpan(n.span)}o+=t;if(n.stack){o+=`\n\n${n.stack}`}if(s){e.emitWarning(new _SassWarning.default(o,n))}else{r.warn(o)}}}}return o}const MODULE_REQUEST_REGEX=/^[^?]*~/;const IS_MODULE_IMPORT=/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;function getPossibleRequests(e,t=false,s=false){let r=e;if(t){if(MODULE_REQUEST_REGEX.test(e)){r=r.replace(MODULE_REQUEST_REGEX,"")}if(IS_MODULE_IMPORT.test(e)){r=r[r.length-1]==="/"?r:`${r}/`;return[...new Set([r,e])]}}const n=_path.default.extname(r).toLowerCase();if(n===".css"){return[]}const o=_path.default.dirname(r);const a=o==="."?"":`${o}/`;const i=_path.default.basename(r);const c=_path.default.basename(r,n);return[...new Set([].concat(s?[`${a}_${c}.import${n}`,`${a}${c}.import${n}`]:[]).concat([`${a}_${i}`,`${a}${i}`]).concat(t?[e]:[]))]}function promiseResolve(e){return(t,s)=>new Promise(((r,n)=>{e(t,s,((e,t)=>{if(e){n(e)}else{r(t)}}))}))}const IS_SPECIAL_MODULE_IMPORT=/^~[^/]+$/;const IS_NATIVE_WIN32_PATH=/^[a-z]:[/\\]|^\\\\/i;function getWebpackResolver(e,t,s=[]){async function startResolving(e){if(e.length===0){return Promise.reject()}const[{possibleRequests:t}]=e;if(t.length===0){return Promise.reject()}const[{resolve:s,context:r}]=e;try{return await s(r,t[0])}catch(s){const[,...r]=t;if(r.length===0){const[,...t]=e;return startResolving(t)}e[0].possibleRequests=r;return startResolving(e)}}const r=t.info.includes("dart-sass");const n=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const o=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index.import","_index","index.import","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const a=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style"],mainFields:["sass","style","main","..."],mainFiles:["_index","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const i=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style"],mainFields:["sass","style","main","..."],mainFiles:["_index.import","_index","index.import","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));return(e,t,c)=>{if(!r&&!_path.default.isAbsolute(e)){return Promise.reject()}const l=t;const u=l.slice(0,5).toLowerCase()==="file:";if(u){try{t=_url.default.fileURLToPath(l)}catch(e){t=t.slice(7)}}let p=[];const f=!IS_SPECIAL_MODULE_IMPORT.test(t)&&!u&&!l.startsWith("/")&&!IS_NATIVE_WIN32_PATH.test(l);if(s.length>0&&f){const a=getPossibleRequests(t,false,c);if(!r){p=p.concat({resolve:c?o:n,context:_path.default.dirname(e),possibleRequests:a})}p=p.concat(s.map((e=>({resolve:c?o:n,context:e,possibleRequests:a}))))}const d=getPossibleRequests(t,true,c);p=p.concat({resolve:c?i:a,context:_path.default.dirname(e),possibleRequests:d});return startResolving(p)}}const MATCH_CSS=/\.css$/i;function getWebpackImporter(e,t,s){const r=getWebpackResolver(e.getResolve,t,s);return function importer(t,s,n){const{fromImport:o}=this;r(s,t,o).then((t=>{e.addDependency(_path.default.normalize(t));n({file:t.replace(MATCH_CSS,"")})})).catch((()=>{n({file:t})}))}}let nodeSassJobQueue=null;function getRenderFunctionFromSassImplementation(e){const t=e.info.includes("dart-sass");if(t){return e.render.bind(e)}if(nodeSassJobQueue===null){const t=Number(process.env.UV_THREADPOOL_SIZE||4);nodeSassJobQueue=_neoAsync.default.queue(e.render.bind(e),t-1)}return nodeSassJobQueue.push.bind(nodeSassJobQueue)}const ABSOLUTE_SCHEME=/^[A-Za-z0-9+\-.]+:/;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(IS_NATIVE_WIN32_PATH.test(e)){return"path-absolute"}return ABSOLUTE_SCHEME.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){const s=e;delete s.file;s.sourceRoot="";s.sources=s.sources.map((e=>{const s=getURLType(e);if(s==="path-relative"){return _path.default.resolve(t,_path.default.normalize(e))}return e}));return s}},175:function(e){"use strict";e.exports=require("next/dist/compiled/neo-async")},17:function(e){"use strict";e.exports=require("path")},310:function(e){"use strict";e.exports=require("url")},725:function(e){"use strict";e.exports=JSON.parse('{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var s=__webpack_module_cache__[e]={exports:{}};var r=true;try{__webpack_modules__[e](s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(657);module.exports=__webpack_exports__})(); \ No newline at end of file