PageSourceSearch

https://builderforce.ai/_next/static/chunks/59491.bcb5c5b57df9ef05.js

js builderforce.ai collected 2026-09-29 08:18:04 UTC 1,734 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59491],{59491:(e,n,t)=>{function r(){return"undefined"!=typeof navigator&&"gpu"in navigator}async function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let t of"auto"===e?["webnn","webgpu","cpu"]:"cpu"===e?["cpu"]:"webgpu"===e?["webgpu"]:["webnn"]){let e=await i(t,n);if(e)return e}return null}async function i(e,n){return"webnn"===e?l():"webgpu"===e?o(n):{kind:"cpu",label:"CPU (WASM SIMD)",approxMemoryMb:null}}async function l(){if("undefined"==typeof navigator)return null;let e=navigator;if(!e.ml||"function"!=typeof e.ml.createContext)return null;for(let n of["npu","gpu"])try{let t=await e.ml.createContext({deviceType:n,powerPreference:"high-performance"});if(t)return{kind:"webnn",mlContext:t,label:"WebNN (".concat(n.toUpperCase(),")"),approxMemoryMb:null}}catch(e){}return null}async function o(e){if(!r())return null;let n=navigator;if(!n.gpu)return null;try{let t=await n.gpu.requestAdapter({powerPreference:"high-performance"});if(!t)return null;let r=await t.requestDevice({requiredLimits:{maxBufferSize:Math.min(t.limits.maxBufferSize,0x80000000),maxStorageBufferBindingSize:Math.min(t.limits.maxStorageBufferBindingSize,0x80000000)}});r.lost.then(n=>{"destroyed"!==n.reason&&(n=>{var t;console.warn("[device-router] WebGPU device lost:",n.message||n.reason),null==(t=e.onDeviceLost)||t.call(e,n)})(n)});let u=t.info,i=[null==u?void 0:u.vendor,null==u?void 0:u.architecture,null==u?void 0:u.device].filter(Boolean).join(" ")||"WebGPU device";return{kind:"webgpu",gpuDevice:r,label:i,approxMemoryMb:null}}catch(e){return null}}t.d(n,{fe:()=>u,q7:()=>r})}}]);

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.