async function translate_captions(K,n,M){const Y=K;return tracker['event']('translate_'+'captions'),tracker['event']('translate_'+'captions:\x20'+'from\x20'+n+'\x20-\x20to\x20'+M),g_translate['load_capti'+'ons'](K,n,M),g_translate['segments_t'+'o_translat'+'e_text'](),await g_translate['translate_'+'text'](),Y['segments']=g_translate['translated'+'_text_to_s'+'egments'](),Y['words']=g_translate['fake_word_'+'level_accu'+'racy'](),Y['text']=g_translate['get_transl'+'ated_text'](),Y;}class CaptionsTranslate{['marker']='<t/>';['captions']=null;['original_t'+'ext']=null;['translated'+'_text']=null;['translated'+'_text_segm'+'ented']=null;['original_l'+'anguage']=null;['translate_'+'language']=null;['load_capti'+'ons'](K,n,M){this['captions']=K,this['original_l'+'anguage']=n,this['translate_'+'language']=M;}['segments_t'+'o_translat'+'e_text'](){const K={'tfktT':function(M,Y){return M+Y;}};let n='';this['captions']['segments']['forEach'](M=>{n+=K['tfktT'](''+this['marker'],M['text']);}),this['original_t'+'ext']=n;}async['translate_'+'text'](){const K={'nHJZO':function(g,h,P,w,R,G){return g(h,P,w,R,G);},'MQUqi':'applicatio'+'n/json;\x20ch'+'arset=UTF-'+'8','fFchp':function(g,h){return g*h;}},n=API_URL+('api/transl'+'ate/'),M={'license_key':apiKey_editai,'app_version':app_version,'text':this['original_t'+'ext'],'original_language':this['original_l'+'anguage'],'translate_language':this['translate_'+'language']},Y=await K['nHJZO'](retryFetch,n,{'method':'POST','body':JSON['stringify'](M),'headers':{'Content-type':K['MQUqi']}},0x1*0x19be+0xec2+-0x287d,-0x29*-0xc0+-0x2710+0xc38,K['fFchp']((-0xe9f+0xcff+0x1a3)*(-0x171f+0xba0+-0xbbb*-0x1),0xc*-0x24+0x10b+-0x1*-0x48d));this['translated'+'_text']=Y['data']['translated'+'_text'];}['translated'+'_text_to_s'+'egments'](){return this['translated'+'_text_segm'+'ented']=this['translated'+'_text']['split'](this['marker'])['filter'](K=>!!K)['map'](K=>K['trim']()),this['translated'+'_text_segm'+'ented']['forEach']((K,n)=>{this['captions']['segments'][n]['text']=K;}),this['captions']['segments'];}['fake_word_'+'level_accu'+'racy'](){const K={'fitCz':function(M,Y){return M/Y;},'KHHEV':function(M,Y){return M<Y;},'nfJTS':function(M,Y){return M===Y;},'IIsmP':function(M,Y){return M*Y;},'AnwLL':function(M,Y){return M===Y;},'xQxDW':function(M,Y){return M+Y;},'oKXnz':function(M,Y){return M*Y;}};let n=[];return this['captions']['segments']['forEach'](M=>{const Y=[],g=M['start'],h=M['end'],P=M['text']['split'](''),w=K['fitCz'](h-g,P['length']);let R=null,G=null,D=null;for(let C=0x1512+0x220b+-0x371d;K['KHHEV'](C,P['length']);C++){const J=P[C];K['nfJTS'](J,'\x20')?(D=g+K['IIsmP'](C,w),R!=null&&Y['push']({'end':D,'probability':-(-0x1b25+-0x1297*-0x1+0x7*0x139),'start':G,'started_with_space':!![],'text':R,'word':R}),R=G=D=null):K['AnwLL'](R,null)?(R=J,G=K['xQxDW'](g,K['IIsmP'](C,w))):R+=J;}R!=null&&(D=K['xQxDW'](g,K['oKXnz'](P['length'],w)),Y['push']({'end':D,'probability':-(0x1*0x1759+-0xac8+-0xc90),'start':G,'started_with_space':!![],'text':R,'word':R})),M['words']=Y,n['push'](...Y);}),n;}['get_transl'+'ated_text'](){return this['translated'+'_text'];}}g_translate=new CaptionsTranslate();