/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
build
/
/opt/canhelp/node_modules/next/dist/build
mkdir
upload
Name
Size
Mode
Actions
adapter/
-
0755
rm
analysis/
-
0755
rm
babel/
-
0755
rm
jest/
-
0755
rm
manifests/
-
0755
rm
next-config-ts/
-
0755
rm
output/
-
0755
rm
polyfills/
-
0755
rm
segment-config/
-
0755
rm
static-paths/
-
0755
rm
swc/
-
0755
rm
templates/
-
0755
rm
turbopack-build/
-
0755
rm
turborepo-access-trace/
-
0755
rm
webpack/
-
0755
rm
webpack-build/
-
0755
rm
webpack-config-rules/
-
0755
rm
after-production-compile.d.ts
431
0644
edit
dl
rm
after-production-compile.js
3339
0644
edit
dl
rm
after-production-compile.js.map
3129
0644
edit
dl
rm
build-context.d.ts
2057
0644
edit
dl
rm
build-context.js
1603
0644
edit
dl
rm
build-context.js.map
4042
0644
edit
dl
rm
collect-build-traces.d.ts
757
0644
edit
dl
rm
collect-build-traces.js
24276
0644
edit
dl
rm
collect-build-traces.js.map
35540
0644
edit
dl
rm
compiler.d.ts
543
0644
edit
dl
rm
compiler.js
3262
0644
edit
dl
rm
compiler.js.map
4802
0644
edit
dl
rm
create-compiler-aliases.d.ts
1307
0644
edit
dl
rm
create-compiler-aliases.js
27086
0644
edit
dl
rm
create-compiler-aliases.js.map
39959
0644
edit
dl
rm
define-env.d.ts
1259
0644
edit
dl
rm
define-env.js
14749
0644
edit
dl
rm
define-env.js.map
23142
0644
edit
dl
rm
deployment-id.d.ts
69
0644
edit
dl
rm
deployment-id.js
466
0644
edit
dl
rm
deployment-id.js.map
523
0644
edit
dl
rm
duration-to-string.d.ts
76
0644
edit
dl
rm
duration-to-string.js
758
0644
edit
dl
rm
duration-to-string.js.map
1101
0644
edit
dl
rm
entries.d.ts
8202
0644
edit
dl
rm
entries.js
37886
0644
edit
dl
rm
entries.js.map
62037
0644
edit
dl
rm
generate-build-id.d.ts
138
0644
edit
dl
rm
generate-build-id.js
1006
0644
edit
dl
rm
generate-build-id.js.map
1215
0644
edit
dl
rm
get-babel-config-file.d.ts
77
0644
edit
dl
rm
get-babel-config-file.js
856
0644
edit
dl
rm
get-babel-config-file.js.map
1098
0644
edit
dl
rm
get-babel-loader-config.d.ts
1713
0644
edit
dl
rm
get-babel-loader-config.js
3557
0644
edit
dl
rm
get-babel-loader-config.js.map
4896
0644
edit
dl
rm
handle-entrypoints.d.ts
470
0644
edit
dl
rm
handle-entrypoints.js
6560
0644
edit
dl
rm
handle-entrypoints.js.map
7174
0644
edit
dl
rm
handle-externals.d.ts
1415
0644
edit
dl
rm
handle-externals.js
14426
0644
edit
dl
rm
handle-externals.js.map
21604
0644
edit
dl
rm
index.d.ts
9324
0644
edit
dl
rm
index.js
153827
0644
edit
dl
rm
index.js.map
226310
0644
edit
dl
rm
is-writeable.d.ts
74
0644
edit
dl
rm
is-writeable.js
653
0644
edit
dl
rm
is-writeable.js.map
656
0644
edit
dl
rm
load-entrypoint.d.ts
1009
0644
edit
dl
rm
load-entrypoint.js
1520
0644
edit
dl
rm
load-entrypoint.js.map
3107
0644
edit
dl
rm
load-jsconfig.d.ts
514
0644
edit
dl
rm
load-jsconfig.js
5693
0644
edit
dl
rm
load-jsconfig.js.map
6535
0644
edit
dl
rm
next-dir-paths.d.ts
161
0644
edit
dl
rm
next-dir-paths.js
1120
0644
edit
dl
rm
next-dir-paths.js.map
735
0644
edit
dl
rm
normalize-catchall-routes.d.ts
609
0644
edit
dl
rm
normalize-catchall-routes.js
4082
0644
edit
dl
rm
normalize-catchall-routes.js.map
6612
0644
edit
dl
rm
page-extensions-type.d.ts
39
0644
edit
dl
rm
page-extensions-type.js
130
0644
edit
dl
rm
page-extensions-type.js.map
67
0644
edit
dl
rm
preview-key-utils.d.ts
206
0644
edit
dl
rm
preview-key-utils.js
3711
0644
edit
dl
rm
preview-key-utils.js.map
5920
0644
edit
dl
rm
progress.d.ts
120
0644
edit
dl
rm
progress.js
4746
0644
edit
dl
rm
progress.js.map
4625
0644
edit
dl
rm
rendering-mode.d.ts
506
0644
edit
dl
rm
rendering-mode.js
826
0644
edit
dl
rm
rendering-mode.js.map
721
0644
edit
dl
rm
spinner.d.ts
218
0644
edit
dl
rm
spinner.js
4663
0644
edit
dl
rm
spinner.js.map
4978
0644
edit
dl
rm
type-check.d.ts
570
0644
edit
dl
rm
type-check.js
7226
0644
edit
dl
rm
type-check.js.map
9227
0644
edit
dl
rm
utils.d.ts
8746
0644
edit
dl
rm
utils.js
60400
0644
edit
dl
rm
utils.js.map
95923
0644
edit
dl
rm
webpack-config.d.ts
4789
0644
edit
dl
rm
webpack-config.js
113704
0644
edit
dl
rm
webpack-config.js.map
158253
0644
edit
dl
rm
worker.d.ts
172
0644
edit
dl
rm
worker.js
890
0644
edit
dl
rm
worker.js.map
523
0644
edit
dl
rm
write-build-id.d.ts
87
0644
edit
dl
rm
write-build-id.js
559
0644
edit
dl
rm
write-build-id.js.map
718
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/build/normalize-catchall-routes.js.map
(6612B)
{"version":3,"sources":["../../src/build/normalize-catchall-routes.ts"],"sourcesContent":["import { isInterceptionRouteAppPath } from '../shared/lib/router/utils/interception-routes'\nimport { AppPathnameNormalizer } from '../server/normalizers/built/app/app-pathname-normalizer'\n\n/**\n * This function will transform the appPaths in order to support catch-all routes and parallel routes.\n * It will traverse the appPaths, looking for catch-all routes and try to find parallel routes that could match\n * the catch-all. If it finds a match, it will add the catch-all to the parallel route's list of possible routes.\n *\n * @param appPaths The appPaths to transform\n */\nexport function normalizeCatchAllRoutes(\n appPaths: Record<string, string[]>,\n normalizer = new AppPathnameNormalizer()\n) {\n const catchAllRoutes = [\n ...new Set(\n Object.values(appPaths)\n .flat()\n .filter(isCatchAllRoute)\n // Sorting is important because we want to match the most specific path.\n .sort((a, b) => b.split('/').length - a.split('/').length)\n ),\n ]\n\n // interception routes should only be matched by a single entrypoint\n // we don't want to push a catch-all route to an interception route\n // because it would mean the interception would be handled by the wrong page component\n const filteredAppPaths = Object.keys(appPaths).filter(\n (route) => !isInterceptionRouteAppPath(route)\n )\n\n for (const appPath of filteredAppPaths) {\n for (const catchAllRoute of catchAllRoutes) {\n const normalizedCatchAllRoute = normalizer.normalize(catchAllRoute)\n const normalizedCatchAllRouteBasePath = normalizedCatchAllRoute.slice(\n 0,\n normalizedCatchAllRoute.search(catchAllRouteRegex)\n )\n\n if (\n // check if the appPath could match the catch-all\n appPath.startsWith(normalizedCatchAllRouteBasePath) &&\n // check if there's not already a slot value that could match the catch-all\n !appPaths[appPath].some((path) => hasMatchedSlots(path, catchAllRoute))\n ) {\n // optional catch-all routes are not currently supported, but leaving this logic in place\n // for when they are eventually supported.\n if (isOptionalCatchAll(catchAllRoute)) {\n // optional catch-all routes should match both the root segment and any segment after it\n // for example, `/[[...slug]]` should match `/` and `/foo` and `/foo/bar`\n appPaths[appPath].push(catchAllRoute)\n } else if (isCatchAll(catchAllRoute)) {\n // regular catch-all (single bracket) should only match segments after it\n // for example, `/[...slug]` should match `/foo` and `/foo/bar` but not `/`\n if (normalizedCatchAllRouteBasePath !== appPath) {\n appPaths[appPath].push(catchAllRoute)\n }\n }\n }\n }\n }\n}\n\nfunction hasMatchedSlots(path1: string, path2: string): boolean {\n const slots1 = path1.split('/').filter(isMatchableSlot)\n const slots2 = path2.split('/').filter(isMatchableSlot)\n\n // if the catch-all route does not have the same number of slots as the app path, it can't match\n if (slots1.length !== slots2.length) return false\n\n // compare the slots in both paths. For there to be a match, each slot must be the same\n for (let i = 0; i < slots1.length; i++) {\n if (slots1[i] !== slots2[i]) return false\n }\n\n return true\n}\n\n/**\n * Returns true for slots that should be considered when checking for match compatibility.\n * Excludes children slots because these are similar to having a segment-level `page`\n * which would cause a slot length mismatch when comparing it to a catch-all route.\n */\nfunction isMatchableSlot(segment: string): boolean {\n return segment.startsWith('@') && segment !== '@children'\n}\n\nconst catchAllRouteRegex = /\\[?\\[\\.\\.\\./\n\nfunction isCatchAllRoute(pathname: string): boolean {\n // Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatability.\n return !isOptionalCatchAll(pathname) && isCatchAll(pathname)\n}\n\nfunction isOptionalCatchAll(pathname: string): boolean {\n return pathname.includes('[[...')\n}\n\nfunction isCatchAll(pathname: string): boolean {\n return pathname.includes('[...')\n}\n"],"names":["normalizeCatchAllRoutes","appPaths","normalizer","AppPathnameNormalizer","catchAllRoutes","Set","Object","values","flat","filter","isCatchAllRoute","sort","a","b","split","length","filteredAppPaths","keys","route","isInterceptionRouteAppPath","appPath","catchAllRoute","normalizedCatchAllRoute","normalize","normalizedCatchAllRouteBasePath","slice","search","catchAllRouteRegex","startsWith","some","path","hasMatchedSlots","isOptionalCatchAll","push","isCatchAll","path1","path2","slots1","isMatchableSlot","slots2","i","segment","pathname","includes"],"mappings":";;;;+BAUgBA;;;eAAAA;;;oCAV2B;uCACL;AAS/B,SAASA,wBACdC,QAAkC,EAClCC,aAAa,IAAIC,4CAAqB,EAAE;IAExC,MAAMC,iBAAiB;WAClB,IAAIC,IACLC,OAAOC,MAAM,CAACN,UACXO,IAAI,GACJC,MAAM,CAACC,gBACR,wEAAwE;SACvEC,IAAI,CAAC,CAACC,GAAGC,IAAMA,EAAEC,KAAK,CAAC,KAAKC,MAAM,GAAGH,EAAEE,KAAK,CAAC,KAAKC,MAAM;KAE9D;IAED,oEAAoE;IACpE,mEAAmE;IACnE,sFAAsF;IACtF,MAAMC,mBAAmBV,OAAOW,IAAI,CAAChB,UAAUQ,MAAM,CACnD,CAACS,QAAU,CAACC,IAAAA,8CAA0B,EAACD;IAGzC,KAAK,MAAME,WAAWJ,iBAAkB;QACtC,KAAK,MAAMK,iBAAiBjB,eAAgB;YAC1C,MAAMkB,0BAA0BpB,WAAWqB,SAAS,CAACF;YACrD,MAAMG,kCAAkCF,wBAAwBG,KAAK,CACnE,GACAH,wBAAwBI,MAAM,CAACC;YAGjC,IACE,iDAAiD;YACjDP,QAAQQ,UAAU,CAACJ,oCACnB,2EAA2E;YAC3E,CAACvB,QAAQ,CA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