OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / media / file / file.model.js

1 lines · javascript ref:
function _0x430f91(_0x5b2291,_0x150506,_0x3c44d6,_0x348851){return _0x35dd(_0x3c44d6- -0x33,_0x150506);}(function(_0x2a9758,_0x271394){const _0x594fc5={_0xdbaf46:0x28c,_0x2e980b:0x282,_0x2862b5:0x279,_0x3911ad:0xe2,_0x2143c3:0x103,_0x513425:0x271,_0xd2e6bb:0x27e,_0x2f43df:0x293,_0x3e2d3b:0x114,_0x1a359a:0xfc,_0xb45cdc:0x106,_0x396437:0x12e,_0x31550f:0x123,_0x3305ba:0xea,_0x5c35a4:0x10d,_0x466b0b:0x285,_0x491e2a:0x266,_0x2c600b:0x26a,_0x32cbf3:0x27b,_0x27fe9b:0x287,_0x1db6dd:0x283,_0x2148fa:0x295,_0x5003f3:0x291,_0x252dc1:0x282,_0x2f7845:0x298,_0x47e359:0x281,_0x1775c8:0x296},_0x486210={_0x4cafee:0xcd};function _0x4ded67(_0x82312b,_0x5a78c9,_0x14b191,_0x2d37cc){return _0x35dd(_0x82312b- -0x2bd,_0x14b191);}function _0x3802bc(_0x5635e4,_0x3066ee,_0x2f14ff,_0x1c674f){return _0x35dd(_0x3066ee-_0x486210._0x4cafee,_0x5635e4);}const _0x3ea9d8=_0x2a9758();while(!![]){try{const _0x5883a4=-parseInt(_0x3802bc(_0x594fc5._0xdbaf46,0x28d,_0x594fc5._0x2e980b,_0x594fc5._0x2862b5))/(0x1*-0x1d71+-0x881+0x25f3)+-parseInt(_0x4ded67(-0xf8,-_0x594fc5._0x3911ad,-0xf3,-_0x594fc5._0x2143c3))/(-0x115*0x22+0x5*-0x19+0x2549)*(parseInt(_0x3802bc(_0x594fc5._0x513425,_0x594fc5._0xd2e6bb,_0x594fc5._0x2f43df,0x267))/(-0x1a2f+-0x16f*0x15+0x384d))+parseInt(_0x4ded67(-_0x594fc5._0x3e2d3b,-_0x594fc5._0x1a359a,-_0x594fc5._0xb45cdc,-0xfc))/(0x1f23+0x538+-0x2457)*(-parseInt(_0x4ded67(-0x11a,-_0x594fc5._0x396437,-0x104,-_0x594fc5._0x31550f))/(-0x11b0+-0x12e9+0x249e))+-parseInt(_0x4ded67(-0xfc,-0xf8,-_0x594fc5._0x3305ba,-_0x594fc5._0x5c35a4))/(-0x25*0xd5+0x1215+-0x12*-0xb5)+-parseInt(_0x3802bc(_0x594fc5._0x466b0b,_0x594fc5._0x513425,0x269,_0x594fc5._0x491e2a))/(0x1b75+0x1*-0x12e3+-0x9*0xf3)+parseInt(_0x3802bc(_0x594fc5._0x2c600b,_0x594fc5._0x32cbf3,_0x594fc5._0x27fe9b,_0x594fc5._0x1db6dd))/(0x1*-0xcc1+0x230b*-0x1+0x2fd4)+parseInt(_0x3802bc(_0x594fc5._0x2148fa,_0x594fc5._0x5003f3,_0x594fc5._0x252dc1,_0x594fc5._0x2f7845))/(0x492+0x3*-0x23+-0x420)*(parseInt(_0x3802bc(0x271,_0x594fc5._0x47e359,_0x594fc5._0x1775c8,_0x594fc5._0x513425))/(0x207*-0x7+0x1e4b+-0x8*0x202));if(_0x5883a4===_0x271394)break;else _0x3ea9d8['push'](_0x3ea9d8['shift']());}catch(_0x587e7f){_0x3ea9d8['push'](_0x3ea9d8['shift']());}}}(_0x37f6,0xc11e9+-0x2011*0x34+-0x3*-0x10e94));const _0x53b458=(function(){let _0xe7d7d5=!![];return function(_0x137423,_0x1985e3){const _0x530211=_0xe7d7d5?function(){if(_0x1985e3){const _0x9fabcc=_0x1985e3['apply'](_0x137423,arguments);return _0x1985e3=null,_0x9fabcc;}}:function(){};return _0xe7d7d5=![],_0x530211;};}()),_0x507258=_0x53b458(this,function(){const _0x1c5fed={_0x4a308b:0xea,_0x3e8620:0xf5,_0x25c57f:0x263,_0x1bb5b6:0x292,_0xbe8806:0x27b,_0x3ce946:0x28e,_0x3b4a48:0x27b,_0x2893bb:0x290,_0x17aba0:0x283,_0x9e84ac:0x2ab,_0x5dfcbb:0x28d,_0x2267af:0x297,_0xeb6555:0x114,_0x5e8224:0x12b,_0x1c3d76:0x125,_0x2b890a:0x116},_0xb553b4={_0x471408:0xe2},_0x93a444={_0x4b63b2:0x2af};function _0x439510(_0x4b0a50,_0x165fc7,_0x4dfda6,_0x3c6a40){return _0x35dd(_0x3c6a40- -_0x93a444._0x4b63b2,_0x4b0a50);}function _0x44857d(_0x138da3,_0x14699e,_0x3e61a8,_0x3b0926){return _0x35dd(_0x3b0926-_0xb553b4._0x471408,_0x138da3);}return _0x507258[_0x439510(-_0x1c5fed._0x4a308b,-_0x1c5fed._0x3e8620,-0xf8,-0xfa)]()[_0x44857d(_0x1c5fed._0x25c57f,0x279,_0x1c5fed._0x1bb5b6,_0x1c5fed._0xbe8806)](_0x44857d(_0x1c5fed._0x3ce946,_0x1c5fed._0x3b4a48,_0x1c5fed._0x2893bb,_0x1c5fed._0x17aba0)+'+$')[_0x44857d(_0x1c5fed._0x9e84ac,_0x1c5fed._0x5dfcbb,_0x1c5fed._0x2267af,0x297)]()['constructo'+'r'](_0x507258)[_0x439510(-_0x1c5fed._0xeb6555,-_0x1c5fed._0x5e8224,-_0x1c5fed._0x1c3d76,-_0x1c5fed._0x2b890a)]('(((.+)+)+)'+'+$');});_0x507258();import{isAudioMimeType,isAudioVoicePath,base64ToWaveform,waveformToBase64}from'../../lib/file';import{FILE_PREVIEW_MAX_BYTES_MEDIUM,FILE_PREVIEW_MAX_BYTES_SMALL,FILE_PREVIEW_MAX_FRAMES_MEDIUM,FILE_PREVIEW_MAX_FRAMES_SMALL,FILE_PREVIEW_MIME_TYPE,FILE_PREVIEW_SIZE_LARGE,FILE_PREVIEW_SIZE_MEDIUM,FILE_PREVIEW_SIZE_SMALL,FILE_VOICE_MIME_TYPE}from'./file.constants';export const getFileId=_0x3d468e=>{const _0x1b08b1={_0x1847ff:0x133,_0x36342e:0x12f,_0x158b47:0x13c,_0x4eb9e6:0x1cb,_0x2ada01:0x1b3,_0x1a8083:0x19b,_0x5044ab:0x194,_0x58adfd:0x187},_0x3924e7={_0x250b61:0x355},_0x2f6a71={_0x1259c0:0x65};function _0x2cc7ae(_0x229090,_0x26471c,_0x3a7979,_0x145852){return _0x35dd(_0x3a7979- -_0x2f6a71._0x1259c0,_0x229090);}if(!_0x3d468e)return'';const {externalBlob:_0x13c26e}=_0x3d468e;if(_0x13c26e)return _0x13c26e['id']+'_'+_0x13c26e[_0x2cc7ae(0x133,_0x1b08b1._0x1847ff,_0x1b08b1._0x36342e,_0x1b08b1._0x158b47)]?.[_0x4610a9(-0x1b7,-_0x1b08b1._0x4eb9e6,-0x1cd,-_0x1b08b1._0x2ada01)+'t'];function _0x4610a9(_0x10fed0,_0x2fe400,_0x23b288,_0x68ea9b){return _0x35dd(_0x10fed0- -_0x3924e7._0x250b61,_0x23b288);}const {externalDrive:_0x2d7968}=_0x3d468e;if(_0x2d7968)return _0x2d7968['id']+'_'+_0x2d7968[_0x4610a9(-0x193,-_0x1b08b1._0x1a8083,-_0x1b08b1._0x5044ab,-_0x1b08b1._0x58adfd)]+'_'+_0x2d7968['version'];return'';};export const getFileByteLength=_0x15718c=>_0x15718c?.['externalBl'+'ob']?.[_0xb724a2(-0x3a,-0x3e,-0x31,-0x3c)]?.[_0x430f91(0x196,0x187,0x188,0x193)]||0x2629*0x1+-0x22ad+0x4*-0xdf;export const PREVIEW_SIZE={'SMALL':_0x430f91(0x199,0x190,0x189,0x193),'MEDIUM':_0x430f91(0x162,0x179,0x16f,0x170),'LARGE':'large'};export const PREVIEW_SIZE_VALUES=Object[_0x430f91(0x17b,0x185,0x185,0x177)](PREVIEW_SIZE);export const PREVIEW_PARAMS_BY_SIZE={'small':{'maxHeight':FILE_PREVIEW_SIZE_SMALL,'maxWidth':FILE_PREVIEW_SIZE_SMALL,'maxBytes':FILE_PREVIEW_MAX_BYTES_SMALL,'maxFrames':FILE_PREVIEW_MAX_FRAMES_SMALL},'medium':{'maxHeight':FILE_PREVIEW_SIZE_MEDIUM,'maxWidth':FILE_PREVIEW_SIZE_MEDIUM,'maxBytes':FILE_PREVIEW_MAX_BYTES_MEDIUM,'maxFrames':FILE_PREVIEW_MAX_FRAMES_MEDIUM}};export const PREVIEW_PARAMS_DEFAULT={'maxHeight':FILE_PREVIEW_SIZE_LARGE,'maxWidth':FILE_PREVIEW_SIZE_LARGE};export function flattenFileWaveForm(_0x1615b0){const _0x2e0e21={_0x58b12d:0x3d8,_0x5d5eb4:0x43a,_0x2c0e17:0x43d,_0x4c7d17:0x454,_0x2b2153:0x3cd,_0x2f55f5:0x3e3,_0x128163:0x3fb,_0x203ab2:0x3da,_0x3ea8ae:0x3ea,_0x5ad3d9:0x3dc,_0x1a78c0:0x3f8},_0x225a7b={_0x41d921:0x1d3,_0x572f8e:0x21},_0x355a80={_0x3a052e:0x16c,_0x49d181:0xd6,_0x1e915:0x3fd};function _0x13a99a(_0x19ce4c,_0xf9c821,_0x1bcc28,_0x393b68){return _0xb724a2(_0x1bcc28,_0xf9c821-_0x355a80._0x3a052e,_0x1bcc28-_0x355a80._0x49d181,_0xf9c821-_0x355a80._0x1e915);}if(!_0x1615b0)return null;if(_0x1615b0[_0x13a99a(0x3e9,0x3ea,_0x2e0e21._0x58b12d,0x3e2)]&&isAudioMimeType(_0x1615b0[_0x19c91f(_0x2e0e21._0x5d5eb4,0x450,_0x2e0e21._0x2c0e17,_0x2e0e21._0x4c7d17)])&&isAudioVoicePath(_0x1615b0[_0x13a99a(_0x2e0e21._0x2b2153,_0x2e0e21._0x2f55f5,_0x2e0e21._0x128163,0x3e7)]))return base64ToWaveform(_0x1615b0[_0x13a99a(_0x2e0e21._0x203ab2,_0x2e0e21._0x3ea8ae,_0x2e0e21._0x5ad3d9,_0x2e0e21._0x1a78c0)]);function _0x19c91f(_0x1181e3,_0x4b47ce,_0x3bcb3f,_0xbd0391){return _0x430f91(_0x1181e3-_0x225a7b._0x41d921,_0x1181e3,_0x4b47ce-0x2db,_0xbd0391-_0x225a7b._0x572f8e);}return null;}export const getMaxDimension=_0x4c04f1=>_0x4c04f1?Math[_0x430f91(0x166,0x15f,0x163,0x165)](_0x4c04f1[_0xb724a2(-0x39,-0x23,-0x2a,-0x34)]||0x87*0x23+-0x136b+0xf6,_0x4c04f1[_0x430f91(0x173,0x154,0x16d,0x15a)]||-0x1*-0x2329+-0x5b*-0x44+-0x3b55):0x23c9+0xbe2+-0x2fab;function _0xb724a2(_0x49e1ca,_0x2c3e47,_0x5acc5c,_0x5d8553){const _0x4a2841={_0x38d5b3:0x1d0};return _0x35dd(_0x5d8553- -_0x4a2841._0x38d5b3,_0x49e1ca);}export function getShouldOverridePreviewPointer(_0x4eae41,_0x294e28){const _0x47e7a8={_0x1ae942:0x464,_0x2e35d6:0x45f,_0x24d7d9:0x470,_0x51c0fa:0x460},_0x35d5f8={_0x158bd3:0x69,_0x51bfe3:0x2eb,_0x5365b8:0x5};if(_0x4eae41[_0x397abb(_0x47e7a8._0x1ae942,_0x47e7a8._0x2e35d6,_0x47e7a8._0x24d7d9,_0x47e7a8._0x51c0fa)]!==FILE_PREVIEW_MIME_TYPE)return![];const {maxHeight:_0x3f6caf}=PREVIEW_PARAMS_BY_SIZE[_0x294e28]||PREVIEW_PARAMS_DEFAULT;function _0x397abb(_0x56528e,_0x422671,_0x5e4207,_0x35cfa2){return _0x430f91(_0x56528e-_0x35d5f8._0x158bd3,_0x5e4207,_0x35cfa2-_0x35d5f8._0x51bfe3,_0x35cfa2-_0x35d5f8._0x5365b8);}const _0x47e9a7=getMaxDimension(_0x4eae41);return _0x3f6caf>_0x47e9a7;}export function flattenFileSource(_0x14fcbf,_0x521061){const _0x274fa1={_0x24b138:0x196,_0x27bdb9:0x199,_0x228c67:0x18f,_0x1d261a:0x190,_0x47ffb4:0x193,_0x12b211:0x1a0,_0x4d22d6:0x184,_0x59cb01:0x176},_0x359a45={_0xc8402d:0x1bd},_0x20a5bd={_0x562b90:0x10},_0x76de3f=_0x14fcbf[_0x5b9e60(0x19a,_0x274fa1._0x24b138,_0x274fa1._0x27bdb9,0x19e)]?.['inlined'];function _0x5b9e60(_0x4292d2,_0x24f13c,_0x8ef31f,_0x4c7630){return _0x430f91(_0x4292d2-0xa1,_0x8ef31f,_0x24f13c-_0x20a5bd._0x562b90,_0x4c7630-0x1b0);}function _0x34fbec(_0x713ac4,_0x5a150b,_0x50ffce,_0x1d2839){return _0x430f91(_0x713ac4-0x1e6,_0x50ffce,_0x1d2839- -_0x359a45._0xc8402d,_0x1d2839-0x1ad);}return _0x76de3f?'data:'+_0x14fcbf[_0x5b9e60(_0x274fa1._0x228c67,_0x274fa1._0x1d261a,_0x274fa1._0x47ffb4,_0x274fa1._0x12b211)]?.['mimetype']+';base64,'+_0x76de3f:_0x521061?.[_0x5b9e60(0x163,0x177,_0x274fa1._0x4d22d6,_0x274fa1._0x59cb01)];}export const getIsVoiceNote=(_0x361ccc,_0x50813b)=>Boolean(FILE_VOICE_MIME_TYPE===_0x361ccc&&_0x50813b?.[_0xb724a2(-0x1f,-0x9,-0x8,-0x11)](_0x430f91(0x177,0x183,0x187,0x182)));export function flattenFileMetadata(_0x589451,_0x7adf92){const _0x57419d={_0x29ce72:0x85,_0x3df7f7:0x90,_0x5069c3:0xd8,_0x3252cd:0xde,_0x1d835e:0xc6,_0x499b50:0xc8,_0x4e81b8:0xe5,_0x24e4b7:0xcf,_0x25eda5:0xdd,_0x1aedb5:0xa7,_0xda1d85:0x9e,_0x8ec17a:0xa7},_0x4534c9={_0x59d55d:0xcc,_0x359871:0x13,_0x1c0c4b:0xad},_0x4adf91={_0x1c70d1:0x7b,_0x5144ea:0x38,_0x192633:0x73};if(!_0x589451||!_0x589451[_0xbb81e9(-_0x57419d._0x29ce72,-_0x57419d._0x3df7f7,-0x7a,-0xa8)])return null;function _0xbb81e9(_0x5b8a41,_0x3c0bd3,_0x172dce,_0x27781e){return _0xb724a2(_0x5b8a41,_0x3c0bd3-_0x4adf91._0x1c70d1,_0x172dce-_0x4adf91._0x5144ea,_0x3c0bd3- -_0x4adf91._0x192633);}function _0x1f3986(_0x1eab0c,_0x27c6a8,_0x54c7fc,_0x5c525b){return _0xb724a2(_0x1eab0c,_0x27c6a8-_0x4534c9._0x59d55d,_0x54c7fc-_0x4534c9._0x359871,_0x5c525b- -_0x4534c9._0x1c0c4b);}const {pointer:_0x4c6e73,metadata:_0x5cc2da}=_0x589451,{own:own=![],cleared:cleared=![]}=_0x7adf92||{},{dimensions:_0x5da6c2,byteLength:byteLength=getFileByteLength(_0x4c6e73),name:name='',mimetype:mimetype='applicatio'+_0x1f3986(-_0x57419d._0x5069c3,-_0x57419d._0x3252cd,-0xb5,-_0x57419d._0x1d835e)+'ream',duration:duration=0x510+-0x14b4+0xfa4,isPreview:_0x325f01}=_0x5cc2da,_0x12668d=getFileId(_0x4c6e73),_0x316d21=getIsVoiceNote(mimetype,name);return{'isPreview':_0x325f01,'width':_0x5da6c2?.[_0x1f3986(-_0x57419d._0x499b50,-_0x57419d._0x4e81b8,-_0x57419d._0x24e4b7,-_0x57419d._0x25eda5)],'height':_0x5da6c2?.[_0xbb81e9(-0x98,-_0x57419d._0x1aedb5,-_0x57419d._0xda1d85,-_0x57419d._0x8ec17a)],'name':name,'own':own,'duration':duration,'byteLength':byteLength,'mimetype':mimetype,'id':_0x12668d,'pointer':_0x4c6e73,'httpLink':flattenFileSource(_0x589451,_0x7adf92),'cleared':cleared,'isVoiceNote':_0x316d21};}function _0x37f6(){const _0x1e54b7=['dimensions','number','parseCoreF','mimetype','4PiWduC','from','byteOffset','forEach','entry','2452136XSMzhP','large','ile:\x20no\x20po','7842QzAoXM','isPreview','metadata','40095190agSmGy','toString','name','n/octet-st','values','pointer','recording-','byteLength','small','userdata','duration','startsWith','771299jjAQIh','5294136lADaJn','path','includes','9eBfKwd','778qOAYFs','blob','preview','max','set','inter','search','httpLink','keys','height','blockLengt','blockOffse','audio','width','(((.+)+)+)','medium','4095160lbWKNa','1781850YVlNhH'];_0x37f6=function(){return _0x1e54b7;};return _0x37f6();}export function flattenFilePreviews(_0x35f8c6){const _0x384c0c={_0x410530:0x247,_0x411eea:0x247,_0x30235b:0x19e,_0x3d3b7c:0x193,_0x5ce5dc:0x18d,_0x5aa198:0x192,_0x21abb7:0x199,_0x30717f:0x1b7,_0x134d45:0x1d5,_0x53bd45:0x1be,_0x426657:0x1b1,_0x58e7c2:0x258,_0x42ede7:0x232,_0x1aef39:0x246,_0x465271:0x242,_0x39bfaf:0x23a},_0x5dad20={_0x48209c:0x54},_0x304f91={_0x3d262b:0x1a},_0x4aa435=_0x35f8c6['preview'];function _0x303765(_0xcc00b0,_0x1919aa,_0xd12056,_0x4dc168){return _0x430f91(_0xcc00b0-_0x304f91._0x3d262b,_0x4dc168,_0x1919aa-0xcd,_0x4dc168-0x175);}function _0x3b3765(_0x3d2fbb,_0x8753c6,_0x20d0dd,_0x44d18a){return _0x430f91(_0x3d2fbb-_0x5dad20._0x48209c,_0x3d2fbb,_0x44d18a- -0x32d,_0x44d18a-0x114);}const _0x5ed553=_0x35f8c6[_0x303765(0x23b,_0x384c0c._0x410530,_0x384c0c._0x411eea,0x238)]?.['preview']||{};if(!_0x4aa435)return{};const _0x55f9bc={'small':flattenFileMetadata(_0x4aa435[_0x3b3765(-_0x384c0c._0x30235b,-_0x384c0c._0x3d3b7c,-_0x384c0c._0x5ce5dc,-0x1a4)],_0x5ed553[_0x3b3765(-_0x384c0c._0x5aa198,-0x1a4,-_0x384c0c._0x21abb7,-0x1a4)]),'medium':flattenFileMetadata(_0x4aa435['medium'],_0x5ed553[_0x3b3765(-0x1a8,-_0x384c0c._0x30717f,-_0x384c0c._0x134d45,-_0x384c0c._0x53bd45)]),'large':flattenFileMetadata(_0x4aa435[_0x3b3765(-0x19e,-0x1ca,-_0x384c0c._0x21abb7,-_0x384c0c._0x426657)],_0x5ed553[_0x303765(_0x384c0c._0x58e7c2,0x249,_0x384c0c._0x42ede7,_0x384c0c._0x1aef39)]),'audio':flattenFileWaveForm(_0x35f8c6[_0x303765(0x23c,0x24d,_0x384c0c._0x465271,_0x384c0c._0x39bfaf)])};return _0x55f9bc;}export function flattenFile(_0x41ef33){const _0x45f0a5={_0x14e53f:0x3c2,_0x46b243:0x3da},_0x4092e2={_0x1c8efb:0x182,_0x3cc08c:0x12b};if(!_0x41ef33)return null;function _0x5ccb44(_0xbdc29,_0x3e28fc,_0x2faf30,_0x21a4ee){return _0x430f91(_0xbdc29-_0x4092e2._0x1c8efb,_0x2faf30,_0x3e28fc-0x24d,_0x21a4ee-_0x4092e2._0x3cc08c);}const _0x3d47bd=flattenFileMetadata(_0x41ef33,_0x41ef33[_0x5ccb44(0x3d2,0x3c7,_0x45f0a5._0x14e53f,_0x45f0a5._0x46b243)]),_0x18af82=flattenFilePreviews(_0x41ef33);return{..._0x3d47bd,'preview':_0x18af82};}export function restoreFileCoreMetadata(_0x4796d9){const _0x260d0c={_0x398342:0x2c3,_0x2f0afe:0x2bf,_0x3d0c96:0x2be,_0x4d78dd:0x2cc,_0x154b8b:0x367,_0x4fbb62:0x358,_0x19cf40:0x36f,_0x5a75c8:0x384,_0x4311eb:0x363,_0x43f31a:0x369,_0x2edc20:0x378,_0x6721f1:0x30a,_0x4e99a1:0x2e8,_0x588065:0x342,_0x499616:0x347,_0x35611e:0x343,_0x3d6b18:0x2e3,_0x23eb40:0x2ee,_0x2347c3:0x2ee,_0xdb5cce:0x340,_0x25f70e:0x337,_0x5eb0a7:0x35c,_0x4c40cd:0x2c4,_0x407eb0:0x2c8,_0x52b6a5:0x2be,_0x3c3457:0x2d0,_0x4ddf03:0x2dd,_0x543c6b:0x2d8,_0x4132ed:0x2e6,_0x192480:0x356,_0x1ca986:0x34f,_0x504ff6:0x36c,_0x57ac07:0x34d,_0x5b9e6e:0x33b,_0x12ddad:0x342,_0x5b0ac8:0x340},_0x16d61e={_0x5bee8b:0x16a,_0x226387:0x1e4,_0x3f576c:0x5f},_0x4f8c26={_0x38dc30:0x36,_0x3675b2:0x4e};if(!_0x4796d9)return null;const _0x3514e7={};for(const _0x1b2ade of Object[_0x256583(_0x260d0c._0x398342,_0x260d0c._0x2f0afe,_0x260d0c._0x3d0c96,_0x260d0c._0x4d78dd)](_0x4796d9)){if([_0x2f0fc8(_0x260d0c._0x154b8b,0x359,0x36b,_0x260d0c._0x4fbb62),'mimetype',_0x2f0fc8(_0x260d0c._0x19cf40,0x35c,0x376,_0x260d0c._0x5a75c8),'byteLength',_0x2f0fc8(_0x260d0c._0x4311eb,_0x260d0c._0x43f31a,0x359,_0x260d0c._0x2edc20)][_0x256583(_0x260d0c._0x6721f1,0x303,_0x260d0c._0x4e99a1,0x2f4)](_0x1b2ade))_0x3514e7[_0x1b2ade]=_0x4796d9[_0x1b2ade];}function _0x256583(_0x50a109,_0x50f910,_0x13a821,_0x2dc7c1){return _0x430f91(_0x50a109-_0x4f8c26._0x38dc30,_0x13a821,_0x2dc7c1-0x164,_0x2dc7c1-_0x4f8c26._0x3675b2);}if(_0x4796d9['preview']?.[_0x2f0fc8(0x350,_0x260d0c._0x588065,_0x260d0c._0x499616,_0x260d0c._0x35611e)])_0x3514e7[_0x256583(0x2df,_0x260d0c._0x3d6b18,_0x260d0c._0x23eb40,_0x260d0c._0x2347c3)]=waveformToBase64(_0x4796d9[_0x2f0fc8(0x346,_0x260d0c._0xdb5cce,_0x260d0c._0x25f70e,_0x260d0c._0x5eb0a7)][_0x256583(_0x260d0c._0x4c40cd,_0x260d0c._0x407eb0,_0x260d0c._0x52b6a5,_0x260d0c._0x3c3457)]);function _0x2f0fc8(_0x574d2e,_0x33f1ed,_0x1e53ca,_0x2f4b1e){return _0x430f91(_0x574d2e-_0x16d61e._0x5bee8b,_0x1e53ca,_0x574d2e-_0x16d61e._0x226387,_0x2f4b1e-_0x16d61e._0x3f576c);}return _0x4796d9['height']&&_0x4796d9[_0x256583(_0x260d0c._0x4ddf03,_0x260d0c._0x543c6b,_0x260d0c._0x4132ed,0x2d1)]&&(_0x3514e7[_0x2f0fc8(_0x260d0c._0x192480,_0x260d0c._0x1ca986,_0x260d0c._0x504ff6,0x351)]={'height':_0x4796d9[_0x2f0fc8(_0x260d0c._0x57ac07,_0x260d0c._0x5b9e6e,_0x260d0c._0x12ddad,_0x260d0c._0x5b0ac8)],'width':_0x4796d9['width']}),_0x3514e7;}export function restoreFileCoreEntry(_0x5299d6){if(!_0x5299d6)return null;const {cleared:_0x472898,httpLink:_0x520f80,own:_0x3190ce,byteLength:_0x109fdb}=_0x5299d6;return{'cleared':_0x472898,'httpLink':_0x520f80,'own':_0x3190ce,'byteLength':_0x109fdb};}export function restoreCoreFileWithoutPreview(_0x561f55){const _0x53fa35={_0x594997:0x1d5,_0xba78a0:0x5d};function _0x518128(_0xa5d5a,_0x4710ec,_0x24253c,_0x1807da){return _0x430f91(_0xa5d5a-_0x53fa35._0x594997,_0x24253c,_0xa5d5a- -_0x53fa35._0xba78a0,_0x1807da-0x138);}if(!_0x561f55)return null;return{'pointer':_0x561f55[_0x518128(0x129,0x122,0x12d,0x128)],'metadata':restoreFileCoreMetadata(_0x561f55),'entry':restoreFileCoreEntry(_0x561f55)};}export function restoreFileCorePreview(_0x55db38){const _0x1a99b7={_0x9d0168:0x3d0,_0xceeff2:0x3de,_0x411d44:0x3c6,_0x2fd96a:0x70,_0x24f5e9:0x62,_0x599140:0x4f,_0x2acf5:0x8c,_0x463401:0x85,_0x48ae31:0x7e,_0x1f7a38:0x3e0,_0x11f62f:0x3eb,_0x1b0123:0x418,_0x1ef63c:0x405,_0x111e25:0x41d,_0x37bb34:0x6a,_0x23ad41:0x84,_0x46767e:0x49,_0x2f050d:0x50,_0x3fb37c:0x77},_0x47e00e={_0x29834f:0x27c,_0x3c065a:0x11a},_0x476250={_0x23ce03:0x1b8,_0x2efcac:0x1eb,_0x505bfa:0x14f},_0x16ea5c={};function _0x4a9f17(_0x2a282a,_0xbc6289,_0x182b0b,_0x5dfad5){return _0x430f91(_0x2a282a-_0x476250._0x23ce03,_0x182b0b,_0xbc6289- -_0x476250._0x2efcac,_0x5dfad5-_0x476250._0x505bfa);}if(!_0x55db38?.[_0x3e093e(0x3ee,_0x1a99b7._0x9d0168,_0x1a99b7._0xceeff2,_0x1a99b7._0x411d44)])return _0x16ea5c;function _0x3e093e(_0x294343,_0x2aae64,_0x26f1de,_0x3329a7){return _0x430f91(_0x294343-0x1c5,_0x3329a7,_0x26f1de-_0x47e00e._0x29834f,_0x3329a7-_0x47e00e._0x3c065a);}const {preview:_0x27acb4}=_0x55db38;if(_0x27acb4['small'])_0x16ea5c[_0x4a9f17(-_0x1a99b7._0x2fd96a,-_0x1a99b7._0x24f5e9,-_0x1a99b7._0x24f5e9,-_0x1a99b7._0x599140)]=restoreCoreFileWithoutPreview(_0x27acb4['small']);if(_0x27acb4[_0x4a9f17(-_0x1a99b7._0x2acf5,-0x7c,-_0x1a99b7._0x463401,-_0x1a99b7._0x48ae31)])_0x16ea5c[_0x3e093e(0x402,_0x1a99b7._0x1f7a38,_0x1a99b7._0x11f62f,0x3dd)]=restoreCoreFileWithoutPreview(_0x27acb4[_0x3e093e(0x40a,_0x1a99b7._0x1b0123,_0x1a99b7._0x1ef63c,_0x1a99b7._0x111e25)]);if(_0x27acb4['large'])_0x16ea5c[_0x4a9f17(-_0x1a99b7._0x37bb34,-0x6f,-_0x1a99b7._0x23ad41,-0x88)]=restoreCoreFileWithoutPreview(_0x27acb4[_0x4a9f17(-_0x1a99b7._0x46767e,-0x62,-_0x1a99b7._0x2f050d,-_0x1a99b7._0x3fb37c)]);return _0x16ea5c;}export function restoreCoreFile(_0x34b41d){if(!_0x34b41d)return null;return{...restoreCoreFileWithoutPreview(_0x34b41d),'preview':restoreFileCorePreview(_0x34b41d)};}export function getHttpLinkPreview(_0x5e4032,_0x4349ac){const _0x107e36={_0x86115:0x53e,_0x4afae7:0x52a,_0x38c158:0x51c},_0x3ef506={_0x5c49b7:0xcd,_0x66ebf:0x3c8,_0x2401bf:0x38};function _0x24bd9c(_0x1dac6f,_0x57e099,_0xd9b3d3,_0x31ab1c){return _0x430f91(_0x1dac6f-_0x3ef506._0x5c49b7,_0x31ab1c,_0x57e099-_0x3ef506._0x66ebf,_0x31ab1c-_0x3ef506._0x2401bf);}return _0x5e4032?.[_0x24bd9c(_0x107e36._0x86115,_0x107e36._0x4afae7,_0x107e36._0x38c158,0x53e)]?.[_0x4349ac]?.['httpLink'];}export function parseCoreFile(_0x491116){const _0x55f7ae={_0x39ab1c:0x2a6,_0x3acc10:0x278,_0x5db715:0x288,_0x6166e5:0x291,_0xad3b3:0x292,_0x298fa9:0x293,_0x4ebc3a:0x28f,_0x753ca:0x26a,_0xebdb0e:0x28e},_0x561d0b={_0x239e80:0x1b3,_0x3a1ae4:0x115,_0x1f5465:0xff},_0x57bc40={_0x133105:0x1ec,_0x348c6f:0x2a};function _0x46d56e(_0x5d9a23,_0x58b0a2,_0x5e9f09,_0x510b57){return _0xb724a2(_0x5e9f09,_0x58b0a2-_0x57bc40._0x133105,_0x5e9f09-0x30,_0x510b57- -_0x57bc40._0x348c6f);}if(!_0x491116)return undefined;if(!_0x491116[_0xf49b1(0x287,0x29b,_0x55f7ae._0x39ab1c,0x29c)])throw new Error(_0xf49b1(0x27b,0x289,_0x55f7ae._0x3acc10,_0x55f7ae._0x5db715)+_0xf49b1(_0x55f7ae._0x6166e5,_0x55f7ae._0xad3b3,_0x55f7ae._0x298fa9,_0x55f7ae._0x4ebc3a)+_0xf49b1(0x27c,0x27a,_0x55f7ae._0x753ca,_0x55f7ae._0xebdb0e));function _0xf49b1(_0x20c31b,_0x549f15,_0x4b804f,_0xecdd58){return _0x430f91(_0x20c31b-_0x561d0b._0x239e80,_0x4b804f,_0x549f15-_0x561d0b._0x3a1ae4,_0xecdd58-_0x561d0b._0x1f5465);}return flattenFile(_0x491116);}function _0x35dd(_0x57e3ab,_0xb3030a){const _0x321694=_0x37f6();return _0x35dd=function(_0x118d92,_0x45d46e){_0x118d92=_0x118d92-(-0xffb+0x80b*-0x2+0x9*0x3bd);let _0x59d1eb=_0x321694[_0x118d92];return _0x59d1eb;},_0x35dd(_0x57e3ab,_0xb3030a);}export const getCanPreviewFile=_0xcb1750=>Boolean(typeof _0xcb1750[_0xb724a2(-0x2f,-0x41,-0x36,-0x34)]===_0x430f91(0x181,0x16a,0x173,0x188)&&typeof _0xcb1750[_0x430f91(0x169,0x171,0x16d,0x15f)]===_0x430f91(0x17d,0x18c,0x173,0x161)&&['image','video'][_0x430f91(0x186,0x186,0x190,0x19b)](_0xcb1750[_0x430f91(0x178,0x175,0x175,0x175)]['split']('/')[-0x1e59+-0x1b1+0x200a]||''));export const isFileEntryChanged=(_0x2124b2,_0x5e9286)=>{const _0x289178={_0x16ca85:0x4c1,_0x2eaac2:0x4c0,_0x10b098:0x4ae,_0x882b1c:0x4b7,_0x48d3f5:0x22e,_0x5d05ad:0x230,_0x259149:0x244,_0x35e970:0x245,_0x46ee68:0x250,_0x4c80e2:0x247,_0x13d0e3:0x4a7,_0x505598:0x4b6,_0xd2068f:0x49c,_0x4f37b1:0x495,_0xd7ff5f:0x4d4,_0x23ad79:0x4c4,_0x16c3b1:0x4cb,_0x1e676a:0x4e1,_0x71a88a:0x23c,_0x2172bf:0x23e,_0x105ad1:0x236,_0x2ac725:0x246,_0x480e62:0x24b,_0x2b44cf:0x49d,_0x58b23a:0x4c6,_0x4e3f1f:0x4b0,_0x37d1ab:0x49a,_0x26d64d:0x241,_0x4c57b1:0x245,_0x2e54eb:0x25e,_0x2df364:0x4b0,_0xdd50b4:0x4af,_0x4c50f5:0x4a6,_0x4a74c1:0x4ad,_0x3451a7:0x4bd,_0x5c16b:0x4c0,_0x58d7c6:0x4ca,_0x2e45f1:0x4cd,_0x12d1c8:0x4be},_0x3f114e={_0x2822f9:0x14e,_0x2fbf87:0x1f2},_0x27e940={_0x485ddb:0x152,_0x5dd32c:0xe0};function _0x472e53(_0x3070ef,_0x9410ab,_0x508f5b,_0x513812){return _0xb724a2(_0x3070ef,_0x9410ab-_0x27e940._0x485ddb,_0x508f5b-_0x27e940._0x5dd32c,_0x508f5b-0x4e2);}if(!_0x2124b2||!_0x5e9286)return!!_0x2124b2||!!_0x5e9286;function _0x21d680(_0x581b6f,_0x2a0b33,_0x2d8f46,_0x166f00){return _0xb724a2(_0x581b6f,_0x2a0b33-_0x3f114e._0x2822f9,_0x2d8f46-_0x3f114e._0x2fbf87,_0x2d8f46-0x278);}if(_0x2124b2['width']!==_0x5e9286['width']||_0x2124b2[_0x472e53(_0x289178._0x16ca85,_0x289178._0x2eaac2,_0x289178._0x10b098,_0x289178._0x882b1c)]!==_0x5e9286[_0x21d680(_0x289178._0x48d3f5,_0x289178._0x5d05ad,_0x289178._0x259149,0x23d)]||_0x2124b2[_0x21d680(_0x289178._0x35e970,0x24e,_0x289178._0x46ee68,_0x289178._0x4c80e2)]!==_0x5e9286[_0x472e53(0x4d3,_0x289178._0x13d0e3,0x4ba,_0x289178._0x505598)])return!![];const _0x375ae4=_0x2124b2['pointer']?.[_0x472e53(_0x289178._0xd2068f,0x4b3,0x4a6,_0x289178._0x4f37b1)],_0x2ed210=_0x5e9286[_0x472e53(_0x289178._0xd7ff5f,_0x289178._0x23ad79,_0x289178._0x16c3b1,_0x289178._0x1e676a)]?.[_0x21d680(0x23b,0x22a,_0x289178._0x71a88a,0x24b)];if(!_0x375ae4||!_0x2ed210)return!!_0x375ae4||!!_0x2ed210;return _0x375ae4[_0x21d680(_0x289178._0x2172bf,_0x289178._0x105ad1,_0x289178._0x2ac725,_0x289178._0x480e62)+'t']!==_0x2ed210[_0x472e53(_0x289178._0x2b44cf,_0x289178._0x58b23a,_0x289178._0x4e3f1f,_0x289178._0x37d1ab)+'t']||_0x375ae4[_0x21d680(_0x289178._0x26d64d,0x25d,_0x289178._0x4c57b1,_0x289178._0x2e54eb)+'h']!==_0x2ed210[_0x472e53(_0x289178._0x2df364,0x4b5,_0x289178._0xdd50b4,0x4a6)+'h']||_0x375ae4[_0x472e53(_0x289178._0x4c50f5,_0x289178._0x4a74c1,_0x289178._0x3451a7,0x4b6)]!==_0x2ed210[_0x472e53(_0x289178._0x13d0e3,0x4bc,_0x289178._0x3451a7,_0x289178._0x5c16b)]||_0x375ae4[_0x472e53(_0x289178._0x58d7c6,0x4e1,_0x289178._0x2e45f1,_0x289178._0x12d1c8)]!==_0x2ed210['byteLength'];};export const mergeFileEntry=(_0x3e2d7e,_0x144148)=>({..._0x3e2d7e,..._0x144148,'httpLink':_0x144148?.['httpLink']||_0x3e2d7e?.[_0xb724a2(-0x38,-0x2f,-0x4f,-0x36)]});export const mergeRoomInfoFiles=(_0x105564,_0x284d62)=>{const _0x116ce4={_0x180988:0x196,_0x42833a:0x18d,_0x253a45:0x1a3,_0x2972ea:0x19c,_0x2f5208:0x1a7,_0x492ab3:0x1a1,_0xa2c327:0x1a2,_0x214c62:0x1a6,_0x117cf1:0x1af,_0x2b7a3b:0x1a0},_0x9a98c9={_0x308471:0x13a,_0x22ca60:0x1c7},_0x48dabe={_0xa9c4f7:0x7d,_0x372535:0x19d};function _0x381904(_0x7cf00b,_0x5bf5e1,_0x5f55cc,_0x2cc430){return _0x430f91(_0x7cf00b-_0x48dabe._0xa9c4f7,_0x5bf5e1,_0x2cc430- -_0x48dabe._0x372535,_0x2cc430-0x1d1);}const _0x499d86=new Map();_0x105564[_0x1fd1f3(_0x116ce4._0x180988,_0x116ce4._0x42833a,_0x116ce4._0x253a45,_0x116ce4._0x2972ea)](_0x2906c2=>_0x499d86[_0x381904(-0x41,-0x26,-0x4f,-0x39)](_0x2906c2['id'],_0x2906c2));function _0x1fd1f3(_0x27d560,_0x3afd67,_0x32c254,_0x591fff){return _0xb724a2(_0x27d560,_0x3afd67-0x17b,_0x32c254-_0x9a98c9._0x308471,_0x32c254-_0x9a98c9._0x22ca60);}_0x284d62['forEach'](_0x47af4a=>_0x499d86[_0x1fd1f3(0x18d,0x191,0x18e,0x197)](_0x47af4a['id'],_0x47af4a));const _0x23be0e=Array[_0x1fd1f3(0x19e,_0x116ce4._0x2f5208,_0x116ce4._0x492ab3,_0x116ce4._0xa2c327)](_0x499d86[_0x1fd1f3(0x1c7,_0x116ce4._0x214c62,_0x116ce4._0x117cf1,_0x116ce4._0x2b7a3b)]());return _0x23be0e;};