Inital commit
This commit is contained in:
commit
a6af7dbfcb
114 files changed
+27520
No files matched your search
@@ -0,0 +1 @@
|
||||
"use strict";(()=>{function x(){let e=document.createElement("canvas").getContext("webgl");if(!e)return{error:"no webgl"};let n=e.getExtension("WEBGL_debug_renderer_info");return n?{vendor:e.getParameter(n.UNMASKED_VENDOR_WEBGL),renderer:e.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{error:"no WEBGL_debug_renderer_info"}}function v(){try{let e=navigator.plugins;if(!e)return;let n=[];for(let t=0;t<e.length;++t){let a=e[t];if(!a)continue;let r=[];for(let o=0;o<a.length;++o){let i=a[o];r.push({type:i.type,suffixes:i.suffixes})}n.push({name:a.name,description:a.description,mimeTypes:r})}return n}catch{}}function E(){let e=window.Intl?.DateTimeFormat;if(e){let t=new e().resolvedOptions().timeZone;if(t)return t}let n=-L();return`UTC${n>=0?"+":""}${Math.abs(n)}`}function y(){return{navigator:{canShare:navigator.canShare,userAgent:navigator.userAgent,languages:navigator.languages,language:navigator.language,vendor:navigator.vendor,webdriver:navigator.webdriver,appCodeName:navigator.appCodeName,appName:navigator.appName,appVersion:navigator.appVersion,javaEnabled:navigator.javaEnabled,platform:navigator.platform,plugins:v(),oscpu:navigator.oscpu,hardwareConcurrency:navigator.hardwareConcurrency,vendorSub:navigator.vendorSub,productSub:navigator.productSub},timezone:E(),screen:{availHeight:screen.availHeight,availWidth:screen.availWidth,colorDepth:screen.colorDepth,height:screen.height,width:screen.width,orientation:screen.orientation,pixelDepth:screen.pixelDepth},time:new Date().toLocaleString(),ISO:new Date().toISOString(),UTC:new Date().toUTCString(),videoCard:x()}}function f(e,n=2166136261){let t=n>>>0;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,"0")}function g(e){return f(e,2166136261)+f(e,2882400001)}function b(){try{let e=document.createElement("canvas");e.width=320,e.height=160;let n=e.getContext("2d");return n?(n.textBaseline="alphabetic",n.fillStyle="#f60",n.font="14px 'Arial'",n.fillRect(20,30,140,40),n.fillStyle="#069",n.fillRect(20,30,70,20),n.fillStyle="#f60",n.fillText("Cwm fjordbank glyphs vext quiz \u{1F600}\u{1F355}",20,45),n.fillStyle="rgba(102, 204, 0, 0.7)",n.font="18px 'Courier New'",n.fillText("Cwm fjordbank glyphs vext quiz \u{1F600}",30,80),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(160,110,42,0,Math.PI*2),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(200,110,42,0,Math.PI*2),n.fill(),g(e.toDataURL())):null}catch{return null}}function p(e){try{if(!e.createShader)return null;let n=32,t=32,a="attribute vec2 p; varying vec2 v; void main(){ v=p; gl_Position=vec4(p,0.,1.); }",r="precision mediump float; varying vec2 v; void main(){ gl_FragColor=vec4(v, sin(v.x*40.0)*0.5+0.5, cos(v.y*40.0)*0.5+0.5, 1.0); }",o=(u,_)=>{let d=e.createShader(u);return e.shaderSource(d,_),e.compileShader(d),d},i=e.createProgram();e.attachShader(i,o(e.VERTEX_SHADER,a)),e.attachShader(i,o(e.FRAGMENT_SHADER,r)),e.linkProgram(i),e.useProgram(i);let s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),e.STATIC_DRAW);let l=e.getAttribLocation(i,"p");e.enableVertexAttribArray(l),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),e.viewport(0,0,n,t),e.drawArrays(e.TRIANGLE_STRIP,0,4);let c=new Uint8Array(n*t*4);e.readPixels(0,0,n,t,e.RGBA,e.UNSIGNED_BYTE,c);let m="";for(let u=0;u<c.length;u++)m+=String.fromCharCode(c[u]);return g(m)}catch{return null}}function P(){let e={webgl:null,webgl2:null,scene:null};try{let n=document.createElement("canvas"),t=n.getContext("webgl")||n.getContext("experimental-webgl");if(t){let a=t.getExtension("WEBGL_debug_renderer_info");e.webgl={vendor:a?t.getParameter(a.UNMASKED_VENDOR_WEBGL):null,renderer:a?t.getParameter(a.UNMASKED_RENDERER_WEBGL):null,version:t.getParameter(t.VERSION),shadingLanguageVersion:t.getParameter(t.SHADING_LANGUAGE_VERSION),maxTextureSize:t.getParameter(t.MAX_TEXTURE_SIZE),maxRenderbufferSize:t.getParameter(t.MAX_RENDERBUFFER_SIZE),maxVaryingVectors:t.getParameter(t.MAX_VARYING_VECTORS),maxVertexAttribs:t.getParameter(t.MAX_VERTEX_ATTRIBS),maxVertexUniformVectors:t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),maxFragmentUniformVectors:t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),maxViewportDims:t.getParameter(t.MAX_VIEWPORT_DIMS),aliasedLineWidthRange:t.getParameter(t.ALIASED_LINE_WIDTH_RANGE),aliasedPointSizeRange:t.getParameter(t.ALIASED_POINT_SIZE_RANGE),extensions:(t.getSupportedExtensions()||[]).slice().sort()},e.scene=p(t);let r=t.getExtension("WEBGL_lose_context");r&&r.loseContext()}}catch{}try{let t=document.createElement("canvas").getContext("webgl2");if(t){e.webgl2={version:t.getParameter(t.VERSION),maxTextureSize:t.getParameter(t.MAX_TEXTURE_SIZE),maxSamples:t.getParameter(t.MAX_SAMPLES),extensions:(t.getSupportedExtensions()||[]).slice().sort()},e.scene||(e.scene=p(t));let a=t.getExtension("WEBGL_lose_context");a&&a.loseContext()}}catch{}return e}function C(){return new Promise(e=>{try{let n=wLine truncated
|
||||
Reference in new issue
Block a user