UNPKG

web3d

Version:

MetaEditor — ReactJS Pixel Streaming library, helps integrate Unreal Engine v.5 in the browser. Allows you to send commands and get callbacks from the stream server with launched Unreal Engine.

1 lines 1.42 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;function a2_0x1c34(){const a=["42goEiuK","stringify","4410510nWsOMM","9iHqRMf","1408918erHXzz","cors","json","15751240WGuPFt","post","POST","4773236gawHQc","request","11277200envilZ","3368BSLiPQ","443XJCsqA","secondsToKillSteam","status","2031480YLVUrZ","body"];return a2_0x1c34=function(){return a},a2_0x1c34()}const a2_0x55e67e=a2_0x5de4;(function(a,b){for(const c=a2_0x5de4,d=a();;)try{const a=-parseInt(c(164))/1*(parseInt(c(163))/2)+parseInt(c(171))/3+parseInt(c(160))/4+parseInt(c(167))/5+-parseInt(c(169))/6*(parseInt(c(173))/7)+parseInt(c(162))/8+-parseInt(c(172))/9*(parseInt(c(176))/10);if(a===b)break;else d.push(d.shift())}catch(a){d.push(d.shift())}})(a2_0x1c34,749371);const Request=new class{constructor(){const a=a2_0x5de4;this[a(165)]=5}async[a2_0x55e67e(161)](a,b,c={}){const d=a2_0x55e67e;let e={method:a,mode:d(174),headers:{"Content-Type":"application/json"}};try{e[d(168)]=JSON[d(170)](c.body)}catch(a){}return await fetch(b,e).then(async a=>{const b=d;try{return{status:a[b(166)],body:await a[b(175)]()}}catch(b){return{status:a.status,error:b}}})}async[a2_0x55e67e(177)](a,b){const c=a2_0x55e67e;return await this[c(161)](c(178),a,{body:b})}};function a2_0x5de4(a,b){const c=a2_0x1c34();return a2_0x5de4=function(a){a-=160;let b=c[a];return b},a2_0x5de4(a,b)}var _default=Request;exports.default=_default;