1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98384],{163088:(e,n,t)=>{t.d(n,{D_:()=>r,Dp:()=>S,JP:()=>d,PI:()=>R,Q:()=>i,Uk:()=>l,b1:()=>v,dm:()=>o,eZ:()=>A,fX:()=>E,iD:()=>I,px:()=>u,sE:()=>c,sT:()=>a,x8:()=>s});var a=function(e){return e.active="active",e.permanent="permanent",e.redeemed="redeemed",e.expired="expired",e.blocked="blocked",e}({}),i=function(e){return e.invitation="invitation",e.referralLink="referralLink",e}({}),o=function(e){return e.InvalidAmount="Invalid amount",e.InsufficientBalance="Insufficient balance",e.InvalidExpiresAt="Invalid expiry date",e.InviteNotFound="Invite not found",e.InviteRedeemed="Invite already redeemed",e.InviteExpired="Invite expired",e.InviteBlocked="Invite blocked",e.NoAmountToRedeem="No amount to redeem",e.CurrencyNotSpecified="Currency must be specified",e.CurrencyNotUpdateable="The currency of an invitation cannot be changed after creation.",e.MutualReferralNotAllowed="Mutual referrals are not allowed",e}({}),r=function(e){return e.DEPOSIT="DEPOSIT",e.WITHDRAWAL="WITHDRAWAL",e.TRANSFER="TRANSFER",e.SUBSCRIPTION="SUBSCRIPTION",e.REFERRER_CREDIT="REFERRER_CREDIT",e}({}),c=function(e){return e.API="API",e.WEB="WEB",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.PENDING="PENDING",e.PROCESSING="PROCESSING",e.PAID="PAID",e.UNPAID="UNPAID",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.EXPIRED="EXPIRED",e.WITHHELD="WITHHELD",e}({}),l=function(e){return e.XNO="XNO",e.BCH="BCH",e.ETH="ETH",e.BASE="BASE",e.AVAX="AVAX",e.ATOM="ATOM",e.SOL="SOL",e.XMR="XMR",e.LTC="LTC",e["LTC-MWEB"]="LTC-MWEB",e.DASH="DASH",e.BTC="BTC",e["BTC-LN"]="BTC-LN",e.DOGE="DOGE",e.USDC="USDC",e.USDT="USDT",e.PYUSD="PYUSD",e.EURR="EURR",e.TRX="TRX",e.XRP="XRP",e.BNB="BNB",e.VERSE="VERSE",e.ARBITRUM="ARBITRUM",e.POLYGON="POLYGON",e.MATIC="MATIC",e.KAS="KAS",e.EGLD="EGLD",e.ZEC="ZEC",e.TON="TON",e.NEAR="NEAR",e.ZANO="ZANO",e.FUSD="FUSD",e.VVV="VVV",e}({}),d=function(e){return e.USD="$",e.XNO="Ó¾",e.BCH="É",e.SOL="â",e.XMR="ɱ",e.LTC="Å",e["LTC-MWEB"]="Å",e.DASH="\xd0",e.BTC="â¿",e["BTC-LN"]="sats",e.DOGE="\xd0",e.USDC="$",e.TRX="TRX",e.XRP="XRP",e.BNB="BNB",e.USDT="$",e.PYUSD="$",e.EURR="â¬",e.AVAX="AVAX",e.ATOM="ATOM",e.ETH="Î",e.ZEC="â©",e.TON="\uD83D\uDC8E",e.VERSE="",e.KAS="K",e.EGL
1D="â¡",e.NEAR="â",e.EUR="â¬",e.GBP="\xa3",e.ZANO="ZANO",e.FUSD="$",e.VVV="VVV",e}({}),u=function(e){return e.USD="USD",e.EUR="EUR",e.GBP="GBP",e}({});let E={AZURE:"azure",DALLE:"dalle",NOVITA:"novita",STABLECOG:"stablecog",DOUBAO:"doubao",REPLICATE:"replicate",FAL:"fal",GOOGLE:"google",CHUTES:"chutes",OPENAI:"openai",ARLI:"arli",RUNWARE:"runware",HIGGSFIELD:"higgsfield",WAVESPEED:"wavespeed",ZAI:"zai",STEPFUN:"stepfun"};var v=function(e){return e.CAKE="cake",e.MAIN="main",e.BITCOINCOM="bitcoincom",e.BCASHGPT="bcashgpt",e}({}),S=function(e){return e.chat="chat",e.translate="translate",e.image="image",e.video="video",e.model3d="model3d",e.audio="audio",e.voice="voice",e}({});let I=e=>"chat"===e||"translate"===e;var A=function(e){return e.basic="basic",e.standard="standard",e.premium="premium",e}({}),R=function(e){return e.NOT_REQUIRED="not_required",e.PENDING="pending",e.GRANTED="granted",e.DENIED="denied",e.EXPIRED="expired",e.WITHDRAWN="withdrawn",e}({})},234826:(e,n,t)=>{t.d(n,{H:()=>o});var a=t(163088);let i=e=>!!(e.videoGenerationId&&("pending"===e.videoStatus||"processing"===e.videoStatus)),o=e=>{let{mode:n,isPending:t,messages:o}=e;return!!t&&(n===a.Dp.image||n===a.Dp.video)||o.some(i)}},360741:(e,n,t)=>{t.d(n,{e:()=>o});var a=t(212115),i=t(914259);let o=()=>{let e=(0,a.useSyncExternalStore)(i.fL,i.PQ,()=>i.Fn);return(0,a.useEffect)(()=>{(0,i.So)()},[e]),e}},731458:(e,n,t)=>{t.d(n,{KB:()=>s,Ms:()=>i,ci:()=>c,ju:()=>l});var a=t(234826);function i(e){var n,t,i,o,r;if(e.isSavingIncognitoConversation)return"This incognito chat is still being saved. Leaving now may interrupt the save and lose the chat.\n\nLeave anyway?";let c=!!(e.state.isPending||e.state.isPreparingSubmit||e.state.isConsensusStreaming||e.isStreaming||e.isGeneratingAlternative||e.continuationSubmitting||(0,a.H)({mode:e.mode,isPending:!1,messages:e.messages})),s=e.isIncognito&&!!(c||e.messages.length||e.pendingMessage||e.prompt||e.visibleComposerPrompt||(null==(n=e.attachments)?void 0:n.length)||(null==(t=e.scrapedUrls)?void 0:t.length)||(null==(i=e.scrapedContent)?void 0:i.length)||(null==(o=e.queuedMessages)?void 0:o.length)||(null==(r=e.voiceMessages)?void 0:r.length));return c||s?[...c?["A response is still generating. Leaving may interrupt it or lose the result. Usage already incurred may still be charged."]:[],...s?["This incognito chat is not saved. Leaving or starting another chat can permanently clear its messages and attachments."]:[],"Leave anyway?"].join("\n\n"):null}let o=new WeakMap,r=new WeakSet;function c(e,n){let t=r.has(e);r.add(e);try{n()}finally{t||r.delete(e)}}function s(e,n){if(r.has(e)||!n)return!0;let t=o.get(e);if((null==t?void 0:t.confirmed)||(null==t?void 0:t.warning)===n)return t.confirmed;let a={warning:n,confirmed:window.confirm(n)};return o.set(e,a),setTimeout(()=>{o.get(e)===a&&o.delete(e)},0),a.confirmed}function l(e){var n;return r.has(e)||(null==(n=o.get(e))?void 0:n.confirmed)===!0}},763781:(e,n,t)=>{t.d(n,{Iu:()=>E,Rk:()=>s,Sn:()=>a,T9:()=>o,Xn:()=>r,gK:()=>c,p0:()=>u,qS:()=>l,wl:()=>d});let a=e=>"/chat"===e||(null==e?void 0:e.startsWith("/chat/"))===!0,i=e=>"/conversation"===e||(null==e?void 0:e.startsWith("/conversation/"))===!0,o=e=>"/chat"===e||"/chat/new"===e||"/conversation"===e||"/conversation/new"===e,r=e=>a(e)||i(e)||"/voice"===e||(null==e?void 0:e.startsWith("/voice/"))===!0,c=(e,n)=>n?"chat"===n?"/chat":"/conversation/new":a(e)?"/chat":(i(e),"/conversation/new"),s=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"classic",t=arguments.length>2?arguments[2]:void 0;return"/".concat(2===t?"chat":1===t?"conversation":"chat"===n?"chat":"conversation","/").concat(encodeURIComponent(e))},l=e=>{let{pathname:n,previousSlug:t,nextSlug:a}=e;if(!n||!t||!a||t===a)return null;let i=encodeURIComponent(t),o=encodeURIComponent(a);return n==="/chat/".concat(i)?"/chat/".concat(o):n==="/conversation/".concat(i)?"/conversation/".concat(o):null},d=e=>a(e)?"/chat":i(e)?"/conversation/new":null,u=(e,n,t)=>"voice"===n?"/voice":"chat"===n?c(e,t):"/conversation/new?mode=".concat(encodeURIComponent(n)),E=e=>{let{pathname:n,isV2Conversation:t,intelligentWebSearchEnabled:i}=e,o=a(n);return{isChatSurface:o,useV2ChatAdapter:o&&t,intelligentWebSearchEnabled:o&&i}}},914259:(e,n,t)=>{t.d(n,{Fn:()=>i,PQ:()=>c,bm:()=>r,fL:()=>u,So:()=>l,KI:()=>d});var a=t(485286);let i="chat",o="nanogpt:chat-surface-preference",r=()=>{let e=a.safeLocalStorage.getItem(a.LocalStorageKeys.conversation_preferredSurface);return(e=>"classic"===e||"chat"===e)(e)?e:null},c=()=>{var e;return null!=(e=r())?e:i},s=e=>{if("undefined"==typeof document)return;let n="undefined"!=typeof location&&"https:"===location.protocol?"; Secure":"";document.cookie="".concat("ngpt_chat_surface","=").concat(null!=e?e:"","; Path=/; Max-Age=").concat(31536e3*!!e,"; SameSite=Lax").concat(n)},l=()=>{s(r())},d=e=>{let n=a.safeLocalStorage.setItem(a.LocalStorageKeys.conversation_preferredSurface,e);return n&&s(e),n&&window.dispatchEvent(new CustomEvent(o,{detail:{preference:e}})),n},u=e=>{let n=n=>{n.key===a.LocalStorageKeys.conversation_preferredSurface&&e()},t=()=>e();return window.addEventListener("storage",n),window.addEventListener(o,t),()=>{window.removeEventListener("storage",n),window.removeEventListener(o,t)}}}}]);
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.