gy-roslib
Version:
gy
11 lines • 289 kB
JavaScript
var __defProp=Object['defineProperty'],__defNormalProp=(_0x38bf4f,_0x119e3a,_0x13b940)=>_0x119e3a in _0x38bf4f?__defProp(_0x38bf4f,_0x119e3a,{'enumerable':!![],'configurable':!![],'writable':!![],'value':_0x13b940}):_0x38bf4f[_0x119e3a]=_0x13b940,__publicField=(_0x5b8d9f,_0x479339,_0x536f38)=>{return __defNormalProp(_0x5b8d9f,typeof _0x479339!=='symbol'?_0x479339+'':_0x479339,_0x536f38),_0x536f38;},__accessCheck=(_0x4a652a,_0x3f81be,_0x32f375)=>{if(!_0x3f81be['has'](_0x4a652a))throw TypeError('Cannot\x20'+_0x32f375);},__privateGet=(_0xe16794,_0xe4a02,_0x57a094)=>{return __accessCheck(_0xe16794,_0xe4a02,'read\x20from\x20private\x20field'),_0x57a094?_0x57a094['call'](_0xe16794):_0xe4a02['get'](_0xe16794);},__privateAdd=(_0x1080c9,_0x4a2ea9,_0x33a669)=>{if(_0x4a2ea9['has'](_0x1080c9))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x4a2ea9 instanceof WeakSet?_0x4a2ea9['add'](_0x1080c9):_0x4a2ea9['set'](_0x1080c9,_0x33a669);},__privateSet=(_0x253261,_0x36f8e3,_0x651ba5,_0x40979c)=>{return __accessCheck(_0x253261,_0x36f8e3,'write\x20to\x20private\x20field'),_0x40979c?_0x40979c['call'](_0x253261,_0x651ba5):_0x36f8e3['set'](_0x253261,_0x651ba5),_0x651ba5;},__privateMethod=(_0x4c9977,_0x32f418,_0xf91643)=>{return __accessCheck(_0x4c9977,_0x32f418,'access\x20private\x20method'),_0xf91643;},_fieldsByTopic,_oldResultArr,_minMaxColorValues,minMaxColorValues_fn,_fieldsByTopic2,_oldResultArr2,_minMaxColorValues2,minMaxColorValues_fn2;/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const proxyMarker=Symbol('Comlink.proxy'),createEndpoint=Symbol('Comlink.endpoint'),releaseProxy=Symbol('Comlink.releaseProxy'),finalizer=Symbol('Comlink.finalizer'),throwMarker=Symbol('Comlink.thrown'),isObject=_0x29ee63=>typeof _0x29ee63==='object'&&_0x29ee63!==null||typeof _0x29ee63==='function',proxyTransferHandler={'canHandle':_0xb717a0=>isObject(_0xb717a0)&&_0xb717a0[proxyMarker],'serialize'(_0x59f364){const {port1:_0x20d217,port2:_0x145c60}=new MessageChannel();return expose(_0x59f364,_0x20d217),[_0x145c60,[_0x145c60]];},'deserialize'(_0x2d9bd4){return _0x2d9bd4['start'](),wrap(_0x2d9bd4);}},throwTransferHandler={'canHandle':_0x257744=>isObject(_0x257744)&&throwMarker in _0x257744,'serialize'({value:_0x37ea4f}){let _0x54d2ee;return _0x37ea4f instanceof Error?_0x54d2ee={'isError':!![],'value':{'message':_0x37ea4f['message'],'name':_0x37ea4f['name'],'stack':_0x37ea4f['stack']}}:_0x54d2ee={'isError':![],'value':_0x37ea4f},[_0x54d2ee,[]];},'deserialize'(_0x28c8b3){if(_0x28c8b3['isError'])throw Object['assign'](new Error(_0x28c8b3['value']['message']),_0x28c8b3['value']);throw _0x28c8b3['value'];}},transferHandlers=new Map([['proxy',proxyTransferHandler],['throw',throwTransferHandler]]);function isAllowedOrigin(_0x438b75,_0x381a17){for(const _0x5b198f of _0x438b75){if(_0x381a17===_0x5b198f||_0x5b198f==='*')return!![];if(_0x5b198f instanceof RegExp&&_0x5b198f['test'](_0x381a17))return!![];}return![];}function expose(_0x4aa65a,_0x46634f=globalThis,_0x1fa923=['*']){_0x46634f['addEventListener']('message',function _0x509bf5(_0x205e44){if(!_0x205e44||!_0x205e44['data'])return;if(!isAllowedOrigin(_0x1fa923,_0x205e44['origin'])){console['warn']('Invalid\x20origin\x20\x27'+_0x205e44['origin']+'\x27\x20for\x20comlink\x20proxy');return;}const {id:_0x5b51fc,type:_0x5e4c2b,path:_0x7f1233}=Object['assign']({'path':[]},_0x205e44['data']),_0x5bbd84=(_0x205e44['data']['argumentList']||[])['map'](fromWireValue);let _0x51dd45;try{const _0x35827f=_0x7f1233['slice'](0x0,-0x1)['reduce']((_0x4cef3e,_0x1692bf)=>_0x4cef3e[_0x1692bf],_0x4aa65a),_0x251437=_0x7f1233['reduce']((_0x4e1a21,_0x84d224)=>_0x4e1a21[_0x84d224],_0x4aa65a);switch(_0x5e4c2b){case'GET':{_0x51dd45=_0x251437;}break;case'SET':{_0x35827f[_0x7f1233['slice'](-0x1)[0x0]]=fromWireValue(_0x205e44['data']['value']),_0x51dd45=!![];}break;case'APPLY':{_0x51dd45=_0x251437['apply'](_0x35827f,_0x5bbd84);}break;case'CONSTRUCT':{const _0x153f74=new _0x251437(..._0x5bbd84);_0x51dd45=proxy(_0x153f74);}break;case'ENDPOINT':{const {port1:_0x50b798,port2:_0x5575cd}=new MessageChannel();expose(_0x4aa65a,_0x5575cd),_0x51dd45=transfer(_0x50b798,[_0x50b798]);}break;case'RELEASE':{_0x51dd45=void 0x0;}break;default:return;}}catch(_0x44674d){_0x51dd45={'value':_0x44674d,[throwMarker]:0x0};}Promise['resolve'](_0x51dd45)['catch'](_0x1bb86d=>{return{'value':_0x1bb86d,[throwMarker]:0x0};})['then'](_0x25d41e=>{const [_0x9472f0,_0x3e3680]=toWireValue(_0x25d41e);_0x46634f['postMessage'](Object['assign'](Object['assign']({},_0x9472f0),{'id':_0x5b51fc}),_0x3e3680),_0x5e4c2b==='RELEASE'&&(_0x46634f['removeEventListener']('message',_0x509bf5),closeEndPoint(_0x46634f),finalizer in _0x4aa65a&&typeof _0x4aa65a[finalizer]==='function'&&_0x4aa65a[finalizer]());})['catch'](_0x392608=>{const [_0x334b28,_0x126674]=toWireValue({'value':new TypeError('Unserializable\x20return\x20value'),[throwMarker]:0x0});_0x46634f['postMessage'](Object['assign'](Object['assign']({},_0x334b28),{'id':_0x5b51fc}),_0x126674);});}),_0x46634f['start']&&_0x46634f['start']();}function isMessagePort(_0x2f9964){return _0x2f9964['constructor']['name']==='MessagePort';}function closeEndPoint(_0x5abbab){if(isMessagePort(_0x5abbab))_0x5abbab['close']();}function wrap(_0x4f7ad1,_0x5003c8){const _0x312c3b=new Map();return _0x4f7ad1['addEventListener']('message',function _0x203073(_0x2934ab){const {data:_0x2e905d}=_0x2934ab;if(!_0x2e905d||!_0x2e905d['id'])return;const _0x5947f3=_0x312c3b['get'](_0x2e905d['id']);if(!_0x5947f3)return;try{_0x5947f3(_0x2e905d);}finally{_0x312c3b['delete'](_0x2e905d['id']);}}),createProxy(_0x4f7ad1,_0x312c3b,[],_0x5003c8);}function throwIfProxyReleased(_0x366f16){if(_0x366f16)throw new Error('Proxy\x20has\x20been\x20released\x20and\x20is\x20not\x20useable');}function releaseEndpoint(_0x34fe09){return requestResponseMessage(_0x34fe09,new Map(),{'type':'RELEASE'})['then'](()=>{closeEndPoint(_0x34fe09);});}const proxyCounter=new WeakMap(),proxyFinalizers='FinalizationRegistry'in globalThis&&new FinalizationRegistry(_0x450aa4=>{const _0x150acc=(proxyCounter['get'](_0x450aa4)||0x0)-0x1;proxyCounter['set'](_0x450aa4,_0x150acc),_0x150acc===0x0&&releaseEndpoint(_0x450aa4);});function registerProxy(_0x352111,_0x203d18){const _0x4c6017=(proxyCounter['get'](_0x203d18)||0x0)+0x1;proxyCounter['set'](_0x203d18,_0x4c6017),proxyFinalizers&&proxyFinalizers['register'](_0x352111,_0x203d18,_0x352111);}function unregisterProxy(_0x3f1b9c){proxyFinalizers&&proxyFinalizers['unregister'](_0x3f1b9c);}function createProxy(_0x20efee,_0x10af65,_0x412e56=[],_0x438873=function(){}){let _0x527bf0=![];const _0x533faf=new Proxy(_0x438873,{'get'(_0x327ebb,_0x30a996){throwIfProxyReleased(_0x527bf0);if(_0x30a996===releaseProxy)return()=>{unregisterProxy(_0x533faf),releaseEndpoint(_0x20efee),_0x10af65['clear'](),_0x527bf0=!![];};if(_0x30a996==='then'){if(_0x412e56['length']===0x0)return{'then':()=>_0x533faf};const _0x3c7e8c=requestResponseMessage(_0x20efee,_0x10af65,{'type':'GET','path':_0x412e56['map'](_0x177b53=>_0x177b53['toString']())})['then'](fromWireValue);return _0x3c7e8c['then']['bind'](_0x3c7e8c);}return createProxy(_0x20efee,_0x10af65,[..._0x412e56,_0x30a996]);},'set'(_0x57330d,_0x2b924a,_0x43c4ba){throwIfProxyReleased(_0x527bf0);const [_0x583fbc,_0x202d66]=toWireValue(_0x43c4ba);return requestResponseMessage(_0x20efee,_0x10af65,{'type':'SET','path':[..._0x412e56,_0x2b924a]['map'](_0x37c0da=>_0x37c0da['toString']()),'value':_0x583fbc},_0x202d66)['then'](fromWireValue);},'apply'(_0x4bbe2c,_0xd95fbf,_0x2f334b){throwIfProxyReleased(_0x527bf0);const _0x3f9c95=_0x412e56[_0x412e56['length']-0x1];if(_0x3f9c95===createEndpoint)return requestResponseMessage(_0x20efee,_0x10af65,{'type':'ENDPOINT'})['then'](fromWireValue);if(_0x3f9c95==='bind')return createProxy(_0x20efee,_0x10af65,_0x412e56['slice'](0x0,-0x1));const [_0xd895de,_0x3eaa58]=processArguments(_0x2f334b);return requestResponseMessage(_0x20efee,_0x10af65,{'type':'APPLY','path':_0x412e56['map'](_0x355527=>_0x355527['toString']()),'argumentList':_0xd895de},_0x3eaa58)['then'](fromWireValue);},'construct'(_0x2a0b91,_0x2564a6){throwIfProxyReleased(_0x527bf0);const [_0x3cbb13,_0x5b329a]=processArguments(_0x2564a6);return requestResponseMessage(_0x20efee,_0x10af65,{'type':'CONSTRUCT','path':_0x412e56['map'](_0x1c449b=>_0x1c449b['toString']()),'argumentList':_0x3cbb13},_0x5b329a)['then'](fromWireValue);}});return registerProxy(_0x533faf,_0x20efee),_0x533faf;}function myFlat(_0x412ae0){return Array['prototype']['concat']['apply']([],_0x412ae0);}function processArguments(_0x43bae0){const _0x317433=_0x43bae0['map'](toWireValue);return[_0x317433['map'](_0x32c329=>_0x32c329[0x0]),myFlat(_0x317433['map'](_0x42440d=>_0x42440d[0x1]))];}const transferCache=new WeakMap();function transfer(_0x82d782,_0x2e891a){return transferCache['set'](_0x82d782,_0x2e891a),_0x82d782;}function proxy(_0x244da8){return Object['assign'](_0x244da8,{[proxyMarker]:!![]});}function toWireValue(_0x40ba02){for(const [_0x2f3f9d,_0x2f611a]of transferHandlers){if(_0x2f611a['canHandle'](_0x40ba02)){const [_0x144b29,_0x5b279d]=_0x2f611a['serialize'](_0x40ba02);return[{'type':'HANDLER','name':_0x2f3f9d,'value':_0x144b29},_0x5b279d];}}return[{'type':'RAW','value':_0x40ba02},transferCache['get'](_0x40ba02)||[]];}function fromWireValue(_0x7bc0b9){switch(_0x7bc0b9['type']){case'HANDLER':return transferHandlers['get'](_0x7bc0b9['name'])['deserialize'](_0x7bc0b9['value']);case'RAW':return _0x7bc0b9['value'];}}function requestResponseMessage(_0x510f6d,_0x1249ba,_0x23632b,_0x2b07c7){return new Promise(_0x1063d8=>{const _0x2b1bb6=generateUUID$1();_0x1249ba['set'](_0x2b1bb6,_0x1063d8),_0x510f6d['start']&&_0x510f6d['start'](),_0x510f6d['postMessage'](Object['assign']({'id':_0x2b1bb6},_0x23632b),_0x2b07c7);});}function generateUUID$1(){return new Array(0x4)['fill'](0x0)['map'](()=>Math['floor'](Math['random']()*Number['MAX_SAFE_INTEGER'])['toString'](0x10))['join']('-');}class MessageParser{['isSupport'](_0x4204c1){return this['supportTypes']()['includes'](_0x4204c1);}}function normalizeTime(_0x2e07ae){if(!_0x2e07ae)return{'sec':0x0,'nsec':0x0};return{'sec':_0x2e07ae['sec']??0x0,'nsec':_0x2e07ae['nsec']??0x0};}function normalizeHeader(_0x3fb7e){return{'frame_id':_0x3fb7e?.['frame_id']??'','stamp':normalizeTime(_0x3fb7e?.['stamp']),'seq':_0x3fb7e?.['seq']};}function normalizeByteArray(_0x487489){if(_0x487489==void 0x0)return new Uint8Array(0x0);else{if(_0x487489 instanceof Uint8Array)return _0x487489;else return Array['isArray'](_0x487489)||_0x487489 instanceof ArrayBuffer?new Uint8Array(_0x487489):new Uint8Array(0x0);}}function normalizeFloat32Array(_0x54038d){if(_0x54038d==void 0x0)return new Float32Array(0x0);else{if(_0x54038d instanceof Float32Array)return _0x54038d;else return Array['isArray'](_0x54038d)||_0x54038d instanceof ArrayBuffer||_0x54038d instanceof Float64Array?new Float32Array(_0x54038d):new Float32Array(0x0);}}function normalizeImageData(_0x3a913b){if(_0x3a913b==void 0x0)return new Uint8Array(0x0);else return _0x3a913b instanceof Int8Array||_0x3a913b instanceof Uint8Array?_0x3a913b:new Uint8Array(0x0);}function getField(_0x5df074){const _0x4da42e=[function(_0x4812e6,_0x2717de,_0x5ba432,_0x256820){return _0x4812e6['getInt8'](_0x2717de+_0x5ba432);},function(_0x3d090d,_0x301613,_0x4913a3,_0x428f3f){return _0x3d090d['getUint8'](_0x301613+_0x4913a3);},function(_0x3fa9b3,_0x50d97d,_0x22d48f,_0x186301){return _0x3fa9b3['getInt16'](_0x50d97d+_0x22d48f,_0x186301);},function(_0x41b796,_0x10dcb5,_0x58c301,_0x427afb){return _0x41b796['getUint16'](_0x10dcb5+_0x58c301,_0x427afb);},function(_0xf235ab,_0x4e0202,_0x364d8e,_0x224128){return _0xf235ab['getInt32'](_0x4e0202+_0x364d8e,_0x224128);},function(_0x2de7d0,_0x36b16b,_0x42da3e,_0xeab779){return _0x2de7d0['getUint32'](_0x36b16b+_0x42da3e,_0xeab779);},function(_0x402ee0,_0x587b39,_0x214772,_0x16b9e0){return _0x402ee0['getFloat32'](_0x587b39+_0x214772,_0x16b9e0);},function(_0x2a6f42,_0x5484d7,_0x146583,_0xcc6e2a){return _0x2a6f42['getFloat64'](_0x5484d7+_0x146583,_0xcc6e2a);}];let _0x384c13=()=>{return NaN;};return _0x4da42e[_0x5df074]||_0x384c13;}function normalizeVector3(_0x4b73d7){if(!_0x4b73d7)return{'x':0x0,'y':0x0,'z':0x0};return{'x':_0x4b73d7['x']??0x0,'y':_0x4b73d7['y']??0x0,'z':_0x4b73d7['z']??0x0};}function normalizeVector3s(_0x1ccaeb){if(!_0x1ccaeb)return[];return _0x1ccaeb['map'](normalizeVector3);}function normalizeQuaternion(_0x1d4862){if(!_0x1d4862)return{'x':0x0,'y':0x0,'z':0x0,'w':0x1};return{'x':_0x1d4862['x']??0x0,'y':_0x1d4862['y']??0x0,'z':_0x1d4862['z']??0x0,'w':_0x1d4862['w']??0x0};}function normalizePose(_0x57e03c){return{'position':normalizeVector3(_0x57e03c?.['position']),'orientation':normalizeQuaternion(_0x57e03c?.['orientation'])};}function normalizeColorRGBA(_0x78b0df){if(!_0x78b0df)return{'r':0x0,'g':0x0,'b':0x0,'a':0x1};return{'r':_0x78b0df['r']??0x0,'g':_0x78b0df['g']??0x0,'b':_0x78b0df['b']??0x0,'a':_0x78b0df['a']??0x1};}function normalizeColorRGBAs(_0x52f52c){if(!_0x52f52c)return[];return _0x52f52c['map'](normalizeColorRGBA);}/**
* @license
* Copyright 2010-2023 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const REVISION='160',UVMapping=0x12c,RepeatWrapping=0x3e8,ClampToEdgeWrapping=0x3e9,MirroredRepeatWrapping=0x3ea,NearestFilter=0x3eb,LinearFilter=0x3ee,LinearMipmapLinearFilter=0x3f0,UnsignedByteType=0x3f1,UnsignedIntType=0x3f6,UnsignedInt248Type=0x3fc,RGBAFormat=0x3ff,DepthFormat=0x402,DepthStencilFormat=0x403,LinearEncoding=0xbb8,sRGBEncoding=0xbb9,NoColorSpace='',SRGBColorSpace='srgb',LinearSRGBColorSpace='srgb-linear',DisplayP3ColorSpace='display-p3',LinearDisplayP3ColorSpace='display-p3-linear',LinearTransfer='linear',SRGBTransfer='srgb',Rec709Primaries='rec709',P3Primaries='p3',LessEqualCompare=0x203,WebGLCoordinateSystem=0x7d0,WebGPUCoordinateSystem=0x7d1;class EventDispatcher{['addEventListener'](_0x2a750a,_0x1e7d5e){if(this['_listeners']===void 0x0)this['_listeners']={};const _0x49d3af=this['_listeners'];_0x49d3af[_0x2a750a]===void 0x0&&(_0x49d3af[_0x2a750a]=[]),_0x49d3af[_0x2a750a]['indexOf'](_0x1e7d5e)===-0x1&&_0x49d3af[_0x2a750a]['push'](_0x1e7d5e);}['hasEventListener'](_0xa0269b,_0x306967){if(this['_listeners']===void 0x0)return![];const _0x1558ec=this['_listeners'];return _0x1558ec[_0xa0269b]!==void 0x0&&_0x1558ec[_0xa0269b]['indexOf'](_0x306967)!==-0x1;}['removeEventListener'](_0x3e7f09,_0x52bdd1){if(this['_listeners']===void 0x0)return;const _0x4daaa0=this['_listeners'],_0x11e91e=_0x4daaa0[_0x3e7f09];if(_0x11e91e!==void 0x0){const _0x36afd7=_0x11e91e['indexOf'](_0x52bdd1);_0x36afd7!==-0x1&&_0x11e91e['splice'](_0x36afd7,0x1);}}['dispatchEvent'](_0x34fce1){if(this['_listeners']===void 0x0)return;const _0x2c2dc4=this['_listeners'],_0x5128fd=_0x2c2dc4[_0x34fce1['type']];if(_0x5128fd!==void 0x0){_0x34fce1['target']=this;const _0x5cd461=_0x5128fd['slice'](0x0);for(let _0x16a7c3=0x0,_0x5c05cc=_0x5cd461['length'];_0x16a7c3<_0x5c05cc;_0x16a7c3++){_0x5cd461[_0x16a7c3]['call'](this,_0x34fce1);}_0x34fce1['target']=null;}}}const _lut=['00','01','02','03','04','05','06','07','08','09','0a','0b','0c','0d','0e','0f','10','11','12','13','14','15','16','17','18','19','1a','1b','1c','1d','1e','1f','20','21','22','23','24','25','26','27','28','29','2a','2b','2c','2d','2e','2f','30','31','32','33','34','35','36','37','38','39','3a','3b','3c','3d','3e','3f','40','41','42','43','44','45','46','47','48','49','4a','4b','4c','4d','4e','4f','50','51','52','53','54','55','56','57','58','59','5a','5b','5c','5d','5e','5f','60','61','62','63','64','65','66','67','68','69','6a','6b','6c','6d','6e','6f','70','71','72','73','74','75','76','77','78','79','7a','7b','7c','7d','7e','7f','80','81','82','83','84','85','86','87','88','89','8a','8b','8c','8d','8e','8f','90','91','92','93','94','95','96','97','98','99','9a','9b','9c','9d','9e','9f','a0','a1','a2','a3','a4','a5','a6','a7','a8','a9','aa','ab','ac','ad','ae','af','b0','b1','b2','b3','b4','b5','b6','b7','b8','b9','ba','bb','bc','bd','be','bf','c0','c1','c2','c3','c4','c5','c6','c7','c8','c9','ca','cb','cc','cd','ce','cf','d0','d1','d2','d3','d4','d5','d6','d7','d8','d9','da','db','dc','dd','de','df','e0','e1','e2','e3','e4','e5','e6','e7','e8','e9','ea','eb','ec','ed','ee','ef','f0','f1','f2','f3','f4','f5','f6','f7','f8','f9','fa','fb','fc','fd','fe','ff'];function generateUUID(){const _0x12e455=Math['random']()*0xffffffff|0x0,_0x581f68=Math['random']()*0xffffffff|0x0,_0x2198ed=Math['random']()*0xffffffff|0x0,_0x2644de=Math['random']()*0xffffffff|0x0,_0x9ff1dd=_lut[_0x12e455&0xff]+_lut[_0x12e455>>0x8&0xff]+_lut[_0x12e455>>0x10&0xff]+_lut[_0x12e455>>0x18&0xff]+'-'+_lut[_0x581f68&0xff]+_lut[_0x581f68>>0x8&0xff]+'-'+_lut[_0x581f68>>0x10&0xf|0x40]+_lut[_0x581f68>>0x18&0xff]+'-'+_lut[_0x2198ed&0x3f|0x80]+_lut[_0x2198ed>>0x8&0xff]+'-'+_lut[_0x2198ed>>0x10&0xff]+_lut[_0x2198ed>>0x18&0xff]+_lut[_0x2644de&0xff]+_lut[_0x2644de>>0x8&0xff]+_lut[_0x2644de>>0x10&0xff]+_lut[_0x2644de>>0x18&0xff];return _0x9ff1dd['toLowerCase']();}function clamp$1(_0x28cac7,_0x166380,_0x4e833c){return Math['max'](_0x166380,Math['min'](_0x4e833c,_0x28cac7));}function euclideanModulo(_0x4913e6,_0x5d3d98){return(_0x4913e6%_0x5d3d98+_0x5d3d98)%_0x5d3d98;}function lerp$1(_0x5d4e19,_0x2aa944,_0x3edee1){return(0x1-_0x3edee1)*_0x5d4e19+_0x3edee1*_0x2aa944;}class Vector2{constructor(_0x402d2c=0x0,_0x7882a7=0x0){Vector2['prototype']['isVector2']=!![],this['x']=_0x402d2c,this['y']=_0x7882a7;}get['width'](){return this['x'];}set['width'](_0x372585){this['x']=_0x372585;}get['height'](){return this['y'];}set['height'](_0x3ce32c){this['y']=_0x3ce32c;}['set'](_0x394df3,_0x4e8f46){return this['x']=_0x394df3,this['y']=_0x4e8f46,this;}['setScalar'](_0x483b79){return this['x']=_0x483b79,this['y']=_0x483b79,this;}['setX'](_0x526513){return this['x']=_0x526513,this;}['setY'](_0x46f29a){return this['y']=_0x46f29a,this;}['setComponent'](_0xe06c7d,_0x169721){switch(_0xe06c7d){case 0x0:this['x']=_0x169721;break;case 0x1:this['y']=_0x169721;break;default:throw new Error('index\x20is\x20out\x20of\x20range:\x20'+_0xe06c7d);}return this;}['getComponent'](_0x4d6c57){switch(_0x4d6c57){case 0x0:return this['x'];case 0x1:return this['y'];default:throw new Error('index\x20is\x20out\x20of\x20range:\x20'+_0x4d6c57);}}['clone'](){return new this['constructor'](this['x'],this['y']);}['copy'](_0x2d3139){return this['x']=_0x2d3139['x'],this['y']=_0x2d3139['y'],this;}['add'](_0x1cebdf){return this['x']+=_0x1cebdf['x'],this['y']+=_0x1cebdf['y'],this;}['addScalar'](_0x59e4ea){return this['x']+=_0x59e4ea,this['y']+=_0x59e4ea,this;}['addVectors'](_0x4f1e33,_0x11197a){return this['x']=_0x4f1e33['x']+_0x11197a['x'],this['y']=_0x4f1e33['y']+_0x11197a['y'],this;}['addScaledVector'](_0x12d7fa,_0x202dd6){return this['x']+=_0x12d7fa['x']*_0x202dd6,this['y']+=_0x12d7fa['y']*_0x202dd6,this;}['sub'](_0xc9345f){return this['x']-=_0xc9345f['x'],this['y']-=_0xc9345f['y'],this;}['subScalar'](_0x277421){return this['x']-=_0x277421,this['y']-=_0x277421,this;}['subVectors'](_0x3ae8a1,_0x277c00){return this['x']=_0x3ae8a1['x']-_0x277c00['x'],this['y']=_0x3ae8a1['y']-_0x277c00['y'],this;}['multiply'](_0x3337c8){return this['x']*=_0x3337c8['x'],this['y']*=_0x3337c8['y'],this;}['multiplyScalar'](_0x5186e8){return this['x']*=_0x5186e8,this['y']*=_0x5186e8,this;}['divide'](_0x169e25){return this['x']/=_0x169e25['x'],this['y']/=_0x169e25['y'],this;}['divideScalar'](_0x10a454){return this['multiplyScalar'](0x1/_0x10a454);}['applyMatrix3'](_0xd39214){const _0x2d2f18=this['x'],_0x17f226=this['y'],_0x211db5=_0xd39214['elements'];return this['x']=_0x211db5[0x0]*_0x2d2f18+_0x211db5[0x3]*_0x17f226+_0x211db5[0x6],this['y']=_0x211db5[0x1]*_0x2d2f18+_0x211db5[0x4]*_0x17f226+_0x211db5[0x7],this;}['min'](_0x55e768){return this['x']=Math['min'](this['x'],_0x55e768['x']),this['y']=Math['min'](this['y'],_0x55e768['y']),this;}['max'](_0x4901bf){return this['x']=Math['max'](this['x'],_0x4901bf['x']),this['y']=Math['max'](this['y'],_0x4901bf['y']),this;}['clamp'](_0x50e168,_0x482a1f){return this['x']=Math['max'](_0x50e168['x'],Math['min'](_0x482a1f['x'],this['x'])),this['y']=Math['max'](_0x50e168['y'],Math['min'](_0x482a1f['y'],this['y'])),this;}['clampScalar'](_0x10ca11,_0x3ac07d){return this['x']=Math['max'](_0x10ca11,Math['min'](_0x3ac07d,this['x'])),this['y']=Math['max'](_0x10ca11,Math['min'](_0x3ac07d,this['y'])),this;}['clampLength'](_0x3dedf2,_0x5b8bba){const _0x130460=this['length']();return this['divideScalar'](_0x130460||0x1)['multiplyScalar'](Math['max'](_0x3dedf2,Math['min'](_0x5b8bba,_0x130460)));}['floor'](){return this['x']=Math['floor'](this['x']),this['y']=Math['floor'](this['y']),this;}['ceil'](){return this['x']=Math['ceil'](this['x']),this['y']=Math['ceil'](this['y']),this;}['round'](){return this['x']=Math['round'](this['x']),this['y']=Math['round'](this['y']),this;}['roundToZero'](){return this['x']=Math['trunc'](this['x']),this['y']=Math['trunc'](this['y']),this;}['negate'](){return this['x']=-this['x'],this['y']=-this['y'],this;}['dot'](_0x3dd2d7){return this['x']*_0x3dd2d7['x']+this['y']*_0x3dd2d7['y'];}['cross'](_0x54cc69){return this['x']*_0x54cc69['y']-this['y']*_0x54cc69['x'];}['lengthSq'](){return this['x']*this['x']+this['y']*this['y'];}['length'](){return Math['sqrt'](this['x']*this['x']+this['y']*this['y']);}['manhattanLength'](){return Math['abs'](this['x'])+Math['abs'](this['y']);}['normalize'](){return this['divideScalar'](this['length']()||0x1);}['angle'](){const _0x24a221=Math['atan2'](-this['y'],-this['x'])+Math['PI'];return _0x24a221;}['angleTo'](_0x2faaf0){const _0x42177b=Math['sqrt'](this['lengthSq']()*_0x2faaf0['lengthSq']());if(_0x42177b===0x0)return Math['PI']/0x2;const _0x54b369=this['dot'](_0x2faaf0)/_0x42177b;return Math['acos'](clamp$1(_0x54b369,-0x1,0x1));}['distanceTo'](_0x5997fe){return Math['sqrt'](this['distanceToSquared'](_0x5997fe));}['distanceToSquared'](_0x487709){const _0x479ff4=this['x']-_0x487709['x'],_0xfafd38=this['y']-_0x487709['y'];return _0x479ff4*_0x479ff4+_0xfafd38*_0xfafd38;}['manhattanDistanceTo'](_0x4dfc4f){return Math['abs'](this['x']-_0x4dfc4f['x'])+Math['abs'](this['y']-_0x4dfc4f['y']);}['setLength'](_0x112f24){return this['normalize']()['multiplyScalar'](_0x112f24);}['lerp'](_0x1ea2e1,_0x48ceb3){return this['x']+=(_0x1ea2e1['x']-this['x'])*_0x48ceb3,this['y']+=(_0x1ea2e1['y']-this['y'])*_0x48ceb3,this;}['lerpVectors'](_0x2b84e3,_0x3ada47,_0x65c026){return this['x']=_0x2b84e3['x']+(_0x3ada47['x']-_0x2b84e3['x'])*_0x65c026,this['y']=_0x2b84e3['y']+(_0x3ada47['y']-_0x2b84e3['y'])*_0x65c026,this;}['equals'](_0x1ef3b4){return _0x1ef3b4['x']===this['x']&&_0x1ef3b4['y']===this['y'];}['fromArray'](_0x4fb1fc,_0x5d83f3=0x0){return this['x']=_0x4fb1fc[_0x5d83f3],this['y']=_0x4fb1fc[_0x5d83f3+0x1],this;}['toArray'](_0x60f48e=[],_0x27c826=0x0){return _0x60f48e[_0x27c826]=this['x'],_0x60f48e[_0x27c826+0x1]=this['y'],_0x60f48e;}['fromBufferAttribute'](_0x1bb2ad,_0x103ee0){return this['x']=_0x1bb2ad['getX'](_0x103ee0),this['y']=_0x1bb2ad['getY'](_0x103ee0),this;}['rotateAround'](_0x3c491b,_0x2bb0a4){const _0x3b8580=Math['cos'](_0x2bb0a4),_0x26dda7=Math['sin'](_0x2bb0a4),_0x551f6c=this['x']-_0x3c491b['x'],_0x5487a2=this['y']-_0x3c491b['y'];return this['x']=_0x551f6c*_0x3b8580-_0x5487a2*_0x26dda7+_0x3c491b['x'],this['y']=_0x551f6c*_0x26dda7+_0x5487a2*_0x3b8580+_0x3c491b['y'],this;}['random'](){return this['x']=Math['random'](),this['y']=Math['random'](),this;}*[Symbol['iterator']](){yield this['x'],yield this['y'];}}class Matrix3{constructor(_0x1d5ec0,_0x43ce32,_0x71fb6f,_0x2dfaf5,_0x2a12c8,_0x2163a0,_0x3da8eb,_0x17cf3b,_0xa53583){Matrix3['prototype']['isMatrix3']=!![],this['elements']=[0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1],_0x1d5ec0!==void 0x0&&this['set'](_0x1d5ec0,_0x43ce32,_0x71fb6f,_0x2dfaf5,_0x2a12c8,_0x2163a0,_0x3da8eb,_0x17cf3b,_0xa53583);}['set'](_0x1bb614,_0x211291,_0x78f534,_0x398352,_0xe249b9,_0x59f70b,_0x3347a5,_0x5153b3,_0xf19879){const _0x4d8be0=this['elements'];return _0x4d8be0[0x0]=_0x1bb614,_0x4d8be0[0x1]=_0x398352,_0x4d8be0[0x2]=_0x3347a5,_0x4d8be0[0x3]=_0x211291,_0x4d8be0[0x4]=_0xe249b9,_0x4d8be0[0x5]=_0x5153b3,_0x4d8be0[0x6]=_0x78f534,_0x4d8be0[0x7]=_0x59f70b,_0x4d8be0[0x8]=_0xf19879,this;}['identity'](){return this['set'](0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1),this;}['copy'](_0x1f1576){const _0x56f1c1=this['elements'],_0x157c2d=_0x1f1576['elements'];return _0x56f1c1[0x0]=_0x157c2d[0x0],_0x56f1c1[0x1]=_0x157c2d[0x1],_0x56f1c1[0x2]=_0x157c2d[0x2],_0x56f1c1[0x3]=_0x157c2d[0x3],_0x56f1c1[0x4]=_0x157c2d[0x4],_0x56f1c1[0x5]=_0x157c2d[0x5],_0x56f1c1[0x6]=_0x157c2d[0x6],_0x56f1c1[0x7]=_0x157c2d[0x7],_0x56f1c1[0x8]=_0x157c2d[0x8],this;}['extractBasis'](_0x3f1c23,_0x1fba7f,_0xf799b8){return _0x3f1c23['setFromMatrix3Column'](this,0x0),_0x1fba7f['setFromMatrix3Column'](this,0x1),_0xf799b8['setFromMatrix3Column'](this,0x2),this;}['setFromMatrix4'](_0x2bf1c0){const _0x914201=_0x2bf1c0['elements'];return this['set'](_0x914201[0x0],_0x914201[0x4],_0x914201[0x8],_0x914201[0x1],_0x914201[0x5],_0x914201[0x9],_0x914201[0x2],_0x914201[0x6],_0x914201[0xa]),this;}['multiply'](_0x135d08){return this['multiplyMatrices'](this,_0x135d08);}['premultiply'](_0x4bfc02){return this['multiplyMatrices'](_0x4bfc02,this);}['multiplyMatrices'](_0x2571fa,_0x43b85f){const _0x1e554d=_0x2571fa['elements'],_0x325478=_0x43b85f['elements'],_0x4819cf=this['elements'],_0x26fa41=_0x1e554d[0x0],_0x137f28=_0x1e554d[0x3],_0x6001bf=_0x1e554d[0x6],_0x2d6676=_0x1e554d[0x1],_0x18367a=_0x1e554d[0x4],_0x22e30b=_0x1e554d[0x7],_0x33c7ca=_0x1e554d[0x2],_0x3f95b5=_0x1e554d[0x5],_0x4f26bc=_0x1e554d[0x8],_0x2f4da9=_0x325478[0x0],_0x6f4174=_0x325478[0x3],_0x9e28a2=_0x325478[0x6],_0x351d0a=_0x325478[0x1],_0x461fee=_0x325478[0x4],_0x210827=_0x325478[0x7],_0x2ee757=_0x325478[0x2],_0xaa54fc=_0x325478[0x5],_0x285d42=_0x325478[0x8];return _0x4819cf[0x0]=_0x26fa41*_0x2f4da9+_0x137f28*_0x351d0a+_0x6001bf*_0x2ee757,_0x4819cf[0x3]=_0x26fa41*_0x6f4174+_0x137f28*_0x461fee+_0x6001bf*_0xaa54fc,_0x4819cf[0x6]=_0x26fa41*_0x9e28a2+_0x137f28*_0x210827+_0x6001bf*_0x285d42,_0x4819cf[0x1]=_0x2d6676*_0x2f4da9+_0x18367a*_0x351d0a+_0x22e30b*_0x2ee757,_0x4819cf[0x4]=_0x2d6676*_0x6f4174+_0x18367a*_0x461fee+_0x22e30b*_0xaa54fc,_0x4819cf[0x7]=_0x2d6676*_0x9e28a2+_0x18367a*_0x210827+_0x22e30b*_0x285d42,_0x4819cf[0x2]=_0x33c7ca*_0x2f4da9+_0x3f95b5*_0x351d0a+_0x4f26bc*_0x2ee757,_0x4819cf[0x5]=_0x33c7ca*_0x6f4174+_0x3f95b5*_0x461fee+_0x4f26bc*_0xaa54fc,_0x4819cf[0x8]=_0x33c7ca*_0x9e28a2+_0x3f95b5*_0x210827+_0x4f26bc*_0x285d42,this;}['multiplyScalar'](_0xa9d8ef){const _0x3816bb=this['elements'];return _0x3816bb[0x0]*=_0xa9d8ef,_0x3816bb[0x3]*=_0xa9d8ef,_0x3816bb[0x6]*=_0xa9d8ef,_0x3816bb[0x1]*=_0xa9d8ef,_0x3816bb[0x4]*=_0xa9d8ef,_0x3816bb[0x7]*=_0xa9d8ef,_0x3816bb[0x2]*=_0xa9d8ef,_0x3816bb[0x5]*=_0xa9d8ef,_0x3816bb[0x8]*=_0xa9d8ef,this;}['determinant'](){const _0x470a49=this['elements'],_0x5e84f3=_0x470a49[0x0],_0x51dae1=_0x470a49[0x1],_0x8448e9=_0x470a49[0x2],_0x2a2ece=_0x470a49[0x3],_0x5f0f54=_0x470a49[0x4],_0x4756ee=_0x470a49[0x5],_0x37631c=_0x470a49[0x6],_0x560861=_0x470a49[0x7],_0x3d300c=_0x470a49[0x8];return _0x5e84f3*_0x5f0f54*_0x3d300c-_0x5e84f3*_0x4756ee*_0x560861-_0x51dae1*_0x2a2ece*_0x3d300c+_0x51dae1*_0x4756ee*_0x37631c+_0x8448e9*_0x2a2ece*_0x560861-_0x8448e9*_0x5f0f54*_0x37631c;}['invert'](){const _0x11e5b0=this['elements'],_0x33b7e9=_0x11e5b0[0x0],_0x3a71ca=_0x11e5b0[0x1],_0x37133e=_0x11e5b0[0x2],_0x5bf190=_0x11e5b0[0x3],_0x1ce857=_0x11e5b0[0x4],_0x2cf2f9=_0x11e5b0[0x5],_0x44d3b7=_0x11e5b0[0x6],_0x174540=_0x11e5b0[0x7],_0x42506a=_0x11e5b0[0x8],_0x21f8b9=_0x42506a*_0x1ce857-_0x2cf2f9*_0x174540,_0x2e2b34=_0x2cf2f9*_0x44d3b7-_0x42506a*_0x5bf190,_0x34f25e=_0x174540*_0x5bf190-_0x1ce857*_0x44d3b7,_0x43df74=_0x33b7e9*_0x21f8b9+_0x3a71ca*_0x2e2b34+_0x37133e*_0x34f25e;if(_0x43df74===0x0)return this['set'](0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0);const _0x5c490e=0x1/_0x43df74;return _0x11e5b0[0x0]=_0x21f8b9*_0x5c490e,_0x11e5b0[0x1]=(_0x37133e*_0x174540-_0x42506a*_0x3a71ca)*_0x5c490e,_0x11e5b0[0x2]=(_0x2cf2f9*_0x3a71ca-_0x37133e*_0x1ce857)*_0x5c490e,_0x11e5b0[0x3]=_0x2e2b34*_0x5c490e,_0x11e5b0[0x4]=(_0x42506a*_0x33b7e9-_0x37133e*_0x44d3b7)*_0x5c490e,_0x11e5b0[0x5]=(_0x37133e*_0x5bf190-_0x2cf2f9*_0x33b7e9)*_0x5c490e,_0x11e5b0[0x6]=_0x34f25e*_0x5c490e,_0x11e5b0[0x7]=(_0x3a71ca*_0x44d3b7-_0x174540*_0x33b7e9)*_0x5c490e,_0x11e5b0[0x8]=(_0x1ce857*_0x33b7e9-_0x3a71ca*_0x5bf190)*_0x5c490e,this;}['transpose'](){let _0x5c872c;const _0x5d08fd=this['elements'];return _0x5c872c=_0x5d08fd[0x1],_0x5d08fd[0x1]=_0x5d08fd[0x3],_0x5d08fd[0x3]=_0x5c872c,_0x5c872c=_0x5d08fd[0x2],_0x5d08fd[0x2]=_0x5d08fd[0x6],_0x5d08fd[0x6]=_0x5c872c,_0x5c872c=_0x5d08fd[0x5],_0x5d08fd[0x5]=_0x5d08fd[0x7],_0x5d08fd[0x7]=_0x5c872c,this;}['getNormalMatrix'](_0x2d96b2){return this['setFromMatrix4'](_0x2d96b2)['invert']()['transpose']();}['transposeIntoArray'](_0x4d19d3){const _0x35e6ec=this['elements'];return _0x4d19d3[0x0]=_0x35e6ec[0x0],_0x4d19d3[0x1]=_0x35e6ec[0x3],_0x4d19d3[0x2]=_0x35e6ec[0x6],_0x4d19d3[0x3]=_0x35e6ec[0x1],_0x4d19d3[0x4]=_0x35e6ec[0x4],_0x4d19d3[0x5]=_0x35e6ec[0x7],_0x4d19d3[0x6]=_0x35e6ec[0x2],_0x4d19d3[0x7]=_0x35e6ec[0x5],_0x4d19d3[0x8]=_0x35e6ec[0x8],this;}['setUvTransform'](_0x313a6,_0x873648,_0x265a78,_0x36975b,_0x165074,_0x366d81,_0x49f1d0){const _0x255258=Math['cos'](_0x165074),_0x6866f4=Math['sin'](_0x165074);return this['set'](_0x265a78*_0x255258,_0x265a78*_0x6866f4,-_0x265a78*(_0x255258*_0x366d81+_0x6866f4*_0x49f1d0)+_0x366d81+_0x313a6,-_0x36975b*_0x6866f4,_0x36975b*_0x255258,-_0x36975b*(-_0x6866f4*_0x366d81+_0x255258*_0x49f1d0)+_0x49f1d0+_0x873648,0x0,0x0,0x1),this;}['scale'](_0x1ab97d,_0x2d462c){return this['premultiply'](_m3['makeScale'](_0x1ab97d,_0x2d462c)),this;}['rotate'](_0xfce6bc){return this['premultiply'](_m3['makeRotation'](-_0xfce6bc)),this;}['translate'](_0x4beab6,_0x535521){return this['premultiply'](_m3['makeTranslation'](_0x4beab6,_0x535521)),this;}['makeTranslation'](_0x1f0a1c,_0x376f1c){return _0x1f0a1c['isVector2']?this['set'](0x1,0x0,_0x1f0a1c['x'],0x0,0x1,_0x1f0a1c['y'],0x0,0x0,0x1):this['set'](0x1,0x0,_0x1f0a1c,0x0,0x1,_0x376f1c,0x0,0x0,0x1),this;}['makeRotation'](_0x759112){const _0x2b9b2d=Math['cos'](_0x759112),_0x172412=Math['sin'](_0x759112);return this['set'](_0x2b9b2d,-_0x172412,0x0,_0x172412,_0x2b9b2d,0x0,0x0,0x0,0x1),this;}['makeScale'](_0x367ec9,_0x53f9f6){return this['set'](_0x367ec9,0x0,0x0,0x0,_0x53f9f6,0x0,0x0,0x0,0x1),this;}['equals'](_0x34fd63){const _0x3d86fc=this['elements'],_0x1c6c8a=_0x34fd63['elements'];for(let _0x34a838=0x0;_0x34a838<0x9;_0x34a838++){if(_0x3d86fc[_0x34a838]!==_0x1c6c8a[_0x34a838])return![];}return!![];}['fromArray'](_0x2bed34,_0x397a53=0x0){for(let _0x1eb2fb=0x0;_0x1eb2fb<0x9;_0x1eb2fb++){this['elements'][_0x1eb2fb]=_0x2bed34[_0x1eb2fb+_0x397a53];}return this;}['toArray'](_0x35d1ae=[],_0x4f3191=0x0){const _0x31b110=this['elements'];return _0x35d1ae[_0x4f3191]=_0x31b110[0x0],_0x35d1ae[_0x4f3191+0x1]=_0x31b110[0x1],_0x35d1ae[_0x4f3191+0x2]=_0x31b110[0x2],_0x35d1ae[_0x4f3191+0x3]=_0x31b110[0x3],_0x35d1ae[_0x4f3191+0x4]=_0x31b110[0x4],_0x35d1ae[_0x4f3191+0x5]=_0x31b110[0x5],_0x35d1ae[_0x4f3191+0x6]=_0x31b110[0x6],_0x35d1ae[_0x4f3191+0x7]=_0x31b110[0x7],_0x35d1ae[_0x4f3191+0x8]=_0x31b110[0x8],_0x35d1ae;}['clone'](){return new this['constructor']()['fromArray'](this['elements']);}}const _m3=new Matrix3();function createElementNS(_0x4c8c11){return document['createElementNS']('http://www.w3.org/1999/xhtml',_0x4c8c11);}const _cache={};function warnOnce(_0x4b96c6){if(_0x4b96c6 in _cache)return;_cache[_0x4b96c6]=!![],console['warn'](_0x4b96c6);}const LINEAR_SRGB_TO_LINEAR_DISPLAY_P3=new Matrix3()['set'](0.8224621,0.177538,0x0,0.0331941,0.9668058,0x0,0.0170827,0.0723974,0.9105199),LINEAR_DISPLAY_P3_TO_LINEAR_SRGB=new Matrix3()['set'](1.2249401,-0.2249404,0x0,-0.0420569,1.0420571,0x0,-0.0196376,-0.0786361,1.0982735),COLOR_SPACES={[LinearSRGBColorSpace]:{'transfer':LinearTransfer,'primaries':Rec709Primaries,'toReference':_0x4ae3e5=>_0x4ae3e5,'fromReference':_0x62bc5=>_0x62bc5},[SRGBColorSpace]:{'transfer':SRGBTransfer,'primaries':Rec709Primaries,'toReference':_0x17b451=>_0x17b451['convertSRGBToLinear'](),'fromReference':_0x3431a9=>_0x3431a9['convertLinearToSRGB']()},[LinearDisplayP3ColorSpace]:{'transfer':LinearTransfer,'primaries':P3Primaries,'toReference':_0x5ede9c=>_0x5ede9c['applyMatrix3'](LINEAR_DISPLAY_P3_TO_LINEAR_SRGB),'fromReference':_0x12b969=>_0x12b969['applyMatrix3'](LINEAR_SRGB_TO_LINEAR_DISPLAY_P3)},[DisplayP3ColorSpace]:{'transfer':SRGBTransfer,'primaries':P3Primaries,'toReference':_0x43fff0=>_0x43fff0['convertSRGBToLinear']()['applyMatrix3'](LINEAR_DISPLAY_P3_TO_LINEAR_SRGB),'fromReference':_0x1ee7a2=>_0x1ee7a2['applyMatrix3'](LINEAR_SRGB_TO_LINEAR_DISPLAY_P3)['convertLinearToSRGB']()}},SUPPORTED_WORKING_COLOR_SPACES=new Set([LinearSRGBColorSpace,LinearDisplayP3ColorSpace]),ColorManagement={'enabled':!![],'_workingColorSpace':LinearSRGBColorSpace,get 'workingColorSpace'(){return this['_workingColorSpace'];},set 'workingColorSpace'(_0x2403b6){if(!SUPPORTED_WORKING_COLOR_SPACES['has'](_0x2403b6))throw new Error('Unsupported\x20working\x20color\x20space,\x20\x22'+_0x2403b6+'\x22.');this['_workingColorSpace']=_0x2403b6;},'convert':function(_0x12c9ab,_0x2ba527,_0x53f4a7){if(this['enabled']===![]||_0x2ba527===_0x53f4a7||!_0x2ba527||!_0x53f4a7)return _0x12c9ab;const _0x336b79=COLOR_SPACES[_0x2ba527]['toReference'],_0x3caa5d=COLOR_SPACES[_0x53f4a7]['fromReference'];return _0x3caa5d(_0x336b79(_0x12c9ab));},'fromWorkingColorSpace':function(_0x17964f,_0x4527e0){return this['convert'](_0x17964f,this['_workingColorSpace'],_0x4527e0);},'toWorkingColorSpace':function(_0x108e7d,_0x3be16a){return this['convert'](_0x108e7d,_0x3be16a,this['_workingColorSpace']);},'getPrimaries':function(_0x2eea25){return COLOR_SPACES[_0x2eea25]['primaries'];},'getTransfer':function(_0x27f7fb){if(_0x27f7fb===NoColorSpace)return LinearTransfer;return COLOR_SPACES[_0x27f7fb]['transfer'];}};function SRGBToLinear$1(_0x6e8638){return _0x6e8638<0.04045?_0x6e8638*0.0773993808:Math['pow'](_0x6e8638*0.9478672986+0.0521327014,2.4);}function LinearToSRGB(_0x6ed79){return _0x6ed79<0.0031308?_0x6ed79*12.92:1.055*Math['pow'](_0x6ed79,0.41666)-0.055;}let _canvas;class ImageUtils{static['getDataURL'](_0x4c4f16){if(/^data:/i['test'](_0x4c4f16['src']))return _0x4c4f16['src'];if(typeof HTMLCanvasElement==='undefined')return _0x4c4f16['src'];let _0x2998ae;if(_0x4c4f16 instanceof HTMLCanvasElement)_0x2998ae=_0x4c4f16;else{if(_canvas===void 0x0)_canvas=createElementNS('canvas');_canvas['width']=_0x4c4f16['width'],_canvas['height']=_0x4c4f16['height'];const _0x5e9ed3=_canvas['getContext']('2d');_0x4c4f16 instanceof ImageData?_0x5e9ed3['putImageData'](_0x4c4f16,0x0,0x0):_0x5e9ed3['drawImage'](_0x4c4f16,0x0,0x0,_0x4c4f16['width'],_0x4c4f16['height']),_0x2998ae=_canvas;}return _0x2998ae['width']>0x800||_0x2998ae['height']>0x800?(console['warn']('THREE.ImageUtils.getDataURL:\x20Image\x20converted\x20to\x20jpg\x20for\x20performance\x20reasons',_0x4c4f16),_0x2998ae['toDataURL']('image/jpeg',0.6)):_0x2998ae['toDataURL']('image/png');}static['sRGBToLinear'](_0x432fa1){if(typeof HTMLImageElement!=='undefined'&&_0x432fa1 instanceof HTMLImageElement||typeof HTMLCanvasElement!=='undefined'&&_0x432fa1 instanceof HTMLCanvasElement||typeof ImageBitmap!=='undefined'&&_0x432fa1 instanceof ImageBitmap){const _0x4b0a36=createElementNS('canvas');_0x4b0a36['width']=_0x432fa1['width'],_0x4b0a36['height']=_0x432fa1['height'];const _0x382211=_0x4b0a36['getContext']('2d');_0x382211['drawImage'](_0x432fa1,0x0,0x0,_0x432fa1['width'],_0x432fa1['height']);const _0x302692=_0x382211['getImageData'](0x0,0x0,_0x432fa1['width'],_0x432fa1['height']),_0x94b44=_0x302692['data'];for(let _0x4c86f0=0x0;_0x4c86f0<_0x94b44['length'];_0x4c86f0++){_0x94b44[_0x4c86f0]=SRGBToLinear$1(_0x94b44[_0x4c86f0]/0xff)*0xff;}return _0x382211['putImageData'](_0x302692,0x0,0x0),_0x4b0a36;}else{if(_0x432fa1['data']){const _0x3cdf46=_0x432fa1['data']['slice'](0x0);for(let _0x5a6748=0x0;_0x5a6748<_0x3cdf46['length'];_0x5a6748++){_0x3cdf46 instanceof Uint8Array||_0x3cdf46 instanceof Uint8ClampedArray?_0x3cdf46[_0x5a6748]=Math['floor'](SRGBToLinear$1(_0x3cdf46[_0x5a6748]/0xff)*0xff):_0x3cdf46[_0x5a6748]=SRGBToLinear$1(_0x3cdf46[_0x5a6748]);}return{'data':_0x3cdf46,'width':_0x432fa1['width'],'height':_0x432fa1['height']};}else return console['warn']('THREE.ImageUtils.sRGBToLinear():\x20Unsupported\x20image\x20type.\x20No\x20color\x20space\x20conversion\x20applied.'),_0x432fa1;}}}let _sourceId=0x0;class Source{constructor(_0x463436=null){this['isSource']=!![],Object['defineProperty'](this,'id',{'value':_sourceId++}),this['uuid']=generateUUID(),this['data']=_0x463436,this['version']=0x0;}set['needsUpdate'](_0xdfacc8){if(_0xdfacc8===!![])this['version']++;}['toJSON'](_0x5215ef){const _0x1a0a53=_0x5215ef===void 0x0||typeof _0x5215ef==='string';if(!_0x1a0a53&&_0x5215ef['images'][this['uuid']]!==void 0x0)return _0x5215ef['images'][this['uuid']];const _0x48e736={'uuid':this['uuid'],'url':''},_0x48ac1b=this['data'];if(_0x48ac1b!==null){let _0x536e6d;if(Array['isArray'](_0x48ac1b)){_0x536e6d=[];for(let _0x4d02af=0x0,_0x28c11a=_0x48ac1b['length'];_0x4d02af<_0x28c11a;_0x4d02af++){_0x48ac1b[_0x4d02af]['isDataTexture']?_0x536e6d['push'](serializeImage(_0x48ac1b[_0x4d02af]['image'])):_0x536e6d['push'](serializeImage(_0x48ac1b[_0x4d02af]));}}else _0x536e6d=serializeImage(_0x48ac1b);_0x48e736['url']=_0x536e6d;}return!_0x1a0a53&&(_0x5215ef['images'][this['uuid']]=_0x48e736),_0x48e736;}}function serializeImage(_0x135fb8){return typeof HTMLImageElement!=='undefined'&&_0x135fb8 instanceof HTMLImageElement||typeof HTMLCanvasElement!=='undefined'&&_0x135fb8 instanceof HTMLCanvasElement||typeof ImageBitmap!=='undefined'&&_0x135fb8 instanceof ImageBitmap?ImageUtils['getDataURL'](_0x135fb8):_0x135fb8['data']?{'data':Array['from'](_0x135fb8['data']),'width':_0x135fb8['width'],'height':_0x135fb8['height'],'type':_0x135fb8['data']['constructor']['name']}:(console['warn']('THREE.Texture:\x20Unable\x20to\x20serialize\x20Texture.'),{});}let _textureId=0x0;class Texture extends EventDispatcher{constructor(_0x4c070f=Texture['DEFAULT_IMAGE'],_0x58a3fb=Texture['DEFAULT_MAPPING'],_0x19a216=ClampToEdgeWrapping,_0x2d3689=ClampToEdgeWrapping,_0x348b09=LinearFilter,_0x6098ae=LinearMipmapLinearFilter,_0x7d6804=RGBAFormat,_0x334ef4=UnsignedByteType,_0x3101a6=Texture['DEFAULT_ANISOTROPY'],_0x1e337e=NoColorSpace){super(),this['isTexture']=!![],Object['defineProperty'](this,'id',{'value':_textureId++}),this['uuid']=generateUUID(),this['name']='',this['source']=new Source(_0x4c070f),this['mipmaps']=[],this['mapping']=_0x58a3fb,this['channel']=0x0,this['wrapS']=_0x19a216,this['wrapT']=_0x2d3689,this['magFilter']=_0x348b09,this['minFilter']=_0x6098ae,this['anisotropy']=_0x3101a6,this['format']=_0x7d6804,this['internalFormat']=null,this['type']=_0x334ef4,this['offset']=new Vector2(0x0,0x0),this['repeat']=new Vector2(0x1,0x1),this['center']=new Vector2(0x0,0x0),this['rotation']=0x0,this['matrixAutoUpdate']=!![],this['matrix']=new Matrix3(),this['generateMipmaps']=!![],this['premultiplyAlpha']=![],this['flipY']=!![],this['unpackAlignment']=0x4,typeof _0x1e337e==='string'?this['colorSpace']=_0x1e337e:(warnOnce('THREE.Texture:\x20Property\x20.encoding\x20has\x20been\x20replaced\x20by\x20.colorSpace.'),this['colorSpace']=_0x1e337e===sRGBEncoding?SRGBColorSpace:NoColorSpace),this['userData']={},this['version']=0x0,this['onUpdate']=null,this['isRenderTargetTexture']=![],this['needsPMREMUpdate']=![];}get['image'](){return this['source']['data'];}set['image'](_0x28e0be=null){this['source']['data']=_0x28e0be;}['updateMatrix'](){this['matrix']['setUvTransform'](this['offset']['x'],this['offset']['y'],this['repeat']['x'],this['repeat']['y'],this['rotation'],this['center']['x'],this['center']['y']);}['clone'](){return new this['constructor']()['copy'](this);}['copy'](_0x5706a3){return this['name']=_0x5706a3['name'],this['source']=_0x5706a3['source'],this['mipmaps']=_0x5706a3['mipmaps']['slice'](0x0),this['mapping']=_0x5706a3['mapping'],this['channel']=_0x5706a3['channel'],this['wrapS']=_0x5706a3['wrapS'],this['wrapT']=_0x5706a3['wrapT'],this['magFilter']=_0x5706a3['magFilter'],this['minFilter']=_0x5706a3['minFilter'],this['anisotropy']=_0x5706a3['anisotropy'],this['format']=_0x5706a3['format'],this['internalFormat']=_0x5706a3['internalFormat'],this['type']=_0x5706a3['type'],this['offset']['copy'](_0x5706a3['offset']),this['repeat']['copy'](_0x5706a3['repeat']),this['center']['copy'](_0x5706a3['center']),this['rotation']=_0x5706a3['rotation'],this['matrixAutoUpdate']=_0x5706a3['matrixAutoUpdate'],this['matrix']['copy'](_0x5706a3['matrix']),this['generateMipmaps']=_0x5706a3['generateMipmaps'],this['premultiplyAlpha']=_0x5706a3['premultiplyAlpha'],this['flipY']=_0x5706a3['flipY'],this['unpackAlignment']=_0x5706a3['unpackAlignment'],this['colorSpace']=_0x5706a3['colorSpace'],this['userData']=JSON['parse'](JSON['stringify'](_0x5706a3['userData'])),this['needsUpdate']=!![],this;}['toJSON'](_0x4567e1){const _0x149e00=_0x4567e1===void 0x0||typeof _0x4567e1==='string';if(!_0x149e00&&_0x4567e1['textures'][this['uuid']]!==void 0x0)return _0x4567e1['textures'][this['uuid']];const _0x305458={'metadata':{'version':4.6,'type':'Texture','generator':'Texture.toJSON'},'uuid':this['uuid'],'name':this['name'],'image':this['source']['toJSON'](_0x4567e1)['uuid'],'mapping':this['mapping'],'channel':this['channel'],'repeat':[this['repeat']['x'],this['repeat']['y']],'offset':[this['offset']['x'],this['offset']['y']],'center':[this['center']['x'],this['center']['y']],'rotation':this['rotation'],'wrap':[this['wrapS'],this['wrapT']],'format':this['format'],'internalFormat':this['internalFormat'],'type':this['type'],'colorSpace':this['colorSpace'],'minFilter':this['minFilter'],'magFilter':this['magFilter'],'anisotropy':this['anisotropy'],'flipY':this['flipY'],'generateMipmaps':this['generateMipmaps'],'premultiplyAlpha':this['premultiplyAlpha'],'unpackAlignment':this['unpackAlignment']};if(Object['keys'](this['userData'])['length']>0x0)_0x305458['userData']=this['userData'];return!_0x149e00&&(_0x4567e1['textures'][this['uuid']]=_0x305458),_0x305458;}['dispose'](){this['dispatchEvent']({'type':'dispose'});}['transformUv'](_0x5e0877){if(this['mapping']!==UVMapping)return _0x5e0877;_0x5e0877['applyMatrix3'](this['matrix']);if(_0x5e0877['x']<0x0||_0x5e0877['x']>0x1)switch(this['wrapS']){case RepeatWrapping:_0x5e0877['x']=_0x5e0877['x']-Math['floor'](_0x5e0877['x']);break;case ClampToEdgeWrapping:_0x5e0877['x']=_0x5e0877['x']<0x0?0x0:0x1;break;case MirroredRepeatWrapping:Math['abs'](Math['floor'](_0x5e0877['x'])%0x2)===0x1?_0x5e0877['x']=Math['ceil'](_0x5e0877['x'])-_0x5e0877['x']:_0x5e0877['x']=_0x5e0877['x']-Math['floor'](_0x5e0877['x']);break;}if(_0x5e0877['y']<0x0||_0x5e0877['y']>0x1)switch(this['wrapT']){case RepeatWrapping:_0x5e0877['y']=_0x5e0877['y']-Math['floor'](_0x5e0877['y']);break;case ClampToEdgeWrapping:_0x5e0877['y']=_0x5e0877['y']<0x0?0x0:0x1;break;case MirroredRepeatWrapping:Math['abs'](Math['floor'](_0x5e0877['y'])%0x2)===0x1?_0x5e0877['y']=Math['ceil'](_0x5e0877['y'])-_0x5e0877['y']:_0x5e0877['y']=_0x5e0877['y']-Math['floor'](_0x5e0877['y']);break;}return this['flipY']&&(_0x5e0877['y']=0x1-_0x5e0877['y']),_0x5e0877;}set['needsUpdate'](_0x5373c5){_0x5373c5===!![]&&(this['version']++,this['source']['needsUpdate']=!![]);}get['encoding'](){return warnOnce('THREE.Texture:\x20Property\x20.encoding\x20has\x20been\x20replaced\x20by\x20.colorSpace.'),this['colorSpace']===SRGBColorSpace?sRGBEncoding:LinearEncoding;}set['encoding'](_0x3ba873){warnOnce('THREE.Texture:\x20Property\x20.encoding\x20has\x20been\x20replaced\x20by\x20.colorSpace.'),this['colorSpace']=_0x3ba873===sRGBEncoding?SRGBColorSpace:NoColorSpace;}}Texture['DEFAULT_IMAGE']=null,Texture['DEFAULT_MAPPING']=UVMapping,Texture['DEFAULT_ANISOTROPY']=0x1;class Vector4{constructor(_0x595ed8=0x0,_0x44df5c=0x0,_0x194eb7=0x0,_0x51d1fc=0x1){Vector4['prototype']['isVector4']=!![],this['x']=_0x595ed8,this['y']=_0x44df5c,this['z']=_0x194eb7,this['w']=_0x51d1fc;}get['width'](){return this['z'];}set['width'](_0x3b35a6){this['z']=_0x3b35a6;}get['height'](){return this['w'];}set['height'](_0x2ef1aa){this['w']=_0x2ef1aa;}['set'](_0x3b920a,_0x58f440,_0x2124ea,_0x36a7f2){return this['x']=_0x3b920a,this['y']=_0x58f440,this['z']=_0x2124ea,this['w']=_0x36a7f2,this;}['setScalar'](_0x155dbe){return this['x']=_0x155dbe,this['y']=_0x155dbe,this['z']=_0x155dbe,this['w']=_0x155dbe,this;}['setX'](_0x436c89){return this['x']=_0x436c89,this;}['setY'](_0x1f2be6){return this['y']=_0x1f2be6,this;}['setZ'](_0x1d3fc7){return this['z']=_0x1d3fc7,this;}['setW'](_0x6cf6b3){return this['w']=_0x6cf6b3,this;}['setComponent'](_0x18743c,_0xd3c43b){switch(_0x18743c){case 0x0:this['x']=_0xd3c43b;break;case 0x1:this['y']=_0xd3c43b;break;case 0x2:this['z']=_0xd3c43b;break;case 0x3:this['w']=_0xd3c43b;break;default:throw new Error('index\x20is\x20out\x20of\x20range:\x20'+_0x18743c);}return this;}['getComponent'](_0x3dff04){switch(_0x3dff04){case 0x0:return this['x'];case 0x1:return this['y'];case 0x2:return this['z'];case 0x3:return this['w'];default:throw new Error('index\x20is\x20out\x20of\x20range:\x20'+_0x3dff04);}}['clone'](){return new this['constructor'](this['x'],this['y'],this['z'],this['w']);}['copy'](_0x421cdb){return this['x']=_0x421cdb['x'],this['y']=_0x421cdb['y'],this['z']=_0x421cdb['z'],this['w']=_0x421cdb['w']!==void 0x0?_0x421cdb['w']:0x1,this;}['add'](_0x565157){return this['x']+=_0x565157['x'],this['y']+=_0x565157['y'],this['z']+=_0x565157['z'],this['w']+=_0x565157['w'],this;}['addScalar'](_0x919b9e){return this['x']+=_0x919b9e,this['y']+=_0x919b9e,this['z']+=_0x919b9e,this['w']+=_0x919b9e,this;}['addVectors'](_0x9632f7,_0x3cec1a){return this['x']=_0x9632f7['x']+_0x3cec1a['x'],this['y']=_0x9632f7['y']+_0x3cec1a['y'],this['z']=_0x9632f7['z']+_0x3cec1a['z'],this['w']=_0x9632f7['w']+_0x3cec1a['w'],this;}['addScaledVector'](_0x1e3d49,_0x119300){return this['x']+=_0x1e3d49['x']*_0x119300,this['y']+=_0x1e3d49['y']*_0x119300,this['z']+=_0x1e3d49['z']*_0x119300,this['w']+=_0x1e3d49['w']*_0x119300,this;}['sub'](_0x3c0102){return this['x']-=_0x3c0102['x'],this['y']-=_0x3c0102['y'],this['z']-=_0x3c0102['z'],this['w']-=_0x3c0102['w'],this;}['subScalar'](_0x187a8){return this['x']-=_0x187a8,this['y']-=_0x187a8,this['z']-=_0x187a8,this['w']-=_0x187a8,this;}['subVectors'](_0x4b74ef,_0x3d96b7){return this['x']=_0x4b74ef['x']-_0x3d96b7['x'],this['y']=_0x4b74ef['y']-_0x3d96b7['y'],this['z']=_0x4b74ef['z']-_0x3d96b7['z'],this['w']=_0x4b74ef['w']-_0x3d96b7['w'],this;}['multiply'](_0x4ed08f){return this['x']*=_0x4ed08f['x'],this['y']*=_0x4ed08f['y'],this['z']*=_0x4ed08f['z'],this['w']*=_0x4ed08f['w'],this;}['multiplyScalar'](_0x1361ed){return this['x']*=_0x1361ed,this['y']*=_0x1361ed,this['z']*=_0x1361ed,this['w']*=_0x1361ed,this;}['applyMatrix4'](_0x5a436c){const _0x58e005=this['x'],_0x5b31e4=this['y'],_0x3e8b57=this['z'],_0x67358d=this['w'],_0x347994=_0x5a436c['elements'];return this['x']=_0x347994[0x0]*_0x58e005+_0x347994[0x4]*_0x5b31e4+_0x347994[0x8]*_0x3e8b57+_0x347994[0xc]*_0x67358d,this['y']=_0x347994[0x1]*_0x58e005+_0x347994[0x5]*_0x5b31e4+_0x347994[0x9]*_0x3e8b57+_0x347994[0xd]*_0x67358d,this['z']=_0x347994[0x2]*_0x58e005+_0x347994[0x6]*_0x5b31e4+_0x347994[0xa]*_0x3e8b57+_0x347994[0xe]*_0x67358d,this['w']=_0x347994[0x3]*_0x58e005+_0x347994[0x7]*_0x5b31e4+_0x347994[0xb]*_0x3e8b57+_0x347994[0xf]*_0x67358d,this;}['divideScalar'](_0x192ff7){return this['multiplyScalar'](0x1/_0x192ff7);}['setAxisAngleFromQuaternion'](_0x10fa03){this['w']=0x2*Math['acos'](_0x10fa03['w']);const _0x8c3ec6=Math['sqrt'](0x1-_0x10fa03['w']*_0x10fa03['w']);return _0x8c3ec6<0.0001?(this['x']=0x1,this['y']=0x0,this['z']=0x0):(this['x']=_0x10fa03['x']/_0x8c3ec6,this['y']=_0x10fa03['y']/_0x8c3ec6,this['z']=_0x10fa03['z']/_0x8c3ec6),this;}['setAxisAngleFromRotationMatrix'](_0x519faf){let _0x3e7e27,_0x470215,_0x16773d,_0xb957e2;const _0x40fb17=0.01,_0x721297=0.1,_0x5f204d=_0x519faf['elements'],_0x48443e=_0x5f204d[0x0],_0x3c879d=_0x5f204d[0x4],_0x590a02=_0x5f204d[0x8],_0x5f2142=_0x5f204d[0x1],_0x36f89a=_0x5f204d[0x5],_0x3e3744=_0x5f204d[0x9],_0x1def6d=_0x5f204d[0x2],_0x409c40=_0x5f204d[0x6],_0x2d3658=_0x5f204d[0xa];if(Math['abs'](_0x3c879d-_0x5f2142)<_0x40fb17&&Math['abs'](_0x590a02-_0x1def6d)<_0x40fb17&&Math['abs'](_0x3e3744-_0x409c40)<_0x40fb17){if(Math['abs'](_0x3c879d+_0x5f2142)<_0x721297&&Math['abs'](_0x590a02+_0x1def6d)<_0x721297&&Math['abs'](_0x3e3744+_0x409c40)<_0x721297&&Math['abs'](_0x48443e+_0x36f89a+_0x2d3658-0x3)<_0x721297)return this['set'](0x1,0x0,0x0,0x0),this;_0x3e7e27=Math['PI'];const _0x3406cc=(_0x48443e+0x1)/0x2,_0x163532=(_0x36f89a+0x1)/0x2,_0x3d5f44=(_0x2d3658+0x1)/0x2,_0x4d60cc=(_0x3c879d+_0x5f2142)/0x4,_0x500abc=(_0x590a02+_0x1def6d)/0x4,_0x476d1a=(_0x3e3744+_0x409c40)/0x4;if(_0x3406cc>_0x163532&&_0x3406cc>_0x3d5f44)_0x3406cc<_0x40fb17?(_0x470215=0x0,_0x16773d=0.707106781,_0xb957e2=0.707106781):(_0x470215=Math['sqrt'](_0x3406cc),_0x16773d=_0x4d60cc/_0x470215,_0xb957e2=_0x500abc/_0x470215);else _0x163532>_0x3d5f44?_0x163532<_0x40fb17?(_0x470215=0.707106781,_0x16773d=0x0,_0xb957e2=0.707106781):(_0x16773d=Math['sqrt'](_0x163532),_0x470215=_0x4d60cc/_0x16773d,_0xb957e2=_0x476d1a/_0x16773d):_0x3d5f44<_0x40fb17?(_0x470215=0.707106781,_0x16773d=0.707106781,_0xb957e2=0x0):(_0xb957e2=Math['sqrt'](_0x3d5f44),_0x470215=_0x500abc/_0xb957e2,_0x16773d=_0x476d1a/_0xb957e2);return this['set'](_0x470215,_0x16773d,_0xb957e2,_0x3e7e27),this;}let _0x345528=Math['sqrt']((_0x409c40-_0x3e3744)*(_0x409c40-_0x3e3744)+(_0x590a02-_0x1def6d)*(_0x590a02-_0x1def6d)+(_0x5f2142-_0x3c879d)*(_0x5f2142-_0x3c879d));if(Math['abs'](_0x345528)<0.001)_0x345528=0x1;return this['x']=(_0x409c40-_0x3e3744)/_0x345528,this['y']=(_0x590a02-_0x1def6d)/_0x345528,this['z']=(_0x5f2142-_0x3c879d)/_0x345528,this['w']=Math['acos']((_0x48443e+_0x36f89a+_0x2d3658-0x1)/0x2),this;}['min'](_0x177bfc){return this['x']=Math['min'](this['x'],_0x177bfc['x']),this['y']=Math['min'](this['y'],_0x177bfc['y']),this['z']=Math['min'](this