let g_wiggle_animation_running=![];function applyWiggleAnimationToPreview(v,U){const V={'srNQQ':function(X,A){return X(A);},'RzUAE':'#checkbox-'+'captions-g'+'raphics-wi'+'ggle','VpZSs':':checked','quYiC':function(X,A){return X!==A;},'diOEr':function(X,A){return X>A;},'ChIkz':'Wiggle\x20buf'+'fer\x20canvas'+'\x20not\x20ready'+',\x20skipping'+'\x20frame','BVpSu':function(X,A){return X(A);}};if(!V['srNQQ']($,V['RzUAE'])['is'](V['VpZSs'])){g_wiggle_animation_running=![];return;}const {dx:B,dy:G}=g_captions_styled['wiggleOffs'+'et'](U/(0x1*0x104d+0x2f*-0x9f+0x19*0xac)),W=document['getElement'+'ById']('captions-c'+'anvas-wigg'+'le-contain'+'er-canvas');(V['quYiC'](W['width'],window['g_wiggle_o'+'riginal_wi'+'dth'])||V['quYiC'](W['height'],window['g_wiggle_o'+'riginal_he'+'ight']))&&(console['log']('Wiggle\x20can'+'vas\x20dimens'+'ions\x20chang'+'ed\x20from',W['width'],'x',W['height'],'to',window['g_wiggle_o'+'riginal_wi'+'dth'],'x',window['g_wiggle_o'+'riginal_he'+'ight']),W['width']=window['g_wiggle_o'+'riginal_wi'+'dth'],W['height']=window['g_wiggle_o'+'riginal_he'+'ight']);const a=W['getContext']('2d');a['clearRect'](0x5f8+-0x45*0xb+-0x301,-0x8ea+0x1cd5+0x13eb*-0x1,W['width'],W['height']);if(window['g_wiggle_b'+'uffer_canv'+'as']&&V['diOEr'](g_wiggle_buffer_canvas['width'],0x217d+-0x635*-0x1+-0x27b2*0x1)&&V['diOEr'](g_wiggle_buffer_canvas['height'],0x1*0xe6b+0xe5c+0x35*-0x8b))a['drawImage'](g_wiggle_buffer_canvas,B,G);else{console['warn'](V['ChIkz']),g_wiggle_animation_running=![];return;}V['BVpSu'](requestAnimationFrame,X=>applyWiggleAnimationToPreview(v,X));}async function startWiggleAnimation(){const v={'GmEie':'#checkbox-'+'captions-g'+'raphics-wi'+'ggle','rBgZD':':checked','hUYuQ':'Wiggle\x20can'+'vas\x20initia'+'lized\x20with'+'\x20dimension'+'s:','uIpUr':function(f){return f();},'bRxMT':'canvas','zaIgc':'Creating\x20w'+'iggle\x20buff'+'er\x20canvas:','gJvbo':function(f,k,j,i,J,I){return f(k,j,i,J,I);},'rWwKh':'all','EdjAl':'Wiggle\x20buf'+'fer\x20render'+'\x20result:','qGGvv':'Wiggle\x20buf'+'fer\x20has\x20co'+'ntent:','DgTjw':function(f,k,j){return f(k,j);}};if(!$(v['GmEie'])['is'](v['rBgZD'])||g_wiggle_animation_running)return;g_wiggle_animation_running=!![];const U=await jsxProject['sequenceWi'+'dth'](),V=document['getElement'+'ById']('captions-c'+'anvas-cont'+'ainer-canv'+'as'),B=document['getElement'+'ById']('captions-c'+'anvas-wigg'+'le-contain'+'er-canvas');B['width']=V['width'],B['height']=V['height'],window['g_wiggle_o'+'riginal_wi'+'dth']=B['width'],window['g_wiggle_o'+'riginal_he'+'ight']=B['height'],console['log'](v['hUYuQ'],B['width'],'x',B['height']);const G=v['uIpUr'](test_76_get_caption_render_params);window['g_wiggle_b'+'uffer_canv'+'as']=document['createElem'+'ent'](v['bRxMT']),g_wiggle_buffer_canvas['width']=B['width'],g_wiggle_buffer_canvas['height']=B['height'],console['log'](v['zaIgc'],g_wiggle_buffer_canvas['width'],'x',g_wiggle_buffer_canvas['height']);const W=v['gJvbo'](test_74_render_captions_by_index,g_wiggle_buffer_canvas,0x3*-0xb6a+0x17*-0xd+-0xf5*-0x25,-0x219a+0x1820+0x2*0x4bd,G,v['rWwKh']);console['log'](v['EdjAl'],W);const a=g_wiggle_buffer_canvas['getContext']('2d'),X=a['getImageDa'+'ta'](-0x53+-0x240f+0x2462*0x1,-0x1a73+0x1aac+-0x39,g_wiggle_buffer_canvas['width'],g_wiggle_buffer_canvas['height']),A=X['data']['some'](f=>f!==-0xf*0x1e7+-0xf04+0x2b8d);console['log'](v['qGGvv'],A),v['DgTjw'](applyWiggleAnimationToPreview,U,performance['now']());}function updateWiggleBuffer(){const v={'FWREy':'Updating\x20w'+'iggle\x20buff'+'er\x20due\x20to\x20'+'position\x20c'+'hange','VFZmt':function(B){return B();},'dXgwb':function(B,G,W,a,X,A){return B(G,W,a,X,A);}};if(!g_wiggle_animation_running||!window['g_wiggle_b'+'uffer_canv'+'as'])return;console['log'](v['FWREy']);const U=v['VFZmt'](test_76_get_caption_render_params),V=g_wiggle_buffer_canvas['getContext']('2d');V['clearRect'](0x1e20+-0x2394+0x574,0xa52*0x1+0x1d*-0x133+-0x1*-0x1875,g_wiggle_buffer_canvas['width'],g_wiggle_buffer_canvas['height']),v['dXgwb'](test_74_render_captions_by_index,g_wiggle_buffer_canvas,0x210b+0x9d9*-0x2+0x43*-0x33,0xff6+-0x16a3+0x6ad,U,'all');}