main
WIN-20240312QOM\Administrator 9 months ago
parent 276467a7e4
commit 5703ae7b34

2
.gitignore vendored

@ -9,7 +9,7 @@
/coverage
# next.js
/.next/
/.next/.cache/
/out/
# production

@ -0,0 +1 @@
6hareyoc49c0bdS3T8jIR

@ -0,0 +1,33 @@
{
"pages": {
"/_not-found": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/fd9d1056-c19853f8a5992bd8.js",
"static/chunks/8069-4c78fbb07bc7891a.js",
"static/chunks/main-app-da7f40e449d8d343.js",
"static/chunks/app/_not-found-6d79cfa269b7f9fa.js"
],
"/layout": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/fd9d1056-c19853f8a5992bd8.js",
"static/chunks/8069-4c78fbb07bc7891a.js",
"static/chunks/main-app-da7f40e449d8d343.js",
"static/chunks/5249-e6b4ca9fe5552db1.js",
"static/css/e00b6020178b71d7.css",
"static/chunks/app/layout-e85b2e936329237e.js"
],
"/page": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/fd9d1056-c19853f8a5992bd8.js",
"static/chunks/8069-4c78fbb07bc7891a.js",
"static/chunks/main-app-da7f40e449d8d343.js",
"static/chunks/e99863e0-e4b3f99da88abe5e.js",
"static/chunks/fcfb803e-7cf37c0f71f664d5.js",
"static/chunks/4b1a69f1-6f22e9db098c258d.js",
"static/chunks/5249-e6b4ca9fe5552db1.js",
"static/chunks/2544-913e2d52d5cfaf94.js",
"static/css/caf9a57a63d7406d.css",
"static/chunks/app/page-a49954b0f49c7589.js"
]
}
}

@ -0,0 +1 @@
{"/_not-found":"/_not-found","/page":"/","/api/[provider]/[...path]/route":"/api/[provider]/[...path]","/api/artifacts/route":"/api/artifacts","/api/config/route":"/api/config","/api/tencent/route":"/api/tencent","/api/upstash/[action]/[...key]/route":"/api/upstash/[action]/[...key]","/api/webdav/[...path]/route":"/api/webdav/[...path]"}

@ -0,0 +1,32 @@
{
"polyfillFiles": [
"static/chunks/polyfills-c67a75d1b6f99dc8.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/6hareyoc49c0bdS3T8jIR/_buildManifest.js",
"static/6hareyoc49c0bdS3T8jIR/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/fd9d1056-c19853f8a5992bd8.js",
"static/chunks/8069-4c78fbb07bc7891a.js",
"static/chunks/main-app-da7f40e449d8d343.js"
],
"pages": {
"/_app": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/framework-08aa667e5202eed8.js",
"static/chunks/main-728c0cd8b71c502f.js",
"static/chunks/pages/_app-57bdff7978360b1c.js"
],
"/_error": [
"static/chunks/webpack-7ebd13242be096a1.js",
"static/chunks/framework-08aa667e5202eed8.js",
"static/chunks/main-728c0cd8b71c502f.js",
"static/chunks/pages/_error-29037c284dd0eec6.js"
]
},
"ampFirstPages": []
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1 @@
{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false}

@ -0,0 +1 @@
{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}}

@ -0,0 +1 @@
{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"type": "commonjs"}

@ -0,0 +1 @@
self.__PRERENDER_MANIFEST="{\"version\":4,\"routes\":{\"/\":{\"experimentalBypassFor\":[{\"type\":\"header\",\"key\":\"Next-Action\"},{\"type\":\"header\",\"key\":\"content-type\",\"value\":\"multipart/form-data\"}],\"initialRevalidateSeconds\":false,\"srcRoute\":\"/\",\"dataRoute\":\"/index.rsc\"}},\"dynamicRoutes\":{},\"notFoundRoutes\":[],\"preview\":{\"previewModeId\":\"b82a20866cb94d61f59a9d941194fc9a\",\"previewModeSigningKey\":\"a9e3f053642201eabab1a897152b2bbfa4f31e341145d884a87d409d47dfa3f7\",\"previewModeEncryptionKey\":\"c670437a3b7e8e13838585f843ee02a36e20763a118bed98d0766901c88b0bfb\"}}"

