@trpc/server 11.3.1 → 11.3.2-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/aws-lambda/package.json +1 -0
- package/adapters/express/package.json +1 -0
- package/adapters/fastify/package.json +1 -0
- package/adapters/fetch/package.json +1 -0
- package/adapters/next/package.json +1 -0
- package/adapters/next-app-dir/package.json +1 -0
- package/adapters/node-http/package.json +1 -0
- package/adapters/standalone/package.json +1 -0
- package/adapters/ws/package.json +1 -0
- package/dist/adapters/aws-lambda/index.cjs +255 -0
- package/dist/adapters/aws-lambda/index.d.cts +31 -0
- package/dist/adapters/aws-lambda/index.d.cts.map +1 -0
- package/dist/adapters/aws-lambda/index.d.mts +31 -0
- package/dist/adapters/aws-lambda/index.d.mts.map +1 -0
- package/dist/adapters/aws-lambda/index.mjs +248 -57
- package/dist/adapters/aws-lambda/index.mjs.map +1 -0
- package/dist/adapters/express.cjs +34 -0
- package/dist/adapters/express.d.cts +15 -0
- package/dist/adapters/express.d.cts.map +1 -0
- package/dist/adapters/express.d.mts +15 -0
- package/dist/adapters/express.d.mts.map +1 -0
- package/dist/adapters/express.mjs +30 -32
- package/dist/adapters/express.mjs.map +1 -0
- package/dist/adapters/fastify/index.cjs +75 -0
- package/dist/adapters/fastify/index.d.cts +29 -0
- package/dist/adapters/fastify/index.d.cts.map +1 -0
- package/dist/adapters/fastify/index.d.mts +29 -0
- package/dist/adapters/fastify/index.d.mts.map +1 -0
- package/dist/adapters/fastify/index.mjs +75 -2
- package/dist/adapters/fastify/index.mjs.map +1 -0
- package/dist/adapters/fetch/index.cjs +58 -0
- package/dist/adapters/fetch/index.d.cts +30 -0
- package/dist/adapters/fetch/index.d.cts.map +1 -0
- package/dist/adapters/fetch/index.d.mts +30 -0
- package/dist/adapters/fetch/index.d.mts.map +1 -0
- package/dist/adapters/fetch/index.mjs +59 -1
- package/dist/adapters/fetch/index.mjs.map +1 -0
- package/dist/adapters/next-app-dir.cjs +3050 -0
- package/dist/adapters/next-app-dir.d.cts +58 -0
- package/dist/adapters/next-app-dir.d.cts.map +1 -0
- package/dist/adapters/next-app-dir.d.mts +58 -0
- package/dist/adapters/next-app-dir.d.mts.map +1 -0
- package/dist/adapters/next-app-dir.mjs +3048 -4
- package/dist/adapters/next-app-dir.mjs.map +1 -0
- package/dist/adapters/next.cjs +41 -0
- package/dist/adapters/next.d.cts +19 -0
- package/dist/adapters/next.d.cts.map +1 -0
- package/dist/adapters/next.d.mts +19 -0
- package/dist/adapters/next.d.mts.map +1 -0
- package/dist/adapters/next.mjs +37 -44
- package/dist/adapters/next.mjs.map +1 -0
- package/dist/adapters/node-http/index.cjs +15 -0
- package/dist/adapters/node-http/index.d.cts +5 -0
- package/dist/adapters/node-http/index.d.mts +5 -0
- package/dist/adapters/node-http/index.mjs +12 -2
- package/dist/adapters/standalone.cjs +52 -0
- package/dist/adapters/standalone.d.cts +33 -0
- package/dist/adapters/standalone.d.cts.map +1 -0
- package/dist/adapters/standalone.d.mts +33 -0
- package/dist/adapters/standalone.d.mts.map +1 -0
- package/dist/adapters/standalone.mjs +40 -34
- package/dist/adapters/standalone.mjs.map +1 -0
- package/dist/adapters/ws.cjs +17 -0
- package/dist/adapters/ws.d.cts +61 -0
- package/dist/adapters/ws.d.cts.map +1 -0
- package/dist/adapters/ws.d.mts +61 -0
- package/dist/adapters/ws.d.mts.map +1 -0
- package/dist/adapters/ws.mjs +14 -539
- package/dist/contentTypeParsers-SN4WL9ze.mjs +13 -0
- package/dist/contentTypeParsers-SN4WL9ze.mjs.map +1 -0
- package/dist/contentTypeParsers-iAFF_pJG.cjs +18 -0
- package/dist/getErrorShape-CsikfkAc.cjs +201 -0
- package/dist/getErrorShape-DyYil4aT.mjs +149 -0
- package/dist/getErrorShape-DyYil4aT.mjs.map +1 -0
- package/dist/http-CWyjOa1l.mjs +0 -0
- package/dist/http-DXy3XyhL.cjs +0 -0
- package/dist/http.cjs +14 -0
- package/dist/http.d.cts +3 -0
- package/dist/http.d.mts +3 -0
- package/dist/http.mjs +9 -8
- package/dist/index.cjs +22 -0
- package/dist/index.d-BiUz7kM_.d.cts +65 -0
- package/dist/index.d-BiUz7kM_.d.cts.map +1 -0
- package/dist/index.d-ChWYhXbd.d.cts +99 -0
- package/dist/index.d-ChWYhXbd.d.cts.map +1 -0
- package/dist/index.d-CvZXeEyR.d.cts +11 -0
- package/dist/index.d-CvZXeEyR.d.cts.map +1 -0
- package/dist/index.d-D4qZxQJh.d.mts +65 -0
- package/dist/index.d-D4qZxQJh.d.mts.map +1 -0
- package/dist/index.d-Ocy_AnXj.d.mts +99 -0
- package/dist/index.d-Ocy_AnXj.d.mts.map +1 -0
- package/dist/index.d-vq_QHko2.d.mts +11 -0
- package/dist/index.d-vq_QHko2.d.mts.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +6 -13
- package/dist/initTRPC-COaJMShh.mjs +339 -0
- package/dist/initTRPC-COaJMShh.mjs.map +1 -0
- package/dist/initTRPC-DjEpHmY2.cjs +397 -0
- package/dist/node-http-BPR68yI4.cjs +243 -0
- package/dist/node-http-BUQnHuGI.mjs +221 -0
- package/dist/node-http-BUQnHuGI.mjs.map +1 -0
- package/dist/observable/index.cjs +13 -0
- package/dist/observable/index.d.cts +2 -0
- package/dist/observable/index.d.mts +2 -0
- package/dist/observable/index.mjs +4 -3
- package/dist/observable-B1orLHHI.mjs +155 -0
- package/dist/observable-B1orLHHI.mjs.map +1 -0
- package/dist/observable-BwdrSFZU.cjs +178 -0
- package/dist/observable-C6qq2Ydk.cjs +180 -0
- package/dist/observable-CFXA_tyK.mjs +146 -0
- package/dist/observable-CFXA_tyK.mjs.map +1 -0
- package/dist/parseTRPCMessage-ByQWigsq.cjs +73 -0
- package/dist/parseTRPCMessage-CNyYMSRB.mjs +63 -0
- package/dist/parseTRPCMessage-CNyYMSRB.mjs.map +1 -0
- package/dist/resolveResponse-B2CuaT_1.cjs +2042 -0
- package/dist/resolveResponse-DPbYgJDD.mjs +1912 -0
- package/dist/resolveResponse-DPbYgJDD.mjs.map +1 -0
- package/dist/rpc.cjs +6 -0
- package/dist/rpc.d.cts +3 -0
- package/dist/rpc.d.mts +3 -0
- package/dist/rpc.mjs +4 -5
- package/dist/shared.cjs +5 -0
- package/dist/shared.d.cts +4 -0
- package/dist/shared.d.mts +4 -0
- package/dist/shared.mjs +4 -6
- package/dist/tracked-Dl9sBZxY.cjs +483 -0
- package/dist/tracked-GEWPoL0C.mjs +383 -0
- package/dist/tracked-GEWPoL0C.mjs.map +1 -0
- package/dist/unstable-core-do-not-import-D89CaGtL.mjs +29 -0
- package/dist/unstable-core-do-not-import-D89CaGtL.mjs.map +1 -0
- package/dist/unstable-core-do-not-import-DFQys1IC.cjs +34 -0
- package/dist/unstable-core-do-not-import.cjs +83 -0
- package/dist/unstable-core-do-not-import.d-CSxj_rbP.d.cts +1974 -0
- package/dist/unstable-core-do-not-import.d-CSxj_rbP.d.cts.map +1 -0
- package/dist/unstable-core-do-not-import.d-ptrxwuSa.d.mts +1974 -0
- package/dist/unstable-core-do-not-import.d-ptrxwuSa.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import.d.cts +3 -0
- package/dist/unstable-core-do-not-import.d.mts +3 -0
- package/dist/unstable-core-do-not-import.mjs +11 -30
- package/dist/utils-BHZJcBRv.mjs +137 -0
- package/dist/utils-BHZJcBRv.mjs.map +1 -0
- package/dist/utils-DVO6HZiR.cjs +220 -0
- package/dist/ws-C2nEUNk_.cjs +425 -0
- package/dist/ws-eIVIMTrw.mjs +409 -0
- package/dist/ws-eIVIMTrw.mjs.map +1 -0
- package/http/package.json +1 -0
- package/observable/package.json +1 -0
- package/package.json +131 -55
- package/rpc/package.json +1 -0
- package/shared/package.json +1 -0
- package/src/@trpc/server/index.ts +24 -0
- package/src/unstable-core-do-not-import/http/contentType.ts +5 -4
- package/src/unstable-core-do-not-import/initTRPC.ts +79 -4
- package/src/unstable-core-do-not-import/router.ts +36 -12
- package/src/unstable-core-do-not-import/utils.ts +3 -2
- package/unstable-core-do-not-import/package.json +1 -0
- package/adapters/aws-lambda/index.d.ts +0 -1
- package/adapters/aws-lambda/index.js +0 -1
- package/adapters/express/index.d.ts +0 -1
- package/adapters/express/index.js +0 -1
- package/adapters/fastify/index.d.ts +0 -1
- package/adapters/fastify/index.js +0 -1
- package/adapters/fetch/index.d.ts +0 -1
- package/adapters/fetch/index.js +0 -1
- package/adapters/next/index.d.ts +0 -1
- package/adapters/next/index.js +0 -1
- package/adapters/next-app-dir/index.d.ts +0 -1
- package/adapters/next-app-dir/index.js +0 -1
- package/adapters/node-http/content-type/form-data/index.d.ts +0 -1
- package/adapters/node-http/content-type/form-data/index.js +0 -1
- package/adapters/node-http/content-type/json/index.d.ts +0 -1
- package/adapters/node-http/content-type/json/index.js +0 -1
- package/adapters/node-http/index.d.ts +0 -1
- package/adapters/node-http/index.js +0 -1
- package/adapters/standalone/index.d.ts +0 -1
- package/adapters/standalone/index.js +0 -1
- package/adapters/ws/index.d.ts +0 -1
- package/adapters/ws/index.js +0 -1
- package/dist/@trpc/server/http.d.ts +0 -8
- package/dist/@trpc/server/http.d.ts.map +0 -1
- package/dist/@trpc/server/index.d.ts +0 -65
- package/dist/@trpc/server/index.d.ts.map +0 -1
- package/dist/@trpc/server/rpc.d.ts +0 -3
- package/dist/@trpc/server/rpc.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/getPlanner.d.ts +0 -15
- package/dist/adapters/aws-lambda/getPlanner.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/getPlanner.js +0 -179
- package/dist/adapters/aws-lambda/getPlanner.mjs +0 -177
- package/dist/adapters/aws-lambda/index.d.ts +0 -23
- package/dist/adapters/aws-lambda/index.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/index.js +0 -67
- package/dist/adapters/express.d.ts +0 -15
- package/dist/adapters/express.d.ts.map +0 -1
- package/dist/adapters/express.js +0 -39
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +0 -22
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +0 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +0 -49
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +0 -47
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +0 -21
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +0 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.js +0 -56
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +0 -54
- package/dist/adapters/fastify/index.d.ts +0 -3
- package/dist/adapters/fastify/index.d.ts.map +0 -1
- package/dist/adapters/fastify/index.js +0 -9
- package/dist/adapters/fetch/fetchRequestHandler.d.ts +0 -13
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +0 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +0 -77
- package/dist/adapters/fetch/fetchRequestHandler.mjs +0 -75
- package/dist/adapters/fetch/index.d.ts +0 -3
- package/dist/adapters/fetch/index.d.ts.map +0 -1
- package/dist/adapters/fetch/index.js +0 -7
- package/dist/adapters/fetch/types.d.ts +0 -27
- package/dist/adapters/fetch/types.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +0 -25
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.js +0 -94
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +0 -92
- package/dist/adapters/next-app-dir/notFound.d.ts +0 -7
- package/dist/adapters/next-app-dir/notFound.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/notFound.js +0 -18
- package/dist/adapters/next-app-dir/notFound.mjs +0 -16
- package/dist/adapters/next-app-dir/redirect.d.ts +0 -18
- package/dist/adapters/next-app-dir/redirect.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/redirect.js +0 -49
- package/dist/adapters/next-app-dir/redirect.mjs +0 -46
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +0 -6
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/rethrowNextErrors.js +0 -70
- package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +0 -49
- package/dist/adapters/next-app-dir.d.ts +0 -7
- package/dist/adapters/next-app-dir.d.ts.map +0 -1
- package/dist/adapters/next-app-dir.js +0 -13
- package/dist/adapters/next.d.ts +0 -19
- package/dist/adapters/next.d.ts.map +0 -1
- package/dist/adapters/next.js +0 -51
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts +0 -12
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +0 -1
- package/dist/adapters/node-http/incomingMessageToRequest.js +0 -123
- package/dist/adapters/node-http/incomingMessageToRequest.mjs +0 -120
- package/dist/adapters/node-http/index.d.ts +0 -4
- package/dist/adapters/node-http/index.d.ts.map +0 -1
- package/dist/adapters/node-http/index.js +0 -11
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +0 -20
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +0 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +0 -96
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +0 -93
- package/dist/adapters/node-http/types.d.ts +0 -81
- package/dist/adapters/node-http/types.d.ts.map +0 -1
- package/dist/adapters/node-http/writeResponse.d.ts +0 -18
- package/dist/adapters/node-http/writeResponse.d.ts.map +0 -1
- package/dist/adapters/node-http/writeResponse.js +0 -83
- package/dist/adapters/node-http/writeResponse.mjs +0 -80
- package/dist/adapters/standalone.d.ts +0 -36
- package/dist/adapters/standalone.d.ts.map +0 -1
- package/dist/adapters/standalone.js +0 -49
- package/dist/adapters/ws.d.ts +0 -54
- package/dist/adapters/ws.d.ts.map +0 -1
- package/dist/adapters/ws.js +0 -544
- package/dist/http.d.ts +0 -2
- package/dist/http.d.ts.map +0 -1
- package/dist/http.js +0 -19
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.8.2/node_modules/tslib/tslib.es6.js +0 -73
- package/dist/observable/behaviorSubject.d.ts +0 -15
- package/dist/observable/behaviorSubject.d.ts.map +0 -1
- package/dist/observable/behaviorSubject.js +0 -40
- package/dist/observable/behaviorSubject.mjs +0 -38
- package/dist/observable/index.d.ts +0 -5
- package/dist/observable/index.d.ts.map +0 -1
- package/dist/observable/index.js +0 -18
- package/dist/observable/observable.d.ts +0 -12
- package/dist/observable/observable.d.ts.map +0 -1
- package/dist/observable/observable.js +0 -180
- package/dist/observable/observable.mjs +0 -175
- package/dist/observable/operators.d.ts +0 -10
- package/dist/observable/operators.d.ts.map +0 -1
- package/dist/observable/operators.js +0 -134
- package/dist/observable/operators.mjs +0 -128
- package/dist/observable/types.d.ts +0 -26
- package/dist/observable/types.d.ts.map +0 -1
- package/dist/rpc.d.ts +0 -2
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js +0 -13
- package/dist/shared.d.ts +0 -26
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -13
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +0 -17
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts +0 -36
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts +0 -69
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/createProxy.d.ts +0 -19
- package/dist/unstable-core-do-not-import/createProxy.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/createProxy.js +0 -76
- package/dist/unstable-core-do-not-import/createProxy.mjs +0 -73
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts +0 -13
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/TRPCError.js +0 -76
- package/dist/unstable-core-do-not-import/error/TRPCError.mjs +0 -72
- package/dist/unstable-core-do-not-import/error/formatter.d.ts +0 -38
- package/dist/unstable-core-do-not-import/error/formatter.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/formatter.js +0 -7
- package/dist/unstable-core-do-not-import/error/formatter.mjs +0 -5
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts +0 -15
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/getErrorShape.js +0 -31
- package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +0 -29
- package/dist/unstable-core-do-not-import/http/abortError.d.ts +0 -5
- package/dist/unstable-core-do-not-import/http/abortError.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/abortError.js +0 -13
- package/dist/unstable-core-do-not-import/http/abortError.mjs +0 -10
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +0 -13
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +0 -229
- package/dist/unstable-core-do-not-import/http/contentType.mjs +0 -227
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts +0 -14
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.js +0 -14
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +0 -12
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts +0 -2
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/formDataToObject.js +0 -40
- package/dist/unstable-core-do-not-import/http/formDataToObject.mjs +0 -38
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts +0 -10
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +0 -85
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +0 -78
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts +0 -4
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.js +0 -42
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +0 -39
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts +0 -15
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +0 -572
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -570
- package/dist/unstable-core-do-not-import/http/types.d.ts +0 -138
- package/dist/unstable-core-do-not-import/http/types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +0 -94
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +0 -82
- package/dist/unstable-core-do-not-import/initTRPC.mjs +0 -80
- package/dist/unstable-core-do-not-import/middleware.d.ts +0 -107
- package/dist/unstable-core-do-not-import/middleware.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/middleware.js +0 -96
- package/dist/unstable-core-do-not-import/middleware.mjs +0 -90
- package/dist/unstable-core-do-not-import/parser.d.ts +0 -44
- package/dist/unstable-core-do-not-import/parser.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/parser.js +0 -54
- package/dist/unstable-core-do-not-import/parser.mjs +0 -52
- package/dist/unstable-core-do-not-import/procedure.d.ts +0 -77
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/procedure.js +0 -9
- package/dist/unstable-core-do-not-import/procedure.mjs +0 -7
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +0 -161
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +0 -201
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +0 -199
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +0 -98
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rootConfig.js +0 -8
- package/dist/unstable-core-do-not-import/rootConfig.mjs +0 -6
- package/dist/unstable-core-do-not-import/router.d.ts +0 -98
- package/dist/unstable-core-do-not-import/router.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/router.js +0 -285
- package/dist/unstable-core-do-not-import/router.mjs +0 -278
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts +0 -45
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/codes.js +0 -69
- package/dist/unstable-core-do-not-import/rpc/codes.mjs +0 -65
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts +0 -109
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/index.d.ts +0 -5
- package/dist/unstable-core-do-not-import/rpc/index.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts +0 -5
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.js +0 -63
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +0 -61
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +0 -119
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.js +0 -607
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs +0 -603
- package/dist/unstable-core-do-not-import/stream/sse.d.ts +0 -108
- package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/sse.js +0 -373
- package/dist/unstable-core-do-not-import/stream/sse.mjs +0 -369
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts +0 -31
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts +0 -31
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/tracked.js +0 -29
- package/dist/unstable-core-do-not-import/stream/tracked.mjs +0 -25
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +0 -174
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +0 -170
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts +0 -7
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.js +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +0 -15
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/disposable.js +0 -46
- package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +0 -43
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.js +0 -241
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +0 -239
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts +0 -8
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.js +0 -25
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +0 -23
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts +0 -5
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.js +0 -26
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +0 -23
- package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts +0 -7
- package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/withPing.js +0 -130
- package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +0 -127
- package/dist/unstable-core-do-not-import/transformer.d.ts +0 -99
- package/dist/unstable-core-do-not-import/transformer.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/transformer.js +0 -106
- package/dist/unstable-core-do-not-import/transformer.mjs +0 -101
- package/dist/unstable-core-do-not-import/types.d.ts +0 -127
- package/dist/unstable-core-do-not-import/types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/utils.d.ts +0 -42
- package/dist/unstable-core-do-not-import/utils.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/utils.js +0 -96
- package/dist/unstable-core-do-not-import/utils.mjs +0 -83
- package/dist/unstable-core-do-not-import.d.ts +0 -47
- package/dist/unstable-core-do-not-import.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import.js +0 -109
- package/dist/vendor/cookie-es/set-cookie/split.d.ts +0 -18
- package/dist/vendor/cookie-es/set-cookie/split.d.ts.map +0 -1
- package/dist/vendor/cookie-es/set-cookie/split.js +0 -79
- package/dist/vendor/cookie-es/set-cookie/split.mjs +0 -77
- package/dist/vendor/standard-schema-v1/error.d.ts +0 -13
- package/dist/vendor/standard-schema-v1/error.d.ts.map +0 -1
- package/dist/vendor/standard-schema-v1/error.js +0 -28
- package/dist/vendor/standard-schema-v1/error.mjs +0 -26
- package/dist/vendor/standard-schema-v1/spec.d.ts +0 -60
- package/dist/vendor/standard-schema-v1/spec.d.ts.map +0 -1
- package/dist/vendor/unpromise/index.d.ts +0 -3
- package/dist/vendor/unpromise/index.d.ts.map +0 -1
- package/dist/vendor/unpromise/types.d.ts +0 -28
- package/dist/vendor/unpromise/types.d.ts.map +0 -1
- package/dist/vendor/unpromise/unpromise.d.ts +0 -121
- package/dist/vendor/unpromise/unpromise.d.ts.map +0 -1
- package/dist/vendor/unpromise/unpromise.js +0 -292
- package/dist/vendor/unpromise/unpromise.mjs +0 -289
- package/http/index.d.ts +0 -1
- package/http/index.js +0 -1
- package/observable/index.d.ts +0 -1
- package/observable/index.js +0 -1
- package/rpc/index.d.ts +0 -1
- package/rpc/index.js +0 -1
- package/shared/index.d.ts +0 -1
- package/shared/index.js +0 -1
- package/unstable-core-do-not-import/index.d.ts +0 -1
- package/unstable-core-do-not-import/index.js +0 -1
|
@@ -1,4 +1,3048 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __commonJS, __toESM } from "../resolveResponse-DPbYgJDD.mjs";
|
|
2
|
+
import "../getErrorShape-DyYil4aT.mjs";
|
|
3
|
+
import { TRPCError, getTRPCErrorFromUnknown } from "../tracked-GEWPoL0C.mjs";
|
|
4
|
+
import "../utils-BHZJcBRv.mjs";
|
|
5
|
+
import "../parseTRPCMessage-CNyYMSRB.mjs";
|
|
6
|
+
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
|
+
import { formDataToObject } from "../unstable-core-do-not-import-D89CaGtL.mjs";
|
|
8
|
+
import "../observable-B1orLHHI.mjs";
|
|
9
|
+
import "../initTRPC-COaJMShh.mjs";
|
|
10
|
+
|
|
11
|
+
//#region src/adapters/next-app-dir/redirect.ts
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
var TRPCRedirectError = class extends TRPCError {
|
|
16
|
+
args;
|
|
17
|
+
constructor(url, redirectType) {
|
|
18
|
+
super({
|
|
19
|
+
code: "UNPROCESSABLE_CONTENT",
|
|
20
|
+
message: `Redirect error to "${url}" that will be handled by Next.js`
|
|
21
|
+
});
|
|
22
|
+
this.args = [url.toString(), redirectType];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Like `next/navigation`'s `redirect()` but throws a `TRPCError` that later will be handled by Next.js
|
|
27
|
+
* This provides better typesafety than the `next/navigation`'s `redirect()` since the action continues
|
|
28
|
+
* to execute on the frontend even if Next's `redirect()` has a return type of `never`.
|
|
29
|
+
* @public
|
|
30
|
+
* @remark You should only use this if you're also using `nextAppDirCaller`.
|
|
31
|
+
*/
|
|
32
|
+
const redirect = (url, redirectType) => {
|
|
33
|
+
return new TRPCRedirectError(url, redirectType);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js
|
|
38
|
+
var require_react_production = __commonJS({ "../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js"(exports) {
|
|
39
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
40
|
+
function getIteratorFn(maybeIterable) {
|
|
41
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
42
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
43
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
44
|
+
}
|
|
45
|
+
var ReactNoopUpdateQueue = {
|
|
46
|
+
isMounted: function() {
|
|
47
|
+
return !1;
|
|
48
|
+
},
|
|
49
|
+
enqueueForceUpdate: function() {},
|
|
50
|
+
enqueueReplaceState: function() {},
|
|
51
|
+
enqueueSetState: function() {}
|
|
52
|
+
}, assign = Object.assign, emptyObject = {};
|
|
53
|
+
function Component(props, context, updater) {
|
|
54
|
+
this.props = props;
|
|
55
|
+
this.context = context;
|
|
56
|
+
this.refs = emptyObject;
|
|
57
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
58
|
+
}
|
|
59
|
+
Component.prototype.isReactComponent = {};
|
|
60
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
61
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
62
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
63
|
+
};
|
|
64
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
65
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
66
|
+
};
|
|
67
|
+
function ComponentDummy() {}
|
|
68
|
+
ComponentDummy.prototype = Component.prototype;
|
|
69
|
+
function PureComponent(props, context, updater) {
|
|
70
|
+
this.props = props;
|
|
71
|
+
this.context = context;
|
|
72
|
+
this.refs = emptyObject;
|
|
73
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
74
|
+
}
|
|
75
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
76
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
77
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
78
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
79
|
+
var isArrayImpl = Array.isArray, ReactSharedInternals = {
|
|
80
|
+
H: null,
|
|
81
|
+
A: null,
|
|
82
|
+
T: null,
|
|
83
|
+
S: null,
|
|
84
|
+
V: null
|
|
85
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
86
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
87
|
+
self = props.ref;
|
|
88
|
+
return {
|
|
89
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
90
|
+
type,
|
|
91
|
+
key,
|
|
92
|
+
ref: void 0 !== self ? self : null,
|
|
93
|
+
props
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
97
|
+
return ReactElement(oldElement.type, newKey, void 0, void 0, void 0, oldElement.props);
|
|
98
|
+
}
|
|
99
|
+
function isValidElement(object) {
|
|
100
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
101
|
+
}
|
|
102
|
+
function escape(key) {
|
|
103
|
+
var escaperLookup = {
|
|
104
|
+
"=": "=0",
|
|
105
|
+
":": "=2"
|
|
106
|
+
};
|
|
107
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
108
|
+
return escaperLookup[match];
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
112
|
+
function getElementKey(element, index) {
|
|
113
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
114
|
+
}
|
|
115
|
+
function noop$1() {}
|
|
116
|
+
function resolveThenable(thenable) {
|
|
117
|
+
switch (thenable.status) {
|
|
118
|
+
case "fulfilled": return thenable.value;
|
|
119
|
+
case "rejected": throw thenable.reason;
|
|
120
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
121
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
122
|
+
}, function(error) {
|
|
123
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
124
|
+
})), thenable.status) {
|
|
125
|
+
case "fulfilled": return thenable.value;
|
|
126
|
+
case "rejected": throw thenable.reason;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
throw thenable;
|
|
130
|
+
}
|
|
131
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
132
|
+
var type = typeof children;
|
|
133
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
134
|
+
var invokeCallback = !1;
|
|
135
|
+
if (null === children) invokeCallback = !0;
|
|
136
|
+
else switch (type) {
|
|
137
|
+
case "bigint":
|
|
138
|
+
case "string":
|
|
139
|
+
case "number":
|
|
140
|
+
invokeCallback = !0;
|
|
141
|
+
break;
|
|
142
|
+
case "object": switch (children.$$typeof) {
|
|
143
|
+
case REACT_ELEMENT_TYPE:
|
|
144
|
+
case REACT_PORTAL_TYPE:
|
|
145
|
+
invokeCallback = !0;
|
|
146
|
+
break;
|
|
147
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
151
|
+
return c;
|
|
152
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
153
|
+
invokeCallback = 0;
|
|
154
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
155
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
156
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
157
|
+
else if ("object" === type) {
|
|
158
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
159
|
+
array = String(children);
|
|
160
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
|
+
}
|
|
162
|
+
return invokeCallback;
|
|
163
|
+
}
|
|
164
|
+
function mapChildren(children, func, context) {
|
|
165
|
+
if (null == children) return children;
|
|
166
|
+
var result = [], count = 0;
|
|
167
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
168
|
+
return func.call(context, child, count++);
|
|
169
|
+
});
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
function lazyInitializer(payload) {
|
|
173
|
+
if (-1 === payload._status) {
|
|
174
|
+
var ctor = payload._result;
|
|
175
|
+
ctor = ctor();
|
|
176
|
+
ctor.then(function(moduleObject) {
|
|
177
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
178
|
+
}, function(error) {
|
|
179
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
180
|
+
});
|
|
181
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
182
|
+
}
|
|
183
|
+
if (1 === payload._status) return payload._result.default;
|
|
184
|
+
throw payload._result;
|
|
185
|
+
}
|
|
186
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
187
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
188
|
+
var event = new window.ErrorEvent("error", {
|
|
189
|
+
bubbles: !0,
|
|
190
|
+
cancelable: !0,
|
|
191
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
192
|
+
error
|
|
193
|
+
});
|
|
194
|
+
if (!window.dispatchEvent(event)) return;
|
|
195
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
196
|
+
process.emit("uncaughtException", error);
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
console.error(error);
|
|
200
|
+
};
|
|
201
|
+
function noop() {}
|
|
202
|
+
exports.Children = {
|
|
203
|
+
map: mapChildren,
|
|
204
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
205
|
+
mapChildren(children, function() {
|
|
206
|
+
forEachFunc.apply(this, arguments);
|
|
207
|
+
}, forEachContext);
|
|
208
|
+
},
|
|
209
|
+
count: function(children) {
|
|
210
|
+
var n = 0;
|
|
211
|
+
mapChildren(children, function() {
|
|
212
|
+
n++;
|
|
213
|
+
});
|
|
214
|
+
return n;
|
|
215
|
+
},
|
|
216
|
+
toArray: function(children) {
|
|
217
|
+
return mapChildren(children, function(child) {
|
|
218
|
+
return child;
|
|
219
|
+
}) || [];
|
|
220
|
+
},
|
|
221
|
+
only: function(children) {
|
|
222
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
223
|
+
return children;
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
exports.Component = Component;
|
|
227
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
228
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
229
|
+
exports.PureComponent = PureComponent;
|
|
230
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
231
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
232
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
233
|
+
exports.__COMPILER_RUNTIME = {
|
|
234
|
+
__proto__: null,
|
|
235
|
+
c: function(size) {
|
|
236
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.cache = function(fn) {
|
|
240
|
+
return function() {
|
|
241
|
+
return fn.apply(null, arguments);
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
exports.cloneElement = function(element, config, children) {
|
|
245
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
246
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
247
|
+
if (null != config) for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
248
|
+
var propName = arguments.length - 2;
|
|
249
|
+
if (1 === propName) props.children = children;
|
|
250
|
+
else if (1 < propName) {
|
|
251
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
252
|
+
props.children = childArray;
|
|
253
|
+
}
|
|
254
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
255
|
+
};
|
|
256
|
+
exports.createContext = function(defaultValue) {
|
|
257
|
+
defaultValue = {
|
|
258
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
259
|
+
_currentValue: defaultValue,
|
|
260
|
+
_currentValue2: defaultValue,
|
|
261
|
+
_threadCount: 0,
|
|
262
|
+
Provider: null,
|
|
263
|
+
Consumer: null
|
|
264
|
+
};
|
|
265
|
+
defaultValue.Provider = defaultValue;
|
|
266
|
+
defaultValue.Consumer = {
|
|
267
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
268
|
+
_context: defaultValue
|
|
269
|
+
};
|
|
270
|
+
return defaultValue;
|
|
271
|
+
};
|
|
272
|
+
exports.createElement = function(type, config, children) {
|
|
273
|
+
var propName, props = {}, key = null;
|
|
274
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
275
|
+
var childrenLength = arguments.length - 2;
|
|
276
|
+
if (1 === childrenLength) props.children = children;
|
|
277
|
+
else if (1 < childrenLength) {
|
|
278
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
279
|
+
props.children = childArray;
|
|
280
|
+
}
|
|
281
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
282
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
283
|
+
};
|
|
284
|
+
exports.createRef = function() {
|
|
285
|
+
return { current: null };
|
|
286
|
+
};
|
|
287
|
+
exports.forwardRef = function(render) {
|
|
288
|
+
return {
|
|
289
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
290
|
+
render
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
exports.isValidElement = isValidElement;
|
|
294
|
+
exports.lazy = function(ctor) {
|
|
295
|
+
return {
|
|
296
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
297
|
+
_payload: {
|
|
298
|
+
_status: -1,
|
|
299
|
+
_result: ctor
|
|
300
|
+
},
|
|
301
|
+
_init: lazyInitializer
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
exports.memo = function(type, compare) {
|
|
305
|
+
return {
|
|
306
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
307
|
+
type,
|
|
308
|
+
compare: void 0 === compare ? null : compare
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
exports.startTransition = function(scope) {
|
|
312
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
313
|
+
ReactSharedInternals.T = currentTransition;
|
|
314
|
+
try {
|
|
315
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
316
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
317
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
318
|
+
} catch (error) {
|
|
319
|
+
reportGlobalError(error);
|
|
320
|
+
} finally {
|
|
321
|
+
ReactSharedInternals.T = prevTransition;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
exports.unstable_useCacheRefresh = function() {
|
|
325
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
326
|
+
};
|
|
327
|
+
exports.use = function(usable) {
|
|
328
|
+
return ReactSharedInternals.H.use(usable);
|
|
329
|
+
};
|
|
330
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
331
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
332
|
+
};
|
|
333
|
+
exports.useCallback = function(callback, deps) {
|
|
334
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
335
|
+
};
|
|
336
|
+
exports.useContext = function(Context) {
|
|
337
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
338
|
+
};
|
|
339
|
+
exports.useDebugValue = function() {};
|
|
340
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
341
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
342
|
+
};
|
|
343
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
344
|
+
var dispatcher = ReactSharedInternals.H;
|
|
345
|
+
if ("function" === typeof update) throw Error("useEffect CRUD overload is not enabled in this build of React.");
|
|
346
|
+
return dispatcher.useEffect(create, createDeps);
|
|
347
|
+
};
|
|
348
|
+
exports.useId = function() {
|
|
349
|
+
return ReactSharedInternals.H.useId();
|
|
350
|
+
};
|
|
351
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
352
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
353
|
+
};
|
|
354
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
355
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
356
|
+
};
|
|
357
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
358
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
359
|
+
};
|
|
360
|
+
exports.useMemo = function(create, deps) {
|
|
361
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
362
|
+
};
|
|
363
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
364
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
365
|
+
};
|
|
366
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
367
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
368
|
+
};
|
|
369
|
+
exports.useRef = function(initialValue) {
|
|
370
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
371
|
+
};
|
|
372
|
+
exports.useState = function(initialState) {
|
|
373
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
374
|
+
};
|
|
375
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
376
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
377
|
+
};
|
|
378
|
+
exports.useTransition = function() {
|
|
379
|
+
return ReactSharedInternals.H.useTransition();
|
|
380
|
+
};
|
|
381
|
+
exports.version = "19.1.0";
|
|
382
|
+
} });
|
|
383
|
+
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region ../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js
|
|
386
|
+
var require_react_development = __commonJS({ "../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
387
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
388
|
+
function defineDeprecationWarning(methodName, info) {
|
|
389
|
+
Object.defineProperty(Component$1.prototype, methodName, { get: function() {
|
|
390
|
+
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
391
|
+
} });
|
|
392
|
+
}
|
|
393
|
+
function getIteratorFn$1(maybeIterable) {
|
|
394
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
395
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL$1 && maybeIterable[MAYBE_ITERATOR_SYMBOL$1] || maybeIterable["@@iterator"];
|
|
396
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
397
|
+
}
|
|
398
|
+
function warnNoop(publicInstance, callerName) {
|
|
399
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
400
|
+
var warningKey = publicInstance + "." + callerName;
|
|
401
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, publicInstance), didWarnStateUpdateForUnmountedComponent[warningKey] = !0);
|
|
402
|
+
}
|
|
403
|
+
function Component$1(props, context, updater) {
|
|
404
|
+
this.props = props;
|
|
405
|
+
this.context = context;
|
|
406
|
+
this.refs = emptyObject$1;
|
|
407
|
+
this.updater = updater || ReactNoopUpdateQueue$1;
|
|
408
|
+
}
|
|
409
|
+
function ComponentDummy$1() {}
|
|
410
|
+
function PureComponent$1(props, context, updater) {
|
|
411
|
+
this.props = props;
|
|
412
|
+
this.context = context;
|
|
413
|
+
this.refs = emptyObject$1;
|
|
414
|
+
this.updater = updater || ReactNoopUpdateQueue$1;
|
|
415
|
+
}
|
|
416
|
+
function testStringCoercion(value) {
|
|
417
|
+
return "" + value;
|
|
418
|
+
}
|
|
419
|
+
function checkKeyStringCoercion(value) {
|
|
420
|
+
try {
|
|
421
|
+
testStringCoercion(value);
|
|
422
|
+
var JSCompiler_inline_result = !1;
|
|
423
|
+
} catch (e) {
|
|
424
|
+
JSCompiler_inline_result = !0;
|
|
425
|
+
}
|
|
426
|
+
if (JSCompiler_inline_result) {
|
|
427
|
+
JSCompiler_inline_result = console;
|
|
428
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
429
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
430
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
431
|
+
return testStringCoercion(value);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function getComponentNameFromType(type) {
|
|
435
|
+
if (null == type) return null;
|
|
436
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
437
|
+
if ("string" === typeof type) return type;
|
|
438
|
+
switch (type) {
|
|
439
|
+
case REACT_FRAGMENT_TYPE$1: return "Fragment";
|
|
440
|
+
case REACT_PROFILER_TYPE$1: return "Profiler";
|
|
441
|
+
case REACT_STRICT_MODE_TYPE$1: return "StrictMode";
|
|
442
|
+
case REACT_SUSPENSE_TYPE$1: return "Suspense";
|
|
443
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
444
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
445
|
+
}
|
|
446
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
447
|
+
case REACT_PORTAL_TYPE$1: return "Portal";
|
|
448
|
+
case REACT_CONTEXT_TYPE$1: return (type.displayName || "Context") + ".Provider";
|
|
449
|
+
case REACT_CONSUMER_TYPE$1: return (type._context.displayName || "Context") + ".Consumer";
|
|
450
|
+
case REACT_FORWARD_REF_TYPE$1:
|
|
451
|
+
var innerType = type.render;
|
|
452
|
+
type = type.displayName;
|
|
453
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
454
|
+
return type;
|
|
455
|
+
case REACT_MEMO_TYPE$1: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
456
|
+
case REACT_LAZY_TYPE$1:
|
|
457
|
+
innerType = type._payload;
|
|
458
|
+
type = type._init;
|
|
459
|
+
try {
|
|
460
|
+
return getComponentNameFromType(type(innerType));
|
|
461
|
+
} catch (x) {}
|
|
462
|
+
}
|
|
463
|
+
return null;
|
|
464
|
+
}
|
|
465
|
+
function getTaskName(type) {
|
|
466
|
+
if (type === REACT_FRAGMENT_TYPE$1) return "<>";
|
|
467
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE$1) return "<...>";
|
|
468
|
+
try {
|
|
469
|
+
var name = getComponentNameFromType(type);
|
|
470
|
+
return name ? "<" + name + ">" : "<...>";
|
|
471
|
+
} catch (x) {
|
|
472
|
+
return "<...>";
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function getOwner() {
|
|
476
|
+
var dispatcher = ReactSharedInternals$1.A;
|
|
477
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
478
|
+
}
|
|
479
|
+
function UnknownOwner() {
|
|
480
|
+
return Error("react-stack-top-frame");
|
|
481
|
+
}
|
|
482
|
+
function hasValidKey(config) {
|
|
483
|
+
if (hasOwnProperty$1.call(config, "key")) {
|
|
484
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
485
|
+
if (getter && getter.isReactWarning) return !1;
|
|
486
|
+
}
|
|
487
|
+
return void 0 !== config.key;
|
|
488
|
+
}
|
|
489
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
490
|
+
function warnAboutAccessingKey() {
|
|
491
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
492
|
+
}
|
|
493
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
494
|
+
Object.defineProperty(props, "key", {
|
|
495
|
+
get: warnAboutAccessingKey,
|
|
496
|
+
configurable: !0
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
500
|
+
var componentName = getComponentNameFromType(this.type);
|
|
501
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
502
|
+
componentName = this.props.ref;
|
|
503
|
+
return void 0 !== componentName ? componentName : null;
|
|
504
|
+
}
|
|
505
|
+
function ReactElement$1(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
506
|
+
self = props.ref;
|
|
507
|
+
type = {
|
|
508
|
+
$$typeof: REACT_ELEMENT_TYPE$1,
|
|
509
|
+
type,
|
|
510
|
+
key,
|
|
511
|
+
props,
|
|
512
|
+
_owner: owner
|
|
513
|
+
};
|
|
514
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
515
|
+
enumerable: !1,
|
|
516
|
+
get: elementRefGetterWithDeprecationWarning
|
|
517
|
+
}) : Object.defineProperty(type, "ref", {
|
|
518
|
+
enumerable: !1,
|
|
519
|
+
value: null
|
|
520
|
+
});
|
|
521
|
+
type._store = {};
|
|
522
|
+
Object.defineProperty(type._store, "validated", {
|
|
523
|
+
configurable: !1,
|
|
524
|
+
enumerable: !1,
|
|
525
|
+
writable: !0,
|
|
526
|
+
value: 0
|
|
527
|
+
});
|
|
528
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
529
|
+
configurable: !1,
|
|
530
|
+
enumerable: !1,
|
|
531
|
+
writable: !0,
|
|
532
|
+
value: null
|
|
533
|
+
});
|
|
534
|
+
Object.defineProperty(type, "_debugStack", {
|
|
535
|
+
configurable: !1,
|
|
536
|
+
enumerable: !1,
|
|
537
|
+
writable: !0,
|
|
538
|
+
value: debugStack
|
|
539
|
+
});
|
|
540
|
+
Object.defineProperty(type, "_debugTask", {
|
|
541
|
+
configurable: !1,
|
|
542
|
+
enumerable: !1,
|
|
543
|
+
writable: !0,
|
|
544
|
+
value: debugTask
|
|
545
|
+
});
|
|
546
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
547
|
+
return type;
|
|
548
|
+
}
|
|
549
|
+
function cloneAndReplaceKey$1(oldElement, newKey) {
|
|
550
|
+
newKey = ReactElement$1(oldElement.type, newKey, void 0, void 0, oldElement._owner, oldElement.props, oldElement._debugStack, oldElement._debugTask);
|
|
551
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
552
|
+
return newKey;
|
|
553
|
+
}
|
|
554
|
+
function isValidElement$1(object) {
|
|
555
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE$1;
|
|
556
|
+
}
|
|
557
|
+
function escape$1(key) {
|
|
558
|
+
var escaperLookup = {
|
|
559
|
+
"=": "=0",
|
|
560
|
+
":": "=2"
|
|
561
|
+
};
|
|
562
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
563
|
+
return escaperLookup[match];
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
function getElementKey$1(element, index) {
|
|
567
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape$1("" + element.key)) : index.toString(36);
|
|
568
|
+
}
|
|
569
|
+
function noop$1$1() {}
|
|
570
|
+
function resolveThenable$1(thenable) {
|
|
571
|
+
switch (thenable.status) {
|
|
572
|
+
case "fulfilled": return thenable.value;
|
|
573
|
+
case "rejected": throw thenable.reason;
|
|
574
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop$1$1, noop$1$1) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
575
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
576
|
+
}, function(error) {
|
|
577
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
578
|
+
})), thenable.status) {
|
|
579
|
+
case "fulfilled": return thenable.value;
|
|
580
|
+
case "rejected": throw thenable.reason;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
throw thenable;
|
|
584
|
+
}
|
|
585
|
+
function mapIntoArray$1(children, array, escapedPrefix, nameSoFar, callback) {
|
|
586
|
+
var type = typeof children;
|
|
587
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
588
|
+
var invokeCallback = !1;
|
|
589
|
+
if (null === children) invokeCallback = !0;
|
|
590
|
+
else switch (type) {
|
|
591
|
+
case "bigint":
|
|
592
|
+
case "string":
|
|
593
|
+
case "number":
|
|
594
|
+
invokeCallback = !0;
|
|
595
|
+
break;
|
|
596
|
+
case "object": switch (children.$$typeof) {
|
|
597
|
+
case REACT_ELEMENT_TYPE$1:
|
|
598
|
+
case REACT_PORTAL_TYPE$1:
|
|
599
|
+
invokeCallback = !0;
|
|
600
|
+
break;
|
|
601
|
+
case REACT_LAZY_TYPE$1: return invokeCallback = children._init, mapIntoArray$1(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
if (invokeCallback) {
|
|
605
|
+
invokeCallback = children;
|
|
606
|
+
callback = callback(invokeCallback);
|
|
607
|
+
var childKey = "" === nameSoFar ? "." + getElementKey$1(invokeCallback, 0) : nameSoFar;
|
|
608
|
+
isArrayImpl$1(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex$1, "$&/") + "/"), mapIntoArray$1(callback, array, escapedPrefix, "", function(c) {
|
|
609
|
+
return c;
|
|
610
|
+
})) : null != callback && (isValidElement$1(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey$1(callback, escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex$1, "$&/") + "/") + childKey), "" !== nameSoFar && null != invokeCallback && isValidElement$1(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
611
|
+
return 1;
|
|
612
|
+
}
|
|
613
|
+
invokeCallback = 0;
|
|
614
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
615
|
+
if (isArrayImpl$1(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = childKey + getElementKey$1(nameSoFar, i), invokeCallback += mapIntoArray$1(nameSoFar, array, escapedPrefix, type, callback);
|
|
616
|
+
else if (i = getIteratorFn$1(children), "function" === typeof i) for (i === children.entries && (didWarnAboutMaps || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0), children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = childKey + getElementKey$1(nameSoFar, i++), invokeCallback += mapIntoArray$1(nameSoFar, array, escapedPrefix, type, callback);
|
|
617
|
+
else if ("object" === type) {
|
|
618
|
+
if ("function" === typeof children.then) return mapIntoArray$1(resolveThenable$1(children), array, escapedPrefix, nameSoFar, callback);
|
|
619
|
+
array = String(children);
|
|
620
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
621
|
+
}
|
|
622
|
+
return invokeCallback;
|
|
623
|
+
}
|
|
624
|
+
function mapChildren$1(children, func, context) {
|
|
625
|
+
if (null == children) return children;
|
|
626
|
+
var result = [], count = 0;
|
|
627
|
+
mapIntoArray$1(children, result, "", "", function(child) {
|
|
628
|
+
return func.call(context, child, count++);
|
|
629
|
+
});
|
|
630
|
+
return result;
|
|
631
|
+
}
|
|
632
|
+
function lazyInitializer$1(payload) {
|
|
633
|
+
if (-1 === payload._status) {
|
|
634
|
+
var ctor = payload._result;
|
|
635
|
+
ctor = ctor();
|
|
636
|
+
ctor.then(function(moduleObject) {
|
|
637
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
638
|
+
}, function(error) {
|
|
639
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
640
|
+
});
|
|
641
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
642
|
+
}
|
|
643
|
+
if (1 === payload._status) return ctor = payload._result, void 0 === ctor && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", ctor), "default" in ctor || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", ctor), ctor.default;
|
|
644
|
+
throw payload._result;
|
|
645
|
+
}
|
|
646
|
+
function resolveDispatcher() {
|
|
647
|
+
var dispatcher = ReactSharedInternals$1.H;
|
|
648
|
+
null === dispatcher && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
649
|
+
return dispatcher;
|
|
650
|
+
}
|
|
651
|
+
function noop$2() {}
|
|
652
|
+
function enqueueTask(task) {
|
|
653
|
+
if (null === enqueueTaskImpl) try {
|
|
654
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
655
|
+
enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
|
|
656
|
+
} catch (_err) {
|
|
657
|
+
enqueueTaskImpl = function(callback) {
|
|
658
|
+
!1 === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = !0, "undefined" === typeof MessageChannel && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
659
|
+
var channel = new MessageChannel();
|
|
660
|
+
channel.port1.onmessage = callback;
|
|
661
|
+
channel.port2.postMessage(void 0);
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
return enqueueTaskImpl(task);
|
|
665
|
+
}
|
|
666
|
+
function aggregateErrors(errors) {
|
|
667
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
668
|
+
}
|
|
669
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
670
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
671
|
+
actScopeDepth = prevActScopeDepth;
|
|
672
|
+
}
|
|
673
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
674
|
+
var queue = ReactSharedInternals$1.actQueue;
|
|
675
|
+
if (null !== queue) if (0 !== queue.length) try {
|
|
676
|
+
flushActQueue(queue);
|
|
677
|
+
enqueueTask(function() {
|
|
678
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
679
|
+
});
|
|
680
|
+
return;
|
|
681
|
+
} catch (error) {
|
|
682
|
+
ReactSharedInternals$1.thrownErrors.push(error);
|
|
683
|
+
}
|
|
684
|
+
else ReactSharedInternals$1.actQueue = null;
|
|
685
|
+
0 < ReactSharedInternals$1.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals$1.thrownErrors), ReactSharedInternals$1.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
686
|
+
}
|
|
687
|
+
function flushActQueue(queue) {
|
|
688
|
+
if (!isFlushing) {
|
|
689
|
+
isFlushing = !0;
|
|
690
|
+
var i = 0;
|
|
691
|
+
try {
|
|
692
|
+
for (; i < queue.length; i++) {
|
|
693
|
+
var callback = queue[i];
|
|
694
|
+
do {
|
|
695
|
+
ReactSharedInternals$1.didUsePromise = !1;
|
|
696
|
+
var continuation = callback(!1);
|
|
697
|
+
if (null !== continuation) {
|
|
698
|
+
if (ReactSharedInternals$1.didUsePromise) {
|
|
699
|
+
queue[i] = callback;
|
|
700
|
+
queue.splice(0, i);
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
callback = continuation;
|
|
704
|
+
} else break;
|
|
705
|
+
} while (1);
|
|
706
|
+
}
|
|
707
|
+
queue.length = 0;
|
|
708
|
+
} catch (error) {
|
|
709
|
+
queue.splice(0, i + 1), ReactSharedInternals$1.thrownErrors.push(error);
|
|
710
|
+
} finally {
|
|
711
|
+
isFlushing = !1;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
716
|
+
var REACT_ELEMENT_TYPE$1 = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE$1 = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE$1 = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE$1 = Symbol.for("react.profiler");
|
|
717
|
+
Symbol.for("react.provider");
|
|
718
|
+
var REACT_CONSUMER_TYPE$1 = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE$1 = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE$1 = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE$1 = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE$1 = Symbol.for("react.memo"), REACT_LAZY_TYPE$1 = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL$1 = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue$1 = {
|
|
719
|
+
isMounted: function() {
|
|
720
|
+
return !1;
|
|
721
|
+
},
|
|
722
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
723
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
724
|
+
},
|
|
725
|
+
enqueueReplaceState: function(publicInstance) {
|
|
726
|
+
warnNoop(publicInstance, "replaceState");
|
|
727
|
+
},
|
|
728
|
+
enqueueSetState: function(publicInstance) {
|
|
729
|
+
warnNoop(publicInstance, "setState");
|
|
730
|
+
}
|
|
731
|
+
}, assign$1 = Object.assign, emptyObject$1 = {};
|
|
732
|
+
Object.freeze(emptyObject$1);
|
|
733
|
+
Component$1.prototype.isReactComponent = {};
|
|
734
|
+
Component$1.prototype.setState = function(partialState, callback) {
|
|
735
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
736
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
737
|
+
};
|
|
738
|
+
Component$1.prototype.forceUpdate = function(callback) {
|
|
739
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
740
|
+
};
|
|
741
|
+
var deprecatedAPIs = {
|
|
742
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
743
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
744
|
+
}, fnName;
|
|
745
|
+
for (fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
746
|
+
ComponentDummy$1.prototype = Component$1.prototype;
|
|
747
|
+
deprecatedAPIs = PureComponent$1.prototype = new ComponentDummy$1();
|
|
748
|
+
deprecatedAPIs.constructor = PureComponent$1;
|
|
749
|
+
assign$1(deprecatedAPIs, Component$1.prototype);
|
|
750
|
+
deprecatedAPIs.isPureReactComponent = !0;
|
|
751
|
+
var isArrayImpl$1 = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals$1 = {
|
|
752
|
+
H: null,
|
|
753
|
+
A: null,
|
|
754
|
+
T: null,
|
|
755
|
+
S: null,
|
|
756
|
+
V: null,
|
|
757
|
+
actQueue: null,
|
|
758
|
+
isBatchingLegacy: !1,
|
|
759
|
+
didScheduleLegacyUpdate: !1,
|
|
760
|
+
didUsePromise: !1,
|
|
761
|
+
thrownErrors: [],
|
|
762
|
+
getCurrentStack: null,
|
|
763
|
+
recentlyCreatedOwnerStacks: 0
|
|
764
|
+
}, hasOwnProperty$1 = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
765
|
+
return null;
|
|
766
|
+
};
|
|
767
|
+
deprecatedAPIs = { "react-stack-bottom-frame": function(callStackForError) {
|
|
768
|
+
return callStackForError();
|
|
769
|
+
} };
|
|
770
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
771
|
+
var didWarnAboutElementRef = {};
|
|
772
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
773
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
774
|
+
var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex$1 = /\/+/g, reportGlobalError$1 = "function" === typeof reportError ? reportError : function(error) {
|
|
775
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
776
|
+
var event = new window.ErrorEvent("error", {
|
|
777
|
+
bubbles: !0,
|
|
778
|
+
cancelable: !0,
|
|
779
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
780
|
+
error
|
|
781
|
+
});
|
|
782
|
+
if (!window.dispatchEvent(event)) return;
|
|
783
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
784
|
+
process.emit("uncaughtException", error);
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
console.error(error);
|
|
788
|
+
}, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
789
|
+
queueMicrotask(function() {
|
|
790
|
+
return queueMicrotask(callback);
|
|
791
|
+
});
|
|
792
|
+
} : enqueueTask;
|
|
793
|
+
deprecatedAPIs = Object.freeze({
|
|
794
|
+
__proto__: null,
|
|
795
|
+
c: function(size) {
|
|
796
|
+
return resolveDispatcher().useMemoCache(size);
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
exports.Children = {
|
|
800
|
+
map: mapChildren$1,
|
|
801
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
802
|
+
mapChildren$1(children, function() {
|
|
803
|
+
forEachFunc.apply(this, arguments);
|
|
804
|
+
}, forEachContext);
|
|
805
|
+
},
|
|
806
|
+
count: function(children) {
|
|
807
|
+
var n = 0;
|
|
808
|
+
mapChildren$1(children, function() {
|
|
809
|
+
n++;
|
|
810
|
+
});
|
|
811
|
+
return n;
|
|
812
|
+
},
|
|
813
|
+
toArray: function(children) {
|
|
814
|
+
return mapChildren$1(children, function(child) {
|
|
815
|
+
return child;
|
|
816
|
+
}) || [];
|
|
817
|
+
},
|
|
818
|
+
only: function(children) {
|
|
819
|
+
if (!isValidElement$1(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
820
|
+
return children;
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
exports.Component = Component$1;
|
|
824
|
+
exports.Fragment = REACT_FRAGMENT_TYPE$1;
|
|
825
|
+
exports.Profiler = REACT_PROFILER_TYPE$1;
|
|
826
|
+
exports.PureComponent = PureComponent$1;
|
|
827
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE$1;
|
|
828
|
+
exports.Suspense = REACT_SUSPENSE_TYPE$1;
|
|
829
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals$1;
|
|
830
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
831
|
+
exports.act = function(callback) {
|
|
832
|
+
var prevActQueue = ReactSharedInternals$1.actQueue, prevActScopeDepth = actScopeDepth;
|
|
833
|
+
actScopeDepth++;
|
|
834
|
+
var queue = ReactSharedInternals$1.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = !1;
|
|
835
|
+
try {
|
|
836
|
+
var result = callback();
|
|
837
|
+
} catch (error) {
|
|
838
|
+
ReactSharedInternals$1.thrownErrors.push(error);
|
|
839
|
+
}
|
|
840
|
+
if (0 < ReactSharedInternals$1.thrownErrors.length) throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals$1.thrownErrors), ReactSharedInternals$1.thrownErrors.length = 0, callback;
|
|
841
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
842
|
+
var thenable = result;
|
|
843
|
+
queueSeveralMicrotasks(function() {
|
|
844
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
845
|
+
});
|
|
846
|
+
return { then: function(resolve, reject) {
|
|
847
|
+
didAwaitActCall = !0;
|
|
848
|
+
thenable.then(function(returnValue) {
|
|
849
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
850
|
+
if (0 === prevActScopeDepth) {
|
|
851
|
+
try {
|
|
852
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
853
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
854
|
+
});
|
|
855
|
+
} catch (error$0) {
|
|
856
|
+
ReactSharedInternals$1.thrownErrors.push(error$0);
|
|
857
|
+
}
|
|
858
|
+
if (0 < ReactSharedInternals$1.thrownErrors.length) {
|
|
859
|
+
var _thrownError = aggregateErrors(ReactSharedInternals$1.thrownErrors);
|
|
860
|
+
ReactSharedInternals$1.thrownErrors.length = 0;
|
|
861
|
+
reject(_thrownError);
|
|
862
|
+
}
|
|
863
|
+
} else resolve(returnValue);
|
|
864
|
+
}, function(error) {
|
|
865
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
866
|
+
0 < ReactSharedInternals$1.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals$1.thrownErrors), ReactSharedInternals$1.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
867
|
+
});
|
|
868
|
+
} };
|
|
869
|
+
}
|
|
870
|
+
var returnValue$jscomp$0 = result;
|
|
871
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
872
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
873
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
874
|
+
}), ReactSharedInternals$1.actQueue = null);
|
|
875
|
+
if (0 < ReactSharedInternals$1.thrownErrors.length) throw callback = aggregateErrors(ReactSharedInternals$1.thrownErrors), ReactSharedInternals$1.thrownErrors.length = 0, callback;
|
|
876
|
+
return { then: function(resolve, reject) {
|
|
877
|
+
didAwaitActCall = !0;
|
|
878
|
+
0 === prevActScopeDepth ? (ReactSharedInternals$1.actQueue = queue, enqueueTask(function() {
|
|
879
|
+
return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
|
|
880
|
+
})) : resolve(returnValue$jscomp$0);
|
|
881
|
+
} };
|
|
882
|
+
};
|
|
883
|
+
exports.cache = function(fn) {
|
|
884
|
+
return function() {
|
|
885
|
+
return fn.apply(null, arguments);
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
exports.captureOwnerStack = function() {
|
|
889
|
+
var getCurrentStack = ReactSharedInternals$1.getCurrentStack;
|
|
890
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
891
|
+
};
|
|
892
|
+
exports.cloneElement = function(element, config, children) {
|
|
893
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
894
|
+
var props = assign$1({}, element.props), key = element.key, owner = element._owner;
|
|
895
|
+
if (null != config) {
|
|
896
|
+
var JSCompiler_inline_result;
|
|
897
|
+
a: {
|
|
898
|
+
if (hasOwnProperty$1.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
899
|
+
JSCompiler_inline_result = !1;
|
|
900
|
+
break a;
|
|
901
|
+
}
|
|
902
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
903
|
+
}
|
|
904
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
905
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
906
|
+
for (propName in config) !hasOwnProperty$1.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
907
|
+
}
|
|
908
|
+
var propName = arguments.length - 2;
|
|
909
|
+
if (1 === propName) props.children = children;
|
|
910
|
+
else if (1 < propName) {
|
|
911
|
+
JSCompiler_inline_result = Array(propName);
|
|
912
|
+
for (var i = 0; i < propName; i++) JSCompiler_inline_result[i] = arguments[i + 2];
|
|
913
|
+
props.children = JSCompiler_inline_result;
|
|
914
|
+
}
|
|
915
|
+
props = ReactElement$1(element.type, key, void 0, void 0, owner, props, element._debugStack, element._debugTask);
|
|
916
|
+
for (key = 2; key < arguments.length; key++) owner = arguments[key], isValidElement$1(owner) && owner._store && (owner._store.validated = 1);
|
|
917
|
+
return props;
|
|
918
|
+
};
|
|
919
|
+
exports.createContext = function(defaultValue) {
|
|
920
|
+
defaultValue = {
|
|
921
|
+
$$typeof: REACT_CONTEXT_TYPE$1,
|
|
922
|
+
_currentValue: defaultValue,
|
|
923
|
+
_currentValue2: defaultValue,
|
|
924
|
+
_threadCount: 0,
|
|
925
|
+
Provider: null,
|
|
926
|
+
Consumer: null
|
|
927
|
+
};
|
|
928
|
+
defaultValue.Provider = defaultValue;
|
|
929
|
+
defaultValue.Consumer = {
|
|
930
|
+
$$typeof: REACT_CONSUMER_TYPE$1,
|
|
931
|
+
_context: defaultValue
|
|
932
|
+
};
|
|
933
|
+
defaultValue._currentRenderer = null;
|
|
934
|
+
defaultValue._currentRenderer2 = null;
|
|
935
|
+
return defaultValue;
|
|
936
|
+
};
|
|
937
|
+
exports.createElement = function(type, config, children) {
|
|
938
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
939
|
+
var node = arguments[i];
|
|
940
|
+
isValidElement$1(node) && node._store && (node._store.validated = 1);
|
|
941
|
+
}
|
|
942
|
+
i = {};
|
|
943
|
+
node = null;
|
|
944
|
+
if (null != config) for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config) hasOwnProperty$1.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
945
|
+
var childrenLength = arguments.length - 2;
|
|
946
|
+
if (1 === childrenLength) i.children = children;
|
|
947
|
+
else if (1 < childrenLength) {
|
|
948
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) childArray[_i] = arguments[_i + 2];
|
|
949
|
+
Object.freeze && Object.freeze(childArray);
|
|
950
|
+
i.children = childArray;
|
|
951
|
+
}
|
|
952
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
953
|
+
node && defineKeyPropWarningGetter(i, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
954
|
+
var propName = 1e4 > ReactSharedInternals$1.recentlyCreatedOwnerStacks++;
|
|
955
|
+
return ReactElement$1(type, node, void 0, void 0, getOwner(), i, propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
956
|
+
};
|
|
957
|
+
exports.createRef = function() {
|
|
958
|
+
var refObject = { current: null };
|
|
959
|
+
Object.seal(refObject);
|
|
960
|
+
return refObject;
|
|
961
|
+
};
|
|
962
|
+
exports.forwardRef = function(render) {
|
|
963
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE$1 ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : "function" !== typeof render ? console.error("forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render) : 0 !== render.length && 2 !== render.length && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
964
|
+
null != render && null != render.defaultProps && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
965
|
+
var elementType = {
|
|
966
|
+
$$typeof: REACT_FORWARD_REF_TYPE$1,
|
|
967
|
+
render
|
|
968
|
+
}, ownName;
|
|
969
|
+
Object.defineProperty(elementType, "displayName", {
|
|
970
|
+
enumerable: !1,
|
|
971
|
+
configurable: !0,
|
|
972
|
+
get: function() {
|
|
973
|
+
return ownName;
|
|
974
|
+
},
|
|
975
|
+
set: function(name) {
|
|
976
|
+
ownName = name;
|
|
977
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
return elementType;
|
|
981
|
+
};
|
|
982
|
+
exports.isValidElement = isValidElement$1;
|
|
983
|
+
exports.lazy = function(ctor) {
|
|
984
|
+
return {
|
|
985
|
+
$$typeof: REACT_LAZY_TYPE$1,
|
|
986
|
+
_payload: {
|
|
987
|
+
_status: -1,
|
|
988
|
+
_result: ctor
|
|
989
|
+
},
|
|
990
|
+
_init: lazyInitializer$1
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
exports.memo = function(type, compare) {
|
|
994
|
+
type ?? console.error("memo: The first argument must be a component. Instead received: %s", null === type ? "null" : typeof type);
|
|
995
|
+
compare = {
|
|
996
|
+
$$typeof: REACT_MEMO_TYPE$1,
|
|
997
|
+
type,
|
|
998
|
+
compare: void 0 === compare ? null : compare
|
|
999
|
+
};
|
|
1000
|
+
var ownName;
|
|
1001
|
+
Object.defineProperty(compare, "displayName", {
|
|
1002
|
+
enumerable: !1,
|
|
1003
|
+
configurable: !0,
|
|
1004
|
+
get: function() {
|
|
1005
|
+
return ownName;
|
|
1006
|
+
},
|
|
1007
|
+
set: function(name) {
|
|
1008
|
+
ownName = name;
|
|
1009
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
return compare;
|
|
1013
|
+
};
|
|
1014
|
+
exports.startTransition = function(scope) {
|
|
1015
|
+
var prevTransition = ReactSharedInternals$1.T, currentTransition = {};
|
|
1016
|
+
ReactSharedInternals$1.T = currentTransition;
|
|
1017
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1018
|
+
try {
|
|
1019
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals$1.S;
|
|
1020
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1021
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop$2, reportGlobalError$1);
|
|
1022
|
+
} catch (error) {
|
|
1023
|
+
reportGlobalError$1(error);
|
|
1024
|
+
} finally {
|
|
1025
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), ReactSharedInternals$1.T = prevTransition;
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1029
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1030
|
+
};
|
|
1031
|
+
exports.use = function(usable) {
|
|
1032
|
+
return resolveDispatcher().use(usable);
|
|
1033
|
+
};
|
|
1034
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1035
|
+
return resolveDispatcher().useActionState(action, initialState, permalink);
|
|
1036
|
+
};
|
|
1037
|
+
exports.useCallback = function(callback, deps) {
|
|
1038
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1039
|
+
};
|
|
1040
|
+
exports.useContext = function(Context) {
|
|
1041
|
+
var dispatcher = resolveDispatcher();
|
|
1042
|
+
Context.$$typeof === REACT_CONSUMER_TYPE$1 && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
|
|
1043
|
+
return dispatcher.useContext(Context);
|
|
1044
|
+
};
|
|
1045
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
1046
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1047
|
+
};
|
|
1048
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1049
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1050
|
+
};
|
|
1051
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
1052
|
+
create ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1053
|
+
var dispatcher = resolveDispatcher();
|
|
1054
|
+
if ("function" === typeof update) throw Error("useEffect CRUD overload is not enabled in this build of React.");
|
|
1055
|
+
return dispatcher.useEffect(create, createDeps);
|
|
1056
|
+
};
|
|
1057
|
+
exports.useId = function() {
|
|
1058
|
+
return resolveDispatcher().useId();
|
|
1059
|
+
};
|
|
1060
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1061
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1062
|
+
};
|
|
1063
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
1064
|
+
create ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1065
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1066
|
+
};
|
|
1067
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
1068
|
+
create ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1069
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1070
|
+
};
|
|
1071
|
+
exports.useMemo = function(create, deps) {
|
|
1072
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1073
|
+
};
|
|
1074
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1075
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1076
|
+
};
|
|
1077
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1078
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1079
|
+
};
|
|
1080
|
+
exports.useRef = function(initialValue) {
|
|
1081
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1082
|
+
};
|
|
1083
|
+
exports.useState = function(initialState) {
|
|
1084
|
+
return resolveDispatcher().useState(initialState);
|
|
1085
|
+
};
|
|
1086
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1087
|
+
return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1088
|
+
};
|
|
1089
|
+
exports.useTransition = function() {
|
|
1090
|
+
return resolveDispatcher().useTransition();
|
|
1091
|
+
};
|
|
1092
|
+
exports.version = "19.1.0";
|
|
1093
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1094
|
+
}();
|
|
1095
|
+
} });
|
|
1096
|
+
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region ../../node_modules/.pnpm/react@19.1.0/node_modules/react/index.js
|
|
1099
|
+
var require_react = __commonJS({ "../../node_modules/.pnpm/react@19.1.0/node_modules/react/index.js"(exports, module) {
|
|
1100
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_production();
|
|
1101
|
+
else module.exports = require_react_development();
|
|
1102
|
+
} });
|
|
1103
|
+
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region ../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
1106
|
+
var require__interop_require_default = __commonJS({ "../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
1107
|
+
function _interop_require_default$2(obj) {
|
|
1108
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1109
|
+
}
|
|
1110
|
+
exports._ = _interop_require_default$2;
|
|
1111
|
+
} });
|
|
1112
|
+
|
|
1113
|
+
//#endregion
|
|
1114
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js
|
|
1115
|
+
var require_app_router_context_shared_runtime = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"(exports) {
|
|
1116
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1117
|
+
function _export$18(target, all) {
|
|
1118
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1119
|
+
enumerable: true,
|
|
1120
|
+
get: all[name]
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
_export$18(exports, {
|
|
1124
|
+
AppRouterContext: function() {
|
|
1125
|
+
return AppRouterContext;
|
|
1126
|
+
},
|
|
1127
|
+
GlobalLayoutRouterContext: function() {
|
|
1128
|
+
return GlobalLayoutRouterContext;
|
|
1129
|
+
},
|
|
1130
|
+
LayoutRouterContext: function() {
|
|
1131
|
+
return LayoutRouterContext;
|
|
1132
|
+
},
|
|
1133
|
+
MissingSlotContext: function() {
|
|
1134
|
+
return MissingSlotContext;
|
|
1135
|
+
},
|
|
1136
|
+
TemplateContext: function() {
|
|
1137
|
+
return TemplateContext;
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
const _interop_require_default$1 = require__interop_require_default();
|
|
1141
|
+
const _react$4 = /* @__PURE__ */ _interop_require_default$1._(require_react());
|
|
1142
|
+
const AppRouterContext = _react$4.default.createContext(null);
|
|
1143
|
+
const LayoutRouterContext = _react$4.default.createContext(null);
|
|
1144
|
+
const GlobalLayoutRouterContext = _react$4.default.createContext(null);
|
|
1145
|
+
const TemplateContext = _react$4.default.createContext(null);
|
|
1146
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1147
|
+
AppRouterContext.displayName = "AppRouterContext";
|
|
1148
|
+
LayoutRouterContext.displayName = "LayoutRouterContext";
|
|
1149
|
+
GlobalLayoutRouterContext.displayName = "GlobalLayoutRouterContext";
|
|
1150
|
+
TemplateContext.displayName = "TemplateContext";
|
|
1151
|
+
}
|
|
1152
|
+
const MissingSlotContext = _react$4.default.createContext(/* @__PURE__ */ new Set());
|
|
1153
|
+
} });
|
|
1154
|
+
|
|
1155
|
+
//#endregion
|
|
1156
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js
|
|
1157
|
+
var require_hooks_client_context_shared_runtime = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js"(exports) {
|
|
1158
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1159
|
+
function _export$17(target, all) {
|
|
1160
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
get: all[name]
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
_export$17(exports, {
|
|
1166
|
+
PathParamsContext: function() {
|
|
1167
|
+
return PathParamsContext;
|
|
1168
|
+
},
|
|
1169
|
+
PathnameContext: function() {
|
|
1170
|
+
return PathnameContext;
|
|
1171
|
+
},
|
|
1172
|
+
SearchParamsContext: function() {
|
|
1173
|
+
return SearchParamsContext;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
const _react$3 = require_react();
|
|
1177
|
+
const SearchParamsContext = (0, _react$3.createContext)(null);
|
|
1178
|
+
const PathnameContext = (0, _react$3.createContext)(null);
|
|
1179
|
+
const PathParamsContext = (0, _react$3.createContext)(null);
|
|
1180
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1181
|
+
SearchParamsContext.displayName = "SearchParamsContext";
|
|
1182
|
+
PathnameContext.displayName = "PathnameContext";
|
|
1183
|
+
PathParamsContext.displayName = "PathParamsContext";
|
|
1184
|
+
}
|
|
1185
|
+
} });
|
|
1186
|
+
|
|
1187
|
+
//#endregion
|
|
1188
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js
|
|
1189
|
+
var require_get_segment_value = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js"(exports, module) {
|
|
1190
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1191
|
+
Object.defineProperty(exports, "getSegmentValue", {
|
|
1192
|
+
enumerable: true,
|
|
1193
|
+
get: function() {
|
|
1194
|
+
return getSegmentValue;
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
function getSegmentValue(segment) {
|
|
1198
|
+
return Array.isArray(segment) ? segment[1] : segment;
|
|
1199
|
+
}
|
|
1200
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1201
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1202
|
+
Object.assign(exports.default, exports);
|
|
1203
|
+
module.exports = exports.default;
|
|
1204
|
+
}
|
|
1205
|
+
} });
|
|
1206
|
+
|
|
1207
|
+
//#endregion
|
|
1208
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.js
|
|
1209
|
+
var require_segment = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.js"(exports) {
|
|
1210
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1211
|
+
function _export$16(target, all) {
|
|
1212
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1213
|
+
enumerable: true,
|
|
1214
|
+
get: all[name]
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
_export$16(exports, {
|
|
1218
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
1219
|
+
return DEFAULT_SEGMENT_KEY;
|
|
1220
|
+
},
|
|
1221
|
+
PAGE_SEGMENT_KEY: function() {
|
|
1222
|
+
return PAGE_SEGMENT_KEY;
|
|
1223
|
+
},
|
|
1224
|
+
addSearchParamsIfPageSegment: function() {
|
|
1225
|
+
return addSearchParamsIfPageSegment;
|
|
1226
|
+
},
|
|
1227
|
+
isGroupSegment: function() {
|
|
1228
|
+
return isGroupSegment;
|
|
1229
|
+
},
|
|
1230
|
+
isParallelRouteSegment: function() {
|
|
1231
|
+
return isParallelRouteSegment;
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
function isGroupSegment(segment) {
|
|
1235
|
+
return segment[0] === "(" && segment.endsWith(")");
|
|
1236
|
+
}
|
|
1237
|
+
function isParallelRouteSegment(segment) {
|
|
1238
|
+
return segment.startsWith("@") && segment !== "@children";
|
|
1239
|
+
}
|
|
1240
|
+
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
1241
|
+
const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
|
|
1242
|
+
if (isPageSegment) {
|
|
1243
|
+
const stringifiedQuery = JSON.stringify(searchParams);
|
|
1244
|
+
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
1245
|
+
}
|
|
1246
|
+
return segment;
|
|
1247
|
+
}
|
|
1248
|
+
const PAGE_SEGMENT_KEY = "__PAGE__";
|
|
1249
|
+
const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
1250
|
+
} });
|
|
1251
|
+
|
|
1252
|
+
//#endregion
|
|
1253
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.js
|
|
1254
|
+
var require_redirect_status_code = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.js"(exports, module) {
|
|
1255
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1256
|
+
Object.defineProperty(exports, "RedirectStatusCode", {
|
|
1257
|
+
enumerable: true,
|
|
1258
|
+
get: function() {
|
|
1259
|
+
return RedirectStatusCode;
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
var RedirectStatusCode = /* @__PURE__ */ function(RedirectStatusCode$1) {
|
|
1263
|
+
RedirectStatusCode$1[RedirectStatusCode$1["SeeOther"] = 303] = "SeeOther";
|
|
1264
|
+
RedirectStatusCode$1[RedirectStatusCode$1["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
1265
|
+
RedirectStatusCode$1[RedirectStatusCode$1["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
1266
|
+
return RedirectStatusCode$1;
|
|
1267
|
+
}({});
|
|
1268
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1269
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1270
|
+
Object.assign(exports.default, exports);
|
|
1271
|
+
module.exports = exports.default;
|
|
1272
|
+
}
|
|
1273
|
+
} });
|
|
1274
|
+
|
|
1275
|
+
//#endregion
|
|
1276
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.js
|
|
1277
|
+
var require_redirect_error = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.js"(exports, module) {
|
|
1278
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1279
|
+
function _export$15(target, all) {
|
|
1280
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1281
|
+
enumerable: true,
|
|
1282
|
+
get: all[name]
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
_export$15(exports, {
|
|
1286
|
+
REDIRECT_ERROR_CODE: function() {
|
|
1287
|
+
return REDIRECT_ERROR_CODE$1;
|
|
1288
|
+
},
|
|
1289
|
+
RedirectType: function() {
|
|
1290
|
+
return RedirectType;
|
|
1291
|
+
},
|
|
1292
|
+
isRedirectError: function() {
|
|
1293
|
+
return isRedirectError$1;
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1296
|
+
const _redirectstatuscode$1 = require_redirect_status_code();
|
|
1297
|
+
const REDIRECT_ERROR_CODE$1 = "NEXT_REDIRECT";
|
|
1298
|
+
var RedirectType = /* @__PURE__ */ function(RedirectType$1) {
|
|
1299
|
+
RedirectType$1["push"] = "push";
|
|
1300
|
+
RedirectType$1["replace"] = "replace";
|
|
1301
|
+
return RedirectType$1;
|
|
1302
|
+
}({});
|
|
1303
|
+
function isRedirectError$1(error) {
|
|
1304
|
+
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") return false;
|
|
1305
|
+
const digest = error.digest.split(";");
|
|
1306
|
+
const [errorCode, type] = digest;
|
|
1307
|
+
const destination = digest.slice(2, -2).join(";");
|
|
1308
|
+
const status = digest.at(-2);
|
|
1309
|
+
const statusCode = Number(status);
|
|
1310
|
+
return errorCode === REDIRECT_ERROR_CODE$1 && (type === "replace" || type === "push") && typeof destination === "string" && !isNaN(statusCode) && statusCode in _redirectstatuscode$1.RedirectStatusCode;
|
|
1311
|
+
}
|
|
1312
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1313
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1314
|
+
Object.assign(exports.default, exports);
|
|
1315
|
+
module.exports = exports.default;
|
|
1316
|
+
}
|
|
1317
|
+
} });
|
|
1318
|
+
|
|
1319
|
+
//#endregion
|
|
1320
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
1321
|
+
var require_async_local_storage = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
|
|
1322
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1323
|
+
function _export$14(target, all) {
|
|
1324
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1325
|
+
enumerable: true,
|
|
1326
|
+
get: all[name]
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
_export$14(exports, {
|
|
1330
|
+
bindSnapshot: function() {
|
|
1331
|
+
return bindSnapshot;
|
|
1332
|
+
},
|
|
1333
|
+
createAsyncLocalStorage: function() {
|
|
1334
|
+
return createAsyncLocalStorage;
|
|
1335
|
+
},
|
|
1336
|
+
createSnapshot: function() {
|
|
1337
|
+
return createSnapshot;
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
const sharedAsyncLocalStorageNotAvailableError = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
1341
|
+
value: "E504",
|
|
1342
|
+
enumerable: false,
|
|
1343
|
+
configurable: true
|
|
1344
|
+
});
|
|
1345
|
+
var FakeAsyncLocalStorage = class {
|
|
1346
|
+
disable() {
|
|
1347
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
1348
|
+
}
|
|
1349
|
+
getStore() {
|
|
1350
|
+
return void 0;
|
|
1351
|
+
}
|
|
1352
|
+
run() {
|
|
1353
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
1354
|
+
}
|
|
1355
|
+
exit() {
|
|
1356
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
1357
|
+
}
|
|
1358
|
+
enterWith() {
|
|
1359
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
1360
|
+
}
|
|
1361
|
+
static bind(fn) {
|
|
1362
|
+
return fn;
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
const maybeGlobalAsyncLocalStorage = typeof globalThis !== "undefined" && globalThis.AsyncLocalStorage;
|
|
1366
|
+
function createAsyncLocalStorage() {
|
|
1367
|
+
if (maybeGlobalAsyncLocalStorage) return new maybeGlobalAsyncLocalStorage();
|
|
1368
|
+
return new FakeAsyncLocalStorage();
|
|
1369
|
+
}
|
|
1370
|
+
function bindSnapshot(fn) {
|
|
1371
|
+
if (maybeGlobalAsyncLocalStorage) return maybeGlobalAsyncLocalStorage.bind(fn);
|
|
1372
|
+
return FakeAsyncLocalStorage.bind(fn);
|
|
1373
|
+
}
|
|
1374
|
+
function createSnapshot() {
|
|
1375
|
+
if (maybeGlobalAsyncLocalStorage) return maybeGlobalAsyncLocalStorage.snapshot();
|
|
1376
|
+
return function(fn, ...args) {
|
|
1377
|
+
return fn(...args);
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
} });
|
|
1381
|
+
|
|
1382
|
+
//#endregion
|
|
1383
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.js
|
|
1384
|
+
var require_action_async_storage_instance = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.js"(exports) {
|
|
1385
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1386
|
+
Object.defineProperty(exports, "actionAsyncStorageInstance", {
|
|
1387
|
+
enumerable: true,
|
|
1388
|
+
get: function() {
|
|
1389
|
+
return actionAsyncStorageInstance;
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
const _asynclocalstorage$2 = require_async_local_storage();
|
|
1393
|
+
const actionAsyncStorageInstance = (0, _asynclocalstorage$2.createAsyncLocalStorage)();
|
|
1394
|
+
} });
|
|
1395
|
+
|
|
1396
|
+
//#endregion
|
|
1397
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.js
|
|
1398
|
+
var require_action_async_storage_external = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.js"(exports) {
|
|
1399
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1400
|
+
Object.defineProperty(exports, "actionAsyncStorage", {
|
|
1401
|
+
enumerable: true,
|
|
1402
|
+
get: function() {
|
|
1403
|
+
return _actionasyncstorageinstance.actionAsyncStorageInstance;
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
const _actionasyncstorageinstance = require_action_async_storage_instance();
|
|
1407
|
+
} });
|
|
1408
|
+
|
|
1409
|
+
//#endregion
|
|
1410
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.js
|
|
1411
|
+
var require_redirect = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.js"(exports, module) {
|
|
1412
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1413
|
+
function _export$13(target, all) {
|
|
1414
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1415
|
+
enumerable: true,
|
|
1416
|
+
get: all[name]
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
_export$13(exports, {
|
|
1420
|
+
getRedirectError: function() {
|
|
1421
|
+
return getRedirectError;
|
|
1422
|
+
},
|
|
1423
|
+
getRedirectStatusCodeFromError: function() {
|
|
1424
|
+
return getRedirectStatusCodeFromError;
|
|
1425
|
+
},
|
|
1426
|
+
getRedirectTypeFromError: function() {
|
|
1427
|
+
return getRedirectTypeFromError;
|
|
1428
|
+
},
|
|
1429
|
+
getURLFromRedirectError: function() {
|
|
1430
|
+
return getURLFromRedirectError;
|
|
1431
|
+
},
|
|
1432
|
+
permanentRedirect: function() {
|
|
1433
|
+
return permanentRedirect;
|
|
1434
|
+
},
|
|
1435
|
+
redirect: function() {
|
|
1436
|
+
return redirect$1;
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
const _redirectstatuscode = require_redirect_status_code();
|
|
1440
|
+
const _redirecterror$2 = require_redirect_error();
|
|
1441
|
+
const actionAsyncStorage = typeof window === "undefined" ? require_action_async_storage_external().actionAsyncStorage : void 0;
|
|
1442
|
+
function getRedirectError(url, type, statusCode) {
|
|
1443
|
+
if (statusCode === void 0) statusCode = _redirectstatuscode.RedirectStatusCode.TemporaryRedirect;
|
|
1444
|
+
const error = Object.defineProperty(new Error(_redirecterror$2.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
|
1445
|
+
value: "E394",
|
|
1446
|
+
enumerable: false,
|
|
1447
|
+
configurable: true
|
|
1448
|
+
});
|
|
1449
|
+
error.digest = _redirecterror$2.REDIRECT_ERROR_CODE + ";" + type + ";" + url + ";" + statusCode + ";";
|
|
1450
|
+
return error;
|
|
1451
|
+
}
|
|
1452
|
+
function redirect$1(url, type) {
|
|
1453
|
+
var _actionAsyncStorage_getStore;
|
|
1454
|
+
type != null || (type = (actionAsyncStorage == null ? void 0 : (_actionAsyncStorage_getStore = actionAsyncStorage.getStore()) == null ? void 0 : _actionAsyncStorage_getStore.isAction) ? _redirecterror$2.RedirectType.push : _redirecterror$2.RedirectType.replace);
|
|
1455
|
+
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.TemporaryRedirect);
|
|
1456
|
+
}
|
|
1457
|
+
function permanentRedirect(url, type) {
|
|
1458
|
+
if (type === void 0) type = _redirecterror$2.RedirectType.replace;
|
|
1459
|
+
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.PermanentRedirect);
|
|
1460
|
+
}
|
|
1461
|
+
function getURLFromRedirectError(error) {
|
|
1462
|
+
if (!(0, _redirecterror$2.isRedirectError)(error)) return null;
|
|
1463
|
+
return error.digest.split(";").slice(2, -2).join(";");
|
|
1464
|
+
}
|
|
1465
|
+
function getRedirectTypeFromError(error) {
|
|
1466
|
+
if (!(0, _redirecterror$2.isRedirectError)(error)) throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
1467
|
+
value: "E260",
|
|
1468
|
+
enumerable: false,
|
|
1469
|
+
configurable: true
|
|
1470
|
+
});
|
|
1471
|
+
return error.digest.split(";", 2)[1];
|
|
1472
|
+
}
|
|
1473
|
+
function getRedirectStatusCodeFromError(error) {
|
|
1474
|
+
if (!(0, _redirecterror$2.isRedirectError)(error)) throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
1475
|
+
value: "E260",
|
|
1476
|
+
enumerable: false,
|
|
1477
|
+
configurable: true
|
|
1478
|
+
});
|
|
1479
|
+
return Number(error.digest.split(";").at(-2));
|
|
1480
|
+
}
|
|
1481
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1482
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1483
|
+
Object.assign(exports.default, exports);
|
|
1484
|
+
module.exports = exports.default;
|
|
1485
|
+
}
|
|
1486
|
+
} });
|
|
1487
|
+
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js
|
|
1490
|
+
var require_http_access_fallback = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js"(exports, module) {
|
|
1491
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1492
|
+
function _export$12(target, all) {
|
|
1493
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1494
|
+
enumerable: true,
|
|
1495
|
+
get: all[name]
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
_export$12(exports, {
|
|
1499
|
+
HTTPAccessErrorStatus: function() {
|
|
1500
|
+
return HTTPAccessErrorStatus;
|
|
1501
|
+
},
|
|
1502
|
+
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
|
1503
|
+
return HTTP_ERROR_FALLBACK_ERROR_CODE;
|
|
1504
|
+
},
|
|
1505
|
+
getAccessFallbackErrorTypeByStatus: function() {
|
|
1506
|
+
return getAccessFallbackErrorTypeByStatus;
|
|
1507
|
+
},
|
|
1508
|
+
getAccessFallbackHTTPStatus: function() {
|
|
1509
|
+
return getAccessFallbackHTTPStatus;
|
|
1510
|
+
},
|
|
1511
|
+
isHTTPAccessFallbackError: function() {
|
|
1512
|
+
return isHTTPAccessFallbackError;
|
|
1513
|
+
}
|
|
1514
|
+
});
|
|
1515
|
+
const HTTPAccessErrorStatus = {
|
|
1516
|
+
NOT_FOUND: 404,
|
|
1517
|
+
FORBIDDEN: 403,
|
|
1518
|
+
UNAUTHORIZED: 401
|
|
1519
|
+
};
|
|
1520
|
+
const ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
|
|
1521
|
+
const HTTP_ERROR_FALLBACK_ERROR_CODE = "NEXT_HTTP_ERROR_FALLBACK";
|
|
1522
|
+
function isHTTPAccessFallbackError(error) {
|
|
1523
|
+
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") return false;
|
|
1524
|
+
const [prefix, httpStatus] = error.digest.split(";");
|
|
1525
|
+
return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
|
|
1526
|
+
}
|
|
1527
|
+
function getAccessFallbackHTTPStatus(error) {
|
|
1528
|
+
const httpStatus = error.digest.split(";")[1];
|
|
1529
|
+
return Number(httpStatus);
|
|
1530
|
+
}
|
|
1531
|
+
function getAccessFallbackErrorTypeByStatus(status) {
|
|
1532
|
+
switch (status) {
|
|
1533
|
+
case 401: return "unauthorized";
|
|
1534
|
+
case 403: return "forbidden";
|
|
1535
|
+
case 404: return "not-found";
|
|
1536
|
+
default: return;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1540
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1541
|
+
Object.assign(exports.default, exports);
|
|
1542
|
+
module.exports = exports.default;
|
|
1543
|
+
}
|
|
1544
|
+
} });
|
|
1545
|
+
|
|
1546
|
+
//#endregion
|
|
1547
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.js
|
|
1548
|
+
var require_not_found = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.js"(exports, module) {
|
|
1549
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1550
|
+
Object.defineProperty(exports, "notFound", {
|
|
1551
|
+
enumerable: true,
|
|
1552
|
+
get: function() {
|
|
1553
|
+
return notFound$1;
|
|
1554
|
+
}
|
|
1555
|
+
});
|
|
1556
|
+
const _httpaccessfallback$3 = require_http_access_fallback();
|
|
1557
|
+
/**
|
|
1558
|
+
* This function allows you to render the [not-found.js file](https://nextjs.org/docs/app/api-reference/file-conventions/not-found)
|
|
1559
|
+
* within a route segment as well as inject a tag.
|
|
1560
|
+
*
|
|
1561
|
+
* `notFound()` can be used in
|
|
1562
|
+
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
|
1563
|
+
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
|
1564
|
+
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
|
1565
|
+
*
|
|
1566
|
+
* - In a Server Component, this will insert a `<meta name="robots" content="noindex" />` meta tag and set the status code to 404.
|
|
1567
|
+
* - In a Route Handler or Server Action, it will serve a 404 to the caller.
|
|
1568
|
+
*
|
|
1569
|
+
* Read more: [Next.js Docs: `notFound`](https://nextjs.org/docs/app/api-reference/functions/not-found)
|
|
1570
|
+
*/ const DIGEST$2 = "" + _httpaccessfallback$3.HTTP_ERROR_FALLBACK_ERROR_CODE + ";404";
|
|
1571
|
+
function notFound$1() {
|
|
1572
|
+
const error = Object.defineProperty(new Error(DIGEST$2), "__NEXT_ERROR_CODE", {
|
|
1573
|
+
value: "E394",
|
|
1574
|
+
enumerable: false,
|
|
1575
|
+
configurable: true
|
|
1576
|
+
});
|
|
1577
|
+
error.digest = DIGEST$2;
|
|
1578
|
+
throw error;
|
|
1579
|
+
}
|
|
1580
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1581
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1582
|
+
Object.assign(exports.default, exports);
|
|
1583
|
+
module.exports = exports.default;
|
|
1584
|
+
}
|
|
1585
|
+
} });
|
|
1586
|
+
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.js
|
|
1589
|
+
var require_forbidden = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.js"(exports, module) {
|
|
1590
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1591
|
+
Object.defineProperty(exports, "forbidden", {
|
|
1592
|
+
enumerable: true,
|
|
1593
|
+
get: function() {
|
|
1594
|
+
return forbidden;
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
const _httpaccessfallback$2 = require_http_access_fallback();
|
|
1598
|
+
/**
|
|
1599
|
+
* @experimental
|
|
1600
|
+
* This function allows you to render the [forbidden.js file](https://nextjs.org/docs/app/api-reference/file-conventions/forbidden)
|
|
1601
|
+
* within a route segment as well as inject a tag.
|
|
1602
|
+
*
|
|
1603
|
+
* `forbidden()` can be used in
|
|
1604
|
+
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
|
1605
|
+
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
|
1606
|
+
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
|
1607
|
+
*
|
|
1608
|
+
* Read more: [Next.js Docs: `forbidden`](https://nextjs.org/docs/app/api-reference/functions/forbidden)
|
|
1609
|
+
*/ const DIGEST$1 = "" + _httpaccessfallback$2.HTTP_ERROR_FALLBACK_ERROR_CODE + ";403";
|
|
1610
|
+
function forbidden() {
|
|
1611
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) throw Object.defineProperty(new Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
|
1612
|
+
value: "E488",
|
|
1613
|
+
enumerable: false,
|
|
1614
|
+
configurable: true
|
|
1615
|
+
});
|
|
1616
|
+
const error = Object.defineProperty(new Error(DIGEST$1), "__NEXT_ERROR_CODE", {
|
|
1617
|
+
value: "E394",
|
|
1618
|
+
enumerable: false,
|
|
1619
|
+
configurable: true
|
|
1620
|
+
});
|
|
1621
|
+
error.digest = DIGEST$1;
|
|
1622
|
+
throw error;
|
|
1623
|
+
}
|
|
1624
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1625
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1626
|
+
Object.assign(exports.default, exports);
|
|
1627
|
+
module.exports = exports.default;
|
|
1628
|
+
}
|
|
1629
|
+
} });
|
|
1630
|
+
|
|
1631
|
+
//#endregion
|
|
1632
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.js
|
|
1633
|
+
var require_unauthorized = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.js"(exports, module) {
|
|
1634
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1635
|
+
Object.defineProperty(exports, "unauthorized", {
|
|
1636
|
+
enumerable: true,
|
|
1637
|
+
get: function() {
|
|
1638
|
+
return unauthorized;
|
|
1639
|
+
}
|
|
1640
|
+
});
|
|
1641
|
+
const _httpaccessfallback$1 = require_http_access_fallback();
|
|
1642
|
+
/**
|
|
1643
|
+
* @experimental
|
|
1644
|
+
* This function allows you to render the [unauthorized.js file](https://nextjs.org/docs/app/api-reference/file-conventions/unauthorized)
|
|
1645
|
+
* within a route segment as well as inject a tag.
|
|
1646
|
+
*
|
|
1647
|
+
* `unauthorized()` can be used in
|
|
1648
|
+
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
|
1649
|
+
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
|
1650
|
+
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
|
1651
|
+
*
|
|
1652
|
+
*
|
|
1653
|
+
* Read more: [Next.js Docs: `unauthorized`](https://nextjs.org/docs/app/api-reference/functions/unauthorized)
|
|
1654
|
+
*/ const DIGEST = "" + _httpaccessfallback$1.HTTP_ERROR_FALLBACK_ERROR_CODE + ";401";
|
|
1655
|
+
function unauthorized() {
|
|
1656
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) throw Object.defineProperty(new Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
|
1657
|
+
value: "E411",
|
|
1658
|
+
enumerable: false,
|
|
1659
|
+
configurable: true
|
|
1660
|
+
});
|
|
1661
|
+
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
|
1662
|
+
value: "E394",
|
|
1663
|
+
enumerable: false,
|
|
1664
|
+
configurable: true
|
|
1665
|
+
});
|
|
1666
|
+
error.digest = DIGEST;
|
|
1667
|
+
throw error;
|
|
1668
|
+
}
|
|
1669
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1670
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1671
|
+
Object.assign(exports.default, exports);
|
|
1672
|
+
module.exports = exports.default;
|
|
1673
|
+
}
|
|
1674
|
+
} });
|
|
1675
|
+
|
|
1676
|
+
//#endregion
|
|
1677
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
1678
|
+
var require_dynamic_rendering_utils = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
|
|
1679
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1680
|
+
function _export$11(target, all) {
|
|
1681
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1682
|
+
enumerable: true,
|
|
1683
|
+
get: all[name]
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
_export$11(exports, {
|
|
1687
|
+
isHangingPromiseRejectionError: function() {
|
|
1688
|
+
return isHangingPromiseRejectionError;
|
|
1689
|
+
},
|
|
1690
|
+
makeHangingPromise: function() {
|
|
1691
|
+
return makeHangingPromise;
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
function isHangingPromiseRejectionError(err) {
|
|
1695
|
+
if (typeof err !== "object" || err === null || !("digest" in err)) return false;
|
|
1696
|
+
return err.digest === HANGING_PROMISE_REJECTION;
|
|
1697
|
+
}
|
|
1698
|
+
const HANGING_PROMISE_REJECTION = "HANGING_PROMISE_REJECTION";
|
|
1699
|
+
var HangingPromiseRejectionError = class extends Error {
|
|
1700
|
+
constructor(expression) {
|
|
1701
|
+
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`), this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
|
1702
|
+
}
|
|
1703
|
+
};
|
|
1704
|
+
const abortListenersBySignal = /* @__PURE__ */ new WeakMap();
|
|
1705
|
+
function makeHangingPromise(signal, expression) {
|
|
1706
|
+
if (signal.aborted) return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
1707
|
+
else {
|
|
1708
|
+
const hangingPromise = new Promise((_, reject) => {
|
|
1709
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
1710
|
+
let currentListeners = abortListenersBySignal.get(signal);
|
|
1711
|
+
if (currentListeners) currentListeners.push(boundRejection);
|
|
1712
|
+
else {
|
|
1713
|
+
const listeners = [boundRejection];
|
|
1714
|
+
abortListenersBySignal.set(signal, listeners);
|
|
1715
|
+
signal.addEventListener("abort", () => {
|
|
1716
|
+
for (let i = 0; i < listeners.length; i++) listeners[i]();
|
|
1717
|
+
}, { once: true });
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
hangingPromise.catch(ignoreReject);
|
|
1721
|
+
return hangingPromise;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
function ignoreReject() {}
|
|
1725
|
+
} });
|
|
1726
|
+
|
|
1727
|
+
//#endregion
|
|
1728
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.js
|
|
1729
|
+
var require_is_postpone = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.js"(exports) {
|
|
1730
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1731
|
+
Object.defineProperty(exports, "isPostpone", {
|
|
1732
|
+
enumerable: true,
|
|
1733
|
+
get: function() {
|
|
1734
|
+
return isPostpone;
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
const REACT_POSTPONE_TYPE = Symbol.for("react.postpone");
|
|
1738
|
+
function isPostpone(error) {
|
|
1739
|
+
return typeof error === "object" && error !== null && error.$$typeof === REACT_POSTPONE_TYPE;
|
|
1740
|
+
}
|
|
1741
|
+
} });
|
|
1742
|
+
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js
|
|
1745
|
+
var require_bailout_to_csr = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js"(exports) {
|
|
1746
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1747
|
+
function _export$10(target, all) {
|
|
1748
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1749
|
+
enumerable: true,
|
|
1750
|
+
get: all[name]
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
_export$10(exports, {
|
|
1754
|
+
BailoutToCSRError: function() {
|
|
1755
|
+
return BailoutToCSRError;
|
|
1756
|
+
},
|
|
1757
|
+
isBailoutToCSRError: function() {
|
|
1758
|
+
return isBailoutToCSRError;
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
const BAILOUT_TO_CSR = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
1762
|
+
var BailoutToCSRError = class extends Error {
|
|
1763
|
+
constructor(reason) {
|
|
1764
|
+
super("Bail out to client-side rendering: " + reason), this.reason = reason, this.digest = BAILOUT_TO_CSR;
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
function isBailoutToCSRError(err) {
|
|
1768
|
+
if (typeof err !== "object" || err === null || !("digest" in err)) return false;
|
|
1769
|
+
return err.digest === BAILOUT_TO_CSR;
|
|
1770
|
+
}
|
|
1771
|
+
} });
|
|
1772
|
+
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.js
|
|
1775
|
+
var require_is_next_router_error = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.js"(exports, module) {
|
|
1776
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1777
|
+
Object.defineProperty(exports, "isNextRouterError", {
|
|
1778
|
+
enumerable: true,
|
|
1779
|
+
get: function() {
|
|
1780
|
+
return isNextRouterError;
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
const _httpaccessfallback = require_http_access_fallback();
|
|
1784
|
+
const _redirecterror$1 = require_redirect_error();
|
|
1785
|
+
function isNextRouterError(error) {
|
|
1786
|
+
return (0, _redirecterror$1.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
|
|
1787
|
+
}
|
|
1788
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1789
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1790
|
+
Object.assign(exports.default, exports);
|
|
1791
|
+
module.exports = exports.default;
|
|
1792
|
+
}
|
|
1793
|
+
} });
|
|
1794
|
+
|
|
1795
|
+
//#endregion
|
|
1796
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js
|
|
1797
|
+
var require_hooks_server_context = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
|
|
1798
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1799
|
+
function _export$9(target, all) {
|
|
1800
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1801
|
+
enumerable: true,
|
|
1802
|
+
get: all[name]
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
_export$9(exports, {
|
|
1806
|
+
DynamicServerError: function() {
|
|
1807
|
+
return DynamicServerError;
|
|
1808
|
+
},
|
|
1809
|
+
isDynamicServerError: function() {
|
|
1810
|
+
return isDynamicServerError;
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
const DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
1814
|
+
var DynamicServerError = class extends Error {
|
|
1815
|
+
constructor(description) {
|
|
1816
|
+
super("Dynamic server usage: " + description), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1819
|
+
function isDynamicServerError(err) {
|
|
1820
|
+
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") return false;
|
|
1821
|
+
return err.digest === DYNAMIC_ERROR_CODE;
|
|
1822
|
+
}
|
|
1823
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1824
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1825
|
+
Object.assign(exports.default, exports);
|
|
1826
|
+
module.exports = exports.default;
|
|
1827
|
+
}
|
|
1828
|
+
} });
|
|
1829
|
+
|
|
1830
|
+
//#endregion
|
|
1831
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
1832
|
+
var require_static_generation_bailout = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
|
|
1833
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1834
|
+
function _export$8(target, all) {
|
|
1835
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1836
|
+
enumerable: true,
|
|
1837
|
+
get: all[name]
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
_export$8(exports, {
|
|
1841
|
+
StaticGenBailoutError: function() {
|
|
1842
|
+
return StaticGenBailoutError;
|
|
1843
|
+
},
|
|
1844
|
+
isStaticGenBailoutError: function() {
|
|
1845
|
+
return isStaticGenBailoutError;
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
1848
|
+
const NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
1849
|
+
var StaticGenBailoutError = class extends Error {
|
|
1850
|
+
constructor(...args) {
|
|
1851
|
+
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
function isStaticGenBailoutError(error) {
|
|
1855
|
+
if (typeof error !== "object" || error === null || !("code" in error)) return false;
|
|
1856
|
+
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
1857
|
+
}
|
|
1858
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1859
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1860
|
+
Object.assign(exports.default, exports);
|
|
1861
|
+
module.exports = exports.default;
|
|
1862
|
+
}
|
|
1863
|
+
} });
|
|
1864
|
+
|
|
1865
|
+
//#endregion
|
|
1866
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
1867
|
+
var require_work_unit_async_storage_instance = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
|
|
1868
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1869
|
+
Object.defineProperty(exports, "workUnitAsyncStorageInstance", {
|
|
1870
|
+
enumerable: true,
|
|
1871
|
+
get: function() {
|
|
1872
|
+
return workUnitAsyncStorageInstance;
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
const _asynclocalstorage$1 = require_async_local_storage();
|
|
1876
|
+
const workUnitAsyncStorageInstance = (0, _asynclocalstorage$1.createAsyncLocalStorage)();
|
|
1877
|
+
} });
|
|
1878
|
+
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js
|
|
1881
|
+
var require_app_router_headers = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
|
|
1882
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1883
|
+
function _export$7(target, all) {
|
|
1884
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1885
|
+
enumerable: true,
|
|
1886
|
+
get: all[name]
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
_export$7(exports, {
|
|
1890
|
+
ACTION_HEADER: function() {
|
|
1891
|
+
return ACTION_HEADER;
|
|
1892
|
+
},
|
|
1893
|
+
FLIGHT_HEADERS: function() {
|
|
1894
|
+
return FLIGHT_HEADERS;
|
|
1895
|
+
},
|
|
1896
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
1897
|
+
return NEXT_DID_POSTPONE_HEADER;
|
|
1898
|
+
},
|
|
1899
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
1900
|
+
return NEXT_HMR_REFRESH_HASH_COOKIE;
|
|
1901
|
+
},
|
|
1902
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
1903
|
+
return NEXT_HMR_REFRESH_HEADER;
|
|
1904
|
+
},
|
|
1905
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
1906
|
+
return NEXT_IS_PRERENDER_HEADER;
|
|
1907
|
+
},
|
|
1908
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
1909
|
+
return NEXT_REWRITTEN_PATH_HEADER;
|
|
1910
|
+
},
|
|
1911
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
1912
|
+
return NEXT_REWRITTEN_QUERY_HEADER;
|
|
1913
|
+
},
|
|
1914
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
1915
|
+
return NEXT_ROUTER_PREFETCH_HEADER;
|
|
1916
|
+
},
|
|
1917
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
1918
|
+
return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER;
|
|
1919
|
+
},
|
|
1920
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
1921
|
+
return NEXT_ROUTER_STALE_TIME_HEADER;
|
|
1922
|
+
},
|
|
1923
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
1924
|
+
return NEXT_ROUTER_STATE_TREE_HEADER;
|
|
1925
|
+
},
|
|
1926
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
1927
|
+
return NEXT_RSC_UNION_QUERY;
|
|
1928
|
+
},
|
|
1929
|
+
NEXT_URL: function() {
|
|
1930
|
+
return NEXT_URL;
|
|
1931
|
+
},
|
|
1932
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
1933
|
+
return RSC_CONTENT_TYPE_HEADER;
|
|
1934
|
+
},
|
|
1935
|
+
RSC_HEADER: function() {
|
|
1936
|
+
return RSC_HEADER;
|
|
1937
|
+
}
|
|
1938
|
+
});
|
|
1939
|
+
const RSC_HEADER = "RSC";
|
|
1940
|
+
const ACTION_HEADER = "Next-Action";
|
|
1941
|
+
const NEXT_ROUTER_STATE_TREE_HEADER = "Next-Router-State-Tree";
|
|
1942
|
+
const NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch";
|
|
1943
|
+
const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "Next-Router-Segment-Prefetch";
|
|
1944
|
+
const NEXT_HMR_REFRESH_HEADER = "Next-HMR-Refresh";
|
|
1945
|
+
const NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
|
|
1946
|
+
const NEXT_URL = "Next-Url";
|
|
1947
|
+
const RSC_CONTENT_TYPE_HEADER = "text/x-component";
|
|
1948
|
+
const FLIGHT_HEADERS = [
|
|
1949
|
+
RSC_HEADER,
|
|
1950
|
+
NEXT_ROUTER_STATE_TREE_HEADER,
|
|
1951
|
+
NEXT_ROUTER_PREFETCH_HEADER,
|
|
1952
|
+
NEXT_HMR_REFRESH_HEADER,
|
|
1953
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER
|
|
1954
|
+
];
|
|
1955
|
+
const NEXT_RSC_UNION_QUERY = "_rsc";
|
|
1956
|
+
const NEXT_ROUTER_STALE_TIME_HEADER = "x-nextjs-stale-time";
|
|
1957
|
+
const NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed";
|
|
1958
|
+
const NEXT_REWRITTEN_PATH_HEADER = "x-nextjs-rewritten-path";
|
|
1959
|
+
const NEXT_REWRITTEN_QUERY_HEADER = "x-nextjs-rewritten-query";
|
|
1960
|
+
const NEXT_IS_PRERENDER_HEADER = "x-nextjs-prerender";
|
|
1961
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1962
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1963
|
+
Object.assign(exports.default, exports);
|
|
1964
|
+
module.exports = exports.default;
|
|
1965
|
+
}
|
|
1966
|
+
} });
|
|
1967
|
+
|
|
1968
|
+
//#endregion
|
|
1969
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
1970
|
+
var require_work_unit_async_storage_external = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
|
|
1971
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1972
|
+
function _export$6(target, all) {
|
|
1973
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1974
|
+
enumerable: true,
|
|
1975
|
+
get: all[name]
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
_export$6(exports, {
|
|
1979
|
+
getDraftModeProviderForCacheScope: function() {
|
|
1980
|
+
return getDraftModeProviderForCacheScope;
|
|
1981
|
+
},
|
|
1982
|
+
getExpectedRequestStore: function() {
|
|
1983
|
+
return getExpectedRequestStore;
|
|
1984
|
+
},
|
|
1985
|
+
getHmrRefreshHash: function() {
|
|
1986
|
+
return getHmrRefreshHash;
|
|
1987
|
+
},
|
|
1988
|
+
getPrerenderResumeDataCache: function() {
|
|
1989
|
+
return getPrerenderResumeDataCache;
|
|
1990
|
+
},
|
|
1991
|
+
getRenderResumeDataCache: function() {
|
|
1992
|
+
return getRenderResumeDataCache;
|
|
1993
|
+
},
|
|
1994
|
+
throwForMissingRequestStore: function() {
|
|
1995
|
+
return throwForMissingRequestStore;
|
|
1996
|
+
},
|
|
1997
|
+
workUnitAsyncStorage: function() {
|
|
1998
|
+
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
const _workunitasyncstorageinstance = require_work_unit_async_storage_instance();
|
|
2002
|
+
const _approuterheaders = require_app_router_headers();
|
|
2003
|
+
function getExpectedRequestStore(callingExpression) {
|
|
2004
|
+
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
2005
|
+
if (!workUnitStore) throwForMissingRequestStore(callingExpression);
|
|
2006
|
+
switch (workUnitStore.type) {
|
|
2007
|
+
case "request": return workUnitStore;
|
|
2008
|
+
case "prerender":
|
|
2009
|
+
case "prerender-ppr":
|
|
2010
|
+
case "prerender-legacy": throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
2011
|
+
value: "E401",
|
|
2012
|
+
enumerable: false,
|
|
2013
|
+
configurable: true
|
|
2014
|
+
});
|
|
2015
|
+
case "cache": throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
2016
|
+
value: "E37",
|
|
2017
|
+
enumerable: false,
|
|
2018
|
+
configurable: true
|
|
2019
|
+
});
|
|
2020
|
+
case "unstable-cache": throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
2021
|
+
value: "E69",
|
|
2022
|
+
enumerable: false,
|
|
2023
|
+
configurable: true
|
|
2024
|
+
});
|
|
2025
|
+
default:
|
|
2026
|
+
const _exhaustiveCheck = workUnitStore;
|
|
2027
|
+
return _exhaustiveCheck;
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
function throwForMissingRequestStore(callingExpression) {
|
|
2031
|
+
throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
2032
|
+
value: "E251",
|
|
2033
|
+
enumerable: false,
|
|
2034
|
+
configurable: true
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
function getPrerenderResumeDataCache(workUnitStore) {
|
|
2038
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-ppr") return workUnitStore.prerenderResumeDataCache;
|
|
2039
|
+
return null;
|
|
2040
|
+
}
|
|
2041
|
+
function getRenderResumeDataCache(workUnitStore) {
|
|
2042
|
+
if (workUnitStore.type !== "prerender-legacy" && workUnitStore.type !== "cache" && workUnitStore.type !== "unstable-cache") {
|
|
2043
|
+
if (workUnitStore.type === "request") return workUnitStore.renderResumeDataCache;
|
|
2044
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
2045
|
+
}
|
|
2046
|
+
return null;
|
|
2047
|
+
}
|
|
2048
|
+
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
2049
|
+
var _workUnitStore_cookies_get;
|
|
2050
|
+
if (!workStore.dev) return void 0;
|
|
2051
|
+
return workUnitStore.type === "cache" || workUnitStore.type === "prerender" ? workUnitStore.hmrRefreshHash : workUnitStore.type === "request" ? (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value : void 0;
|
|
2052
|
+
}
|
|
2053
|
+
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
2054
|
+
if (workStore.isDraftMode) switch (workUnitStore.type) {
|
|
2055
|
+
case "cache":
|
|
2056
|
+
case "unstable-cache":
|
|
2057
|
+
case "request": return workUnitStore.draftMode;
|
|
2058
|
+
default: return void 0;
|
|
2059
|
+
}
|
|
2060
|
+
return void 0;
|
|
2061
|
+
}
|
|
2062
|
+
} });
|
|
2063
|
+
|
|
2064
|
+
//#endregion
|
|
2065
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
2066
|
+
var require_work_async_storage_instance = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
|
|
2067
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2068
|
+
Object.defineProperty(exports, "workAsyncStorageInstance", {
|
|
2069
|
+
enumerable: true,
|
|
2070
|
+
get: function() {
|
|
2071
|
+
return workAsyncStorageInstance;
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
const _asynclocalstorage = require_async_local_storage();
|
|
2075
|
+
const workAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
2076
|
+
} });
|
|
2077
|
+
|
|
2078
|
+
//#endregion
|
|
2079
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
2080
|
+
var require_work_async_storage_external = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
|
|
2081
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2082
|
+
Object.defineProperty(exports, "workAsyncStorage", {
|
|
2083
|
+
enumerable: true,
|
|
2084
|
+
get: function() {
|
|
2085
|
+
return _workasyncstorageinstance.workAsyncStorageInstance;
|
|
2086
|
+
}
|
|
2087
|
+
});
|
|
2088
|
+
const _workasyncstorageinstance = require_work_async_storage_instance();
|
|
2089
|
+
} });
|
|
2090
|
+
|
|
2091
|
+
//#endregion
|
|
2092
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js
|
|
2093
|
+
var require_metadata_constants = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
|
|
2094
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2095
|
+
function _export$5(target, all) {
|
|
2096
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2097
|
+
enumerable: true,
|
|
2098
|
+
get: all[name]
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
_export$5(exports, {
|
|
2102
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2103
|
+
return METADATA_BOUNDARY_NAME;
|
|
2104
|
+
},
|
|
2105
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2106
|
+
return OUTLET_BOUNDARY_NAME;
|
|
2107
|
+
},
|
|
2108
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2109
|
+
return VIEWPORT_BOUNDARY_NAME;
|
|
2110
|
+
}
|
|
2111
|
+
});
|
|
2112
|
+
const METADATA_BOUNDARY_NAME = "__next_metadata_boundary__";
|
|
2113
|
+
const VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
|
|
2114
|
+
const OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
|
|
2115
|
+
} });
|
|
2116
|
+
|
|
2117
|
+
//#endregion
|
|
2118
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js
|
|
2119
|
+
var require_scheduler = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js"(exports) {
|
|
2120
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2121
|
+
function _export$4(target, all) {
|
|
2122
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2123
|
+
enumerable: true,
|
|
2124
|
+
get: all[name]
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
_export$4(exports, {
|
|
2128
|
+
atLeastOneTask: function() {
|
|
2129
|
+
return atLeastOneTask;
|
|
2130
|
+
},
|
|
2131
|
+
scheduleImmediate: function() {
|
|
2132
|
+
return scheduleImmediate;
|
|
2133
|
+
},
|
|
2134
|
+
scheduleOnNextTick: function() {
|
|
2135
|
+
return scheduleOnNextTick;
|
|
2136
|
+
},
|
|
2137
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2138
|
+
return waitAtLeastOneReactRenderTask;
|
|
2139
|
+
}
|
|
2140
|
+
});
|
|
2141
|
+
const scheduleOnNextTick = (cb) => {
|
|
2142
|
+
Promise.resolve().then(() => {
|
|
2143
|
+
if (process.env.NEXT_RUNTIME === "edge") setTimeout(cb, 0);
|
|
2144
|
+
else process.nextTick(cb);
|
|
2145
|
+
});
|
|
2146
|
+
};
|
|
2147
|
+
const scheduleImmediate = (cb) => {
|
|
2148
|
+
if (process.env.NEXT_RUNTIME === "edge") setTimeout(cb, 0);
|
|
2149
|
+
else setImmediate(cb);
|
|
2150
|
+
};
|
|
2151
|
+
function atLeastOneTask() {
|
|
2152
|
+
return new Promise((resolve) => scheduleImmediate(resolve));
|
|
2153
|
+
}
|
|
2154
|
+
function waitAtLeastOneReactRenderTask() {
|
|
2155
|
+
if (process.env.NEXT_RUNTIME === "edge") return new Promise((r) => setTimeout(r, 0));
|
|
2156
|
+
else return new Promise((r) => setImmediate(r));
|
|
2157
|
+
}
|
|
2158
|
+
} });
|
|
2159
|
+
|
|
2160
|
+
//#endregion
|
|
2161
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
2162
|
+
var require_dynamic_rendering = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
|
|
2163
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2164
|
+
function _export$3(target, all) {
|
|
2165
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2166
|
+
enumerable: true,
|
|
2167
|
+
get: all[name]
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
_export$3(exports, {
|
|
2171
|
+
Postpone: function() {
|
|
2172
|
+
return Postpone;
|
|
2173
|
+
},
|
|
2174
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2175
|
+
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
2176
|
+
},
|
|
2177
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2178
|
+
return abortOnSynchronousPlatformIOAccess;
|
|
2179
|
+
},
|
|
2180
|
+
accessedDynamicData: function() {
|
|
2181
|
+
return accessedDynamicData;
|
|
2182
|
+
},
|
|
2183
|
+
annotateDynamicAccess: function() {
|
|
2184
|
+
return annotateDynamicAccess;
|
|
2185
|
+
},
|
|
2186
|
+
consumeDynamicAccess: function() {
|
|
2187
|
+
return consumeDynamicAccess;
|
|
2188
|
+
},
|
|
2189
|
+
createDynamicTrackingState: function() {
|
|
2190
|
+
return createDynamicTrackingState;
|
|
2191
|
+
},
|
|
2192
|
+
createDynamicValidationState: function() {
|
|
2193
|
+
return createDynamicValidationState;
|
|
2194
|
+
},
|
|
2195
|
+
createHangingInputAbortSignal: function() {
|
|
2196
|
+
return createHangingInputAbortSignal;
|
|
2197
|
+
},
|
|
2198
|
+
createPostponedAbortSignal: function() {
|
|
2199
|
+
return createPostponedAbortSignal;
|
|
2200
|
+
},
|
|
2201
|
+
formatDynamicAPIAccesses: function() {
|
|
2202
|
+
return formatDynamicAPIAccesses;
|
|
2203
|
+
},
|
|
2204
|
+
getFirstDynamicReason: function() {
|
|
2205
|
+
return getFirstDynamicReason;
|
|
2206
|
+
},
|
|
2207
|
+
isDynamicPostpone: function() {
|
|
2208
|
+
return isDynamicPostpone;
|
|
2209
|
+
},
|
|
2210
|
+
isPrerenderInterruptedError: function() {
|
|
2211
|
+
return isPrerenderInterruptedError;
|
|
2212
|
+
},
|
|
2213
|
+
markCurrentScopeAsDynamic: function() {
|
|
2214
|
+
return markCurrentScopeAsDynamic;
|
|
2215
|
+
},
|
|
2216
|
+
postponeWithTracking: function() {
|
|
2217
|
+
return postponeWithTracking;
|
|
2218
|
+
},
|
|
2219
|
+
throwIfDisallowedDynamic: function() {
|
|
2220
|
+
return throwIfDisallowedDynamic;
|
|
2221
|
+
},
|
|
2222
|
+
throwToInterruptStaticGeneration: function() {
|
|
2223
|
+
return throwToInterruptStaticGeneration;
|
|
2224
|
+
},
|
|
2225
|
+
trackAllowedDynamicAccess: function() {
|
|
2226
|
+
return trackAllowedDynamicAccess;
|
|
2227
|
+
},
|
|
2228
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2229
|
+
return trackDynamicDataInDynamicRender;
|
|
2230
|
+
},
|
|
2231
|
+
trackFallbackParamAccessed: function() {
|
|
2232
|
+
return trackFallbackParamAccessed;
|
|
2233
|
+
},
|
|
2234
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2235
|
+
return trackSynchronousPlatformIOAccessInDev;
|
|
2236
|
+
},
|
|
2237
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
2238
|
+
return trackSynchronousRequestDataAccessInDev;
|
|
2239
|
+
},
|
|
2240
|
+
useDynamicRouteParams: function() {
|
|
2241
|
+
return useDynamicRouteParams$1;
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
const _react$2 = /* @__PURE__ */ _interop_require_default(require_react());
|
|
2245
|
+
const _hooksservercontext$1 = require_hooks_server_context();
|
|
2246
|
+
const _staticgenerationbailout = require_static_generation_bailout();
|
|
2247
|
+
const _workunitasyncstorageexternal = require_work_unit_async_storage_external();
|
|
2248
|
+
const _workasyncstorageexternal$1 = require_work_async_storage_external();
|
|
2249
|
+
const _dynamicrenderingutils$1 = require_dynamic_rendering_utils();
|
|
2250
|
+
const _metadataconstants = require_metadata_constants();
|
|
2251
|
+
const _scheduler = require_scheduler();
|
|
2252
|
+
function _interop_require_default(obj) {
|
|
2253
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
2254
|
+
}
|
|
2255
|
+
const hasPostpone = typeof _react$2.default.unstable_postpone === "function";
|
|
2256
|
+
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
|
2257
|
+
return {
|
|
2258
|
+
isDebugDynamicAccesses,
|
|
2259
|
+
dynamicAccesses: [],
|
|
2260
|
+
syncDynamicExpression: void 0,
|
|
2261
|
+
syncDynamicErrorWithStack: null
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
function createDynamicValidationState() {
|
|
2265
|
+
return {
|
|
2266
|
+
hasSuspendedDynamic: false,
|
|
2267
|
+
hasDynamicMetadata: false,
|
|
2268
|
+
hasDynamicViewport: false,
|
|
2269
|
+
hasSyncDynamicErrors: false,
|
|
2270
|
+
dynamicErrors: []
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
function getFirstDynamicReason(trackingState) {
|
|
2274
|
+
var _trackingState_dynamicAccesses_;
|
|
2275
|
+
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
|
2276
|
+
}
|
|
2277
|
+
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
2278
|
+
if (workUnitStore) {
|
|
2279
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") return;
|
|
2280
|
+
}
|
|
2281
|
+
if (store.forceDynamic || store.forceStatic) return;
|
|
2282
|
+
if (store.dynamicShouldError) throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${store.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2283
|
+
value: "E553",
|
|
2284
|
+
enumerable: false,
|
|
2285
|
+
configurable: true
|
|
2286
|
+
});
|
|
2287
|
+
if (workUnitStore) {
|
|
2288
|
+
if (workUnitStore.type === "prerender-ppr") postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
2289
|
+
else if (workUnitStore.type === "prerender-legacy") {
|
|
2290
|
+
workUnitStore.revalidate = 0;
|
|
2291
|
+
const err = Object.defineProperty(new _hooksservercontext$1.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2292
|
+
value: "E550",
|
|
2293
|
+
enumerable: false,
|
|
2294
|
+
configurable: true
|
|
2295
|
+
});
|
|
2296
|
+
store.dynamicUsageDescription = expression;
|
|
2297
|
+
store.dynamicUsageStack = err.stack;
|
|
2298
|
+
throw err;
|
|
2299
|
+
} else if (process.env.NODE_ENV === "development" && workUnitStore && workUnitStore.type === "request") workUnitStore.usedDynamic = true;
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
function trackFallbackParamAccessed(store, expression) {
|
|
2303
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2304
|
+
if (!prerenderStore || prerenderStore.type !== "prerender-ppr") return;
|
|
2305
|
+
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
2306
|
+
}
|
|
2307
|
+
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
2308
|
+
const err = Object.defineProperty(new _hooksservercontext$1.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2309
|
+
value: "E558",
|
|
2310
|
+
enumerable: false,
|
|
2311
|
+
configurable: true
|
|
2312
|
+
});
|
|
2313
|
+
prerenderStore.revalidate = 0;
|
|
2314
|
+
store.dynamicUsageDescription = expression;
|
|
2315
|
+
store.dynamicUsageStack = err.stack;
|
|
2316
|
+
throw err;
|
|
2317
|
+
}
|
|
2318
|
+
function trackDynamicDataInDynamicRender(_store, workUnitStore) {
|
|
2319
|
+
if (workUnitStore) {
|
|
2320
|
+
if (workUnitStore.type === "cache" || workUnitStore.type === "unstable-cache") return;
|
|
2321
|
+
if (workUnitStore.type === "prerender" || workUnitStore.type === "prerender-legacy") workUnitStore.revalidate = 0;
|
|
2322
|
+
if (process.env.NODE_ENV === "development" && workUnitStore.type === "request") workUnitStore.usedDynamic = true;
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
2326
|
+
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
2327
|
+
const error = createPrerenderInterruptedError(reason);
|
|
2328
|
+
prerenderStore.controller.abort(error);
|
|
2329
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2330
|
+
if (dynamicTracking) dynamicTracking.dynamicAccesses.push({
|
|
2331
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2332
|
+
expression
|
|
2333
|
+
});
|
|
2334
|
+
}
|
|
2335
|
+
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2336
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2337
|
+
if (dynamicTracking) {
|
|
2338
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2339
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2340
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2344
|
+
}
|
|
2345
|
+
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
2346
|
+
requestStore.prerenderPhase = false;
|
|
2347
|
+
}
|
|
2348
|
+
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
|
2349
|
+
const prerenderSignal = prerenderStore.controller.signal;
|
|
2350
|
+
if (prerenderSignal.aborted === false) {
|
|
2351
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2352
|
+
if (dynamicTracking) {
|
|
2353
|
+
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
2354
|
+
dynamicTracking.syncDynamicExpression = expression;
|
|
2355
|
+
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
2356
|
+
if (prerenderStore.validating === true) dynamicTracking.syncDynamicLogged = true;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
2360
|
+
}
|
|
2361
|
+
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
2362
|
+
}
|
|
2363
|
+
const trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
2364
|
+
function Postpone({ reason, route }) {
|
|
2365
|
+
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2366
|
+
const dynamicTracking = prerenderStore && prerenderStore.type === "prerender-ppr" ? prerenderStore.dynamicTracking : null;
|
|
2367
|
+
postponeWithTracking(route, reason, dynamicTracking);
|
|
2368
|
+
}
|
|
2369
|
+
function postponeWithTracking(route, expression, dynamicTracking) {
|
|
2370
|
+
assertPostpone();
|
|
2371
|
+
if (dynamicTracking) dynamicTracking.dynamicAccesses.push({
|
|
2372
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2373
|
+
expression
|
|
2374
|
+
});
|
|
2375
|
+
_react$2.default.unstable_postpone(createPostponeReason(route, expression));
|
|
2376
|
+
}
|
|
2377
|
+
function createPostponeReason(route, expression) {
|
|
2378
|
+
return `Route ${route} needs to bail out of prerendering at this point because it used ${expression}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
2379
|
+
}
|
|
2380
|
+
function isDynamicPostpone(err) {
|
|
2381
|
+
if (typeof err === "object" && err !== null && typeof err.message === "string") return isDynamicPostponeReason(err.message);
|
|
2382
|
+
return false;
|
|
2383
|
+
}
|
|
2384
|
+
function isDynamicPostponeReason(reason) {
|
|
2385
|
+
return reason.includes("needs to bail out of prerendering at this point because it used") && reason.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
2386
|
+
}
|
|
2387
|
+
if (isDynamicPostponeReason(createPostponeReason("%%%", "^^^")) === false) throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2388
|
+
value: "E296",
|
|
2389
|
+
enumerable: false,
|
|
2390
|
+
configurable: true
|
|
2391
|
+
});
|
|
2392
|
+
const NEXT_PRERENDER_INTERRUPTED = "NEXT_PRERENDER_INTERRUPTED";
|
|
2393
|
+
function createPrerenderInterruptedError(message) {
|
|
2394
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2395
|
+
value: "E394",
|
|
2396
|
+
enumerable: false,
|
|
2397
|
+
configurable: true
|
|
2398
|
+
});
|
|
2399
|
+
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
|
2400
|
+
return error;
|
|
2401
|
+
}
|
|
2402
|
+
function isPrerenderInterruptedError(error) {
|
|
2403
|
+
return typeof error === "object" && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && "name" in error && "message" in error && error instanceof Error;
|
|
2404
|
+
}
|
|
2405
|
+
function accessedDynamicData(dynamicAccesses) {
|
|
2406
|
+
return dynamicAccesses.length > 0;
|
|
2407
|
+
}
|
|
2408
|
+
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
|
2409
|
+
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
|
2410
|
+
return serverDynamic.dynamicAccesses;
|
|
2411
|
+
}
|
|
2412
|
+
function formatDynamicAPIAccesses(dynamicAccesses) {
|
|
2413
|
+
return dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
2414
|
+
stack = stack.split("\n").slice(4).filter((line) => {
|
|
2415
|
+
if (line.includes("node_modules/next/")) return false;
|
|
2416
|
+
if (line.includes(" (<anonymous>)")) return false;
|
|
2417
|
+
if (line.includes(" (node:")) return false;
|
|
2418
|
+
return true;
|
|
2419
|
+
}).join("\n");
|
|
2420
|
+
return `Dynamic API Usage Debug - ${expression}:\n${stack}`;
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
function assertPostpone() {
|
|
2424
|
+
if (!hasPostpone) throw Object.defineProperty(new Error(`Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`), "__NEXT_ERROR_CODE", {
|
|
2425
|
+
value: "E224",
|
|
2426
|
+
enumerable: false,
|
|
2427
|
+
configurable: true
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
function createPostponedAbortSignal(reason) {
|
|
2431
|
+
assertPostpone();
|
|
2432
|
+
const controller = new AbortController();
|
|
2433
|
+
try {
|
|
2434
|
+
_react$2.default.unstable_postpone(reason);
|
|
2435
|
+
} catch (x) {
|
|
2436
|
+
controller.abort(x);
|
|
2437
|
+
}
|
|
2438
|
+
return controller.signal;
|
|
2439
|
+
}
|
|
2440
|
+
function createHangingInputAbortSignal(workUnitStore) {
|
|
2441
|
+
const controller = new AbortController();
|
|
2442
|
+
if (workUnitStore.cacheSignal) workUnitStore.cacheSignal.inputReady().then(() => {
|
|
2443
|
+
controller.abort();
|
|
2444
|
+
});
|
|
2445
|
+
else (0, _scheduler.scheduleOnNextTick)(() => controller.abort());
|
|
2446
|
+
return controller.signal;
|
|
2447
|
+
}
|
|
2448
|
+
function annotateDynamicAccess(expression, prerenderStore) {
|
|
2449
|
+
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
2450
|
+
if (dynamicTracking) dynamicTracking.dynamicAccesses.push({
|
|
2451
|
+
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2452
|
+
expression
|
|
2453
|
+
});
|
|
2454
|
+
}
|
|
2455
|
+
function useDynamicRouteParams$1(expression) {
|
|
2456
|
+
const workStore = _workasyncstorageexternal$1.workAsyncStorage.getStore();
|
|
2457
|
+
if (workStore && workStore.isStaticGeneration && workStore.fallbackRouteParams && workStore.fallbackRouteParams.size > 0) {
|
|
2458
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
2459
|
+
if (workUnitStore) {
|
|
2460
|
+
if (workUnitStore.type === "prerender") _react$2.default.use((0, _dynamicrenderingutils$1.makeHangingPromise)(workUnitStore.renderSignal, expression));
|
|
2461
|
+
else if (workUnitStore.type === "prerender-ppr") postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
2462
|
+
else if (workUnitStore.type === "prerender-legacy") throwToInterruptStaticGeneration(expression, workStore, workUnitStore);
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
const hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
2467
|
+
const hasMetadataRegex = new RegExp(`\\n\\s+at ${_metadataconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
2468
|
+
const hasViewportRegex = new RegExp(`\\n\\s+at ${_metadataconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
2469
|
+
const hasOutletRegex = new RegExp(`\\n\\s+at ${_metadataconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2470
|
+
function trackAllowedDynamicAccess(route, componentStack, dynamicValidation, serverDynamic, clientDynamic) {
|
|
2471
|
+
if (hasOutletRegex.test(componentStack)) return;
|
|
2472
|
+
else if (hasMetadataRegex.test(componentStack)) {
|
|
2473
|
+
dynamicValidation.hasDynamicMetadata = true;
|
|
2474
|
+
return;
|
|
2475
|
+
} else if (hasViewportRegex.test(componentStack)) {
|
|
2476
|
+
dynamicValidation.hasDynamicViewport = true;
|
|
2477
|
+
return;
|
|
2478
|
+
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
2479
|
+
dynamicValidation.hasSuspendedDynamic = true;
|
|
2480
|
+
return;
|
|
2481
|
+
} else if (serverDynamic.syncDynamicErrorWithStack || clientDynamic.syncDynamicErrorWithStack) {
|
|
2482
|
+
dynamicValidation.hasSyncDynamicErrors = true;
|
|
2483
|
+
return;
|
|
2484
|
+
} else {
|
|
2485
|
+
const message = `Route "${route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`;
|
|
2486
|
+
const error = createErrorWithComponentStack(message, componentStack);
|
|
2487
|
+
dynamicValidation.dynamicErrors.push(error);
|
|
2488
|
+
return;
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
function createErrorWithComponentStack(message, componentStack) {
|
|
2492
|
+
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
2493
|
+
value: "E394",
|
|
2494
|
+
enumerable: false,
|
|
2495
|
+
configurable: true
|
|
2496
|
+
});
|
|
2497
|
+
error.stack = "Error: " + message + componentStack;
|
|
2498
|
+
return error;
|
|
2499
|
+
}
|
|
2500
|
+
function throwIfDisallowedDynamic(route, dynamicValidation, serverDynamic, clientDynamic) {
|
|
2501
|
+
let syncError;
|
|
2502
|
+
let syncExpression;
|
|
2503
|
+
let syncLogged;
|
|
2504
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
2505
|
+
syncError = serverDynamic.syncDynamicErrorWithStack;
|
|
2506
|
+
syncExpression = serverDynamic.syncDynamicExpression;
|
|
2507
|
+
syncLogged = serverDynamic.syncDynamicLogged === true;
|
|
2508
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
2509
|
+
syncError = clientDynamic.syncDynamicErrorWithStack;
|
|
2510
|
+
syncExpression = clientDynamic.syncDynamicExpression;
|
|
2511
|
+
syncLogged = clientDynamic.syncDynamicLogged === true;
|
|
2512
|
+
} else {
|
|
2513
|
+
syncError = null;
|
|
2514
|
+
syncExpression = void 0;
|
|
2515
|
+
syncLogged = false;
|
|
2516
|
+
}
|
|
2517
|
+
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
2518
|
+
if (!syncLogged) console.error(syncError);
|
|
2519
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2520
|
+
}
|
|
2521
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
2522
|
+
if (dynamicErrors.length) {
|
|
2523
|
+
for (let i = 0; i < dynamicErrors.length; i++) console.error(dynamicErrors[i]);
|
|
2524
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
2525
|
+
}
|
|
2526
|
+
if (!dynamicValidation.hasSuspendedDynamic) {
|
|
2527
|
+
if (dynamicValidation.hasDynamicMetadata) {
|
|
2528
|
+
if (syncError) {
|
|
2529
|
+
console.error(syncError);
|
|
2530
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
2531
|
+
value: "E608",
|
|
2532
|
+
enumerable: false,
|
|
2533
|
+
configurable: true
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
|
|
2537
|
+
value: "E534",
|
|
2538
|
+
enumerable: false,
|
|
2539
|
+
configurable: true
|
|
2540
|
+
});
|
|
2541
|
+
} else if (dynamicValidation.hasDynamicViewport) {
|
|
2542
|
+
if (syncError) {
|
|
2543
|
+
console.error(syncError);
|
|
2544
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
2545
|
+
value: "E573",
|
|
2546
|
+
enumerable: false,
|
|
2547
|
+
configurable: true
|
|
2548
|
+
});
|
|
2549
|
+
}
|
|
2550
|
+
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`), "__NEXT_ERROR_CODE", {
|
|
2551
|
+
value: "E590",
|
|
2552
|
+
enumerable: false,
|
|
2553
|
+
configurable: true
|
|
2554
|
+
});
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
} });
|
|
2559
|
+
|
|
2560
|
+
//#endregion
|
|
2561
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.js
|
|
2562
|
+
var require_unstable_rethrow_server = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.js"(exports, module) {
|
|
2563
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2564
|
+
Object.defineProperty(exports, "unstable_rethrow", {
|
|
2565
|
+
enumerable: true,
|
|
2566
|
+
get: function() {
|
|
2567
|
+
return unstable_rethrow$2;
|
|
2568
|
+
}
|
|
2569
|
+
});
|
|
2570
|
+
const _dynamicrenderingutils = require_dynamic_rendering_utils();
|
|
2571
|
+
const _ispostpone = require_is_postpone();
|
|
2572
|
+
const _bailouttocsr$2 = require_bailout_to_csr();
|
|
2573
|
+
const _isnextroutererror$1 = require_is_next_router_error();
|
|
2574
|
+
const _dynamicrendering = require_dynamic_rendering();
|
|
2575
|
+
const _hooksservercontext = require_hooks_server_context();
|
|
2576
|
+
function unstable_rethrow$2(error) {
|
|
2577
|
+
if ((0, _isnextroutererror$1.isNextRouterError)(error) || (0, _bailouttocsr$2.isBailoutToCSRError)(error) || (0, _hooksservercontext.isDynamicServerError)(error) || (0, _dynamicrendering.isDynamicPostpone)(error) || (0, _ispostpone.isPostpone)(error) || (0, _dynamicrenderingutils.isHangingPromiseRejectionError)(error)) throw error;
|
|
2578
|
+
if (error instanceof Error && "cause" in error) unstable_rethrow$2(error.cause);
|
|
2579
|
+
}
|
|
2580
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2581
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2582
|
+
Object.assign(exports.default, exports);
|
|
2583
|
+
module.exports = exports.default;
|
|
2584
|
+
}
|
|
2585
|
+
} });
|
|
2586
|
+
|
|
2587
|
+
//#endregion
|
|
2588
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.js
|
|
2589
|
+
var require_unstable_rethrow_browser = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.js"(exports, module) {
|
|
2590
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2591
|
+
Object.defineProperty(exports, "unstable_rethrow", {
|
|
2592
|
+
enumerable: true,
|
|
2593
|
+
get: function() {
|
|
2594
|
+
return unstable_rethrow$1;
|
|
2595
|
+
}
|
|
2596
|
+
});
|
|
2597
|
+
const _bailouttocsr$1 = require_bailout_to_csr();
|
|
2598
|
+
const _isnextroutererror = require_is_next_router_error();
|
|
2599
|
+
function unstable_rethrow$1(error) {
|
|
2600
|
+
if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr$1.isBailoutToCSRError)(error)) throw error;
|
|
2601
|
+
if (error instanceof Error && "cause" in error) unstable_rethrow$1(error.cause);
|
|
2602
|
+
}
|
|
2603
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2604
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2605
|
+
Object.assign(exports.default, exports);
|
|
2606
|
+
module.exports = exports.default;
|
|
2607
|
+
}
|
|
2608
|
+
} });
|
|
2609
|
+
|
|
2610
|
+
//#endregion
|
|
2611
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.js
|
|
2612
|
+
var require_unstable_rethrow = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.js"(exports, module) {
|
|
2613
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2614
|
+
Object.defineProperty(exports, "unstable_rethrow", {
|
|
2615
|
+
enumerable: true,
|
|
2616
|
+
get: function() {
|
|
2617
|
+
return unstable_rethrow;
|
|
2618
|
+
}
|
|
2619
|
+
});
|
|
2620
|
+
const unstable_rethrow = typeof window === "undefined" ? require_unstable_rethrow_server().unstable_rethrow : require_unstable_rethrow_browser().unstable_rethrow;
|
|
2621
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2622
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2623
|
+
Object.assign(exports.default, exports);
|
|
2624
|
+
module.exports = exports.default;
|
|
2625
|
+
}
|
|
2626
|
+
} });
|
|
2627
|
+
|
|
2628
|
+
//#endregion
|
|
2629
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.js
|
|
2630
|
+
var require_navigation_react_server = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.js"(exports, module) {
|
|
2631
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2632
|
+
function _export$2(target, all) {
|
|
2633
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2634
|
+
enumerable: true,
|
|
2635
|
+
get: all[name]
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2638
|
+
_export$2(exports, {
|
|
2639
|
+
ReadonlyURLSearchParams: function() {
|
|
2640
|
+
return ReadonlyURLSearchParams;
|
|
2641
|
+
},
|
|
2642
|
+
RedirectType: function() {
|
|
2643
|
+
return _redirecterror.RedirectType;
|
|
2644
|
+
},
|
|
2645
|
+
forbidden: function() {
|
|
2646
|
+
return _forbidden.forbidden;
|
|
2647
|
+
},
|
|
2648
|
+
notFound: function() {
|
|
2649
|
+
return _notfound.notFound;
|
|
2650
|
+
},
|
|
2651
|
+
permanentRedirect: function() {
|
|
2652
|
+
return _redirect.permanentRedirect;
|
|
2653
|
+
},
|
|
2654
|
+
redirect: function() {
|
|
2655
|
+
return _redirect.redirect;
|
|
2656
|
+
},
|
|
2657
|
+
unauthorized: function() {
|
|
2658
|
+
return _unauthorized.unauthorized;
|
|
2659
|
+
},
|
|
2660
|
+
unstable_rethrow: function() {
|
|
2661
|
+
return _unstablerethrow.unstable_rethrow;
|
|
2662
|
+
}
|
|
2663
|
+
});
|
|
2664
|
+
const _redirect = require_redirect();
|
|
2665
|
+
const _redirecterror = require_redirect_error();
|
|
2666
|
+
const _notfound = require_not_found();
|
|
2667
|
+
const _forbidden = require_forbidden();
|
|
2668
|
+
const _unauthorized = require_unauthorized();
|
|
2669
|
+
const _unstablerethrow = require_unstable_rethrow();
|
|
2670
|
+
var ReadonlyURLSearchParamsError = class extends Error {
|
|
2671
|
+
constructor() {
|
|
2672
|
+
super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
|
|
2673
|
+
}
|
|
2674
|
+
};
|
|
2675
|
+
var ReadonlyURLSearchParams = class extends URLSearchParams {
|
|
2676
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ append() {
|
|
2677
|
+
throw new ReadonlyURLSearchParamsError();
|
|
2678
|
+
}
|
|
2679
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ delete() {
|
|
2680
|
+
throw new ReadonlyURLSearchParamsError();
|
|
2681
|
+
}
|
|
2682
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ set() {
|
|
2683
|
+
throw new ReadonlyURLSearchParamsError();
|
|
2684
|
+
}
|
|
2685
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ sort() {
|
|
2686
|
+
throw new ReadonlyURLSearchParamsError();
|
|
2687
|
+
}
|
|
2688
|
+
};
|
|
2689
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2690
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2691
|
+
Object.assign(exports.default, exports);
|
|
2692
|
+
module.exports = exports.default;
|
|
2693
|
+
}
|
|
2694
|
+
} });
|
|
2695
|
+
|
|
2696
|
+
//#endregion
|
|
2697
|
+
//#region ../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
2698
|
+
var require__interop_require_wildcard = __commonJS({ "../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
2699
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
2700
|
+
if (typeof WeakMap !== "function") return null;
|
|
2701
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
2702
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
2703
|
+
return (_getRequireWildcardCache = function(nodeInterop$1) {
|
|
2704
|
+
return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
|
|
2705
|
+
})(nodeInterop);
|
|
2706
|
+
}
|
|
2707
|
+
function _interop_require_wildcard$1(obj, nodeInterop) {
|
|
2708
|
+
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
2709
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
2710
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
2711
|
+
if (cache && cache.has(obj)) return cache.get(obj);
|
|
2712
|
+
var newObj = { __proto__: null };
|
|
2713
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
2714
|
+
for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2715
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
2716
|
+
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
2717
|
+
else newObj[key] = obj[key];
|
|
2718
|
+
}
|
|
2719
|
+
newObj.default = obj;
|
|
2720
|
+
if (cache) cache.set(obj, newObj);
|
|
2721
|
+
return newObj;
|
|
2722
|
+
}
|
|
2723
|
+
exports._ = _interop_require_wildcard$1;
|
|
2724
|
+
} });
|
|
2725
|
+
|
|
2726
|
+
//#endregion
|
|
2727
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js
|
|
2728
|
+
var require_server_inserted_html_shared_runtime = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js"(exports) {
|
|
2729
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2730
|
+
function _export$1(target, all) {
|
|
2731
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2732
|
+
enumerable: true,
|
|
2733
|
+
get: all[name]
|
|
2734
|
+
});
|
|
2735
|
+
}
|
|
2736
|
+
_export$1(exports, {
|
|
2737
|
+
ServerInsertedHTMLContext: function() {
|
|
2738
|
+
return ServerInsertedHTMLContext;
|
|
2739
|
+
},
|
|
2740
|
+
useServerInsertedHTML: function() {
|
|
2741
|
+
return useServerInsertedHTML;
|
|
2742
|
+
}
|
|
2743
|
+
});
|
|
2744
|
+
const _interop_require_wildcard = require__interop_require_wildcard();
|
|
2745
|
+
const _react$1 = /* @__PURE__ */ _interop_require_wildcard._(require_react());
|
|
2746
|
+
const ServerInsertedHTMLContext = /* @__PURE__ */ _react$1.default.createContext(null);
|
|
2747
|
+
function useServerInsertedHTML(callback) {
|
|
2748
|
+
const addInsertedServerHTMLCallback = (0, _react$1.useContext)(ServerInsertedHTMLContext);
|
|
2749
|
+
if (addInsertedServerHTMLCallback) addInsertedServerHTMLCallback(callback);
|
|
2750
|
+
}
|
|
2751
|
+
} });
|
|
2752
|
+
|
|
2753
|
+
//#endregion
|
|
2754
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.js
|
|
2755
|
+
var require_bailout_to_client_rendering = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.js"(exports, module) {
|
|
2756
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2757
|
+
Object.defineProperty(exports, "bailoutToClientRendering", {
|
|
2758
|
+
enumerable: true,
|
|
2759
|
+
get: function() {
|
|
2760
|
+
return bailoutToClientRendering;
|
|
2761
|
+
}
|
|
2762
|
+
});
|
|
2763
|
+
const _bailouttocsr = require_bailout_to_csr();
|
|
2764
|
+
const _workasyncstorageexternal = require_work_async_storage_external();
|
|
2765
|
+
function bailoutToClientRendering(reason) {
|
|
2766
|
+
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
2767
|
+
if (workStore == null ? void 0 : workStore.forceStatic) return;
|
|
2768
|
+
if (workStore == null ? void 0 : workStore.isStaticGeneration) throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(reason), "__NEXT_ERROR_CODE", {
|
|
2769
|
+
value: "E394",
|
|
2770
|
+
enumerable: false,
|
|
2771
|
+
configurable: true
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2774
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2775
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2776
|
+
Object.assign(exports.default, exports);
|
|
2777
|
+
module.exports = exports.default;
|
|
2778
|
+
}
|
|
2779
|
+
} });
|
|
2780
|
+
|
|
2781
|
+
//#endregion
|
|
2782
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.js
|
|
2783
|
+
var require_navigation$1 = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.js"(exports, module) {
|
|
2784
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2785
|
+
function _export(target, all) {
|
|
2786
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2787
|
+
enumerable: true,
|
|
2788
|
+
get: all[name]
|
|
2789
|
+
});
|
|
2790
|
+
}
|
|
2791
|
+
_export(exports, {
|
|
2792
|
+
ReadonlyURLSearchParams: function() {
|
|
2793
|
+
return _navigationreactserver.ReadonlyURLSearchParams;
|
|
2794
|
+
},
|
|
2795
|
+
RedirectType: function() {
|
|
2796
|
+
return _navigationreactserver.RedirectType;
|
|
2797
|
+
},
|
|
2798
|
+
ServerInsertedHTMLContext: function() {
|
|
2799
|
+
return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext;
|
|
2800
|
+
},
|
|
2801
|
+
forbidden: function() {
|
|
2802
|
+
return _navigationreactserver.forbidden;
|
|
2803
|
+
},
|
|
2804
|
+
notFound: function() {
|
|
2805
|
+
return _navigationreactserver.notFound;
|
|
2806
|
+
},
|
|
2807
|
+
permanentRedirect: function() {
|
|
2808
|
+
return _navigationreactserver.permanentRedirect;
|
|
2809
|
+
},
|
|
2810
|
+
redirect: function() {
|
|
2811
|
+
return _navigationreactserver.redirect;
|
|
2812
|
+
},
|
|
2813
|
+
unauthorized: function() {
|
|
2814
|
+
return _navigationreactserver.unauthorized;
|
|
2815
|
+
},
|
|
2816
|
+
unstable_rethrow: function() {
|
|
2817
|
+
return _navigationreactserver.unstable_rethrow;
|
|
2818
|
+
},
|
|
2819
|
+
useParams: function() {
|
|
2820
|
+
return useParams;
|
|
2821
|
+
},
|
|
2822
|
+
usePathname: function() {
|
|
2823
|
+
return usePathname;
|
|
2824
|
+
},
|
|
2825
|
+
useRouter: function() {
|
|
2826
|
+
return useRouter;
|
|
2827
|
+
},
|
|
2828
|
+
useSearchParams: function() {
|
|
2829
|
+
return useSearchParams;
|
|
2830
|
+
},
|
|
2831
|
+
useSelectedLayoutSegment: function() {
|
|
2832
|
+
return useSelectedLayoutSegment;
|
|
2833
|
+
},
|
|
2834
|
+
useSelectedLayoutSegments: function() {
|
|
2835
|
+
return useSelectedLayoutSegments;
|
|
2836
|
+
},
|
|
2837
|
+
useServerInsertedHTML: function() {
|
|
2838
|
+
return _serverinsertedhtmlsharedruntime.useServerInsertedHTML;
|
|
2839
|
+
}
|
|
2840
|
+
});
|
|
2841
|
+
const _react = require_react();
|
|
2842
|
+
const _approutercontextsharedruntime = require_app_router_context_shared_runtime();
|
|
2843
|
+
const _hooksclientcontextsharedruntime = require_hooks_client_context_shared_runtime();
|
|
2844
|
+
const _getsegmentvalue = require_get_segment_value();
|
|
2845
|
+
const _segment = require_segment();
|
|
2846
|
+
const _navigationreactserver = require_navigation_react_server();
|
|
2847
|
+
const _serverinsertedhtmlsharedruntime = require_server_inserted_html_shared_runtime();
|
|
2848
|
+
const useDynamicRouteParams = typeof window === "undefined" ? require_dynamic_rendering().useDynamicRouteParams : void 0;
|
|
2849
|
+
function useSearchParams() {
|
|
2850
|
+
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|
|
2851
|
+
const readonlySearchParams = (0, _react.useMemo)(() => {
|
|
2852
|
+
if (!searchParams) return null;
|
|
2853
|
+
return new _navigationreactserver.ReadonlyURLSearchParams(searchParams);
|
|
2854
|
+
}, [searchParams]);
|
|
2855
|
+
if (typeof window === "undefined") {
|
|
2856
|
+
const { bailoutToClientRendering: bailoutToClientRendering$1 } = require_bailout_to_client_rendering();
|
|
2857
|
+
bailoutToClientRendering$1("useSearchParams()");
|
|
2858
|
+
}
|
|
2859
|
+
return readonlySearchParams;
|
|
2860
|
+
}
|
|
2861
|
+
function usePathname() {
|
|
2862
|
+
useDynamicRouteParams == null || useDynamicRouteParams("usePathname()");
|
|
2863
|
+
return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);
|
|
2864
|
+
}
|
|
2865
|
+
function useRouter() {
|
|
2866
|
+
const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext);
|
|
2867
|
+
if (router === null) throw Object.defineProperty(new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
|
|
2868
|
+
value: "E238",
|
|
2869
|
+
enumerable: false,
|
|
2870
|
+
configurable: true
|
|
2871
|
+
});
|
|
2872
|
+
return router;
|
|
2873
|
+
}
|
|
2874
|
+
function useParams() {
|
|
2875
|
+
useDynamicRouteParams == null || useDynamicRouteParams("useParams()");
|
|
2876
|
+
return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);
|
|
2877
|
+
}
|
|
2878
|
+
/** Get the canonical parameters from the current level to the leaf node. */ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first, segmentPath) {
|
|
2879
|
+
if (first === void 0) first = true;
|
|
2880
|
+
if (segmentPath === void 0) segmentPath = [];
|
|
2881
|
+
let node;
|
|
2882
|
+
if (first) node = tree[1][parallelRouteKey];
|
|
2883
|
+
else {
|
|
2884
|
+
const parallelRoutes = tree[1];
|
|
2885
|
+
var _parallelRoutes_children;
|
|
2886
|
+
node = (_parallelRoutes_children = parallelRoutes.children) != null ? _parallelRoutes_children : Object.values(parallelRoutes)[0];
|
|
2887
|
+
}
|
|
2888
|
+
if (!node) return segmentPath;
|
|
2889
|
+
const segment = node[0];
|
|
2890
|
+
let segmentValue = (0, _getsegmentvalue.getSegmentValue)(segment);
|
|
2891
|
+
if (!segmentValue || segmentValue.startsWith(_segment.PAGE_SEGMENT_KEY)) return segmentPath;
|
|
2892
|
+
segmentPath.push(segmentValue);
|
|
2893
|
+
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
|
2894
|
+
}
|
|
2895
|
+
function useSelectedLayoutSegments(parallelRouteKey) {
|
|
2896
|
+
if (parallelRouteKey === void 0) parallelRouteKey = "children";
|
|
2897
|
+
useDynamicRouteParams == null || useDynamicRouteParams("useSelectedLayoutSegments()");
|
|
2898
|
+
const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
|
|
2899
|
+
if (!context) return null;
|
|
2900
|
+
return getSelectedLayoutSegmentPath(context.parentTree, parallelRouteKey);
|
|
2901
|
+
}
|
|
2902
|
+
function useSelectedLayoutSegment(parallelRouteKey) {
|
|
2903
|
+
if (parallelRouteKey === void 0) parallelRouteKey = "children";
|
|
2904
|
+
useDynamicRouteParams == null || useDynamicRouteParams("useSelectedLayoutSegment()");
|
|
2905
|
+
const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);
|
|
2906
|
+
if (!selectedLayoutSegments || selectedLayoutSegments.length === 0) return null;
|
|
2907
|
+
const selectedLayoutSegment = parallelRouteKey === "children" ? selectedLayoutSegments[0] : selectedLayoutSegments[selectedLayoutSegments.length - 1];
|
|
2908
|
+
return selectedLayoutSegment === _segment.DEFAULT_SEGMENT_KEY ? null : selectedLayoutSegment;
|
|
2909
|
+
}
|
|
2910
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2911
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2912
|
+
Object.assign(exports.default, exports);
|
|
2913
|
+
module.exports = exports.default;
|
|
2914
|
+
}
|
|
2915
|
+
} });
|
|
2916
|
+
|
|
2917
|
+
//#endregion
|
|
2918
|
+
//#region ../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.js
|
|
2919
|
+
var require_navigation = __commonJS({ "../../node_modules/.pnpm/next@15.3.2_@babel+core@7.26.9_@playwright+test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.js"(exports, module) {
|
|
2920
|
+
module.exports = require_navigation$1();
|
|
2921
|
+
} });
|
|
2922
|
+
|
|
2923
|
+
//#endregion
|
|
2924
|
+
//#region src/adapters/next-app-dir/rethrowNextErrors.ts
|
|
2925
|
+
var import_navigation = __toESM(require_navigation(), 1);
|
|
2926
|
+
/**
|
|
2927
|
+
* @remarks The helpers from `next/dist/client/components/*` has been removed in Next.js 15.
|
|
2928
|
+
* Inlining them here instead...
|
|
2929
|
+
* @see https://github.com/vercel/next.js/blob/5ae286ffd664e5c76841ed64f6e2da85a0835922/packages/next/src/client/components/redirect.ts#L97-L123
|
|
2930
|
+
*/
|
|
2931
|
+
const REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
|
|
2932
|
+
function isRedirectError(error) {
|
|
2933
|
+
if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") return false;
|
|
2934
|
+
const [errorCode, type, destination, status] = error.digest.split(";", 4);
|
|
2935
|
+
const statusCode = Number(status);
|
|
2936
|
+
return errorCode === REDIRECT_ERROR_CODE && (type === "replace" || type === "push") && typeof destination === "string" && !isNaN(statusCode);
|
|
2937
|
+
}
|
|
2938
|
+
/**
|
|
2939
|
+
* @remarks The helpers from `next/dist/client/components/*` has been removed in Next.js 15.
|
|
2940
|
+
* Inlining them here instead...
|
|
2941
|
+
* @see https://github.com/vercel/next.js/blob/5ae286ffd664e5c76841ed64f6e2da85a0835922/packages/next/src/client/components/not-found.ts#L33-L39
|
|
2942
|
+
*/
|
|
2943
|
+
const NOT_FOUND_ERROR_CODE = "NEXT_NOT_FOUND";
|
|
2944
|
+
function isNotFoundError(error) {
|
|
2945
|
+
if (typeof error !== "object" || error === null || !("digest" in error)) return false;
|
|
2946
|
+
return error.digest === NOT_FOUND_ERROR_CODE;
|
|
2947
|
+
}
|
|
2948
|
+
/**
|
|
2949
|
+
* Rethrow errors that should be handled by Next.js
|
|
2950
|
+
*/
|
|
2951
|
+
const rethrowNextErrors = (error) => {
|
|
2952
|
+
if (error.code === "NOT_FOUND") import_navigation.notFound();
|
|
2953
|
+
if (error instanceof TRPCRedirectError) import_navigation.redirect(...error.args);
|
|
2954
|
+
const { cause } = error;
|
|
2955
|
+
if ("unstable_rethrow" in import_navigation && typeof import_navigation.unstable_rethrow === "function") import_navigation.unstable_rethrow(cause);
|
|
2956
|
+
if (isRedirectError(cause) || isNotFoundError(cause)) throw cause;
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
//#endregion
|
|
2960
|
+
//#region src/adapters/next-app-dir/nextAppDirCaller.ts
|
|
2961
|
+
/**
|
|
2962
|
+
* Create a caller that works with Next.js React Server Components & Server Actions
|
|
2963
|
+
*/
|
|
2964
|
+
function nextAppDirCaller(config) {
|
|
2965
|
+
const { normalizeFormData = true } = config;
|
|
2966
|
+
const createContext = async () => {
|
|
2967
|
+
return config?.createContext?.() ?? {};
|
|
2968
|
+
};
|
|
2969
|
+
return async (opts) => {
|
|
2970
|
+
const path = config.pathExtractor?.({ meta: opts._def.meta }) ?? "";
|
|
2971
|
+
const ctx = await createContext().catch((cause) => {
|
|
2972
|
+
const error = new TRPCError({
|
|
2973
|
+
code: "INTERNAL_SERVER_ERROR",
|
|
2974
|
+
message: "Failed to create context",
|
|
2975
|
+
cause
|
|
2976
|
+
});
|
|
2977
|
+
throw error;
|
|
2978
|
+
});
|
|
2979
|
+
const handleError = (cause) => {
|
|
2980
|
+
const error = getTRPCErrorFromUnknown(cause);
|
|
2981
|
+
config.onError?.({
|
|
2982
|
+
ctx,
|
|
2983
|
+
error,
|
|
2984
|
+
input: opts.args[0],
|
|
2985
|
+
path,
|
|
2986
|
+
type: opts._def.type
|
|
2987
|
+
});
|
|
2988
|
+
rethrowNextErrors(error);
|
|
2989
|
+
throw error;
|
|
2990
|
+
};
|
|
2991
|
+
switch (opts._def.type) {
|
|
2992
|
+
case "mutation": {
|
|
2993
|
+
/**
|
|
2994
|
+
* When you wrap an action with useFormState, it gets an extra argument as its first argument.
|
|
2995
|
+
* The submitted form data is therefore its second argument instead of its first as it would usually be.
|
|
2996
|
+
* The new first argument that gets added is the current state of the form.
|
|
2997
|
+
* @see https://react.dev/reference/react-dom/hooks/useFormState#my-action-can-no-longer-read-the-submitted-form-data
|
|
2998
|
+
*/
|
|
2999
|
+
let input = opts.args.length === 1 ? opts.args[0] : opts.args[1];
|
|
3000
|
+
if (normalizeFormData && input instanceof FormData) input = formDataToObject(input);
|
|
3001
|
+
return await opts.invoke({
|
|
3002
|
+
type: opts._def.type,
|
|
3003
|
+
ctx,
|
|
3004
|
+
getRawInput: async () => input,
|
|
3005
|
+
path,
|
|
3006
|
+
input,
|
|
3007
|
+
signal: void 0
|
|
3008
|
+
}).then((data) => {
|
|
3009
|
+
if (data instanceof TRPCRedirectError) throw data;
|
|
3010
|
+
return data;
|
|
3011
|
+
}).catch(handleError);
|
|
3012
|
+
}
|
|
3013
|
+
case "query": {
|
|
3014
|
+
const input = opts.args[0];
|
|
3015
|
+
return await opts.invoke({
|
|
3016
|
+
type: opts._def.type,
|
|
3017
|
+
ctx,
|
|
3018
|
+
getRawInput: async () => input,
|
|
3019
|
+
path,
|
|
3020
|
+
input,
|
|
3021
|
+
signal: void 0
|
|
3022
|
+
}).then((data) => {
|
|
3023
|
+
if (data instanceof TRPCRedirectError) throw data;
|
|
3024
|
+
return data;
|
|
3025
|
+
}).catch(handleError);
|
|
3026
|
+
}
|
|
3027
|
+
case "subscription":
|
|
3028
|
+
default: throw new TRPCError({
|
|
3029
|
+
code: "NOT_IMPLEMENTED",
|
|
3030
|
+
message: `Not implemented for type ${opts._def.type}`
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
//#endregion
|
|
3037
|
+
//#region src/adapters/next-app-dir/notFound.ts
|
|
3038
|
+
/**
|
|
3039
|
+
* Like `next/navigation`'s `notFound()` but throws a `TRPCError` that later will be handled by Next.js
|
|
3040
|
+
* @public
|
|
3041
|
+
*/
|
|
3042
|
+
const notFound = () => {
|
|
3043
|
+
throw new TRPCError({ code: "NOT_FOUND" });
|
|
3044
|
+
};
|
|
3045
|
+
|
|
3046
|
+
//#endregion
|
|
3047
|
+
export { nextAppDirCaller as experimental_nextAppDirCaller, notFound as experimental_notFound, redirect as experimental_redirect, rethrowNextErrors };
|
|
3048
|
+
//# sourceMappingURL=next-app-dir.mjs.map
|