async function tts_update_tracks_list(){const t={'IGCQf':'#tts-audio'+'-track','lUbUo':function(O,z){return O(z);},'KWuUg':function(O,z){return O(z);},'QpVNh':':selected','NlyIb':function(O,z){return O>=z;}};$(t['IGCQf'])['focus']();const K=t['lUbUo'](parseInt,await t['lUbUo'](jsxExecute,'app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));let e=parseInt(t['KWuUg']($,'#tts-audio'+'-track')['find'](t['QpVNh'])['val']());(isNaN(e)||t['NlyIb'](e,K))&&(e=K-(0x12a*0x1+0x547+-0x670)),$(t['IGCQf'])['html'](Array['from']({'length':K},(O,z)=>'<option\x20'+(z===e?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+z+'\x22>A'+(z+(0x108c*0x2+-0x1bc9+-0x61*0xe))+'</option>')['join'](''));}async function create_tts_audio_track(){const t={'oZpGB':function(e,O){return e(O);},'ilFYN':function(e,O){return e(O);},'dDtVJ':function(e,O){return e(O);},'aOrqw':'#tts-audio'+'-track','mVUsk':function(e,O){return e-O;}};let K=t['oZpGB'](parseInt,await t['oZpGB'](jsxExecute,'app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));return await t['ilFYN'](jsxExecute,'qe.project'+'.getActive'+'Sequence()'+'.addTracks'+'(0,\x200,\x201,\x20'+'1,\x20'+K+')'),K+=0x1e88+-0x2357+0x4d0,t['dDtVJ']($,t['aOrqw'])['html'](Array['from']({'length':K},(e,O)=>'<option\x20'+(O===K-(0x2b*0x2c+0x130c*-0x1+0x3*0x3e3)?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+O+'\x22>A'+(O+(-0x5cd+0x20*0x4f+-0x412*0x1))+'</option>')['join']('')),t['mVUsk'](K,-0x1*0x26ef+-0x4*0x8bf+0x24f6*0x2);}async function set_tts_audio_track_listeners(){const t={'bZzLI':function(K){return K();},'bXciM':'#tts-add-t'+'rack','PsMUc':'click'};$(t['bXciM'])['off'](t['PsMUc'])['on'](t['PsMUc'],async function(){await t['bZzLI'](create_tts_audio_track);});}function estimateAudioLength(t,K){const e={'LmvjU':function(h,V){return h/V;},'uoDOI':function(h,V){return h*V;},'CcPqY':function(h,V){return h%V;},'kPHCW':function(h,V){return h===V;}},O=Math['round'](e['LmvjU'](e['uoDOI'](e['LmvjU'](t,-0x136b+0xa1d*-0x3+0x34e2),0x1*0x230e+-0xec*-0x7+-0x6*0x6e1),K)),z=Math['floor'](e['LmvjU'](O,-0x212d+-0x247f+0x45e8*0x1)),y=e['CcPqY'](O,-0x1403+0x8*0xe+0x1*0x13cf);return e['kPHCW'](z,0x1684+0x155+-0x17d9)?y+'s':z+':'+String(y)['padStart'](-0xe*-0x15d+-0x167*-0x17+-0x3355,'0')+'min';}function numberWithCommas(t){return t['toString']()['replace'](/\B(?=(\d{3})+(?!\d))/g,',');}function validateTTSInput(){const t={'NNnlV':function(z,y){return z(y);},'mULLr':'#tts-text-'+'input'},K=['@','#','$','%','^','*','(',')','_','+','=','{','}','[',']','|','\x5c',':',';','\x22','<','>','/','`','~'],e=t['NNnlV']($,t['mULLr'])['val'](),O=[];return K['forEach'](z=>{e['includes'](z)&&O['push'](z);}),O;}