PageSourceSearch

https://lablab.ai/_next/static/chunks/52064.cd149a75e6f25729.js

js lablab.ai collected 2026-09-24 09:18:41 UTC 9,164 bytes, 3 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="07a75752-9d69-54a1-bd46-df8a928437e7")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52064],{52064:(t,e,r)=>{function i(t,e,r){for(let i in e){let n=e[i],l=r?r[i]:null;l&&function(t,e,r){let i=e.split("|").map(t=>t.trim());for(let r=0;r<i.length;r++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}let n=Error(`invalid value for type ${e}`);throw n.code="INVALID_ARGUMENT",n.argument=`value.${r}`,n.value=t,n}(n,l,i),Object.defineProperty(t,i,{enumerable:!0,value:n,writable:!1})}}function n(t,e){if(null==t)return"null";if(null==e&&(e=new Set),"object"==typeof t){if(e.has(t))return"[Circular]";e.add(t)}if(Array.isArray(t))return"[ "+t.map(t=>n(t,e)).join(", ")+" ]";if(t instanceof Uint8Array){let e="0123456789abcdef",r="0x";for(let i=0;i<t.length;i++)r+=e[t[i]>>4],r+=e[15&t[i]];return r}if("object"==typeof t&&"function"==typeof t.toJSON)return n(t.toJSON(),e);switch(typeof t){case"boolean":case"number":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{let r=Object.keys(t);return r.sort(),"{ "+r.map(r=>`${n(r,e)}: ${n(t[r],e)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function l(t,e,r,l){if(!t)throw function(t,e,r){let l,a=t;{let i=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${n(r)}`);for(let t in r){if("shortMessage"===t)continue;let e=r[t];i.push(t+"="+n(e))}}i.push(`code=${e}`),i.push("version=6.16.0"),i.length&&(t+=" ("+i.join(", ")+")")}switch(e){case"INVALID_ARGUMENT":l=TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":l=RangeError(t);break;default:l=Error(t)}return i(l,{code:e}),r&&Object.assign(l,r),null==l.shortMessage&&i(l,{shortMessage:a}),l}(e,r,l)}function a(t,e,r,i){l(t,e,"INVALID_ARGUMENT",{argument:r,value:i})}r.d(e,{ck:()=>E}),["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test"!=="test".normalize(e))throw Error("bad");if("NFD"===e){let t=String.fromCharCode(233).normalize("NFD"),e=String.fromCharCode(101,769);if(t!==e)throw Error("broken")}t.push(e)}catch(t){}return t},[]);let s=BigInt(0),u=BigInt(1);function f(t,e){let r=c(t,"value"),i=BigInt(g(e,"width"));return(l(r>>i===s,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>i-u)?-((~r&(u<<i)-u)+u):r}function o(t,e){return c(t,"value")&(u<<BigInt(g(e,"bits")))-u}function h(t,e){switch(typeof t){case"bigint":return t;case"number":return a(Number.isInteger(t),"underflow",e||"value",t),a(t>=-0x1fffffffffffff&&t<=0x1fffffffffffff,"overflow",e||"value",t),BigInt(t);case"string":try{if(""===t)throw Error("empty string");if("-"===t[0]&&"-"!==t[1])return-BigInt(t.substring(1));return BigInt(t)}catch(r){a(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}a(!1,"invalid BigNumberish value",e||"value",t)}function c(t,e){let r=h(t,e);return l(r>=s,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}let m="0123456789abcdef";function g(t,e){switch(typeof t){case"bigint":return a(t>=-0x1fffffffffffff&&t<=0x1fffffffffffff,"overflow",e||"value",t),Number(t);case"number":return a(Number.isInteger(t),"underflow",e||"value",t),a(t>=-0x1fffffffffffff&&t<=0x1fffffffffffff,"overflow",e||"value",t),t;case"string":try{if(""===t)throw Error("empty string");return g(BigInt(t),e)}catch(r){a(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}a(!1,"invalid numeric value",e||"value",t)}let d=BigInt(-1),v=BigInt(0),b=BigInt(1),p=BigInt(5),w={},N="0000";for(;N.length<80;)N+=N;function I(t){let e=N;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function U(t,e,r){let i=BigInt(e.width);if(e.signed){let e=b<<i-b;l(null==r||t>=-e&&t<e,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=t>
2v?f(o(t,i),i):-f(o(-t,i),i)}else{let e=b<<i;l(null==r||t>=0&&t<e,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=(t%e+e)%e&e-b}return t}function y(t){"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,i=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a(n,"invalid fixed format","format",t),e="u"!==n[1],r=parseInt(n[2]),i=parseInt(n[3])}else if(t){let n=t,l=(t,e,r)=>null==n[t]?r:(a(typeof n[t]===e,"invalid fixed format ("+t+" not "+e+")","format."+t,n[t]),n[t]);e=l("signed","boolean",e),r=l("width","number",r),i=l("decimals","number",i)}a(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),a(i<=80,"invalid FixedNumber decimals (too large)","format.decimals",i);let n=(e?"":"u")+"fixed"+String(r)+"x"+String(i);return{signed:e,width:r,decimals:i,name:n}}class F{format;#t;#e;#r;_value;constructor(t,e,r){!function(t,e,r){if(null==r&&(r=""),t!==e){let t=r,e="new";r&&(t+=".",e+=" "+r),l(!1,`private constructor; use ${t}from* methods`,"UNSUPPORTED_OPERATION",{operation:e})}}(t,w,"FixedNumber"),this.#e=e,this.#t=r;let n=function(t,e){let r="";t<v&&(r="-",t*=d);let i=t.toString();if(0===e)return r+i;for(;i.length<=e;)i=N+i;let n=i.length-e;for(i=i.substring(0,n)+"."+i.substring(n);"0"===i[0]&&"."!==i[1];)i=i.substring(1);for(;"0"===i[i.length-1]&&"."!==i[i.length-2];)i=i.substring(0,i.length-1);return r+i}(e,r.decimals);i(this,{format:r.name,_value:n}),this.#r=I(r.decimals)}get signed(){return this.#t.signed}get width(){return this.#t.width}get decimals(){return this.#t.decimals}get value(){return this.#e}#i(t){a(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)}#n(t,e){return new F(w,t=U(t,this.#t,e),this.#t)}#l(t,e){return this.#i(t),this.#n(this.#e+t.#e,e)}addUnsafe(t){return this.#l(t)}add(t){return this.#l(t,"add")}#a(t,e){return this.#i(t),this.#n(this.#e-t.#e,e)}subUnsafe(t){return this.#a(t)}sub(t){return this.#a(t,"sub")}#s(t,e){return this.#i(t),this.#n(this.#e*t.#e/this.#r,e)}mulUnsafe(t){return this.#s(t)}mul(t){return this.#s(t,"mul")}mulSignal(t){this.#i(t);let e=this.#e*t.#e;return l(e%this.#r===v,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#n(e/this.#r,"mulSignal")}#u(t,e){return l(t.#e!==v,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#i(t),this.#n(this.#e*this.#r/t.#e,e)}divUnsafe(t){return this.#u(t)}div(t){return this.#u(t,"div")}divSignal(t){l(t.#e!==v,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#i(t);let e=this.#e*this.#r;return l(e%t.#e===v,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#n(e/t.#e,"divSignal")}cmp(t){let e=this.value,r=t.value,i=this.decimals-t.decimals;return(i>0?r*=I(i):i<0&&(e*=I(-i)),e<r)?-1:+(e>r)}eq(t){return 0===this.cmp(t)}lt(t){return 0>this.cmp(t)}lte(t){return 0>=this.cmp(t)}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#e;return this.#e<v&&(t-=this.#r-b),t=this.#e/this.#r*this.#r,this.#n(t,"floor")}ceiling(){let t=this.#e;return this.#e>v&&(t+=this.#r-b),t=this.#e/this.#r*this.#r,this.#n(t,"ceiling")}round(t){if(null==t&&(t=0),t>=this.decimals)return this;let e=this.decimals-t,r=p*I(e-1),i=this.value+r,n=I(e);return U(i=i/n*n,this.#t,"round"),new F(w,i,this.#t)}isZero(){return this.#e===v}isNegative(){return this.#e<v}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return F.fromString(this.toString(),t)}static fromValue(t,e,r){let i=null==e?0:g(e),n=y(r),a=h(t,"value"),s=i-n.decimals;if(s>0){let e=I(s);l(a%e===v,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),a/=e}else s<0&&(a*=I(-s));return U(a,n,"fromValue"),new F(w,a,n)}static fromString(t,e){let r=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);a(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",t);let i=y(e),n=r[2]||"0",s=r[3]||"";for(;s.length<i.decimals;)s+=N;l(s.substring(i.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:t}),s=s.substring(0,i.decimals);let u=BigInt(r[1]+n+s);return U(u,i,"fromString"),new F(w,u,i)}static fromBytes(t,e){let r=function(t){if(t instanceof Uint8Array){let e="0x0";for(let r of t)e+=m[r>>4],e+=m[15&r];return BigInt(e)}return h(t)}(function(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if("string"==typeof t&&t.length%2==0&&t.match(/^0x[0-9a-f]*$/i)){let e=new Uint8Array((t.length-2)/2),r=2;for(let i=0;i<e.length;i++)e[i]=parseInt(t.substring(r,r+2),16),r+=2;return e}a(!1,"invalid BytesLike value",e||"value",t)}(t,"value",!1)),i=y(e);return i.signed&&(r=f(r,i.width)),U(r,i,"fromBytes"),new F(w,r,i)}}function E(t){let e=18;return e=g(18,"unit"),F.fromValue(t,e,{decimals:e,width:512}).toString()}}}]);
3//# chunkId=07a75752-9d69-54a1-bd46-df8a928437e7

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.