bbgfm 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x386d04=_0x3751;(function(_0x5060a6,_0x32e0ce){const _0x304cbf=_0x3751,_0x52d7c5=_0x5060a6();while(!![]){try{const _0x599392=parseInt(_0x304cbf(0x213))/0x1*(parseInt(_0x304cbf(0x1cc))/0x2)+parseInt(_0x304cbf(0x1c7))/0x3+-parseInt(_0x304cbf(0x1f4))/0x4+-parseInt(_0x304cbf(0x1ba))/0x5*(-parseInt(_0x304cbf(0x1fb))/0x6)+-parseInt(_0x304cbf(0x1b0))/0x7*(-parseInt(_0x304cbf(0x229))/0x8)+-parseInt(_0x304cbf(0x1bd))/0x9+-parseInt(_0x304cbf(0x212))/0xa;if(_0x599392===_0x32e0ce)break;else _0x52d7c5['push'](_0x52d7c5['shift']());}catch(_0x4867f7){_0x52d7c5['push'](_0x52d7c5['shift']());}}}(_0x13a5,0xaee21));import{execFileSync as _0x10cf6e}from'node:child_process';import{render as _0x4feb1f}from'ink';import{useState as _0x2b8b26,useEffect as _0x5b99fb,useRef as _0x5e5efb}from'react';import{Box as _0x205290,useInput as _0x1a274e,useApp as _0x1bf1bf}from'ink';const _0x4e894f={};_0x4e894f['id']=_0x386d04(0x20b),_0x4e894f[_0x386d04(0x1f1)]='en',_0x4e894f[_0x386d04(0x1d8)]=_0x386d04(0x1f7),_0x4e894f[_0x386d04(0x222)]=_0x386d04(0x1ca),_0x4e894f[_0x386d04(0x21f)]=_0x386d04(0x1cd),_0x4e894f[_0x386d04(0x1af)]=_0x386d04(0x1a8);const _0x1f8de9={};_0x1f8de9['id']=_0x386d04(0x1b3),_0x1f8de9[_0x386d04(0x1f1)]='zh',_0x1f8de9[_0x386d04(0x1d8)]=_0x386d04(0x1df),_0x1f8de9[_0x386d04(0x222)]=_0x386d04(0x21c),_0x1f8de9[_0x386d04(0x21f)]=_0x386d04(0x202),_0x1f8de9[_0x386d04(0x1af)]=_0x386d04(0x224);var R=[_0x4e894f,_0x1f8de9],G=_0x386d04(0x20b);import{useState as _0x3e9937,useCallback as _0x46ad3f,useRef as _0x395df5,useEffect as _0x22af57}from'react';import{tmpdir as _0x4b3943}from'node:os';import{join as _0x3c5cb1}from'node:path';import _0x15a845 from'node-mpv';var pe=process[_0x386d04(0x1fd)]===_0x386d04(0x1e7)?_0x386d04(0x1c5):_0x3c5cb1(_0x4b3943(),_0x386d04(0x1ce));function U(){const _0x5c73aa=_0x386d04,_0x878f47={};_0x878f47[_0x5c73aa(0x1f6)]=_0x5c73aa(0x1e2),_0x878f47[_0x5c73aa(0x22a)]=0x64,_0x878f47[_0x5c73aa(0x1d4)]=null,_0x878f47[_0x5c73aa(0x1cf)]=null;const _0x2cd1e6={};_0x2cd1e6[_0x5c73aa(0x1b6)]=!0x0,_0x2cd1e6[_0x5c73aa(0x1ae)]=!0x1,_0x2cd1e6[_0x5c73aa(0x1b7)]=pe;let _0x11e0d9=_0x395df5(null),_0x13768c=_0x395df5(0x64),_0x1c911d=_0x395df5(_0x5c73aa(0x1e2)),_0x3cb1ef=_0x395df5(Promise[_0x5c73aa(0x20e)]()),_0x495af9=_0x395df5(null),_0x3e14a1=_0x395df5(null),_0x1deb3b=_0x395df5(0x0),[_0x4f45f8,_0x38aef3]=_0x3e9937(_0x878f47),_0x1a0988=_0x46ad3f(_0x1f465b=>{const _0x1156ee=_0x5c73aa;_0x1c911d[_0x1156ee(0x1b5)]=_0x1f465b,_0x38aef3(_0x1bcbc4=>({..._0x1bcbc4,'status':_0x1f465b}));},[]),_0xdb5483=_0x46ad3f(_0x69bb1a=>(_0x3cb1ef[_0x5c73aa(0x1b5)]=_0x3cb1ef[_0x5c73aa(0x1b5)][_0x5c73aa(0x1f3)](()=>{})[_0x5c73aa(0x217)](_0x69bb1a)[_0x5c73aa(0x1f3)](()=>{}),_0x3cb1ef[_0x5c73aa(0x1b5)]),[]),_0x1d6c5d=_0x46ad3f(()=>{const _0xf68bd4=_0x5c73aa;if(_0x3e14a1[_0xf68bd4(0x1b5)])return;let _0x2a4da4=!0x1,_0x497b61=0x0;_0x3e14a1[_0xf68bd4(0x1b5)]=setInterval(async()=>{const _0x5d82d0=_0xf68bd4;if(_0x2a4da4)return;let _0x5d0880=_0x11e0d9[_0x5d82d0(0x1b5)];if(_0x5d0880?.[_0x5d82d0(0x204)]()){_0x2a4da4=!0x0;try{let _0x42c36d=await _0x5d0880[_0x5d82d0(0x1d5)](_0x5d82d0(0x1f2)),_0x4c1654=parseFloat(_0x42c36d);if(isNaN(_0x4c1654))return;let _0x5407d1=Math[_0x5d82d0(0x1e3)](0xa,_0x4c1654/0x14);_0x497b61=_0x497b61<0.001?_0x5407d1:_0x497b61*0.96+_0x5407d1*0.04;let _0xe01543=_0x5407d1-_0x497b61*0.7,_0x4b1290=Math[_0x5d82d0(0x1c6)](_0x497b61*1.5,0.05);_0x1deb3b[_0x5d82d0(0x1b5)]=Math[_0x5d82d0(0x1c6)](0x0,Math[_0x5d82d0(0x1ed)](0x1,_0xe01543/_0x4b1290));}catch{}finally{_0x2a4da4=!0x1;}}},0x32);},[]),_0x47df41=_0x46ad3f(()=>{const _0x27c263=_0x5c73aa;_0x3e14a1[_0x27c263(0x1b5)]&&(clearInterval(_0x3e14a1[_0x27c263(0x1b5)]),_0x3e14a1[_0x27c263(0x1b5)]=null),_0x1deb3b[_0x27c263(0x1b5)]=0x0;},[]),_0x5c2951=_0x46ad3f(()=>(_0x11e0d9[_0x5c73aa(0x1b5)]||(_0x11e0d9[_0x5c73aa(0x1b5)]=new _0x15a845(_0x2cd1e6,[_0x5c73aa(0x1e9)])),_0x11e0d9[_0x5c73aa(0x1b5)]),[]),_0x5d5d1c=_0x46ad3f(async _0xe9814=>{const _0x339ed2=_0x5c73aa;_0x1a0988(_0x339ed2(0x228)),_0x38aef3(_0x1d8cc=>({..._0x1d8cc,'channel':_0xe9814,'error':null})),await _0xdb5483(async()=>{const _0x45fb7d=_0x339ed2;let _0x31c0ec=_0x5c2951();_0x31c0ec[_0x45fb7d(0x204)]()||(await _0x31c0ec[_0x45fb7d(0x220)](),await _0x31c0ec[_0x45fb7d(0x22a)](_0x13768c[_0x45fb7d(0x1b5)])),await _0x31c0ec[_0x45fb7d(0x1b1)](_0xe9814[_0x45fb7d(0x21f)]);})[_0x339ed2(0x217)](()=>{const _0x4412bd=_0x339ed2;_0x1a0988(_0x4412bd(0x1d7)),_0x1d6c5d();},_0xc781b5=>{const _0x3df6d3=_0x339ed2;let _0xa91e82=_0xc781b5 instanceof Error?_0xc781b5[_0x3df6d3(0x1ea)]:String(_0xc781b5);_0x1a0988(_0x3df6d3(0x1cf)),_0x38aef3(_0x344551=>({..._0x344551,'error':_0xa91e82}));});},[_0x5c2951,_0x1a0988,_0xdb5483,_0x1d6c5d]),_0x4e91b3=_0x46ad3f(async()=>{const _0x4005ec=_0x5c73aa;let _0x5abd0f=_0x1c911d[_0x4005ec(0x1b5)];_0x5abd0f!==_0x4005ec(0x1d7)&&_0x5abd0f!==_0x4005ec(0x214)||await _0xdb5483(async()=>{const _0x5e58a0=_0x4005ec;let _0x4348d2=_0x5c2951();_0x4348d2[_0x5e58a0(0x204)]()&&(_0x5abd0f===_0x5e58a0(0x1d7)?(await _0x4348d2[_0x5e58a0(0x1c2)](),_0x1a0988(_0x5e58a0(0x214))):(await _0x4348d2[_0x5e58a0(0x21a)](),_0x1a0988(_0x5e58a0(0x1d7))));});},[_0x5c2951,_0x1a0988,_0xdb5483]),_0x2403b8=_0x46ad3f(_0x36e84a=>{const _0x187269=_0x5c73aa;let _0x5eff10=Math[_0x187269(0x1c6)](0x0,Math[_0x187269(0x1ed)](0x64,_0x13768c[_0x187269(0x1b5)]+_0x36e84a));_0x13768c[_0x187269(0x1b5)]=_0x5eff10,_0x38aef3(_0x41a26b=>({..._0x41a26b,'volume':_0x5eff10})),_0x495af9[_0x187269(0x1b5)]&&clearTimeout(_0x495af9[_0x187269(0x1b5)]),_0x495af9[_0x187269(0x1b5)]=setTimeout(()=>{_0xdb5483(async()=>{const _0x4c9604=_0x3751;let _0x48ba10=_0x5c2951();_0x48ba10[_0x4c9604(0x204)]()&&await _0x48ba10[_0x4c9604(0x22a)](_0x13768c[_0x4c9604(0x1b5)]);});},0x32);},[_0x5c2951,_0xdb5483]),_0x3a6d3d=_0x46ad3f(async()=>{const _0xa1be5e=_0x5c73aa;_0x47df41(),_0x495af9[_0xa1be5e(0x1b5)]&&clearTimeout(_0x495af9[_0xa1be5e(0x1b5)]),await _0xdb5483(async()=>{const _0x33ec29=_0xa1be5e;let _0x5468b0=_0x5c2951();_0x5468b0[_0x33ec29(0x204)]()&&(await _0x5468b0[_0x33ec29(0x227)](),await _0x5468b0[_0x33ec29(0x1fe)]());}),_0x11e0d9[_0xa1be5e(0x1b5)]=null,_0x1a0988(_0xa1be5e(0x20a));},[_0x5c2951,_0x1a0988,_0xdb5483,_0x47df41]);const _0x1c042b={..._0x4f45f8};return _0x1c042b[_0x5c73aa(0x203)]=_0x1deb3b,_0x1c042b[_0x5c73aa(0x1da)]=_0x5d5d1c,_0x1c042b[_0x5c73aa(0x1dd)]=_0x4e91b3,_0x1c042b[_0x5c73aa(0x1b4)]=_0x2403b8,_0x1c042b[_0x5c73aa(0x227)]=_0x3a6d3d,(_0x22af57(()=>()=>{const _0xd5bb96=_0x5c73aa;_0x3e14a1[_0xd5bb96(0x1b5)]&&clearInterval(_0x3e14a1[_0xd5bb96(0x1b5)]),_0x495af9[_0xd5bb96(0x1b5)]&&clearTimeout(_0x495af9[_0xd5bb96(0x1b5)]);let _0x2488f1=_0x11e0d9[_0xd5bb96(0x1b5)];_0x2488f1?.[_0xd5bb96(0x204)]()&&_0x2488f1[_0xd5bb96(0x227)]()[_0xd5bb96(0x217)](()=>_0x2488f1[_0xd5bb96(0x1fe)]())[_0xd5bb96(0x1f3)](()=>{});},[]),_0x1c042b);}import{Box as _0x44610c,Text as _0x1b1aa3}from'ink';import{jsx as _0x3912b1,jsxs as _0xef298f}from'react/jsx-runtime';var fe=_0x386d04(0x20f)[_0x386d04(0x1ee)]();function _0x3751(_0x31b3f9,_0xfa4443){_0x31b3f9=_0x31b3f9-0x1a8;const _0x13a555=_0x13a5();let _0x3751fd=_0x13a555[_0x31b3f9];return _0x3751fd;}function Y(){const _0x225a09=_0x386d04,_0x397404={};_0x397404[_0x225a09(0x1c8)]=_0x225a09(0x208),_0x397404[_0x225a09(0x200)]=!0x0,_0x397404[_0x225a09(0x201)]=fe;const _0x36ec84={};return _0x36ec84[_0x225a09(0x210)]=!0x0,_0x36ec84[_0x225a09(0x201)]=_0x225a09(0x20d),_0xef298f(_0x44610c,{'flexDirection':_0x225a09(0x1f0),'children':[_0x3912b1(_0x1b1aa3,_0x397404),_0x3912b1(_0x1b1aa3,_0x36ec84)]});}import{Box as _0x19444b,Text as _0x21b967}from'ink';import{jsx as _0x21916e,jsxs as _0x1a3dfe}from'react/jsx-runtime';function $({channels:_0x288d68,selectedIndex:_0x5a4287,activeChannelId:_0x20988e}){const _0x36b427=_0x386d04,_0x1af767={};return _0x1af767[_0x36b427(0x200)]=!0x0,_0x1af767[_0x36b427(0x1e6)]=!0x0,_0x1af767[_0x36b427(0x1c8)]=_0x36b427(0x1d2),_0x1af767[_0x36b427(0x201)]=_0x36b427(0x1dc),_0x1a3dfe(_0x19444b,{'flexDirection':_0x36b427(0x1f0),'marginTop':0x1,'marginBottom':0x1,'children':[_0x21916e(_0x21b967,_0x1af767),_0x21916e(_0x19444b,{'flexDirection':_0x36b427(0x1f0),'marginTop':0x1,'children':_0x288d68[_0x36b427(0x1de)]((_0x6629a0,_0x58c5c5)=>{const _0x2a3f2f=_0x36b427;let _0x4025e0=_0x58c5c5===_0x5a4287,_0x1030c3=_0x6629a0['id']===_0x20988e;const _0x3374d={};_0x3374d[_0x2a3f2f(0x1c8)]=_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1d2),_0x3374d[_0x2a3f2f(0x201)]=_0x4025e0?'▸':'\x20';const _0x3a963d={};_0x3a963d[_0x2a3f2f(0x1c8)]=_0x1030c3||_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1f9),_0x3a963d[_0x2a3f2f(0x201)]=_0x1030c3?'♫':'\x20';const _0x4ccd4f={};_0x4ccd4f[_0x2a3f2f(0x1c8)]=_0x4025e0?_0x2a3f2f(0x208):_0x2a3f2f(0x1d2),_0x4ccd4f[_0x2a3f2f(0x200)]=_0x4025e0,_0x4ccd4f[_0x2a3f2f(0x201)]=_0x6629a0[_0x2a3f2f(0x1d8)];const _0x440d9a={};return _0x440d9a[_0x2a3f2f(0x210)]=!0x0,_0x440d9a[_0x2a3f2f(0x201)]=['\x20',_0x6629a0[_0x2a3f2f(0x222)]],_0x1a3dfe(_0x19444b,{'gap':0x1,'children':[_0x21916e(_0x21b967,_0x3374d),_0x21916e(_0x21b967,_0x3a963d),_0x21916e(_0x21b967,_0x4ccd4f),_0x1a3dfe(_0x21b967,_0x440d9a)]},_0x6629a0['id']);})})]});}import{Box as _0x5d24e4,Text as _0x1a60af}from'ink';import{useEffect as _0x11c21c,useRef as _0x88a97a,useState as _0x71a20b}from'react';import{Box as _0x26bb4a,Text as _0x302328}from'ink';import{jsx as _0x52056d}from'react/jsx-runtime';var b=0x10,F=['\x20','▁','▂','▃','▄','▅','▆','▇','█'],be=0x28,Te=0.7,Re=0.82,q=0.06,I=((()=>{const _0x1e137c=_0x386d04;let _0x3714f1=[];for(let _0x5d4530=0x0;_0x5d4530<b;_0x5d4530++){let _0x592ed3=_0x5d4530/(b-0x1),_0x4fbd26=Math[_0x1e137c(0x1d3)](-Math[_0x1e137c(0x1e3)]((_0x592ed3-0.55)*2.8,0x2))*0.95;_0x3714f1[_0x1e137c(0x221)](Math[_0x1e137c(0x1c6)](q,_0x4fbd26));}return _0x3714f1;})()),J=Array[_0x386d04(0x219)]({'length':b},(_0x18c18b,_0x3e6465)=>3.1+_0x3e6465*0.37),X=Array[_0x386d04(0x219)]({'length':b},(_0x175df3,_0x14df57)=>_0x14df57*1.13),Se=((()=>{const _0x13d71e=_0x386d04;let _0x34adf6=[];for(let _0x4e0694=0x0;_0x4e0694<b;_0x4e0694++){let _0x3f6013=_0x4e0694/(b-0x1),_0x4d0844=Math[_0x13d71e(0x1d3)](-Math[_0x13d71e(0x1e3)]((_0x3f6013-0.5)*0x3,0x2)),_0x129505=Math[_0x13d71e(0x1e4)](0x5b*(0x1-_0x4d0844)+0x0*_0x4d0844),_0x15cca1=Math[_0x13d71e(0x1e4)](0xff*(0x1-_0x4d0844)+0xe5*_0x4d0844),_0x2c310d=Math[_0x13d71e(0x1e4)](0x9f*(0x1-_0x4d0844)+0xff*_0x4d0844);_0x34adf6[_0x13d71e(0x221)]('#'+_0x129505[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0')+_0x15cca1[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0')+_0x2c310d[_0x13d71e(0x1e5)](0x10)[_0x13d71e(0x1fc)](0x2,'0'));}return _0x34adf6;})());function we(_0x359cbc){const _0x1f75d0=_0x386d04;let _0x22913e=Math[_0x1f75d0(0x1e4)](_0x359cbc*(F[_0x1f75d0(0x1c3)]-0x1));return F[Math[_0x1f75d0(0x1c6)](0x0,Math[_0x1f75d0(0x1ed)](F[_0x1f75d0(0x1c3)]-0x1,_0x22913e))]||'\x20';}function O(_0x9ac22f){return _0x9ac22f<q?q:_0x9ac22f>0x1?0x1:_0x9ac22f;}function Z({status:_0x45060d,audioLevelRef:_0x2de7b1}){const _0x3bec02=_0x386d04;let [_0x23a7c7,_0x187f5d]=_0x71a20b([...I]),_0x458566=_0x88a97a([...I]);return _0x11c21c(()=>{const _0x35fdcb=_0x3751;let _0x48d4cd=Date[_0x35fdcb(0x205)](),_0x62c585=setInterval(()=>{const _0x5a4fd6=_0x35fdcb;let _0x2eaf5c=(Date[_0x5a4fd6(0x205)]()-_0x48d4cd)/0x3e8,_0x321aab=_0x2de7b1[_0x5a4fd6(0x1b5)],_0x5b0824=_0x458566[_0x5a4fd6(0x1b5)],_0x5df09c=[],_0xde5530=_0x45060d===_0x5a4fd6(0x1d7)||_0x45060d===_0x5a4fd6(0x228);if(_0xde5530&&_0x321aab>0.01)for(let _0x5e949a=0x0;_0x5e949a<b;_0x5e949a++){let _0x345d80=I[_0x5e949a],_0x196fee=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*J[_0x5e949a]+X[_0x5e949a])*0.18,_0x297501=O(_0x321aab*_0x345d80+_0x196fee*_0x321aab),_0x20b3ef=_0x297501>_0x5b0824[_0x5e949a]?_0x5b0824[_0x5e949a]+(_0x297501-_0x5b0824[_0x5e949a])*Te:Math[_0x5a4fd6(0x1c6)](_0x297501,_0x5b0824[_0x5e949a]*Re);_0x5df09c[_0x5a4fd6(0x221)](O(_0x20b3ef));}else{if(_0xde5530)for(let _0x50cad6=0x0;_0x50cad6<b;_0x50cad6++){let _0x1a11ae=I[_0x50cad6],_0x5f0a79=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*J[_0x50cad6]+X[_0x50cad6])*0.15;_0x5df09c[_0x5a4fd6(0x221)](O(_0x1a11ae+_0x5f0a79));}else for(let _0x2f3d73=0x0;_0x2f3d73<b;_0x2f3d73++){let _0x515363=Math[_0x5a4fd6(0x1f8)](_0x2eaf5c*0.83+_0x2f3d73*0.3)*0.04;_0x5df09c[_0x5a4fd6(0x221)](O(I[_0x2f3d73]+_0x515363));}}_0x458566[_0x5a4fd6(0x1b5)]=_0x5df09c,_0x187f5d(_0x5df09c);},be);return()=>clearInterval(_0x62c585);},[_0x45060d]),_0x52056d(_0x26bb4a,{'gap':0x1,'children':_0x23a7c7[_0x3bec02(0x1de)]((_0xb47d14,_0x5b2445)=>_0x52056d(_0x302328,{'color':Se[_0x5b2445],'children':we(_0xb47d14)},_0x5b2445))});}import{jsx as _0x294e7a,jsxs as _0x2a652c}from'react/jsx-runtime';function Ce(_0x11adac){const _0x45855b=_0x386d04,_0x519b70={};_0x519b70[_0x45855b(0x1ff)]=_0x45855b(0x1cb),_0x519b70[_0x45855b(0x1c8)]=_0x45855b(0x1f9);const _0x2e9939={};_0x2e9939[_0x45855b(0x1ff)]=_0x45855b(0x1d6),_0x2e9939[_0x45855b(0x1c8)]=_0x45855b(0x1be);const _0x2cdcad={};_0x2cdcad[_0x45855b(0x1ff)]=_0x45855b(0x1ac),_0x2cdcad[_0x45855b(0x1c8)]=_0x45855b(0x208);const _0x4a2f4c={};_0x4a2f4c[_0x45855b(0x1ff)]=_0x45855b(0x21b),_0x4a2f4c[_0x45855b(0x1c8)]=_0x45855b(0x1be);const _0x1e91fa={};_0x1e91fa[_0x45855b(0x1ff)]=_0x45855b(0x1fa),_0x1e91fa[_0x45855b(0x1c8)]=_0x45855b(0x1c4);const _0x52c14f={};_0x52c14f[_0x45855b(0x1ff)]=_0x45855b(0x223),_0x52c14f[_0x45855b(0x1c8)]=_0x45855b(0x1c4);const _0x4ab8f7={};return _0x4ab8f7[_0x45855b(0x1e2)]=_0x519b70,_0x4ab8f7[_0x45855b(0x228)]=_0x2e9939,_0x4ab8f7[_0x45855b(0x1d7)]=_0x2cdcad,_0x4ab8f7[_0x45855b(0x214)]=_0x4a2f4c,_0x4ab8f7[_0x45855b(0x20a)]=_0x1e91fa,_0x4ab8f7[_0x45855b(0x1cf)]=_0x52c14f,_0x4ab8f7[_0x11adac];}function Pe(_0x4fda86){const _0x5b95fc=_0x386d04;let _0x3ed874=Math[_0x5b95fc(0x1e4)](_0x4fda86/0x5),_0x427162=0x14-_0x3ed874;return'█'[_0x5b95fc(0x209)](_0x3ed874)+'░'[_0x5b95fc(0x209)](_0x427162);}function ee({channel:_0x1e7019,status:_0x14e4e1,volume:_0x4c1421,audioLevelRef:_0x157d3c,error:_0x289dd4}){const _0x125fdd=_0x386d04;let _0x2f9bcc=Ce(_0x14e4e1);const _0x1c49c7={};_0x1c49c7[_0x125fdd(0x200)]=!0x0,_0x1c49c7[_0x125fdd(0x1c8)]=_0x125fdd(0x1d2),_0x1c49c7[_0x125fdd(0x201)]=_0x125fdd(0x1e1);const _0x1bd18e={};_0x1bd18e[_0x125fdd(0x1c8)]=_0x2f9bcc[_0x125fdd(0x1c8)],_0x1bd18e[_0x125fdd(0x200)]=!0x0,_0x1bd18e[_0x125fdd(0x201)]=['[',_0x2f9bcc[_0x125fdd(0x1ff)],']'];const _0xdc44f2={};_0xdc44f2[_0x125fdd(0x210)]=!0x0,_0xdc44f2[_0x125fdd(0x201)]=_0x125fdd(0x225);const _0xc35886={};return _0xc35886[_0x125fdd(0x210)]=!0x0,_0xc35886[_0x125fdd(0x201)]=_0x125fdd(0x1eb),_0x2a652c(_0x5d24e4,{'flexDirection':_0x125fdd(0x1f0),'borderStyle':_0x125fdd(0x1e4),'borderColor':_0x14e4e1===_0x125fdd(0x1d7)?_0x125fdd(0x208):_0x125fdd(0x1f9),'paddingX':0x2,'paddingY':0x1,'children':[_0x2a652c(_0x5d24e4,{'justifyContent':_0x125fdd(0x1ab),'children':[_0x294e7a(_0x1a60af,_0x1c49c7),_0x2a652c(_0x1a60af,_0x1bd18e)]}),_0x1e7019?_0x2a652c(_0x5d24e4,{'flexDirection':_0x125fdd(0x1f0),'marginTop':0x1,'children':[_0x2a652c(_0x5d24e4,{'gap':0x1,'alignItems':_0x125fdd(0x207),'children':[_0x294e7a(_0x1a60af,{'color':_0x125fdd(0x208),'bold':!0x0,'children':_0x1e7019[_0x125fdd(0x1d8)]}),_0x294e7a(Z,{'status':_0x14e4e1,'audioLevelRef':_0x157d3c})]}),_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x294e7a(_0x1a60af,{'dimColor':!0x0,'children':_0x1e7019[_0x125fdd(0x1af)]})})]}):_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x294e7a(_0x1a60af,_0xdc44f2)}),_0x2a652c(_0x5d24e4,{'marginTop':0x1,'gap':0x1,'children':[_0x294e7a(_0x1a60af,_0xc35886),_0x294e7a(_0x1a60af,{'color':_0x125fdd(0x208),'children':Pe(_0x4c1421)}),_0x2a652c(_0x1a60af,{'bold':!0x0,'children':[_0x4c1421,'%']})]}),_0x289dd4&&_0x294e7a(_0x5d24e4,{'marginTop':0x1,'children':_0x2a652c(_0x1a60af,{'color':_0x125fdd(0x1c4),'children':[_0x125fdd(0x1db),_0x289dd4]})})]});}import{Box as _0x828481,Text as _0x290589}from'ink';import{jsx as _0x226906,jsxs as _0x52667a}from'react/jsx-runtime';function te(){const _0x1f5ceb=_0x386d04,_0x4d542f={};_0x4d542f[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x4d542f[_0x1f5ceb(0x200)]=!0x0,_0x4d542f[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1c0);const _0x1562e9={};_0x1562e9[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x1562e9[_0x1f5ceb(0x200)]=!0x0,_0x1562e9[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1c9);const _0x56b47d={};_0x56b47d[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x56b47d[_0x1f5ceb(0x200)]=!0x0,_0x56b47d[_0x1f5ceb(0x201)]=_0x1f5ceb(0x1b8);const _0x12fb9a={};return _0x12fb9a[_0x1f5ceb(0x1c8)]=_0x1f5ceb(0x1d2),_0x12fb9a[_0x1f5ceb(0x200)]=!0x0,_0x12fb9a[_0x1f5ceb(0x201)]='q',_0x52667a(_0x828481,{'gap':0x2,'marginTop':0x1,'children':[_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x4d542f),_0x1f5ceb(0x1d1)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x1562e9),_0x1f5ceb(0x1d9)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x56b47d),_0x1f5ceb(0x206)]}),_0x52667a(_0x290589,{'dimColor':!0x0,'children':[_0x226906(_0x290589,_0x12fb9a),_0x1f5ceb(0x218)]})]});}function _0x13a5(){const _0x399097=['indexOf','stop','connecting','2698288VzbdQW','volume','Blockchain\x20Live\x20Broadcast\x20|\x20News\x20·\x20Analysis\x20·\x20Culture','initialChannel','\x20\x20Install\x20via:','space-between','ON\x20AIR','\x20\x20\x20\x20choco\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(choco)','verbose','desc','7AiJSSE','load','\x0a\x20\x20mpv\x20is\x20required\x20but\x20not\x20found.\x0a','bbg-cn','adjustVolume','current','audio_only','socket','+/-','which','4667055HXbtvs','downArrow','exit','6333021gpcJGN','yellow','\x20\x20\x20\x20sudo\x20pacman\x20-S\x20mpv\x20\x20\x20\x20\x20\x20\x20#\x20Arch','j/k','\x20\x20\x20\x20brew\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20macOS','pause','length','red','\x5c\x5c.\x5cpipe\x5cbbgfm-mpv','max','2710668cNyNdT','color','Space','BLOCKCHAIN\x20·\x20NEWS\x20&\x20TALK','IDLE','142BgbuSx','https://koe.bbg.fm/channels/1/playlist.m3u8','bbgfm-mpv.sock','error','--channel','\x20switch\x20channel','white','exp','channel','getProperty','CONNECTING...','playing','name','\x20play/stop','play','Error:\x20','\x20CHANNELS\x20','togglePause','map','BBG\x20·\x20中文','upArrow','NOW\x20PLAYING','idle','pow','round','toString','underline','win32','where','--af=@astats:lavfi=[astats=metadata=1:measure_overall=Peak_level+RMS_level:reset=1]','message','VOL','argv','min','trimStart','stdio','column','slug','af-metadata/astats/lavfi.astats.Overall.Peak_level','catch','1063264tmjEhD','findIndex','status','BBG\x20·\x20ENGLISH','sin','gray','STOPPED','6XQBIHM','padStart','platform','quit','text','bold','children','https://koe.bbg.fm/channels/2/playlist.m3u8','audioLevelRef','isRunning','now','\x20volume','center','green','repeat','stopped','bbg-en','slice','\x20\x20Blockchain\x20AI\x20Radio\x20—\x20Terminal\x20Player\x20v0.1.0','resolve','\x0a\x20██████╗\x20██████╗\x20\x20██████╗\x20\x20\x20\x20███████╗███╗\x20\x20\x20███╗\x0a\x20██╔══██╗██╔══██╗██╔════╝\x20\x20\x20\x20██╔════╝████╗\x20████║\x0a\x20██████╔╝██████╔╝██║\x20\x20███╗\x20\x20\x20█████╗\x20\x20██╔████╔██║\x0a\x20██╔══██╗██╔══██╗██║\x20\x20\x20██║\x20\x20\x20██╔══╝\x20\x20██║╚██╔╝██║\x0a\x20██████╔╝██████╔╝╚██████╔╝██╗██║\x20\x20\x20\x20\x20██║\x20╚═╝\x20██║\x0a\x20╚═════╝\x20╚═════╝\x20\x20╚═════╝\x20╚═╝╚═╝\x20\x20\x20\x20\x20╚═╝\x20\x20\x20\x20\x20╚═╝\x0a','dimColor','ignore','9725960Pcewuy','6819lAqvnS','paused','\x20\x20\x20\x20scoop\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(scoop)','mpv','then','\x20quit','from','resume','PAUSED','区块链\x20·\x20新闻资讯','\x20\x20\x20\x20sudo\x20apt\x20install\x20mpv\x20\x20\x20\x20\x20#\x20Debian/Ubuntu','\x20\x20\x20\x20winget\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(winget)\x0a','url','start','push','tag','ERROR','区块链实时广播\x20|\x20新闻\x20·\x20深度\x20·\x20文化','No\x20channel\x20selected\x20—\x20press\x20Enter\x20to\x20play'];_0x13a5=function(){return _0x399097;};return _0x13a5();}import{jsx as _0x29488c,jsxs as _0x15b363}from'react/jsx-runtime';function re({initialChannel:_0x2ae331}){const _0x78f9b1=_0x386d04;let {exit:_0x32e058}=_0x1bf1bf(),_0xc30717=U(),_0x4c3554=_0x5e5efb(_0xc30717);_0x4c3554[_0x78f9b1(0x1b5)]=_0xc30717;let _0x1eb5a6=R[_0x78f9b1(0x1f5)](_0x5cb8ce=>_0x5cb8ce['id']===(_0x2ae331??G)),[_0x3b971c,_0x452010]=_0x2b8b26(Math[_0x78f9b1(0x1c6)](0x0,_0x1eb5a6)),_0x3b5aab=_0x5e5efb(_0x3b971c);_0x3b5aab[_0x78f9b1(0x1b5)]=_0x3b971c,_0x5b99fb(()=>{const _0x31181d=_0x78f9b1;let _0x21eff1=R[_0x3b5aab[_0x31181d(0x1b5)]];_0x21eff1&&_0x4c3554[_0x31181d(0x1b5)][_0x31181d(0x1da)](_0x21eff1);},[]);let _0x47c8a6=_0x49f813=>{const _0x484aee=_0x78f9b1;_0x452010(_0x49f813),_0x3b5aab[_0x484aee(0x1b5)]=_0x49f813;let _0x46f153=R[_0x49f813];_0x46f153&&_0x4c3554[_0x484aee(0x1b5)][_0x484aee(0x1da)](_0x46f153);};const _0x4b61b7={};return _0x4b61b7[_0x78f9b1(0x1d4)]=_0xc30717[_0x78f9b1(0x1d4)],_0x4b61b7[_0x78f9b1(0x1f6)]=_0xc30717[_0x78f9b1(0x1f6)],_0x4b61b7[_0x78f9b1(0x22a)]=_0xc30717[_0x78f9b1(0x22a)],_0x4b61b7[_0x78f9b1(0x203)]=_0xc30717[_0x78f9b1(0x203)],_0x4b61b7[_0x78f9b1(0x1cf)]=_0xc30717[_0x78f9b1(0x1cf)],(_0x1a274e((_0x35be49,_0x5afdb6)=>{const _0x5be1cb=_0x78f9b1;let _0x2254e3=_0x4c3554[_0x5be1cb(0x1b5)];if(_0x35be49==='q'){_0x2254e3[_0x5be1cb(0x227)]()[_0x5be1cb(0x217)](()=>_0x32e058());return;}if(_0x35be49==='k'||_0x5afdb6[_0x5be1cb(0x1e0)]){let _0x513cae=_0x3b5aab[_0x5be1cb(0x1b5)];_0x47c8a6(_0x513cae>0x0?_0x513cae-0x1:R[_0x5be1cb(0x1c3)]-0x1);return;}if(_0x35be49==='j'||_0x5afdb6[_0x5be1cb(0x1bb)]){let _0x62256=_0x3b5aab[_0x5be1cb(0x1b5)];_0x47c8a6(_0x62256<R[_0x5be1cb(0x1c3)]-0x1?_0x62256+0x1:0x0);return;}if(_0x35be49==='\x20'){if(_0x2254e3[_0x5be1cb(0x1f6)]===_0x5be1cb(0x1d7)||_0x2254e3[_0x5be1cb(0x1f6)]===_0x5be1cb(0x228))_0x2254e3[_0x5be1cb(0x227)]();else{let _0x46c673=R[_0x3b5aab[_0x5be1cb(0x1b5)]];_0x46c673&&_0x2254e3[_0x5be1cb(0x1da)](_0x46c673);}return;}if(_0x35be49==='+'||_0x35be49==='='){_0x2254e3[_0x5be1cb(0x1b4)](0x5);return;}if(_0x35be49==='-'){_0x2254e3[_0x5be1cb(0x1b4)](-0x5);return;}}),_0x15b363(_0x205290,{'flexDirection':_0x78f9b1(0x1f0),'paddingX':0x1,'children':[_0x29488c(Y,{}),_0x29488c(ee,_0x4b61b7),_0x29488c($,{'channels':R,'selectedIndex':_0x3b971c,'activeChannelId':_0xc30717[_0x78f9b1(0x1d4)]?.['id']??null}),_0x29488c(te,{})]}));}import{jsx as _0x522428}from'react/jsx-runtime';function ke(){const _0x53b5c2=_0x386d04;let _0x567d7b=process[_0x53b5c2(0x1fd)]===_0x53b5c2(0x1e7)?_0x53b5c2(0x1e8):_0x53b5c2(0x1b9);try{const _0x2f27f9={};_0x2f27f9[_0x53b5c2(0x1ef)]=_0x53b5c2(0x211),_0x10cf6e(_0x567d7b,[_0x53b5c2(0x216)],_0x2f27f9);}catch{console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1b2)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1aa)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1c1)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x21d)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1bf)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x215)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x1ad)),console[_0x53b5c2(0x1cf)](_0x53b5c2(0x21e)),process[_0x53b5c2(0x1bc)](0x1);}}function De(){const _0x1a057a=_0x386d04;let _0x2b33e2=process[_0x1a057a(0x1ec)][_0x1a057a(0x20c)](0x2),_0x3dde71=_0x2b33e2[_0x1a057a(0x226)](_0x1a057a(0x1d0));const _0xaae046={};return _0xaae046[_0x1a057a(0x1d4)]=_0x3dde71!==-0x1?_0x2b33e2[_0x3dde71+0x1]:void 0x0,_0xaae046;}ke();var {channel:je}=De();const _0x9323fa={};_0x9323fa[_0x386d04(0x1a9)]=je,_0x4feb1f(_0x522428(re,_0x9323fa));
2
+ const _0x45e04c=_0xb59e;(function(_0x2ef859,_0x2982ef){const _0x3062ff=_0xb59e,_0x5a66d7=_0x2ef859();while(!![]){try{const _0x121a53=parseInt(_0x3062ff(0x1fb))/0x1+parseInt(_0x3062ff(0x206))/0x2+-parseInt(_0x3062ff(0x27c))/0x3+parseInt(_0x3062ff(0x211))/0x4+-parseInt(_0x3062ff(0x280))/0x5+parseInt(_0x3062ff(0x1fc))/0x6*(parseInt(_0x3062ff(0x27e))/0x7)+parseInt(_0x3062ff(0x25a))/0x8*(-parseInt(_0x3062ff(0x272))/0x9);if(_0x121a53===_0x2982ef)break;else _0x5a66d7['push'](_0x5a66d7['shift']());}catch(_0x19b936){_0x5a66d7['push'](_0x5a66d7['shift']());}}}(_0x4164,0x2f2c9));import{execFileSync as _0x14ce39}from'node:child_process';import{render as _0x19ffc2}from'ink';import{useState as _0x25050a,useEffect as _0x3a79b9,useRef as _0x3c8836}from'react';function _0xb59e(_0x2e4ce9,_0x303e75){_0x2e4ce9=_0x2e4ce9-0x1f1;const _0x41641d=_0x4164();let _0xb59e96=_0x41641d[_0x2e4ce9];return _0xb59e96;}import{Box as _0x4e2228,useInput as _0x556897,useApp as _0x3f1c79}from'ink';const _0x2cafff={};_0x2cafff['id']=_0x45e04c(0x27a),_0x2cafff[_0x45e04c(0x267)]='en',_0x2cafff[_0x45e04c(0x22b)]=_0x45e04c(0x265),_0x2cafff[_0x45e04c(0x22d)]=_0x45e04c(0x222),_0x2cafff[_0x45e04c(0x209)]=_0x45e04c(0x238),_0x2cafff[_0x45e04c(0x24e)]=_0x45e04c(0x23d);const _0x5f5435={};_0x5f5435['id']=_0x45e04c(0x287),_0x5f5435[_0x45e04c(0x267)]='zh',_0x5f5435[_0x45e04c(0x22b)]=_0x45e04c(0x236),_0x5f5435[_0x45e04c(0x22d)]=_0x45e04c(0x26d),_0x5f5435[_0x45e04c(0x209)]=_0x45e04c(0x202),_0x5f5435[_0x45e04c(0x24e)]=_0x45e04c(0x1f1);var R=[_0x2cafff,_0x5f5435],G=_0x45e04c(0x27a);import{useState as _0x5a7741,useCallback as _0x1520fb,useRef as _0x3803bc,useEffect as _0x203165}from'react';import{tmpdir as _0x27311e}from'node:os';import{join as _0x486e5e}from'node:path';import _0x34d8b4 from'node-mpv';var ye=process[_0x45e04c(0x212)]===_0x45e04c(0x25c)?_0x45e04c(0x208):_0x486e5e(_0x27311e(),_0x45e04c(0x277));function Y(){const _0x1292b6=_0x45e04c,_0x3b79c5={};_0x3b79c5[_0x1292b6(0x1f2)]=_0x1292b6(0x20e),_0x3b79c5[_0x1292b6(0x289)]=0x64,_0x3b79c5[_0x1292b6(0x269)]=null,_0x3b79c5[_0x1292b6(0x278)]=null;const _0x5709b8={};_0x5709b8[_0x1292b6(0x219)]=!0x0,_0x5709b8[_0x1292b6(0x279)]=!0x1,_0x5709b8[_0x1292b6(0x21d)]=ye;let _0x47e93a=_0x3803bc(null),_0x9731c6=_0x3803bc(0x64),_0x209399=_0x3803bc(_0x1292b6(0x20e)),_0x580607=_0x3803bc(Promise[_0x1292b6(0x1fa)]()),_0x295151=_0x3803bc(null),_0x1d440f=_0x3803bc(null),_0x3de55f=_0x3803bc(0x0),[_0x5f2f6d,_0x242eec]=_0x5a7741(_0x3b79c5),_0x5da914=_0x1520fb(_0x5be3fe=>{const _0x5dd1b2=_0x1292b6;_0x209399[_0x5dd1b2(0x263)]=_0x5be3fe,_0x242eec(_0x1badff=>({..._0x1badff,'status':_0x5be3fe}));},[]),_0x3a374a=_0x1520fb(_0x4014e1=>(_0x580607[_0x1292b6(0x263)]=_0x580607[_0x1292b6(0x263)][_0x1292b6(0x281)](()=>{})[_0x1292b6(0x23b)](_0x4014e1)[_0x1292b6(0x281)](()=>{}),_0x580607[_0x1292b6(0x263)]),[]),_0x336203=_0x1520fb(()=>{const _0x5189ae=_0x1292b6;if(_0x1d440f[_0x5189ae(0x263)])return;let _0x5dbf01=!0x1,_0x491216=0x0;_0x1d440f[_0x5189ae(0x263)]=setInterval(async()=>{const _0x121dde=_0x5189ae;if(_0x5dbf01)return;let _0x3959ce=_0x47e93a[_0x121dde(0x263)];if(_0x3959ce?.[_0x121dde(0x275)]()){_0x5dbf01=!0x0;try{let _0x3660a9=await _0x3959ce[_0x121dde(0x247)](_0x121dde(0x27b)),_0x5be1b6=parseFloat(_0x3660a9);if(isNaN(_0x5be1b6))return;let _0x49f826=Math[_0x121dde(0x264)](0xa,_0x5be1b6/0x14);_0x491216=_0x491216<0.001?_0x49f826:_0x491216*0.96+_0x49f826*0.04;let _0x381706=_0x49f826-_0x491216*0.7,_0x22d4a8=Math[_0x121dde(0x270)](_0x491216*1.5,0.05);_0x3de55f[_0x121dde(0x263)]=Math[_0x121dde(0x270)](0x0,Math[_0x121dde(0x282)](0x1,_0x381706/_0x22d4a8));}catch{}finally{_0x5dbf01=!0x1;}}},0x32);},[]),_0x43f195=_0x1520fb(()=>{const _0xdd2a5=_0x1292b6;_0x1d440f[_0xdd2a5(0x263)]&&(clearInterval(_0x1d440f[_0xdd2a5(0x263)]),_0x1d440f[_0xdd2a5(0x263)]=null),_0x3de55f[_0xdd2a5(0x263)]=0x0;},[]),_0xf54bb=_0x1520fb(()=>(_0x47e93a[_0x1292b6(0x263)]||(_0x47e93a[_0x1292b6(0x263)]=new _0x34d8b4(_0x5709b8,[_0x1292b6(0x217)])),_0x47e93a[_0x1292b6(0x263)]),[]),_0x52ca6f=_0x1520fb(async _0x1a2f19=>{const _0x14c228=_0x1292b6;_0x5da914(_0x14c228(0x233)),_0x242eec(_0x18c064=>({..._0x18c064,'channel':_0x1a2f19,'error':null})),await _0x3a374a(async()=>{const _0x5caf0c=_0x14c228;let _0x5ab2af=_0xf54bb();_0x5ab2af[_0x5caf0c(0x275)]()||(await _0x5ab2af[_0x5caf0c(0x22e)](),await _0x5ab2af[_0x5caf0c(0x289)](_0x9731c6[_0x5caf0c(0x263)])),await _0x5ab2af[_0x5caf0c(0x21b)](_0x1a2f19[_0x5caf0c(0x209)]);})[_0x14c228(0x23b)](()=>{const _0x1c7f5d=_0x14c228;_0x5da914(_0x1c7f5d(0x20d)),_0x336203();},_0x2fc771=>{const _0x452ec0=_0x14c228;let _0x522678=_0x2fc771 instanceof Error?_0x2fc771[_0x452ec0(0x242)]:String(_0x2fc771);_0x5da914(_0x452ec0(0x278)),_0x242eec(_0x4693e4=>({..._0x4693e4,'error':_0x522678}));});},[_0xf54bb,_0x5da914,_0x3a374a,_0x336203]),_0x1cce5a=_0x1520fb(async()=>{const _0x154b3d=_0x1292b6;let _0x1cd2b3=_0x209399[_0x154b3d(0x263)];_0x1cd2b3!==_0x154b3d(0x20d)&&_0x1cd2b3!==_0x154b3d(0x276)||await _0x3a374a(async()=>{const _0x5d69a7=_0x154b3d;let _0x5078a7=_0xf54bb();_0x5078a7[_0x5d69a7(0x275)]()&&(_0x1cd2b3===_0x5d69a7(0x20d)?(await _0x5078a7[_0x5d69a7(0x257)](),_0x5da914(_0x5d69a7(0x276))):(await _0x5078a7[_0x5d69a7(0x216)](),_0x5da914(_0x5d69a7(0x20d))));});},[_0xf54bb,_0x5da914,_0x3a374a]),_0x2497b0=_0x1520fb(_0x4e9b6f=>{const _0xcd547=_0x1292b6;let _0x9562aa=Math[_0xcd547(0x270)](0x0,Math[_0xcd547(0x282)](0x64,_0x9731c6[_0xcd547(0x263)]+_0x4e9b6f));_0x9731c6[_0xcd547(0x263)]=_0x9562aa,_0x242eec(_0xfdca18=>({..._0xfdca18,'volume':_0x9562aa})),_0x295151[_0xcd547(0x263)]&&clearTimeout(_0x295151[_0xcd547(0x263)]),_0x295151[_0xcd547(0x263)]=setTimeout(()=>{_0x3a374a(async()=>{const _0x2c955a=_0xb59e;let _0x5e6ce6=_0xf54bb();_0x5e6ce6[_0x2c955a(0x275)]()&&await _0x5e6ce6[_0x2c955a(0x289)](_0x9731c6[_0x2c955a(0x263)]);});},0x32);},[_0xf54bb,_0x3a374a]),_0x3f9fa5=_0x1520fb(async()=>{const _0x2707d3=_0x1292b6;_0x43f195(),_0x295151[_0x2707d3(0x263)]&&clearTimeout(_0x295151[_0x2707d3(0x263)]),await _0x3a374a(async()=>{const _0x5ecacf=_0x2707d3;let _0x255807=_0xf54bb();_0x255807[_0x5ecacf(0x275)]()&&(await _0x255807[_0x5ecacf(0x21c)](),await _0x255807[_0x5ecacf(0x286)]());}),_0x47e93a[_0x2707d3(0x263)]=null,_0x5da914(_0x2707d3(0x244));},[_0xf54bb,_0x5da914,_0x3a374a,_0x43f195]);const _0xe9d7b={..._0x5f2f6d};return _0xe9d7b[_0x1292b6(0x1fd)]=_0x3de55f,_0xe9d7b[_0x1292b6(0x274)]=_0x52ca6f,_0xe9d7b[_0x1292b6(0x262)]=_0x1cce5a,_0xe9d7b[_0x1292b6(0x207)]=_0x2497b0,_0xe9d7b[_0x1292b6(0x21c)]=_0x3f9fa5,(_0x203165(()=>()=>{const _0x552911=_0x1292b6;_0x1d440f[_0x552911(0x263)]&&clearInterval(_0x1d440f[_0x552911(0x263)]),_0x295151[_0x552911(0x263)]&&clearTimeout(_0x295151[_0x552911(0x263)]);let _0x3a8458=_0x47e93a[_0x552911(0x263)];_0x3a8458?.[_0x552911(0x275)]()&&_0x3a8458[_0x552911(0x21c)]()[_0x552911(0x23b)](()=>_0x3a8458[_0x552911(0x286)]())[_0x552911(0x281)](()=>{});},[]),_0xe9d7b);}import{Box as _0x91f86e,Text as _0x43f667}from'ink';import{jsx as _0x2e1ab3,jsxs as _0x44a9b1}from'react/jsx-runtime';var be=_0x45e04c(0x259),ve=_0x45e04c(0x245)[_0x45e04c(0x253)]();function Q(){const _0x632fa6=_0x45e04c,_0x3914fd={};_0x3914fd[_0x632fa6(0x248)]=_0x632fa6(0x1f8),_0x3914fd[_0x632fa6(0x215)]=!0x0,_0x3914fd[_0x632fa6(0x24f)]=ve;const _0x40b767={};return _0x40b767[_0x632fa6(0x246)]=!0x0,_0x40b767[_0x632fa6(0x24f)]=[_0x632fa6(0x1f7),be],_0x44a9b1(_0x91f86e,{'flexDirection':_0x632fa6(0x1f3),'children':[_0x2e1ab3(_0x43f667,_0x3914fd),_0x44a9b1(_0x43f667,_0x40b767)]});}import{Box as _0x191901,Text as _0x1d6694}from'ink';import{jsx as _0x5d8055,jsxs as _0x3941f5}from'react/jsx-runtime';function Z({channels:_0x538b58,selectedIndex:_0x3c77fa,activeChannelId:_0x9c97c3}){const _0x4dfa26=_0x45e04c,_0x27812={};return _0x27812[_0x4dfa26(0x215)]=!0x0,_0x27812[_0x4dfa26(0x230)]=!0x0,_0x27812[_0x4dfa26(0x248)]=_0x4dfa26(0x239),_0x27812[_0x4dfa26(0x24f)]=_0x4dfa26(0x258),_0x3941f5(_0x191901,{'flexDirection':_0x4dfa26(0x1f3),'marginTop':0x1,'marginBottom':0x1,'children':[_0x5d8055(_0x1d6694,_0x27812),_0x5d8055(_0x191901,{'flexDirection':_0x4dfa26(0x1f3),'marginTop':0x1,'children':_0x538b58[_0x4dfa26(0x266)]((_0x27a058,_0x17fa44)=>{const _0x1cf0bf=_0x4dfa26;let _0x1b6979=_0x17fa44===_0x3c77fa,_0x2612f0=_0x27a058['id']===_0x9c97c3;const _0x3fe4ca={};_0x3fe4ca[_0x1cf0bf(0x248)]=_0x1b6979?_0x1cf0bf(0x1f8):_0x1cf0bf(0x239),_0x3fe4ca[_0x1cf0bf(0x24f)]=_0x1b6979?'▸':'\x20';const _0x5288b6={};_0x5288b6[_0x1cf0bf(0x248)]=_0x2612f0||_0x1b6979?_0x1cf0bf(0x1f8):_0x1cf0bf(0x234),_0x5288b6[_0x1cf0bf(0x24f)]=_0x2612f0?'♫':'\x20';const _0x162e52={};_0x162e52[_0x1cf0bf(0x248)]=_0x1b6979?_0x1cf0bf(0x1f8):_0x1cf0bf(0x239),_0x162e52[_0x1cf0bf(0x215)]=_0x1b6979,_0x162e52[_0x1cf0bf(0x24f)]=_0x27a058[_0x1cf0bf(0x22b)];const _0x7066dc={};return _0x7066dc[_0x1cf0bf(0x246)]=!0x0,_0x7066dc[_0x1cf0bf(0x24f)]=['\x20',_0x27a058[_0x1cf0bf(0x22d)]],_0x3941f5(_0x191901,{'gap':0x1,'children':[_0x5d8055(_0x1d6694,_0x3fe4ca),_0x5d8055(_0x1d6694,_0x5288b6),_0x5d8055(_0x1d6694,_0x162e52),_0x3941f5(_0x1d6694,_0x7066dc)]},_0x27a058['id']);})})]});}import{Box as _0x34d212,Text as _0x13c911}from'ink';import{useEffect as _0x38aeb5,useRef as _0x4caf59,useState as _0x5f81a9}from'react';function _0x4164(){const _0x4bca02=['STOPPED','getHours','item','\x20\x20\x20\x20winget\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(winget)\x0a','desc','children','Error:\x20','+/-','initialChannel','trimStart','join','key','\x20play/stop','pause','\x20CHANNELS\x20','0.2.1','104zFqphp','argv','win32','\x0a\x20\x20mpv\x20is\x20required\x20but\x20not\x20found.\x0a','padStart','red','which','sin','togglePause','current','pow','BBG\x20·\x20ENGLISH','map','slug','data','channel','Loading...','slice','mpv','区块链\x20·\x20新闻资讯','yellow','\x1b]8;;https://bbg.fm\x07bbg.fm\x1b]8;;\x07','max','View\x20more\x20at\x20','136251RkibAg','getFullYear','play','isRunning','paused','bbgfm-mpv.sock','error','verbose','bbg-en','af-metadata/astats/lavfi.astats.Overall.Peak_level','624927cgXXpl','ON\x20AIR','122430ARLntf','indexOf','261220SPfdFd','catch','min','upArrow','getDate','NOW\x20PLAYING','quit','bbg-cn','No\x20news\x20available','volume','\x20\x20\x20\x20sudo\x20pacman\x20-S\x20mpv\x20\x20\x20\x20\x20\x20\x20#\x20Arch','区块链实时广播\x20|\x20新闻\x20·\x20深度\x20·\x20文化','status','column','CONNECTING...','repeat','content','\x20\x20Blockchain\x20AI\x20Radio\x20—\x20Terminal\x20Player\x20v','green','\x20switch\x20channel','resolve','86392zUKDqJ','12qTeaLc','audioLevelRef','IDLE','downArrow','stdio','center','https://koe.bbg.fm/channels/2/playlist.m3u8','where','getMonth','Space','480622dsCvXJ','adjustVolume','\x5c\x5c.\x5cpipe\x5cbbgfm-mpv','url','\x20NEWS\x20','findIndex','\x20quit','playing','idle','j/k','VOL','1155608KPfLLN','platform','json','split','bold','resume','--af=@astats:lavfi=[astats=metadata=1:measure_overall=Peak_level+RMS_level:reset=1]','\x20\x20Install\x20via:','audio_only','getMinutes','load','stop','socket','exp','--channel','toString','length','BLOCKCHAIN\x20·\x20NEWS\x20&\x20TALK','title','push','PAUSED','published_at','No\x20channel\x20selected\x20—\x20press\x20Enter\x20to\x20play','exit','ignore','\x20\x20\x20\x20brew\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20macOS','name','from','tag','start','space-between','underline','ERROR','\x20\x20\x20\x20choco\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(choco)','connecting','gray','\x20\x20\x20\x20sudo\x20apt\x20install\x20mpv\x20\x20\x20\x20\x20#\x20Debian/Ubuntu','BBG\x20·\x20中文','text','https://koe.bbg.fm/channels/1/playlist.m3u8','white','&channel=','then','?size=','Blockchain\x20Live\x20Broadcast\x20|\x20News\x20·\x20Analysis\x20·\x20Culture','https://koe.bbg.fm/api/news2','round','Fragment','\x20\x20\x20\x20scoop\x20install\x20mpv\x20\x20\x20\x20\x20\x20\x20\x20#\x20Windows\x20(scoop)','message','\x20volume','stopped','\x0a\x20██████╗\x20██████╗\x20\x20██████╗\x20\x20\x20\x20███████╗███╗\x20\x20\x20███╗\x0a\x20██╔══██╗██╔══██╗██╔════╝\x20\x20\x20\x20██╔════╝████╗\x20████║\x0a\x20██████╔╝██████╔╝██║\x20\x20███╗\x20\x20\x20█████╗\x20\x20██╔████╔██║\x0a\x20██╔══██╗██╔══██╗██║\x20\x20\x20██║\x20\x20\x20██╔══╝\x20\x20██║╚██╔╝██║\x0a\x20██████╔╝██████╔╝╚██████╔╝██╗██║\x20\x20\x20\x20\x20██║\x20╚═╝\x20██║\x0a\x20╚═════╝\x20╚═════╝\x20\x20╚═════╝\x20╚═╝╚═╝\x20\x20\x20\x20\x20╚═╝\x20\x20\x20\x20\x20╚═╝\x0a','dimColor','getProperty','color','now'];_0x4164=function(){return _0x4bca02;};return _0x4164();}import{Box as _0x2c75d6,Text as _0x345d8f}from'ink';import{jsx as _0x28848e}from'react/jsx-runtime';var v=0x10,K=['\x20','▁','▂','▃','▄','▅','▆','▇','█'],Ne=0x28,Ie=0.7,Ae=0.82,U=0.06,O=((()=>{const _0x1916b2=_0x45e04c;let _0x2b425f=[];for(let _0x31ad27=0x0;_0x31ad27<v;_0x31ad27++){let _0x44bf37=_0x31ad27/(v-0x1),_0x460ecb=Math[_0x1916b2(0x21e)](-Math[_0x1916b2(0x264)]((_0x44bf37-0.55)*2.8,0x2))*0.95;_0x2b425f[_0x1916b2(0x224)](Math[_0x1916b2(0x270)](U,_0x460ecb));}return _0x2b425f;})()),ee=Array[_0x45e04c(0x22c)]({'length':v},(_0x553d2f,_0x3aba99)=>3.1+_0x3aba99*0.37),te=Array[_0x45e04c(0x22c)]({'length':v},(_0x580cce,_0x4117c3)=>_0x4117c3*1.13),_e=((()=>{const _0x1ccf8a=_0x45e04c;let _0x2b2f20=[];for(let _0x501d84=0x0;_0x501d84<v;_0x501d84++){let _0x377ca6=_0x501d84/(v-0x1),_0x679eea=Math[_0x1ccf8a(0x21e)](-Math[_0x1ccf8a(0x264)]((_0x377ca6-0.5)*0x3,0x2)),_0x3cc729=Math[_0x1ccf8a(0x23f)](0x5b*(0x1-_0x679eea)+0x0*_0x679eea),_0x1880a7=Math[_0x1ccf8a(0x23f)](0xff*(0x1-_0x679eea)+0xe5*_0x679eea),_0x495fee=Math[_0x1ccf8a(0x23f)](0x9f*(0x1-_0x679eea)+0xff*_0x679eea);_0x2b2f20[_0x1ccf8a(0x224)]('#'+_0x3cc729[_0x1ccf8a(0x220)](0x10)[_0x1ccf8a(0x25e)](0x2,'0')+_0x1880a7[_0x1ccf8a(0x220)](0x10)[_0x1ccf8a(0x25e)](0x2,'0')+_0x495fee[_0x1ccf8a(0x220)](0x10)[_0x1ccf8a(0x25e)](0x2,'0'));}return _0x2b2f20;})());function Ee(_0x3b8df5){const _0x5b3e45=_0x45e04c;let _0xda0995=Math[_0x5b3e45(0x23f)](_0x3b8df5*(K[_0x5b3e45(0x221)]-0x1));return K[Math[_0x5b3e45(0x270)](0x0,Math[_0x5b3e45(0x282)](K[_0x5b3e45(0x221)]-0x1,_0xda0995))]||'\x20';}function V(_0x44ef3a){return _0x44ef3a<U?U:_0x44ef3a>0x1?0x1:_0x44ef3a;}function re({status:_0x2c232a,audioLevelRef:_0x317925}){const _0x5ee0c2=_0x45e04c;let [_0x1dd4f6,_0x55594d]=_0x5f81a9([...O]),_0x3640b8=_0x4caf59([...O]);return _0x38aeb5(()=>{const _0x535f5d=_0xb59e;let _0x1110e7=Date[_0x535f5d(0x249)](),_0x139efc=setInterval(()=>{const _0x8b2d69=_0x535f5d;let _0x42ce77=(Date[_0x8b2d69(0x249)]()-_0x1110e7)/0x3e8,_0xd7b23b=_0x317925[_0x8b2d69(0x263)],_0x14bb22=_0x3640b8[_0x8b2d69(0x263)],_0x4a574a=[],_0x491d4a=_0x2c232a===_0x8b2d69(0x20d)||_0x2c232a===_0x8b2d69(0x233);if(_0x491d4a&&_0xd7b23b>0.01)for(let _0x28f3eb=0x0;_0x28f3eb<v;_0x28f3eb++){let _0x8272e2=O[_0x28f3eb],_0x46cd3a=Math[_0x8b2d69(0x261)](_0x42ce77*ee[_0x28f3eb]+te[_0x28f3eb])*0.18,_0xa85c86=V(_0xd7b23b*_0x8272e2+_0x46cd3a*_0xd7b23b),_0x15154b=_0xa85c86>_0x14bb22[_0x28f3eb]?_0x14bb22[_0x28f3eb]+(_0xa85c86-_0x14bb22[_0x28f3eb])*Ie:Math[_0x8b2d69(0x270)](_0xa85c86,_0x14bb22[_0x28f3eb]*Ae);_0x4a574a[_0x8b2d69(0x224)](V(_0x15154b));}else{if(_0x491d4a)for(let _0x46d97b=0x0;_0x46d97b<v;_0x46d97b++){let _0xb66fa1=O[_0x46d97b],_0x10d66c=Math[_0x8b2d69(0x261)](_0x42ce77*ee[_0x46d97b]+te[_0x46d97b])*0.15;_0x4a574a[_0x8b2d69(0x224)](V(_0xb66fa1+_0x10d66c));}else for(let _0x2a0c5f=0x0;_0x2a0c5f<v;_0x2a0c5f++){let _0x12edbd=Math[_0x8b2d69(0x261)](_0x42ce77*0.83+_0x2a0c5f*0.3)*0.04;_0x4a574a[_0x8b2d69(0x224)](V(O[_0x2a0c5f]+_0x12edbd));}}_0x3640b8[_0x8b2d69(0x263)]=_0x4a574a,_0x55594d(_0x4a574a);},Ne);return()=>clearInterval(_0x139efc);},[_0x2c232a]),_0x28848e(_0x2c75d6,{'gap':0x1,'children':_0x1dd4f6[_0x5ee0c2(0x266)]((_0x19dd31,_0x19e1af)=>_0x28848e(_0x345d8f,{'color':_e[_0x19e1af],'children':Ee(_0x19dd31)},_0x19e1af))});}import{jsx as _0x3e7a7a,jsxs as _0x2bc697}from'react/jsx-runtime';function Le(_0x485c21){const _0x2d84e6=_0x45e04c,_0x3517d5={};_0x3517d5[_0x2d84e6(0x237)]=_0x2d84e6(0x1fe),_0x3517d5[_0x2d84e6(0x248)]=_0x2d84e6(0x234);const _0x183a78={};_0x183a78[_0x2d84e6(0x237)]=_0x2d84e6(0x1f4),_0x183a78[_0x2d84e6(0x248)]=_0x2d84e6(0x26e);const _0x9e8a0={};_0x9e8a0[_0x2d84e6(0x237)]=_0x2d84e6(0x27d),_0x9e8a0[_0x2d84e6(0x248)]=_0x2d84e6(0x1f8);const _0x11bf13={};_0x11bf13[_0x2d84e6(0x237)]=_0x2d84e6(0x225),_0x11bf13[_0x2d84e6(0x248)]=_0x2d84e6(0x26e);const _0x35abed={};_0x35abed[_0x2d84e6(0x237)]=_0x2d84e6(0x24a),_0x35abed[_0x2d84e6(0x248)]=_0x2d84e6(0x25f);const _0x4d7df0={};_0x4d7df0[_0x2d84e6(0x237)]=_0x2d84e6(0x231),_0x4d7df0[_0x2d84e6(0x248)]=_0x2d84e6(0x25f);const _0x31f063={};return _0x31f063[_0x2d84e6(0x20e)]=_0x3517d5,_0x31f063[_0x2d84e6(0x233)]=_0x183a78,_0x31f063[_0x2d84e6(0x20d)]=_0x9e8a0,_0x31f063[_0x2d84e6(0x276)]=_0x11bf13,_0x31f063[_0x2d84e6(0x244)]=_0x35abed,_0x31f063[_0x2d84e6(0x278)]=_0x4d7df0,_0x31f063[_0x485c21];}function Me(_0x1f98b3){const _0x5ca04b=_0x45e04c;let _0x5a278e=Math[_0x5ca04b(0x23f)](_0x1f98b3/0x5),_0x59f903=0x14-_0x5a278e;return'█'[_0x5ca04b(0x1f5)](_0x5a278e)+'░'[_0x5ca04b(0x1f5)](_0x59f903);}function oe({channel:_0x4df0b3,status:_0x32eeb6,volume:_0x5342dd,audioLevelRef:_0x6cbb63,error:_0x2a69d8}){const _0x129836=_0x45e04c;let _0xd62218=Le(_0x32eeb6);const _0x32a004={};_0x32a004[_0x129836(0x215)]=!0x0,_0x32a004[_0x129836(0x248)]=_0x129836(0x239),_0x32a004[_0x129836(0x24f)]=_0x129836(0x285);const _0x595bda={};_0x595bda[_0x129836(0x248)]=_0xd62218[_0x129836(0x248)],_0x595bda[_0x129836(0x215)]=!0x0,_0x595bda[_0x129836(0x24f)]=['[',_0xd62218[_0x129836(0x237)],']'];const _0x3ecb0e={};_0x3ecb0e[_0x129836(0x246)]=!0x0,_0x3ecb0e[_0x129836(0x24f)]=_0x129836(0x227);const _0xd3ac77={};return _0xd3ac77[_0x129836(0x246)]=!0x0,_0xd3ac77[_0x129836(0x24f)]=_0x129836(0x210),_0x2bc697(_0x34d212,{'flexDirection':_0x129836(0x1f3),'borderStyle':_0x129836(0x23f),'borderColor':_0x32eeb6===_0x129836(0x20d)?_0x129836(0x1f8):_0x129836(0x234),'paddingX':0x2,'paddingY':0x1,'children':[_0x2bc697(_0x34d212,{'justifyContent':_0x129836(0x22f),'children':[_0x3e7a7a(_0x13c911,_0x32a004),_0x2bc697(_0x13c911,_0x595bda)]}),_0x4df0b3?_0x2bc697(_0x34d212,{'flexDirection':_0x129836(0x1f3),'marginTop':0x1,'children':[_0x2bc697(_0x34d212,{'gap':0x1,'alignItems':_0x129836(0x201),'children':[_0x3e7a7a(_0x13c911,{'color':_0x129836(0x1f8),'bold':!0x0,'children':_0x4df0b3[_0x129836(0x22b)]}),_0x3e7a7a(re,{'status':_0x32eeb6,'audioLevelRef':_0x6cbb63})]}),_0x3e7a7a(_0x34d212,{'marginTop':0x1,'children':_0x3e7a7a(_0x13c911,{'dimColor':!0x0,'children':_0x4df0b3[_0x129836(0x24e)]})})]}):_0x3e7a7a(_0x34d212,{'marginTop':0x1,'children':_0x3e7a7a(_0x13c911,_0x3ecb0e)}),_0x2bc697(_0x34d212,{'marginTop':0x1,'gap':0x1,'children':[_0x3e7a7a(_0x13c911,_0xd3ac77),_0x3e7a7a(_0x13c911,{'color':_0x129836(0x1f8),'children':Me(_0x5342dd)}),_0x2bc697(_0x13c911,{'bold':!0x0,'children':[_0x5342dd,'%']})]}),_0x2a69d8&&_0x3e7a7a(_0x34d212,{'marginTop':0x1,'children':_0x2bc697(_0x13c911,{'color':_0x129836(0x25f),'children':[_0x129836(0x250),_0x2a69d8]})})]});}import{Box as _0x1199c4,Text as _0x19df00}from'ink';import{jsx as _0x56e4be,jsxs as _0x3ad2f5}from'react/jsx-runtime';function ae(){const _0x239391=_0x45e04c,_0x48678c={};_0x48678c[_0x239391(0x248)]=_0x239391(0x239),_0x48678c[_0x239391(0x215)]=!0x0,_0x48678c[_0x239391(0x24f)]=_0x239391(0x20f);const _0x1776ec={};_0x1776ec[_0x239391(0x248)]=_0x239391(0x239),_0x1776ec[_0x239391(0x215)]=!0x0,_0x1776ec[_0x239391(0x24f)]=_0x239391(0x205);const _0x195560={};_0x195560[_0x239391(0x248)]=_0x239391(0x239),_0x195560[_0x239391(0x215)]=!0x0,_0x195560[_0x239391(0x24f)]=_0x239391(0x251);const _0x1e22df={};return _0x1e22df[_0x239391(0x248)]=_0x239391(0x239),_0x1e22df[_0x239391(0x215)]=!0x0,_0x1e22df[_0x239391(0x24f)]='q',_0x3ad2f5(_0x1199c4,{'gap':0x2,'marginTop':0x1,'children':[_0x3ad2f5(_0x19df00,{'dimColor':!0x0,'children':[_0x56e4be(_0x19df00,_0x48678c),_0x239391(0x1f9)]}),_0x3ad2f5(_0x19df00,{'dimColor':!0x0,'children':[_0x56e4be(_0x19df00,_0x1776ec),_0x239391(0x256)]}),_0x3ad2f5(_0x19df00,{'dimColor':!0x0,'children':[_0x56e4be(_0x19df00,_0x195560),_0x239391(0x243)]}),_0x3ad2f5(_0x19df00,{'dimColor':!0x0,'children':[_0x56e4be(_0x19df00,_0x1e22df),_0x239391(0x20c)]})]});}import _0x557939,{useState as _0x170ffa,useEffect as _0x71998a,useRef as _0x1752fa}from'react';import{Box as _0x8ad23d,Text as _0x2cc4ce}from'ink';import{jsx as _0x5a9bb5,jsxs as _0xae6ebd}from'react/jsx-runtime';var Ve=_0x45e04c(0x23e),He=0x3,$e=0x1770;function Fe(_0x69977b){const _0x128fb2=_0x45e04c;let _0x49596e=new Date(_0x69977b*0x3e8),_0x119afe=_0x37d9d9=>String(_0x37d9d9)[_0x128fb2(0x25e)](0x2,'0');return _0x49596e[_0x128fb2(0x273)]()+'-'+_0x119afe(_0x49596e[_0x128fb2(0x204)]()+0x1)+'-'+_0x119afe(_0x49596e[_0x128fb2(0x284)]())+'\x20'+_0x119afe(_0x49596e[_0x128fb2(0x24b)]())+':'+_0x119afe(_0x49596e[_0x128fb2(0x21a)]());}function le(_0x4213db,_0x400853,_0x31468f=!0x1){const _0x35794d=_0x45e04c;let _0x20ad9a=_0x4213db[_0x35794d(0x214)]('\x0a'),_0x973eb3=_0x20ad9a[_0x35794d(0x221)]>_0x400853?_0x20ad9a[_0x35794d(0x26b)](0x0,_0x400853):_0x20ad9a,_0x2ea46f=_0x31468f?'\x0a\x0a':'\x0a';return _0x973eb3[_0x35794d(0x254)](_0x2ea46f)+(_0x20ad9a[_0x35794d(0x221)]>_0x400853?'…':'');}function ce({channelSlug:_0x12163b}){const _0x418f54=_0x45e04c;let [_0xbbf790,_0x426abf]=_0x170ffa([]),[_0x360fc8,_0x1c10dd]=_0x170ffa(!0x0),_0x2a35d4=_0x1752fa(_0x12163b);const _0xe016ee={};_0xe016ee[_0x418f54(0x215)]=!0x0,_0xe016ee[_0x418f54(0x230)]=!0x0,_0xe016ee[_0x418f54(0x248)]=_0x418f54(0x239),_0xe016ee[_0x418f54(0x24f)]=_0x418f54(0x20a);const _0x384075={};_0x384075[_0x418f54(0x246)]=!0x0,_0x384075[_0x418f54(0x24f)]=_0x418f54(0x26a);const _0x48e300={};_0x48e300[_0x418f54(0x246)]=!0x0,_0x48e300[_0x418f54(0x24f)]=_0x418f54(0x288);const _0x2d9a62={};return _0x2d9a62[_0x418f54(0x248)]=_0x418f54(0x1f8),_0x2d9a62[_0x418f54(0x24f)]=_0x418f54(0x26f),(_0x2a35d4[_0x418f54(0x263)]=_0x12163b,_0x71998a(()=>{let _0x358698=!0x1;_0x426abf([]),_0x1c10dd(!0x0);let _0x2497cc=async()=>{const _0x4181ad=_0xb59e;try{let _0xdd0a1e=_0x2a35d4[_0x4181ad(0x263)]==='zh'?'2':'1',_0x6976fc=await(await fetch(Ve+_0x4181ad(0x23c)+He+_0x4181ad(0x23a)+_0xdd0a1e))[_0x4181ad(0x213)]();_0x358698||(_0x426abf(_0x6976fc[_0x4181ad(0x268)][_0x4181ad(0x266)](_0x1ac9cc=>_0x1ac9cc[_0x4181ad(0x24c)])),_0x1c10dd(!0x1));}catch{_0x358698||_0x1c10dd(!0x1);}};_0x2497cc();let _0x45ddee=setInterval(_0x2497cc,$e);return()=>{_0x358698=!0x0,clearInterval(_0x45ddee);};},[_0x12163b]),_0xae6ebd(_0x8ad23d,{'flexDirection':_0x418f54(0x1f3),'marginTop':0x1,'marginBottom':0x1,'children':[_0x5a9bb5(_0x2cc4ce,_0xe016ee),_0x360fc8&&_0xbbf790[_0x418f54(0x221)]===0x0?_0x5a9bb5(_0x8ad23d,{'marginTop':0x1,'children':_0x5a9bb5(_0x2cc4ce,_0x384075)}):_0xbbf790[_0x418f54(0x221)]===0x0?_0x5a9bb5(_0x8ad23d,{'marginTop':0x1,'children':_0x5a9bb5(_0x2cc4ce,_0x48e300)}):_0x5a9bb5(_0x8ad23d,{'flexDirection':_0x418f54(0x1f3),'marginTop':0x1,'gap':0x1,'children':_0xbbf790[_0x418f54(0x266)]((_0x382670,_0x18bbe3)=>_0xae6ebd(_0x557939[_0x418f54(0x240)],{'children':[_0xae6ebd(_0x8ad23d,{'flexDirection':_0x418f54(0x1f3),'gap':0x1,'children':[_0xae6ebd(_0x8ad23d,{'gap':0x1,'children':[_0x5a9bb5(_0x2cc4ce,{'color':_0x418f54(0x1f8),'bold':!0x0,'children':le(_0x382670[_0x418f54(0x223)],0x2)}),_0x5a9bb5(_0x2cc4ce,{'dimColor':!0x0,'children':Fe(_0x382670[_0x418f54(0x226)])})]}),_0x5a9bb5(_0x2cc4ce,{'dimColor':!0x0,'children':le(_0x382670[_0x418f54(0x1f6)],_0x18bbe3===0x0?0x5:0x2,!0x0)})]}),_0x18bbe3<_0xbbf790[_0x418f54(0x221)]&&_0x5a9bb5(_0x2cc4ce,{'dimColor':!0x0,'children':'─'[_0x418f54(0x1f5)](0x28)})]},_0x382670[_0x418f54(0x255)]))}),_0x5a9bb5(_0x8ad23d,{'marginTop':0x2,'children':_0xae6ebd(_0x2cc4ce,{'dimColor':!0x0,'children':[_0x418f54(0x271),_0x5a9bb5(_0x2cc4ce,_0x2d9a62)]})})]}));}import{jsx as _0x4bf2fa,jsxs as _0x47d1ce}from'react/jsx-runtime';function ue({initialChannel:_0x107cd6}){const _0x35534f=_0x45e04c;let {exit:_0x188174}=_0x3f1c79(),_0x218b37=Y(),_0x14db85=_0x3c8836(_0x218b37);_0x14db85[_0x35534f(0x263)]=_0x218b37;let _0x35e967=R[_0x35534f(0x20b)](_0x30ef44=>_0x30ef44['id']===(_0x107cd6??G)),[_0x3adf1e,_0x57436c]=_0x25050a(Math[_0x35534f(0x270)](0x0,_0x35e967)),_0x12031b=_0x3c8836(_0x3adf1e);_0x12031b[_0x35534f(0x263)]=_0x3adf1e,_0x3a79b9(()=>{const _0x3f751a=_0x35534f;let _0x515afb=R[_0x12031b[_0x3f751a(0x263)]];_0x515afb&&_0x14db85[_0x3f751a(0x263)][_0x3f751a(0x274)](_0x515afb);},[]);let _0x51ec26=_0x1e39cb=>{const _0x528f35=_0x35534f;_0x57436c(_0x1e39cb),_0x12031b[_0x528f35(0x263)]=_0x1e39cb;let _0x1128b2=R[_0x1e39cb];_0x1128b2&&_0x14db85[_0x528f35(0x263)][_0x528f35(0x274)](_0x1128b2);};const _0x69b0fb={};return _0x69b0fb[_0x35534f(0x269)]=_0x218b37[_0x35534f(0x269)],_0x69b0fb[_0x35534f(0x1f2)]=_0x218b37[_0x35534f(0x1f2)],_0x69b0fb[_0x35534f(0x289)]=_0x218b37[_0x35534f(0x289)],_0x69b0fb[_0x35534f(0x1fd)]=_0x218b37[_0x35534f(0x1fd)],_0x69b0fb[_0x35534f(0x278)]=_0x218b37[_0x35534f(0x278)],(_0x556897((_0x1d0958,_0x4885f2)=>{const _0x19b254=_0x35534f;let _0x470b2c=_0x14db85[_0x19b254(0x263)];if(_0x1d0958==='q'){_0x470b2c[_0x19b254(0x21c)]()[_0x19b254(0x23b)](()=>_0x188174());return;}if(_0x1d0958==='k'||_0x4885f2[_0x19b254(0x283)]){let _0x4229d1=_0x12031b[_0x19b254(0x263)];_0x51ec26(_0x4229d1>0x0?_0x4229d1-0x1:R[_0x19b254(0x221)]-0x1);return;}if(_0x1d0958==='j'||_0x4885f2[_0x19b254(0x1ff)]){let _0x39f5f5=_0x12031b[_0x19b254(0x263)];_0x51ec26(_0x39f5f5<R[_0x19b254(0x221)]-0x1?_0x39f5f5+0x1:0x0);return;}if(_0x1d0958==='\x20'){if(_0x470b2c[_0x19b254(0x1f2)]===_0x19b254(0x20d)||_0x470b2c[_0x19b254(0x1f2)]===_0x19b254(0x233))_0x470b2c[_0x19b254(0x21c)]();else{let _0x19228a=R[_0x12031b[_0x19b254(0x263)]];_0x19228a&&_0x470b2c[_0x19b254(0x274)](_0x19228a);}return;}if(_0x1d0958==='+'||_0x1d0958==='='){_0x470b2c[_0x19b254(0x207)](0x5);return;}if(_0x1d0958==='-'){_0x470b2c[_0x19b254(0x207)](-0x5);return;}}),_0x47d1ce(_0x4e2228,{'flexDirection':_0x35534f(0x1f3),'paddingX':0x1,'children':[_0x4bf2fa(Q,{}),_0x4bf2fa(oe,_0x69b0fb),_0x4bf2fa(Z,{'channels':R,'selectedIndex':_0x3adf1e,'activeChannelId':_0x218b37[_0x35534f(0x269)]?.['id']??null}),_0x4bf2fa(ce,{'channelSlug':_0x218b37[_0x35534f(0x269)]?.[_0x35534f(0x267)]??'en'}),_0x4bf2fa(ae,{})]}));}import{jsx as _0x29c553}from'react/jsx-runtime';function Xe(){const _0x30625c=_0x45e04c;let _0x423102=process[_0x30625c(0x212)]===_0x30625c(0x25c)?_0x30625c(0x203):_0x30625c(0x260);try{const _0x161aa3={};_0x161aa3[_0x30625c(0x200)]=_0x30625c(0x229),_0x14ce39(_0x423102,[_0x30625c(0x26c)],_0x161aa3);}catch{console[_0x30625c(0x278)](_0x30625c(0x25d)),console[_0x30625c(0x278)](_0x30625c(0x218)),console[_0x30625c(0x278)](_0x30625c(0x22a)),console[_0x30625c(0x278)](_0x30625c(0x235)),console[_0x30625c(0x278)](_0x30625c(0x28a)),console[_0x30625c(0x278)](_0x30625c(0x241)),console[_0x30625c(0x278)](_0x30625c(0x232)),console[_0x30625c(0x278)](_0x30625c(0x24d)),process[_0x30625c(0x228)](0x1);}}function Qe(){const _0x37439e=_0x45e04c;let _0x1e9d78=process[_0x37439e(0x25b)][_0x37439e(0x26b)](0x2),_0x2bf678=_0x1e9d78[_0x37439e(0x27f)](_0x37439e(0x21f));const _0x463ff0={};return _0x463ff0[_0x37439e(0x269)]=_0x2bf678!==-0x1?_0x1e9d78[_0x2bf678+0x1]:void 0x0,_0x463ff0;}Xe();var {channel:Ze}=Qe();const _0x2cafa3={};_0x2cafa3[_0x45e04c(0x252)]=Ze,_0x19ffc2(_0x29c553(ue,_0x2cafa3));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbgfm",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "scripts": {
12
12
  "dev": "tsx src/index.tsx",
13
- "build": "node scripts/clean-dist.mjs && tsc --noEmit && esbuild src/index.tsx --bundle --platform=node --format=esm --target=node20 --packages=external --minify --outfile=dist/index.js && node scripts/obfuscate-dist.mjs",
13
+ "build": "node scripts/clean-dist.mjs && tsc --noEmit && node scripts/build.mjs && node scripts/obfuscate-dist.mjs",
14
14
  "start": "node dist/index.js",
15
15
  "prepublishOnly": "pnpm build"
16
16
  },