async function translate_captions(v,U,V){const B=v;return tracker['event']('translate_'+'captions'),tracker['event']('translate_'+'captions:\x20'+'from\x20'+U+'\x20-\x20to\x20'+V),g_translate['load_capti'+'ons'](v,U,V),g_translate['segments_t'+'o_translat'+'e_text'](),await g_translate['translate_'+'text'](),B['segments']=g_translate['translated'+'_text_to_s'+'egments'](),B['words']=g_translate['fake_word_'+'level_accu'+'racy'](),B['text']=g_translate['get_transl'+'ated_text'](),B;}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'](v,U,V){this['captions']=v,this['original_l'+'anguage']=U,this['translate_'+'language']=V;}['segments_t'+'o_translat'+'e_text'](){const v={'lpUvi':function(V,B){return V+B;}};let U='';this['captions']['segments']['forEach'](V=>{U+=v['lpUvi'](''+this['marker'],V['text']);}),this['original_t'+'ext']=U;}async['translate_'+'text'](){const v={'FqSyD':function(G,W){return G+W;},'SNCSX':function(G,W,a,X,A,f){return G(W,a,X,A,f);},'UCSGO':'POST','IfYhm':'applicatio'+'n/json;\x20ch'+'arset=UTF-'+'8','JNhCV':function(G,W){return G*W;}},U=v['FqSyD'](API_URL,'api/transl'+'ate/'),V={'license_key':apiKey_editai,'app_version':app_version,'text':this['original_t'+'ext'],'original_language':this['original_l'+'anguage'],'translate_language':this['translate_'+'language']},B=await v['SNCSX'](retryFetch,U,{'method':v['UCSGO'],'body':JSON['stringify'](V),'headers':{'Content-type':v['IfYhm']}},0x24e2*0x1+-0x1043+0x2*-0xa4e,-0x564+-0x239d+0x2ce9,v['JNhCV'](v['JNhCV'](-0x1b73+-0x1ac+0x1d22,-0xb*0x98+0xc*0x81+-0xb8*-0x1),0x2*-0x566+-0x24dd+0x3391*0x1));this['translated'+'_text']=B['data']['translated'+'_text'];}['translated'+'_text_to_s'+'egments'](){return this['translated'+'_text_segm'+'ented']=this['translated'+'_text']['split'](this['marker'])['filter'](v=>!!v)['map'](v=>v['trim']()),this['translated'+'_text_segm'+'ented']['forEach']((v,U)=>{this['captions']['segments'][U]['text']=v;}),this['captions']['segments'];}['fake_word_'+'level_accu'+'racy'](){const v={'CEEKM':function(V,B){return V/B;},'ZKfkQ':function(V,B){return V<B;},'bpfdW':function(V,B){return V===B;},'beRLZ':function(V,B){return V+B;},'yuyDB':function(V,B){return V*B;},'mAXzQ':function(V,B){return V!=B;},'fJvyI':function(V,B){return V===B;},'VnadT':function(V,B){return V!=B;},'zmhQu':function(V,B){return V+B;}};let U=[];return this['captions']['segments']['forEach'](V=>{const B=[],G=V['start'],W=V['end'],a=V['text']['split'](''),X=v['CEEKM'](W-G,a['length']);let A=null,f=null,k=null;for(let j=-0x1618+0x1f+-0x5*-0x465;v['ZKfkQ'](j,a['length']);j++){const J=a[j];v['bpfdW'](J,'\x20')?(k=v['beRLZ'](G,v['yuyDB'](j,X)),v['mAXzQ'](A,null)&&B['push']({'end':k,'probability':-(0xd79+0x1*0x5f9+-0x1371),'start':f,'started_with_space':!![],'text':A,'word':A}),A=f=k=null):v['fJvyI'](A,null)?(A=J,f=G+j*X):A+=J;}v['VnadT'](A,null)&&(k=v['zmhQu'](G,v['yuyDB'](a['length'],X)),B['push']({'end':k,'probability':-(0x5*0x511+-0xbb6*0x1+0x15*-0xa6),'start':f,'started_with_space':!![],'text':A,'word':A})),V['words']=B,U['push'](...B);}),U;}['get_transl'+'ated_text'](){return this['translated'+'_text'];}}g_translate=new CaptionsTranslate();