PageSourceSearch

https://math-gpt.org/_next/static/chunks/6146-b84aff23f633eaeb.js

js math-gpt.org collected 2026-09-24 09:43:49 UTC 7,954 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="872e3ae1-e727-4423-8382-5ba9b6c7432c",e._sentryDebugIdIdentifier="sentry-dbid-872e3ae1-e727-4423-8382-5ba9b6c7432c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6146],{10518:(e,t,r)=>{r.d(t,{EV:()=>d,Fi:()=>u,Jq:()=>f,ZM:()=>o});var a=r(96735),n=r(93961),l=r(35182),i=r(21072);let o="/api/v3/audio/recordings",s=e=>{let t=new URLSearchParams(e).toString();return t?"".concat(o,"?").concat(t):o},d=function(){var e;let{projectId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isSignedIn:r}=(0,l.As)(),{data:a,isLoading:o,error:d}=(0,i.Ay)(r?s({...t&&{projectId:t}}):null,n.G);return{recordings:null!=(e=null==a?void 0:a.recordings)?e:[],isLoading:o,error:d}},c=e=>(0,a.p)({pageKey:t=>((e,t)=>{let{projectId:r,status:a}=t;return s({...r&&{projectId:r},...a&&{status:a},offset:String(20*e),limit:String(20)})})(t,e),selectItems:e=>e.recordings,pageSize:20}),u=()=>c({status:"completed"}),f=e=>c({projectId:e,status:"completed"})},21244:(e,t,r)=>{r.d(t,{a:()=>a});let a=e=>{let t=Math.floor(e/3600),r=Math.floor(e%3600/60),a=[t&&"".concat(t,"h"),r&&"".concat(r,"m")].filter(Boolean);return a.length?a.join(" "):"<1m"}},58113:(e,t,r)=>{r.d(t,{f:()=>i});var a=r(18044),n=r.n(a),l=r(62061);let i=(e,t,r)=>{let a=n()(t),i=n()().diff(a,"minute");if(i<1)return e("common.relativeTime.justNow");if(i<60)return e("common.relativeTime.minutesShort",{count:i});let o=n()().diff(a,"hour");if(o<24)return e("common.relativeTime.hoursAgo",{count:o});let s=n()().diff(a,"day");return 1===s?e("common.relativeTime.yesterday"):s<7?e("common.relativeTime.daysAgo",{count:s}):a.locale((0,l.A)(r)).fromNow()}},67276:(e,t,r)=>{r.d(t,{p:()=>n});var a=r(10940);let n=e=>{let{title:t,description:r}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("h3",{className:"text-sm font-medium dark:text-dark-text-primary",children:t}),(0,a.jsx)("p",{className:"text-xs text-neutral-400 dark:text-dark-text-secondary",children:r})]})}},67945:(e,t,r)=>{r.d(t,{X:()=>s,o:()=>d});var a=r(67436),n=r(24027),l=r(76473),i=r(47924),o=r(49e3);let s=async e=>{let{audioTranscriptId:t,title:r,textTranscript:s,structuredTranscript:d,notes:c,durationSeconds:u,isSignedIn:f,projectId:g}=e,m=(0,l.A)(),p="call_".concat((0,l.A)()),y=(0,l.A)(),b=null!=r?r:"recording",x={role:"assistant",id:(0,l.A)(),content:"",tool_calls:[{id:p,type:"function",function:{name:"create_artifact",arguments:JSON.stringify({type:o.FR.Recording,name:b})}}]},h={role:"tool",id:y,tool_call_id:p,artifact_type:o.FR.Recording,content:JSON.stringify({audioTranscriptId:t,title:r,durationSeconds:null!=u?u:void 0,textTranscript:s,structuredTranscript:d,notes:c})},k={id:m,name:r?"Recording: ".concat(r):"Recording",model:o.xQ.MathGPT,isPrecomputed:!0,projectId:g,messages:[x,h]};return n.Pk.getState().addOrSetConversation((0,a.C0)(k)),await (0,i.dy)({conversation:k,isSignedIn:f}),{conversationId:m,artifactMessageId:y}},d=async e=>{let{recording:t,isSignedIn:r}=e;try{var a;let e=await fetch("/api/v3/audio/status?id=".concat(encodeURIComponent(t.id)));if(!e.ok)return null;let n=await e.json();return await s({audioTranscriptId:n.id,title:n.title,textTranscript:n.textTranscript,structuredTranscript:n.structuredTranscript,notes:n.notes,durationSeconds:n.durationSeconds,isSignedIn:r,projectId:null!=(a=t.project_id)?a:void 0})}catch(e){return console.error("Failed to open recording conversation",e),null}}},86429:(e,t,r)=>{r.d(t,{g:()=>i});var a=r(10940),n=r(18969),l=r(11222);let i=e=>{let{rootProps:t,inputProps:r,isDragActive:i,icon:o,title:s,dragTitle:d,hint:c,actionLabel:u,className:f}=e;return(0,a.jsxs)("div",{...t,className:(0,l.cn)("flex w-full shrink-0 cursor-pointer flex-col items-center gap-2 rounded-xl border border-dashed px-6 py-10 text-center transition-colors",i?"border-neutral-400 bg-neutral-100 dar
1k:border-dark-text-secondary dark:bg-dark-hover":"border-neutral-300 bg-neutral-50 dark:border-dark-border dark:bg-dark-bg",f),children:[(0,a.jsx)("input",{...r}),(0,a.jsx)("div",{className:"grid place-items-center rounded-full bg-neutral-200 p-2 dark:bg-neutral-800",children:(0,a.jsx)(o,{size:20,className:"text-neutral-400 dark:text-neutral-500"})}),(0,a.jsx)("p",{className:"text-xs text-neutral-600 dark:text-neutral-500",children:i&&d?d:s}),(0,a.jsx)("p",{className:"text-xs text-neutral-400",children:c}),u&&(0,a.jsx)(n.$,{variant:"outline",className:"mt-1 h-8 rounded-lg bg-white px-3 text-xs font-normal text-neutral-600 dark:border-dark-border dark:bg-dark-hover dark:text-dark-text-primary",children:u})]})}},96735:(e,t,r)=>{r.d(t,{p:()=>v});var a=r(93961),n=r(35182),l=r(62544),i=r(21072),o=r(67592),s=r(85919),d=r(6608),c=r(80561);let u=()=>{},f=u(),g=Object,m=e=>e===f,p=new WeakMap,y=(e,t)=>e===`[object ${t}]`,b=0,x=e=>{let t,r,a=typeof e,n=g.prototype.toString.call(e),l=y(n,"Date"),i=y(n,"RegExp"),o=y(n,"Object");if(g(e)!==e||l||i)t=l?e.toJSON():"symbol"==a?e.toString():"string"==a?JSON.stringify(e):""+e;else{if(t=p.get(e))return t;if(t=++b+"~",p.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=x(e[r])+",";p.set(e,t)}if(o){t="#";let a=g.keys(e).sort();for(;!m(r=a.pop());)m(e[r])||(t+=r+":"+x(e[r])+",");p.set(e,t)}}return t},h=Promise.resolve(),k=(0,d.Ht)(i.Ay,e=>(t,r,a)=>{let n,i=(0,l.useRef)(!1),{cache:d,initialSize:u=1,revalidateAll:f=!1,persistSize:g=!1,revalidateFirstPage:m=!0,revalidateOnMount:p=!1,parallel:y=!1}=a,[,,,b]=o.b.get(o.c);try{(n=(e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]})(e?e(0,null):null)[0])(t))&&(n=s.q+n)}catch(e){}let[k,v,_]=(0,o.z)(d,n),w=(0,l.useCallback)(()=>(0,o.e)(k()._l)?u:k()._l,[d,n,u]);(0,c.useSyncExternalStore)((0,l.useCallback)(e=>n?_(n,()=>{e()}):()=>{},[d,n]),w,w);let S=(0,l.useCallback)(()=>{let e=k()._l;return(0,o.e)(e)?u:e},[n,u]),j=(0,l.useRef)(S());(0,o.u)(()=>{if(!i.current){i.current=!0;return}n&&v({_l:g?j.current:S()})},[n,d]);let N=p&&!i.current,A=e(n,async e=>{let n=k()._i,l=k()._r;v({_r:o.U});let i=[],s=S(),[c]=(0,o.z)(d,e),u=c().data,g=[],p=null;for(let e=0;e<s;++e){let[s,c]=(0,o.s)(t(e,y?null:p));if(!s)break;let[x,h]=(0,o.z)(d,s),k=x().data,v=f||n||(0,o.e)(k)||m&&!e&&!(0,o.e)(u)||N||u&&!(0,o.e)(u[e])&&!a.compare(u[e],k);if(r&&("function"==typeof l?l(k,c):v)){let t=async()=>{if(s in b){let e=b[s];delete b[s],k=await e}else k=await r(c);h({data:k,_k:c}),i[e]=k};y?g.push(t):await t()}else i[e]=k;y||(p=k)}return y&&await Promise.all(g.map(e=>e())),v({_i:o.U}),i},a),T=(0,l.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==r.revalidate;return n?(a&&((0,o.e)(e)?v({_i:!0,_r:r.revalidate}):v({_i:!1,_r:r.revalidate})),arguments.length?A.mutate(e,{...r,revalidate:a}):A.mutate()):h},[n,d]),R=(0,l.useCallback)(e=>{let r;if(!n)return h;let[,a]=(0,o.z)(d,n);if((0,o.a)(e)?r=e(S()):"number"==typeof e&&(r=e),"number"!=typeof r)return h;a({_l:r}),j.current=r;let l=[],[i]=(0,o.z)(d,n),s=null;for(let e=0;e<r;++e){let[r]=(0,o.s)(t(e,s)),[a]=(0,o.z)(d,r),n=r?a().data:o.U;if((0,o.e)(n))return T(i().data);l.push(n),s=n}return T(l)},[n,d,T,S]);return{size:S(),setSize:R,mutate:T,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}}),v=e=>{let{pageKey:t,selectItems:r,pageSize:l,refreshInterval:i}=e,{isSignedIn:o}=(0,n.As)(),{data:s,error:d,size:c,setSize:u,mutate:f}=k((e,a)=>!o||a&&r(a).length<l?null:t(e),a.G,{refreshInterval:i}),g=null!=s?s:[],m=!d&&(!g.length||r(g[g.length-1]).length===l),p=m&&c>g.length;return{items:g.flatMap(r),loadMore:()=>!p&&u(e=>e+1),hasMore:m,isLoadingMore:p,isLoading:!1!==o&&!s&&!d,pages:g,error:d,mutate:f}}}}]);

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.