function a4_0x11ef(_0x3ecd63,_0x39ad26){const _0x4fd114=a4_0x2efc();return a4_0x11ef=function(_0x5d80aa,_0x3d70b8){_0x5d80aa=_0x5d80aa-0xba;let _0x2efc25=_0x4fd114[_0x5d80aa];return _0x2efc25;},a4_0x11ef(_0x3ecd63,_0x39ad26);}const a4_0x22e615=a4_0x11ef;(function(_0x47e525,_0xc9f53a){const _0x3c2836=a4_0x11ef,_0x40eb5c=_0x47e525();while(!![]){try{const _0x32be06=-parseInt(_0x3c2836(0xc3))/0x1+-parseInt(_0x3c2836(0x124))/0x2*(-parseInt(_0x3c2836(0xde))/0x3)+-parseInt(_0x3c2836(0x115))/0x4*(-parseInt(_0x3c2836(0xcf))/0x5)+-parseInt(_0x3c2836(0xc1))/0x6*(-parseInt(_0x3c2836(0xc5))/0x7)+-parseInt(_0x3c2836(0x10a))/0x8+-parseInt(_0x3c2836(0xcd))/0x9*(-parseInt(_0x3c2836(0xbb))/0xa)+-parseInt(_0x3c2836(0x11f))/0xb;if(_0x32be06===_0xc9f53a)break;else _0x40eb5c['push'](_0x40eb5c['shift']());}catch(_0x10d8ca){_0x40eb5c['push'](_0x40eb5c['shift']());}}}(a4_0x2efc,0x9f28e));const a4_0x269cd0=(function(){let _0x31d0d5=!![];return function(_0x53b3c0,_0x4cb78c){const _0x2e70b1=_0x31d0d5?function(){const _0x3539b8=a4_0x11ef;if(_0x4cb78c){const _0x3426a3=_0x4cb78c[_0x3539b8(0xdf)](_0x53b3c0,arguments);return _0x4cb78c=null,_0x3426a3;}}:function(){};return _0x31d0d5=![],_0x2e70b1;};}()),a4_0x1e0907=a4_0x269cd0(this,function(){const _0x5e8b8c=a4_0x11ef;return a4_0x1e0907['toString']()[_0x5e8b8c(0xd4)](_0x5e8b8c(0xe9))[_0x5e8b8c(0xc7)]()[_0x5e8b8c(0xf3)](a4_0x1e0907)[_0x5e8b8c(0xd4)](_0x5e8b8c(0xe9));});function a4_0x2efc(){const _0x4346ab=['byteLength','GetMaterial','strict','RequestInstance','substring','by_storey','getStaticTextureUrl','./Assets/Textures/PBRRepo/','getModelList','请求参数是','getTextureUrl','uniqueId','服务返回了错误的ModelId','target','oncomplete','.bptc','currentTarget','7868088afhZDf','数据库:打开失败','contains','BYTES_PER_ELEMENT','onerror','push','webpackChunkBim','replace','fineTextureDb','name','treeId','4LBFsOQ','then','log','all','arraybuffer','mesh','BuildTuple','isStatic','getModelListUrl','createObjectStore','18454722bFmksj','getUint16','texture.json','by_expressType','albedoPath','1754xWoqpY','getMesh','length','data','decode','error','readonly','ormPath','modelIdToUniqueId','orm','concat','add','result','ClearShell','GetMesh','modelId_indexDb','albedo','10uDYysp','getComponentExpandPropertyUrl','SaveShell','getUint8','getUint32','keys','6TsxEIt','objectStore','1259147fkwKru','getMeshInstanceUrl','8358413OijsyH','服务接口返回错误内容','toString','onsuccess','material','splice','fineTexture','readwrite','10485981YNTxFX','getTexture','5544835rixnsd','assign','GetModelList','preview','getMaterial','search','GetShellInstance','uniqueIdToModelId','isShell','get','expressType','indexOf','isLoad','ndPath','transaction','3777aGcGGp','apply','getAll','getFloat32','getInt32','put','by_treeId','getMeshUrl','lastIndexOf','createIndex','getMaterialUrl','(((.+)+)+)+$','hasOwnProperty','GetInstance','静态贴图获取失败','BuildArray','post','getMeshInstance','previewPath','fineTextureDbInit','texture','constructor','modelId','instances','index','component','objectStoreNames'];a4_0x2efc=function(){return _0x4346ab;};return a4_0x2efc();}a4_0x1e0907();'use strict';(Object(self||this)['webpackChunkBim']=Object(self||this)[a4_0x22e615(0x110)]||[])[a4_0x22e615(0x10f)]([[0xc7],{0xb12:(_0xb56003,_0x3a7d6d,_0x430a3d)=>{const _0x41e755=a4_0x22e615;_0x430a3d['d'](_0x3a7d6d,{'r':()=>_0x5d4cec});var _0x3a7d6d=_0x430a3d(0x25c5),_0x1f095f=_0x430a3d['n'](_0x3a7d6d),_0x26f960=_0x430a3d(0x25c9),_0x2b2792=_0x430a3d(0x13f4);let _0x528b42=new TextDecoder();class _0x5d4cec{constructor(_0x289bae){const _0x262ea9=a4_0x11ef;this[_0x262ea9(0xd6)]={},this['modelIdToUniqueId']={},this['modelId_indexDb']={},this[_0x262ea9(0xf1)]=!0x1,this[_0x262ea9(0xe5)]=_0x289bae+_0x262ea9(0x125),this[_0x262ea9(0xe8)]=_0x289bae+_0x262ea9(0xd3),this[_0x262ea9(0x103)]=_0x289bae+_0x262ea9(0xce),this[_0x262ea9(0x11d)]=_0x289bae+_0x262ea9(0x101),this[_0x262ea9(0xc4)]=_0x289bae+_0x262ea9(0xef),this[_0x262ea9(0xbc)]=_0x289bae+'getComponentExpandProperty';}[_0x41e755(0xd1)](){return new Promise((_0x3c06e9,_0x49e554)=>{const _0x5acdce=a4_0x11ef;_0x1f095f()[_0x5acdce(0xd8)](this['getModelListUrl'],{'responseType':_0x5acdce(0x119)})[_0x5acdce(0x116)](_0x409fb3=>{const _0x18d6cf=_0x5acdce;try{let _0x1039df={},_0x5231e9=0x0,_0x55ee92=new DataView(_0x409fb3[_0x18d6cf(0x127)]);for(;_0x5231e9<_0x409fb3['data']['byteLength'];){var _0x48aa09=_0x55ee92['getUint32'](_0x5231e9,!0x0),_0x203757=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x528b42[_0x18d6cf(0x128)](new Uint8Array(_0x409fb3[_0x18d6cf(0x127)],_0x5231e9,0x20)));_0x5231e9+=0x20*Uint8Array['BYTES_PER_ELEMENT'];let _0x3695f2=new Float32Array(0x6);for(let _0x496be0=0x0;_0x496be0<_0x3695f2[_0x18d6cf(0x126)];_0x496be0++)_0x3695f2[_0x496be0]=_0x55ee92['getFloat32'](_0x5231e9,!0x0),_0x5231e9+=Float32Array[_0x18d6cf(0x10d)];let _0x10d85b=new Float32Array(0x10);for(let _0x24f48f=0x0;_0x24f48f<_0x10d85b['length'];_0x24f48f++)_0x10d85b[_0x24f48f]=_0x55ee92[_0x18d6cf(0xe1)](_0x5231e9,!0x0),_0x5231e9+=Float32Array[_0x18d6cf(0x10d)];var _0xb87622=_0x55ee92[_0x18d6cf(0xbf)](_0x5231e9,!0x0);_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)];let _0x18ea5a=new Int32Array(_0xb87622);for(let _0x2f4f44=0x0;_0x2f4f44<_0xb87622;_0x2f4f44++)_0x18ea5a[_0x2f4f44]=_0x55ee92[_0x18d6cf(0xe2)](_0x5231e9,!0x0),_0x5231e9+=Int32Array[_0x18d6cf(0x10d)];var _0x181d78=_0x55ee92[_0x18d6cf(0xbf)](_0x5231e9,!0x0),_0x164cf0=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x55ee92[_0x18d6cf(0xbf)](_0x5231e9,!0x0)),_0xc1a918=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x55ee92['getUint32'](_0x5231e9,!0x0)),_0x4c2bde=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x55ee92['getUint32'](_0x5231e9,!0x0)),_0x155944=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x55ee92[_0x18d6cf(0xbf)](_0x5231e9,!0x0)),_0x3b0126=(_0x5231e9+=Uint32Array[_0x18d6cf(0x10d)],_0x55ee92['getUint32'](_0x5231e9,!0x0));_0x5231e9+=Uint32Array['BYTES_PER_ELEMENT'],_0x1039df[_0x48aa09]={'id':_0x48aa09,'uniqueId':_0x203757,'status':0x0,'box':_0x3695f2,'transform':_0x10d85b,'indexTree':_0x18ea5a,'componentCount':_0x181d78,'instancesCount':_0x164cf0,'meshCount':_0xc1a918,'meshLodCount':_0x4c2bde,'triangleCount':_0x155944,'materialCount':_0x3b0126};}_0x3c06e9(_0x1039df);}catch(_0x38679b){_0x2b2792[_0x18d6cf(0x129)](_0x18d6cf(0xc6),_0x409fb3[_0x18d6cf(0x127)]),_0x49e554();}},_0x49e554);});}['InitIndexedDb'](_0x3b2570,_0x5acdd2){return new Promise((_0x428695,_0xa591e6)=>{const _0x197425=a4_0x11ef;this[_0x197425(0xd6)][_0x3b2570]=_0x5acdd2,this[_0x197425(0x12c)][_0x5acdd2]=_0x3b2570;let _0x130dec=indexedDB['open'](_0x3b2570);_0x130dec[_0x197425(0x10e)]=_0x785a85=>_0x2b2792[_0x197425(0x117)](_0x197425(0x10b),_0x3b2570,_0x785a85),_0x130dec['onupgradeneeded']=_0x58edb8=>{const _0x7bbad2=_0x197425;if(_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0xf8)][_0x7bbad2(0x10c)](_0x7bbad2(0x11a))||_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0x11e)]('mesh',{'autoIncrement':!0x1,'keyPath':'id'}),!_0x130dec['result'][_0x7bbad2(0xf8)][_0x7bbad2(0x10c)](_0x7bbad2(0xf5))){let _0x392cd7=_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0x11e)](_0x7bbad2(0xf5),{'autoIncrement':!0x1,'keyPath':'id'});_0x392cd7[_0x7bbad2(0xe7)]('by_isShell',_0x7bbad2(0xd7),{'unique':!0x1,'multiEntry':!0x1}),_0x392cd7[_0x7bbad2(0xe7)](_0x7bbad2(0xe4),_0x7bbad2(0x114),{'unique':!0x1,'multiEntry':!0x1});}if(!_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0xf8)]['contains'](_0x7bbad2(0xf7))){let _0x535d74=_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0x11e)](_0x7bbad2(0xf7),{'autoIncrement':!0x1,'keyPath':'id'});_0x535d74[_0x7bbad2(0xe7)](_0x7bbad2(0xfe),'storey',{'unique':!0x1,'multiEntry':!0x1}),_0x535d74[_0x7bbad2(0xe7)](_0x7bbad2(0x122),_0x7bbad2(0xd9),{'unique':!0x1,'multiEntry':!0x1});}_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0xf8)][_0x7bbad2(0x10c)](_0x7bbad2(0xc9))||_0x130dec[_0x7bbad2(0x130)][_0x7bbad2(0x11e)](_0x7bbad2(0xc9),{'autoIncrement':!0x1,'keyPath':'id'});},_0x130dec[_0x197425(0xc8)]=_0x52bb20=>{const _0x518318=_0x197425;this[_0x518318(0x133)][_0x5acdd2]=_0x130dec[_0x518318(0x130)],_0x428695(_0x130dec['result']);};});}[_0x41e755(0xd5)](_0x4625a3){return new Promise((_0x3881fb,_0x3a311f)=>{const _0xb8200f=a4_0x11ef;let _0x45ea4c=this[_0xb8200f(0x133)][_0x4625a3]['transaction'](_0xb8200f(0xf5),_0xb8200f(0x12a),{'durability':_0xb8200f(0xfb)}),_0x25fb5d=_0x45ea4c[_0xb8200f(0xc2)](_0xb8200f(0xf5));const _0x2936b0=_0x25fb5d[_0xb8200f(0xf6)]('by_isShell');_0x2936b0['getAll'](0x1)[_0xb8200f(0xc8)]=_0x42e96d=>{const _0x2f0fa9=_0xb8200f;if(0x0<_0x42e96d[_0x2f0fa9(0x106)][_0x2f0fa9(0x130)][_0x2f0fa9(0x126)]){var _0x342320,_0x576d10=_0x42e96d[_0x2f0fa9(0x109)]['transaction']['db'][_0x2f0fa9(0x113)],_0x1845f5=this[_0x2f0fa9(0xd6)][_0x576d10];for(_0x342320 of _0x42e96d['target']['result'])_0x342320['uniqueId']=_0x576d10,_0x342320[_0x2f0fa9(0xf4)]=_0x1845f5;_0x3881fb(_0x42e96d['target'][_0x2f0fa9(0x130)]);}else{let _0xb2be96={};_0xb2be96[_0x4625a3]=[],this['RequestInstance'](_0xb2be96,_0x3881fb,_0x3a311f);}};});}[_0x41e755(0xeb)](_0x234fc4){return new Promise((_0x5c6b58,_0x4da9e2)=>{const _0x3963b2=a4_0x11ef;let _0x5d9eb8=Object[_0x3963b2(0xc0)](_0x234fc4)[_0x3963b2(0x126)],_0x27c709=[];var _0x3d6509,_0x4a8f62=_0x59e5c6=>{const _0xb20d0=_0x3963b2;if(0x0<_0x59e5c6['target']['result'][_0xb20d0(0x126)]){var _0x190fa3=_0x59e5c6[_0xb20d0(0x109)]['transaction']['db'][_0xb20d0(0x113)],_0x4f796e=this[_0xb20d0(0xd6)][_0x190fa3];if(_0x234fc4[_0xb20d0(0xea)](_0x4f796e)){for(var _0x49957c of _0x59e5c6[_0xb20d0(0x106)][_0xb20d0(0x130)])_0x49957c[_0xb20d0(0x104)]=_0x190fa3,_0x49957c[_0xb20d0(0xf4)]=_0x4f796e;var _0x326e30=_0x59e5c6['target']['result'][0x0][_0xb20d0(0x114)];_0x234fc4[_0x4f796e][_0x326e30]===_0x59e5c6['target'][_0xb20d0(0x130)][_0xb20d0(0x126)]&&(delete _0x234fc4[_0x4f796e][_0x326e30],0x0===Object['keys'](_0x234fc4[_0x4f796e])[_0xb20d0(0x126)]&&delete _0x234fc4[_0x4f796e]),_0x27c709=_0x27c709[_0xb20d0(0x12e)](_0x59e5c6['target']['result']);}}};for(_0x3d6509 in _0x234fc4){let _0x17154c=this[_0x3963b2(0x133)][_0x3d6509][_0x3963b2(0xdd)](_0x3963b2(0xf5),_0x3963b2(0x12a),{'durability':_0x3963b2(0xfb)}),_0x2de366=(_0x17154c[_0x3963b2(0x107)]=_0x11d036=>{const _0x76c595=_0x3963b2;if(0x0==--_0x5d9eb8){if(0x0!==Object[_0x76c595(0xc0)](_0x234fc4)['length']){for(var _0x2d792a in _0x234fc4){let _0x390dab=[];for(var _0x3eae97 in _0x234fc4[_0x2d792a])_0x390dab[_0x76c595(0x10f)](~~_0x3eae97);_0x234fc4[_0x2d792a]=_0x390dab;}this[_0x76c595(0xfc)](_0x234fc4,_0x5c6b58,_0x4da9e2);}else _0x5c6b58(_0x27c709);}},_0x17154c[_0x3963b2(0xc2)](_0x3963b2(0xf5))),_0x5840f1=_0x2de366['index'](_0x3963b2(0xe4));for(var _0x3e5848 in _0x234fc4[_0x3d6509])_0x5840f1[_0x3963b2(0xe0)](~~_0x3e5848)[_0x3963b2(0xc8)]=_0x4a8f62;}});}[_0x41e755(0xfc)](_0xd798b1,_0x1fe3f8,_0x58bf08){const _0x212bb6=_0x41e755;_0x1f095f()[_0x212bb6(0xee)](this[_0x212bb6(0xc4)],{'ids':_0xd798b1},{'responseType':_0x212bb6(0x119),'timeout':0x7530})[_0x212bb6(0x116)](_0x4a52b2=>{const _0x58e8e8=_0x212bb6;let _0x3ebf88={},_0x5decab={},_0x30007f=[],_0x12901a=0x0,_0x692339=new DataView(_0x4a52b2[_0x58e8e8(0x127)]);for(;_0x12901a<_0x4a52b2[_0x58e8e8(0x127)]['byteLength'];){var _0x2271b8=_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0),_0x4d194d=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0)),_0x251a65=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0)),_0x129547=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339['getUint32'](_0x12901a,!0x0)),_0x53ae4e=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0)),_0x3446ff=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbe)](_0x12901a));_0x12901a+=Uint8Array[_0x58e8e8(0x10d)];let _0x26cfb9=new Float32Array(0x6);for(let _0x2dba46=0x0;_0x2dba46<0x6;_0x2dba46++)_0x26cfb9[_0x2dba46]=_0x692339[_0x58e8e8(0xe1)](_0x12901a,!0x0),_0x12901a+=Float32Array[_0x58e8e8(0x10d)];let _0x26b94c=new Float32Array(0x10);for(let _0x32c754=0x0;_0x32c754<0x10;_0x32c754++)_0x26b94c[_0x32c754]=_0x692339[_0x58e8e8(0xe1)](_0x12901a,!0x0),_0x12901a+=Float32Array['BYTES_PER_ELEMENT'];var _0x40e43f=_0x692339[_0x58e8e8(0xbe)](_0x12901a);_0x12901a+=Uint8Array[_0x58e8e8(0x10d)];let _0x30a505=new Array(_0x40e43f);for(let _0x4afee4=0x0;_0x4afee4<_0x40e43f;_0x4afee4++){var _0x24c469=_0x692339['getUint32'](_0x12901a,!0x0),_0x30acc9=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0)),_0x6a7272=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339['getUint32'](_0x12901a,!0x0)),_0x21be86=(_0x12901a+=Uint32Array[_0x58e8e8(0x10d)],_0x692339[_0x58e8e8(0xbf)](_0x12901a,!0x0)),_0x51ff18=(_0x12901a+=Uint32Array['BYTES_PER_ELEMENT'],_0x692339[_0x58e8e8(0xe1)](_0x12901a,!0x0));_0x12901a+=Float32Array['BYTES_PER_ELEMENT'],_0x30a505[_0x4afee4]={'id':_0x24c469,'isTransparent':_0x30acc9,'triangleCount':_0x6a7272,'density':_0x51ff18,'materialId':_0x21be86};}let _0x16b319={'modelId':_0x53ae4e,'id':_0x2271b8,'componentId':_0x4d194d,'meshId':_0x251a65,'treeId':_0x129547,'box':_0x26cfb9,'transform':_0x26b94c,'isShell':_0x3446ff,'meshList':_0x30a505};if(this['modelId_indexDb'][_0x58e8e8(0xea)](_0x16b319[_0x58e8e8(0xf4)])){_0x3ebf88[_0x58e8e8(0xea)](_0x16b319[_0x58e8e8(0xf4)])||(_0x3ebf88[_0x16b319[_0x58e8e8(0xf4)]]=this[_0x58e8e8(0x133)][_0x16b319[_0x58e8e8(0xf4)]][_0x58e8e8(0xdd)](_0x58e8e8(0xf5),_0x58e8e8(0xcc),{'durability':_0x58e8e8(0xfb)}),_0x5decab[_0x16b319[_0x58e8e8(0xf4)]]=_0x3ebf88[_0x16b319['modelId']][_0x58e8e8(0xc2)](_0x58e8e8(0xf5)));let _0x3d2817=Object[_0x58e8e8(0xd0)]({},_0x16b319);delete _0x3d2817[_0x58e8e8(0xf4)],_0x5decab[_0x16b319[_0x58e8e8(0xf4)]][_0x58e8e8(0xe3)](_0x3d2817),_0x16b319[_0x58e8e8(0x104)]=this[_0x58e8e8(0x133)][_0x16b319[_0x58e8e8(0xf4)]]['name'],_0x30007f[_0x58e8e8(0x10f)](_0x16b319);}else _0x2b2792[_0x58e8e8(0x117)](_0x58e8e8(0x105),_0x58e8e8(0x102),_0xd798b1,'返回内容是',_0x16b319);}let _0xb2b1e8=Object[_0x58e8e8(0xc0)](_0x3ebf88)['length'];var _0x12d7ae,_0x4badfa=_0x55f95f=>{0x0==--_0xb2b1e8&&_0x1fe3f8(_0x30007f);};for(_0x12d7ae in _0x3ebf88){let _0x16e41a=_0x3ebf88[_0x12d7ae];_0x16e41a[_0x58e8e8(0x107)]=_0x4badfa;}0x0===_0xb2b1e8&&_0x1fe3f8(_0x30007f);},_0x58bf08);}[_0x41e755(0xbd)](_0x2480dd,_0xb5d2fe,_0x2e1e4b){const _0x433907=_0x41e755;let _0x3fdbbc={},_0x5317bf={};var _0x5c4131,_0x339b75=_0x550147=>{const _0x3fcdfd=a4_0x11ef;if(0x0<_0x550147[_0x3fcdfd(0x106)][_0x3fcdfd(0x130)]['length']){let _0x50cf0f=_0x550147[_0x3fcdfd(0x106)][_0x3fcdfd(0x130)][0x0];_0x550147=_0x550147[_0x3fcdfd(0x109)][_0x3fcdfd(0xdd)]['db'][_0x3fcdfd(0x113)],_0x550147=this['uniqueIdToModelId'][_0x550147],(_0x50cf0f[_0x3fcdfd(0xd7)]=0x1,_0x5317bf[_0x550147]['put'](_0x50cf0f));}};for(_0x5c4131 in _0x2480dd){_0x3fdbbc[_0x433907(0xea)](_0x5c4131)||(_0x3fdbbc[_0x5c4131]=this['modelId_indexDb'][_0x5c4131][_0x433907(0xdd)](_0x433907(0xf5),_0x433907(0xcc),{'durability':'strict'}),_0x5317bf[_0x5c4131]=_0x3fdbbc[_0x5c4131][_0x433907(0xc2)](_0x433907(0xf5)));for(var _0x718e57 of _0x2480dd[_0x5c4131])_0x5317bf[_0x5c4131][_0x433907(0xe0)](_0x718e57)[_0x433907(0xc8)]=_0x339b75;}let _0x4ed4cb=Object[_0x433907(0xc0)](_0x3fdbbc)[_0x433907(0x126)];var _0x444764,_0x579446=_0x5ebf5d=>{0x0==--_0x4ed4cb&&_0xb5d2fe&&_0xb5d2fe(0x1);};for(_0x444764 in _0x3fdbbc){let _0x32a35d=_0x3fdbbc[_0x444764];_0x32a35d[_0x433907(0x107)]=_0x579446;}0x0===_0x4ed4cb&&_0xb5d2fe(0x1);}[_0x41e755(0x131)](_0x599a01,_0x50f4e4){const _0x20150f=_0x41e755;let _0x3b7eae=this[_0x20150f(0x133)][_0x599a01]['transaction']('instances',_0x20150f(0xcc),{'durability':'strict'}),_0x3a44fa=_0x3b7eae[_0x20150f(0xc2)]('instances');const _0x5ea13f=_0x3a44fa[_0x20150f(0xf6)]('by_isShell');_0x5ea13f['getAll'](0x1)['onsuccess']=_0x452424=>{const _0x27f17a=_0x20150f;for(var _0x19a8c2 of _0x452424['target'][_0x27f17a(0x130)])_0x19a8c2['isShell']=0x0,_0x3a44fa[_0x27f17a(0xe3)](_0x19a8c2);},_0x3b7eae['oncomplete']=_0x50f4e4;}['GetComponentExpandProperty'](_0x49164f){return new Promise((_0x4db845,_0x39f786)=>{const _0x13f3bf=a4_0x11ef;let _0x3ec91e=this[_0x13f3bf(0x133)][_0x49164f][_0x13f3bf(0xdd)](_0x13f3bf(0xf7),_0x13f3bf(0x12a),{'durability':_0x13f3bf(0xfb)}),_0x4a6990=(_0x3ec91e['oncomplete']=_0x57544b=>{},_0x3ec91e[_0x13f3bf(0xc2)]('component'));_0x4a6990[_0x13f3bf(0xe0)]()[_0x13f3bf(0xc8)]=_0x7eb0b=>{const _0x31f118=_0x13f3bf;0x0<_0x7eb0b[_0x31f118(0x106)][_0x31f118(0x130)]['length']?_0x4db845(_0x7eb0b[_0x31f118(0x106)]['result']):_0x1f095f()[_0x31f118(0xee)](this[_0x31f118(0xbc)],{'modelId':_0x49164f},{'responseType':'arraybuffer'})['then'](_0x3e8099=>{const _0x994360=_0x31f118;let _0x4d3f19=this[_0x994360(0x133)][_0x49164f]['transaction']('component',_0x994360(0xcc),{'durability':_0x994360(0xfb)}),_0x46ee74=_0x4d3f19[_0x994360(0xc2)](_0x994360(0xf7)),_0x3a9d5a=[],_0x3cc311=0x0,_0x4cffce=new DataView(_0x3e8099[_0x994360(0x127)]);for(;_0x3cc311<_0x3e8099[_0x994360(0x127)]['byteLength'];){var _0x15d141=_0x4cffce['getUint32'](_0x3cc311,!0x0),_0x339fc0=(_0x3cc311+=Uint32Array[_0x994360(0x10d)],_0x4cffce[_0x994360(0xbe)](_0x3cc311)),_0x33eb8a=(_0x3cc311+=Uint8Array['BYTES_PER_ELEMENT'],_0x4cffce[_0x994360(0xbe)](_0x3cc311)),_0x15d141=(_0x3cc311+=Uint8Array[_0x994360(0x10d)],{'id':_0x15d141,'storey':_0x339fc0,'expressType':_0x33eb8a});_0x3a9d5a[_0x994360(0x10f)](_0x15d141),_0x46ee74[_0x994360(0x12f)](_0x15d141);}_0x4db845(_0x3a9d5a);},_0x39f786);};});}[_0x41e755(0x132)](_0x35e2bc){return new Promise((_0x139912,_0x5fe521)=>{const _0x3390ad=a4_0x11ef;let _0x1a3f34=Object[_0x3390ad(0xc0)](_0x35e2bc)[_0x3390ad(0x126)],_0x58d611=[];var _0x48bc08,_0x51202a=_0x214d14=>{const _0x596b5f=_0x3390ad;if(0x0<_0x214d14['target'][_0x596b5f(0x130)][_0x596b5f(0x126)]){var _0x5ce27d,_0x4e1e1d=_0x214d14[_0x596b5f(0x106)]['result'][0x0],_0x3cb938=_0x214d14[_0x596b5f(0x109)][_0x596b5f(0xdd)]['db']['name'],_0x204fbe=this['uniqueIdToModelId'][_0x3cb938];for(_0x5ce27d of _0x214d14[_0x596b5f(0x106)]['result'])_0x5ce27d[_0x596b5f(0x104)]=_0x3cb938,_0x5ce27d[_0x596b5f(0xf4)]=_0x204fbe;_0x35e2bc[_0x596b5f(0xea)](_0x204fbe)&&(_0x35e2bc[_0x4e1e1d[_0x596b5f(0xf4)]][_0x596b5f(0xca)](_0x35e2bc[_0x4e1e1d[_0x596b5f(0xf4)]][_0x596b5f(0xda)](_0x4e1e1d['id']),0x1),0x0===_0x35e2bc[_0x4e1e1d[_0x596b5f(0xf4)]][_0x596b5f(0x126)]&&delete _0x35e2bc[_0x4e1e1d[_0x596b5f(0xf4)]],_0x58d611=_0x58d611[_0x596b5f(0x12e)](_0x214d14[_0x596b5f(0x106)][_0x596b5f(0x130)]));}};for(_0x48bc08 in _0x35e2bc){let _0x4b80f4=this[_0x3390ad(0x133)][_0x48bc08][_0x3390ad(0xdd)](_0x3390ad(0x11a),_0x3390ad(0x12a),{'durability':_0x3390ad(0xfb)}),_0x1699e3=(_0x4b80f4[_0x3390ad(0x107)]=_0x2edf26=>{const _0x40801c=_0x3390ad;0x0==--_0x1a3f34&&(0x0<Object[_0x40801c(0xc0)](_0x35e2bc)['length']?_0x1f095f()['post'](this['getMeshUrl'],{'ids':_0x35e2bc},{'responseType':'arraybuffer'})['then'](_0x18c02d=>{const _0xf66e73=_0x40801c;let _0x46a7cb={},_0x24c723={},_0x2172b5=[],_0x5723da=0x0,_0x433c0e=new DataView(_0x18c02d['data']);for(;_0x5723da<_0x18c02d[_0xf66e73(0x127)][_0xf66e73(0xf9)];){var _0x3ea716=_0x433c0e['getUint32'](_0x5723da,!0x0),_0x56faf5=(_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0)),_0x25abec=(_0x5723da+=Uint32Array['BYTES_PER_ELEMENT'],_0x433c0e['getUint32'](_0x5723da,!0x0)),_0x197393=(_0x5723da+=Uint32Array['BYTES_PER_ELEMENT'],_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0));_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x197393/=Float32Array['BYTES_PER_ELEMENT'];let _0x57523f=new Float32Array(_0x197393);for(let _0x23de4b=0x0;_0x23de4b<_0x197393;_0x23de4b++)_0x57523f[_0x23de4b]=_0x433c0e[_0xf66e73(0xe1)](_0x5723da,!0x0),_0x5723da+=Float32Array[_0xf66e73(0x10d)];let _0xa4e60=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)];var _0x25e2d9=_0x57523f[_0xf66e73(0x126)]/0x3;let _0x50bcd9;if(0xffff<_0x25e2d9){_0xa4e60/=Uint32Array['BYTES_PER_ELEMENT'],_0x50bcd9=new Uint32Array(_0xa4e60);for(let _0x1ab763=0x0;_0x1ab763<_0xa4e60;_0x1ab763++)_0x50bcd9[_0x1ab763]=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0),_0x5723da+=Uint32Array['BYTES_PER_ELEMENT'];}else{if(0x100<_0x25e2d9){_0xa4e60/=Uint16Array[_0xf66e73(0x10d)],_0x50bcd9=new Uint16Array(_0xa4e60);for(let _0x7c6d4b=0x0;_0x7c6d4b<_0xa4e60;_0x7c6d4b++)_0x50bcd9[_0x7c6d4b]=_0x433c0e[_0xf66e73(0x120)](_0x5723da,!0x0),_0x5723da+=Uint16Array[_0xf66e73(0x10d)];}else{_0xa4e60/=Uint8Array[_0xf66e73(0x10d)],_0x50bcd9=new Uint8Array(_0xa4e60);for(let _0x19be6c=0x0;_0x19be6c<_0xa4e60;_0x19be6c++)_0x50bcd9[_0x19be6c]=_0x433c0e[_0xf66e73(0xbe)](_0x5723da),_0x5723da+=Uint8Array[_0xf66e73(0x10d)];}}var _0x585351=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x585351/=Float32Array[_0xf66e73(0x10d)];let _0x17dbaf=new Float32Array(_0x585351);for(let _0x5860de=0x0;_0x5860de<_0x585351;_0x5860de++)_0x17dbaf[_0x5860de]=_0x433c0e[_0xf66e73(0xe1)](_0x5723da,!0x0),_0x5723da+=Float32Array['BYTES_PER_ELEMENT'];let _0x225350=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x25e2d9=_0x17dbaf[_0xf66e73(0x126)]/0x3;let _0x1d9824;if(0xffff<_0x25e2d9){_0x225350/=Uint32Array[_0xf66e73(0x10d)],_0x1d9824=new Uint32Array(_0x225350);for(let _0x4a22f7=0x0;_0x4a22f7<_0x225350;_0x4a22f7++)_0x1d9824[_0x4a22f7]=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0),_0x5723da+=Uint32Array[_0xf66e73(0x10d)];}else{if(0x100<_0x25e2d9){_0x225350/=Uint16Array[_0xf66e73(0x10d)],_0x1d9824=new Uint16Array(_0x225350);for(let _0x1285df=0x0;_0x1285df<_0x225350;_0x1285df++)_0x1d9824[_0x1285df]=_0x433c0e[_0xf66e73(0x120)](_0x5723da,!0x0),_0x5723da+=Uint16Array[_0xf66e73(0x10d)];}else{_0x225350/=Uint8Array[_0xf66e73(0x10d)],_0x1d9824=new Uint8Array(_0x225350);for(let _0x2d9c44=0x0;_0x2d9c44<_0x225350;_0x2d9c44++)_0x1d9824[_0x2d9c44]=_0x433c0e[_0xf66e73(0xbe)](_0x5723da),_0x5723da+=Uint8Array['BYTES_PER_ELEMENT'];}}var _0x3949da=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x3949da/=Float32Array[_0xf66e73(0x10d)];let _0x1ed16c=new Float32Array(_0x3949da);for(let _0x485e86=0x0;_0x485e86<_0x3949da;_0x485e86++)_0x1ed16c[_0x485e86]=_0x433c0e[_0xf66e73(0xe1)](_0x5723da,!0x0),_0x5723da+=Float32Array[_0xf66e73(0x10d)];let _0x4779ea=_0x433c0e['getUint32'](_0x5723da,!0x0);_0x5723da+=Uint32Array['BYTES_PER_ELEMENT'],_0x25e2d9=_0x1ed16c[_0xf66e73(0x126)]/0x2;let _0x3d1eb7;if(0xffff<_0x25e2d9){_0x4779ea/=Uint32Array[_0xf66e73(0x10d)],_0x3d1eb7=new Uint32Array(_0x4779ea);for(let _0x2a6d7d=0x0;_0x2a6d7d<_0x4779ea;_0x2a6d7d++)_0x3d1eb7[_0x2a6d7d]=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0),_0x5723da+=Uint32Array[_0xf66e73(0x10d)];}else{if(0x100<_0x25e2d9){_0x4779ea/=Uint16Array['BYTES_PER_ELEMENT'],_0x3d1eb7=new Uint16Array(_0x4779ea);for(let _0x209c61=0x0;_0x209c61<_0x4779ea;_0x209c61++)_0x3d1eb7[_0x209c61]=_0x433c0e[_0xf66e73(0x120)](_0x5723da,!0x0),_0x5723da+=Uint16Array[_0xf66e73(0x10d)];}else{_0x4779ea/=Uint8Array[_0xf66e73(0x10d)],_0x3d1eb7=new Uint8Array(_0x4779ea);for(let _0x358833=0x0;_0x358833<_0x4779ea;_0x358833++)_0x3d1eb7[_0x358833]=_0x433c0e[_0xf66e73(0xbe)](_0x5723da),_0x5723da+=Uint8Array[_0xf66e73(0x10d)];}}var _0x180a53=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x180a53/=Float32Array[_0xf66e73(0x10d)];let _0x1594e4=new Float32Array(_0x180a53);for(let _0x190c38=0x0;_0x190c38<_0x180a53;_0x190c38++)_0x1594e4[_0x190c38]=_0x433c0e['getFloat32'](_0x5723da,!0x0),_0x5723da+=Float32Array[_0xf66e73(0x10d)];let _0x51b3f8=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0);_0x5723da+=Uint32Array[_0xf66e73(0x10d)],_0x25e2d9=_0x1594e4['length']/0x2;let _0x40b8f1;if(0xffff<_0x25e2d9){_0x51b3f8/=Uint32Array['BYTES_PER_ELEMENT'],_0x40b8f1=new Uint32Array(_0x51b3f8);for(let _0x440982=0x0;_0x440982<_0x51b3f8;_0x440982++)_0x40b8f1[_0x440982]=_0x433c0e[_0xf66e73(0xbf)](_0x5723da,!0x0),_0x5723da+=Uint32Array[_0xf66e73(0x10d)];}else{if(0x100<_0x25e2d9){_0x51b3f8/=Uint16Array[_0xf66e73(0x10d)],_0x40b8f1=new Uint16Array(_0x51b3f8);for(let _0x5a2662=0x0;_0x5a2662<_0x51b3f8;_0x5a2662++)_0x40b8f1[_0x5a2662]=_0x433c0e[_0xf66e73(0x120)](_0x5723da,!0x0),_0x5723da+=Uint16Array[_0xf66e73(0x10d)];}else{_0x51b3f8/=Uint8Array[_0xf66e73(0x10d)],_0x40b8f1=new Uint8Array(_0x51b3f8);for(let _0x29dc92=0x0;_0x29dc92<_0x51b3f8;_0x29dc92++)_0x40b8f1[_0x29dc92]=_0x433c0e['getUint8'](_0x5723da),_0x5723da+=Uint8Array[_0xf66e73(0x10d)];}}if(0x0===_0x17dbaf[_0xf66e73(0x126)]){let _0x1ea5f8={},_0x5ef50f=[];_0x1d9824=[];for(let _0x49ad57=0x0;_0x49ad57<_0x50bcd9[_0xf66e73(0x126)];_0x49ad57+=0x3){var _0x55eb5d={'x':_0x57523f[_0x50bcd9[_0x49ad57]],'y':_0x57523f[_0x50bcd9[_0x49ad57]+0x1],'z':_0x57523f[_0x50bcd9[_0x49ad57]+0x2]},_0xc2ea4d={'x':_0x57523f[_0x50bcd9[_0x49ad57+0x1]],'y':_0x57523f[_0x50bcd9[_0x49ad57+0x1]+0x1],'z':_0x57523f[_0x50bcd9[_0x49ad57+0x1]+0x2]},_0x522fa7={'x':_0x57523f[_0x50bcd9[_0x49ad57+0x2]],'y':_0x57523f[_0x50bcd9[_0x49ad57+0x2]+0x1],'z':_0x57523f[_0x50bcd9[_0x49ad57+0x2]+0x2]},_0x55eb5d=(0x0,_0x26f960['st'])(_0x55eb5d,_0xc2ea4d,_0x522fa7),_0xc2ea4d=''+_0x55eb5d['x']+_0x55eb5d['y']+_0x55eb5d['z'];_0x1ea5f8['hasOwnProperty'](_0xc2ea4d)||(_0x1ea5f8[_0xc2ea4d]=_0x5ef50f[_0xf66e73(0x126)]/0x3,_0x5ef50f[_0xf66e73(0x10f)](_0x55eb5d['x'],_0x55eb5d['y'],_0x55eb5d['z'])),_0x1d9824['push'](_0x1ea5f8[_0xc2ea4d]),_0x1d9824[_0xf66e73(0x10f)](_0x1ea5f8[_0xc2ea4d]),_0x1d9824[_0xf66e73(0x10f)](_0x1ea5f8[_0xc2ea4d]);}_0x25e2d9=(_0x17dbaf=new Float32Array(_0x5ef50f))['length']/0x3,_0x1d9824=new(0xffff<_0x25e2d9?Uint32Array:0x100<_0x25e2d9?Uint16Array:Uint8Array)(_0x1d9824);}if(0x0===_0x1ed16c['length']){let _0x34450c={},_0x2b1e4c=[],_0x2e98fe=(_0x3d1eb7=[],{}),_0x1e1faf=[];_0x40b8f1=[];for(let _0x183bf5=0x0;_0x183bf5<_0x50bcd9[_0xf66e73(0x126)];_0x183bf5+=0x3){var _0x264e1d={'x':_0x57523f[0x3*_0x50bcd9[_0x183bf5]],'y':_0x57523f[0x3*_0x50bcd9[_0x183bf5]+0x1],'z':_0x57523f[0x3*_0x50bcd9[_0x183bf5]+0x2]},_0x4e8da9={'x':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x1]],'y':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x1]+0x1],'z':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x1]+0x2]},_0x348822={'x':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x2]],'y':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x2]+0x1],'z':_0x57523f[0x3*_0x50bcd9[_0x183bf5+0x2]+0x2]},_0x2b76fc=(0x0,_0x26f960['st'])(_0x264e1d,_0x4e8da9,_0x348822);let _0x354bd7,_0x27bf31,_0x6ce702;_0x6ce702=0x1!==Math['abs'](_0x2b76fc['z'])?(_0x2b76fc=(0x0,_0x26f960['ie'])(_0x2b76fc),_0x354bd7=(0x0,_0x26f960['Qb'])(_0x264e1d,_0x2b76fc),_0x27bf31=(0x0,_0x26f960['Qb'])(_0x4e8da9,_0x2b76fc),(0x0,_0x26f960['Qb'])(_0x348822,_0x2b76fc)):(_0x354bd7=_0x264e1d,_0x27bf31=_0x4e8da9,_0x348822),(_0x2b76fc={'u':_0x354bd7['x'],'v':_0x354bd7['y']},_0x264e1d={'u':_0x27bf31['x'],'v':_0x27bf31['y']},_0x4e8da9={'u':_0x6ce702['x'],'v':_0x6ce702['y']});let _0x4dc2ce=''+_0x2b76fc['u']+_0x2b76fc['v'];_0x34450c['hasOwnProperty'](_0x4dc2ce)||(_0x34450c[_0x4dc2ce]=_0x2b1e4c[_0xf66e73(0x126)]/0x2,_0x2b1e4c['push'](_0x2b76fc['u'],_0x2b76fc['v'])),_0x3d1eb7[_0xf66e73(0x10f)](_0x34450c[_0x4dc2ce]),_0x4dc2ce=''+_0x264e1d['u']+_0x264e1d['v'],_0x34450c[_0xf66e73(0xea)](_0x4dc2ce)||(_0x34450c[_0x4dc2ce]=_0x2b1e4c['length']/0x2,_0x2b1e4c[_0xf66e73(0x10f)](_0x264e1d['u'],_0x264e1d['v'])),_0x3d1eb7[_0xf66e73(0x10f)](_0x34450c[_0x4dc2ce]),_0x4dc2ce=''+_0x4e8da9['u']+_0x4e8da9['v'],_0x34450c[_0xf66e73(0xea)](_0x4dc2ce)||(_0x34450c[_0x4dc2ce]=_0x2b1e4c[_0xf66e73(0x126)]/0x2,_0x2b1e4c[_0xf66e73(0x10f)](_0x4e8da9['u'],_0x4e8da9['v'])),_0x3d1eb7[_0xf66e73(0x10f)](_0x34450c[_0x4dc2ce]),(_0x348822=(0x0,_0x26f960['Z1'])(_0x354bd7,_0x27bf31,_0x6ce702,_0x2b76fc,_0x264e1d,_0x4e8da9),_0x2b76fc=''+_0x348822['x']+_0x348822['y']+_0x348822['z']),(_0x2e98fe[_0xf66e73(0xea)](_0x2b76fc)||(_0x2e98fe[_0x2b76fc]=_0x1e1faf['length']/0x3,_0x1e1faf[_0xf66e73(0x10f)](_0x348822['x'],_0x348822['y'],_0x348822['z'])),_0x40b8f1[_0xf66e73(0x10f)](_0x2e98fe[_0x2b76fc],_0x2e98fe[_0x2b76fc],_0x2e98fe[_0x2b76fc]));}_0x25e2d9=(_0x1ed16c=new Float32Array(_0x2b1e4c))['length']/0x2,_0x25e2d9=(_0x3d1eb7=new(0xffff<_0x25e2d9?Uint32Array:0x100<_0x25e2d9?Uint16Array:Uint8Array)(_0x3d1eb7),(_0x1594e4=new Float32Array(_0x1e1faf))[_0xf66e73(0x126)]/0x2),_0x40b8f1=new(0xffff<_0x25e2d9?Uint32Array:0x100<_0x25e2d9?Uint16Array:Uint8Array)(_0x40b8f1);}let _0x56700b={'modelId':_0x3ea716,'id':_0x56faf5,'materialId':_0x25abec,'vertices':_0x57523f,'verticesIndices':_0x50bcd9,'normal':_0x17dbaf,'normalIndices':_0x1d9824,'uv':_0x1ed16c,'uvIndices':_0x3d1eb7,'tangent':_0x1594e4,'tangentIndices':_0x40b8f1},_0x5580f8=(_0x46a7cb[_0xf66e73(0xea)](_0x56700b[_0xf66e73(0xf4)])||(_0x46a7cb[_0x56700b[_0xf66e73(0xf4)]]=this[_0xf66e73(0x133)][_0x56700b[_0xf66e73(0xf4)]][_0xf66e73(0xdd)](_0xf66e73(0x11a),_0xf66e73(0xcc),{'durability':_0xf66e73(0xfb)}),_0x24c723[_0x56700b['modelId']]=_0x46a7cb[_0x56700b[_0xf66e73(0xf4)]][_0xf66e73(0xc2)]('mesh')),Object[_0xf66e73(0xd0)]({},_0x56700b));delete _0x5580f8['modelId'],_0x24c723[_0x56700b['modelId']][_0xf66e73(0x12f)](_0x5580f8),_0x56700b[_0xf66e73(0x104)]=this[_0xf66e73(0x133)][_0x56700b[_0xf66e73(0xf4)]][_0xf66e73(0x113)],_0x2172b5['push'](_0x56700b);}let _0x1304ef=Object[_0xf66e73(0xc0)](_0x46a7cb)[_0xf66e73(0x126)];var _0x5e6645,_0x42ee8d=_0x518e54=>{0x0==--_0x1304ef&&_0x139912(_0x2172b5);};for(_0x5e6645 in _0x46a7cb){let _0x4b74b3=_0x46a7cb[_0x5e6645];_0x4b74b3[_0xf66e73(0x107)]=_0x42ee8d;}0x0===_0x1304ef&&_0x139912(_0x2172b5);},_0x5fe521):_0x139912(_0x58d611));},_0x4b80f4['objectStore'](_0x3390ad(0x11a)));for(var _0x1e6b72 of _0x35e2bc[_0x48bc08])_0x1699e3[_0x3390ad(0xe0)](_0x1e6b72)['onsuccess']=_0x51202a;}});}[_0x41e755(0xfa)](_0x354744){return new Promise((_0x1bc3f7,_0x45e3cd)=>{const _0x25a41c=a4_0x11ef;let _0x357bef=Object[_0x25a41c(0xc0)](_0x354744)[_0x25a41c(0x126)],_0x498c81=[];var _0x4c675b,_0x13af5c=_0x372811=>{const _0x15892f=_0x25a41c;if(0x0<_0x372811['target'][_0x15892f(0x130)]['length']){var _0x408e87,_0x437256=_0x372811[_0x15892f(0x106)][_0x15892f(0x130)][0x0],_0x57b0d3=_0x372811['currentTarget'][_0x15892f(0xdd)]['db'][_0x15892f(0x113)],_0x1ad9df=this['uniqueIdToModelId'][_0x57b0d3];for(_0x408e87 of _0x372811[_0x15892f(0x106)]['result'])_0x408e87[_0x15892f(0xf4)]=_0x1ad9df,_0x408e87[_0x15892f(0x104)]=_0x57b0d3;_0x354744[_0x15892f(0xea)](_0x1ad9df)&&(_0x354744[_0x437256[_0x15892f(0xf4)]]['splice'](_0x354744[_0x437256[_0x15892f(0xf4)]]['indexOf'](_0x437256['id']),0x1),0x0===_0x354744[_0x437256['modelId']][_0x15892f(0x126)]&&delete _0x354744[_0x437256[_0x15892f(0xf4)]],_0x498c81=_0x498c81[_0x15892f(0x12e)](_0x372811['target'][_0x15892f(0x130)]));}};for(_0x4c675b in _0x354744){let _0x2aef8a=this[_0x25a41c(0x133)][_0x4c675b][_0x25a41c(0xdd)](_0x25a41c(0xc9),_0x25a41c(0x12a),{'durability':_0x25a41c(0xfb)}),_0x59eb63=(_0x2aef8a[_0x25a41c(0x107)]=_0x3ef096=>{const _0x22102f=_0x25a41c;0x0==--_0x357bef&&(0x0<Object[_0x22102f(0xc0)](_0x354744)['length']?_0x1f095f()[_0x22102f(0xee)](this[_0x22102f(0xe8)],{'ids':_0x354744},{'responseType':_0x22102f(0x119)})['then'](_0x2d3e17=>{const _0x49306c=_0x22102f;let _0x1144fb={},_0x7cbe5b={},_0x37866b=[],_0x4cce55=0x0,_0x2b895a=new DataView(_0x2d3e17[_0x49306c(0x127)]);for(;_0x4cce55<_0x2d3e17[_0x49306c(0x127)]['byteLength'];){var _0x5e5249=_0x2b895a['getUint32'](_0x4cce55,!0x0),_0x5b395e=(_0x4cce55+=Uint32Array[_0x49306c(0x10d)],_0x2b895a['getUint32'](_0x4cce55,!0x0));_0x4cce55+=Uint32Array['BYTES_PER_ELEMENT'];let _0xabb41=new Float32Array(0x4);for(let _0x7dd0a=0x0;_0x7dd0a<_0xabb41[_0x49306c(0x126)];_0x7dd0a++)_0xabb41[_0x7dd0a]=_0x2b895a['getFloat32'](_0x4cce55,!0x0),_0x4cce55+=Float32Array[_0x49306c(0x10d)];0x0===_0xabb41[0x3]&&(_0xabb41[0x0]=0.3,_0xabb41[0x1]=0.3,_0xabb41[0x2]=0.3,_0xabb41[0x3]=0x1),_0xabb41[0x3]<0.6&&(_0xabb41[0x3]=0.6);var _0x35c160=_0x528b42['decode'](new Uint8Array(_0x2d3e17[_0x49306c(0x127)],_0x4cce55,0x20))[_0x49306c(0x111)](/\x00/g,''),_0x2f92f0=(_0x4cce55+=0x20*Uint8Array['BYTES_PER_ELEMENT'],_0x2b895a[_0x49306c(0xbf)](_0x4cce55,!0x0)),_0x2fd758=(_0x4cce55+=Uint32Array['BYTES_PER_ELEMENT'],_0x528b42[_0x49306c(0x128)](new Uint8Array(_0x2d3e17[_0x49306c(0x127)],_0x4cce55,_0x2f92f0))['replace'](/\x00/g,''));_0x4cce55+=_0x2f92f0;let _0x531600={'modelId':_0x5e5249,'id':_0x5b395e,'color':_0xabb41,'textureId':_0x35c160,'name':_0x2fd758},_0x34bbac=(_0x1144fb['hasOwnProperty'](_0x531600['modelId'])||(_0x1144fb[_0x531600[_0x49306c(0xf4)]]=this[_0x49306c(0x133)][_0x531600[_0x49306c(0xf4)]][_0x49306c(0xdd)](_0x49306c(0xc9),_0x49306c(0xcc),{'durability':_0x49306c(0xfb)}),_0x7cbe5b[_0x531600[_0x49306c(0xf4)]]=_0x1144fb[_0x531600['modelId']][_0x49306c(0xc2)]('material')),Object['assign']({},_0x531600));delete _0x34bbac['modelId'],_0x7cbe5b[_0x531600[_0x49306c(0xf4)]][_0x49306c(0x12f)](_0x34bbac),_0x531600[_0x49306c(0x104)]=this['modelId_indexDb'][_0x531600[_0x49306c(0xf4)]][_0x49306c(0x113)],_0x37866b['push'](_0x531600);}let _0x2714ab=Object['keys'](_0x1144fb)[_0x49306c(0x126)];var _0x6e1419,_0x19c34c=_0x4b3ce6=>{0x0==--_0x2714ab&&_0x1bc3f7(_0x37866b);};for(_0x6e1419 in _0x1144fb){let _0x1d4cb4=_0x1144fb[_0x6e1419];_0x1d4cb4[_0x49306c(0x107)]=_0x19c34c;}0x0===_0x2714ab&&_0x1bc3f7(_0x37866b);},_0x45e3cd):_0x1bc3f7(_0x498c81));},_0x2aef8a[_0x25a41c(0xc2)](_0x25a41c(0xc9)));for(var _0x2056a8 of _0x354744[_0x4c675b])_0x59eb63['getAll'](_0x2056a8)[_0x25a41c(0xc8)]=_0x13af5c;}});}['GetTexture'](_0x50771b){return new Promise((_0x1a51cb,_0x94b83)=>{const _0x3691a7=a4_0x11ef;let _0x4188b8=[];var _0x589821,_0x2a547,_0xc5e476=_0x19b923=>{const _0x2387ba=a4_0x11ef;if(void 0x0!==_0x19b923[_0x2387ba(0x106)]['result']){for(var _0xc5c83a in _0x50771b){var _0x1ad8c4=_0x50771b[_0xc5c83a]['indexOf'](_0x19b923[_0x2387ba(0x106)][_0x2387ba(0x130)]['id']);-0x1!==_0x1ad8c4&&_0x50771b[_0x2387ba(0xea)](_0xc5c83a)&&(_0x50771b[_0xc5c83a]['splice'](_0x1ad8c4,0x1),0x0===_0x50771b[_0xc5c83a][_0x2387ba(0x126)]&&delete _0x50771b[_0xc5c83a]);}_0x4188b8[_0x2387ba(0x10f)](_0x19b923[_0x2387ba(0x106)][_0x2387ba(0x130)]);}};let _0x213a52=this[_0x3691a7(0x112)][_0x3691a7(0xdd)](_0x3691a7(0xf2),_0x3691a7(0x12a),{'durability':'strict'}),_0x119ddd=(_0x213a52[_0x3691a7(0x107)]=_0x209f91=>{const _0x325864=_0x3691a7;let _0x1c0731=[];var _0x328f6c,_0x2d79fa;0x0<Object[_0x325864(0xc0)](_0x50771b)[_0x325864(0x126)]&&(_0x328f6c=_0x1f095f()[_0x325864(0xee)](this[_0x325864(0x103)],{'ids':_0x50771b},{'responseType':_0x325864(0x119)})[_0x325864(0x116)](_0x54450f=>{const _0x42da11=_0x325864;let _0x1e64bc=this[_0x42da11(0x112)][_0x42da11(0xdd)](_0x42da11(0xf2),'readwrite',{'durability':_0x42da11(0xfb)}),_0x35a4f1=_0x1e64bc[_0x42da11(0xc2)](_0x42da11(0xf2)),_0x3cb958=0x0,_0x2153b6=new DataView(_0x54450f['data']);for(;_0x3cb958<_0x54450f[_0x42da11(0x127)][_0x42da11(0xf9)];){var _0x1a26e3=_0x528b42[_0x42da11(0x128)](new Uint8Array(_0x54450f['data'],_0x3cb958,0x20)),_0x2ae3c2=(_0x3cb958+=0x20*Uint8Array['BYTES_PER_ELEMENT'],_0x2153b6[_0x42da11(0xbf)](_0x3cb958,!0x0)),_0xcf3a17=(_0x3cb958+=Uint32Array[_0x42da11(0x10d)],_0x528b42['decode'](new Uint8Array(_0x54450f[_0x42da11(0x127)],_0x3cb958,_0x2ae3c2))[_0x42da11(0x111)](/\x00/g,'')),_0x2ae3c2=(_0x3cb958+=_0x2ae3c2,_0x2153b6['getUint32'](_0x3cb958,!0x0)),_0x1a4aee=(_0x3cb958+=Uint32Array['BYTES_PER_ELEMENT'],_0x2153b6['getUint32'](_0x3cb958,!0x0)),_0x14e2e6=(_0x3cb958+=Uint32Array[_0x42da11(0x10d)],_0x2153b6[_0x42da11(0xe1)](_0x3cb958,!0x0)),_0x2f6bc0=(_0x3cb958+=Uint32Array[_0x42da11(0x10d)],_0x2153b6[_0x42da11(0xbf)](_0x3cb958,!0x0)),_0x122b3d=(_0x3cb958+=Uint32Array['BYTES_PER_ELEMENT'],new Uint8Array(_0x54450f[_0x42da11(0x127)],_0x3cb958,_0x2f6bc0)),_0x2f6bc0=(_0x3cb958+=Uint8Array['BYTES_PER_ELEMENT']*_0x2f6bc0,_0x2153b6['getUint32'](_0x3cb958,!0x0)),_0x5bdeb0=(_0x3cb958+=Uint32Array['BYTES_PER_ELEMENT'],new Uint8Array(_0x54450f[_0x42da11(0x127)],_0x3cb958,_0x2f6bc0)),_0x2f6bc0=(_0x3cb958+=Uint8Array[_0x42da11(0x10d)]*_0x2f6bc0,_0x2153b6['getUint32'](_0x3cb958,!0x0)),_0x445a25=(_0x3cb958+=Uint32Array['BYTES_PER_ELEMENT'],new Uint8Array(_0x54450f['data'],_0x3cb958,_0x2f6bc0)),_0x2f6bc0=(_0x3cb958+=Uint8Array['BYTES_PER_ELEMENT']*_0x2f6bc0,_0x2153b6[_0x42da11(0xbf)](_0x3cb958,!0x0)),_0x6603df=(_0x3cb958+=Uint32Array[_0x42da11(0x10d)],new Uint8Array(_0x54450f[_0x42da11(0x127)],_0x3cb958,_0x2f6bc0)),_0x2f6bc0=(_0x3cb958+=Uint8Array[_0x42da11(0x10d)]*_0x2f6bc0,{'id':_0x1a26e3,'name':_0xcf3a17,'width':_0x2ae3c2,'height':_0x1a4aee,'realityWidth':_0x14e2e6,'preview':_0x122b3d,'albedo':_0x5bdeb0,'orm':_0x445a25,'normal':_0x6603df,'isStatic':0x0,'isLoad':0x1});_0x4188b8[_0x42da11(0x10f)](_0x2f6bc0),_0x35a4f1[_0x42da11(0x12f)](_0x2f6bc0);}},_0x94b83),_0x1c0731[_0x325864(0x10f)](_0x328f6c));for(let _0x36bf57 of _0x4188b8)0x1===_0x36bf57[_0x325864(0x11c)]&&0x0===_0x36bf57[_0x325864(0xdb)]&&(_0x2d79fa=Promise[_0x325864(0x118)]([_0x1f095f()[_0x325864(0xd8)](this[_0x325864(0xff)]+_0x36bf57[_0x325864(0x123)],{'responseType':_0x325864(0x119)}),_0x1f095f()[_0x325864(0xd8)](this['getStaticTextureUrl']+_0x36bf57['ormPath'],{'responseType':_0x325864(0x119)}),_0x1f095f()[_0x325864(0xd8)](this[_0x325864(0xff)]+_0x36bf57[_0x325864(0xdc)],{'responseType':_0x325864(0x119)})])['then'](_0x45e155=>{const _0x2f5afb=_0x325864;_0x36bf57[_0x2f5afb(0xba)]=new Uint8Array(_0x45e155[0x0][_0x2f5afb(0x127)]),_0x36bf57[_0x2f5afb(0x12d)]=new Uint8Array(_0x45e155[0x1][_0x2f5afb(0x127)]),_0x36bf57['nd']=new Uint8Array(_0x45e155[0x2][_0x2f5afb(0x127)]),_0x36bf57[_0x2f5afb(0xdb)]=0x1;let _0xce1a58=this[_0x2f5afb(0x112)]['transaction'](_0x2f5afb(0xf2),_0x2f5afb(0xcc),{'durability':_0x2f5afb(0xfb)}),_0x9331a3=_0xce1a58[_0x2f5afb(0xc2)](_0x2f5afb(0xf2));_0x9331a3[_0x2f5afb(0xe3)](_0x36bf57);})['catch'](_0x128aa4=>{const _0x26295c=_0x325864;_0x2b2792[_0x26295c(0x117)](_0x26295c(0xec),_0x128aa4);}),_0x1c0731['push'](_0x2d79fa));Promise['all'](_0x1c0731)['then'](_0x550e13=>{_0x1a51cb(_0x4188b8);});},_0x213a52[_0x3691a7(0xc2)](_0x3691a7(0xf2))),_0x50613f=new Set();for(_0x589821 in _0x50771b)for(var _0x4e232d of _0x50771b[_0x589821])_0x50613f['add'](_0x4e232d);for(_0x2a547 of _0x50613f)_0x119ddd[_0x3691a7(0xd8)](_0x2a547)[_0x3691a7(0xc8)]=_0xc5e476;});}['InitStaticTexture'](_0x401352){const _0x54f8f9=_0x41e755;this[_0x54f8f9(0xff)]=_0x401352||_0x54f8f9(0x100);let _0x58349b=indexedDB['open'](_0x54f8f9(0xcb));_0x58349b[_0x54f8f9(0x10e)]=_0x5e55cc=>_0x2b2792[_0x54f8f9(0x117)](_0x54f8f9(0x10b),_0x5e55cc),_0x58349b['onupgradeneeded']=_0x361c87=>{const _0x294446=_0x54f8f9;this[_0x294446(0x112)]=_0x361c87[_0x294446(0x106)][_0x294446(0x130)];let _0xaacf26=_0x361c87[_0x294446(0x106)][_0x294446(0x130)]['createObjectStore'](_0x294446(0xf2),{'autoIncrement':!0x1,'keyPath':'id'});_0xaacf26[_0x294446(0xe7)]('by_isStatic','isStatic',{'unique':!0x1,'multiEntry':!0x1}),this[_0x294446(0xf1)]=!0x0;},_0x58349b[_0x54f8f9(0xc8)]=_0x1bb6b5=>{const _0x3da01b=_0x54f8f9;this[_0x3da01b(0x112)]=_0x1bb6b5[_0x3da01b(0x106)][_0x3da01b(0x130)],this['fineTextureDbInit']&&_0x1f095f()[_0x3da01b(0xd8)](this[_0x3da01b(0xff)]+_0x3da01b(0x121),{'responseType':'json'})[_0x3da01b(0x116)](_0x13c80c=>{const _0x2bc251=_0x3da01b;let _0x35b0cb=this[_0x2bc251(0x112)][_0x2bc251(0xdd)](_0x2bc251(0xf2),'readwrite',{'durability':_0x2bc251(0xfb)}),_0xfa4384=_0x35b0cb[_0x2bc251(0xc2)](_0x2bc251(0xf2));for(var _0x637467 of _0x13c80c[_0x2bc251(0x127)])_0x637467[_0x2bc251(0xf0)]=_0x637467[_0x2bc251(0xd2)],_0x637467[_0x2bc251(0x123)]=_0x637467[_0x2bc251(0xba)][_0x2bc251(0xfd)](0x0,_0x637467[_0x2bc251(0xba)][_0x2bc251(0xe6)]('.'))+_0x2bc251(0x108),_0x637467[_0x2bc251(0x12b)]=_0x637467['orm'][_0x2bc251(0xfd)](0x0,_0x637467[_0x2bc251(0x12d)][_0x2bc251(0xe6)]('.'))+_0x2bc251(0x108),_0x637467['ndPath']=_0x637467['nd'][_0x2bc251(0xfd)](0x0,_0x637467['nd']['lastIndexOf']('.'))+'.bptc',_0x637467[_0x2bc251(0x11c)]=0x1,_0x637467[_0x2bc251(0xdb)]=0x0,_0xfa4384[_0x2bc251(0x12f)](_0x637467);},_0x355616=>{const _0x3608e3=_0x3da01b;_0x2b2792[_0x3608e3(0x129)]('公共贴图获取失败',_0x355616);});};}}},0x1721:(_0x523b4f,_0x4b5150,_0x3c790f)=>{const _0x225f62=a4_0x22e615;_0x3c790f['d'](_0x4b5150,{'B':()=>_0x465319});class _0x465319{static[_0x225f62(0xed)](_0x35ed56,_0xd5ebf9){const _0x548e12=_0x225f62,_0xedce9=[];for(let _0x179eb2=0x0;_0x179eb2<_0x35ed56;++_0x179eb2)_0xedce9[_0x548e12(0x10f)](_0xd5ebf9());return _0xedce9;}static[_0x225f62(0x11b)](_0x2ab308,_0x3d0a50){const _0x25077c=_0x225f62;return _0x465319[_0x25077c(0xed)](_0x2ab308,_0x3d0a50);}}},0x16c7:(_0x5af4b8,_0x531c62,_0x2f12e8)=>{_0x2f12e8['d'](_0x531c62,{'H':()=>function(_0x3d91f5,_0x1405fc){_0x35b8a3[_0x3d91f5]=_0x1405fc;}});const _0x35b8a3={};}}]);
|