PageSourceSearch

https://neuromentor.ai/app/_next/static/chunks/8331.a18db8107a7d4fb4.js

js neuromentor.ai collected 2026-10-05 12:20:23 UTC 5,034 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8331,2305],{37062:function(e,t,n){"use strict";n.d(t,{cn:function(){return o}});var r=n(61994),a=n(53335);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.m6)((0,r.W)(t))}},42787:function(e,t,n){"use strict";n.d(t,{MV:function(){return l},aB:function(){return i},m:function(){return u},wc:function(){return s}});var r=n(90770);let a="games",o=null;function c(){return o||(o=new Promise((e,t)=>{if(!window.indexedDB){t(Error("IndexedDB not available"));return}let n=indexedDB.open("neuromentor_games",1);n.onerror=()=>t(n.error),n.onsuccess=()=>e(n.result),n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(a)||t.createObjectStore(a,{keyPath:"subtopicId"}).createIndex("createdAt","createdAt",{unique:!1})}}))}async function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=await fetch((0,r.Qh)("/app/api/games",n),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subtopicId:Number(e),htmlContent:t})});if(!o.ok)throw Error("Failed to save game to DB: ".concat(o.status));let i=await o.json();try{let n=await c();await new Promise((r,o)=>{let c=n.transaction([a],"readwrite");c.objectStore(a).put({subtopicId:String(e),gameHtml:t,createdAt:Date.now()}),c.oncomplete=()=>r(),c.onerror=()=>o(c.error)})}catch(e){console.warn("IndexedDB cache save failed (non-critical):",e.message)}return i}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{let n=(0,r.Qh)("/app/api/games?subtopicId=".concat(encodeURIComponent(e)),t),o=await fetch(n);if(!o.ok)return null;let i=await o.json();if(!i.exists||!i.htmlContent)return null;try{let t=await c();await new Promise(n=>{let r=t.transaction([a],"readwrite");r.objectStore(a).put({subtopicId:String(e),gameHtml:i.htmlContent,createdAt:Date.now()}),r.oncomplete=()=>n(),r.onerror=()=>n()})}catch(e){}return i.htmlContent}catch(e){return console.error("Failed to load game from API:",e),null}}async function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;try{let t=await c();await new Promise(n=>{let r=t.transaction([a],"readwrite").objectStore(a),o=r.index("createdAt"),c=[],i=o.openCursor();i.onsuccess=t=>{let a=t.target.result;if(a)c.push({subtopicId:a.value.subtopicId,createdAt:a.value.createdAt}),a.continue();else{c.sort((e,t)=>t.createdAt-e.createdAt);let t=c.slice(e);t.forEach(e=>r.delete(e.subtopicId)),n(t.length)}},i.onerror=()=>n(0)})}catch(e){}}async function l(e,t){try{let n=await c();await new Promise(r=>{let o=n.transaction([a],"readwrite");o.objectStore(a).put({subtopicId:String(e),gameHtml:t,createdAt:Date.now()}),o.oncomplete=()=>r(),o.onerror=()=>r()})}catch(e){}}},71769:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},64972:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},13041:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},48049:function(e,t,n){"use strict";var r=n(14397);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,c){if(c!==r){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},40718:function(e,t,n){e.exports=n(48049)()},14397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);

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.