1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3318],{1518:(e,t,r)=>{r.d(t,{cn:()=>s,lk:()=>o,qz:()=>c});var a=r(44470),n=r(79510),i=r(91734);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,a.$)(t))}let o=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})};async function c(e,t){try{let a=null;{let{AnonymousIdentity:e}=await r.e(3582).then(r.bind(r,43582));(a=await e.initializeOrGet())&&console.log("\uD83D\uDCE4 [Fetch] è¯·æ±æºå¸¦å¿å ID:",a)}let n={...null==t?void 0:t.headers,...a?{"X-Anonymous-Id":a}:{}},s=await fetch(e,{...t,credentials:"include",headers:n});if(!s.ok){let{code:e,cause:t}=await s.json();throw new i.P7(e,t)}return s}catch(e){if("undefined"!=typeof navigator&&!navigator.onLine)throw new i.P7("offline:chat");throw e}}},19895:(e,t,r)=>{r.d(t,{Y:()=>n,c:()=>a});var a=function(e){return e.MONTH="month",e.YEAR="year",e}({}),n=function(e){return e.SUBSCRIPTION="subscription",e.ONE_TIME="one_time",e}({})},88681:(e,t,r)=>{r.d(t,{u:()=>i});var a=r(19895),n=r(24468);let i={metadata:{theme:{defaultTheme:"default",enableSwitch:!0},mode:{defaultMode:"light",enableSwitch:!1},images:{ogImage:"/og.png",logoLight:"/logo.png",logoDark:"/logo-dark.png"},social:{github:"",twitter:"",blueSky:"",discord:"https://discord.gg/Kz8RGtuw",mastodon:"",linkedin:"",youtube:""}},features:{enableDiscordWidget:!1,enableCrispChat:!1,enableUpgradeCard:!0,enableUpdateAvatar:!0,enableAffonsoAffiliate:!1,enablePromotekitAff
1iliate:!1,enableDatafastRevenueTrack:!1,enableTurnstileCaptcha:!1,enableEmbedChatRedirect:!0},routes:{defaultLoginRedirect:"/app/chat"},analytics:{enableVercelAnalytics:!1,enableSpeedInsights:!1},auth:{enableGoogleLogin:!0,enableGithubLogin:!0,enableCredentialLogin:!1},i18n:{defaultLocale:"en",locales:{en:{flag:"\uD83C\uDDFA\uD83C\uDDF8",name:"English",countryCode:"us"},zh:{flag:"\uD83C\uDDE8\uD83C\uDDF3",name:"䏿",countryCode:"cn"},tw:{flag:"\uD83C\uDDF9\uD83C\uDDFC",name:"ç¹é«ä¸æ",countryCode:"tw"},ar:{flag:"\uD83C\uDDF8\uD83C\uDDE6",name:"Ø§ÙØ¹Ø±Ø¨ÙØ©",countryCode:"sa"},de:{flag:"\uD83C\uDDE9\uD83C\uDDEA",name:"Deutsch",countryCode:"de"},es:{flag:"\uD83C\uDDEA\uD83C\uDDF8",name:"Espa\xf1ol",countryCode:"es"},fa:{flag:"\uD83C\uDDEE\uD83C\uDDF7",name:"ÙØ§Ø±Ø³Û",countryCode:"ir"},it:{flag:"\uD83C\uDDEE\uD83C\uDDF9",name:"Italiano",countryCode:"it"},ja:{flag:"\uD83C\uDDEF\uD83C\uDDF5",name:"æ¥æ¬èª",countryCode:"jp"},ko:{flag:"\uD83C\uDDF0\uD83C\uDDF7",name:"íêµì´",countryCode:"kr"},ru:{flag:"\uD83C\uDDF7\uD83C\uDDFA",name:"Ð ÑÑÑкий",countryCode:"ru"}}},blog:{paginationSize:6,relatedPostsSize:3},mail:{provider:"resend",fromEmail:"",supportEmail:"[email protected]"},newsletter:{provider:"resend",autoSubscribeAfterSignUp:!0},storage:{provider:"s3"},payment:{provider:"stripe"},price:{plans:{free:{id:"free",prices:[],isFree:!0,isLifetime:!1,quota:{monthlyQuota:300,resetType:"monthly"},credits:{enable:!1,amount:50,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,multiDevice:1,embedAccess:!0,embedBranding:!0,gptCreationQuota:3}},pro:{id:"pro",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2EIE3K76gq",amount:999,currency:"USD",interval:a.c.MONTH,allowPromotionCode:!0},{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2EmByGyte3",amount:8999,currency:"USD",interval:a.c.YEAR,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!1,quota:{monthlyQuota:3e3,resetType:"monthly"},credits:{enable:!0,amount:1e3,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,multiDevice:1,embedAccess:!0,embedBranding:!0,gptCreationQuota:10}},ultra:{id:"ultra",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2EHnimqNPW",amount:1999,currency:"USD",interval:a.c.MONTH,allowPromotionCode:!0},{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2ExJupc9Q7",amount:15999,currency:"USD",interval:a.c.YEAR,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!0,quota:{monthlyQuota:"unlimited",resetType:"never"},credits:{enable:!0,amount:3e3,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,prioritySpeed:!0,multiDevice:2,embedAccess:!0,embedBranding:!1,gptCreationQuota:50}},unlimited:{id:"unlimited",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2EjuGPPP2C",amount:4999,currency:"USD",interval:a.c.MONTH,allowPromotionCode:!0},{type:a.Y.SUBSCRIPTION,priceId:"price_1RzqnoAuVMV2Hx2EUDbHLgKS",amount:39999,currency:"USD",interval:a.c.YEAR,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!1,quota:{monthlyQuota:"unlimited",resetType:"never"},credits:{enable:!0,amount:12e3,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,prioritySpeed:!0,multiDevice:3,embedAccess:!0,embedBranding:!1,gptCreationQuota:"unlimited"}},legacy:{id:"legacy",prices:[{type:a.Y.SUBSCRIPTION,priceId:n.env.STRIPE_LEGACY_AD_FREE_PRICE_ID,amount:299,currency:"USD",interval:a.c.MONTH}],isFree:!1,isLifetime:!1,popular:!1,hidden:!0,legacy:!0,quota:{monthlyQuota:1500,resetType:"monthly"},credits:{enable:!0,amount:200,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,multiDevice:1,embedAccess:!0,embedBranding:!1,gptCreationQuota:5}},legacy2:{id:"legacy2",prices:[{type:a.Y.SUBSCRIPTION,priceId:n.env.STRIPE_LEGACY_2_PRICE_ID,amount:299,currency:"USD",interval:a.c.MONTH}],isFree:!1,isLifetime:!1,popular:!1,hidden:!0,legacy:!0,quota:{monthlyQuota:1500,resetType:"monthly"},credits:{enable:!0,amount:200,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,multiDevice:1,embedAccess:!0,embedBranding:!1,gptCreationQuota:5}},lifetime:{id:"lifetime",prices:[{type:a.Y.ONE_TIME,priceId:n.env.NEXT_PUBLIC_STRIPE_PRICE_LIFETIME,amount:39900,currency:"USD",interval:null}],isFree:!1,isLifetime:!0,popular:!1,quota:{monthlyQuota:"unlimited",resetType:"never"},credits:{enable:!0,amount:3e3,expireDays:30},permissions:{basicModelsAccess:!0,advancedModelsAccess:!0,canvasAccess:!0,codeRunnerAccess:!0,prioritySpeed:!0,multiDevice:5,embedAccess:!0,embedBranding:!1,gptCreationQuota:"unlimited"}}}},credits:{enableCredits:!0,enableForFreePlan:!1,registerGiftCredits:{enable:!0,credits:50,expireDays:30},packages:{mini:{id:"mini",popular:!1,credits:100,expireDays:90,price:{priceId:"price_1RvYJyLZ4hbyaK4Zykj
1HxDXv",amount:99,currency:"USD",allowPromotionCode:!1},name:"è¯ç¨å
",description:"è¯ç¨é«çº§æ¨¡å"},starter:{id:"starter",popular:!1,credits:500,expireDays:90,price:{priceId:"price_1RvYKFLZ4hbyaK4ZCWrvKF6q",amount:499,currency:"USD",allowPromotionCode:!0},name:"å
¥é¨å
",description:"轻度使ç¨"},growth:{id:"growth",popular:!0,credits:2e3,expireDays:90,price:{priceId:"price_1RvYKbLZ4hbyaK4Zyw0YIkzQ",amount:1499,currency:"USD",allowPromotionCode:!0},name:"æé¿å
",description:"常è§ä½¿ç¨ï¼èç25%",discount:25},scale:{id:"scale",popular:!1,credits:5e3,expireDays:90,price:{priceId:"price_1RvYLMLZ4hbyaK4ZEX2tAHiD",amount:2999,currency:"USD",allowPromotionCode:!0},name:"è§æ¨¡å
",description:"é度使ç¨ï¼èç40%",discount:40}}},invite:{enabled:!0,linkExpireDays:7,monthlyLimit:1500,rewards:{firstInviteCredits:50,subsequentInviteCredits:100,inviteeCredits:50},milestones:[{count:3,reward:200,type:"credits",description:"é请3人éç¨ç¢"},{count:5,reward:500,type:"credits",description:"é请5人éç¨ç¢"},{count:10,reward:"pro_monthly",type:"subscription",description:"é请10人éç¨ç¢"},{count:20,reward:2e3,type:"credits",description:"é请20人éç¨ç¢"},{count:50,reward:"pro_quarterly",type:"subscription",description:"é请50人éç¨ç¢"}],antiCheat:{enableIpCheck:!0,maxRegistrationsPerIp:3,ipCheckWindowHours:24,blockedEmailDomains:["tempmail.com","guerrillamail.com","10minutemail.com"],enableDeviceFingerprint:!1}}}},91734:(e,t,r)=>{r.d(t,{P7:()=>n});let a={database:"log",chat:"response",auth:"response",stream:"response",api:"response",history:"response",vote:"response",document:"response",suggestions:"response"};class n extends Error{toResponse(){let e="".concat(this.type,":").concat(this.surface),t=a[this.surface],{message:r,cause:n,statusCode:i}=this;return(this.sendErrorNotificationAsync(),"log"===t)?(console.error({code:e,message:r,cause:n}),Response.json({code:"",message:"An error occurred. Please try again later."},{status:i})):Response.json({code:e,message:r,cause:n},{status:i})}sendErrorNotificationAsync(e){setTimeout(async()=>{try{let{ErrorMonitor:t}=await r.e(1010).then(r.bind(r,51010));await t.captureError(this,{errorType:t.mapSurfaceToNotificationType(this.surface),severity:t.mapToSeverity(this.type,this.surface),metadata:{errorCode:"".concat(this.type,":").concat(this.surface),cause:this.cause,statusCode:this.statusCode}},e)}catch(e){console.error("[ChatSDKError] éè¯¯çæ§å¤±è´¥:",e)}},0)}constructor(e,t){super();let[r,a]=e.split(":");this.type=r,this.cause=t,this.surface=a,this.message=function(e){if(e.includes("database"))return"An error occurred while executing a database query.";switch(e){case"bad_request:api":return"Unable to process the request. Please check your input and try again.";case"unauthorized:auth":return"Please sign in to continue.";case"forbidden:auth":return"You do not have permission to access this feature.";case"not_found:chat":return"Requested chat not found. Please check the chat ID and try again.";case"forbidden:chat":return"This chat belongs to another user. Please check the chat ID and try again.";case"unauthorized:chat":return"You must sign in to view this chat. Please try again after signing in.";case"offline:chat":return"There was a problem sending the message. Please check your network connection and try again.";case"not_found:document":return"Requested document not found. Please check the document ID and try again.";case"forbidden:document":return"This document belongs to another user. Please check the document ID and try again.";case"unauthorized:document":return"You must sign in to view this document. Please try again after signing in.";case"bad_request:document":return"Invalid request to create or update the document. Please check your input and try again.";default:return"An error occurred. Please try again later."}}(e),this.statusCode=function(e){switch(e){case"bad_request":return 400;case"unauthorized":return 401;case"forbidden":return 403;case"not_found":return 404;case"offline":return 503;default:return 500}}(this.type)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.