@ -0,0 +1 @@
{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"b82a20866cb94d61f59a9d941194fc9a","previewModeSigningKey":"a9e3f053642201eabab1a897152b2bbfa4f31e341145d884a87d409d47dfa3f7","previewModeEncryptionKey":"c670437a3b7e8e13838585f843ee02a36e20763a118bed98d0766901c88b0bfb"}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[{"source":"/api/:path*","headers":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"}],"regex":"^/api(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"}],"dynamicRoutes":[{"page":"/api/upstash/[action]/[...key]","regex":"^/api/upstash/([^/]+?)/(.+?)(?:/)?$","routeKeys":{"nxtPaction":"nxtPaction","nxtPkey":"nxtPkey"},"namedRegex":"^/api/upstash/(?<nxtPaction>[^/]+?)/(?<nxtPkey>.+?)(?:/)?$"},{"page":"/api/webdav/[...path]","regex":"^/api/webdav/(.+?)(?:/)?$","routeKeys":{"nxtPpath":"nxtPpath"},"namedRegex":"^/api/webdav/(?<nxtPpath>.+?)(?:/)?$"},{"page":"/api/[provider]/[...path]","regex":"^/api/([^/]+?)/(.+?)(?:/)?$","routeKeys":{"nxtPprovider":"nxtPprovider","nxtPpath":"nxtPpath"},"namedRegex":"^/api/(?<nxtPprovider>[^/]+?)/(?<nxtPpath>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/_not-found","regex":"^/_not\\-found(?:/)?$","routeKeys":{},"namedRegex":"^/_not\\-found(?:/)?$"}],"dataRoutes":[],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":{"beforeFiles":[{"source":"/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*","destination":"https://:resource_name.openai.azure.com/openai/deployments/:deploy_name/:path*","regex":"^/api/proxy/azure(?:/([^/]+?))/deployments(?:/([^/]+?))(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"},{"source":"/api/proxy/google/:path*","destination":"https://generativelanguage.googleapis.com/:path*","regex":"^/api/proxy/google(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"},{"source":"/api/proxy/openai/:path*","destination":"https://api.openai.com/:path*","regex":"^/api/proxy/openai(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"},{"source":"/api/proxy/anthropic/:path*","destination":"https://api.anthropic.com/:path*","regex":"^/api/proxy/anthropic(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"},{"source":"/google-fonts/:path*","destination":"https://fonts.googleapis.com/:path*","regex":"^/google-fonts(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"},{"source":"/sharegpt","destination":"https://sharegpt.com/api/conversations","regex":"^/sharegpt(?:/)?$"},{"source":"/api/proxy/alibaba/:path*","destination":"https://dashscope.aliyuncs.com/api/:path*","regex":"^/api/proxy/alibaba(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))?(?:/)?$"}],"afterFiles":[],"fallback":[]}}

@ -0,0 +1,10 @@
{
"/_not-found": "app/_not-found.js",
"/page": "app/page.js",
"/api/[provider]/[...path]/route": "app/api/[provider]/[...path]/route.js",
"/api/artifacts/route": "app/api/artifacts/route.js",
"/api/config/route": "app/api/config/route.js",
"/api/tencent/route": "app/api/tencent/route.js",
"/api/upstash/[action]/[...key]/route": "app/api/upstash/[action]/[...key]/route.js",
"/api/webdav/[...path]/route": "app/api/webdav/[...path]/route.js"
}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
"use strict";(()=>{var e={};e.id=165,e.ids=[165],e.modules={47849:e=>{e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},32081:e=>{e.exports=require("child_process")},44922:(e,t,n)=>{n.r(t),n.d(t,{GlobalError:()=>a.a,__next_app__:()=>c,originalPathname:()=>u,pages:()=>p,routeModule:()=>x,tree:()=>d});var r=n(50482),o=n(69108),s=n(62563),a=n.n(s),i=n(68300),l={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);n.d(t,l);let d=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.t.bind(n,69361,23)),"next/dist/client/components/not-found-error"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,29854)),"D:\\NextWeb\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,69361,23)),"next/dist/client/components/not-found-error"]}],p=[],u="/_not-found",c={require:n,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:o.x.APP_PAGE,page:"/_not-found",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[712,261],()=>n(44922));module.exports=r})();

@ -0,0 +1 @@
{"version":1,"files":["../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../node_modules/next/dist/client/components/async-local-storage.js","../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/package.json","../../package.json","../chunks/261.js","../chunks/712.js","../webpack-runtime.js","_not-found_client-reference-manifest.js"]}

@ -0,0 +1,5 @@
{
"headers": {
"x-next-cache-tags": "_N_T_/layout,_N_T_/_not-found/layout,_N_T_/_not-found"
}
}

@ -0,0 +1,10 @@
2:I[5613,[],""]
3:I[31778,[],""]
8:I[91845,["5249","static/chunks/5249-e6b4ca9fe5552db1.js","3185","static/chunks/app/layout-e85b2e936329237e.js"],"GoogleAnalytics"]
4:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"}
5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
6:{"display":"inline-block"}
7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
0:["6hareyoc49c0bdS3T8jIR",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null]]},[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"config","content":"{\"version\":\"v2.15.8\",\"commitDate\":\"1739410376000\",\"commitHash\":\"276467a7e4dbe4da515c90f85d5dcb198b9dbf05\",\"buildMode\":\"standalone\",\"isApp\":false,\"template\":\"{{input}}\"}"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}],["$","link",null,{"rel":"manifest","href":"/site.webmanifest","crossOrigin":"use-credentials"}],["$","script",null,{"src":"/serviceWorkerRegister.js","defer":true}]]}],["$","body",null,{"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],false,"$undefined",["$","$L8",null,{"gaId":"G-89WN60ZK2E"}]]}]]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e00b6020178b71d7.css","precedence":"next","crossOrigin":""}]],"$L9"]]]]
9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","1",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#fafafa"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#151515"}],["$","meta","3",{"charSet":"utf-8"}],["$","title","4",{"children":"NextChat"}],["$","meta","5",{"name":"description","content":"Your personal ChatGPT Chat Bot."}],["$","meta","6",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","7",{"name":"apple-mobile-web-app-title","content":"NextChat"}],["$","meta","8",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}]]
1:null

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},7461:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ComponentMod:()=>P,default:()=>S});var r={};a.r(r),a.d(r,{GET:()=>m,POST:()=>h,runtime:()=>T});var s={};a.r(s),a.d(s,{headerHooks:()=>y,originalPathname:()=>_,patchFetch:()=>w,requestAsyncStorage:()=>k,routeModule:()=>g,serverHooks:()=>x,staticGenerationAsyncStorage:()=>v,staticGenerationBailout:()=>E});var o=a(7875),n=a(8381),i=a(2251),u=a(9845),c=a(5045),d=a.n(c),l=a(572),p=a(9579);async function f(e,t){let a=(0,p.g)(),r=()=>`https://api.cloudflare.com/client/v4/accounts/${a.cloudflareAccountId}/storage/kv/namespaces/${a.cloudflareKVNamespaceId}`,s=()=>({Authorization:`Bearer ${a.cloudflareKVApiKey}`});if("POST"===e.method){let t=await e.text(),o=d().hash(t).trim(),n={key:o,value:t};try{let e=parseInt(a.cloudflareKVTTL);e>60&&(n.expiration_ttl=e)}catch(e){console.error(e)}let i=await fetch(`${r()}/bulk`,{headers:{...s(),"Content-Type":"application/json"},method:"PUT",body:JSON.stringify([n])}),u=await i.json();return(console.log("save data",u),u?.success)?l.xk.json({code:0,id:o,result:u},{status:i.status}):l.xk.json({error:!0,msg:"Save data error"},{status:400})}if("GET"===e.method){let t=e?.nextUrl?.searchParams?.get("id"),a=await fetch(`${r()}/values/${t}`,{headers:s(),method:"GET"});return new Response(a.body,{status:a.status,statusText:a.statusText,headers:a.headers})}return l.xk.json({error:!0,msg:"Invalid request"},{status:400})}let h=f,m=f,T="edge",g=new n.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/artifacts/route",pathname:"/api/artifacts",filename:"route",bundlePath:"app/api/artifacts/route"},resolvedPagePath:"D:\\NextWeb\\app\\api\\artifacts\\route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:k,staticGenerationAsyncStorage:v,serverHooks:x,headerHooks:y,staticGenerationBailout:E}=g,_="/api/artifacts/route";function w(){return(0,u.XH)({serverHooks:x,staticGenerationAsyncStorage:v})}let P=s,S=o.a.wrap(g)}},e=>{var t=t=>e(e.s=t);e.O(0,[297,45,579],()=>t(7461));var a=e.O();(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/artifacts/route"]=a}]);
//# sourceMappingURL=route.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},2918:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ComponentMod:()=>m,default:()=>T});var o={};a.r(o),a.d(o,{GET:()=>f,POST:()=>h,runtime:()=>g});var n={};a.r(n),a.d(n,{headerHooks:()=>v,originalPathname:()=>M,patchFetch:()=>P,requestAsyncStorage:()=>E,routeModule:()=>k,serverHooks:()=>b,staticGenerationAsyncStorage:()=>_,staticGenerationBailout:()=>y});var i=a(7875),r=a(8381),s=a(2251),d=a(9845),u=a(572);let l=(0,a(9579).g)(),p={needCode:l.needCode,hideUserApiKey:l.hideUserApiKey,disableGPT4:l.disableGPT4,hideBalanceQuery:l.hideBalanceQuery,disableFastLink:l.disableFastLink,customModels:l.customModels,defaultModel:l.defaultModel,visionModels:l.visionModels};async function c(){return u.xk.json(p)}let f=c,h=c,g="edge",k=new r.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/config/route",pathname:"/api/config",filename:"route",bundlePath:"app/api/config/route"},resolvedPagePath:"D:\\NextWeb\\app\\api\\config\\route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:E,staticGenerationAsyncStorage:_,serverHooks:b,headerHooks:v,staticGenerationBailout:y}=k,M="/api/config/route";function P(){return(0,d.XH)({serverHooks:b,staticGenerationAsyncStorage:_})}let m=n,T=i.a.wrap(k)}},e=>{var t=t=>e(e.s=t);e.O(0,[297,45,579],()=>t(2918));var a=e.O();(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/config/route"]=a}]);
//# sourceMappingURL=route.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,3 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[510],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ComponentMod:()=>F,default:()=>L});var r={};n.r(r),n.d(r,{GET:()=>R,POST:()=>v,preferredRegion:()=>j,runtime:()=>H});var o={};n.r(o),n.d(o,{headerHooks:()=>G,originalPathname:()=>q,patchFetch:()=>z,requestAsyncStorage:()=>D,routeModule:()=>B,serverHooks:()=>X,staticGenerationAsyncStorage:()=>W,staticGenerationBailout:()=>$});var a=n(7875),i=n(8381),s=n(2251),l=n(9845),c=n(9579),u=n(7736),d=n(1480),p=n(572),h=n(5577);let f=Uint8Array,y=Uint32Array,g=Math.pow,k=new y(8),w=[],A=new y(64);function b(e){return(e-(0|e))*g(2,32)|0}let m=2,T=0;for(;T<64;){let e=!0;for(let t=2;t<=m/2;t++)m%t==0&&(e=!1);e&&(T<8&&(k[T]=b(g(m,.5))),w[T]=b(g(m,1/3)),T++),m++}let C=!!new f(new y([1]).buffer)[0];function x(e){return C?e>>>24|(e>>>16&255)<<8|(65280&e)<<8|e<<24:e}function S(e,t){return e>>>t|e<<32-t}function K(e){let t;let n=k.slice(),r=e.length,o=8*r,a=512-(o+64)%512-1+o+65,i=new f(a/8),s=new y(i.buffer);i.set(e,0),i[r]=128,s[s.length-1]=x(o);for(let e=0;e<a/32;e+=16){let r=n.slice();for(t=0;t<64;t++){let n;if(t<16)n=x(s[e+t]);else{let e=A[t-15],r=A[t-2];n=A[t-7]+A[t-16]+(S(e,7)^S(e,18)^e>>>3)+(S(r,17)^S(r,19)^r>>>10)}A[t]=n|=0;let o=(S(r[4],6)^S(r[4],11)^S(r[4],25))+(r[4]&r[5]^~r[4]&r[6])+r[7]+n+w[t],a=(S(r[0],2)^S(r[0],13)^S(r[0],22))+(r[0]&r[1]^r[2]&(r[0]^r[1]));for(let e=7;e>0;e--)r[e]=r[e-1];r[0]=o+a|0,r[4]=r[4]+o|0}for(t=0;t<8;t++)n[t]=n[t]+r[t]|0}return new f(new y(n.map(function(e){return x(e)})).buffer)}let U=new TextEncoder;function E(e){return e.reduce((e,t)=>{let n="00"+t.toString(16);return e+n.substring(n.length-2)},"")}function P(e){return E(K(U.encode(e)))}function _(e,t,n){let r=function(e,t){if(e.length>64&&(e=K(e)),e.length<64){let t=new Uint8Array(64);t.set(e,0),e=t}let n=new Uint8Array(64),r=new Uint8Array(64);for(let t=0;t<64;t++)n[t]=54^e[t],r[t]=92^e[t];let o=new Uint8Array(t.length+64);o.set(n,0),o.set(t,64);let a=new Uint8Array(96);return a.set(r,0),a.set(K(o),64),K(a)}("string"==typeof t?U.encode(t):t,"string"==typeof e?U.encode(e):e);return"hex"==n?E(r).toString():r}async function I(e,t,n){let r="hunyuan.tencentcloudapi.com",o="hunyuan",a="ChatCompletions",i=Math.floor(Date.now()/1e3),s=function(e){let t=new Date(1e3*e),n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),o=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${o}`}(i),l=P(e),c="application/json",u=`content-type:${c}
host:`+r+"\nx-tc-action:"+a.toLowerCase()+"\n",d="content-type;host;x-tc-action",p=["POST","/","",u,d,l].join("\n"),h="TC3-HMAC-SHA256",f=P(p),y=s+"/"+o+"/tc3_request",g=_(s,"TC3"+n),k=_(o,g),w=_("tc3_request",k),A=_(h+"\n"+i+"\n"+y+"\n"+f,w,"hex");return{Authorization:h+" Credential="+t+"/"+y+", SignedHeaders="+d+", Signature="+A,"Content-Type":c,Host:r,"X-TC-Action":a,"X-TC-Timestamp":i.toString(),"X-TC-Version":"2023-09-01","X-TC-Region":""}}let M=(0,c.g)();async function O(e,{params:t}){if(console.log("[Tencent Route] params ",t),"OPTIONS"===e.method)return p.xk.json({body:"OK"},{status:200});let n=(0,h.I)(e,u.k8.Hunyuan);if(n.error)return p.xk.json(n,{status:401});try{return await N(e)}catch(e){return console.error("[Tencent] ",e),p.xk.json((0,d.B)(e))}}let R=O,v=O,H="edge",j=["arn1","bom1","cdg1","cle1","cpt1","dub1","fra1","gru1","hnd1","iad1","icn1","kix1","lhr1","pdx1","sfo1","sin1","syd1"];async function N(e){let t=new AbortController,n=M.tencentUrl||u.Mo;n.startsWith("http")||(n=`https://${n}`),n.endsWith("/")&&(n=n.slice(0,-1)),console.log("[Base Url]",n);let r=setTimeout(()=>{t.abort()},6e5),o=n,a=await e.text(),i={headers:await I(a,M.tencentSecretId,M.tencentSecretKey),method:e.method,body:a,redirect:"manual",duplex:"half",signal:t.signal};try{let e=await fetch(o,i),t=new Headers(e.headers);return t.delete("www-authenticate"),t.set("X-Accel-Buffering","no"),new Response(e.body,{status:e.status,statusText:e.statusText,headers:t})}finally{clearTimeout(r)}}let B=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/tencent/route",pathname:"/api/tencent",filename:"route",bundlePath:"app/api/tencent/route"},resolvedPagePath:"D:\\NextWeb\\app\\api\\tencent\\route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:D,staticGenerationAsyncStorage:W,serverHooks:X,headerHooks:G,staticGenerationBailout:$}=B,q="/api/tencent/route";function z(){return(0,l.XH)({serverHooks:X,staticGenerationAsyncStorage:W})}let F=o,L=a.a.wrap(B)},5577:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(9579),o=n(5045),a=n.n(o),i=n(7736);function s(e,t){let{accessCode:n,apiKey:o}=function(e){let t=e.trim().replaceAll("Bearer ","").trim(),n=!t.startsWith(i.TW);return{accessCode:n?"":t.slice(i.TW.length),apiKey:n?t:""}}(e.headers.get("Authorization")??""),s=a().hash(n??"").trim(),l=(0,r.g)();if(console.log("[Auth] allowed hashed codes: ",[...l.codes]),console.log("[Auth] got access code:",n),console.log("[Auth] hashed access code:",s),console.log("[User IP] ",function(e){let t=e.ip??e.headers.get("x-real-ip"),n=e.headers.get("x-forwarded-for");return!t&&n&&(t=n.split(",").at(0)??""),t}(e)),console.log("[Time] ",new Date().toLocaleString()),l.needCode&&!l.codes.has(s)&&!o)return{error:!0,msg:n?"wrong access code":"empty access code"};if(l.hideUserApiKey&&o)return{error:!0,msg:"you are not allowed to access with your own api key"};if(o)console.log("[Auth] use user api key");else{let n;let o=(0,r.g)();switch(t){case i.k8.Stability:n=o.stabilityApiKey;break;case i.k8.GeminiPro:n=o.googleApiKey;break;case i.k8.Claude:n=o.anthropicApiKey;break;case i.k8.Doubao:n=o.bytedanceApiKey;break;case i.k8.Ernie:n=o.baiduApiKey;break;case i.k8.Qwen:n=o.alibabaApiKey;break;case i.k8.Moonshot:n=o.moonshotApiKey;break;case i.k8.Iflytek:n=o.iflytekApiKey+":"+o.iflytekApiSecret;break;case i.k8.DeepSeek:n=o.deepseekApiKey;break;case i.k8.XAI:n=o.xaiApiKey;break;case i.k8.ChatGLM:n=o.chatglmApiKey;break;case i.k8.SiliconFlow:n=o.siliconFlowApiKey;break;case i.k8.GPT:default:n=e.nextUrl.pathname.includes("azure/deployments")?o.azureApiKey:o.apiKey}n?(console.log("[Auth] use system api key"),e.headers.set("Authorization",`Bearer ${n}`)):console.log("[Auth] admin did not provide an api key")}return{error:!1}}},1480:(e,t,n)=>{"use strict";function r(e){let t=e;return("string"!=typeof e&&(e=JSON.stringify(e,null," ")),"{}"===e)?t.toString():e.startsWith("```json")?e:["```json",e,"```"].join("\n")}n.d(t,{B:()=>r})}},e=>{var t=t=>e(e.s=t);e.O(0,[297,45,579],()=>t(727));var n=e.O();(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/tencent/route"]=n}]);
//# sourceMappingURL=route.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[162],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},6074:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ComponentMod:()=>O,default:()=>T});var o={};a.r(o),a.d(o,{GET:()=>c,OPTIONS:()=>h,POST:()=>l,runtime:()=>y});var s={};a.r(s),a.d(s,{headerHooks:()=>m,originalPathname:()=>w,patchFetch:()=>E,requestAsyncStorage:()=>f,routeModule:()=>k,serverHooks:()=>x,staticGenerationAsyncStorage:()=>g,staticGenerationBailout:()=>P});var n=a(7875),r=a(8381),u=a(2251),i=a(9845),d=a(572);async function p(e,{params:t}){let a=new URL(e.url).searchParams.get("endpoint");if("OPTIONS"===e.method)return d.xk.json({body:"OK"},{status:200});let[...o]=t.key;if(!a||!new URL(a).hostname.endsWith(".upstash.io"))return d.xk.json({error:!0,msg:"you are not allowed to request "+t.key.join("/")},{status:403});if("get"!==t.action&&"set"!==t.action)return console.log("[Upstash Route] forbidden action ",t.action),d.xk.json({error:!0,msg:"you are not allowed to request "+t.action},{status:403});let s=`${a}/${t.action}/${t.key.join("/")}`,n=e.method,r=["get","head"].includes(n?.toLowerCase()??""),u={headers:{authorization:e.headers.get("authorization")??""},body:r?null:e.body,method:n,duplex:"half"};console.log("[Upstash Proxy]",s,u);let i=await fetch(s,u);return console.log("[Any Proxy]",s,{status:i.status,statusText:i.statusText}),i}let l=p,c=p,h=p,y="edge",k=new r.AppRouteRouteModule({definition:{kind:u.x.APP_ROUTE,page:"/api/upstash/[action]/[...key]/route",pathname:"/api/upstash/[action]/[...key]",filename:"route",bundlePath:"app/api/upstash/[action]/[...key]/route"},resolvedPagePath:"D:\\NextWeb\\app\\api\\upstash\\[action]\\[...key]\\route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:f,staticGenerationAsyncStorage:g,serverHooks:x,headerHooks:m,staticGenerationBailout:P}=k,w="/api/upstash/[action]/[...key]/route";function E(){return(0,i.XH)({serverHooks:x,staticGenerationAsyncStorage:g})}let O=s,T=n.a.wrap(k)}},e=>{var t=t=>e(e.s=t);e.O(0,[297],()=>t(6074));var a=e.O();(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/upstash/[action]/[...key]/route"]=a}]);
//# sourceMappingURL=route.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[481],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},8438:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ComponentMod:()=>_,default:()=>N});var r={};a.r(r),a.d(r,{GET:()=>w,OPTIONS:()=>b,PUT:()=>f,runtime:()=>g});var n={};a.r(n),a.d(n,{headerHooks:()=>x,originalPathname:()=>k,patchFetch:()=>O,requestAsyncStorage:()=>y,routeModule:()=>v,serverHooks:()=>T,staticGenerationAsyncStorage:()=>P,staticGenerationBailout:()=>E});var o=a(7875),s=a(8381),u=a(2251),i=a(9845),d=a(572),h=a(7736);let p=(0,a(9579).g)(),l=[...h.NU,...p.allowedWebDavEndpoints].filter(e=>!!e.trim()),c=e=>{try{return new URL(e)}catch(e){return null}};async function m(e,{params:t}){let a;if("OPTIONS"===e.method)return d.xk.json({body:"OK"},{status:200});let r=h.Uf,n=`${r}/backup.json`,o=new URL(e.url),s=o.searchParams.get("endpoint"),u=o.searchParams.get("proxy_method")||e.method;if(!s||!l.some(e=>{let t=c(e),a=c(s);return a&&a.hostname===t?.hostname&&a.pathname.startsWith(t.pathname)}))return d.xk.json({error:!0,msg:"Invalid endpoint"},{status:400});s?.endsWith("/")||(s+="/");let i=t.path.join("/"),p=`${s}${i}`;if("MKCOL"!==u&&"GET"!==u&&"PUT"!==u||"MKCOL"===u&&!p.endsWith(r)||"GET"===u&&!p.endsWith(n)||"PUT"===u&&!p.endsWith(n))return d.xk.json({error:!0,msg:"you are not allowed to request "+p},{status:403});let m=u||e.method,f=["get","head"].includes(m?.toLowerCase()??""),w={headers:{authorization:e.headers.get("authorization")??""},body:f?null:e.body,redirect:"manual",method:m,duplex:"half"};try{a=await fetch(p,w)}finally{console.log("[Any Proxy]",p,{method:m},{status:a?.status,statusText:a?.statusText})}return a}let f=m,w=m,b=m,g="edge",v=new s.AppRouteRouteModule({definition:{kind:u.x.APP_ROUTE,page:"/api/webdav/[...path]/route",pathname:"/api/webdav/[...path]",filename:"route",bundlePath:"app/api/webdav/[...path]/route"},resolvedPagePath:"D:\\NextWeb\\app\\api\\webdav\\[...path]\\route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:y,staticGenerationAsyncStorage:P,serverHooks:T,headerHooks:x,staticGenerationBailout:E}=v,k="/api/webdav/[...path]/route";function O(){return(0,i.XH)({serverHooks:T,staticGenerationAsyncStorage:P})}let _=n,N=o.a.wrap(v)}},e=>{var t=t=>e(e.s=t);e.O(0,[297,45,579],()=>t(8438));var a=e.O();(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/webdav/[...path]/route"]=a}]);
//# sourceMappingURL=route.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,5 @@
{
"headers": {
"x-next-cache-tags": "_N_T_/layout,_N_T_/page,_N_T_/"
}
}

@ -0,0 +1,8 @@
3:I[5613,[],""]
4:I[31778,[],""]
5:I[91845,["5249","static/chunks/5249-e6b4ca9fe5552db1.js","3185","static/chunks/app/layout-e85b2e936329237e.js"],"GoogleAnalytics"]
0:["6hareyoc49c0bdS3T8jIR",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1","$L2",null]]},[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"config","content":"{\"version\":\"v2.15.8\",\"commitDate\":\"1739410376000\",\"commitHash\":\"276467a7e4dbe4da515c90f85d5dcb198b9dbf05\",\"buildMode\":\"standalone\",\"isApp\":false,\"template\":\"{{input}}\"}"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}],["$","link",null,{"rel":"manifest","href":"/site.webmanifest","crossOrigin":"use-credentials"}],["$","script",null,{"src":"/serviceWorkerRegister.js","defer":true}]]}],["$","body",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/caf9a57a63d7406d.css","precedence":"next","crossOrigin":""}]]}],false,"$undefined",["$","$L5",null,{"gaId":"G-89WN60ZK2E"}]]}]]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e00b6020178b71d7.css","precedence":"next","crossOrigin":""}]],"$L6"]]]]
7:I[34307,["2156","static/chunks/e99863e0-e4b3f99da88abe5e.js","4560","static/chunks/fcfb803e-7cf37c0f71f664d5.js","8252","static/chunks/4b1a69f1-6f22e9db098c258d.js","5249","static/chunks/5249-e6b4ca9fe5552db1.js","2544","static/chunks/2544-913e2d52d5cfaf94.js","1931","static/chunks/app/page-a49954b0f49c7589.js"],"Home"]
2:[["$","$L7",null,{}],false]
6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","1",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#fafafa"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#151515"}],["$","meta","3",{"charSet":"utf-8"}],["$","title","4",{"children":"NextChat"}],["$","meta","5",{"name":"description","content":"Your personal ChatGPT Chat Bot."}],["$","meta","6",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","7",{"name":"apple-mobile-web-app-title","content":"NextChat"}],["$","meta","8",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}]]
1:null

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"version":1,"files":["../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../node_modules/next/dist/client/components/async-local-storage.js","../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/105.js","../chunks/110.js","../chunks/111.js","../chunks/12.js","../chunks/132.js","../chunks/16.js","../chunks/219.js","../chunks/223.js","../chunks/233.js","../chunks/261.js","../chunks/279.js","../chunks/313.js","../chunks/339.js","../chunks/348.js","../chunks/388.js","../chunks/419.js","../chunks/427.js","../chunks/500.js","../chunks/558.js","../chunks/563.js","../chunks/583.js","../chunks/585.js","../chunks/586.js","../chunks/592.js","../chunks/601.js","../chunks/610.js","../chunks/648.js","../chunks/649.js","../chunks/665.js","../chunks/703.js","../chunks/708.js","../chunks/712.js","../chunks/724.js","../chunks/737.js","../chunks/738.js","../chunks/746.js","../chunks/752.js","../chunks/765.js","../chunks/768.js","../chunks/845.js","../chunks/87.js","../chunks/912.js","../chunks/935.js","../webpack-runtime.js","page_client-reference-manifest.js"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
"use strict";exports.id=592,exports.ids=[592],exports.modules={66592:(e,t,a)=>{a.r(t),a.d(t,{ChatItem:()=>v,ChatList:()=>C});var s=a(95344),i=a(12670),n=a(84051),l=a.n(n),r=a(23463),c=a(33362),d=a(9719),o=a(17304),m=a(99608),h=a(86111),x=a(3729),p=a(6068),u=a(25166),j=a(56815);function v(e){let t=(0,x.useRef)(null);(0,x.useEffect)(()=>{e.selected&&t.current&&t.current?.scrollIntoView({block:"center"})},[e.selected]);let{pathname:a}=(0,o.TH)();return s.jsx(r._l,{draggableId:`${e.id}`,index:e.index,children:n=>(0,s.jsxs)("div",{className:(0,j.Z)(l()["chat-item"],{[l()["chat-item-selected"]]:e.selected&&(a===m.y$.Chat||a===m.y$.Home)}),onClick:e.onClick,ref:e=>{t.current=e,n.innerRef(e)},...n.draggableProps,...n.dragHandleProps,title:`${e.title}
${d.ZP.ChatItem.ChatItemCount(e.count)}`,children:[e.narrow?(0,s.jsxs)("div",{className:l()["chat-item-narrow"],children:[s.jsx("div",{className:(0,j.Z)(l()["chat-item-avatar"],"no-dark"),children:s.jsx(h.MaskAvatar,{avatar:e.mask.avatar,model:e.mask.modelConfig.model})}),s.jsx("div",{className:l()["chat-item-narrow-count"],children:e.count})]}):(0,s.jsxs)(s.Fragment,{children:[s.jsx("div",{className:l()["chat-item-title"],children:e.title}),(0,s.jsxs)("div",{className:l()["chat-item-info"],children:[s.jsx("div",{className:l()["chat-item-count"],children:d.ZP.ChatItem.ChatItemCount(e.count)}),s.jsx("div",{className:l()["chat-item-date"],children:e.time})]})]}),s.jsx("div",{className:l()["chat-item-delete"],onClickCapture:t=>{e.onDelete?.(),t.preventDefault(),t.stopPropagation()},children:s.jsx(i.Z,{})})]})})}function C(e){let[t,a,i,n]=(0,c.aK)(e=>[e.sessions,e.currentSessionIndex,e.selectSession,e.moveSession]),h=(0,c.aK)(),x=(0,o.s0)(),j=(0,u.S0)();return s.jsx(r.Z5,{onDragEnd:e=>{let{destination:t,source:a}=e;t&&(t.droppableId!==a.droppableId||t.index!==a.index)&&n(a.index,t.index)},children:s.jsx(r.bK,{droppableId:"chat-list",children:n=>(0,s.jsxs)("div",{className:l()["chat-list"],ref:n.innerRef,...n.droppableProps,children:[t.map((t,n)=>s.jsx(v,{title:t.topic,time:new Date(t.lastUpdate).toLocaleString(),count:t.messages.length,id:t.id,index:n,selected:n===a,onClick:()=>{x(m.y$.Chat),i(n)},onDelete:async()=>{(!e.narrow&&!j||await (0,p.i0)(d.ZP.Home.DeleteChat))&&h.deleteSession(n)},narrow:e.narrow,mask:t.mask},t.id)),n.placeholder]})})})}}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
"use strict";exports.id=703,exports.ids=[703],exports.modules={98703:(e,t,s)=>{s.d(t,{diagram:()=>C});var i=s(91708),r=s(38601),o=s(3896),a=s(15537),l=s(77339);s(48869),s(43795),s(57581),s(348),s(40113);let d="rect",n="rectWithTitle",c="statediagram",p=`${c}-state`,g="transition",b=`${g} note-edge`,h=`${c}-note`,u=`${c}-cluster`,y=`${c}-cluster-alt`,f="parent",x="note",m="----",w=`${m}${x}`,$=`${m}${f}`,T="fill:none",S="fill: #333",D="text",A="normal",k={},B=0;function v(e="",t=0,s="",i=m){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${e}${r}-${t}`}let E=(e,t,s,r,o,l)=>{let c=s.id,g=function(e){return null==e?"":e.classes?e.classes.join(" "):""}(r[c]);if("root"!==c){let t=d;!0===s.start&&(t="start"),!1===s.start&&(t="end"),s.type!==i.D&&(t=s.type),k[c]||(k[c]={id:c,shape:t,description:a.e.sanitizeText(c,(0,a.c)()),classes:`${g} ${p}`});let r=k[c];s.description&&(Array.isArray(r.description)?(r.shape=n,r.description.push(s.description)):r.description.length>0?(r.shape=n,r.description===c?r.description=[s.description]:r.description=[r.description,s.description]):(r.shape=d,r.description=s.description),r.description=a.e.sanitizeTextOrArray(r.description,(0,a.c)())),1===r.description.length&&r.shape===n&&(r.shape=d),!r.type&&s.doc&&(a.l.info("Setting cluster for ",c,V(s)),r.type="group",r.dir=V(s),r.shape=s.type===i.a?"divider":"roundedWithTitle",r.classes=r.classes+" "+u+" "+(l?y:""));let o={labelStyle:"",shape:r.shape,labelText:r.description,classes:r.classes,style:"",id:c,dir:r.dir,domId:v(c,B),type:r.type,padding:15};if(o.centerLabel=!0,s.note){let t={labelStyle:"",shape:"note",labelText:s.note.text,classes:h,style:"",id:c+w+"-"+B,domId:v(c,B,x),type:r.type,padding:15},i={labelStyle:"",shape:"noteGroup",labelText:s.note.text,classes:r.classes,style:"",id:c+$,domId:v(c,B,f),type:"group",padding:0};B++;let a=c+$;e.setNode(a,i),e.setNode(t.id,t),e.setNode(c,o),e.setParent(c,a),e.setParent(t.id,a);let l=c,d=t.id;"left of"===s.note.position&&(l=t.id,d=c),e.setEdge(l,d,{arrowhead:"none",arrowType:"",style:T,labelStyle:"",classes:b,arrowheadStyle:S,labelpos:"c",labelType:D,thickness:A})}else e.setNode(c,o)}t&&"root"!==t.id&&(a.l.trace("Setting node ",c," to be child of its parent ",t.id),e.setParent(c,t.id)),s.doc&&(a.l.trace("Adding nodes children "),R(e,s,s.doc,r,o,!l))},R=(e,t,s,r,o,l)=>{a.l.trace("items",s),s.forEach(s=>{switch(s.stmt){case i.b:case i.D:E(e,t,s,r,o,l);break;case i.S:{E(e,t,s.state1,r,o,l),E(e,t,s.state2,r,o,l);let i={id:"edge"+B,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:T,labelStyle:"",label:a.e.sanitizeText(s.description,(0,a.c)()),arrowheadStyle:S,labelpos:"c",labelType:D,thickness:A,classes:g};e.setEdge(s.state1.id,s.state2.id,i,B),B++}}})},V=(e,t=i.c)=>{let s=t;if(e.doc)for(let t=0;t<e.doc.length;t++){let i=e.doc[t];"dir"===i.stmt&&(s=i.value)}return s},N=async function(e,t,s,i){let n;a.l.info("Drawing state diagram (v2)",t),k={},i.db.getDirection();let{securityLevel:p,state:g}=(0,a.c)(),b=g.nodeSpacing||50,h=g.rankSpacing||50;a.l.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),a.l.info(i.db.getRootDocV2());let u=i.db.getStates(),y=new r.k({multigraph:!0,compound:!0}).setGraph({rankdir:V(i.db.getRootDocV2()),nodesep:b,ranksep:h,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});E(y,void 0,i.db.getRootDocV2(),u,i.db,!0),"sandbox"===p&&(n=(0,o.Ys)("#i"+t));let f="sandbox"===p?(0,o.Ys)(n.nodes()[0].contentDocument.body):(0,o.Ys)("body"),x=f.select(`[id="${t}"]`),m=f.select("#"+t+" g");await (0,l.r)(m,y,["barb"],c,t),a.u.insertTitle(x,"statediagramTitleText",g.titleTopMargin,i.db.getDiagramTitle());let w=x.node().getBBox(),$=w.width+16,T=w.height+16;x.attr("class",c);let S=x.node().getBBox();(0,a.i)(x,T,$,g.useMaxWidth);let D=`${S.x-8} ${S.y-8} ${$} ${T}`;for(let e of(a.l.debug(`viewBox ${D}`),x.attr("viewBox",D),document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'))){let t=e.getBBox(),s=document.createElementNS("http://www.w3.org/2000/svg",d);s.setAttribute("rx",0),s.setAttribute("ry",0),s.setAttribute("width",t.width),s.setAttribute("height",t.height),e.insertBefore(s,e.firstChild)}},C={parser:i.p,db:i.d,renderer:{setConf:function(e){for(let t of Object.keys(e))e[t]},getClasses:function(e,t){return t.db.extract(t.db.getRootDocV2()),t.db.getClasses()},draw:N},styles:i.s,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,i.d.clear()}}}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
"use strict";exports.id=724,exports.ids=[724],exports.modules={33500:(e,l,t)=>{t.d(l,{diagram:()=>u});var a=t(78585),i=t(3896),n=t(38601),o=t(15537),s=t(77339);t(48869),t(43795),t(57581),t(348),t(40113);let d=e=>o.e.sanitizeText(e,(0,o.c)()),r={dividerMargin:10,padding:5,textHeight:10,curve:void 0},c=function(e,l,t,a){let i=Object.keys(e);o.l.info("keys:",i),o.l.info(e),i.forEach(function(i){var n,s;let r=e[i],c={shape:"rect",id:r.id,domId:r.domId,labelText:d(r.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(n=(0,o.c)().flowchart)?void 0:n.padding)??(null==(s=(0,o.c)().class)?void 0:s.padding)};l.setNode(r.id,c),p(r.classes,l,t,a,r.id),o.l.info("setNode",c)})},p=function(e,l,t,a,i){let n=Object.keys(e);o.l.info("keys:",n),o.l.info(e),n.filter(l=>e[l].parent==i).forEach(function(t){var n,s;let r=e[t],c=r.cssClasses.join(" "),p={labelStyle:"",style:""},b=r.label??r.id,y={labelStyle:p.labelStyle,shape:"class_box",labelText:d(b),classData:r,rx:0,ry:0,class:c,style:p.style,id:r.id,domId:r.domId,tooltip:a.db.getTooltip(r.id,i)||"",haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:(null==(n=(0,o.c)().flowchart)?void 0:n.padding)??(null==(s=(0,o.c)().class)?void 0:s.padding)};l.setNode(r.id,y),i&&l.setParent(r.id,i),o.l.info("setNode",y)})},b=function(e,l,t,a){o.l.info(e),e.forEach(function(e,n){var s,c;let p={labelStyle:"",style:""},b=e.text,y={labelStyle:p.labelStyle,shape:"note",labelText:d(b),noteData:e,rx:0,ry:0,class:"",style:p.style,id:e.id,domId:e.id,tooltip:"",type:"note",padding:(null==(s=(0,o.c)().flowchart)?void 0:s.padding)??(null==(c=(0,o.c)().class)?void 0:c.padding)};if(l.setNode(e.id,y),o.l.info("setNode",y),!e.class||!(e.class in a))return;let f=t+n,g={id:`edgeNote${f}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:(0,o.n)(r.curve,i.c_6)};l.setEdge(e.id,e.class,g,f)})},y=function(e,l){let t=(0,o.c)().flowchart,a=0;e.forEach(function(e){var n;a++;let s={classes:"relation",pattern:1==e.relation.lineType?"dashed":"solid",id:"id"+a,arrowhead:"arrow_open"===e.type?"none":"normal",startLabelRight:"none"===e.relationTitle1?"":e.relationTitle1,endLabelLeft:"none"===e.relationTitle2?"":e.relationTitle2,arrowTypeStart:g(e.relation.type1),arrowTypeEnd:g(e.relation.type2),style:"fill:none",labelStyle:"",curve:(0,o.n)(null==t?void 0:t.curve,i.c_6)};if(o.l.info(s,e),void 0!==e.style){let l=(0,o.k)(e.style);s.style=l.style,s.labelStyle=l.labelStyle}e.text=e.title,void 0===e.text?void 0!==e.style&&(s.arrowheadStyle="fill: #333"):(s.arrowheadStyle="fill: #333",s.labelpos="c",(null==(n=(0,o.c)().flowchart)?void 0:n.htmlLabels)??(0,o.c)().htmlLabels?(s.labelType="html",s.label='<span class="edgeLabel">'+e.text+"</span>"):(s.labelType="text",s.label=e.text.replace(o.e.lineBreakRegex,"\n"),void 0===e.style&&(s.style=s.style||"stroke: #333; stroke-width: 1.5px;fill:none"),s.labelStyle=s.labelStyle.replace("color:","fill:"))),l.setEdge(e.id1,e.id2,s,a)})},f=async function(e,l,t,a){let d;o.l.info("Drawing class - ",l);let r=(0,o.c)().flowchart??(0,o.c)().class,f=(0,o.c)().securityLevel;o.l.info("config:",r);let g=(null==r?void 0:r.nodeSpacing)??50,u=(null==r?void 0:r.rankSpacing)??50,h=new n.k({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:g,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),v=a.db.getNamespaces(),w=a.db.getClasses(),x=a.db.getRelations(),m=a.db.getNotes();o.l.info(x),c(v,h,l,a),p(w,h,l,a),y(x,h),b(m,h,x.length+1,w),"sandbox"===f&&(d=(0,i.Ys)("#i"+l));let k="sandbox"===f?(0,i.Ys)(d.nodes()[0].contentDocument.body):(0,i.Ys)("body"),S=k.select(`[id="${l}"]`),T=k.select("#"+l+" g");if(await (0,s.r)(T,h,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",l),o.u.insertTitle(S,"classTitleText",(null==r?void 0:r.titleTopMargin)??5,a.db.getDiagramTitle()),(0,o.o)(h,S,null==r?void 0:r.diagramPadding,null==r?void 0:r.useMaxWidth),!(null==r?void 0:r.htmlLabels)){let e="sandbox"===f?d.nodes()[0].contentDocument:document;for(let t of e.querySelectorAll('[id="'+l+'"] .edgeLabel .label')){let l=t.getBBox(),a=e.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("rx",0),a.setAttribute("ry",0),a.setAttribute("width",l.width),a.setAttribute("height",l.height),t.insertBefore(a,t.firstChild)}}};function g(e){let l;switch(e){case 0:l="aggregation";break;case 1:l="extension";break;case 2:l="composition";break;case 3:l="dependency";break;case 4:l="lollipop";break;default:l="none"}return l}let u={parser:a.p,db:a.d,renderer:{setConf:function(e){r={...r,...e}},draw:f},styles:a.s,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,a.d.clear()}}}};

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
exports.id=738,exports.ids=[738],exports.modules={94738:(e,s,a)=>{"use strict";a.r(s),a.d(s,{SearchChatPage:()=>u});var t=a(95344),i=a(3729),n=a(99668),r=a(94313),l=a.n(r),m=a(17304),c=a(70580),d=a(26989),o=a(32168),h=a(9719),k=a(99608),_=a(33362);function u(){let e=(0,m.s0)(),s=(0,_.aK)(),a=s.sessions,r=s.selectSession,[u,x]=(0,i.useState)([]),g=(0,i.useRef)(""),f=(0,i.useRef)(null),j=(0,i.useCallback)(e=>{let s=e.toLowerCase(),t=[];return a.forEach((e,a)=>{let i=[];e.messages.forEach(e=>{let a=e.content;if(!a.toLowerCase||""===a)return;let t=a.toLowerCase(),n=t.indexOf(s);for(;-1!==n;){let e=Math.max(0,n-35),r=Math.min(a.length,n+s.length+35);i.push(a.substring(e,r)),n=t.indexOf(s,n+s.length)}}),i.length>0&&t.push({id:a,name:e.topic,content:i.join("... ")})}),t.sort((e,s)=>s.content.length-e.content.length),t},[]);return(0,i.useEffect)(()=>{let e=setInterval(()=>{if(f.current){let e=f.current.value;e!==g.current&&(e.length>0&&x(j(e)),g.current=e)}},1e3);return()=>clearInterval(e)},[j]),t.jsx(n.S,{children:(0,t.jsxs)("div",{className:l()["mask-page"],children:[(0,t.jsxs)("div",{className:"window-header",children:[(0,t.jsxs)("div",{className:"window-header-title",children:[t.jsx("div",{className:"window-header-main-title",children:h.ZP.SearchChat.Page.Title}),t.jsx("div",{className:"window-header-submai-title",children:h.ZP.SearchChat.Page.SubTitle(u.length)})]}),t.jsx("div",{className:"window-actions",children:t.jsx("div",{className:"window-action-button",children:t.jsx(c.h,{icon:t.jsx(d.Z,{}),bordered:!0,onClick:()=>e(-1)})})})]}),(0,t.jsxs)("div",{className:l()["mask-page-body"],children:[t.jsx("div",{className:l()["mask-filter"],children:t.jsx("input",{type:"text",className:l()["search-bar"],placeholder:h.ZP.SearchChat.Page.Search,autoFocus:!0,ref:f,onKeyDown:e=>{if("Enter"===e.key){e.preventDefault();let s=e.currentTarget.value;s.length>0&&x(j(s))}}})}),t.jsx("div",{children:u.map(s=>(0,t.jsxs)("div",{className:l()["mask-item"],onClick:()=>{e(k.y$.Chat),r(s.id)},style:{cursor:"pointer"},children:[t.jsx("div",{className:l()["mask-header"],children:(0,t.jsxs)("div",{className:l()["mask-title"],children:[t.jsx("div",{className:l()["mask-name"],children:s.name}),s.content.slice(0,70)]})}),t.jsx("div",{className:l()["mask-actions"],children:t.jsx(c.h,{icon:t.jsx(o.Z,{}),text:h.ZP.SearchChat.Item.View})})]},s.id))})]})]})})}},94313:e=>{e.exports={"mask-page":"mask_mask-page__ou14k","mask-page-body":"mask_mask-page-body__kBXsJ","mask-filter":"mask_mask-filter__OdpU3","slide-in":"mask_slide-in__unpXH","search-bar":"mask_search-bar__7_Msn","mask-filter-lang":"mask_mask-filter-lang__mRxyv","mask-create":"mask_mask-create__BjAzk","mask-item":"mask_mask-item__dinia","mask-header":"mask_mask-header__RXJXI","mask-icon":"mask_mask-icon__wO1ER","mask-title":"mask_mask-title__IDEbR","mask-name":"mask_mask-name__77Rjh","mask-info":"mask_mask-info__2gtiu","mask-actions":"mask_mask-actions__rsWn_","slide-in-from-top":"mask_slide-in-from-top__DOEYB"}}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save