(function(_0x5967f1,_0xe6373f){const _0x1a9ce2={_0xbdfff0:0x64,_0x2ed565:0x62,_0x578b01:0x57,_0x100738:0x60,_0x40238a:0x53,_0x5488ad:0x5e,_0x4203b3:0x2b,_0x57fc83:0x36,_0xda8008:0x2e,_0x12b809:0x35,_0x45d73c:0x28,_0x5795bb:0x5d,_0x342452:0x68,_0x522e7f:0x6d,_0x171659:0x65,_0x1b9f40:0x61,_0x2e8a2d:0x37,_0x51009e:0x40,_0x1be2fb:0x5f,_0x2f02fc:0x55,_0x918005:0x5a},_0x42f8c3={_0x35d51d:0x10f},_0x51afea={_0x4a3aed:0x195},_0x3e2d80=_0x5967f1();function _0x2145c9(_0x4dcfd0,_0x860407,_0x1613d4,_0x254e35){return _0x47d0(_0x4dcfd0- -_0x51afea._0x4a3aed,_0x1613d4);}function _0x2f7d52(_0x35df46,_0x27e02b,_0x79511b,_0x424767){return _0x47d0(_0x424767- -_0x42f8c3._0x35d51d,_0x79511b);}while(!![]){try{const _0x40e6f7=parseInt(_0x2f7d52(_0x1a9ce2._0xbdfff0,_0x1a9ce2._0x2ed565,_0x1a9ce2._0x578b01,_0x1a9ce2._0x100738))/(0xe24+-0x85*0x3e+-0x7*-0x295)+-parseInt(_0x2f7d52(0x6b,_0x1a9ce2._0x40238a,_0x1a9ce2._0x40238a,_0x1a9ce2._0x5488ad))/(0x23df+-0x3*-0x869+-0x1e8c*0x2)+parseInt(_0x2145c9(-_0x1a9ce2._0x4203b3,-0x27,-_0x1a9ce2._0x57fc83,-0x23))/(0x2512+0xe4e*0x1+0x1b*-0x1e7)+parseInt(_0x2145c9(-_0x1a9ce2._0xda8008,-_0x1a9ce2._0x12b809,-_0x1a9ce2._0x45d73c,-0x28))/(-0x2298+-0x5bc+0x2858)+-parseInt(_0x2f7d52(0x6d,_0x1a9ce2._0xbdfff0,_0x1a9ce2._0x5795bb,_0x1a9ce2._0x342452))/(0xbb9*-0x1+-0x1dc2+0x14c*0x20)+-parseInt(_0x2f7d52(_0x1a9ce2._0x522e7f,_0x1a9ce2._0x100738,_0x1a9ce2._0x171659,_0x1a9ce2._0x1b9f40))/(0x1567+0x6*-0x1b3+-0x1*0xb2f)+-parseInt(_0x2145c9(-0x34,-_0x1a9ce2._0x2e8a2d,-0x38,-_0x1a9ce2._0x51009e))/(0xc97+0x26a3+-0x3333)*(-parseInt(_0x2f7d52(_0x1a9ce2._0x1be2fb,_0x1a9ce2._0x2f02fc,0x66,_0x1a9ce2._0x918005))/(0x1d5b+-0x3da*-0x5+0x1*-0x3095));if(_0x40e6f7===_0xe6373f)break;else _0x3e2d80['push'](_0x3e2d80['shift']());}catch(_0x12794c){_0x3e2d80['push'](_0x3e2d80['shift']());}}}(_0x1227,-0x150f58+0x1220aa+0x10675c));const _0x12a191=(function(){const _0x468eae={_0x42cc32:0x213,_0x3a47ef:0x20e,_0x1ebb0f:0x20f};let _0x12717a=!![];return function(_0x3a018c,_0x4578b8){const _0xec8f4a=_0x12717a?function(){function _0x1547a1(_0x489fbd,_0x56eab8,_0xab8731,_0x196286){return _0x47d0(_0x489fbd- -0x389,_0x196286);}if(_0x4578b8){const _0x419af4=_0x4578b8[_0x1547a1(-_0x468eae._0x42cc32,-_0x468eae._0x3a47ef,-_0x468eae._0x1ebb0f,-0x207)](_0x3a018c,arguments);return _0x4578b8=null,_0x419af4;}}:function(){};return _0x12717a=![],_0xec8f4a;};}()),_0x5f55d9=_0x12a191(this,function(){const _0xcc5112={_0x41f381:0xc1,_0x1a6081:0xca,_0x5f5b08:0xbd,_0x37b9c7:0x5e,_0x3896d4:0x59,_0x2bbcc9:0x6b,_0x1aed3b:0x57,_0x526a35:0x61,_0x3a838f:0x61},_0x42300c={_0x113e60:0xb4};function _0x5b2998(_0x5b27f4,_0x271eac,_0x278501,_0x175345){return _0x47d0(_0x175345- -0x1c7,_0x5b27f4);}function _0xafe420(_0x2a03f3,_0x4224b0,_0x1575ea,_0x162556){return _0x47d0(_0x1575ea- -_0x42300c._0x113e60,_0x162556);}return _0x5f55d9[_0xafe420(_0xcc5112._0x41f381,_0xcc5112._0x1a6081,_0xcc5112._0x41f381,_0xcc5112._0x5f5b08)]()[_0x5b2998(-_0xcc5112._0x37b9c7,-_0xcc5112._0x3896d4,-_0xcc5112._0x2bbcc9,-0x61)]('(((.+)+)+)'+'+$')[_0x5b2998(-0x5c,-_0xcc5112._0x37b9c7,-0x5d,-0x52)]()['constructo'+'r'](_0x5f55d9)[_0x5b2998(-_0xcc5112._0x1aed3b,-0x63,-_0xcc5112._0x526a35,-_0xcc5112._0x3a838f)]('(((.+)+)+)'+'+$');});_0x5f55d9();import{delay,flush,put,select,take}from'redux-saga/effects';import{getCoreBackend}from'../../../../backend';import{apiCall}from'../../../../api/core';import{apiSubscribeSaga}from'../../../lib';import{userCustomNotification,NOTIFICATION_CODE}from'../../../notification';import{getFileEntryById}from'../file.reducer';import{updateFileEntryClearedAll,updateFileEntryClearedAllStatus,updateFileEntry,updateFileStats,clearFileStats}from'../file.action';function _0x1227(){const _0x528253=['971663MXyfZP','isArray','subscribeF','LOADING','SUCCESS','search','2458512PQQPUw','leStatsCha','8klORDL','377238XstBED','\x20with\x20id\x20','\x20is\x20not\x20fo','1024784ksmbvK','pointer','1031530hkztSV','1548366xBangm','File\x20entry','FILE_CLEAR','lesHandler','clearAllFi','toString','apply','1286990LygIzC','concat','fileSaga'];_0x1227=function(){return _0x528253;};return _0x1227();}function _0x47d0(_0x47d0a6,_0xd955a2){const _0x40d472=_0x1227();return _0x47d0=function(_0x2e3cb7,_0xabacdc){_0x2e3cb7=_0x2e3cb7-(0x1c09+-0x74f*0x4+0x292);let _0x4b9f26=_0x40d472[_0x2e3cb7];return _0x4b9f26;},_0x47d0(_0x47d0a6,_0xd955a2);}import{CLEAR_ALL_STATUS,FILE_STATS_BUFFER_INTERVAL}from'../file.constants';import{taskErrorSaga}from'../../../error';import{fetchFileEntry}from'./file-entry.saga';import{restoreCoreFile}from'../file.model';export function*throttleFileStatsChanged(_0x45e437){const _0x33b9ec={_0x4fd8a7:0xb2,_0xac71f1:0xa9,_0x3ea936:0xac,_0x29b408:0xad,_0x1a058e:0xd3,_0x951298:0xd1,_0x3e0885:0xcd},_0x3dbd9a={_0x406098:0x20b},_0x3f734b={_0x1ddd4e:0x235};function _0x1e42e3(_0x27ba04,_0x370206,_0x9eef11,_0x4b563c){return _0x47d0(_0x9eef11- -_0x3f734b._0x1ddd4e,_0x4b563c);}function _0x577309(_0x582ae8,_0x3e4b20,_0x15ca49,_0x2bb9ef){return _0x47d0(_0x2bb9ef- -_0x3dbd9a._0x406098,_0x3e4b20);}try{while(!![]){const _0xff1978=yield take(_0x45e437),_0x7ab6d0=yield flush(_0x45e437);let _0x18114e=[_0xff1978];Array[_0x577309(-_0x33b9ec._0x4fd8a7,-0x9d,-0xb5,-_0x33b9ec._0xac71f1)](_0x7ab6d0)&&(_0x18114e=_0x7ab6d0['reverse']()[_0x577309(-0xab,-_0x33b9ec._0x3ea936,-_0x33b9ec._0x29b408,-_0x33b9ec._0x3ea936)](_0xff1978)),yield put(updateFileStats(_0x18114e)),yield delay(FILE_STATS_BUFFER_INTERVAL);}}catch(_0x531910){yield taskErrorSaga('throttleFi'+_0x1e42e3(-_0x33b9ec._0x1a058e,-_0x33b9ec._0x951298,-_0x33b9ec._0x3e0885,-0xc8)+'nged',_0x531910);}}export function*fileSaga({roomId:_0xf983e3,fileId:_0x563626,fileStatsChannel:_0x311ea1}){const _0x5ea5a0={_0x2a09cc:0x216,_0x5a6f34:0x218,_0x36d01b:0x21f,_0x1743a0:0x2e2,_0xe23c8d:0x2ed,_0x2b1641:0x2e1,_0x2dba66:0x21a,_0xef359d:0x2e7,_0x3f5f4b:0x2ee,_0xa2d1df:0x217,_0x1ac1e4:0x21b,_0x57373a:0x227,_0x4e2c87:0x20e,_0x10a32c:0x2ec,_0x2d4248:0x2de,_0x5450f2:0x2e5,_0x15c356:0x2f0,_0x4ce780:0x2df,_0x336663:0x2dd},_0x5e41bd={_0x291253:0x182},_0x3c5e94={_0x45001f:0x389};function _0x468a34(_0x53fcdc,_0x287b7d,_0x3358b6,_0x743570){return _0x47d0(_0x287b7d- -_0x3c5e94._0x45001f,_0x53fcdc);}function _0x3d67ce(_0x2a2afb,_0x51435e,_0x1a430c,_0x5dd9dc){return _0x47d0(_0x1a430c-_0x5e41bd._0x291253,_0x2a2afb);}try{const _0x22aeaf=yield select(getFileEntryById,_0x563626),_0x3149b3=getCoreBackend();if(!_0x22aeaf)throw new Error(_0x468a34(-_0x5ea5a0._0x2a09cc,-_0x5ea5a0._0x5a6f34,-_0x5ea5a0._0x36d01b,-0x214)+_0x3d67ce(0x2e7,_0x5ea5a0._0x1743a0,_0x5ea5a0._0xe23c8d,_0x5ea5a0._0x2b1641)+_0x563626+(_0x468a34(-_0x5ea5a0._0x2dba66,-0x21d,-_0x5ea5a0._0x36d01b,-0x210)+'und'));if(_0x22aeaf[_0x3d67ce(0x2fb,_0x5ea5a0._0xef359d,0x2f0,_0x5ea5a0._0x3f5f4b)]&&!_0x22aeaf['httpLink']){const {httpLink:_0xf508f5,cleared:_0x4666f4}=(yield fetchFileEntry(_0x22aeaf[_0x468a34(-_0x5ea5a0._0xa2d1df,-_0x5ea5a0._0x1ac1e4,-_0x5ea5a0._0x57373a,-_0x5ea5a0._0x4e2c87)],_0xf983e3))||{};if(_0xf508f5)yield put(updateFileEntry({'id':_0x563626,'httpLink':_0xf508f5,'cleared':_0x4666f4}));}yield apiSubscribeSaga([_0x3149b3[_0x3d67ce(_0x5ea5a0._0x10a32c,_0x5ea5a0._0x2d4248,_0x5ea5a0._0x5450f2,_0x5ea5a0._0x15c356)+'ileInfo'],_0xf983e3,restoreCoreFile(_0x22aeaf)],function*_0x21e719(_0x1fae66){yield put(_0x311ea1,{'fileId':_0x563626,'stats':_0x1fae66});},{'onCleanup'(){return put(clearFileStats({'fileId':_0x563626}));}});}catch(_0x22d3af){yield taskErrorSaga(_0x3d67ce(_0x5ea5a0._0x4ce780,_0x5ea5a0._0x336663,0x2e2,0x2e4),_0x22d3af);}}export function*clearAllFilesHandler(_0xbe4d4d,_0x24e9d6){const _0x366db3={_0x4d1b06:0x78,_0xc2f657:0x210,_0x28c574:0x20b,_0x4606bf:0x205,_0x4f70ae:0x1fd,_0x59f34b:0x212,_0xd9ab3e:0x64,_0x56f550:0x70,_0x1a4a6f:0x63,_0x5137a9:0x214,_0x1c2602:0x1ff},_0x42bb59={_0x421462:0x97};function _0x3c5470(_0x4540bc,_0xe68e3e,_0x1f3d2d,_0x448eb6){return _0x47d0(_0x4540bc- -0xf7,_0x1f3d2d);}function _0x591f5e(_0x1bea6d,_0x5effb4,_0xf90a19,_0x3c7fea){return _0x47d0(_0x5effb4-_0x42bb59._0x421462,_0xf90a19);}try{yield put(updateFileEntryClearedAllStatus(CLEAR_ALL_STATUS[_0x3c5470(0x6d,_0x366db3._0x4d1b06,0x65,0x79)]));const _0x5b167e=getCoreBackend();yield apiCall(_0x5b167e[_0x591f5e(_0x366db3._0xc2f657,_0x366db3._0x28c574,0x209,_0x366db3._0x4606bf)+'les'],_0xbe4d4d),_0x24e9d6===_0xbe4d4d&&(yield put(updateFileEntryClearedAll(!![]))),yield put(userCustomNotification({'code':NOTIFICATION_CODE[_0x591f5e(_0x366db3._0x4f70ae,0x209,_0x366db3._0x59f34b,0x201)+'_ALL_SUCCE'+'SS']})),yield put(updateFileEntryClearedAllStatus(CLEAR_ALL_STATUS[_0x3c5470(0x6e,_0x366db3._0xd9ab3e,_0x366db3._0x56f550,_0x366db3._0x1a4a6f)]));}catch(_0x5919c9){yield taskErrorSaga('clearAllFi'+_0x591f5e(_0x366db3._0x5137a9,0x20a,0x216,_0x366db3._0x1c2602),_0x5919c9);}}