supercolony 0.1.4 → 0.1.6

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.
package/dist/tui/app.mjs CHANGED
@@ -1 +1 @@
1
- const _0x1c7467=_0x18ab;function _0x18ab(_0xdd5757,_0x464a34){_0xdd5757=_0xdd5757-0xa1;const _0x18ab1d=_0x464a();let _0x46afe8=_0x18ab1d[_0xdd5757];return _0x46afe8;}function _0x464a(){const _0x294c4c=['wallet','Support\x20recipient:\x20','nextField','WORKERS','leftArrow','WALLET\x20DETAILS\x20·\x20selected\x20wallet','column','max','showError','logs','slice','s\x20save\x20QR\x20·\x20Esc\x20back','\x20·\x20i\x20details','converted','useSelectedWallet','filter','[n]\x20New\x20task','deliverables','receive','\x20wallets','repeat','shift','privateKey','Max\x20debit:\x20','objective','addTarget','push','No\x20matching\x20items.','[>]','Convert\x20&\x20publish','Item\x20','field','refresh','tasks','\x20IMD\x20(fee\x20','chooseMenu','Workers','Pay\x20with:\x20','total','Network:\x20','red','columns','dismissForm','\x20entries\x20·\x20Mine\x20+\x20Network','Optional\x20support:\x20','accepted','Help\x20us\x20make\x20Colony\x20better.','challenged','[e]\x20Error\x20details','Not\x20deployed','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','cursor','join','explore','Pay\x20to:\x20','SERVER\x20PREPARED\x20INPUT','Loading\x20history...','walletNetworkMenu','paymentCoins','reduce','split','Activity','workerMenu','pageDown','\x20+\x20support\x20','fields','respond','rightArrow','detail','black','Mine\x20·\x20','secret','coin','startsWith','Wallets','Refreshing\x20tasks...','Resize\x20to\x20at\x20least\x20','Fee\x20','downArrow','workers','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','notice','Work','then','form','rows','expanded','maximumDebit','[r]\x20Refresh','query','blocked','\x20columns\x20and\x20','cancelLabel','Pay\x20','\x20IMD','address','managed-worker','Keyboard\x20shortcuts','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','\x20ETH','Preparing\x20local\x20LLM','map','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','hidden','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','[\x20]\x20tabs','walletReceive','Receive\x20on\x20','IMD','autoRefresh','cancelRequest','gray','Loading...','kind','Estimated\x20payment:\x20','\x20tasks','Order:\x20','[f]\x20Filter','\x20(includes\x20gas)','Maximum\x20debit:\x20','COLONY','Choose\x20','amount','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','view','menu','yellow','Tip:\x20Review\x20the\x20price\x20before\x20paying.','workerCommand','selected','next','title','tab','configured','state','Esc\x20back','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','changeTab','asset','close','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','confirm','installed','setField','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','expired','cyan','refreshError','Quote\x20expires:\x20','submit','[l]\x20Logs','End\x20of\x20history','en-US','values','networkFeeCap','Conversion\x20already\x20confirmed;\x20reviewed\x20limit:\x20','label','Overview','Included\x20gas\x20cap:\x20','payment_failed','name','PgUp/PgDn\x20scroll','payWith','subscribe','files','doctor','busy','escape','acceptLabel','length','expiresAt','[/]\x20Search','pageUp','upArrow','Tip:\x20Colony\x20handles\x20task\x20settings.','payTo','privateKeyView','walletSetup','error','Review\x20the\x20official\x20fee\x20before\x20paying.','cancelled','cyclePaymentCoin','ETH','navigate','refreshing','Wallet:\x20','green','move','list','\x20·\x20Tab\x20switch\x20field\x20·\x20Esc\x20cancel','estimatedAmount','taskMenu','minimumImd','single','\x20results\x20loaded','payment','COLONY\x20\x20get\x20things\x20done.','update','Confirm','\x20items\x20·\x20','[+]','modelProgress','Read\x20only','scroll','\x20/\x20','dismissMenu','Private\x20key','lines','Convert\x20at\x20most:\x20','submitForm','getSnapshot','WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x20·\x20p\x20Network\x0ar\x20Refresh\x20balances\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.','********','Mine','IMD\x20for\x20this\x20task:\x20','search','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','subtitle','space-between','min','white','truncate-end','note','WALLETS','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','Cancel\x20/\x20edit','My\x20tasks','Enter/Tab\x20details','floor','\x20IMD\x20&\x20publish','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','Files','Esc/Tab\x20list','support','ctrl','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','toLocaleString','focus','\x20in\x20the\x20sending\x20wallet.','prepared','items','terminal','funding','Total\x20','chainName','return','help','walletImport','Extra\x20gas\x20cap:\x20','1234','\x20+\x20ETH\x20gas'];_0x464a=function(){return _0x294c4c;};return _0x464a();}import{createElement as _0x3cbde5,useEffect as _0x4ac2e1,useState as _0x2f01f1,useSyncExternalStore as _0x436e2d}from'react';import{Box as _0x1ca7cf,Text as _0x1527ca,useApp as _0x54fcda,useInput as _0x33b2dd,useWindowSize as _0x24cd84}from'ink';import _0x5080ff from'ink-text-input';import _0x23cd07 from'string-width';import{visibleItems as _0x115d17,VIEWS as _0x53e1ba}from'./controller.mjs';import{clean as _0x4f996d,detailText as _0x36248f,lines as _0x5ab3d2,short as _0x58d069,statusLabel as _0x15edda,taskActions as _0x78a209}from'./presentation.mjs';import{modelProgressLines as _0x4a61c3}from'../planner/progress.mjs';const le={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},ce={'tasks':_0x1c7467(0x183),'explore':'Explore','workers':_0x1c7467(0xc5),'wallet':_0x1c7467(0xeb)},j=[_0x1c7467(0x12d),_0x1c7467(0x14f),_0x1c7467(0x11c),_0x1c7467(0x120),_0x1c7467(0x109)],de=_0x4f1f54=>_0x4f1f54===_0x1c7467(0x155)?_0x1c7467(0x110):_0x4f1f54==='completed'?_0x1c7467(0x15b):[_0x1c7467(0xd0),_0x1c7467(0xfb),'refused',_0x1c7467(0x140),_0x1c7467(0x132)]['includes'](_0x4f1f54)?_0x1c7467(0x11f):'cyan',r=(_0x2cc63e,_0x2c88b2={})=>_0x3cbde5(_0x1527ca,_0x2c88b2,_0x4f996d(_0x2cc63e));function V({label:_0x4b708f}){const _0x181dbf=_0x1c7467,[_0x5dd8fa,_0x293d44]=_0x2f01f1(0x0);return _0x4ac2e1(()=>{const _0x58f108=setInterval(()=>_0x293d44(_0x59be7f=>(_0x59be7f+0x1)%0x4),0x96);return()=>clearInterval(_0x58f108);},[]),r(['|','/','-','\x5c'][_0x5dd8fa]+'\x20'+_0x4b708f,{'color':'cyan','wrap':_0x181dbf(0x17e)});}function C({title:_0x2df80a,width:_0x210a18,height:_0x2ae9df,ascii:_0x13f922,active:_0x2a3072,children:_0x4bd54e}){const _0x38c69e=_0x1c7467;return _0x3cbde5(_0x1ca7cf,{'width':_0x210a18,'height':_0x2ae9df,'flexDirection':_0x38c69e(0xa7),'borderStyle':_0x13f922?le:_0x38c69e(0x162),'borderColor':_0x2a3072?_0x38c69e(0x133):_0x38c69e(0x110),'paddingX':0x1,'flexShrink':0x0,'overflow':_0x38c69e(0x108)},r(_0x2df80a,{'color':_0x2a3072?'cyan':void 0x0,'dimColor':!_0x2a3072}),_0x4bd54e);}function T(_0x1486b5,_0x268256){const _0x5ef4a3=_0x1c7467,_0x394377=[];for(const _0x16fdb4 of _0x1486b5){const _0x5a4ea6=_0x394377[_0x5ef4a3(0x14a)]-0x1;_0x5a4ea6>=0x0&&_0x23cd07(_0x394377[_0x5a4ea6]+'\x20\x20'+_0x16fdb4)<=_0x268256?_0x394377[_0x5a4ea6]+='\x20\x20'+_0x16fdb4:_0x394377[_0x5ef4a3(0xbb)](_0x16fdb4);}return _0x394377;}function F({rows:_0x586f05,width:_0x3a5773,ascii:_0x245240}){const _0x1368e7=_0x1c7467;return _0x586f05[_0x1368e7(0x14a)]?_0x3cbde5(_0x1ca7cf,{'flexDirection':'column','flexShrink':0x0},r((_0x245240?'-':'\u2500')[_0x1368e7(0xb5)](_0x3a5773),{'dimColor':!0x0}),..._0x586f05['map']((_0x2a4a0a,_0x273534)=>r(_0x2a4a0a,{'key':_0x273534,'color':_0x1368e7(0x133),'bold':!0x0}))):null;}function ue({event:_0x4926b5,width:_0x45de64,height:_0xef2e9,ascii:_0x5c838a}){const _0x47cb9e=_0x1c7467,_0x40b290=_0x4a61c3(_0x4926b5,{'width':_0x45de64-0x4,'compact':!0x0})[_0x47cb9e(0xab)](0x2);return _0x3cbde5(C,{'title':_0x47cb9e(0x105),'width':_0x45de64,'height':_0xef2e9,'ascii':_0x5c838a,'active':!0x0},_0x3cbde5(_0x1ca7cf,{'flexDirection':'column'},..._0x40b290[_0x47cb9e(0x106)]((_0x28214f,_0x3864a5)=>_0x28214f[_0x47cb9e(0xea)](_0x47cb9e(0xbd))?_0x3cbde5(V,{'key':_0x3864a5,'label':_0x28214f[_0x47cb9e(0xab)](0x4)}):r(_0x28214f||'\x20',{'key':_0x3864a5,'color':_0x28214f['startsWith'](_0x47cb9e(0x169))?_0x47cb9e(0x15b):_0x47cb9e(0x133)}))),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}));}function N({content:_0x594d8d,width:_0x3c83a4,height:_0x466852,offset:_0x5accc1}){const _0x3114cd=_0x1c7467,_0x40fb9d=_0x5ab3d2(_0x594d8d,_0x3c83a4),_0x20da2f=Math[_0x3114cd(0x17c)](_0x5accc1,Math[_0x3114cd(0xa8)](0x0,_0x40fb9d['length']-_0x466852));return _0x3cbde5(_0x1ca7cf,{'flexDirection':_0x3114cd(0xa7),'height':_0x466852,'overflow':_0x3114cd(0x108)},..._0x40fb9d[_0x3114cd(0xab)](_0x20da2f,_0x20da2f+_0x466852)[_0x3114cd(0x106)]((_0x4a7754,_0x574696)=>r(_0x4a7754||'\x20',{'key':_0x574696})));}function Q({state:_0x232571,height:_0x2dda50,width:_0x13f49b,ascii:_0x5af57e}){const _0x32f18e=_0x1c7467,_0x1bf7e1=_0x115d17(_0x232571),_0x32c3a0=_0x232571[_0x32f18e(0x11d)]===_0x32f18e(0xd6),_0x238eca=_0x232571[_0x32f18e(0x11d)]==='tasks'?['[n]\x20New\x20task',_0x32f18e(0x14c),_0x32f18e(0x116),'[r]\x20Refresh']:_0x32c3a0?[_0x32f18e(0xb1),_0x32f18e(0x14c),_0x32f18e(0xf9)]:_0x232571[_0x32f18e(0x11d)]==='workers'?['[a]\x20Add\x20target',_0x32f18e(0x14c),_0x32f18e(0xf9)]:[];_0x232571[_0x32f18e(0x11d)]!==_0x32f18e(0xa1)&&(_0x232571[_0x32f18e(0x153)]||_0x232571['refreshError'])&&_0x238eca[_0x32f18e(0xbb)](_0x32f18e(0xd1));const _0x3d3490=T(_0x238eca,_0x13f49b),_0x558890=_0x32c3a0?_0x232571[_0x32f18e(0xc7)]:_0x1bf7e1[_0x32f18e(0x14a)],_0x4e911b=_0x32c3a0?_0x558890===null?_0x1bf7e1[_0x32f18e(0x14a)]+_0x32f18e(0x163):_0x558890[_0x32f18e(0x18e)](_0x32f18e(0x139))+(_0x558890===0x1?'\x20task':_0x32f18e(0x114)):_0x1bf7e1[_0x32f18e(0x14a)]+(_0x232571[_0x32f18e(0x11d)]===_0x32f18e(0xa1)?_0x32f18e(0xb4):_0x232571[_0x32f18e(0x11d)]===_0x32f18e(0xf0)?_0x32f18e(0xcc):_0x32f18e(0x168)+_0x232571[_0x32f18e(0xb0)]),_0x294bc8=_0x558890===null?_0x32f18e(0xbf)+(_0x232571[_0x32f18e(0x122)]+0x1):_0x232571[_0x32f18e(0x122)]+0x1+'/'+_0x558890['toLocaleString'](_0x32f18e(0x139)),_0xbe3368=_0x32c3a0&&_0x232571[_0x32f18e(0x122)]===_0x1bf7e1['length']-0x1;let _0x5660f9='up/down';_0xbe3368&&(_0x232571[_0x32f18e(0x147)]?_0x5660f9=_0x32f18e(0xd9):_0x232571[_0x32f18e(0x153)]&&_0x232571[_0x32f18e(0xd4)]?_0x5660f9='l\x20retry\x20history':_0x5660f9=_0x232571[_0x32f18e(0xd4)]?'down\x20loads\x20more':_0x32f18e(0x138));const _0x4b54e7=_0x1bf7e1['length']?T([_0x294bc8,_0x5660f9,_0x32f18e(0x184)],_0x13f49b):[],_0x51215e=_0x3d3490['length']?_0x3d3490[_0x32f18e(0x14a)]+0x1:0x0,_0xc6730a=Math['max'](0x1,Math[_0x32f18e(0x185)]((_0x2dda50-0x4-_0x4b54e7[_0x32f18e(0x14a)]-_0x51215e)/0x3)),_0xf7466e=Math[_0x32f18e(0xa8)](0x0,Math[_0x32f18e(0x17c)](_0x232571[_0x32f18e(0x122)]-Math[_0x32f18e(0x185)](_0xc6730a/0x2),_0x1bf7e1[_0x32f18e(0x14a)]-_0xc6730a));return _0x3cbde5(_0x1ca7cf,{'flexDirection':_0x32f18e(0xa7),'flexGrow':0x1},r(_0x4e911b,{'dimColor':!0x0}),..._0x1bf7e1['slice'](_0xf7466e,_0xf7466e+_0xc6730a)[_0x32f18e(0x106)]((_0x2a3e9c,_0x43dba4)=>_0x3cbde5(_0x1ca7cf,{'key':_0x2a3e9c['id'],'flexDirection':'column'},r((_0x232571[_0x32f18e(0x122)]===_0xf7466e+_0x43dba4?'>\x20':'\x20\x20')+_0x58d069((_0x2a3e9c[_0x32f18e(0x112)]===_0x32f18e(0x101)?_0x32f18e(0xe7):'')+_0x2a3e9c[_0x32f18e(0x124)],_0x13f49b-0x2),{'inverse':_0x232571['selected']===_0xf7466e+_0x43dba4,'bold':_0x232571['selected']===_0xf7466e+_0x43dba4}),r('\x20\x20'+_0x58d069(_0x2a3e9c[_0x32f18e(0x17a)]??_0x15edda(_0x2a3e9c[_0x32f18e(0x127)])??(_0x2a3e9c[_0x32f18e(0x12f)]?'Deployed\x20\xB7\x20status\x20on\x20selection':_0x32f18e(0xd2)),_0x13f49b-0x2),{'color':de(_0x2a3e9c[_0x32f18e(0x127)])}),r((_0x5af57e?'-':'\u2500')['repeat'](_0x13f49b),{'dimColor':!0x0}))),_0x1bf7e1['length']===0x0?r(_0x232571[_0x32f18e(0x147)]?_0x32f18e(0x111):_0x232571['error']?_0x32f18e(0x181):_0x232571[_0x32f18e(0x11d)]==='wallet'?_0x32f18e(0x18d):_0x232571[_0x32f18e(0x11d)]===_0x32f18e(0xc2)?_0x32f18e(0x131):_0x32f18e(0xbc),{'dimColor':!0x0}):null,_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),..._0x4b54e7[_0x32f18e(0x106)]((_0x5bb6ea,_0x9cc6ff)=>r(_0x5bb6ea,{'key':_0x9cc6ff,'dimColor':!0x0})),_0x3cbde5(F,{'rows':_0x3d3490,'width':_0x13f49b,'ascii':_0x5af57e}));}function fe({state:_0x13d10c,width:_0x48ed35,height:_0x590fbb,ascii:_0x3f7b2a,narrow:_0x3c6a7e}){const _0x508ff0=_0x1c7467,_0x21ff32=_0x3c6a7e?_0x48ed35:Math[_0x508ff0(0x185)](_0x48ed35*0.43),_0x4d3a26=_0x3c6a7e?_0x48ed35:_0x48ed35-_0x21ff32-0x1,_0x4a67b3=0x5,_0x1b22a1=_0x590fbb-_0x4a67b3,_0x4dc815=_0x13d10c['detail']?.[_0x508ff0(0x126)]?['[m]\x20Actions',_0x508ff0(0xf9)]:[_0x508ff0(0xf9)];(_0x13d10c[_0x508ff0(0x153)]||_0x13d10c[_0x508ff0(0x134)])&&_0x4dc815['push'](_0x508ff0(0xd1));const _0x542c34=T(_0x4dc815,_0x4d3a26-0x4),_0x5a08c9=T([_0x508ff0(0x189),_0x508ff0(0x142)],_0x4d3a26-0x4),_0x2c32da=_0x3cbde5(C,{'title':_0x508ff0(0x180),'width':_0x21ff32,'height':_0x3c6a7e?_0x1b22a1:_0x590fbb,'ascii':_0x3f7b2a,'active':_0x13d10c[_0x508ff0(0x18f)]===_0x508ff0(0x15d)},_0x3cbde5(Q,{'state':_0x13d10c,'height':_0x3c6a7e?_0x1b22a1:_0x590fbb,'width':_0x21ff32-0x4,'ascii':_0x3f7b2a})),_0x2ad477=_0x3cbde5(C,{'title':_0x508ff0(0xa6),'width':_0x4d3a26,'height':_0x1b22a1,'ascii':_0x3f7b2a,'active':_0x13d10c[_0x508ff0(0x18f)]===_0x508ff0(0xe5)},_0x3cbde5(N,{'content':_0x36248f(_0x13d10c),'width':_0x4d3a26-0x4,'height':_0x1b22a1-0x4-_0x5a08c9[_0x508ff0(0x14a)]-_0x542c34[_0x508ff0(0x14a)],'offset':_0x13d10c['scroll']}),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),..._0x5a08c9[_0x508ff0(0x106)]((_0x28fd03,_0x512853)=>r(_0x28fd03,{'key':_0x512853,'dimColor':!0x0})),_0x3cbde5(F,{'rows':_0x542c34,'width':_0x4d3a26-0x4,'ascii':_0x3f7b2a})),_0x515583=_0x3cbde5(C,{'title':'WALLET\x20MANAGEMENT\x20\xB7\x20'+(_0x13d10c[_0x508ff0(0xe5)]?.['chainName']??_0x508ff0(0x111)),'width':_0x4d3a26,'height':_0x4a67b3,'ascii':_0x3f7b2a,'active':!0x1},r(_0x508ff0(0xf1)),r('[g]\x20Manage\x20wallets\x20\x20[p]\x20Network'));return _0x3c6a7e?_0x3cbde5(_0x1ca7cf,{'flexDirection':_0x508ff0(0xa7),'width':_0x48ed35,'height':_0x590fbb},_0x13d10c[_0x508ff0(0x18f)]===_0x508ff0(0x15d)?_0x2c32da:_0x2ad477,_0x515583):_0x3cbde5(_0x1ca7cf,{'width':_0x48ed35,'height':_0x590fbb,'gap':0x1},_0x2c32da,_0x3cbde5(_0x1ca7cf,{'width':_0x4d3a26,'flexDirection':_0x508ff0(0xa7)},_0x2ad477,_0x515583));}function me({controller:_0xd0d59,state:_0x267f56,width:_0x47854e,height:_0x455fe0,ascii:_0x5f156e}){const _0x4b697a=_0x1c7467,_0x9b87c4=_0x267f56[_0x4b697a(0xf5)],_0x59f63d=_0x9b87c4[_0x4b697a(0xe2)][_0x9b87c4['field']],_0x2beec5=_0x9b87c4[_0x4b697a(0xe2)]['slice'](0x0,_0x9b87c4[_0x4b697a(0xc0)])['map'](_0x44a58=>_0x44a58[_0x4b697a(0x13d)]+':\x20'+(_0x44a58[_0x4b697a(0xe8)]?_0x4b697a(0x175):_0x9b87c4[_0x4b697a(0x13a)][_0x44a58[_0x4b697a(0x141)]]));return _0x3cbde5(C,{'title':_0x9b87c4[_0x4b697a(0x124)],'width':_0x47854e,'height':_0x455fe0,'ascii':_0x5f156e,'active':!0x0},_0x3cbde5(_0x1ca7cf,{'marginTop':0x1,'flexDirection':_0x4b697a(0xa7)},_0x9b87c4[_0x4b697a(0xdb)]?r(_0x4b697a(0xc6)+_0x9b87c4[_0x4b697a(0xdb)][_0x4b697a(0x106)](_0x41ba80=>_0x41ba80===_0x9b87c4[_0x4b697a(0x143)]?'['+_0x41ba80+']':_0x41ba80)[_0x4b697a(0xd5)]('\x20')+'\x20\xB7\x20up/down\x20change',{'color':_0x4b697a(0x133)}):null,..._0x2beec5[_0x4b697a(0x106)]((_0x4f25aa,_0x3330fc)=>r(_0x58d069(_0x4f25aa,_0x47854e-0x6),{'key':_0x3330fc,'dimColor':!0x0})),r(_0x59f63d[_0x4b697a(0x13d)],{'bold':!0x0}),_0x3cbde5(_0x1ca7cf,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math['max'](0x2,_0x455fe0-0x9),'overflow':'hidden'},r('>\x20',{'color':_0x4b697a(0x133)}),_0x3cbde5(_0x5080ff,{'key':_0x59f63d[_0x4b697a(0x141)],'value':_0x9b87c4[_0x4b697a(0x13a)][_0x59f63d[_0x4b697a(0x141)]],'placeholder':_0x59f63d['placeholder']??'','mask':_0x59f63d['secret']?'*':void 0x0,'onChange':_0x319f72=>_0xd0d59[_0x4b697a(0x130)](_0x319f72),'onSubmit':()=>_0x9b87c4['field']===_0x9b87c4['fields'][_0x4b697a(0x14a)]-0x1?void _0xd0d59[_0x4b697a(0x172)]():_0xd0d59[_0x4b697a(0xa3)]()})),r(_0x9b87c4['error']??'',{'color':'red'}),_0x9b87c4[_0x4b697a(0xdb)]?r(_0x4b697a(0x154),{'dimColor':!0x0}):null),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),r('Enter\x20'+(_0x9b87c4['field']===_0x9b87c4[_0x4b697a(0xe2)]['length']-0x1?_0x9b87c4[_0x4b697a(0x136)]:_0x4b697a(0x123))+_0x4b697a(0x15e),{'color':_0x4b697a(0x133),'wrap':_0x4b697a(0x17e)}));}function pe({state:_0x22b302,width:_0x19ae27,height:_0xb428b1,ascii:_0x468a6f}){const _0x2f4f15=_0x1c7467,_0x4163bf=_0x22b302[_0x2f4f15(0x12e)],_0x176f4f=_0x4163bf[_0x2f4f15(0x164)],_0x3b18a3=_0x176f4f?_0x176f4f[_0x2f4f15(0x18a)]?_0x2f4f15(0x195)+_0x176f4f[_0x2f4f15(0x18a)][_0x2f4f15(0xc7)]+_0x2f4f15(0xc3)+_0x176f4f[_0x2f4f15(0x11b)]+_0x2f4f15(0xe1)+_0x176f4f[_0x2f4f15(0x18a)][_0x2f4f15(0x11b)]+')':_0x2f4f15(0xee)+_0x176f4f[_0x2f4f15(0x11b)]+_0x2f4f15(0xff):null,_0x2b2842=_0x176f4f?.['funding']?_0x2f4f15(0xb8)+_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0xf8)]:null,_0x37915b=_0x176f4f?'Network:\x20'+_0x176f4f[_0x2f4f15(0x196)]:null,_0x309a66=_0x176f4f?.[_0x2f4f15(0x13b)]?(_0x176f4f[_0x2f4f15(0x194)]?.[_0x2f4f15(0xe9)]===_0x2f4f15(0x157)?_0x2f4f15(0x13f):_0x2f4f15(0x19a))+_0x176f4f[_0x2f4f15(0x13b)]+_0x2f4f15(0x104):null,_0x41d198=_0x176f4f?_0x176f4f[_0x2f4f15(0x18a)]?_0x2f4f15(0x187):_0x2f4f15(0xd3):null;let _0x56564f=_0x176f4f?_0x2f4f15(0xfe)+(_0x176f4f[_0x2f4f15(0x18a)]?.[_0x2f4f15(0xc7)]??_0x176f4f['amount'])+_0x2f4f15(0x186):'';_0x176f4f?.['funding']&&_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0xe9)]!==_0x2f4f15(0x10d)&&(_0x56564f=_0x176f4f['funding'][_0x2f4f15(0xae)]?'Continue\x20&\x20publish':_0x2f4f15(0xbe));const _0x4329cc=0x2+_0x5ab3d2(_0x4163bf[_0x2f4f15(0x124)]??'Review\x20saved\x20payment',_0x19ae27-0x4)[_0x2f4f15(0x14a)]+[_0x3b18a3,_0x2b2842,_0x37915b,_0x309a66,_0x41d198][_0x2f4f15(0xb0)](Boolean)[_0x2f4f15(0xdc)]((_0x1f5ca5,_0x2bf461)=>_0x1f5ca5+_0x5ab3d2(_0x2bf461,_0x19ae27-0x4)[_0x2f4f15(0x14a)],0x0)+(_0x19ae27<0x46?0x2:0x1)+0x1,_0x2fbdaa=_0x176f4f?['REQUEST',_0x176f4f[_0x2f4f15(0xb9)],'',..._0x176f4f[_0x2f4f15(0xb2)]['map'](_0x31856b=>'-\x20'+_0x31856b),'',..._0x176f4f[_0x2f4f15(0x18a)]?[_0x2f4f15(0xcf),_0x2f4f15(0xcd)+_0x176f4f['support'][_0x2f4f15(0x11b)]+_0x2f4f15(0xff),_0x2f4f15(0xa2)+_0x176f4f['support']['recipient'],'Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','']:[],..._0x176f4f[_0x2f4f15(0x194)]&&_0x176f4f[_0x2f4f15(0x194)]['coin']!==_0x2f4f15(0x10d)?[(_0x176f4f['funding']['converted']?_0x2f4f15(0x13c):_0x2f4f15(0x171))+_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0x11b)],..._0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0x15f)]&&!_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0xae)]?[_0x2f4f15(0x113)+_0x176f4f['funding'][_0x2f4f15(0x15f)]]:[],_0x2f4f15(0x118)+_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0xf8)]+(_0x176f4f['funding'][_0x2f4f15(0xe9)]===_0x2f4f15(0x157)?_0x2f4f15(0x117):_0x2f4f15(0x19c)),_0x2f4f15(0x177)+_0x176f4f[_0x2f4f15(0x194)][_0x2f4f15(0x161)],_0x2f4f15(0x107),'']:[],'Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.',..._0x4163bf[_0x2f4f15(0xf7)]?['','PAYMENT\x20DETAILS',_0x2f4f15(0x135)+_0x176f4f[_0x2f4f15(0x14b)],_0x2f4f15(0xc8)+_0x176f4f['network'],'Asset:\x20'+_0x176f4f[_0x2f4f15(0x12b)],_0x2f4f15(0xd7)+_0x176f4f[_0x2f4f15(0x150)],_0x2f4f15(0x115)+_0x176f4f['orderId'],'',_0x2f4f15(0xd8),JSON['stringify'](_0x176f4f[_0x2f4f15(0x191)],null,0x2)]:[]][_0x2f4f15(0xd5)]('\x0a'):_0x4163bf[_0x2f4f15(0x170)]['join']('\x0a');return _0x3cbde5(C,{'title':_0x4163bf['title']??'Review\x20saved\x20payment','width':_0x19ae27,'height':_0xb428b1,'ascii':_0x468a6f,'active':!0x0},_0x3b18a3?r(_0x3b18a3,{'color':'cyan','bold':!0x0}):null,_0x2b2842?r(_0x2b2842,{'color':_0x2f4f15(0x133),'bold':!0x0}):null,_0x37915b?r(_0x37915b,{'color':_0x2f4f15(0x133)}):null,_0x309a66?r(_0x309a66,{'color':'yellow'}):null,_0x3cbde5(N,{'content':_0x2fbdaa,'width':_0x19ae27-0x4,'height':Math['max'](0x0,_0xb428b1-_0x4329cc),'offset':_0x22b302[_0x2f4f15(0x16c)]}),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),_0x41d198?r(_0x41d198,{'color':_0x2f4f15(0x11f)}):null,_0x3cbde5(_0x1ca7cf,{'flexDirection':_0x19ae27<0x46?_0x2f4f15(0xa7):'row','gap':_0x19ae27<0x46?0x0:0x3},r('[\x20'+(_0x4163bf[_0x2f4f15(0xfd)]??(_0x176f4f?_0x2f4f15(0x182):'Cancel'))+'\x20]',{'inverse':!_0x4163bf[_0x2f4f15(0xce)]}),r('[\x20'+(_0x176f4f?_0x56564f:_0x4163bf[_0x2f4f15(0x149)]??_0x2f4f15(0x167))+'\x20]',{'inverse':_0x4163bf['accepted'],'color':_0x2f4f15(0x133)})),r(_0x2f4f15(0x129)+(_0x176f4f?_0x2f4f15(0xad):''),{'dimColor':!0x0,'wrap':_0x2f4f15(0x17e)}));}function he({state:_0x14d219,width:_0x5dc158,height:_0x160071,ascii:_0x35816e}){const _0x12cf06=_0x1c7467,_0x1f8ff9=_0x14d219[_0x12cf06(0x11e)],_0x4326c7=Math[_0x12cf06(0xa8)](0x1,_0x160071-0x5),_0x1a14f6=Math[_0x12cf06(0xa8)](0x0,Math[_0x12cf06(0x17c)](_0x1f8ff9[_0x12cf06(0x122)]-Math[_0x12cf06(0x185)](_0x4326c7/0x2),_0x1f8ff9['items'][_0x12cf06(0x14a)]-_0x4326c7));return _0x3cbde5(C,{'title':_0x1f8ff9['title'],'width':_0x5dc158,'height':_0x160071,'ascii':_0x35816e,'active':!0x0},..._0x1f8ff9[_0x12cf06(0x192)][_0x12cf06(0xab)](_0x1a14f6,_0x1a14f6+_0x4326c7)['map']((_0x22659e,_0x1f583b)=>r((_0x1a14f6+_0x1f583b===_0x1f8ff9[_0x12cf06(0x122)]?'>\x20':'\x20\x20')+_0x22659e[_0x12cf06(0x13d)],{'key':_0x1f583b,'inverse':_0x1a14f6+_0x1f583b===_0x1f8ff9['selected']})),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),r(_0x12cf06(0x103),{'dimColor':!0x0}));}const ge=_0x1c7467(0x174);function Me({controller:_0x361724,ascii:_0x2016b8=!0x1,dimensions:_0x43b761,terminal:_0x34543e,feedback:_0x53da15}){const _0x4e7361=_0x1c7467,_0xa52843=_0x436e2d(_0x361724[_0x4e7361(0x144)],_0x361724[_0x4e7361(0x173)]),[_0x5c3d8b,_0x194dd1]=_0x2f01f1(0x0);_0x4ac2e1(()=>{const _0x19d7fc=setInterval(()=>_0x194dd1(_0x32f791=>(_0x32f791+0x1)%j['length']),0x4e20);return()=>clearInterval(_0x19d7fc);},[]);const _0x4ec282=_0xa52843['error']??_0xa52843[_0x4e7361(0x134)],_0x2613e2=_0x24cd84(),_0x96cf32=_0x43b761??_0x2613e2,_0x594f1a=_0x96cf32[_0x4e7361(0xca)],_0x4029f4=Math[_0x4e7361(0xa8)](0x8,_0x96cf32[_0x4e7361(0xf6)]-0x1),_0xe6ccbc=_0x594f1a<0x64,{exit:_0x1fab9d}=_0x54fcda();if(_0x4ac2e1(()=>(_0x361724[_0x4e7361(0x193)]=_0x34543e,_0x361724[_0x4e7361(0xc1)]()[_0x4e7361(0xf4)](()=>{const _0xf80766=_0x4e7361;_0x53da15&&_0x361724[_0xf80766(0x166)](_0x53da15);}),()=>_0x361724[_0x4e7361(0x12c)]()),[_0x361724,_0x34543e,_0x53da15]),_0x4ac2e1(()=>{const _0x52d246=setInterval(()=>{const _0x5ef411=_0x18ab;_0x361724[_0x5ef411(0x10e)]();},0x1388);return()=>clearInterval(_0x52d246);},[_0x361724]),_0x33b2dd((_0x52e7cc,_0x100a22)=>{const _0x58f43e=_0x4e7361;if(_0x100a22[_0x58f43e(0x18b)]&&_0x52e7cc==='c'){_0x361724[_0x58f43e(0x12c)](),_0x1fab9d();return;}if(_0xa52843[_0x58f43e(0x151)]){_0x100a22[_0x58f43e(0x148)]&&_0x361724['update']({'privateKeyView':null});return;}if(_0x594f1a<0x28||_0x96cf32[_0x58f43e(0xf6)]<0x14){_0xa52843[_0x58f43e(0xb3)]?_0x100a22['escape']&&_0x361724[_0x58f43e(0x166)]({'receive':null}):_0x52e7cc==='q'&&(_0x361724[_0x58f43e(0x12c)](),_0x1fab9d());return;}if(_0xa52843[_0x58f43e(0x12e)]){_0x100a22['escape']?_0x361724[_0x58f43e(0xe3)](!0x1):_0x100a22[_0x58f43e(0x125)]||_0x100a22[_0x58f43e(0xa5)]||_0x100a22[_0x58f43e(0xe4)]?_0x361724['update']({'confirm':{..._0xa52843[_0x58f43e(0x12e)],'accepted':!_0xa52843['confirm'][_0x58f43e(0xce)]}}):_0x100a22[_0x58f43e(0x197)]?_0x361724[_0x58f43e(0xe3)](_0xa52843[_0x58f43e(0x12e)][_0x58f43e(0xce)]):_0x52e7cc==='i'?_0x361724[_0x58f43e(0x166)]({'confirm':{..._0xa52843[_0x58f43e(0x12e)],'expanded':!_0xa52843[_0x58f43e(0x12e)][_0x58f43e(0xf7)]},'scroll':0x0}):(_0x100a22[_0x58f43e(0xe0)]||_0x100a22[_0x58f43e(0x14d)])&&_0x361724[_0x58f43e(0x166)]({'scroll':Math[_0x58f43e(0xa8)](0x0,_0xa52843[_0x58f43e(0x16c)]+(_0x100a22[_0x58f43e(0xe0)]?0x5:-0x5))});return;}if(_0xa52843[_0x58f43e(0xf5)]){_0x100a22[_0x58f43e(0x148)]?_0x361724[_0x58f43e(0xcb)]():(_0x100a22[_0x58f43e(0x14e)]||_0x100a22[_0x58f43e(0xef)])&&_0xa52843[_0x58f43e(0xf5)][_0x58f43e(0xdb)]?_0x361724[_0x58f43e(0x156)](_0x100a22[_0x58f43e(0x14e)]):_0x100a22[_0x58f43e(0x125)]&&_0x361724[_0x58f43e(0xa3)](_0x100a22[_0x58f43e(0xb6)]);return;}if(_0xa52843[_0x58f43e(0xb3)]){_0x100a22[_0x58f43e(0x148)]&&_0x361724[_0x58f43e(0x166)]({'receive':null}),_0x52e7cc==='s'&&_0x361724['saveReceiveQr']();return;}if(_0xa52843['menu']){_0x100a22[_0x58f43e(0x148)]?_0x361724[_0x58f43e(0x16e)]():_0x100a22['downArrow']||_0x100a22[_0x58f43e(0x14e)]?_0x361724[_0x58f43e(0x166)]({'menu':{..._0xa52843[_0x58f43e(0x11e)],'selected':Math[_0x58f43e(0xa8)](0x0,Math['min'](_0xa52843[_0x58f43e(0x11e)][_0x58f43e(0x192)]['length']-0x1,_0xa52843[_0x58f43e(0x11e)][_0x58f43e(0x122)]+(_0x100a22[_0x58f43e(0xef)]?0x1:-0x1)))}}):_0x100a22['return']&&_0x361724[_0x58f43e(0xc4)]();return;}if(_0x52e7cc==='q'&&!_0xa52843[_0x58f43e(0x147)]){_0x361724[_0x58f43e(0x12c)](),_0x1fab9d();return;}if(!_0xa52843[_0x58f43e(0x147)]){if(_0x52e7cc==='e'&&_0x4ec282){_0x361724[_0x58f43e(0xa9)]();return;}if(_0x58f43e(0x19b)['includes'](_0x52e7cc)&&_0x52e7cc[_0x58f43e(0x14a)]===0x1){_0x361724[_0x58f43e(0x158)](_0x53e1ba[Number(_0x52e7cc)-0x1]);return;}if(_0x52e7cc==='?'){_0x361724[_0x58f43e(0x166)]({'help':!_0xa52843[_0x58f43e(0x198)],'scroll':0x0});return;}if(_0x100a22[_0x58f43e(0x148)]){_0x361724['update']({'focus':_0x58f43e(0x15d),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x52e7cc==='n'){_0xa52843[_0x58f43e(0x11d)]===_0x58f43e(0xa1)?_0x361724[_0x58f43e(0x152)](!0x1):_0x361724['create']();return;}if(_0x52e7cc==='r'){_0x361724[_0x58f43e(0xc1)]();return;}if(_0x100a22['pageDown']||_0x100a22['pageUp']||_0xa52843[_0x58f43e(0x18f)]===_0x58f43e(0xe5)&&(_0x100a22[_0x58f43e(0xef)]||_0x100a22[_0x58f43e(0x14e)])){_0x361724[_0x58f43e(0x166)]({'scroll':Math[_0x58f43e(0xa8)](0x0,_0xa52843['scroll']+(_0x100a22[_0x58f43e(0xe0)]?0x5:_0x100a22['pageUp']?-0x5:_0x100a22[_0x58f43e(0xef)]?0x1:-0x1))});return;}if(_0xa52843['view']===_0x58f43e(0xa1)){(_0x100a22['downArrow']||_0x100a22[_0x58f43e(0x14e)])&&_0x361724[_0x58f43e(0x15c)](_0x100a22[_0x58f43e(0xef)]?0x1:-0x1),(_0x100a22[_0x58f43e(0x197)]||_0x100a22[_0x58f43e(0x125)])&&_0x361724[_0x58f43e(0x166)]({'focus':_0xa52843[_0x58f43e(0x18f)]===_0x58f43e(0x15d)?_0x58f43e(0xe5):'list','scroll':0x0}),_0x52e7cc==='u'&&_0x361724[_0x58f43e(0xaf)](),_0x52e7cc==='m'&&_0x361724['walletMenu'](),_0x52e7cc==='g'&&_0x361724['walletManagement'](),_0x52e7cc==='i'&&_0x361724[_0x58f43e(0x199)](),_0x52e7cc==='d'&&_0x361724[_0x58f43e(0x10b)](),_0x52e7cc==='b'&&_0x361724['walletBackup'](),_0x52e7cc==='p'&&_0x361724[_0x58f43e(0xda)]();return;}if(_0x100a22[_0x58f43e(0xef)]||_0x100a22['upArrow']){_0x361724[_0x58f43e(0x15c)](_0x100a22[_0x58f43e(0xef)]?0x1:-0x1);return;}if(_0x100a22['return']||_0x100a22['tab']){_0x361724[_0x58f43e(0x166)]({'focus':_0xa52843[_0x58f43e(0x18f)]===_0x58f43e(0x15d)?'detail':_0x58f43e(0x15d),'scroll':0x0});return;}if(_0xa52843[_0x58f43e(0x11d)]==='workers'){_0x52e7cc==='/'&&_0x361724['search'](),_0x52e7cc==='a'&&_0x361724[_0x58f43e(0xba)](),_0x52e7cc==='m'&&_0x361724[_0x58f43e(0xdf)](),_0x52e7cc==='l'&&_0x361724[_0x58f43e(0x121)]([_0x58f43e(0xaa)]),_0x52e7cc==='g'&&_0x361724[_0x58f43e(0x121)]([_0x58f43e(0x146)]);return;}_0x52e7cc==='/'&&_0x361724[_0x58f43e(0x178)](),_0x52e7cc==='f'&&_0xa52843[_0x58f43e(0x11d)]===_0x58f43e(0xc2)&&_0x361724['cycleFilter'](),(_0x52e7cc==='['||_0x52e7cc===']')&&_0x361724[_0x58f43e(0x12a)](_0x52e7cc==='['?-0x1:0x1),_0x52e7cc==='d'&&_0x361724[_0x58f43e(0x145)](),_0x52e7cc==='s'&&_0x361724['download'](),_0x52e7cc==='c'&&_0x361724['continueTask'](),_0x52e7cc==='o'&&_0x361724['resumeOrder'](),_0x52e7cc==='x'&&_0x361724[_0x58f43e(0x10f)](),_0x52e7cc==='m'&&_0x361724[_0x58f43e(0x160)](),_0x52e7cc==='l'&&_0x361724['more']();}}),_0x594f1a<0x28||_0x96cf32[_0x4e7361(0xf6)]<0x14)return _0x3cbde5(_0x1ca7cf,{'width':_0x594f1a,'flexDirection':_0x4e7361(0xa7)},r(_0x4e7361(0x119),{'color':_0x4e7361(0x133)}),r(_0x4e7361(0x18c)),r(_0xa52843[_0x4e7361(0xb3)]||_0xa52843[_0x4e7361(0x151)]?_0x4e7361(0x128):'q\x20quit\x20\xB7\x20commands\x20remain\x20available\x20with\x20--help'));if(_0xa52843['privateKeyView'])return _0x3cbde5(C,{'title':_0x4e7361(0x16f),'width':_0x594f1a,'height':_0x4029f4,'ascii':_0x2016b8,'active':!0x0},r(_0x4e7361(0x15a)+_0xa52843['privateKeyView'][_0x4e7361(0x100)]),r('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':_0x4e7361(0x11f)}),_0x3cbde5(_0x1ca7cf,{'marginTop':0x1},r(_0xa52843[_0x4e7361(0x151)][_0x4e7361(0xb7)])),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),r('Esc\x20hide\x20and\x20return',{'color':_0x4e7361(0x133)}));if(_0xa52843[_0x4e7361(0xb3)]&&!_0xa52843[_0x4e7361(0xf5)]){const _0x3e5e22=_0xa52843['receive'],_0x21eebc=_0x3e5e22['qr'][_0x4e7361(0xdd)]('\x0a'),_0x1c2f13=_0x21eebc[_0x4e7361(0x14a)]+_0x5ab3d2(_0x3e5e22[_0x4e7361(0x100)],_0x594f1a)['length']+_0x5ab3d2(_0x4e7361(0x11a)+_0x3e5e22[_0x4e7361(0x196)]+_0x4e7361(0x190),_0x594f1a)[_0x4e7361(0x14a)]+0x3,_0x21f162=_0x594f1a>=_0x21eebc[0x0][_0x4e7361(0x14a)]&&_0x4029f4>=_0x1c2f13;return _0x3cbde5(_0x1ca7cf,{'width':_0x594f1a,'height':_0x4029f4,'flexDirection':_0x4e7361(0xa7)},r(_0x4e7361(0x10c)+_0x3e5e22[_0x4e7361(0x196)],{'bold':!0x0,'color':_0x4e7361(0x133)}),r(_0x3e5e22[_0x4e7361(0x100)]),r('Coins:\x20'+_0x3e5e22['coins']['join'](',\x20')),_0x21f162?r(_0x3e5e22['qr'],{'color':_0x4e7361(0xe6),'backgroundColor':_0x4e7361(0x17d)}):r(_0x4e7361(0xed)+Math[_0x4e7361(0xa8)](0x28,_0x21eebc[0x0][_0x4e7361(0x14a)])+_0x4e7361(0xfc)+(_0x1c2f13+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),r(_0x4e7361(0x11a)+_0x3e5e22[_0x4e7361(0x196)]+_0x4e7361(0x190),{'color':_0x4e7361(0x11f)}),r(_0x58d069(_0xa52843[_0x4e7361(0x153)]??_0xa52843[_0x4e7361(0xf2)]??_0x4e7361(0xac),_0x594f1a),{'color':_0xa52843['error']?_0x4e7361(0xc9):'cyan'}));}const _0x577f8d=_0xa52843[_0x4e7361(0xf5)]||_0xa52843[_0x4e7361(0x12e)]||_0xa52843['modelProgress'],_0x1dab79=Math['max'](0x6,_0x4029f4-(_0x577f8d?0x3:0x6)),_0x13d879=_0x115d17(_0xa52843)[_0xa52843[_0x4e7361(0x122)]];let _0x23a8d5;if(_0xa52843[_0x4e7361(0xf5)])_0x23a8d5=_0x3cbde5(me,{'controller':_0x361724,'state':_0xa52843,'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8});else{if(_0xa52843[_0x4e7361(0x12e)])_0x23a8d5=_0x3cbde5(pe,{'state':_0xa52843,'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8});else{if(_0xa52843[_0x4e7361(0x16a)])_0x23a8d5=_0x3cbde5(ue,{'event':_0xa52843[_0x4e7361(0x16a)],'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8});else{if(_0xa52843[_0x4e7361(0x11e)])_0x23a8d5=_0x3cbde5(he,{'state':_0xa52843,'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8});else{if(_0xa52843['help'])_0x23a8d5=_0x3cbde5(C,{'title':_0x4e7361(0x102),'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8,'active':!0x0},_0x3cbde5(N,{'content':ge,'width':_0x594f1a-0x4,'height':_0x1dab79-0x4,'offset':_0xa52843[_0x4e7361(0x16c)]}),r(_0x4e7361(0x179),{'dimColor':!0x0}));else{if(_0xa52843[_0x4e7361(0x11d)]==='wallet')_0x23a8d5=_0x3cbde5(fe,{'state':_0xa52843,'width':_0x594f1a,'height':_0x1dab79,'ascii':_0x2016b8,'narrow':_0xe6ccbc});else{const _0x53b422=!_0xe6ccbc||_0xa52843[_0x4e7361(0x18f)]===_0x4e7361(0x15d),_0x28f029=!_0xe6ccbc||_0xa52843[_0x4e7361(0x18f)]===_0x4e7361(0xe5),_0x2b1a51=_0xe6ccbc?_0x594f1a:Math[_0x4e7361(0x185)](_0x594f1a*0.43),_0x3463bd=_0x53b422&&!_0xe6ccbc?_0x594f1a-_0x2b1a51-0x1:_0x594f1a,_0x25115c=_0x36248f({..._0xa52843,'selectedId':_0x13d879?.['id']}),_0x2d3749=_0xa52843['view']===_0x4e7361(0xc2)||_0xa52843[_0x4e7361(0x11d)]==='explore',_0xc92414=_0x2d3749?_0x78a209(_0x13d879,_0xa52843[_0x4e7361(0x11d)]):_0x13d879?_0x13d879[_0x4e7361(0x112)]==='network-worker'?[_0x4e7361(0x16b)]:['[m]\x20Actions',_0x4e7361(0x137),'[g]\x20Diagnostics']:[];_0x4ec282&&_0xc92414[_0x4e7361(0xbb)](_0x4e7361(0xd1));const _0x20aa92=T(_0xc92414,_0x3463bd-0x4),_0xfeb4e=_0x20aa92['length']?_0x20aa92[_0x4e7361(0x14a)]+0x1:0x0,_0x3e4987=T([_0x4e7361(0x189),_0x4e7361(0x142),..._0x2d3749?[_0x4e7361(0x10a)]:[]],_0x3463bd-0x4);_0x23a8d5=_0x3cbde5(_0x1ca7cf,{'height':_0x1dab79,'width':_0x594f1a,'gap':0x1},_0x53b422?_0x3cbde5(C,{'title':(_0xa52843['view']===_0x4e7361(0xf0)?_0x4e7361(0xa4):_0xa52843[_0x4e7361(0xb0)])+(_0xa52843[_0x4e7361(0xfa)]?_0x4e7361(0x16d)+_0x58d069(_0xa52843[_0x4e7361(0xfa)],0x16):''),'width':_0x2b1a51,'height':_0x1dab79,'ascii':_0x2016b8,'active':_0xa52843[_0x4e7361(0x18f)]===_0x4e7361(0x15d)},_0x3cbde5(Q,{'state':_0xa52843,'height':_0x1dab79,'width':_0x2b1a51-0x4,'ascii':_0x2016b8})):null,_0x28f029?_0x3cbde5(C,{'title':_0x58d069(_0x13d879?.['id']??'DETAILS',_0x3463bd-0x7),'width':_0x3463bd,'height':_0x1dab79,'ascii':_0x2016b8,'active':_0xa52843['focus']==='detail'},_0x2d3749?r([_0x4e7361(0x13e),_0x4e7361(0xde),_0x4e7361(0x188)][_0x4e7361(0x106)](_0x1acc41=>_0x1acc41===_0xa52843[_0x4e7361(0x125)]?'['+_0x1acc41+']':_0x1acc41)[_0x4e7361(0xd5)]('\x20\x20'),{'color':'cyan','wrap':_0x4e7361(0x17e)}):null,_0x3cbde5(N,{'content':_0x25115c,'width':_0x3463bd-0x4,'height':_0x1dab79-0x3-Number(_0x2d3749)-_0xfeb4e-_0x3e4987['length'],'offset':_0xa52843['scroll']}),_0x3cbde5(_0x1ca7cf,{'flexGrow':0x1}),..._0x3e4987[_0x4e7361(0x106)]((_0x580dc6,_0x3547b1)=>r(_0x580dc6,{'key':_0x3547b1,'dimColor':!0x0})),_0x3cbde5(F,{'rows':_0x20aa92,'width':_0x3463bd-0x4,'ascii':_0x2016b8})):null);}}}}}}const _0x562842=_0xa52843[_0x4e7361(0xf5)]||_0xa52843[_0x4e7361(0x12e)]||_0xa52843[_0x4e7361(0x11e)]||_0xa52843[_0x4e7361(0x147)]?'[Ctrl+C]\x20Exit':'[?]\x20Help\x20\x20[q]\x20Quit',_0x4bc7a2=_0x594f1a<0x4b?_0x53e1ba['map']((_0x4bb1e9,_0x40af13)=>'['+(_0x40af13+0x1)+']'+[_0x4e7361(0x176),'Browse',_0x4e7361(0xf3),'Wallets'][_0x40af13])['join']('\x20'):_0x53e1ba[_0x4e7361(0x106)]((_0x19b5a1,_0x148c36)=>(_0x19b5a1===_0xa52843[_0x4e7361(0x11d)]?'>\x20':'\x20\x20')+'['+(_0x148c36+0x1)+']\x20'+ce[_0x19b5a1])[_0x4e7361(0xd5)]('\x20\x20');return _0x3cbde5(_0x1ca7cf,{'width':_0x594f1a,'height':_0x4029f4,'flexDirection':_0x4e7361(0xa7)},_0x3cbde5(_0x1ca7cf,{'justifyContent':_0x4e7361(0x17b),'height':_0x577f8d?0x1:0x2},r(_0x4e7361(0x165),{'color':_0x4e7361(0x133),'bold':!0x0}),_0x594f1a>=0x4b?r(_0xa52843[_0x4e7361(0x100)]?_0x58d069(_0xa52843[_0x4e7361(0x100)],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x577f8d?null:r(_0x4bc7a2,{'color':'cyan','wrap':'truncate-end'}),_0x577f8d?null:_0xa52843[_0x4e7361(0x147)]||_0xa52843[_0x4e7361(0x159)]?_0x3cbde5(V,{'label':_0xa52843[_0x4e7361(0x147)]??_0x4e7361(0xec)}):r(_0xa52843[_0x4e7361(0x17f)],{'dimColor':!0x0,'wrap':_0x4e7361(0x17e)}),_0x23a8d5,r(_0x58d069(_0x4ec282??_0xa52843[_0x4e7361(0xf2)]??(_0x577f8d||_0xa52843[_0x4e7361(0x11e)]||_0xa52843[_0x4e7361(0x147)]?'':j[_0x5c3d8b]),_0x594f1a),{'color':_0x4ec282?'red':_0xa52843['notice']?_0x4e7361(0x15b):void 0x0,'dimColor':!_0x4ec282&&!_0xa52843[_0x4e7361(0xf2)]}),r(_0x562842,{'dimColor':!0x0,'wrap':'truncate-end'}));}export{Me as DashboardApp};
1
+ const _0x4a8be8=_0x11f7;import{createElement as _0x377643,useEffect as _0xd6bd5d,useState as _0x1fec36,useSyncExternalStore as _0x15b696}from'react';import{Box as _0x1d0bf1,Text as _0x31a267,useApp as _0x1c6ab1,useInput as _0x23dbf4,useWindowSize as _0x3c7eca}from'ink';import _0x3087f2 from'ink-text-input';import _0x180bb6 from'string-width';import{visibleItems as _0x1f852a,VIEWS as _0x118e55}from'./controller.mjs';import{clean as _0x33d708,detailText as _0x8f542f,lines as _0x46af78,short as _0x4b445d,statusLabel as _0x12f1e6,taskActions as _0x48aa65}from'./presentation.mjs';import{modelProgressLines as _0x16f8ff}from'../planner/progress.mjs';const le={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},ce={'tasks':_0x4a8be8(0x13f),'explore':_0x4a8be8(0x156),'workers':'Workers','wallet':'Wallets'},Q=[_0x4a8be8(0x1a9),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x4a8be8(0x11c),'Tip:\x20Review\x20the\x20price\x20before\x20paying.',_0x4a8be8(0x153)],de=_0x43d932=>_0x43d932===_0x4a8be8(0x135)?'gray':_0x43d932===_0x4a8be8(0x118)?_0x4a8be8(0x137):[_0x4a8be8(0x114),_0x4a8be8(0x149),_0x4a8be8(0x1d3),_0x4a8be8(0x115),_0x4a8be8(0x151)][_0x4a8be8(0x1b4)](_0x43d932)?_0x4a8be8(0x188):_0x4a8be8(0x170),s=(_0x4f4932,_0x3f74e0={})=>_0x377643(_0x31a267,_0x3f74e0,_0x33d708(_0x4f4932));function B({label:_0x110908}){const _0x437566=_0x4a8be8,[_0x47fd64,_0x238a10]=_0x1fec36(0x0);return _0xd6bd5d(()=>{const _0x567860=setInterval(()=>_0x238a10(_0x277bd9=>(_0x277bd9+0x1)%0x4),0x96);return()=>clearInterval(_0x567860);},[]),s(['|','/','-','\x5c'][_0x47fd64]+'\x20'+_0x110908,{'color':'cyan','wrap':_0x437566(0x119)});}function A({title:_0x43b66b,width:_0x259e76,height:_0xbf3b59,ascii:_0x42bbcf,active:_0x1d39c6,children:_0x4f35be}){const _0x35aee9=_0x4a8be8;return _0x377643(_0x1d0bf1,{'width':_0x259e76,'height':_0xbf3b59,'flexDirection':'column','borderStyle':_0x42bbcf?le:'single','borderColor':_0x1d39c6?_0x35aee9(0x170):_0x35aee9(0x122),'paddingX':0x1,'flexShrink':0x0,'overflow':'hidden'},s(_0x43b66b,{'color':_0x1d39c6?_0x35aee9(0x170):void 0x0,'dimColor':!_0x1d39c6}),_0x4f35be);}function L(_0x3702b9,_0x571980){const _0x481588=_0x4a8be8,_0x1cd976=[];for(const _0x59c142 of _0x3702b9){const _0x3a3ad9=_0x1cd976[_0x481588(0x1bb)]-0x1;_0x3a3ad9>=0x0&&_0x180bb6(_0x1cd976[_0x3a3ad9]+'\x20\x20'+_0x59c142)<=_0x571980?_0x1cd976[_0x3a3ad9]+='\x20\x20'+_0x59c142:_0x1cd976[_0x481588(0x1e2)](_0x59c142);}return _0x1cd976;}function U({rows:_0x15a2c0,width:_0x5842ca,ascii:_0x16a73b}){const _0x2d7d6a=_0x4a8be8;return _0x15a2c0[_0x2d7d6a(0x1bb)]?_0x377643(_0x1d0bf1,{'flexDirection':_0x2d7d6a(0x20b),'flexShrink':0x0},s((_0x16a73b?'-':'\u2500')[_0x2d7d6a(0x19f)](_0x5842ca),{'dimColor':!0x0}),..._0x15a2c0[_0x2d7d6a(0x162)]((_0x113524,_0x1c713a)=>s(_0x113524,{'key':_0x1c713a,'color':_0x2d7d6a(0x170),'bold':!0x0}))):null;}function ue({event:_0x382b4a,width:_0x6f5331,height:_0x38a472,ascii:_0x253a7d}){const _0x2417e1=_0x4a8be8,_0x2a7111=_0x16f8ff(_0x382b4a,{'width':_0x6f5331-0x4,'compact':!0x0})[_0x2417e1(0x141)](0x2);return _0x377643(A,{'title':_0x2417e1(0x16a),'width':_0x6f5331,'height':_0x38a472,'ascii':_0x253a7d,'active':!0x0},_0x377643(_0x1d0bf1,{'flexDirection':_0x2417e1(0x20b)},..._0x2a7111[_0x2417e1(0x162)]((_0x4d88ea,_0x46cf7e)=>_0x4d88ea[_0x2417e1(0x11f)](_0x2417e1(0x1f7))?_0x377643(B,{'key':_0x46cf7e,'label':_0x4d88ea['slice'](0x4)}):s(_0x4d88ea||'\x20',{'key':_0x46cf7e,'color':_0x4d88ea[_0x2417e1(0x11f)]('[+]')?_0x2417e1(0x137):_0x2417e1(0x170)}))),_0x377643(_0x1d0bf1,{'flexGrow':0x1}));}function G({content:_0x105314,width:_0x15b4a9,height:_0x11412c,offset:_0x4eb352}){const _0x2dc7e1=_0x4a8be8,_0x2c58c2=_0x46af78(_0x105314,_0x15b4a9),_0x344578=Math['min'](_0x4eb352,Math['max'](0x0,_0x2c58c2[_0x2dc7e1(0x1bb)]-_0x11412c));return _0x377643(_0x1d0bf1,{'flexDirection':_0x2dc7e1(0x20b),'height':_0x11412c,'overflow':'hidden'},..._0x2c58c2[_0x2dc7e1(0x141)](_0x344578,_0x344578+_0x11412c)['map']((_0x22c4de,_0x2acaab)=>s(_0x22c4de||'\x20',{'key':_0x2acaab})));}function z({state:_0x4e8320,height:_0x4205ac,width:_0x184234,ascii:_0x1e2bb3}){const _0x50b645=_0x4a8be8,_0x537e06=_0x1f852a(_0x4e8320),_0x190f32=_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f6),_0x489c90=_0x4e8320[_0x50b645(0x180)]==='tasks'?[_0x50b645(0x15f),_0x50b645(0x1fb),_0x50b645(0x21a),_0x50b645(0x1a0)]:_0x190f32?[_0x50b645(0x15f),'[/]\x20Search','[r]\x20Refresh']:_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?['[a]\x20Add\x20target',_0x50b645(0x1fb),_0x50b645(0x1a0)]:[];_0x4e8320['view']!==_0x50b645(0x17a)&&(_0x4e8320[_0x50b645(0x20c)]||_0x4e8320[_0x50b645(0x1cd)])&&_0x489c90[_0x50b645(0x1e2)](_0x50b645(0x1cb));const _0x4553d0=L(_0x489c90,_0x184234),_0x1896d7=_0x190f32?_0x4e8320[_0x50b645(0x129)]:_0x537e06[_0x50b645(0x1bb)],_0x2c56c9=_0x190f32?_0x1896d7===null?_0x537e06[_0x50b645(0x1bb)]+_0x50b645(0x1d1):_0x1896d7['toLocaleString']('en-US')+(_0x1896d7===0x1?'\x20task':_0x50b645(0x12d)):_0x537e06[_0x50b645(0x1bb)]+(_0x4e8320[_0x50b645(0x180)]==='wallet'?_0x50b645(0x14e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?_0x50b645(0x12c):_0x50b645(0x11d)+_0x4e8320[_0x50b645(0x1a3)]),_0x376fee=_0x1896d7===null?_0x50b645(0x1ff)+(_0x4e8320[_0x50b645(0x142)]+0x1):_0x4e8320[_0x50b645(0x142)]+0x1+'/'+_0x1896d7[_0x50b645(0x1d2)](_0x50b645(0x172)),_0x5654ca=_0x190f32&&_0x4e8320[_0x50b645(0x142)]===_0x537e06[_0x50b645(0x1bb)]-0x1;let _0x1f9d5d=_0x50b645(0x1b7);_0x5654ca&&(_0x4e8320[_0x50b645(0x178)]?_0x1f9d5d=_0x50b645(0x1ac):_0x4e8320[_0x50b645(0x20c)]&&_0x4e8320[_0x50b645(0x191)]?_0x1f9d5d='l\x20retry\x20history':_0x1f9d5d=_0x4e8320[_0x50b645(0x191)]?_0x50b645(0x20e):_0x50b645(0x10f));const _0x23f097=_0x537e06[_0x50b645(0x1bb)]?L([_0x376fee,_0x1f9d5d,_0x50b645(0x18f)],_0x184234):[],_0x3348e2=_0x4553d0[_0x50b645(0x1bb)]?_0x4553d0[_0x50b645(0x1bb)]+0x1:0x0,_0x4ebbd8=Math[_0x50b645(0x203)](0x1,Math['floor']((_0x4205ac-0x4-_0x23f097[_0x50b645(0x1bb)]-_0x3348e2)/0x3)),_0x1534d8=Math[_0x50b645(0x203)](0x0,Math[_0x50b645(0x1ba)](_0x4e8320['selected']-Math['floor'](_0x4ebbd8/0x2),_0x537e06[_0x50b645(0x1bb)]-_0x4ebbd8));return _0x377643(_0x1d0bf1,{'flexDirection':_0x50b645(0x20b),'flexGrow':0x1},s(_0x2c56c9,{'dimColor':!0x0}),..._0x537e06[_0x50b645(0x141)](_0x1534d8,_0x1534d8+_0x4ebbd8)[_0x50b645(0x162)]((_0x192202,_0x445cca)=>_0x377643(_0x1d0bf1,{'key':_0x192202['id'],'flexDirection':_0x50b645(0x20b)},s((_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca?'>\x20':'\x20\x20')+_0x4b445d((_0x192202[_0x50b645(0x110)]===_0x50b645(0x143)?_0x50b645(0x171):'')+_0x192202['title'],_0x184234-0x2),{'inverse':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca,'bold':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca}),s('\x20\x20'+_0x4b445d(_0x192202[_0x50b645(0x12a)]??_0x12f1e6(_0x192202[_0x50b645(0x1a2)])??(_0x192202[_0x50b645(0x10d)]?_0x50b645(0x175):_0x50b645(0x189)),_0x184234-0x2),{'color':de(_0x192202['state'])}),s((_0x1e2bb3?'-':'\u2500')[_0x50b645(0x19f)](_0x184234),{'dimColor':!0x0}))),_0x537e06['length']===0x0?s(_0x4e8320[_0x50b645(0x178)]?'Loading...':_0x4e8320['error']?_0x50b645(0x18e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x17a)?_0x50b645(0x19c):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x169)?_0x50b645(0x18c):'No\x20matching\x20items.',{'dimColor':!0x0}):null,_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x23f097[_0x50b645(0x162)]((_0x6921b3,_0x5437ec)=>s(_0x6921b3,{'key':_0x5437ec,'dimColor':!0x0})),_0x377643(U,{'rows':_0x4553d0,'width':_0x184234,'ascii':_0x1e2bb3}));}function fe({state:_0x22de42,width:_0x1926f0,height:_0x1e95d3,ascii:_0x3fa1ec,narrow:_0x2ad8df}){const _0x109ee1=_0x4a8be8,_0x25f11a=_0x2ad8df?_0x1926f0:Math[_0x109ee1(0x196)](_0x1926f0*0.43),_0x1c6d05=_0x2ad8df?_0x1926f0:_0x1926f0-_0x25f11a-0x1,_0x5ce12b=0x5,_0x5bea3a=_0x1e95d3-_0x5ce12b,_0x4ffe37=_0x22de42[_0x109ee1(0x1d8)]?.['configured']?[_0x109ee1(0x1c1),'[r]\x20Refresh']:[_0x109ee1(0x1a0)];(_0x22de42['error']||_0x22de42[_0x109ee1(0x1cd)])&&_0x4ffe37['push']('[e]\x20Error\x20details');const _0x1a060d=L(_0x4ffe37,_0x1c6d05-0x4),_0x20418a=L(['Esc/Tab\x20list','PgUp/PgDn\x20scroll'],_0x1c6d05-0x4),_0x59bda8=_0x377643(A,{'title':_0x109ee1(0x1d6),'width':_0x25f11a,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'ascii':_0x3fa1ec,'active':_0x22de42[_0x109ee1(0x19b)]==='list'},_0x377643(z,{'state':_0x22de42,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'width':_0x25f11a-0x4,'ascii':_0x3fa1ec})),_0x2fa0bf=_0x377643(A,{'title':_0x109ee1(0x200),'width':_0x1c6d05,'height':_0x5bea3a,'ascii':_0x3fa1ec,'active':_0x22de42['focus']===_0x109ee1(0x1d8)},_0x377643(G,{'content':_0x8f542f(_0x22de42),'width':_0x1c6d05-0x4,'height':_0x5bea3a-0x4-_0x20418a[_0x109ee1(0x1bb)]-_0x1a060d[_0x109ee1(0x1bb)],'offset':_0x22de42[_0x109ee1(0x206)]}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x20418a[_0x109ee1(0x162)]((_0x25e203,_0x5de8be)=>s(_0x25e203,{'key':_0x5de8be,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1a060d,'width':_0x1c6d05-0x4,'ascii':_0x3fa1ec})),_0x151148=_0x377643(A,{'title':_0x109ee1(0x124),'width':_0x1c6d05,'height':_0x5ce12b,'ascii':_0x3fa1ec,'active':!0x1},s(_0x109ee1(0x147)),s(_0x109ee1(0x1ee)));return _0x2ad8df?_0x377643(_0x1d0bf1,{'flexDirection':_0x109ee1(0x20b),'width':_0x1926f0,'height':_0x1e95d3},_0x22de42[_0x109ee1(0x19b)]==='list'?_0x59bda8:_0x2fa0bf,_0x151148):_0x377643(_0x1d0bf1,{'width':_0x1926f0,'height':_0x1e95d3,'gap':0x1},_0x59bda8,_0x377643(_0x1d0bf1,{'width':_0x1c6d05,'flexDirection':'column'},_0x2fa0bf,_0x151148));}function me({controller:_0x454bbe,state:_0x150a93,width:_0x2d8ab0,height:_0x1c78e1,ascii:_0x2cd3b4}){const _0x216968=_0x4a8be8,_0x363c2f=_0x150a93['form'],_0x128999=_0x363c2f['fields'][_0x363c2f[_0x216968(0x208)]],_0x34c871=_0x363c2f[_0x216968(0x15c)][_0x216968(0x141)](0x0,_0x363c2f[_0x216968(0x208)])[_0x216968(0x162)](_0x113416=>_0x113416[_0x216968(0x132)]+':\x20'+(_0x113416[_0x216968(0x1ea)]?_0x216968(0x17c):_0x363c2f[_0x216968(0x120)][_0x113416['name']]));return _0x377643(A,{'title':_0x363c2f[_0x216968(0x19e)],'width':_0x2d8ab0,'height':_0x1c78e1,'ascii':_0x2cd3b4,'active':!0x0},_0x377643(_0x1d0bf1,{'marginTop':0x1,'flexDirection':_0x216968(0x20b)},..._0x34c871[_0x216968(0x162)]((_0x1e7d21,_0x2a243d)=>s(_0x4b445d(_0x1e7d21,_0x2d8ab0-0x6),{'key':_0x2a243d,'dimColor':!0x0})),s(_0x128999['label'],{'bold':!0x0}),_0x377643(_0x1d0bf1,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x216968(0x203)](0x2,_0x1c78e1-0x9),'overflow':_0x216968(0x1f1)},s('>\x20',{'color':_0x216968(0x170)}),_0x377643(_0x3087f2,{'key':_0x128999[_0x216968(0x207)],'value':_0x363c2f['values'][_0x128999['name']],'placeholder':_0x128999[_0x216968(0x1e7)]??'','mask':_0x128999[_0x216968(0x1ea)]?'*':void 0x0,'onChange':_0x166c6a=>_0x454bbe[_0x216968(0x1b9)](_0x166c6a),'onSubmit':()=>_0x363c2f[_0x216968(0x208)]===_0x363c2f['fields'][_0x216968(0x1bb)]-0x1?void _0x454bbe[_0x216968(0x138)]():_0x454bbe[_0x216968(0x1e3)]()})),s(_0x363c2f[_0x216968(0x20c)]??'',{'color':_0x216968(0x11e)}),_0x363c2f['hint']?s(_0x363c2f[_0x216968(0x1af)],{'dimColor':!0x0}):null),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x216968(0x11a)+(_0x363c2f[_0x216968(0x208)]===_0x363c2f[_0x216968(0x15c)]['length']-0x1?_0x363c2f[_0x216968(0x19d)]:_0x216968(0x17e))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':_0x216968(0x170),'wrap':_0x216968(0x119)}));}function he({state:_0x48675f,width:_0x54935c,height:_0x1163b8,ascii:_0x1a161c}){const _0x4e8f89=_0x4a8be8,_0x2ab3b5=_0x48675f['confirm'],_0x40689b=_0x2ab3b5[_0x4e8f89(0x1e1)],_0x3d041d=_0x40689b?.[_0x4e8f89(0x186)],_0x2f8db1=_0x3d041d?.['coin']??_0x40689b?.[_0x4e8f89(0x146)]??_0x4e8f89(0x1bf),_0x1cfbf0=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?'Total\x20'+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x129)]+'\x20IMD\x20(fee\x20'+_0x40689b[_0x4e8f89(0x16c)]+'\x20+\x20support\x20'+_0x40689b['support'][_0x4e8f89(0x16c)]+')':_0x4e8f89(0x185)+_0x40689b[_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8):null,_0x17fa4a=_0x40689b?_0x4e8f89(0x14d)+_0x2f8db1+_0x4e8f89(0x14c)+_0x40689b['chainName']:null,_0x578792=_0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?_0x4e8f89(0x14a)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e1)]??_0x3d041d['amount'])+(_0x3d041d[_0x4e8f89(0x165)]?_0x4e8f89(0x130):''):null,_0xff185=_0x3d041d?.[_0x4e8f89(0x187)]?.[_0x4e8f89(0x179)]??(_0x40689b?.['networkFeeCap']?_0x40689b[_0x4e8f89(0x1ae)]+_0x4e8f89(0x1e0):null),_0xea0650=_0xff185?_0x4e8f89(0x20d)+_0xff185:null,_0x5d7c9e=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?_0x4e8f89(0x1aa):_0x4e8f89(0x1cc):null;let _0x1d03db=_0x40689b?_0x4e8f89(0x1d5)+(_0x40689b['support']?.[_0x4e8f89(0x129)]??_0x40689b[_0x4e8f89(0x16c)])+_0x4e8f89(0x14f):'';_0x40689b?.[_0x4e8f89(0x186)]&&_0x40689b['funding'][_0x4e8f89(0x13c)]!==_0x4e8f89(0x1bf)&&(_0x1d03db=_0x40689b['funding'][_0x4e8f89(0x165)]?_0x4e8f89(0x1c5):_0x4e8f89(0x1fa));const _0x31c5c1=0x2+_0x46af78(_0x2ab3b5[_0x4e8f89(0x19e)]??'Review\x20saved\x20payment',_0x54935c-0x4)['length']+[_0x1cfbf0,_0x17fa4a,_0x578792,_0xea0650,_0x5d7c9e]['filter'](Boolean)[_0x4e8f89(0x13e)]((_0xff2eb2,_0x4e3cae)=>_0xff2eb2+_0x46af78(_0x4e3cae,_0x54935c-0x4)[_0x4e8f89(0x1bb)],0x0)+(_0x54935c<0x46?_0x2ab3b5[_0x4e8f89(0x157)]?0x3:0x2:0x1)+0x1,_0x5ca4af=_0x40689b?[_0x4e8f89(0x13a),_0x40689b['objective'],'',..._0x40689b[_0x4e8f89(0x190)]['map'](_0x15ef38=>'-\x20'+_0x15ef38),'',..._0x40689b[_0x4e8f89(0x1ca)]?[_0x4e8f89(0x164),_0x4e8f89(0x131)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8),_0x4e8f89(0x1fc)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x1a5)],_0x4e8f89(0x199),'']:[],..._0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?[_0x3d041d[_0x4e8f89(0x165)]?'Conversion\x20to\x20IMD\x20already\x20confirmed.':_0x4e8f89(0x205)+_0x2f8db1+_0x4e8f89(0x117)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x183)]??_0x3d041d[_0x4e8f89(0x14b)]??_0x3d041d[_0x4e8f89(0x16c)])+_0x4e8f89(0x111)+(_0x3d041d[_0x4e8f89(0x187)]?.['payment']??_0x3d041d[_0x4e8f89(0x16c)])+'.',..._0x2f8db1===_0x4e8f89(0x192)?[_0x4e8f89(0x11b)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e9)]??_0x3d041d[_0x4e8f89(0x1e9)])+_0x4e8f89(0x1a4)]:[],_0x4e8f89(0x173)+_0x3d041d[_0x4e8f89(0x15d)],_0x4e8f89(0x1c9),'']:[],_0x4e8f89(0x127),..._0x2ab3b5['extraAction']?[_0x4e8f89(0x177)+_0x2ab3b5[_0x4e8f89(0x157)][_0x4e8f89(0x132)]+_0x4e8f89(0x167)]:[],_0x4e8f89(0x1bd),..._0x2ab3b5[_0x4e8f89(0x166)]?['',_0x4e8f89(0x184),_0x4e8f89(0x161)+_0x40689b[_0x4e8f89(0x1f2)],_0x4e8f89(0x150)+_0x40689b['network'],_0x4e8f89(0x13b)+_0x40689b['asset'],_0x4e8f89(0x136)+_0x40689b[_0x4e8f89(0x148)],_0x4e8f89(0x1a1)+_0x40689b[_0x4e8f89(0x217)],'',_0x4e8f89(0x1c7),JSON[_0x4e8f89(0x1fd)](_0x40689b[_0x4e8f89(0x1c8)],null,0x2)]:[]][_0x4e8f89(0x195)]('\x0a'):_0x2ab3b5[_0x4e8f89(0x1b6)][_0x4e8f89(0x195)]('\x0a');return _0x377643(A,{'title':_0x2ab3b5[_0x4e8f89(0x19e)]??_0x4e8f89(0x213),'width':_0x54935c,'height':_0x1163b8,'ascii':_0x1a161c,'active':!0x0},_0x1cfbf0?s(_0x1cfbf0,{'color':'cyan','bold':!0x0}):null,_0x17fa4a?s(_0x17fa4a,{'color':_0x4e8f89(0x170),'bold':!0x0}):null,_0x578792?s(_0x578792,{'color':_0x4e8f89(0x170)}):null,_0xea0650?s(_0xea0650,{'color':_0x4e8f89(0x188)}):null,_0x377643(G,{'content':_0x5ca4af,'width':_0x54935c-0x4,'height':Math[_0x4e8f89(0x203)](0x0,_0x1163b8-_0x31c5c1),'offset':_0x48675f['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),_0x5d7c9e?s(_0x5d7c9e,{'color':'yellow'}):null,_0x377643(_0x1d0bf1,{'flexDirection':_0x54935c<0x46?_0x4e8f89(0x20b):_0x4e8f89(0x1b2),'gap':_0x54935c<0x46?0x0:0x3},s('[\x20'+(_0x2ab3b5[_0x4e8f89(0x16f)]??(_0x40689b?_0x4e8f89(0x181):_0x4e8f89(0x1ab)))+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x0}),_0x2ab3b5['extraAction']?s('[\x20'+_0x2ab3b5['extraAction'][_0x4e8f89(0x132)]+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x40689b?_0x1d03db:_0x2ab3b5[_0x4e8f89(0x145)]??'Confirm')+'\x20]',{'inverse':_0x2ab3b5['accepted'],'color':_0x4e8f89(0x170)})),s(_0x4e8f89(0x1bc)+(_0x40689b?_0x4e8f89(0x1dd):''),{'dimColor':!0x0,'wrap':'truncate-end'}));}function pe({state:_0x28b9fc,width:_0x18d67b,height:_0x4a4f36,ascii:_0x485b43}){const _0x29ad8c=_0x4a8be8,_0x15c3a8=_0x28b9fc[_0x29ad8c(0x193)],_0xfb11d4=Math['max'](0x1,_0x4a4f36-0x5),_0x299d0d=Math[_0x29ad8c(0x203)](0x0,Math[_0x29ad8c(0x1ba)](_0x15c3a8[_0x29ad8c(0x142)]-Math['floor'](_0xfb11d4/0x2),_0x15c3a8[_0x29ad8c(0x1b3)]['length']-_0xfb11d4));return _0x377643(A,{'title':_0x15c3a8['title'],'width':_0x18d67b,'height':_0x4a4f36,'ascii':_0x485b43,'active':!0x0},..._0x15c3a8[_0x29ad8c(0x1b3)][_0x29ad8c(0x141)](_0x299d0d,_0x299d0d+_0xfb11d4)['map']((_0x5f8f59,_0x5f199b)=>s((_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]?'>\x20':'\x20\x20')+_0x5f8f59[_0x29ad8c(0x132)],{'key':_0x5f199b,'inverse':_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]})),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x29ad8c(0x16b),{'dimColor':!0x0}));}const we='WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.';function Ae({controller:_0x355e21,ascii:_0x213e54=!0x1,dimensions:_0x579fdb,terminal:_0x4bd5fb,feedback:_0x3cc182}){const _0x3208b7=_0x4a8be8,_0x1e0640=_0x15b696(_0x355e21[_0x3208b7(0x1f9)],_0x355e21[_0x3208b7(0x1d7)]),[_0x1605e6,_0x5dbe86]=_0x1fec36(0x0);_0xd6bd5d(()=>{const _0x11ce51=_0x3208b7,_0x486ece=setInterval(()=>_0x5dbe86(_0x1671ed=>(_0x1671ed+0x1)%Q[_0x11ce51(0x1bb)]),0x4e20);return()=>clearInterval(_0x486ece);},[]);const _0x4a1faa=_0x1e0640['error']??_0x1e0640[_0x3208b7(0x1cd)],_0x15ccb4=_0x3c7eca(),_0x134507=_0x579fdb??_0x15ccb4,_0x413e04=_0x134507[_0x3208b7(0x176)],_0x3e862f=Math[_0x3208b7(0x203)](0x8,_0x134507[_0x3208b7(0x134)]-0x1),_0x5340eb=_0x413e04<0x64,{exit:_0x27b90a}=_0x1c6ab1();if(_0xd6bd5d(()=>(_0x355e21[_0x3208b7(0x1e8)]=_0x4bd5fb,_0x355e21['refresh']()['then'](()=>{const _0x4a7687=_0x3208b7;_0x3cc182&&_0x355e21[_0x4a7687(0x1e5)](_0x3cc182);}),()=>_0x355e21[_0x3208b7(0x123)]()),[_0x355e21,_0x4bd5fb,_0x3cc182]),_0xd6bd5d(()=>{const _0x190409=setInterval(()=>{const _0x5e865e=_0x11f7;_0x355e21[_0x5e865e(0x215)]();},0x1388);return()=>clearInterval(_0x190409);},[_0x355e21]),_0x23dbf4((_0x2e2ddf,_0x160c0a)=>{const _0x45f222=_0x3208b7;if(_0x160c0a[_0x45f222(0x1d9)]&&_0x2e2ddf==='c'){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(_0x1e0640[_0x45f222(0x209)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x1e5)]({'privateKeyView':null});return;}if(_0x413e04<0x28||_0x134507['rows']<0x14){_0x1e0640['receive']?_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)]():_0x2e2ddf==='q'&&(_0x355e21[_0x45f222(0x123)](),_0x27b90a());return;}if(_0x1e0640['confirm']){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21['respond'](!0x1):_0x160c0a[_0x45f222(0x1f5)]||_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1c0)]?_0x355e21[_0x45f222(0x1d4)](_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1f5)]&&_0x160c0a[_0x45f222(0x159)]?-0x1:0x1):_0x160c0a[_0x45f222(0x1ed)]?_0x355e21[_0x45f222(0x1dc)]():_0x2e2ddf==='i'?_0x355e21[_0x45f222(0x1e5)]({'confirm':{..._0x1e0640['confirm'],'expanded':!_0x1e0640[_0x45f222(0x15b)]['expanded']},'scroll':0x0}):(_0x160c0a[_0x45f222(0x1f4)]||_0x160c0a[_0x45f222(0x1ad)])&&_0x355e21[_0x45f222(0x1e5)]({'scroll':Math[_0x45f222(0x203)](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:-0x5))});return;}if(_0x1e0640[_0x45f222(0x160)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x204)]():_0x160c0a[_0x45f222(0x1f5)]&&_0x355e21[_0x45f222(0x1e3)](_0x160c0a[_0x45f222(0x159)]);return;}if(_0x1e0640[_0x45f222(0x1ef)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)](),_0x2e2ddf==='s'&&_0x355e21['saveReceiveQr']();return;}if(_0x1e0640[_0x45f222(0x193)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x1f3)]():_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]?_0x355e21[_0x45f222(0x1e5)]({'menu':{..._0x1e0640[_0x45f222(0x193)],'selected':Math[_0x45f222(0x203)](0x0,Math[_0x45f222(0x1ba)](_0x1e0640[_0x45f222(0x193)][_0x45f222(0x1b3)][_0x45f222(0x1bb)]-0x1,_0x1e0640[_0x45f222(0x193)][_0x45f222(0x142)]+(_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1)))}}):_0x160c0a[_0x45f222(0x1ed)]&&_0x355e21['chooseMenu']();return;}if(_0x2e2ddf==='q'&&!_0x1e0640['busy']){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(!_0x1e0640[_0x45f222(0x178)]){if(_0x2e2ddf==='e'&&_0x4a1faa){_0x355e21['showError']();return;}if(_0x45f222(0x1be)[_0x45f222(0x1b4)](_0x2e2ddf)&&_0x2e2ddf[_0x45f222(0x1bb)]===0x1){_0x355e21[_0x45f222(0x1eb)](_0x118e55[Number(_0x2e2ddf)-0x1]);return;}if(_0x2e2ddf==='?'){_0x355e21[_0x45f222(0x1e5)]({'help':!_0x1e0640[_0x45f222(0x10e)],'scroll':0x0});return;}if(_0x160c0a[_0x45f222(0x1cf)]){_0x355e21[_0x45f222(0x1e5)]({'focus':'list','help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x2e2ddf==='n'){_0x1e0640['view']==='wallet'?_0x355e21[_0x45f222(0x139)](!0x1):_0x355e21[_0x45f222(0x121)]();return;}if(_0x2e2ddf==='r'){_0x355e21['refresh']();return;}if(_0x160c0a['pageDown']||_0x160c0a[_0x45f222(0x1ad)]||_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x1d8)&&(_0x160c0a['downArrow']||_0x160c0a[_0x45f222(0x17b)])){_0x355e21['update']({'scroll':Math['max'](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:_0x160c0a[_0x45f222(0x1ad)]?-0x5:_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1))});return;}if(_0x1e0640[_0x45f222(0x180)]==='wallet'){(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)])&&_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1),(_0x160c0a['return']||_0x160c0a['tab'])&&_0x355e21['update']({'focus':_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x174)?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0}),_0x2e2ddf==='u'&&_0x355e21[_0x45f222(0x112)](),_0x2e2ddf==='m'&&_0x355e21[_0x45f222(0x198)](),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x17d)](),_0x2e2ddf==='i'&&_0x355e21['walletImport'](),_0x2e2ddf==='d'&&_0x355e21['walletReceive'](),_0x2e2ddf==='b'&&_0x355e21[_0x45f222(0x16d)]();return;}if(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]){_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1);return;}if(_0x160c0a[_0x45f222(0x1ed)]||_0x160c0a[_0x45f222(0x1f5)]){_0x355e21[_0x45f222(0x1e5)]({'focus':_0x1e0640[_0x45f222(0x19b)]==='list'?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0});return;}if(_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x1f8)){_0x2e2ddf==='/'&&_0x355e21['search'](),_0x2e2ddf==='a'&&_0x355e21[_0x45f222(0x19a)](),_0x2e2ddf==='m'&&_0x355e21['workerMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x155)](['logs']),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x155)]([_0x45f222(0x140)]);return;}_0x2e2ddf==='/'&&_0x355e21[_0x45f222(0x214)](),_0x2e2ddf==='f'&&_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x169)&&_0x355e21[_0x45f222(0x144)](),(_0x2e2ddf==='['||_0x2e2ddf===']')&&_0x355e21[_0x45f222(0x16e)](_0x2e2ddf==='['?-0x1:0x1),_0x2e2ddf==='d'&&_0x355e21[_0x45f222(0x128)](),_0x2e2ddf==='s'&&_0x355e21[_0x45f222(0x113)](),_0x2e2ddf==='c'&&_0x355e21[_0x45f222(0x15a)](),_0x2e2ddf==='o'&&_0x355e21[_0x45f222(0x1c3)](),_0x2e2ddf==='x'&&_0x355e21[_0x45f222(0x20a)](),_0x2e2ddf==='m'&&_0x355e21['taskMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x197)]();}}),_0x413e04<0x28||_0x134507[_0x3208b7(0x134)]<0x14)return _0x377643(_0x1d0bf1,{'width':_0x413e04,'flexDirection':_0x3208b7(0x20b)},s(_0x3208b7(0x13d),{'color':_0x3208b7(0x170)}),s(_0x3208b7(0x1fe)),s(_0x1e0640[_0x3208b7(0x1ef)]||_0x1e0640['privateKeyView']?'Esc\x20back':_0x3208b7(0x202)));if(_0x1e0640[_0x3208b7(0x209)])return _0x377643(A,{'title':_0x3208b7(0x211),'width':_0x413e04,'height':_0x3e862f,'ascii':_0x213e54,'active':!0x0},s(_0x3208b7(0x163)+_0x1e0640[_0x3208b7(0x209)][_0x3208b7(0x12f)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':'yellow'}),_0x377643(_0x1d0bf1,{'marginTop':0x1},s(_0x1e0640['privateKeyView'][_0x3208b7(0x126)])),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s('Esc\x20hide\x20and\x20return',{'color':_0x3208b7(0x170)}));if(_0x1e0640['receive']&&!_0x1e0640['form']){const _0x3a6b96=_0x1e0640[_0x3208b7(0x1ef)],_0x66f8c1=_0x3a6b96['qr']['split']('\x0a'),_0x206a6d=!_0x3a6b96['networks']||_0x3a6b96['networks']['length']===0x1,_0x5e03bd=[..._0x206a6d?[_0x3208b7(0x194)+_0x3a6b96[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')]:_0x3a6b96[_0x3208b7(0x1db)]['map'](_0x1dd4f1=>_0x1dd4f1['chainName']+':\x20'+_0x1dd4f1[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')),..._0x3a6b96[_0x3208b7(0x1f0)]??[]],_0x4035b2=_0x206a6d?_0x3208b7(0x1b5)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x158)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x1ce):_0x3208b7(0x212),_0x4af1d6=[_0x3a6b96[_0x3208b7(0x12f)],..._0x5e03bd,_0x4035b2][_0x3208b7(0x13e)]((_0x73232d,_0x17bf75)=>_0x73232d+_0x46af78(_0x17bf75,_0x413e04)[_0x3208b7(0x1bb)],0x0),_0x37880a=_0x66f8c1[_0x3208b7(0x1bb)]+_0x4af1d6+0x2,_0x545364=_0x413e04>=_0x66f8c1[0x0][_0x3208b7(0x1bb)]&&_0x3e862f>=_0x37880a;return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':_0x3208b7(0x20b)},s(_0x206a6d?_0x3208b7(0x1b0)+_0x3a6b96['chainName']:_0x3208b7(0x152),{'bold':!0x0,'color':'cyan'}),s(_0x3a6b96[_0x3208b7(0x12f)]),..._0x5e03bd[_0x3208b7(0x162)]((_0x3f511a,_0x574977)=>s(_0x3f511a,{'key':_0x574977})),_0x545364?s(_0x3a6b96['qr'],{'color':_0x3208b7(0x1df),'backgroundColor':_0x3208b7(0x168)}):s(_0x3208b7(0x1e6)+Math[_0x3208b7(0x203)](0x28,_0x66f8c1[0x0][_0x3208b7(0x1bb)])+_0x3208b7(0x1da)+(_0x37880a+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x4035b2,{'color':_0x3208b7(0x188)}),s(_0x4b445d(_0x1e0640[_0x3208b7(0x20c)]??_0x1e0640[_0x3208b7(0x154)]??_0x3208b7(0x182),_0x413e04),{'color':_0x1e0640['error']?_0x3208b7(0x11e):_0x3208b7(0x170)}));}const _0x1443c0=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x17f)],_0x29d85b=Math[_0x3208b7(0x203)](0x6,_0x3e862f-(_0x1443c0?0x3:0x6)),_0x2c8303=_0x1f852a(_0x1e0640)[_0x1e0640[_0x3208b7(0x142)]];let _0x4ca51d;if(_0x1e0640['form'])_0x4ca51d=_0x377643(me,{'controller':_0x355e21,'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640[_0x3208b7(0x15b)])_0x4ca51d=_0x377643(he,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['modelProgress'])_0x4ca51d=_0x377643(ue,{'event':_0x1e0640[_0x3208b7(0x17f)],'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['menu'])_0x4ca51d=_0x377643(pe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['help'])_0x4ca51d=_0x377643(A,{'title':_0x3208b7(0x20f),'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'active':!0x0},_0x377643(G,{'content':we,'width':_0x413e04-0x4,'height':_0x29d85b-0x4,'offset':_0x1e0640[_0x3208b7(0x206)]}),s(_0x3208b7(0x218),{'dimColor':!0x0}));else{if(_0x1e0640['view']===_0x3208b7(0x17a))_0x4ca51d=_0x377643(fe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'narrow':_0x5340eb});else{const _0x2da724=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174),_0x2336ad=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]==='detail',_0x16cc73=_0x5340eb?_0x413e04:Math['floor'](_0x413e04*0.43),_0x3b3139=_0x2da724&&!_0x5340eb?_0x413e04-_0x16cc73-0x1:_0x413e04,_0x980287=_0x8f542f({..._0x1e0640,'selectedId':_0x2c8303?.['id']}),_0x50776e=_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x169)||_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x1f6),_0x13cacb=_0x50776e?_0x48aa65(_0x2c8303,_0x1e0640[_0x3208b7(0x180)]):_0x2c8303?_0x2c8303[_0x3208b7(0x110)]==='network-worker'?['Read\x20only']:[_0x3208b7(0x1c1),_0x3208b7(0x1a8),_0x3208b7(0x1ec)]:[];_0x4a1faa&&_0x13cacb[_0x3208b7(0x1e2)](_0x3208b7(0x1cb));const _0x1b99ec=L(_0x13cacb,_0x3b3139-0x4),_0x39acd5=_0x1b99ec['length']?_0x1b99ec[_0x3208b7(0x1bb)]+0x1:0x0,_0x24f5c4=L([_0x3208b7(0x1d0),'PgUp/PgDn\x20scroll',..._0x50776e?['[\x20]\x20tabs']:[]],_0x3b3139-0x4);_0x4ca51d=_0x377643(_0x1d0bf1,{'height':_0x29d85b,'width':_0x413e04,'gap':0x1},_0x2da724?_0x377643(A,{'title':(_0x1e0640[_0x3208b7(0x180)]==='workers'?_0x3208b7(0x1c2):_0x1e0640[_0x3208b7(0x1a3)])+(_0x1e0640[_0x3208b7(0x1a7)]?_0x3208b7(0x201)+_0x4b445d(_0x1e0640['query'],0x16):''),'width':_0x16cc73,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174)},_0x377643(z,{'state':_0x1e0640,'height':_0x29d85b,'width':_0x16cc73-0x4,'ascii':_0x213e54})):null,_0x2336ad?_0x377643(A,{'title':_0x4b445d(_0x2c8303?.['id']??_0x3208b7(0x116),_0x3b3139-0x7),'width':_0x3b3139,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x1d8)},_0x50776e?s([_0x3208b7(0x15e),_0x3208b7(0x12b),_0x3208b7(0x1c6)][_0x3208b7(0x162)](_0x20b2c2=>_0x20b2c2===_0x1e0640[_0x3208b7(0x1f5)]?'['+_0x20b2c2+']':_0x20b2c2)['join']('\x20\x20'),{'color':_0x3208b7(0x170),'wrap':'truncate-end'}):null,_0x377643(G,{'content':_0x980287,'width':_0x3b3139-0x4,'height':_0x29d85b-0x3-Number(_0x50776e)-_0x39acd5-_0x24f5c4[_0x3208b7(0x1bb)],'offset':_0x1e0640['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x24f5c4[_0x3208b7(0x162)]((_0x2c7104,_0x1e97da)=>s(_0x2c7104,{'key':_0x1e97da,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1b99ec,'width':_0x3b3139-0x4,'ascii':_0x213e54})):null);}}}}}}const _0x29cf65=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?_0x3208b7(0x1de):_0x3208b7(0x1b1),_0x4246ba=_0x413e04<0x4b?_0x118e55['map']((_0x475edf,_0x4d3d9e)=>'['+(_0x4d3d9e+0x1)+']'+[_0x3208b7(0x133),_0x3208b7(0x210),_0x3208b7(0x125),'Wallets'][_0x4d3d9e])[_0x3208b7(0x195)]('\x20'):_0x118e55[_0x3208b7(0x162)]((_0x482528,_0x39edb2)=>(_0x482528===_0x1e0640[_0x3208b7(0x180)]?'>\x20':'\x20\x20')+'['+(_0x39edb2+0x1)+']\x20'+ce[_0x482528])['join']('\x20\x20');return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':'column'},_0x377643(_0x1d0bf1,{'justifyContent':'space-between','height':_0x1443c0?0x1:0x2},s(_0x3208b7(0x216),{'color':_0x3208b7(0x170),'bold':!0x0}),_0x413e04>=0x4b?s(_0x1e0640[_0x3208b7(0x12f)]?_0x4b445d(_0x1e0640['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1443c0?null:s(_0x4246ba,{'color':_0x3208b7(0x170),'wrap':_0x3208b7(0x119)}),_0x1443c0?null:_0x1e0640[_0x3208b7(0x178)]||_0x1e0640[_0x3208b7(0x1e4)]?_0x377643(B,{'label':_0x1e0640[_0x3208b7(0x178)]??_0x3208b7(0x18b)}):s(_0x1e0640['note'],{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}),_0x4ca51d,s(_0x4b445d(_0x4a1faa??_0x1e0640[_0x3208b7(0x154)]??(_0x1443c0||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?'':Q[_0x1605e6]),_0x413e04),{'color':_0x4a1faa?_0x3208b7(0x11e):_0x1e0640[_0x3208b7(0x154)]?_0x3208b7(0x137):void 0x0,'dimColor':!_0x4a1faa&&!_0x1e0640[_0x3208b7(0x154)]}),s(_0x29cf65,{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}));}function _0x11f7(_0x30f202,_0x203dda){_0x30f202=_0x30f202-0x10d;const _0x11f7e6=_0x203d();let _0x4a6eb3=_0x11f7e6[_0x30f202];return _0x4a6eb3;}export{Ae as DashboardApp};function _0x203d(){const _0x39ce0d=['installed','help','End\x20of\x20history','kind',',\x20at\x20most\x20','useSelectedWallet','download','challenged','payment_failed','DETAILS','\x20to\x20IMD\x20for\x20you:\x20≈\x20','completed','truncate-end','Enter\x20','Total\x20ETH\x20at\x20most:\x20','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','\x20items\x20·\x20','red','startsWith','values','create','gray','close','WALLET\x20MANAGEMENT','Work','privateKey','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','files','total','subtitle','Activity','\x20entries\x20·\x20Mine\x20+\x20Network','\x20tasks','selection','address','\x20(converted)','Optional\x20support:\x20','label','Mine','rows','cancelled','Pay\x20to:\x20','green','submitForm','walletSetup','REQUEST','Asset:\x20','coin','COLONY','reduce','My\x20tasks','doctor','slice','selected','managed-worker','cycleFilter','acceptLabel','payWith','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','payTo','blocked','Payment:\x20at\x20most\x20','estimatedAmount','\x20on\x20','Pay\x20with\x20','\x20wallets','\x20IMD\x20&\x20publish','Network:\x20','expired','Receive\x20funds','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','notice','workerCommand','Explore','extraAction','\x20only.\x20Choose\x20','shift','continueTask','confirm','fields','minimumImd','Overview','[n]\x20New\x20task','form','Quote\x20expires:\x20','map','Wallet:\x20','Help\x20us\x20make\x20Colony\x20better.','converted','expanded','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','white','tasks','Preparing\x20local\x20LLM','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','amount','walletBackup','changeTab','cancelLabel','cyan','Mine\x20·\x20','en-US','IMD\x20for\x20this\x20task:\x20','list','Deployed\x20·\x20status\x20on\x20selection','columns','Choose\x20','busy','gas','wallet','upArrow','********','walletManagement','next','modelProgress','view','Cancel\x20/\x20edit','s\x20save\x20QR\x20·\x20Esc\x20back','estimate','PAYMENT\x20DETAILS','Fee\x20','funding','display','yellow','Not\x20deployed','downArrow','Refreshing\x20tasks...','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','closeReceive','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','Enter/Tab\x20details','deliverables','cursor','ETH','menu','Accepted:\x20','join','floor','more','walletMenu','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','addTarget','focus','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','submit','title','repeat','[r]\x20Refresh','Order:\x20','state','filter','\x20(payment\x20+\x20gas)','recipient','move','query','[l]\x20Logs','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','Cancel','Loading\x20history...','pageUp','networkFeeCap','hint','Receive\x20on\x20','[?]\x20Help\x20\x20[q]\x20Quit','row','items','includes','Send\x20on\x20','lines','up/down','\x20IMD','setField','min','length','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','IMD','rightArrow','[m]\x20Actions','WORKERS','resumeOrder','coins','Continue\x20&\x20publish','Files','SERVER\x20PREPARED\x20INPUT','prepared','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','support','[e]\x20Error\x20details','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','refreshError','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','escape','Esc/Tab\x20list','\x20results\x20loaded','toLocaleString','refused','moveConfirmation','Pay\x20','WALLETS','getSnapshot','detail','ctrl','\x20columns\x20and\x20','networks','submitConfirmation','\x20·\x20i\x20details','[Ctrl+C]\x20Exit','black','\x20ETH','payment','push','nextField','refreshing','update','Resize\x20to\x20at\x20least\x20','placeholder','terminal','maximumDebit','secret','navigate','[g]\x20Diagnostics','return','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','receive','targets','hidden','expiresAt','dismissMenu','pageDown','tab','explore','[>]','workers','subscribe','Convert\x20&\x20publish','[/]\x20Search','Support\x20recipient:\x20','stringify','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','Item\x20','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20/\x20','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','max','dismissForm','Colony\x20converts\x20','scroll','name','field','privateKeyView','cancelRequest','column','error','Gas\x20(network\x20fee):\x20at\x20most\x20','down\x20loads\x20more','Keyboard\x20shortcuts','Browse','Private\x20key','Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.','Review\x20saved\x20payment','search','autoRefresh','COLONY\x20\x20get\x20things\x20done.','orderId','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','leftArrow','[f]\x20Filter','chainName'];_0x203d=function(){return _0x39ce0d;};return _0x203d();}
@@ -1 +1 @@
1
- const _0x58ce40=_0x2b86;import{coinSymbol as _0x3fc6d7}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x44d155,paymentView as _0x4961d7}from'./services.mjs';import{lockWallet as _0x1e3d49}from'../lib/local-wallet.mjs';import{fundingInstructions as _0x578522}from'../lib/funding-error.mjs';const D=[_0x58ce40(0xdd),_0x58ce40(0x8d),_0x58ce40(0xe4),_0x58ce40(0x1d5)],f=[_0x58ce40(0x1a4),_0x58ce40(0x103),_0x58ce40(0x150),_0x58ce40(0x1d0),_0x58ce40(0x100)],u=['Overview',_0x58ce40(0xcb),'Files'],m=new Set(['created','quoted','challenged','funding','signed',_0x58ce40(0xef),_0x58ce40(0xec),'running','executing',_0x58ce40(0x115),'admitting']),k=new Set([_0x58ce40(0xc5),_0x58ce40(0xa8),_0x58ce40(0x142),'payment_reconciling']),R=new Set(['transaction_pending',_0x58ce40(0xdf)]),C=0x7530;function p(_0x4b223b){const _0x396edf=_0x58ce40;return _0x4b223b['items'][_0x396edf(0xce)](_0x593c71=>!['tasks',_0x396edf(0xe4)][_0x396edf(0x162)](_0x4b223b['view'])||[_0x593c71[_0x396edf(0x89)],_0x593c71['id'],_0x593c71[_0x396edf(0x12f)]??''][_0x396edf(0x155)](_0x5c6ac5=>_0x5c6ac5[_0x396edf(0x19e)]()[_0x396edf(0x162)](_0x4b223b[_0x396edf(0x1b9)][_0x396edf(0x19e)]()))?_0x4b223b[_0x396edf(0xce)]===_0x396edf(0x1a4)||_0x4b223b['view']!==_0x396edf(0xdd)?!0x0:_0x4b223b[_0x396edf(0xce)]===_0x396edf(0x150)?_0x593c71['state']===_0x396edf(0x8b):_0x4b223b['filter']==='Cancelled'?_0x593c71[_0x396edf(0x1af)]===_0x396edf(0x7d):_0x4b223b[_0x396edf(0xce)]===_0x396edf(0x103)?m[_0x396edf(0x16c)](_0x593c71['state']):!['completed','cancelled'][_0x396edf(0x162)](_0x593c71['state'])&&!m['has'](_0x593c71[_0x396edf(0x1af)]):!0x1);}function _0x2b86(_0x3ade02,_0x1537fc){_0x3ade02=_0x3ade02-0x76;const _0x2b8666=_0x1537();let _0x31d43d=_0x2b8666[_0x3ade02];return _0x31d43d;}function h(){const _0x2c5f6f=_0x58ce40;return Object[_0x2c5f6f(0xb8)](new Error('Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.'),{'code':_0x2c5f6f(0x7d)});}function S(_0x573c18){const _0x412b9d=_0x58ce40;if(!_0x573c18)return[];const _0x4d8ce4=[];return _0x573c18[_0x412b9d(0x166)]&&_0x4d8ce4[_0x412b9d(0x106)](_0x412b9d(0x8f)+_0x573c18[_0x412b9d(0x166)]+(_0x573c18[_0x412b9d(0xf7)]?'\x20('+_0x573c18[_0x412b9d(0xf7)]+')':'')),_0x573c18[_0x412b9d(0x179)]&&_0x4d8ce4[_0x412b9d(0x106)]('Reason:\x20'+_0x573c18[_0x412b9d(0x179)]),_0x573c18[_0x412b9d(0x1bf)]&&_0x4d8ce4[_0x412b9d(0x106)]('Explorer:\x20'+_0x573c18['explorerUrl']),_0x4d8ce4;}function I(_0x1c223d){const _0x5be105=_0x58ce40,_0x322ea4=[_0x1c223d[_0x5be105(0x1c7)]||'The\x20payment\x20result\x20is\x20not\x20final\x20yet.'];return _0x322ea4['push'](...S(_0x1c223d[_0x5be105(0x186)])),_0x322ea4[_0x5be105(0x106)](_0x5be105(0x9f)),_0x322ea4[_0x5be105(0x86)]('\x0a');}function _0x1537(){const _0x16ba0c=['deploy','Receive\x20funds\x20/\x20QR\x20code','Task\x20actions','map','job.continue','objective','Downloading\x20verified\x20files...','cancelled','\x20is\x20required.','logs','terminal','Explorer:\x20','localeCompare','Import\x20wallet','create','List\x20tools','join','operation','now','title','selectWallet','completed','admitted','explore','A\x20little\x20more\x20information','Transaction:\x20','wallets','list','Cancel\x20request','start','field','walletNetworkMenu','receive','parent','Worker\x20skills','canCancel','Task\x20published:\x20','showMenu','questions','subscribe','Add\x20tool','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.','local','Loading\x20files...','download','address','since','total','Download','refresh','payment_failed','Files','coins','formSubmit','Search\x20workers','name','refreshWalletSelection','publishDraft','Remove\x20tool','Checking\x20balance\x20and\x20refreshing\x20prices...','listeners','Add\x20skill','run','deliverables','walletRestore','abort','assign','View\x20private\x20key\x20·\x20confirm\x20password','network-worker','Local\x20wallet\x20password','passwordReject','View\x20result\x20files','colony\x20worker\x20','files','Confirm\x20password','value','navigate','Review\x20task','deleteRequest','expired','confirmReplacement','showError','Backup\x20password','\x20managed\x20targets\x20·\x20Network\x20unavailable\x20·\x20r\x20retry','Choose\x20payment\x20network\x20(all\x20wallets)','Activity','pendingTransaction','Checking\x20the\x20saved\x20order...','filter','Keyword\x20or\x20task\x20ID','Preparing\x20local\x20LLM...','draft','Cancel\x20this\x20request?','chooseSupport','autoRefresh','length','getSnapshot','host','error','funding_required','password','SSH\x20identity\x20file\x20(optional)','refreshError','tasks','Backup\x20file\x20path','payment_reconciling','Identity','networkWorkers','Tool\x20credential','refusalProblems','workers','The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.','Credential\x20name','...','backupWallet','ask','Delete\x20local\x20record','QR\x20saved:\x20','queued','remove','scroll','submitted','Tools\x20&\x20credentials','concurrency','\x20verified\x20files\x20to\x20','closed','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','menu','Loading\x20network\x20workers...','kind','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','refreshRequest','services','walletImport','cancelAutoRefresh','clear','Passwords\x20do\x20not\x20match.','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','Cancelled','worker','requestPassword','Active','Not\x20paid.\x20','Worker:\x20','push','Preparing\x20receive\x20address...','setField','Back','update','Worker\x20ID,\x20runtime\x20or\x20skill','Wallet\x20unlock\x20cancelled.','Selecting\x20','Checking\x20your\x20balance\x20and\x20network\x20fees...','createWallet','detail','Download\x20task\x20files','fields','result','detailLoading','pending','Chain\x20ID','set','configured','changeTab','Set\x20local\x20wallet\x20password','New\x20SVG\x20file\x20path','selected','Add\x20funds\x20to\x20continue','stop','delete','walletIsCurrent','Choose\x20an\x20output\x20directory.','Remove\x20skill','useSelectedWallet','findIndex','Payment\x20needs\x20review.','extraTargets','Save\x20QR','orderId','restoreWallet','values','Create\x20a\x20new\x20local\x20wallet','close','Set\x20tool\x20credential\x20(hidden\x20input)','signal','searchText','View\x20private\x20key','doctor','Skills','trim','form','Review\x20task\x20&\x20payment','resume','Current','Tool\x20ID','Runtime\x20(claude\x20or\x20codex)','showForm','serviceInstall','busy','restart','lastExploreRefresh','items','walletManagement','tools','transaction_pending','Run\x20on\x20','identity','Add\x20RPC','Enter\x20yes\x20or\x20no.','colony-receive.svg','loaded','options','editDraft','showPaymentProgress','canDelete','Import\x20private\x20key\x20·\x20encrypted\x20locally','max','file','Completed','List\x20RPC\x20endpoints','cancelRequest','Save\x20recharge\x20QR\x20code','status','some','taskMenu','loadDetail','walletPrivateKey','Current\x20wallet:\x20','Save\x20backup','source','Loading\x20older\x20tasks...','jobId','dismissForm','Auto-refresh\x20failed:\x20','restoreSelectedId','Add\x20a\x20worker\x20target','includes','Backup\x20saved:\x20','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','Back\x20up\x20encrypted\x20wallet','hash','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Cancelling\x20request...','targets','add','has','What\x20would\x20you\x20like\x20to\x20change?','formCancel','showOutcome','Understanding\x20your\x20request...','view','Loading\x20','Download\x20files','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','Check\x20balance\x20&\x20continue','Update\x20network\x20fee','Overview','Deleting\x20local\x20record...','reason','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','SSH\x20port','nextField','continueTask','refreshExplore','canResume','List\x20skills','createdAt','\x20managed\x20targets\x20·\x20','input','concat','toUpperCase','transaction','publish','Request\x20changes\x20(new\x20paid\x20task)','saveReceiveQr','Continue','currentAddress','Remove\x20RPC','From\x20private\x20key','refused','Saved\x20','confirmResolve','askResolve','payWith','Restoring\x20wallet...','requestKey','checkTaskWallet','Worker\x20tools','stage','Forget\x20credential','whoami','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','resumeOrder','Use\x20at\x20least\x208\x20characters.','code','toLowerCase','receiveWallet','Wallet\x20management\x20·\x20all\x20wallets','Deploy\x20official\x20worker','Skill\x20ID','path','All','Checking\x20wallet\x20password...','slice','Add\x20RPC\x20endpoint\x20(hidden\x20input)','privateKeyView','running','submitForm','Status','test','Order\x20status:\x20','Review\x20&\x20pay','state','search','claude','paymentCoins','Unlink\x20worker','Save\x20under\x20this\x20directory','Install\x20background\x20service','port','Remove\x20RPC\x20endpoint','addTarget','query','Concurrent\x20tasks\x20(1–4)','walletReceive','Local\x20record\x20deleted.','detailRequest','Linux\x20start\x20at\x20boot\x20(yes/no)','explorerUrl','command','walletSetup','skills','cursor','help','updatedAt','Restore\x20encrypted\x20wallet','message','funding','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','Encrypting\x20wallet\x20locally...','cancel','workerCommand','move','rpc','withFundingRetry','Attention','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','detailVersion','Search','out','wallet','Keep\x20request','Create\x20a\x20task','networks','lines','job.open','One\x20local\x20password\x20·\x20u\x20use\x20selected\x20wallet','blockers','supportReject','yes','managed-worker','active','min','confirm','plan','What\x20would\x20you\x20like\x20to\x20get\x20done?','walletBackup','note','exploreUpdates','chain','This\x20request\x20is\x20not\x20supported.','more','boot','saveQr','View\x20details','From\x20encrypted\x20backup','fromEntries','key','walletMenu','detailTimer','indexOf','Pair\x20with\x20wallet','workerMenu','service'];_0x1537=function(){return _0x16ba0c;};return _0x1537();}class E{constructor(_0x1b9e40){const _0xe6b12=_0x58ce40;this[_0xe6b12(0xfa)]=_0x1b9e40,this[_0xe6b12(0xb2)]=new Set(),this[_0xe6b12(0x1af)]={'view':_0xe6b12(0xdd),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0xe6b12(0x177),'filter':_0xe6b12(0x1a4),'query':'','note':'','focus':'list','scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this['detailVersion']=0x0,this[_0xe6b12(0x126)]=[],this[_0xe6b12(0xf3)]=!0x1,this[_0xe6b12(0x13e)]=0x0;}[_0x58ce40(0x9d)]=_0x4bd04e=>(this[_0x58ce40(0xb2)][_0x58ce40(0x16b)](_0x4bd04e),()=>this[_0x58ce40(0xb2)][_0x58ce40(0x11f)](_0x4bd04e));[_0x58ce40(0xd6)]=()=>this[_0x58ce40(0x1af)];[_0x58ce40(0x10a)](_0x2a852f){const _0x3b6a9b=_0x58ce40;if(!this[_0x3b6a9b(0xf3)]){this[_0x3b6a9b(0x1af)]={...this[_0x3b6a9b(0x1af)],..._0x2a852f};for(const _0x5d7f7e of this[_0x3b6a9b(0xb2)])_0x5d7f7e();}}['selected'](){return p(this['state'])[this['state']['selected']];}[_0x58ce40(0xc7)](){const _0x4044a0=_0x58ce40;++this[_0x4044a0(0x1d2)],this[_0x4044a0(0x10a)]({'detail':{'output':this[_0x4044a0(0x1af)][_0x4044a0(0xd8)]??this[_0x4044a0(0x1af)][_0x4044a0(0xdc)]},'detailLoading':!0x1,'focus':_0x4044a0(0x110),'scroll':0x0,'tab':'Overview'});}[_0x58ce40(0xfc)](){const _0x123cb3=_0x58ce40;this['refreshRequest']?.[_0x123cb3(0xb7)](),this[_0x123cb3(0xf9)]=null,this[_0x123cb3(0x10a)]({'refreshing':!0x1});}async['run'](_0x56f140,_0x1f5283){const _0xe9d23b=_0x58ce40;if(!this[_0xe9d23b(0x1af)][_0xe9d23b(0x13c)]){this[_0xe9d23b(0xfc)](),this['operation']=new AbortController(),this[_0xe9d23b(0x10a)]({'busy':_0x56f140,'error':null,'refreshError':null,'notice':null});try{return await _0x1f5283(this[_0xe9d23b(0x87)][_0xe9d23b(0x12e)]);}catch(_0x1a27f1){_0x1a27f1['code']===_0xe9d23b(0x7d)?(this[_0xe9d23b(0x10a)]({'notice':_0x1a27f1[_0xe9d23b(0x1c7)]}),this[_0xe9d23b(0x14a)]()):R[_0xe9d23b(0x16c)](_0x1a27f1[_0xe9d23b(0x19d)])?this[_0xe9d23b(0x10a)]({'error':I(_0x1a27f1)}):this[_0xe9d23b(0x10a)]({'error':_0x1a27f1[_0xe9d23b(0x1c7)]});}finally{this[_0xe9d23b(0x10a)]({'busy':null,'modelProgress':null});}}}async[_0x58ce40(0xc2)](_0x544404){const _0x2ab3c1=_0x58ce40;this[_0x2ab3c1(0x1af)][_0x2ab3c1(0x13c)]||(clearTimeout(this['detailTimer']),this[_0x2ab3c1(0x1bd)]?.[_0x2ab3c1(0xb7)](),++this[_0x2ab3c1(0x1d2)],this[_0x2ab3c1(0x10a)]({'view':_0x544404,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x2ab3c1(0x1a4),'tab':_0x2ab3c1(0x177),'scroll':0x0,'focus':'list','form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x2ab3c1(0xa7)]());}async[_0x58ce40(0xa7)](){const _0x29bb7f=_0x58ce40,_0x2e67d7=this[_0x29bb7f(0x11c)]()?.['id']??this[_0x29bb7f(0x160)];this['restoreSelectedId']=void 0x0,await this[_0x29bb7f(0xb4)](_0x29bb7f(0x172)+this[_0x29bb7f(0x1af)][_0x29bb7f(0x171)]+_0x29bb7f(0xe7),async _0x1c9a40=>{const _0x3360bc=_0x29bb7f;let _0xb94835;if(this['state'][_0x3360bc(0x171)]===_0x3360bc(0xdd))_0xb94835=await this[_0x3360bc(0xfa)]['mine'](_0x1c9a40);else{if(this[_0x3360bc(0x1af)][_0x3360bc(0x171)]===_0x3360bc(0x8d))_0xb94835=await this[_0x3360bc(0xfa)][_0x3360bc(0x8d)](this[_0x3360bc(0x1af)][_0x3360bc(0x1b9)],void 0x0,_0x1c9a40);else{if(this[_0x3360bc(0x1af)][_0x3360bc(0x171)]===_0x3360bc(0xe4)){const _0x3039b9=this[_0x3360bc(0xfa)][_0x3360bc(0x16a)](),_0x20fe00=new Set(_0x3039b9[_0x3360bc(0x79)](_0x2950ae=>_0x2950ae['id'])),_0x2074ce=_0x3039b9[_0x3360bc(0x184)](this[_0x3360bc(0x126)]['filter'](_0xfab65d=>!_0x20fe00[_0x3360bc(0x16c)](_0xfab65d['id'])))[_0x3360bc(0x79)](_0x2f525e=>({..._0x2f525e,'kind':_0x3360bc(0x1df)}));this['update']({'items':_0x2074ce,'selected':0x0,'note':_0x3360bc(0xf6)});let _0x1012fe;try{_0x1012fe=await this['services'][_0x3360bc(0xe1)](_0x1c9a40);}catch(_0x46ea6c){throw this[_0x3360bc(0x10a)]({'note':_0x2074ce[_0x3360bc(0xd5)]+_0x3360bc(0xc9)}),_0x46ea6c;}_0xb94835={'items':_0x2074ce['concat'](_0x1012fe),'note':_0x2074ce[_0x3360bc(0xd5)]+_0x3360bc(0x182)+_0x1012fe[_0x3360bc(0xd5)]+_0x3360bc(0xf8)};}else{const _0x2a630c=await this[_0x3360bc(0xfa)][_0x3360bc(0x1d5)](_0x1c9a40,_0x2e67d7,{'balances':!0x1}),_0x561d74=this[_0x3360bc(0xfa)][_0x3360bc(0x90)]();!_0x561d74[_0x3360bc(0xd5)]&&_0x2a630c['configured']&&_0x561d74[_0x3360bc(0x106)]({'address':_0x2a630c[_0x3360bc(0xa3)],'active':!0x0,'locked':_0x2a630c['locked']}),_0xb94835={'items':_0x561d74[_0x3360bc(0x79)](_0x128e6a=>({..._0x128e6a,'id':_0x128e6a[_0x3360bc(0xa3)],'title':_0x128e6a[_0x3360bc(0xa3)][_0x3360bc(0x1a6)](0x0,0xa)+'...'+_0x128e6a[_0x3360bc(0xa3)][_0x3360bc(0x1a6)](-0x8),'subtitle':_0x128e6a[_0x3360bc(0x1e0)]?_0x3360bc(0x137):'Saved\x20wallet'})),'note':_0x3360bc(0x1db),'address':_0x2a630c[_0x3360bc(0x18b)]??_0x2a630c[_0x3360bc(0xa3)]??null},this['update']({'detail':_0x2a630c,'scroll':0x0});}}}const _0x101f57=_0x2e67d7??(this[_0x3360bc(0x1af)]['view']==='wallet'?_0xb94835[_0x3360bc(0xa3)]:void 0x0),_0x53a626=Math[_0x3360bc(0x14e)](0x0,p({...this[_0x3360bc(0x1af)],'items':_0xb94835[_0x3360bc(0x13f)]})[_0x3360bc(0x124)](_0x2e5adf=>_0x2e5adf['id']===_0x101f57));this['update']({'items':_0xb94835['items'],'note':_0xb94835[_0x3360bc(0x1e6)],'cursor':_0xb94835[_0x3360bc(0x1c3)],'total':_0xb94835[_0x3360bc(0xa5)]??(_0xb94835[_0x3360bc(0x1c3)]?null:_0xb94835[_0x3360bc(0x13f)]['length']),'since':_0xb94835[_0x3360bc(0xa4)]??null,'selected':_0x53a626,'address':_0xb94835[_0x3360bc(0xa3)]??this[_0x3360bc(0x1af)][_0x3360bc(0xa3)]}),this[_0x3360bc(0x1af)]['view']===_0x3360bc(0x8d)&&(this[_0x3360bc(0x13e)]=Date[_0x3360bc(0x88)]());}),this['closed']||await this['loadDetail'](this[_0x29bb7f(0x1af)]['view']===_0x29bb7f(0x1d5));}async[_0x58ce40(0xd4)](){const _0x46615c=_0x58ce40,_0x16a931=this[_0x46615c(0x1af)];this['closed']||_0x16a931[_0x46615c(0x13c)]||_0x16a931['refreshing']||_0x16a931[_0x46615c(0x114)]||_0x16a931[_0x46615c(0x134)]||_0x16a931[_0x46615c(0x1e2)]||_0x16a931[_0x46615c(0xf5)]||_0x16a931[_0x46615c(0x1c4)]||_0x16a931[_0x46615c(0x1a8)]||(_0x16a931[_0x46615c(0x171)]==='explore'&&_0x16a931[_0x46615c(0xa4)]!==null&&Date[_0x46615c(0x88)]()-this[_0x46615c(0x13e)]>=C?await this[_0x46615c(0x17e)]():_0x16a931['view']===_0x46615c(0xdd)&&!_0x16a931[_0x46615c(0xd8)]&&[_0x46615c(0x1a9),'executing',_0x46615c(0xec),_0x46615c(0x115)][_0x46615c(0x162)](this['selected']()?.[_0x46615c(0x1af)])&&await this['loadDetail'](!0x0));}async[_0x58ce40(0x17e)](){const _0x36e997=_0x58ce40,_0x4f77f8=new AbortController();this[_0x36e997(0xf9)]=_0x4f77f8,this[_0x36e997(0x13e)]=Date[_0x36e997(0x88)](),this[_0x36e997(0x10a)]({'refreshing':!0x0});try{const _0x26b396=await this['services'][_0x36e997(0x1e7)](this[_0x36e997(0x1af)][_0x36e997(0x1b9)],this[_0x36e997(0x1af)]['since'],_0x4f77f8[_0x36e997(0x12e)]);if(this['refreshRequest']!==_0x4f77f8||this[_0x36e997(0xf3)])return;const _0x5d86b7=this['selected']()?.['id'],_0x589411=this[_0x36e997(0x1af)][_0x36e997(0x13f)]['at'](-0x1)?.[_0x36e997(0x181)],_0xfd2c47=new Map(this['state'][_0x36e997(0x13f)][_0x36e997(0x79)](_0x2c1962=>[_0x2c1962['id'],_0x2c1962]));for(const _0xc1ed7b of _0x26b396[_0x36e997(0x13f)]){const _0x36a7fa=_0xfd2c47['get'](_0xc1ed7b['id']);_0x36a7fa&&_0xc1ed7b[_0x36e997(0x1c5)]<_0x36a7fa['updatedAt']||(_0xfd2c47['has'](_0xc1ed7b['id'])||!_0x589411||_0xc1ed7b[_0x36e997(0x181)]>=_0x589411)&&_0xfd2c47[_0x36e997(0x117)](_0xc1ed7b['id'],_0xc1ed7b);}const _0x35ef49=[..._0xfd2c47[_0x36e997(0x12a)]()]['sort']((_0x99f6e6,_0x1dbe90)=>_0x1dbe90['createdAt'][_0x36e997(0x82)](_0x99f6e6['createdAt'])),_0x47439b=Math['max'](0x0,_0x35ef49['findIndex'](_0x1b493d=>_0x1b493d['id']===_0x5d86b7));this[_0x36e997(0x10a)]({'items':_0x35ef49,'selected':_0x47439b,'since':_0x26b396[_0x36e997(0xa4)],'total':_0x26b396[_0x36e997(0xa5)]??(this['state'][_0x36e997(0x1c3)]?null:_0x35ef49[_0x36e997(0xd5)]),'refreshError':null}),await this[_0x36e997(0x157)](!0x0);}catch(_0x3ba288){this[_0x36e997(0xf9)]===_0x4f77f8&&!this[_0x36e997(0xf3)]&&this['update']({'refreshError':_0x36e997(0x15f)+_0x3ba288[_0x36e997(0x1c7)]});}finally{this[_0x36e997(0xf9)]===_0x4f77f8&&(this[_0x36e997(0xf9)]=null,this[_0x36e997(0x10a)]({'refreshing':!0x1}));}}async[_0x58ce40(0x1ea)](){const _0x57a103=_0x58ce40;this[_0x57a103(0x1af)]['view']!==_0x57a103(0x8d)||!this[_0x57a103(0x1af)]['cursor']||await this[_0x57a103(0xb4)](_0x57a103(0x15c),async _0xd361cb=>{const _0x649412=_0x57a103,_0x928d9d=await this[_0x649412(0xfa)]['explore'](this[_0x649412(0x1af)][_0x649412(0x1b9)],this[_0x649412(0x1af)][_0x649412(0x1c3)],_0xd361cb),_0x26ecf3=new Set(this[_0x649412(0x1af)][_0x649412(0x13f)]['map'](_0x372b32=>_0x372b32['id'])),_0x477807=this[_0x649412(0x1af)]['items']['concat'](_0x928d9d['items'][_0x649412(0xce)](_0xb5bd23=>!_0x26ecf3[_0x649412(0x16c)](_0xb5bd23['id'])));this[_0x649412(0x10a)]({'items':_0x477807,'cursor':_0x928d9d['cursor'],'total':this['state'][_0x649412(0xa5)]??(_0x928d9d[_0x649412(0x1c3)]?null:_0x477807[_0x649412(0xd5)])});});}async[_0x58ce40(0x157)](_0x235858=!0x1){const _0x15da80=_0x58ce40;clearTimeout(this[_0x15da80(0x1f2)]),this[_0x15da80(0x1f2)]=null;const _0x579032=this[_0x15da80(0x11c)]();if(this[_0x15da80(0x1af)]['view']===_0x15da80(0x1d5)&&!_0x579032)return;const _0x43575c=++this[_0x15da80(0x1d2)];if(this[_0x15da80(0x1bd)]?.['abort'](),this['detailRequest']=new AbortController(),this[_0x15da80(0x10a)]({'detail':_0x235858?this[_0x15da80(0x1af)][_0x15da80(0x110)]:null,'result':_0x235858?this[_0x15da80(0x1af)][_0x15da80(0x113)]:null,'detailLoading':!!_0x579032,'scroll':_0x235858?this[_0x15da80(0x1af)][_0x15da80(0xee)]:0x0}),!!_0x579032)try{const _0x223a35=this['state']['view']===_0x15da80(0x1d5)?await this[_0x15da80(0xfa)][_0x15da80(0x1d5)](this[_0x15da80(0x1bd)]['signal'],_0x579032['address']):this[_0x15da80(0x1af)]['view']===_0x15da80(0xe4)?_0x579032[_0x15da80(0xf7)]===_0x15da80(0xba)?_0x579032:_0x579032['installed']?await this[_0x15da80(0xfa)][_0x15da80(0x1c0)](['worker',_0x15da80(0x154)],_0x579032,this[_0x15da80(0x1bd)][_0x15da80(0x12e)]):{'notInstalled':!0x0}:await this[_0x15da80(0xfa)][_0x15da80(0x110)](_0x579032,this[_0x15da80(0x1bd)][_0x15da80(0x12e)]);if(_0x43575c===this[_0x15da80(0x1d2)]){const _0x57ddf0=_0x223a35[_0x15da80(0x1af)]??(_0x579032['jobId']?void 0x0:_0x223a35['status']),_0x10f904=this['state']['items']['map'](_0xffc6e1=>_0xffc6e1['id']===_0x579032['id']&&_0x57ddf0?{..._0xffc6e1,'state':_0x57ddf0,..._0x223a35[_0x15da80(0x1c5)]?{'updatedAt':_0x223a35[_0x15da80(0x1c5)]}:{},..._0x15da80(0x99)in _0x223a35?{'canCancel':_0x223a35[_0x15da80(0x99)],'canDelete':_0x223a35[_0x15da80(0x14c)],'canResume':_0x223a35['canResume']}:{}}:_0xffc6e1),_0x6f0281=p({...this[_0x15da80(0x1af)],'items':_0x10f904})[_0x15da80(0x124)](_0x2f0f4d=>_0x2f0f4d['id']===_0x579032['id']);this[_0x15da80(0x10a)]({'detail':_0x6f0281<0x0?null:_0x223a35,'detailLoading':!0x1,'items':_0x10f904,'selected':Math[_0x15da80(0x14e)](0x0,_0x6f0281)}),_0x6f0281<0x0&&this['loadDetail']();}}catch(_0x1104cf){_0x43575c===this[_0x15da80(0x1d2)]&&this[_0x15da80(0x10a)]({'detailLoading':!0x1,'error':_0x1104cf[_0x15da80(0x1c7)]});}}[_0x58ce40(0x1cd)](_0x2d31d9){const _0x2a1056=_0x58ce40,_0x53d2d0=p(this[_0x2a1056(0x1af)])[_0x2a1056(0xd5)],_0x16c690=Math[_0x2a1056(0x14e)](0x0,Math[_0x2a1056(0x1e1)](_0x53d2d0-0x1,this[_0x2a1056(0x1af)]['selected']+_0x2d31d9));_0x16c690!==this[_0x2a1056(0x1af)]['selected']&&(clearTimeout(this[_0x2a1056(0x1f2)]),++this['detailVersion'],this[_0x2a1056(0x1bd)]?.[_0x2a1056(0xb7)](),this[_0x2a1056(0x10a)]({'selected':_0x16c690,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x2a1056(0x1af)]['view']===_0x2a1056(0xe4)?this[_0x2a1056(0x157)]():this[_0x2a1056(0x1f2)]=setTimeout(()=>{const _0x2bbc5a=_0x2a1056;this[_0x2bbc5a(0x157)]();},0x78)),_0x2d31d9>0x0&&_0x16c690===_0x53d2d0-0x1&&this[_0x2a1056(0x1ea)]();}['cycleFilter'](){const _0x622f5c=_0x58ce40;this[_0x622f5c(0x10a)]({'filter':f[(f[_0x622f5c(0x1f3)](this[_0x622f5c(0x1af)][_0x622f5c(0xce)])+0x1)%f[_0x622f5c(0xd5)]],'selected':0x0}),this[_0x622f5c(0x157)]();}async[_0x58ce40(0x119)](_0x5ba1ed){const _0xcbeed3=_0x58ce40,_0x2d1b4f=u[(u[_0xcbeed3(0x1f3)](this['state']['tab'])+_0x5ba1ed+u[_0xcbeed3(0xd5)])%u[_0xcbeed3(0xd5)]];this[_0xcbeed3(0x10a)]({'tab':_0x2d1b4f,'scroll':0x0}),_0x2d1b4f===_0xcbeed3(0xa9)&&await this['files']();}async[_0x58ce40(0xbf)](){const _0x2a8647=_0x58ce40,_0x5ce963=this['selected']();_0x5ce963?.[_0x2a8647(0x15d)]&&(this[_0x2a8647(0x1f2)]&&this[_0x2a8647(0x157)](!0x0),this[_0x2a8647(0x10a)]({'tab':_0x2a8647(0xa9),'focus':_0x2a8647(0x110),'scroll':0x0}),await this[_0x2a8647(0xb4)](_0x2a8647(0xa1),async _0x5494b2=>{const _0x19253d=_0x2a8647;this[_0x19253d(0x10a)]({'result':await this[_0x19253d(0xfa)]['result'](_0x5ce963[_0x19253d(0x15d)],_0x5494b2)});}));}[_0x58ce40(0x13a)](_0x47b4ef,_0xbd5220,_0x5c66c9,{onCancel:_0x4af407,submit:_0x2fcfcd=_0x58ce40(0x18a)}={}){const _0x45481d=_0x58ce40;this[_0x45481d(0xfc)](),this[_0x45481d(0xab)]=_0x5c66c9,this['formCancel']=_0x4af407,this[_0x45481d(0x10a)]({'form':{'title':_0x47b4ef,'fields':_0xbd5220,'values':Object[_0x45481d(0x1ef)](_0xbd5220['map'](_0x2f7815=>[_0x2f7815[_0x45481d(0xad)],_0x2f7815[_0x45481d(0xc1)]??''])),'field':0x0,'submit':_0x2fcfcd,'error':null},'menu':null});}[_0x58ce40(0x108)](_0x5a4028){const _0x4bdc4d=_0x58ce40,_0x5a7582=this[_0x4bdc4d(0x1af)][_0x4bdc4d(0x134)],_0x487bc6=_0x5a7582[_0x4bdc4d(0x112)][_0x5a7582[_0x4bdc4d(0x94)]][_0x4bdc4d(0xad)];this[_0x4bdc4d(0x10a)]({'form':{..._0x5a7582,'values':{..._0x5a7582['values'],[_0x487bc6]:_0x5a4028},'error':null}});}[_0x58ce40(0x17c)](_0x52aee3=!0x1){const _0x357b31=_0x58ce40,_0x17f08a=this[_0x357b31(0x1af)][_0x357b31(0x134)];this['update']({'form':{..._0x17f08a,'field':(_0x17f08a['field']+(_0x52aee3?-0x1:0x1)+_0x17f08a[_0x357b31(0x112)]['length'])%_0x17f08a[_0x357b31(0x112)]['length']}});}async[_0x58ce40(0x1aa)](){const _0xc919d7=_0x58ce40,{values:_0x220cf3}=this[_0xc919d7(0x1af)][_0xc919d7(0x134)];try{await this[_0xc919d7(0xab)](_0x220cf3);}catch(_0x44106b){this[_0xc919d7(0x10a)]({'form':{...this[_0xc919d7(0x1af)][_0xc919d7(0x134)],'error':_0x44106b[_0xc919d7(0x1c7)]}});}}[_0x58ce40(0x15e)](){const _0xe76159=_0x58ce40,_0xfa4bfc=this[_0xe76159(0x16e)];this[_0xe76159(0x10a)]({'form':null}),_0xfa4bfc&&_0xfa4bfc();}[_0x58ce40(0x1b0)](){const _0x5a7f25=_0x58ce40,_0x503945=this[_0x5a7f25(0x1af)][_0x5a7f25(0x171)]===_0x5a7f25(0xe4);this['showForm'](_0x503945?_0x5a7f25(0xac):'Search\x20tasks',[{'name':_0x5a7f25(0x1b9),'label':_0x503945?_0x5a7f25(0x10b):_0x5a7f25(0xcf),'value':this[_0x5a7f25(0x1af)]['query']}],async({query:_0x13621a})=>{const _0x1814b2=_0x5a7f25;this[_0x1814b2(0x10a)]({'query':_0x13621a,'selected':0x0,'form':null}),this[_0x1814b2(0x1af)][_0x1814b2(0x171)]===_0x1814b2(0x8d)?await this[_0x1814b2(0xa7)]():await this['loadDetail']();},{'submit':_0x5a7f25(0x1d3)});}['create'](_0xcf4a1f=null){const _0x243fca=_0x58ce40;this['draft']={'objective':'','payWith':_0x3fc6d7(this[_0x243fca(0xfa)][_0x243fca(0x149)]?.[_0x243fca(0x192)]),'parent':_0xcf4a1f},this['editDraft']();}[_0x58ce40(0x17d)](){const _0x212568=_0x58ce40,_0x4a95b3=this[_0x212568(0x11c)]();this['state']['view']!==_0x212568(0xdd)||!_0x4a95b3?.['jobId']||this[_0x212568(0x84)](_0x4a95b3['jobId']);}[_0x58ce40(0x14a)](){const _0x5a8982=_0x58ce40;this['draft']&&(this[_0x5a8982(0x13a)](this[_0x5a8982(0xd1)][_0x5a8982(0x97)]?'Request\x20changes':_0x5a8982(0x1d7),[{'name':_0x5a8982(0x7b),'label':this[_0x5a8982(0xd1)]['parent']?_0x5a8982(0x16d):_0x5a8982(0x1e4),'value':this[_0x5a8982(0xd1)]['objective'],'placeholder':_0x5a8982(0xff)}],async({objective:_0x4fc3d8})=>{const _0xe3ec2e=_0x5a8982,_0x50dc42=this[_0xe3ec2e(0xd1)][_0xe3ec2e(0x192)];if(!_0x4fc3d8['trim']())throw new Error('Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.');const _0x5c3c55=_0x4fc3d8[_0xe3ec2e(0x133)]()!==this[_0xe3ec2e(0xd1)][_0xe3ec2e(0x7b)];this[_0xe3ec2e(0xd1)]={...this[_0xe3ec2e(0xd1)],'objective':_0x4fc3d8[_0xe3ec2e(0x133)](),'payWith':_0x50dc42[_0xe3ec2e(0x185)](),..._0x5c3c55?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0xe3ec2e(0x10a)]({'form':null}),await this[_0xe3ec2e(0xaf)]();},{'submit':_0x5a8982(0xc3)}),this[_0x5a8982(0x10a)]({'form':{...this[_0x5a8982(0x1af)][_0x5a8982(0x134)],'paymentCoins':this[_0x5a8982(0xfa)][_0x5a8982(0xaa)](),'payWith':this[_0x5a8982(0xd1)][_0x5a8982(0x192)]}}));}['cyclePaymentCoin'](_0x26c5e9=!0x1){const _0x5dcf79=_0x58ce40,_0xd74cf9=this['state'][_0x5dcf79(0x134)],_0x236207=_0xd74cf9[_0x5dcf79(0x1b2)][(_0xd74cf9['paymentCoins']['indexOf'](_0xd74cf9['payWith'])+(_0x26c5e9?-0x1:0x1)+_0xd74cf9[_0x5dcf79(0x1b2)][_0x5dcf79(0xd5)])%_0xd74cf9[_0x5dcf79(0x1b2)][_0x5dcf79(0xd5)]];this[_0x5dcf79(0xd1)]['payWith']=_0x236207,this['draft'][_0x5dcf79(0x194)]=void 0x0,this[_0x5dcf79(0x10a)]({'form':{..._0xd74cf9,'payWith':_0x236207,'error':null}});}[_0x58ce40(0xe9)](_0x1086c4){return new Promise(_0x2f2e31=>{const _0x58c5ee=_0x2b86;this['askResolve']=_0x2f2e31,this[_0x58c5ee(0x13a)](_0x58c5ee(0x8e),_0x1086c4[_0x58c5ee(0x79)]((_0x5a0ffe,_0x4e1f07)=>({'name':String(_0x4e1f07),'label':_0x5a0ffe})),_0x177802=>{const _0x5345c7=_0x58c5ee;this[_0x5345c7(0x10a)]({'form':null}),this[_0x5345c7(0x191)]=null,_0x2f2e31(Object['values'](_0x177802));},{'onCancel':()=>{const _0x4afdac=_0x58c5ee;this[_0x4afdac(0x191)]=null,_0x2f2e31([]);}});});}[_0x58ce40(0x1e2)](_0x4d692f){return new Promise(_0x32f8aa=>{const _0x45e3fe=_0x2b86;this['confirmResolve']=_0x32f8aa;const _0x28b194=_0x4d692f[_0x45e3fe(0x1d9)]??(_0x4d692f[_0x45e3fe(0x1c7)]!==void 0x0?[String(_0x4d692f[_0x45e3fe(0x1c7)])]:[]);this[_0x45e3fe(0x10a)]({'confirm':{..._0x4d692f,'lines':_0x28b194,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}async[_0x58ce40(0xc6)](_0x16cc78){const _0x13ba65=_0x58ce40;if(!await this['confirm']({'title':_0x13ba65(0x176),'message':_0x16cc78?.[_0x13ba65(0x1c7)]??''}))throw h();}['respond'](_0x43b80d){const _0x1d6160=_0x58ce40,_0x18eb69=this['confirmResolve'];this[_0x1d6160(0x190)]=null,this[_0x1d6160(0x10a)]({'confirm':null}),_0x18eb69(_0x43b80d);}async[_0x58ce40(0xaf)](){const _0x30a0da=_0x58ce40,_0x31dedb=await this['run'](_0x30a0da(0x10e),async _0x31f0c9=>{const _0x23c713=_0x30a0da,_0x18e1d8=this['draft'],_0x1352bc=_0x18e1d8[_0x23c713(0x97)]?_0x23c713(0x7a):_0x23c713(0x1da),_0x54911d=_0x18e1d8[_0x23c713(0x194)]?null:await this[_0x23c713(0x1cf)](()=>this[_0x23c713(0xfa)][_0x23c713(0x195)]({'payWith':_0x18e1d8[_0x23c713(0x192)],'action':_0x1352bc,'signal':_0x31f0c9}));this[_0x23c713(0x10a)]({'busy':_0x23c713(0x170)});const _0x546e06=_0x18e1d8['parent']?await this[_0x23c713(0xfa)][_0x23c713(0x110)]({'jobId':_0x18e1d8[_0x23c713(0x97)]},_0x31f0c9):null,_0x4a0e1e=_0x18e1d8[_0x23c713(0x1e3)]??await this['services'][_0x23c713(0x1e3)]({'objective':_0x18e1d8[_0x23c713(0x7b)],'parent':_0x546e06,'signal':_0x31f0c9,'ask':_0x50fe4a=>this[_0x23c713(0xe9)](_0x50fe4a),'onProgress':_0x7637a7=>{const _0x1da756=_0x23c713;this[_0x1da756(0x10a)](_0x7637a7[_0x1da756(0x197)]===_0x1da756(0x148)?{'busy':_0x1da756(0x170),'modelProgress':null}:{'busy':_0x1da756(0xd0),'modelProgress':_0x7637a7});}});if(_0x31f0c9['throwIfAborted'](),!_0x4a0e1e[_0x23c713(0x183)])throw new Error(_0x4a0e1e[_0x23c713(0x9c)][_0x23c713(0x86)]('\x0a')||_0x23c713(0x1e9));_0x18e1d8[_0x23c713(0x1e3)]=_0x4a0e1e,this[_0x23c713(0x10a)]({'busy':_0x23c713(0x19a)});const _0x5ceaca=await this[_0x23c713(0x1cf)](()=>this[_0x23c713(0xfa)][_0x23c713(0x187)]({'input':_0x4a0e1e[_0x23c713(0x183)],'action':_0x1352bc,'payWith':_0x18e1d8[_0x23c713(0x192)],'expectedWallet':_0x54911d?.[_0x23c713(0xa3)],'requestKey':_0x18e1d8[_0x23c713(0x194)],'onSaved':_0x5ace74=>{const _0x9a1030=_0x23c713;_0x18e1d8[_0x9a1030(0x194)]=_0x5ace74[_0x9a1030(0x194)];},'plan':{'summary':_0x4a0e1e['summary'],'deliverables':_0x4a0e1e[_0x23c713(0xb5)]},'signal':_0x31f0c9,'chooseSupport':_0x1dd2fc=>this[_0x23c713(0xd3)](_0x1dd2fc),'onProgress':_0x3d8d52=>this[_0x23c713(0x14b)](_0x3d8d52),'confirmReplacement':_0x63cd3c=>this[_0x23c713(0xc6)](_0x63cd3c),'confirm':async _0xf67660=>{const _0x42aa7e=_0x23c713;if(!await this['confirm']({'title':_0x42aa7e(0x135),'payment':_0x4961d7(_0xf67660)}))throw h();}}));return this['showOutcome'](_0x5ceaca),_0x5ceaca;});if(!this[_0x30a0da(0xf3)]&&_0x31dedb?.[_0x30a0da(0x154)]===_0x30a0da(0x8c)&&_0x31dedb[_0x30a0da(0x1af)][_0x30a0da(0x15d)]){await this[_0x30a0da(0xc2)](_0x30a0da(0xdd));const _0x3921f5=this[_0x30a0da(0x1af)][_0x30a0da(0x13f)][_0x30a0da(0x124)](_0x95af76=>_0x95af76[_0x30a0da(0x15d)]===_0x31dedb[_0x30a0da(0x1af)][_0x30a0da(0x15d)]);_0x3921f5>=0x0&&(this[_0x30a0da(0x10a)]({'selected':_0x3921f5}),await this[_0x30a0da(0x157)]()),this[_0x30a0da(0x10a)]({'notice':'Task\x20published:\x20'+_0x31dedb[_0x30a0da(0x1af)][_0x30a0da(0x15d)]});}}['showPaymentProgress'](_0x54928b){const _0x53202f=_0x58ce40,_0x4dced5=typeof _0x54928b?.[_0x53202f(0x1c7)]=='string'?_0x54928b['message'][_0x53202f(0x133)]():'';_0x4dced5&&this[_0x53202f(0x10a)]({'busy':_0x4dced5});}async[_0x58ce40(0x1cf)](_0x219e76){const _0x321757=_0x58ce40;for(;;)try{return await _0x219e76();}catch(_0x267d3d){if(_0x267d3d[_0x321757(0x19d)]!==_0x321757(0xd9))throw _0x267d3d;if(!await this['confirm']({'title':_0x321757(0x11d),'lines':_0x578522(_0x267d3d[_0x321757(0x1c8)]),'acceptLabel':_0x321757(0x175),'cancelLabel':_0x321757(0x109)}))throw h();this[_0x321757(0x10a)]({'busy':_0x321757(0xb1)});}}[_0x58ce40(0x16f)]({state:_0x358ee3,status:_0x90d581,check:_0x3ad585}){const _0x254bc6=_0x58ce40;if(_0x90d581===_0x254bc6(0x8c)&&_0x358ee3['jobId'])this[_0x254bc6(0xd1)]=null,this[_0x254bc6(0x10a)]({'notice':_0x254bc6(0x9a)+_0x358ee3['jobId']+_0x254bc6(0x1c9)});else{if(_0x90d581==='blocked')this[_0x254bc6(0x10a)]({'error':_0x254bc6(0x104)+_0x3ad585[_0x254bc6(0x1dc)][_0x254bc6(0x79)](_0x2c4c35=>_0x2c4c35[_0x254bc6(0x110)]??_0x2c4c35['code'])[_0x254bc6(0x86)]('\x0a')});else{if(_0x90d581===_0x254bc6(0x18e))this[_0x254bc6(0x10a)]({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x358ee3[_0x254bc6(0xe3)]??[])[_0x254bc6(0x79)](_0x57b0f3=>_0x57b0f3[_0x254bc6(0x110)]??_0x57b0f3[_0x254bc6(0x19d)])[_0x254bc6(0x86)]('\x0a')+'\x0aOrder:\x20'+_0x358ee3[_0x254bc6(0x128)]});else{if(k[_0x254bc6(0x16c)](_0x90d581)){const _0x33cb0f=[_0x254bc6(0x125),_0x254bc6(0x164),_0x254bc6(0x17a)],_0x82ddf9=_0x358ee3?.[_0x254bc6(0xcc)]??_0x358ee3?.[_0x254bc6(0x186)];_0x82ddf9?.[_0x254bc6(0x166)]&&_0x33cb0f['push'](_0x254bc6(0x8f)+_0x82ddf9[_0x254bc6(0x166)]),_0x82ddf9?.[_0x254bc6(0x1bf)]&&_0x33cb0f['push'](_0x254bc6(0x81)+_0x82ddf9[_0x254bc6(0x1bf)]),this[_0x254bc6(0x10a)]({'error':_0x33cb0f[_0x254bc6(0x86)]('\x0a')});}else this[_0x254bc6(0x10a)]({'error':_0x254bc6(0x1ad)+_0x90d581+'.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.'});}}}}async[_0x58ce40(0x19b)](){const _0x207f50=_0x58ce40,_0x1e8ff7=this['selected']();this['state'][_0x207f50(0x171)]!==_0x207f50(0xdd)||!_0x1e8ff7?.['requestKey']||_0x1e8ff7[_0x207f50(0x15d)]||!_0x1e8ff7[_0x207f50(0x17f)]||(this[_0x207f50(0xd1)]=null,await this[_0x207f50(0xb4)](_0x207f50(0xcd),async _0x4a8c1f=>{const _0xe47817=_0x207f50;this[_0xe47817(0x16f)](await this['withFundingRetry'](()=>this[_0xe47817(0xfa)][_0xe47817(0x136)](_0x1e8ff7,_0x39ba0c=>this[_0xe47817(0x1e2)](_0x39ba0c),_0x4a8c1f,_0x420ec4=>this['chooseSupport'](_0x420ec4),_0x5f0004=>this[_0xe47817(0x14b)](_0x5f0004),_0x54e251=>this['confirmReplacement'](_0x54e251))));}));}[_0x58ce40(0x156)](){const _0x535ecc=_0x58ce40,_0xcf9668=this[_0x535ecc(0x11c)]();if(this[_0x535ecc(0x1af)]['view']!==_0x535ecc(0xdd)||!_0xcf9668)return;const _0x57a629=[{'label':_0x535ecc(0x1ed),'run':()=>this[_0x535ecc(0x10a)]({'focus':_0x535ecc(0x110),'tab':'Overview','scroll':0x0})}];_0xcf9668[_0x535ecc(0x15d)]?(_0x57a629[_0x535ecc(0x106)]({'label':_0x535ecc(0xbd),'run':()=>this[_0x535ecc(0xbf)]()},{'label':_0x535ecc(0x173),'run':()=>this[_0x535ecc(0xa2)]()}),_0xcf9668[_0x535ecc(0x1af)]==='completed'&&_0x57a629['push']({'label':_0x535ecc(0x188),'run':()=>this[_0x535ecc(0x17d)]()})):_0xcf9668[_0x535ecc(0x194)]&&(_0xcf9668[_0x535ecc(0x17f)]&&_0x57a629[_0x535ecc(0x106)]({'label':_0xcf9668[_0x535ecc(0x99)]?_0x535ecc(0x1ae):'Inspect\x20/\x20resume\x20saved\x20order','run':()=>this[_0x535ecc(0x19b)]()}),_0xcf9668['canCancel']&&_0x57a629[_0x535ecc(0x106)]({'label':_0x535ecc(0x92),'run':()=>this[_0x535ecc(0x152)]()}),_0xcf9668['canDelete']&&_0x57a629['push']({'label':_0x535ecc(0xea),'run':()=>this[_0x535ecc(0xc4)]()})),this[_0x535ecc(0x9b)](_0x535ecc(0x78),_0x57a629);}async[_0x58ce40(0x152)](){const _0x1eefe9=_0x58ce40,_0x30eb94=this[_0x1eefe9(0x11c)]();if(this['state'][_0x1eefe9(0x171)]!=='tasks'||!_0x30eb94?.[_0x1eefe9(0x99)])return;let _0x55527a=!0x1;await this['run'](_0x1eefe9(0x169),async()=>{const _0x53346=_0x1eefe9;await this[_0x53346(0x1e2)]({'title':_0x53346(0xd2),'lines':[_0x30eb94['title'],'','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.'],'acceptLabel':_0x53346(0x92),'cancelLabel':_0x53346(0x1d6)})&&(await this[_0x53346(0xfa)][_0x53346(0x1cb)](_0x30eb94),_0x55527a=!0x0);}),_0x55527a&&!this[_0x1eefe9(0xf3)]&&(await this['refresh'](),this[_0x1eefe9(0x10a)]({'notice':_0x1eefe9(0x168)}));}async[_0x58ce40(0xc4)](){const _0x3d1943=_0x58ce40,_0x4ec36d=this[_0x3d1943(0x11c)]();if(this[_0x3d1943(0x1af)][_0x3d1943(0x171)]!==_0x3d1943(0xdd)||!_0x4ec36d?.[_0x3d1943(0x14c)])return;let _0x5ba399=!0x1;await this['run'](_0x3d1943(0x178),async()=>{const _0x4d892d=_0x3d1943;await this[_0x4d892d(0xfa)]['delete'](_0x4ec36d),_0x5ba399=!0x0;}),_0x5ba399&&!this['closed']&&(await this[_0x3d1943(0xa7)](),this['update']({'notice':_0x3d1943(0x1bc)}));}['download'](){const _0x529d62=_0x58ce40,_0x57e20f=this[_0x529d62(0x11c)]();_0x57e20f?.[_0x529d62(0x15d)]&&this['showForm'](_0x529d62(0x111),[{'name':'out','label':_0x529d62(0x1b4),'value':'./output/'+_0x57e20f[_0x529d62(0x15d)]}],async({out:_0x5715b6})=>{const _0xa1d1b5=_0x529d62;if(!_0x5715b6[_0xa1d1b5(0x133)]())throw new Error(_0xa1d1b5(0x121));this[_0xa1d1b5(0x10a)]({'form':null}),await this[_0xa1d1b5(0xb4)](_0xa1d1b5(0x7c),async _0x5db258=>{const _0x263288=_0xa1d1b5,_0x50d348=await this[_0x263288(0xfa)][_0x263288(0xa2)]({'id':_0x57e20f[_0x263288(0x15d)],'out':_0x5715b6,'signal':_0x5db258,'onProgress':_0x4e83c6=>this[_0x263288(0x10a)]({'busy':_0x263288(0x18f)+_0x4e83c6[_0x263288(0x1a3)]})});this['update']({'notice':_0x263288(0x18f)+_0x50d348[_0x263288(0xbf)][_0x263288(0xd5)]+_0x263288(0xf2)+_0x5715b6});});},{'submit':_0x529d62(0xa6)});}[_0x58ce40(0x1b8)](){const _0x4f3d6f=_0x58ce40;this[_0x4f3d6f(0x13a)](_0x4f3d6f(0x161),[{'name':_0x4f3d6f(0xd7),'label':_0x4f3d6f(0x1d1)},{'name':_0x4f3d6f(0x1b6),'label':_0x4f3d6f(0x17b),'value':'22'},{'name':_0x4f3d6f(0x144),'label':_0x4f3d6f(0xdb)}],async _0x5e004c=>{const _0x71e9df=_0x4f3d6f,_0x2a24db=_0x44d155(_0x5e004c);this['extraTargets'][_0x71e9df(0x155)](_0x3ffc3c=>_0x3ffc3c['id']===_0x2a24db['id'])||this['extraTargets'][_0x71e9df(0x106)](_0x2a24db),this[_0x71e9df(0x10a)]({'form':null}),await this[_0x71e9df(0xa7)](),this[_0x71e9df(0x10a)]({'selected':this[_0x71e9df(0x1af)][_0x71e9df(0x13f)][_0x71e9df(0x124)](_0x3681ff=>_0x3681ff['id']===_0x2a24db['id'])}),await this[_0x71e9df(0x157)]();},{'submit':'Add\x20target'});}[_0x58ce40(0x9b)](_0x3332f9,_0x3f5a51){const _0x4dbace=_0x58ce40;this[_0x4dbace(0xfc)](),this[_0x4dbace(0x10a)]({'menu':{'title':_0x3332f9,'items':_0x3f5a51,'selected':0x0},'form':null});}[_0x58ce40(0xd3)](_0x511e57){return new Promise((_0x3f6ddb,_0x22732e)=>{const _0x34b1ea=_0x2b86;this[_0x34b1ea(0x1dd)]=_0x22732e,this[_0x34b1ea(0x9b)]('Choose\x20payment\x20\xB7\x20support\x20is\x20optional',_0x511e57['map']((_0x187065,_0x2d49ff)=>({'label':_0x187065['label'],'run':()=>{const _0x3ae09c=_0x34b1ea;this[_0x3ae09c(0x1dd)]=null,_0x3f6ddb(_0x2d49ff);}})));});}['dismissMenu'](){const _0x22666d=_0x58ce40;this[_0x22666d(0x1dd)]?.(h()),this[_0x22666d(0x1dd)]=null,this[_0x22666d(0x10a)]({'menu':null});}['chooseMenu'](){const _0x1d04d7=_0x58ce40,_0xb8b1b0=this[_0x1d04d7(0x1af)][_0x1d04d7(0xf5)][_0x1d04d7(0x13f)][this[_0x1d04d7(0x1af)][_0x1d04d7(0xf5)]['selected']];this[_0x1d04d7(0x10a)]({'menu':null}),_0xb8b1b0['run']();}[_0x58ce40(0x1f5)](){const _0x534594=_0x58ce40,_0x531e50=this[_0x534594(0x11c)]();if(!_0x531e50||_0x531e50['kind']==='network-worker')return;const _0xc30dba=(_0x640353,_0x222bf8=!0x1)=>()=>this[_0x534594(0x1cc)](_0x640353,_0x222bf8),_0x2bd50f=(_0x262ebf,_0x540d59,_0x7f47ec,_0x3f8f5,_0x1b9705=!0x1)=>()=>this[_0x534594(0x13a)](_0x262ebf,[{'name':_0x7f47ec,'label':_0x3f8f5}],_0x20285f=>{const _0x1d86f5=_0x534594;if(!_0x20285f[_0x7f47ec][_0x1d86f5(0x133)]())throw new Error(_0x3f8f5+_0x1d86f5(0x7e));return this[_0x1d86f5(0x10a)]({'form':null}),this[_0x1d86f5(0x1cc)](_0x540d59[_0x1d86f5(0x184)](_0x20285f[_0x7f47ec][_0x1d86f5(0x133)]()),_0x1b9705);});this[_0x534594(0x9b)]('Worker\x20\xB7\x20'+_0x531e50[_0x534594(0x89)],[{'label':_0x534594(0x1ab),'run':_0xc30dba(['status'])},{'label':'View\x20logs','run':_0xc30dba([_0x534594(0x7f)])},{'label':'Run\x20diagnostics','run':_0xc30dba([_0x534594(0x131)])},{'label':_0x534594(0xe0),'run':_0xc30dba([_0x534594(0x199)])},{'label':_0x534594(0x1a1),'run':_0xc30dba([_0x534594(0x76)],!0x0)},{'label':_0x534594(0x1f4),'run':_0xc30dba(['pair'],!0x0)},{'label':'Register\x20on\x20chain','run':_0xc30dba(['register'],!0x0)},{'label':_0x534594(0x1b5),'run':()=>this[_0x534594(0x13b)]()},...[_0x534594(0x93),_0x534594(0x11e),_0x534594(0x13d),'update']['map'](_0x325cd5=>({'label':_0x325cd5[0x0][_0x534594(0x185)]()+_0x325cd5['slice'](0x1),'run':_0xc30dba([_0x325cd5],!0x0)})),{'label':_0x534594(0x132),'run':()=>this[_0x534594(0x9b)](_0x534594(0x98),[{'label':_0x534594(0x180),'run':_0xc30dba(['skills',_0x534594(0x91)])},{'label':_0x534594(0xb3),'run':_0x2bd50f(_0x534594(0xb3),[_0x534594(0x1c2),_0x534594(0x16b)],'id',_0x534594(0x1a2))},{'label':_0x534594(0x122),'run':_0x2bd50f(_0x534594(0x122),[_0x534594(0x1c2),'remove'],'id',_0x534594(0x1a2))}])},{'label':_0x534594(0xf0),'run':()=>this[_0x534594(0x9b)](_0x534594(0x196),[{'label':_0x534594(0x85),'run':_0xc30dba([_0x534594(0x141),_0x534594(0x91)])},{'label':_0x534594(0x9e),'run':_0xc30dba([_0x534594(0x141),_0x534594(0x16b)],!0x0)},{'label':_0x534594(0x12d),'run':_0x2bd50f(_0x534594(0xe2),[_0x534594(0x141),_0x534594(0x1f0)],'name',_0x534594(0xe6),!0x0)},{'label':_0x534594(0x198),'run':_0x2bd50f('Forget\x20credential',[_0x534594(0x141),'forget'],'name','Credential\x20name',!0x0)},{'label':_0x534594(0xb0),'run':_0x2bd50f(_0x534594(0xb0),[_0x534594(0x141),_0x534594(0xed)],'id',_0x534594(0x138))}])},{'label':'RPC\x20endpoints','run':()=>this[_0x534594(0x9b)]('Worker\x20RPC\x20endpoints',[{'label':_0x534594(0x151),'run':_0xc30dba([_0x534594(0x1ce),_0x534594(0x91)])},{'label':_0x534594(0x1a7),'run':_0x2bd50f(_0x534594(0x145),[_0x534594(0x1ce),'add'],_0x534594(0x1e8),_0x534594(0x116),!0x0)},{'label':_0x534594(0x1b7),'run':_0x2bd50f(_0x534594(0x18c),[_0x534594(0x1ce),'remove'],_0x534594(0x1e8),_0x534594(0x116))}])},{'label':_0x534594(0x1b3),'run':_0xc30dba(['unlink'],!0x0)}]);}['serviceInstall'](){const _0x41d308=_0x58ce40;this['showForm'](_0x41d308(0x1b5),[{'name':'runtime','label':_0x41d308(0x139),'value':_0x41d308(0x1b1)},{'name':_0x41d308(0xf1),'label':_0x41d308(0x1ba),'value':'1'},{'name':_0x41d308(0x1eb),'label':_0x41d308(0x1be),'value':'no'}],async({runtime:_0x31db7b,concurrency:_0xf31134,boot:_0x21c565})=>{const _0x5b96d7=_0x41d308;if(![_0x5b96d7(0x1b1),'codex'][_0x5b96d7(0x162)](_0x31db7b))throw new Error('Choose\x20claude\x20or\x20codex.');if(!/^[1-4]$/[_0x5b96d7(0x1ac)](_0xf31134))throw new Error('Concurrency\x20must\x20be\x201\u20134.');if(![_0x5b96d7(0x1de),'no'][_0x5b96d7(0x162)](_0x21c565))throw new Error(_0x5b96d7(0x146));const _0x29bc8a=[_0x5b96d7(0x1f6),'install','--runtime',_0x31db7b,'--concurrency',_0xf31134];_0x21c565==='yes'&&_0x29bc8a[_0x5b96d7(0x106)]('--boot'),this[_0x5b96d7(0x10a)]({'form':null}),await this[_0x5b96d7(0x1cc)](_0x29bc8a,!0x0);});}async[_0x58ce40(0x1cc)](_0x28a53a,_0x7413d3=!0x1){const _0x374190=_0x58ce40,_0x5a2406=this[_0x374190(0x11c)]();!_0x5a2406||_0x5a2406[_0x374190(0xf7)]==='network-worker'||await this[_0x374190(0xb4)](_0x374190(0x105)+_0x28a53a['join']('\x20')+_0x374190(0xe7),async _0x51c313=>{const _0x1c0a2b=_0x374190;if(_0x7413d3){if(!await this[_0x1c0a2b(0x1e2)]({'title':_0x1c0a2b(0x143)+_0x5a2406[_0x1c0a2b(0x89)]+'?','lines':[_0x1c0a2b(0xbe)+_0x28a53a['join']('\x20'),_0x1c0a2b(0xe5)]}))return;await this[_0x1c0a2b(0x80)]([_0x1c0a2b(0x101),..._0x28a53a],_0x5a2406),this[_0x1c0a2b(0x10a)]({'notice':'Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.'});}else{const _0x290fad=await this[_0x1c0a2b(0xfa)]['command']([_0x1c0a2b(0x101),..._0x28a53a],_0x5a2406,_0x51c313);this[_0x1c0a2b(0x10a)]({'detail':{'output':_0x290fad},'focus':_0x1c0a2b(0x110),'scroll':0x0});}});}[_0x58ce40(0x102)](_0x2bef5d){return new Promise((_0x2d2fb2,_0x283071)=>{const _0x518486=_0x2b86;this['passwordReject']=_0x283071,this[_0x518486(0x13a)]('Confirm\x20wallet\x20password',[{'name':_0x518486(0xda),'label':_0x2bef5d,'secret':!0x0}],({password:_0x41bc02})=>{const _0x546695=_0x518486;this[_0x546695(0x10a)]({'form':null}),this[_0x546695(0xbc)]=null,_0x2d2fb2(_0x41bc02);},{'submit':_0x518486(0x18a),'onCancel':()=>{const _0x41067a=_0x518486;this[_0x41067a(0xbc)]=null,_0x283071(new Error(_0x41067a(0x167)));}});});}[_0x58ce40(0x1f1)](){const _0x294f28=_0x58ce40,_0x5896e4=this[_0x294f28(0x1af)][_0x294f28(0x110)]?.[_0x294f28(0x15b)]===_0x294f28(0xa0);this[_0x294f28(0x1af)]['detail']?.[_0x294f28(0x118)]&&this[_0x294f28(0x9b)]('Selected\x20wallet\x20actions',[...!this[_0x294f28(0x120)]()&&this[_0x294f28(0x11c)]()?[{'label':'Use\x20this\x20wallet','run':()=>this[_0x294f28(0x123)]()}]:[],..._0x5896e4?[{'label':_0x294f28(0x130),'run':()=>this[_0x294f28(0x158)]()},{'label':_0x294f28(0x165),'run':()=>this['walletBackup']()}]:[],...this[_0x294f28(0x1af)][_0x294f28(0x110)]?.['configured']?[{'label':_0x294f28(0x77),'run':()=>this[_0x294f28(0x1bb)]()}]:[]]);}[_0x58ce40(0x140)](){const _0x26883d=_0x58ce40;this[_0x26883d(0x9b)](_0x26883d(0x1a0),[{'label':_0x26883d(0x12b),'run':()=>this[_0x26883d(0x1c1)](!0x1)},{'label':_0x26883d(0x83),'run':()=>this[_0x26883d(0xfb)]()},{'label':_0x26883d(0xca),'run':()=>this['walletNetworkMenu']()}]);}[_0x58ce40(0xfb)](){const _0x315c79=_0x58ce40;this[_0x315c79(0x9b)]('Import\x20wallet',[{'label':_0x315c79(0x18d),'run':()=>this[_0x315c79(0x1c1)](!0x0)},{'label':_0x315c79(0x1ee),'run':()=>this[_0x315c79(0xb6)]()}]);}[_0x58ce40(0x120)](){const _0x1c6abd=_0x58ce40;return!this[_0x1c6abd(0x11c)]()||this[_0x1c6abd(0x11c)]()[_0x1c6abd(0xa3)]===this['state'][_0x1c6abd(0xa3)];}[_0x58ce40(0x158)](){const _0x2cae7c=_0x58ce40,_0xc460ea=this[_0x2cae7c(0x11c)]()?.[_0x2cae7c(0xa3)]??this['state']['detail']?.[_0x2cae7c(0xa3)];this[_0x2cae7c(0x1af)][_0x2cae7c(0x110)]?.[_0x2cae7c(0x15b)]!=='local'||!_0xc460ea||this[_0x2cae7c(0x13a)](_0x2cae7c(0xb9),[{'name':_0x2cae7c(0xda),'label':_0x2cae7c(0xbb),'secret':!0x0}],async({password:_0x3fffc4})=>{const _0x56fa85=_0x2cae7c;this[_0x56fa85(0x10a)]({'form':null});const _0x199605=await this[_0x56fa85(0xb4)](_0x56fa85(0x1a5),_0x3875d3=>this[_0x56fa85(0xfa)]['revealPrivateKey'](_0xc460ea,_0x3fffc4,_0x3875d3));_0x199605&&this[_0x56fa85(0x10a)]({'privateKeyView':_0x199605});},{'submit':_0x2cae7c(0x130)});}async[_0x58ce40(0xae)](_0x3a9c3c){const _0x43f808=_0x58ce40;this[_0x43f808(0x10a)]({'selected':-0x1}),this[_0x43f808(0x160)]=_0x3a9c3c,await this[_0x43f808(0xa7)]();}async[_0x58ce40(0x123)](){const _0x343121=_0x58ce40,_0x1442c8=this['selected']();if(!_0x1442c8||this[_0x343121(0x120)]())return;const _0x3c9775=await this[_0x343121(0xb4)]('Switching\x20wallet...',()=>this['services'][_0x343121(0x8a)](_0x1442c8['address']));_0x3c9775&&(await this[_0x343121(0xa7)](),this[_0x343121(0x10a)]({'notice':_0x343121(0x159)+_0x3c9775['address']}));}[_0x58ce40(0x1c1)](_0x531e3a){const _0x6a513=_0x58ce40,_0x44c475=this[_0x6a513(0xfa)][_0x6a513(0x90)]()[_0x6a513(0xd5)]>0x0||this['state'][_0x6a513(0x110)]?.[_0x6a513(0x15b)]==='local',_0x48636e=async({key:_0x2c84f0,password:_0x54f847,repeat:_0x1a2c09})=>{const _0x346bfa=_0x6a513;if(!_0x44c475){if(_0x54f847!==_0x1a2c09)throw new Error(_0x346bfa(0xfe));if(_0x54f847['length']<0x8)throw new Error(_0x346bfa(0x19c));}this['update']({'form':null});const _0x13d845=await this['run'](_0x346bfa(0x1ca),_0x2a02a6=>this[_0x346bfa(0xfa)][_0x346bfa(0x10f)](_0x54f847,_0x2c84f0,_0x2a02a6));_0x13d845&&(await this[_0x346bfa(0xae)](_0x13d845[_0x346bfa(0xa3)]),this[_0x346bfa(0x10a)]({'notice':_0x346bfa(0x174)}));};if(_0x44c475&&!_0x531e3a)return _0x48636e({});this[_0x6a513(0x13a)](_0x531e3a?_0x6a513(0x14d):_0x6a513(0x11a),[..._0x531e3a?[{'name':_0x6a513(0x1f0),'label':'Private\x20key\x20(hidden)','secret':!0x0}]:[],..._0x44c475?[]:[{'name':_0x6a513(0xda),'label':_0x6a513(0xf4),'secret':!0x0},{'name':'repeat','label':_0x6a513(0xc0),'secret':!0x0}]],_0x48636e,{'submit':_0x531e3a?_0x6a513(0x83):'Create\x20wallet'});}[_0x58ce40(0xb6)](){const _0x1e0e55=_0x58ce40;this[_0x1e0e55(0x13a)](_0x1e0e55(0x1c6),[{'name':_0x1e0e55(0x14f),'label':_0x1e0e55(0xde)},{'name':'password','label':_0x1e0e55(0xc8),'secret':!0x0}],async({file:_0x593b06,password:_0x136fa2})=>{const _0x140635=_0x1e0e55;this[_0x140635(0x10a)]({'form':null});const _0x5171c0=await this['run'](_0x140635(0x193),_0x2e491f=>this[_0x140635(0xfa)][_0x140635(0x129)](_0x593b06,_0x136fa2,_0x2e491f));_0x5171c0&&await this[_0x140635(0xae)](_0x5171c0[_0x140635(0xa3)]);},{'submit':'Restore\x20wallet'});}[_0x58ce40(0x1e5)](){const _0x11cd45=_0x58ce40,_0x2bf93f=this[_0x11cd45(0x11c)]()?.[_0x11cd45(0xa3)]??this['state'][_0x11cd45(0x110)]?.[_0x11cd45(0xa3)];_0x2bf93f&&this[_0x11cd45(0x13a)](_0x11cd45(0x165),[{'name':_0x11cd45(0x1d4),'label':'Save\x20encrypted\x20backup\x20to\x20(new\x20file)'}],async({out:_0x36d3a0})=>{const _0x1e7047=_0x11cd45;this[_0x1e7047(0x10a)]({'form':null});const _0xdb65ab=await this[_0x1e7047(0xb4)]('Saving\x20encrypted\x20backup...',()=>this['services'][_0x1e7047(0xe8)](_0x36d3a0,_0x2bf93f));_0xdb65ab&&this[_0x1e7047(0x10a)]({'notice':_0x1e7047(0x163)+_0xdb65ab['path']+'.\x20Keep\x20your\x20password\x20separately.'});},{'submit':_0x11cd45(0x15a)});}async[_0x58ce40(0x1bb)](){const _0x4331ba=_0x58ce40,_0x470473=this[_0x4331ba(0x11c)]()?.['address']??this['state'][_0x4331ba(0x110)]?.[_0x4331ba(0xa3)];_0x470473&&await this['run'](_0x4331ba(0x107),async()=>{const _0xe2ae78=_0x4331ba;this[_0xe2ae78(0x10a)]({'receive':await this[_0xe2ae78(0xfa)][_0xe2ae78(0x19f)](_0x470473)});});}[_0x58ce40(0x189)](){const _0x581450=_0x58ce40,_0x54a4d3=this[_0x581450(0x1af)][_0x581450(0x96)][_0x581450(0xa3)];this['showForm'](_0x581450(0x153),[{'name':_0x581450(0x1d4),'label':_0x581450(0x11b),'placeholder':_0x581450(0x147)}],async({out:_0x2fa416})=>{const _0x5410e7=_0x581450;this[_0x5410e7(0x10a)]({'form':null});const _0x39a915=await this['run']('Saving\x20QR\x20code...',()=>this[_0x5410e7(0xfa)][_0x5410e7(0x1ec)](_0x54a4d3,_0x2fa416));_0x39a915&&this[_0x5410e7(0x10a)]({'notice':_0x5410e7(0xeb)+_0x39a915['path']});},{'submit':_0x581450(0x127)});}[_0x58ce40(0x95)](){const _0x42f96c=_0x58ce40;this[_0x42f96c(0x9b)]('Payment\x20network',this['services'][_0x42f96c(0x1d8)]()[_0x42f96c(0x79)](({key:_0x12244b,name:_0x43eb33})=>({'label':_0x43eb33,'run':async()=>{const _0x3fb16a=_0x42f96c;await this[_0x3fb16a(0xb4)](_0x3fb16a(0x10d)+_0x43eb33+_0x3fb16a(0xe7),()=>this[_0x3fb16a(0xfa)]['selectNetwork'](_0x12244b)),await this[_0x3fb16a(0xa7)]();}})));}[_0x58ce40(0x12c)](){const _0x51af00=_0x58ce40;clearTimeout(this[_0x51af00(0x1f2)]),this['supportReject']?.(h()),this[_0x51af00(0x1dd)]=null,this[_0x51af00(0xbc)]?.(new Error(_0x51af00(0x10c))),this[_0x51af00(0xbc)]=null,_0x1e3d49(),this[_0x51af00(0x10a)]({'form':null,'privateKeyView':null}),this[_0x51af00(0xf3)]=!0x0,this[_0x51af00(0x87)]?.['abort'](),this[_0x51af00(0xf9)]?.[_0x51af00(0xb7)](),this[_0x51af00(0x1bd)]?.[_0x51af00(0xb7)](),this[_0x51af00(0x190)]?.(!0x1),this[_0x51af00(0x191)]?.([]),++this[_0x51af00(0x1d2)],this[_0x51af00(0xb2)][_0x51af00(0xfd)]();}}export{E as DashboardController,f as FILTERS,u as TABS,D as VIEWS,p as visibleItems};
1
+ const _0x4b3ed8=_0x4052;import{friendlyAmount as _0x77175d}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x5b065c,paymentView as _0x547ef0}from'./services.mjs';import{lockWallet as _0x3ec757}from'../lib/local-wallet.mjs';function _0x50e9(){const _0x506209=['View\x20private\x20key','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','Choose\x20an\x20output\x20directory.','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','Wallet\x20deleted:\x20','The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.','Checking\x20the\x20saved\x20order...','Deleting\x20draft...','fundingReceive','RPC\x20endpoints','workers','max','abort','resume','Search','addTarget','sort','continueTask','field','.\x20Keep\x20your\x20password\x20separately.','respond','remove','changeTab','saveDraft','Remove\x20skill','completed','deploy','Update\x20network\x20fee','Keyword\x20or\x20task\x20ID','refreshWalletSelection','Worker:\x20','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','Encrypting\x20wallet\x20locally...','Explorer:\x20','\x20managed\x20targets\x20·\x20','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','canChangePayment','ask','queued','walletRestore','get','walletDelete','deleteWallet','Cancelling\x20request...','Opening\x20draft...','Run\x20diagnostics','Tool\x20credential','job.open','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','\x20·\x20','Identity','Current\x20wallet:\x20','list','From\x20encrypted\x20backup','view','Wallet\x20unlock\x20cancelled.','deleteDraft','Cancel\x20this\x20request?','accepted','exploreUpdates','Review\x20task\x20&\x20payment','cursor','Request\x20changes\x20(new\x20paid\x20task)','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','Checking\x20balances\x20and\x20refreshing\x20prices...','concurrency','Remove\x20RPC','toUpperCase','out','Worker\x20ID,\x20runtime\x20or\x20skill','whoami','explorerUrl','serviceInstall','file','Use\x20at\x20least\x208\x20characters.','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','fromEntries','note','localeCompare','rpc','showOutcome','refused','requestKey','List\x20skills','explore','getSnapshot','form','payment_failed','action','throwIfAborted','network-worker','Forget\x20credential','extraTargets','services','total','Understanding\x20your\x20request...','trim','paymentChain','chain','View\x20details','refreshing','created','...','help','Files','blockers','Completed','Tools\x20&\x20credentials','Review\x20saved\x20payment','View\x20logs','Choose\x20claude\x20or\x20codex.','Worker\x20·\x20','autoRefresh','Cancelled','parent','Deleting\x20local\x20record...','plan','kind','draft','paymentOptions','wallets','name','assign','confirmReplacement','files','Add\x20RPC\x20endpoint\x20(hidden\x20input)','change_payment','submitForm','repeat','download','Task\x20published:\x20','What\x20would\x20you\x20like\x20to\x20change?','forget','indexOf','Add\x20RPC','join','Continue','has','Status','Add\x20target','menu','Skill\x20ID','Confirm\x20wallet\x20password','wallet','configured','Backup\x20saved:\x20','refreshError','walletSetup','searchText','QR\x20saved:\x20','Choose\x20payment\x20·\x20support\x20is\x20optional','expired','restart','walletManagement','Draft\x20saved','tasks','command','managed-worker','Concurrent\x20tasks\x20(1–4)','requestPassword','detailVersion','showMenu','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','View\x20result\x20files','query','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','\x20on\x20','result','Download\x20files','path','toLowerCase','Transaction:\x20','Auto-refresh\x20failed:\x20','values','walletImport','running','funding','Preparing\x20the\x20payment\x20review...','\x20is\x20required.','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','label','Remove\x20tool','pickPayment','boot','hash','addFunds','useSelectedWallet','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','showPaymentProgress','Save\x20under\x20this\x20directory','Loading\x20older\x20tasks...','dialog','code','Download','createdAt','On-chain\x20funds\x20stay\x20at\x20this\x20address.','Import\x20wallet','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','Attention','Saved\x20wallet','items','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','canDelete','set','Runtime\x20(claude\x20or\x20codex)','funded','Register\x20on\x20chain','This\x20request\x20is\x20not\x20supported.','delete','Keep\x20draft','selection','Chain\x20ID','error','setField','editDraft','Local\x20record\x20deleted.','Checking\x20balances\x20on\x20all\x20networks...','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','\x20verified\x20files\x20to\x20','createWallet','local','findIndex','flatMap','Saving\x20encrypted\x20backup...','key','Set\x20local\x20wallet\x20password','Continue\x20draft','create','Delete\x20draft','state','reason','formSubmit','Run\x20on\x20','update','autoPayment','What\x20would\x20you\x20like\x20to\x20get\x20done?','executing','Save\x20QR','funding_required','Preparing\x20receive\x20address...','input','transaction_pending','run','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','Review\x20&\x20pay','pendingTransaction','locked','closeReceive','payment','loaded','job.continue','Loading\x20network\x20workers...','value','saveReceiveQr','cancelAutoRefresh','menuCancel','change','walletBackup','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','walletIsCurrent','Deleting\x20local\x20wallet...','updatedAt','slice','concat','Concurrency\x20must\x20be\x201–4.','cancelled','passwordReject','codex','Payment\x20needs\x20review.','selected','Preparing\x20local\x20LLM...','draftId','fundingDialog','View\x20private\x20key\x20·\x20confirm\x20password','Pair\x20with\x20wallet','currentAddress','receive','reviewPayment','now','service','chooseMenu','listeners','All','title','networkWorkers','workerCommand','Delete\x20wallet\x20·\x201\x20of\x202','saveQr','./output/','refresh','Current','--runtime','checkTaskWallet','extraAction','cancelRequest','showForm','length','selectWallet','payment_reconciling','Saved\x20','Delete\x20wallet','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','deleteTaskDraft','register','pending','List\x20tools','gas','One\x20local\x20password\x20·\x20u\x20use\x20selected\x20wallet','Restore\x20wallet','port','admitted','Linux\x20start\x20at\x20boot\x20(yes/no)','busy','chooseSupport','summary','Save\x20encrypted\x20backup\x20to\x20(new\x20file)','dismissForm','push','detailRequest','Cancel\x20request','Unlink\x20worker','claude','stage','Add\x20skill','identity','resumeOrder','IMD','Selected\x20wallet\x20actions','detailTimer','cancel','install','yes','withFundingRetry','detail','Loading\x20files...','Download\x20task\x20files','--boot','confirm','Remove\x20this\x20wallet\x20from\x20Colony?','Passwords\x20do\x20not\x20match.','canCancel','quoted','refreshRequest','submitConfirmation','colony-receive.svg','From\x20private\x20key','lastExploreRefresh','runtime','questions','chainName','refreshExplore','Keep\x20request','map','status','choice','SSH\x20port','Check\x20balance\x20&\x20continue','Restoring\x20wallet...','since','includes','lines','coin','jobId','filter','more','closed','pair','Tool\x20ID','targets','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','formCancel','Add\x20funds\x20to\x20continue','Change\x20payment','objective','Set\x20tool\x20credential\x20(hidden\x20input)','\x0aOrder:\x20','clear','message','Use\x20this\x20wallet','Request\x20changes','Credential\x20name','signal','fields','logs','deleteRequest','wallet_required','some','terminal','navigate','unlink','skills','receiveWallet','operation','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','restoreWallet','Enter\x20yes\x20or\x20no.','stop','Deploy\x20official\x20worker','deliverables','setupWallet','loadDetail','payWith','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','restoreSelectedId','askResolve','Task\x20actions','transaction','canResume','ethereum','Overview','Worker\x20tools','Back\x20up\x20encrypted\x20wallet','Install\x20background\x20service','walletMenu','scroll','cycleFilter','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','\x20·\x20current','worker','walletReceive','tools','address','password','source'];_0x50e9=function(){return _0x506209;};return _0x50e9();}import{fundingInstructions as _0x2a90a8,fundingNetworks as _0x11d6f7,networkChoiceLabel as _0x28df1c,networkTargets as _0x3746eb}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x714d5c}from'../lib/support.mjs';import{randomUUID as _0x1b9955}from'node:crypto';const V=[_0x4b3ed8(0x157),_0x4b3ed8(0x110),_0x4b3ed8(0xc6),_0x4b3ed8(0x14b)],m=[_0x4b3ed8(0x1d6),'Active',_0x4b3ed8(0x126),_0x4b3ed8(0x182),_0x4b3ed8(0x12d)],u=[_0x4b3ed8(0x255),'Activity',_0x4b3ed8(0x124)],v=new Set([_0x4b3ed8(0x132),_0x4b3ed8(0x121),_0x4b3ed8(0x211),'challenged',_0x4b3ed8(0x16c),'signed','submitted',_0x4b3ed8(0xe2),_0x4b3ed8(0x16b),_0x4b3ed8(0x1a8),'pending','admitting']),S=new Set([_0x4b3ed8(0x153),_0x4b3ed8(0x113),_0x4b3ed8(0x1ad),'payment_reconciling']),P=new Set([_0x4b3ed8(0x1ad),_0x4b3ed8(0x1e6)]),x=0x7530;function _0x4052(_0x1cb790,_0x50e915){_0x1cb790=_0x1cb790-0xbc;const _0x405283=_0x50e9();let _0x808b46=_0x405283[_0x1cb790];return _0x808b46;}function f(_0x215607){const _0x5b7712=_0x4b3ed8;return _0x215607[_0x5b7712(0x184)]['filter'](_0x545370=>!['tasks','workers'][_0x5b7712(0x223)](_0x215607[_0x5b7712(0xf2)])||[_0x545370[_0x5b7712(0x1d7)],_0x545370['id'],_0x545370[_0x5b7712(0x150)]??'']['some'](_0x3b5d10=>_0x3b5d10['toLowerCase']()[_0x5b7712(0x223)](_0x215607['query'][_0x5b7712(0x166)]()))?_0x215607['filter']===_0x5b7712(0x1d6)||_0x215607[_0x5b7712(0xf2)]!==_0x5b7712(0x157)?!0x0:_0x215607['filter']===_0x5b7712(0x126)?_0x545370[_0x5b7712(0x1a1)]==='completed':_0x215607[_0x5b7712(0x227)]===_0x5b7712(0x12d)?_0x545370[_0x5b7712(0x1a1)]===_0x5b7712(0x1c5):_0x215607[_0x5b7712(0x227)]==='Active'?v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):![_0x5b7712(0xd5),_0x5b7712(0x1c5)][_0x5b7712(0x223)](_0x545370[_0x5b7712(0x1a1)])&&!v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):!0x1);}function p(){const _0x258c51=_0x4b3ed8;return Object['assign'](new Error('Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.'),{'code':_0x258c51(0x1c5)});}function W(){const _0x5b2bab=_0x4b3ed8;return Object[_0x5b2bab(0x136)](new Error(_0x5b2bab(0x107)),{'code':_0x5b2bab(0x13a)});}function A(_0xed4242,_0x268eaa){const _0x1ea3c6=_0x4b3ed8,{option:_0x3f44cf}=_0xed4242,_0x32aa3e=(_0xed4242[_0x1ea3c6(0x24d)]===_0x1ea3c6(0x202)?'':'\u2248\x20')+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1b4)],_0xed4242[_0x1ea3c6(0x24d)],{'up':!0x0}),_0x296326=_0x268eaa&&_0x268eaa[_0x1ea3c6(0x11d)]===_0xed4242[_0x1ea3c6(0x11d)]&&_0x268eaa['payWith']===_0xed4242[_0x1ea3c6(0x24d)];return _0xed4242[_0x1ea3c6(0x24d)]+_0x1ea3c6(0x162)+_0xed4242['chainName']+_0x1ea3c6(0xed)+_0x32aa3e+'\x20+\x20gas\x20\u2248\x20'+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1ee)],'ETH',{'up':!0x0})+(_0x296326?_0x1ea3c6(0x25d):'');}function T(_0x33e387){const _0x51f2f2=_0x4b3ed8;if(!_0x33e387)return[];const _0x1a9b25=[];return _0x33e387[_0x51f2f2(0x174)]&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0x167)+_0x33e387[_0x51f2f2(0x174)]+(_0x33e387['kind']?'\x20('+_0x33e387['kind']+')':'')),_0x33e387[_0x51f2f2(0x1a2)]&&_0x1a9b25['push']('Reason:\x20'+_0x33e387[_0x51f2f2(0x1a2)]),_0x33e387['explorerUrl']&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0xdd)+_0x33e387[_0x51f2f2(0x103)]),_0x1a9b25;}function E(_0x1544c3){const _0x4423b4=_0x4b3ed8,_0x5fa5ae=[_0x1544c3['message']||'The\x20payment\x20result\x20is\x20not\x20final\x20yet.'];return _0x5fa5ae[_0x4423b4(0x1f9)](...T(_0x1544c3[_0x4423b4(0x252)])),_0x5fa5ae[_0x4423b4(0x1f9)]('Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.'),_0x5fa5ae['join']('\x0a');}class _{constructor(_0xc45412){const _0x329039=_0x4b3ed8;this[_0x329039(0x119)]=_0xc45412,this['listeners']=new Set(),this[_0x329039(0x1a1)]={'view':_0x329039(0x157),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x329039(0x255),'filter':_0x329039(0x1d6),'query':'','note':'','focus':'list','scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this['detailVersion']=0x0,this['extraTargets']=[],this['closed']=!0x1,this[_0x329039(0x216)]=0x0;}['subscribe']=_0x20d277=>(this[_0x4b3ed8(0x1d5)]['add'](_0x20d277),()=>this[_0x4b3ed8(0x1d5)][_0x4b3ed8(0x18c)](_0x20d277));[_0x4b3ed8(0x111)]=()=>this[_0x4b3ed8(0x1a1)];[_0x4b3ed8(0x1a5)](_0x496dfc){const _0x3e24d3=_0x4b3ed8;if(!this['closed']){this['state']={...this[_0x3e24d3(0x1a1)],..._0x496dfc};for(const _0xe42a0f of this[_0x3e24d3(0x1d5)])_0xe42a0f();}}[_0x4b3ed8(0x1c9)](){const _0x78aab2=_0x4b3ed8;return f(this[_0x78aab2(0x1a1)])[this['state']['selected']];}['showError'](){const _0x945eb1=_0x4b3ed8;++this[_0x945eb1(0x15c)],this[_0x945eb1(0x1a5)]({'detail':{'output':this['state']['error']??this['state'][_0x945eb1(0x14e)]},'detailLoading':!0x1,'focus':_0x945eb1(0x209),'scroll':0x0,'tab':_0x945eb1(0x255)});}[_0x4b3ed8(0x1ba)](){const _0x17663f=_0x4b3ed8;this[_0x17663f(0x212)]?.[_0x17663f(0xc8)](),this[_0x17663f(0x212)]=null,this[_0x17663f(0x1a5)]({'refreshing':!0x1});}async[_0x4b3ed8(0x1ae)](_0x57120f,_0x49d76e){const _0x5baeba=_0x4b3ed8;if(!this[_0x5baeba(0x1a1)][_0x5baeba(0x1f4)]){this[_0x5baeba(0x1ba)](),this['operation']=new AbortController(),this[_0x5baeba(0x1a5)]({'busy':_0x57120f,'error':null,'refreshError':null,'notice':null});try{return await _0x49d76e(this[_0x5baeba(0x244)][_0x5baeba(0x239)]);}catch(_0x8fbc60){_0x8fbc60[_0x5baeba(0x17c)]===_0x5baeba(0x1c5)?(this['update']({'notice':_0x8fbc60[_0x5baeba(0x235)]}),this[_0x5baeba(0x192)]()):P[_0x5baeba(0x145)](_0x8fbc60['code'])?this[_0x5baeba(0x1a5)]({'error':E(_0x8fbc60)}):this[_0x5baeba(0x1a5)]({'error':_0x8fbc60[_0x5baeba(0x235)]});}finally{this[_0x5baeba(0x1a5)]({'busy':null,'modelProgress':null});}}}async[_0x4b3ed8(0x240)](_0x2049be){const _0x3ab5a9=_0x4b3ed8;this['state'][_0x3ab5a9(0x1f4)]||(clearTimeout(this[_0x3ab5a9(0x204)]),this[_0x3ab5a9(0x1fa)]?.[_0x3ab5a9(0xc8)](),++this[_0x3ab5a9(0x15c)],this['update']({'view':_0x2049be,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x3ab5a9(0x1d6),'tab':_0x3ab5a9(0x255),'scroll':0x0,'focus':_0x3ab5a9(0xf0),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x3ab5a9(0x1dd)]());}async[_0x4b3ed8(0x1dd)](){const _0x8a5511=_0x4b3ed8,_0x558e84=this[_0x8a5511(0x1c9)]()?.['id']??this['restoreSelectedId'];this[_0x8a5511(0x24f)]=void 0x0,await this['run']('Loading\x20'+this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]+_0x8a5511(0x122),async _0x719f7d=>{const _0x518b2e=_0x8a5511;let _0x4d168b;if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x157))_0x4d168b=await this[_0x518b2e(0x119)]['mine'](_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]==='explore')_0x4d168b=await this[_0x518b2e(0x119)][_0x518b2e(0x110)](this[_0x518b2e(0x1a1)][_0x518b2e(0x160)],void 0x0,_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0xc6)){const _0x387ff1=this['services'][_0x518b2e(0x22c)](),_0x3993f2=new Set(_0x387ff1['map'](_0x3e601e=>_0x3e601e['id'])),_0x58d957=_0x387ff1[_0x518b2e(0x1c3)](this[_0x518b2e(0x118)][_0x518b2e(0x227)](_0xea739c=>!_0x3993f2[_0x518b2e(0x145)](_0xea739c['id'])))[_0x518b2e(0x21c)](_0x238dd3=>({..._0x238dd3,'kind':_0x518b2e(0x159)}));this[_0x518b2e(0x1a5)]({'items':_0x58d957,'selected':0x0,'note':_0x518b2e(0x1b7)});let _0x54a3f5;try{_0x54a3f5=await this[_0x518b2e(0x119)][_0x518b2e(0x1d8)](_0x719f7d);}catch(_0x5ee570){throw this[_0x518b2e(0x1a5)]({'note':_0x58d957[_0x518b2e(0x1e4)]+'\x20managed\x20targets\x20\xB7\x20Network\x20unavailable\x20\xB7\x20r\x20retry'}),_0x5ee570;}_0x4d168b={'items':_0x58d957[_0x518b2e(0x1c3)](_0x54a3f5),'note':_0x58d957[_0x518b2e(0x1e4)]+_0x518b2e(0xde)+_0x54a3f5[_0x518b2e(0x1e4)]+_0x518b2e(0xbf)};}else{const _0x1bd3f3=await this[_0x518b2e(0x119)]['wallet'](_0x719f7d,_0x558e84,{'balances':!0x1}),_0x3eb1e0=this['services']['wallets']();!_0x3eb1e0[_0x518b2e(0x1e4)]&&_0x1bd3f3[_0x518b2e(0x14c)]&&_0x3eb1e0['push']({'address':_0x1bd3f3[_0x518b2e(0x261)],'active':!0x0,'locked':_0x1bd3f3[_0x518b2e(0x1b2)]}),_0x4d168b={'items':_0x3eb1e0[_0x518b2e(0x21c)](_0x105440=>({..._0x105440,'id':_0x105440[_0x518b2e(0x261)],'title':_0x105440[_0x518b2e(0x261)][_0x518b2e(0x1c2)](0x0,0xa)+_0x518b2e(0x122)+_0x105440['address'][_0x518b2e(0x1c2)](-0x8),'subtitle':_0x105440['active']?_0x518b2e(0x1de):_0x518b2e(0x183)})),'note':_0x518b2e(0x1ef),'address':_0x1bd3f3[_0x518b2e(0x1cf)]??_0x1bd3f3[_0x518b2e(0x261)]??null},this['update']({'detail':_0x1bd3f3,'scroll':0x0});}}}const _0x2778ab=_0x558e84??(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x14b)?_0x4d168b['address']:void 0x0),_0x52e860=Math[_0x518b2e(0xc7)](0x0,f({...this[_0x518b2e(0x1a1)],'items':_0x4d168b['items']})[_0x518b2e(0x199)](_0x318f53=>_0x318f53['id']===_0x2778ab));this[_0x518b2e(0x1a5)]({'items':_0x4d168b['items'],'note':_0x4d168b[_0x518b2e(0x109)],'cursor':_0x4d168b[_0x518b2e(0xf9)],'total':_0x4d168b[_0x518b2e(0x11a)]??(_0x4d168b[_0x518b2e(0xf9)]?null:_0x4d168b[_0x518b2e(0x184)][_0x518b2e(0x1e4)]),'since':_0x4d168b[_0x518b2e(0x222)]??null,'selected':_0x52e860,'address':Object['hasOwn'](_0x4d168b,_0x518b2e(0x261))?_0x4d168b[_0x518b2e(0x261)]:this['state']['address']}),this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x110)&&(this[_0x518b2e(0x216)]=Date[_0x518b2e(0x1d2)]());}),this[_0x8a5511(0x229)]||await this[_0x8a5511(0x24c)](this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]===_0x8a5511(0x14b));}async[_0x4b3ed8(0x12c)](){const _0x34caec=_0x4b3ed8,_0x52c307=this[_0x34caec(0x1a1)];this['closed']||_0x52c307['busy']||_0x52c307[_0x34caec(0x120)]||_0x52c307['detailLoading']||_0x52c307[_0x34caec(0x112)]||_0x52c307['confirm']||_0x52c307['menu']||_0x52c307[_0x34caec(0x123)]||_0x52c307['privateKeyView']||(_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x110)&&_0x52c307[_0x34caec(0x222)]!==null&&Date[_0x34caec(0x1d2)]()-this[_0x34caec(0x216)]>=x?await this[_0x34caec(0x21a)]():_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x157)&&!_0x52c307[_0x34caec(0x190)]&&[_0x34caec(0x16b),_0x34caec(0x1a8),_0x34caec(0xe2),_0x34caec(0x1ec)][_0x34caec(0x223)](this['selected']()?.[_0x34caec(0x1a1)])&&await this[_0x34caec(0x24c)](!0x0));}async[_0x4b3ed8(0x21a)](){const _0x2f32f3=_0x4b3ed8,_0x153a25=new AbortController();this['refreshRequest']=_0x153a25,this[_0x2f32f3(0x216)]=Date[_0x2f32f3(0x1d2)](),this[_0x2f32f3(0x1a5)]({'refreshing':!0x0});try{const _0x5b0ac3=await this['services'][_0x2f32f3(0xf7)](this[_0x2f32f3(0x1a1)][_0x2f32f3(0x160)],this[_0x2f32f3(0x1a1)][_0x2f32f3(0x222)],_0x153a25['signal']);if(this['refreshRequest']!==_0x153a25||this[_0x2f32f3(0x229)])return;const _0x47daa7=this['selected']()?.['id'],_0xad99a5=this[_0x2f32f3(0x1a1)]['items']['at'](-0x1)?.[_0x2f32f3(0x17e)],_0x12c742=new Map(this[_0x2f32f3(0x1a1)][_0x2f32f3(0x184)][_0x2f32f3(0x21c)](_0x3840cd=>[_0x3840cd['id'],_0x3840cd]));for(const _0x19ea6b of _0x5b0ac3[_0x2f32f3(0x184)]){const _0x5e428f=_0x12c742[_0x2f32f3(0xe4)](_0x19ea6b['id']);_0x5e428f&&_0x19ea6b[_0x2f32f3(0x1c1)]<_0x5e428f['updatedAt']||(_0x12c742['has'](_0x19ea6b['id'])||!_0xad99a5||_0x19ea6b[_0x2f32f3(0x17e)]>=_0xad99a5)&&_0x12c742[_0x2f32f3(0x187)](_0x19ea6b['id'],_0x19ea6b);}const _0x2a4b5a=[..._0x12c742[_0x2f32f3(0x169)]()][_0x2f32f3(0xcc)]((_0x59d9f1,_0x7f2c37)=>_0x7f2c37[_0x2f32f3(0x17e)][_0x2f32f3(0x10a)](_0x59d9f1[_0x2f32f3(0x17e)])),_0x57c760=Math[_0x2f32f3(0xc7)](0x0,_0x2a4b5a[_0x2f32f3(0x199)](_0x332481=>_0x332481['id']===_0x47daa7));this['update']({'items':_0x2a4b5a,'selected':_0x57c760,'since':_0x5b0ac3[_0x2f32f3(0x222)],'total':_0x5b0ac3[_0x2f32f3(0x11a)]??(this['state'][_0x2f32f3(0xf9)]?null:_0x2a4b5a[_0x2f32f3(0x1e4)]),'refreshError':null}),await this[_0x2f32f3(0x24c)](!0x0);}catch(_0x3cc59f){this[_0x2f32f3(0x212)]===_0x153a25&&!this[_0x2f32f3(0x229)]&&this[_0x2f32f3(0x1a5)]({'refreshError':_0x2f32f3(0x168)+_0x3cc59f['message']});}finally{this['refreshRequest']===_0x153a25&&(this[_0x2f32f3(0x212)]=null,this[_0x2f32f3(0x1a5)]({'refreshing':!0x1}));}}async[_0x4b3ed8(0x228)](){const _0x3e197d=_0x4b3ed8;this[_0x3e197d(0x1a1)][_0x3e197d(0xf2)]!==_0x3e197d(0x110)||!this[_0x3e197d(0x1a1)][_0x3e197d(0xf9)]||await this[_0x3e197d(0x1ae)](_0x3e197d(0x17a),async _0x3ea926=>{const _0x40d81b=_0x3e197d,_0x4cc9fb=await this['services'][_0x40d81b(0x110)](this[_0x40d81b(0x1a1)]['query'],this[_0x40d81b(0x1a1)][_0x40d81b(0xf9)],_0x3ea926),_0x9a8947=new Set(this[_0x40d81b(0x1a1)][_0x40d81b(0x184)]['map'](_0x1d775f=>_0x1d775f['id'])),_0x464265=this['state'][_0x40d81b(0x184)][_0x40d81b(0x1c3)](_0x4cc9fb[_0x40d81b(0x184)][_0x40d81b(0x227)](_0x52d7bf=>!_0x9a8947[_0x40d81b(0x145)](_0x52d7bf['id'])));this['update']({'items':_0x464265,'cursor':_0x4cc9fb[_0x40d81b(0xf9)],'total':this['state'][_0x40d81b(0x11a)]??(_0x4cc9fb[_0x40d81b(0xf9)]?null:_0x464265[_0x40d81b(0x1e4)])});});}async['loadDetail'](_0x423c04=!0x1){const _0x1347a6=_0x4b3ed8;clearTimeout(this['detailTimer']),this[_0x1347a6(0x204)]=null;const _0x24a167=this[_0x1347a6(0x1c9)]();if(this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0x14b)&&!_0x24a167)return;const _0x3979a7=++this[_0x1347a6(0x15c)];if(this[_0x1347a6(0x1fa)]?.['abort'](),this[_0x1347a6(0x1fa)]=new AbortController(),this[_0x1347a6(0x1a5)]({'detail':_0x423c04?this[_0x1347a6(0x1a1)][_0x1347a6(0x209)]:null,'result':_0x423c04?this['state']['result']:null,'detailLoading':!!_0x24a167,'scroll':_0x423c04?this[_0x1347a6(0x1a1)]['scroll']:0x0}),!!_0x24a167)try{const _0x477ebc=this[_0x1347a6(0x1a1)][_0x1347a6(0xf2)]==='wallet'?await this[_0x1347a6(0x119)]['wallet'](this[_0x1347a6(0x1fa)][_0x1347a6(0x239)],_0x24a167['address']):this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0xc6)?_0x24a167[_0x1347a6(0x131)]===_0x1347a6(0x116)?_0x24a167:_0x24a167['installed']?await this[_0x1347a6(0x119)]['command']([_0x1347a6(0x25e),_0x1347a6(0x21d)],_0x24a167,this['detailRequest'][_0x1347a6(0x239)]):{'notInstalled':!0x0}:await this[_0x1347a6(0x119)][_0x1347a6(0x209)](_0x24a167,this[_0x1347a6(0x1fa)][_0x1347a6(0x239)]);if(_0x3979a7===this[_0x1347a6(0x15c)]){const _0x5141ca=_0x477ebc['state']??(_0x24a167[_0x1347a6(0x226)]?void 0x0:_0x477ebc[_0x1347a6(0x21d)]),_0x4010c0=this[_0x1347a6(0x1a1)][_0x1347a6(0x184)][_0x1347a6(0x21c)](_0x1ce49a=>_0x1ce49a['id']===_0x24a167['id']&&_0x5141ca?{..._0x1ce49a,'state':_0x5141ca,..._0x477ebc['updatedAt']?{'updatedAt':_0x477ebc[_0x1347a6(0x1c1)]}:{},..._0x1347a6(0x210)in _0x477ebc?{'canCancel':_0x477ebc[_0x1347a6(0x210)],'canDelete':_0x477ebc['canDelete'],'canResume':_0x477ebc[_0x1347a6(0x253)]}:{}}:_0x1ce49a),_0xb1996e=f({...this['state'],'items':_0x4010c0})[_0x1347a6(0x199)](_0x8b9f1=>_0x8b9f1['id']===_0x24a167['id']);this[_0x1347a6(0x1a5)]({'detail':_0xb1996e<0x0?null:_0x477ebc,'detailLoading':!0x1,'items':_0x4010c0,'selected':Math['max'](0x0,_0xb1996e)}),_0xb1996e<0x0&&this[_0x1347a6(0x24c)]();}}catch(_0x5bb54d){_0x3979a7===this[_0x1347a6(0x15c)]&&this[_0x1347a6(0x1a5)]({'detailLoading':!0x1,'error':_0x5bb54d[_0x1347a6(0x235)]});}}['move'](_0x143d9b){const _0x36eab6=_0x4b3ed8,_0x1dfe3a=f(this['state'])[_0x36eab6(0x1e4)],_0x56d239=Math['max'](0x0,Math['min'](_0x1dfe3a-0x1,this[_0x36eab6(0x1a1)][_0x36eab6(0x1c9)]+_0x143d9b));_0x56d239!==this['state'][_0x36eab6(0x1c9)]&&(clearTimeout(this['detailTimer']),++this[_0x36eab6(0x15c)],this[_0x36eab6(0x1fa)]?.[_0x36eab6(0xc8)](),this[_0x36eab6(0x1a5)]({'selected':_0x56d239,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x36eab6(0x1a1)][_0x36eab6(0xf2)]===_0x36eab6(0xc6)?this[_0x36eab6(0x24c)]():this[_0x36eab6(0x204)]=setTimeout(()=>{const _0x217ed=_0x36eab6;this[_0x217ed(0x24c)]();},0x78)),_0x143d9b>0x0&&_0x56d239===_0x1dfe3a-0x1&&this[_0x36eab6(0x228)]();}[_0x4b3ed8(0x25b)](){const _0x15398a=_0x4b3ed8;this[_0x15398a(0x1a5)]({'filter':m[(m[_0x15398a(0x141)](this[_0x15398a(0x1a1)]['filter'])+0x1)%m[_0x15398a(0x1e4)]],'selected':0x0}),this[_0x15398a(0x24c)]();}async[_0x4b3ed8(0xd2)](_0x170ce2){const _0x16208f=_0x4b3ed8,_0x5c2671=u[(u[_0x16208f(0x141)](this[_0x16208f(0x1a1)]['tab'])+_0x170ce2+u['length'])%u[_0x16208f(0x1e4)]];this[_0x16208f(0x1a5)]({'tab':_0x5c2671,'scroll':0x0}),_0x5c2671===_0x16208f(0x124)&&await this['files']();}async[_0x4b3ed8(0x138)](){const _0x22f693=_0x4b3ed8,_0x224740=this['selected']();_0x224740?.[_0x22f693(0x226)]&&(this['detailTimer']&&this[_0x22f693(0x24c)](!0x0),this[_0x22f693(0x1a5)]({'tab':_0x22f693(0x124),'focus':_0x22f693(0x209),'scroll':0x0}),await this['run'](_0x22f693(0x20a),async _0x2237e8=>{const _0x5a19fb=_0x22f693;this['update']({'result':await this['services'][_0x5a19fb(0x163)](_0x224740['jobId'],_0x2237e8)});}));}['showForm'](_0x51acf7,_0x53ccb2,_0xf2ab41,{onCancel:_0x5a3f40,submit:_0x2c5b95=_0x4b3ed8(0x144)}={}){const _0x4e59be=_0x4b3ed8;this[_0x4e59be(0x1ba)](),this[_0x4e59be(0x1a3)]=_0xf2ab41,this[_0x4e59be(0x22e)]=_0x5a3f40,this[_0x4e59be(0x1a5)]({'form':{'title':_0x51acf7,'fields':_0x53ccb2,'values':Object[_0x4e59be(0x108)](_0x53ccb2[_0x4e59be(0x21c)](_0x3692e4=>[_0x3692e4['name'],_0x3692e4[_0x4e59be(0x1b8)]??''])),'field':0x0,'submit':_0x2c5b95,'error':null},'menu':null});}[_0x4b3ed8(0x191)](_0x3558b3){const _0x2ef19a=_0x4b3ed8,_0x35b2f8=this[_0x2ef19a(0x1a1)][_0x2ef19a(0x112)],_0x51d6d1=_0x35b2f8[_0x2ef19a(0x23a)][_0x35b2f8[_0x2ef19a(0xce)]][_0x2ef19a(0x135)];this[_0x2ef19a(0x1a5)]({'form':{..._0x35b2f8,'values':{..._0x35b2f8[_0x2ef19a(0x169)],[_0x51d6d1]:_0x3558b3},'error':null}});}['nextField'](_0x4db844=!0x1){const _0x20e86a=_0x4b3ed8,_0x585d6e=this[_0x20e86a(0x1a1)][_0x20e86a(0x112)];this['update']({'form':{..._0x585d6e,'field':(_0x585d6e[_0x20e86a(0xce)]+(_0x4db844?-0x1:0x1)+_0x585d6e[_0x20e86a(0x23a)]['length'])%_0x585d6e['fields'][_0x20e86a(0x1e4)]}});}async[_0x4b3ed8(0x13b)](){const _0x500e2e=_0x4b3ed8,{values:_0x4034c7}=this[_0x500e2e(0x1a1)]['form'];try{await this[_0x500e2e(0x1a3)](_0x4034c7);}catch(_0x57b6bb){this[_0x500e2e(0x1a5)]({'form':{...this[_0x500e2e(0x1a1)][_0x500e2e(0x112)],'error':_0x57b6bb[_0x500e2e(0x235)]}});}}[_0x4b3ed8(0x1f8)](){const _0x2f363c=_0x4b3ed8,_0x24ddd3=this[_0x2f363c(0x22e)];this[_0x2f363c(0x1a5)]({'form':null}),_0x24ddd3&&_0x24ddd3();}['search'](){const _0x1f89ad=_0x4b3ed8,_0x28c74a=this[_0x1f89ad(0x1a1)][_0x1f89ad(0xf2)]===_0x1f89ad(0xc6);this[_0x1f89ad(0x1e3)](_0x28c74a?'Search\x20workers':'Search\x20tasks',[{'name':_0x1f89ad(0x160),'label':_0x28c74a?_0x1f89ad(0x101):_0x1f89ad(0xd8),'value':this[_0x1f89ad(0x1a1)][_0x1f89ad(0x160)]}],async({query:_0x54d3c7})=>{const _0x3d88fb=_0x1f89ad;this[_0x3d88fb(0x1a5)]({'query':_0x54d3c7,'selected':0x0,'form':null}),this[_0x3d88fb(0x1a1)][_0x3d88fb(0xf2)]===_0x3d88fb(0x110)?await this[_0x3d88fb(0x1dd)]():await this[_0x3d88fb(0x24c)]();},{'submit':_0x1f89ad(0xca)});}[_0x4b3ed8(0x19f)](_0x534a7f=null){const _0x2ac5f7=_0x4b3ed8;this[_0x2ac5f7(0x132)]={'id':_0x1b9955(),'objective':'','parent':_0x534a7f},this[_0x2ac5f7(0x192)]();}[_0x4b3ed8(0xcd)](){const _0x48459a=_0x4b3ed8,_0x113fec=this['selected']();this[_0x48459a(0x1a1)][_0x48459a(0xf2)]!==_0x48459a(0x157)||!_0x113fec?.[_0x48459a(0x226)]||this['create'](_0x113fec[_0x48459a(0x226)]);}[_0x4b3ed8(0x192)](){const _0x504a23=_0x4b3ed8;this[_0x504a23(0x132)]&&(this[_0x504a23(0x1e3)](this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x237):'Create\x20a\x20task',[{'name':_0x504a23(0x231),'label':this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x13f):_0x504a23(0x1a7),'value':this[_0x504a23(0x132)][_0x504a23(0x231)],'placeholder':_0x504a23(0x177)}],async({objective:_0x44ca54})=>{const _0x54cecf=_0x504a23;if(!_0x44ca54[_0x54cecf(0x11c)]())throw new Error(_0x54cecf(0x24e));const _0xe278bb=_0x44ca54[_0x54cecf(0x11c)]()!==this['draft']['objective'];this[_0x54cecf(0x132)]={...this[_0x54cecf(0x132)],'objective':_0x44ca54['trim'](),..._0xe278bb&&this[_0x54cecf(0x132)][_0x54cecf(0x10e)]?{'id':_0x1b9955(),'createdAt':void 0x0}:{},..._0xe278bb?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x54cecf(0x1a5)]({'form':null}),await this['publishDraft']();},{'submit':'Review\x20task'}),this['update']({'form':{...this['state'][_0x504a23(0x112)],'hint':'Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.'}}));}[_0x4b3ed8(0xe1)](_0x2a35c3){return new Promise(_0x119423=>{this['askResolve']=_0x119423,this['showForm']('A\x20little\x20more\x20information',_0x2a35c3['map']((_0x3f07e2,_0x2e4019)=>({'name':String(_0x2e4019),'label':_0x3f07e2})),_0x326220=>{const _0x31ba3e=_0x4052;this[_0x31ba3e(0x1a5)]({'form':null}),this['askResolve']=null,_0x119423(Object[_0x31ba3e(0x169)](_0x326220));},{'onCancel':()=>{const _0x21d0f9=_0x4052;this[_0x21d0f9(0x250)]=null,_0x119423([]);}});});}[_0x4b3ed8(0x20d)](_0x308e20){return new Promise(_0x3437cb=>{const _0x37b166=_0x4052;this['confirmResolve']=_0x3437cb;const _0xa13b97=_0x308e20[_0x37b166(0x224)]??(_0x308e20[_0x37b166(0x235)]!==void 0x0?[String(_0x308e20['message'])]:[]);this[_0x37b166(0x1a5)]({'confirm':{..._0x308e20,'lines':_0xa13b97,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x116960){const _0x27f6a6=_0x4b3ed8,_0x107b56=this['state']['confirm'],_0x2a2973=_0x107b56['extraAction']?0x3:0x2,_0x4c628f=(_0x107b56[_0x27f6a6(0x18e)]+_0x116960+_0x2a2973)%_0x2a2973;this[_0x27f6a6(0x1a5)]({'confirm':{..._0x107b56,'selection':_0x4c628f,'accepted':_0x4c628f===_0x2a2973-0x1}});}[_0x4b3ed8(0x213)](){const _0x59785a=_0x4b3ed8,_0x362317=this['state'][_0x59785a(0x20d)];_0x362317[_0x59785a(0x1e1)]&&_0x362317[_0x59785a(0x18e)]===0x1?_0x362317['extraAction'][_0x59785a(0x1ae)]():this[_0x59785a(0xd0)](_0x362317[_0x59785a(0xf6)]);}async[_0x4b3ed8(0x137)](_0x4a8757){const _0x3f5f13=_0x4b3ed8;if(!await this[_0x3f5f13(0x20d)]({'title':_0x3f5f13(0xd7),'message':_0x4a8757?.[_0x3f5f13(0x235)]??''}))throw p();}[_0x4b3ed8(0xd0)](_0x36ef18){const _0x20ffb5=this['confirmResolve'];this['confirmResolve']=null,this['update']({'confirm':null}),_0x20ffb5(_0x36ef18);}['reviewPayment'](_0x32b710={}){return async _0x1d592a=>{const _0x4d1c7d=_0x4052,_0x5d7666=await this['confirm']({'title':_0x4d1c7d(0xf8),'payment':_0x547ef0(_0x1d592a),'extraAction':{'label':_0x4d1c7d(0x230),'run':()=>this[_0x4d1c7d(0xd0)](_0x4d1c7d(0x1bc))},..._0x32b710});if(_0x5d7666===_0x4d1c7d(0x1bc))throw W();if(!_0x5d7666)throw p();};}async[_0x4b3ed8(0x1a6)]({action:_0x26fd59,signal:_0x35670f,prefer:_0x3c41d0}){const _0x21652c=_0x4b3ed8,_0x572bcc=await this[_0x21652c(0x208)](()=>this['services'][_0x21652c(0x1e0)]({'action':_0x26fd59,'signal':_0x35670f,'prefer':_0x3c41d0}));return{'choice':_0x572bcc,'payment':{'paymentChain':_0x572bcc[_0x21652c(0x11d)],'payWith':_0x572bcc[_0x21652c(0x24d)]}};}async[_0x4b3ed8(0x172)]({action:_0x26e410,signal:_0x53554c,current:_0xecee46}){const _0x2cf5fd=_0x4b3ed8;this[_0x2cf5fd(0x1a5)]({'busy':_0x2cf5fd(0x194)});const {networks:_0x5e4532}=await this[_0x2cf5fd(0x119)][_0x2cf5fd(0x133)]({'action':_0x26e410,'signal':_0x53554c}),_0xdca48e=_0x5e4532[_0x2cf5fd(0x19a)](_0x3c49e7=>(_0x3c49e7['options']??[])[_0x2cf5fd(0x227)](_0x2a254e=>_0x2a254e[_0x2cf5fd(0x189)])[_0x2cf5fd(0x21c)](_0x1ea94f=>({'paymentChain':_0x3c49e7[_0x2cf5fd(0x19c)],'payWith':_0x1ea94f[_0x2cf5fd(0x225)],'chainName':_0x3c49e7[_0x2cf5fd(0x219)],'option':_0x1ea94f})));return new Promise(_0xfb95f0=>{const _0x437f40=_0x2cf5fd,_0x4aec6d=_0xdca48e[_0x437f40(0x21c)](_0x35fef6=>({'label':A(_0x35fef6,_0xecee46),'run':()=>_0xfb95f0({'paymentChain':_0x35fef6[_0x437f40(0x11d)],'payWith':_0x35fef6[_0x437f40(0x24d)]})}));_0x4aec6d[_0x437f40(0x1e4)]||_0x4aec6d[_0x437f40(0x1f9)]({'label':_0x437f40(0x161),'run':()=>_0xfb95f0(_0xecee46)}),this['showMenu'](_0xdca48e['length']>0x1?_0x437f40(0x15e):'Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now',_0x4aec6d,{'onCancel':()=>_0xfb95f0(_0xecee46)});});}async['publishDraft'](){const _0x524c9a=_0x4b3ed8,_0x365942=await this[_0x524c9a(0x1ae)](_0x524c9a(0x194),async _0x40740c=>{const _0x215961=_0x524c9a,_0x5e4639=this[_0x215961(0x132)];_0x5e4639['requestKey']||Object[_0x215961(0x136)](_0x5e4639,await this[_0x215961(0x119)][_0x215961(0xd3)](_0x5e4639));const _0x2e8e61=_0x5e4639[_0x215961(0x12e)]?_0x215961(0x1b6):'job.open';let _0x2215a4;try{if(!_0x5e4639[_0x215961(0x10e)]){const _0x2ca4c0=await this[_0x215961(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x215961(0x1b4)]});_0x2215a4=_0x2ca4c0[_0x215961(0x21e)],_0x5e4639[_0x215961(0x1b4)]=_0x2ca4c0[_0x215961(0x1b4)];}}catch(_0x4e7d17){if(_0x4e7d17[_0x215961(0x17c)]!==_0x215961(0x23d))throw _0x4e7d17;return{'status':_0x215961(0x132),'setupWallet':await this[_0x215961(0x20d)]({'title':_0x215961(0x156),'lines':[_0x215961(0x181),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':'Open\x20Wallets','cancelLabel':'Back\x20to\x20My\x20tasks'}),'draftId':_0x5e4639['id']};}this[_0x215961(0x1a5)]({'busy':_0x215961(0x11b)});const _0x38884b=_0x5e4639[_0x215961(0x12e)]?await this[_0x215961(0x119)][_0x215961(0x209)]({'jobId':_0x5e4639[_0x215961(0x12e)]},_0x40740c):null,_0x35dc19=_0x5e4639['plan']??await this[_0x215961(0x119)][_0x215961(0x130)]({'objective':_0x5e4639[_0x215961(0x231)],'parent':_0x38884b,'signal':_0x40740c,'ask':_0xcd32c6=>this['ask'](_0xcd32c6),'onProgress':_0x4b76fd=>{const _0x4ef1bf=_0x215961;this['update'](_0x4b76fd[_0x4ef1bf(0x1fe)]===_0x4ef1bf(0x1b5)?{'busy':_0x4ef1bf(0x11b),'modelProgress':null}:{'busy':_0x4ef1bf(0x1ca),'modelProgress':_0x4b76fd});}});if(_0x40740c[_0x215961(0x115)](),!_0x35dc19[_0x215961(0x1ac)])throw new Error(_0x35dc19[_0x215961(0x218)][_0x215961(0x143)]('\x0a')||_0x215961(0x18b));_0x5e4639[_0x215961(0x130)]=_0x35dc19,_0x5e4639['requestKey']||Object['assign'](_0x5e4639,await this[_0x215961(0x119)]['saveDraft'](_0x5e4639)),this[_0x215961(0x1a5)]({'busy':_0x215961(0xfb)});let _0x3fbc14=!0x1;const _0x490c0a=async _0x1a3e18=>{const _0x2e58db=_0x215961;if(_0x3fbc14){const _0x555632=await this[_0x2e58db(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x2e58db(0x1b4)]});_0x2215a4=_0x555632[_0x2e58db(0x21e)],_0x5e4639[_0x2e58db(0x1b4)]=_0x555632['payment'],_0x1a3e18={..._0x1a3e18,'paymentChain':_0x5e4639[_0x2e58db(0x1b4)][_0x2e58db(0x11d)],'payWith':_0x5e4639['payment'][_0x2e58db(0x24d)],'expectedWallet':_0x2215a4[_0x2e58db(0x261)]},_0x3fbc14=!0x1;}try{return await this[_0x2e58db(0x119)]['publish'](_0x1a3e18);}catch(_0x537a33){throw _0x537a33[_0x2e58db(0x17c)]==='funding_required'&&_0x537a33[_0x2e58db(0x16c)]?.['canChangePayment']&&(_0x3fbc14=!0x0),_0x537a33;}};for(;;)try{const _0x5e1c63=await this['withFundingRetry'](()=>_0x490c0a({'input':_0x35dc19['input'],'action':_0x2e8e61,'paymentChain':_0x5e4639[_0x215961(0x1b4)]?.['paymentChain'],'payWith':_0x5e4639['payment']?.[_0x215961(0x24d)],'expectedWallet':_0x2215a4?.[_0x215961(0x261)],'requestKey':_0x5e4639[_0x215961(0x10e)]??_0x5e4639['id'],'onSaved':async _0x303180=>{const _0x47605e=_0x215961;_0x5e4639[_0x47605e(0x10e)]=_0x303180[_0x47605e(0x10e)],await this[_0x47605e(0x119)][_0x47605e(0xf4)](_0x5e4639['id']);},'plan':{'summary':_0x35dc19[_0x215961(0x1f6)],'deliverables':_0x35dc19[_0x215961(0x24a)]},'signal':_0x40740c,'chooseSupport':_0x4a6765=>this[_0x215961(0x1f5)](_0x4a6765),'onProgress':_0x4eac90=>this[_0x215961(0x178)](_0x4eac90),'confirmReplacement':_0x1d3806=>this[_0x215961(0x137)](_0x1d3806),'confirm':this[_0x215961(0x1d1)]()}));return this[_0x215961(0x10c)](_0x5e1c63),_0x5e1c63;}catch(_0x4a5346){if(_0x4a5346[_0x215961(0x17c)]!==_0x215961(0x13a))throw _0x4a5346;_0x5e4639[_0x215961(0x1b4)]=await this['pickPayment']({'action':_0x2e8e61,'signal':_0x40740c,'current':_0x5e4639['payment']}),this['update']({'busy':_0x215961(0x16d)});}});if(!this[_0x524c9a(0x229)]&&_0x365942?.[_0x524c9a(0x21d)]==='draft')await this['navigate'](_0x365942[_0x524c9a(0x24b)]?_0x524c9a(0x14b):_0x524c9a(0x157)),this[_0x524c9a(0x1a5)]({'notice':_0x524c9a(0xec)}),_0x365942[_0x524c9a(0x24b)]&&this[_0x524c9a(0x155)]();else{if(!this[_0x524c9a(0x229)]&&_0x365942?.['status']==='admitted'&&_0x365942['state'][_0x524c9a(0x226)]){await this['navigate'](_0x524c9a(0x157));const _0x190335=this[_0x524c9a(0x1a1)][_0x524c9a(0x184)][_0x524c9a(0x199)](_0x5a72ce=>_0x5a72ce['jobId']===_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]);_0x190335>=0x0&&(this[_0x524c9a(0x1a5)]({'selected':_0x190335}),await this[_0x524c9a(0x24c)]()),this['update']({'notice':'Task\x20published:\x20'+_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]});}}}[_0x4b3ed8(0x178)](_0xa98149){const _0x1e4e49=_0x4b3ed8,_0x3c252b=typeof _0xa98149?.[_0x1e4e49(0x235)]=='string'?_0xa98149['message'][_0x1e4e49(0x11c)]():'';_0x3c252b&&this[_0x1e4e49(0x1a5)]({'busy':_0x3c252b});}async[_0x4b3ed8(0x208)](_0xcf1e28){const _0x2e8b5e=_0x4b3ed8;for(;;)try{return await _0xcf1e28();}catch(_0x42c1ee){if(_0x42c1ee[_0x2e8b5e(0x17c)]!==_0x2e8b5e(0x1aa))throw _0x42c1ee;if(!await this[_0x2e8b5e(0x20d)]({'title':_0x2e8b5e(0x22f),'lines':_0x2a90a8(_0x42c1ee[_0x2e8b5e(0x16c)]),'acceptLabel':_0x2e8b5e(0x220),'cancelLabel':'Back','extraAction':{'label':'Add\x20funds','run':()=>this[_0x2e8b5e(0x175)](_0x42c1ee[_0x2e8b5e(0x16c)])}}))throw p();this['update']({'busy':_0x2e8b5e(0xfc)});}}[_0x4b3ed8(0x10c)]({state:_0x2dfb5f,status:_0x5becfd,check:_0x4f3cc3}){const _0x1bd5b1=_0x4b3ed8;if(_0x5becfd===_0x1bd5b1(0x1f2)&&_0x2dfb5f['jobId'])this['draft']=null,this[_0x1bd5b1(0x1a5)]({'notice':_0x1bd5b1(0x13e)+_0x2dfb5f[_0x1bd5b1(0x226)]+_0x1bd5b1(0x195)});else{if(_0x5becfd==='blocked')this[_0x1bd5b1(0x1a5)]({'error':'Not\x20paid.\x20'+_0x4f3cc3[_0x1bd5b1(0x125)][_0x1bd5b1(0x21c)](_0x5985be=>_0x5985be[_0x1bd5b1(0x209)]??_0x5985be['code'])[_0x1bd5b1(0x143)]('\x0a')});else{if(_0x5becfd===_0x1bd5b1(0x10d))this[_0x1bd5b1(0x1a5)]({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x2dfb5f['refusalProblems']??[])[_0x1bd5b1(0x21c)](_0x12d759=>_0x12d759['detail']??_0x12d759['code'])[_0x1bd5b1(0x143)]('\x0a')+_0x1bd5b1(0x233)+_0x2dfb5f['orderId']});else{if(S[_0x1bd5b1(0x145)](_0x5becfd)){const _0x4e16c3=[_0x1bd5b1(0x1c8),_0x1bd5b1(0x181),_0x1bd5b1(0x245)],_0x22112a=_0x2dfb5f?.[_0x1bd5b1(0x1b1)]??_0x2dfb5f?.[_0x1bd5b1(0x252)];_0x22112a?.[_0x1bd5b1(0x174)]&&_0x4e16c3['push'](_0x1bd5b1(0x167)+_0x22112a['hash']),_0x22112a?.['explorerUrl']&&_0x4e16c3[_0x1bd5b1(0x1f9)](_0x1bd5b1(0xdd)+_0x22112a[_0x1bd5b1(0x103)]),this['update']({'error':_0x4e16c3[_0x1bd5b1(0x143)]('\x0a')});}else this[_0x1bd5b1(0x1a5)]({'error':'Order\x20status:\x20'+_0x5becfd+_0x1bd5b1(0x16f)});}}}}async[_0x4b3ed8(0x201)](){const _0x24fcf5=_0x4b3ed8,_0x4afe08=this[_0x24fcf5(0x1c9)]();if(this[_0x24fcf5(0x1a1)]['view']===_0x24fcf5(0x157)&&_0x4afe08?.[_0x24fcf5(0x1cb)]){const _0x503b5b=await this[_0x24fcf5(0x1ae)](_0x24fcf5(0xe8),()=>this['services']['loadDraft'](_0x4afe08[_0x24fcf5(0x1cb)]));_0x503b5b&&(this['draft']=_0x503b5b,this[_0x24fcf5(0x192)]());return;}this['state']['view']!==_0x24fcf5(0x157)||!_0x4afe08?.[_0x24fcf5(0x10e)]||_0x4afe08[_0x24fcf5(0x226)]||!_0x4afe08[_0x24fcf5(0x253)]||(this[_0x24fcf5(0x132)]=null,await this['run'](_0x24fcf5(0xc2),async _0xec72c1=>{const _0x406207=_0x24fcf5;let _0x506a17,_0x250e9a,_0xba8368;if(_0x4afe08[_0x406207(0x210)]){const _0x11abea=await this[_0x406207(0x119)]['detail'](_0x4afe08,_0xec72c1);_0xba8368=_0x11abea[_0x406207(0x114)]??_0x406207(0xeb),this[_0x406207(0x1a5)]({'busy':_0x406207(0x194)}),_0x506a17=(await this['autoPayment']({'action':_0xba8368,'signal':_0xec72c1,'prefer':{'paymentChain':_0x11abea[_0x406207(0x11d)]??_0x406207(0x254),'payWith':_0x11abea[_0x406207(0x24d)]??'IMD'}}))[_0x406207(0x1b4)],_0x250e9a=this[_0x406207(0x1d1)]({'title':_0x406207(0x128)});}let _0x3db92a=!0x1;const _0x4fb7f2=async()=>{const _0x3cc211=_0x406207;_0x3db92a&&(_0x506a17=(await this[_0x3cc211(0x1a6)]({'action':_0xba8368,'signal':_0xec72c1,'prefer':_0x506a17}))['payment'],_0x3db92a=!0x1);try{return await this['services'][_0x3cc211(0xc9)](_0x4afe08,_0x2012dc=>this[_0x3cc211(0x20d)](_0x2012dc),_0xec72c1,_0x7c3242=>this[_0x3cc211(0x1f5)](_0x7c3242),_0x45f808=>this['showPaymentProgress'](_0x45f808),_0x740914=>this[_0x3cc211(0x137)](_0x740914),{'payment':_0x506a17,'review':_0x250e9a});}catch(_0x4d25a7){throw _0x4afe08[_0x3cc211(0x210)]&&_0x4d25a7[_0x3cc211(0x17c)]===_0x3cc211(0x1aa)&&_0x4d25a7['funding']?.[_0x3cc211(0xe0)]&&(_0x3db92a=!0x0),_0x4d25a7;}};for(;;)try{this[_0x406207(0x10c)](await this['withFundingRetry'](_0x4fb7f2));return;}catch(_0x3eb2e3){if(_0x3eb2e3['code']!=='change_payment')throw _0x3eb2e3;_0x506a17=await this[_0x406207(0x172)]({'action':_0xba8368,'signal':_0xec72c1,'current':_0x506a17}),this[_0x406207(0x1a5)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}['taskMenu'](){const _0x9ab71d=_0x4b3ed8,_0x1303bf=this[_0x9ab71d(0x1c9)]();if(this[_0x9ab71d(0x1a1)][_0x9ab71d(0xf2)]!==_0x9ab71d(0x157)||!_0x1303bf)return;const _0xd5203a=[{'label':_0x9ab71d(0x11f),'run':()=>this[_0x9ab71d(0x1a5)]({'focus':'detail','tab':_0x9ab71d(0x255),'scroll':0x0})}];_0x1303bf[_0x9ab71d(0x1cb)]?_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x19e),'run':()=>this[_0x9ab71d(0x201)]()},{'label':'Delete\x20draft','run':()=>this[_0x9ab71d(0x1ea)]()}):_0x1303bf[_0x9ab71d(0x226)]?(_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x15f),'run':()=>this[_0x9ab71d(0x138)]()},{'label':_0x9ab71d(0x164),'run':()=>this[_0x9ab71d(0x13d)]()}),_0x1303bf[_0x9ab71d(0x1a1)]===_0x9ab71d(0xd5)&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0xfa),'run':()=>this[_0x9ab71d(0xcd)]()})):_0x1303bf[_0x9ab71d(0x10e)]&&(_0x1303bf['canResume']&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x1303bf['canCancel']?_0x9ab71d(0x1b0):'Inspect\x20/\x20resume\x20saved\x20order','run':()=>this[_0x9ab71d(0x201)]()}),_0x1303bf[_0x9ab71d(0x210)]&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x1fb),'run':()=>this[_0x9ab71d(0x1e2)]()}),_0x1303bf['canDelete']&&_0xd5203a['push']({'label':'Delete\x20local\x20record','run':()=>this[_0x9ab71d(0x23c)]()})),this[_0x9ab71d(0x15d)](_0x9ab71d(0x251),_0xd5203a);}async[_0x4b3ed8(0x1ea)](){const _0x74f1a1=_0x4b3ed8,_0x3b0330=this[_0x74f1a1(0x1c9)]();if(!_0x3b0330?.[_0x74f1a1(0x1cb)]||!await this['confirm']({'title':'Delete\x20draft?','lines':[_0x3b0330[_0x74f1a1(0x1d7)]],'acceptLabel':_0x74f1a1(0x1a0),'cancelLabel':_0x74f1a1(0x18d)}))return;await this[_0x74f1a1(0x1ae)](_0x74f1a1(0xc3),()=>this[_0x74f1a1(0x119)][_0x74f1a1(0xf4)](_0x3b0330[_0x74f1a1(0x1cb)]))&&(this[_0x74f1a1(0x132)]?.['id']===_0x3b0330[_0x74f1a1(0x1cb)]&&(this['draft']=null),await this[_0x74f1a1(0x1dd)]());}async[_0x4b3ed8(0x1e2)](){const _0x4176d5=_0x4b3ed8,_0x5c5f6c=this[_0x4176d5(0x1c9)]();if(this['state'][_0x4176d5(0xf2)]!==_0x4176d5(0x157)||!_0x5c5f6c?.['canCancel'])return;let _0xd4a703=!0x1;await this[_0x4176d5(0x1ae)](_0x4176d5(0xe7),async()=>{const _0xf63fdb=_0x4176d5;await this[_0xf63fdb(0x20d)]({'title':_0xf63fdb(0xf5),'lines':[_0x5c5f6c[_0xf63fdb(0x1d7)],'',_0xf63fdb(0xdf),_0xf63fdb(0x1af),'You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.'],'acceptLabel':_0xf63fdb(0x1fb),'cancelLabel':_0xf63fdb(0x21b)})&&(await this[_0xf63fdb(0x119)][_0xf63fdb(0x205)](_0x5c5f6c),_0xd4a703=!0x0);}),_0xd4a703&&!this[_0x4176d5(0x229)]&&(await this[_0x4176d5(0x1dd)](),this['update']({'notice':_0x4176d5(0x1e9)}));}async[_0x4b3ed8(0x23c)](){const _0x4b2d29=_0x4b3ed8,_0x502e9b=this['selected']();if(this[_0x4b2d29(0x1a1)]['view']!=='tasks'||!_0x502e9b?.[_0x4b2d29(0x186)])return;let _0x3dfd3a=!0x1;await this['run'](_0x4b2d29(0x12f),async()=>{const _0x384a0e=_0x4b2d29;await this[_0x384a0e(0x119)]['delete'](_0x502e9b),_0x3dfd3a=!0x0;}),_0x3dfd3a&&!this[_0x4b2d29(0x229)]&&(await this['refresh'](),this[_0x4b2d29(0x1a5)]({'notice':_0x4b2d29(0x193)}));}[_0x4b3ed8(0x13d)](){const _0x251ca=_0x4b3ed8,_0x344d9b=this[_0x251ca(0x1c9)]();_0x344d9b?.['jobId']&&this[_0x251ca(0x1e3)](_0x251ca(0x20b),[{'name':_0x251ca(0x100),'label':_0x251ca(0x179),'value':_0x251ca(0x1dc)+_0x344d9b[_0x251ca(0x226)]}],async({out:_0x36e3b6})=>{const _0x46166b=_0x251ca;if(!_0x36e3b6[_0x46166b(0x11c)]())throw new Error(_0x46166b(0xbe));this[_0x46166b(0x1a5)]({'form':null}),await this[_0x46166b(0x1ae)]('Downloading\x20verified\x20files...',async _0x4270c3=>{const _0x5916f3=_0x46166b,_0x3ea1ed=await this[_0x5916f3(0x119)][_0x5916f3(0x13d)]({'id':_0x344d9b[_0x5916f3(0x226)],'out':_0x36e3b6,'signal':_0x4270c3,'onProgress':_0x23a3da=>this[_0x5916f3(0x1a5)]({'busy':_0x5916f3(0x1e7)+_0x23a3da['path']})});this[_0x5916f3(0x1a5)]({'notice':_0x5916f3(0x1e7)+_0x3ea1ed[_0x5916f3(0x138)]['length']+_0x5916f3(0x196)+_0x36e3b6});});},{'submit':_0x251ca(0x17d)});}[_0x4b3ed8(0xcb)](){const _0x460802=_0x4b3ed8;this[_0x460802(0x1e3)]('Add\x20a\x20worker\x20target',[{'name':'host','label':_0x460802(0xdb)},{'name':_0x460802(0x1f1),'label':_0x460802(0x21f),'value':'22'},{'name':_0x460802(0x200),'label':'SSH\x20identity\x20file\x20(optional)'}],async _0x113579=>{const _0x572b4b=_0x460802,_0x29f02c=_0x5b065c(_0x113579);this['extraTargets'][_0x572b4b(0x23e)](_0x551f53=>_0x551f53['id']===_0x29f02c['id'])||this[_0x572b4b(0x118)][_0x572b4b(0x1f9)](_0x29f02c),this[_0x572b4b(0x1a5)]({'form':null}),await this[_0x572b4b(0x1dd)](),this['update']({'selected':this[_0x572b4b(0x1a1)][_0x572b4b(0x184)][_0x572b4b(0x199)](_0x439e44=>_0x439e44['id']===_0x29f02c['id'])}),await this['loadDetail']();},{'submit':_0x460802(0x147)});}[_0x4b3ed8(0x15d)](_0x3224bf,_0x3e129b,{onCancel:_0x26c1db,selected:_0x181dc4=0x0}={}){const _0x3f1ca5=_0x4b3ed8;this[_0x3f1ca5(0x1ba)](),this['menuCancel']=_0x26c1db??null,this[_0x3f1ca5(0x1a5)]({'menu':{'title':_0x3224bf,'items':_0x3e129b,'selected':_0x181dc4},'form':null});}[_0x4b3ed8(0x1f5)](_0x36286f){return new Promise((_0x3efa36,_0x3c49b5)=>{const _0x19febc=_0x4052;this[_0x19febc(0x15d)](_0x19febc(0x152),_0x36286f[_0x19febc(0x21c)]((_0x250fa3,_0x3b69bf)=>({'label':_0x250fa3[_0x19febc(0x170)],'run':()=>_0x3efa36(_0x3b69bf)})),{'onCancel':()=>_0x3c49b5(p()),'selected':_0x714d5c});});}['dismissMenu'](){const _0xe910bd=_0x4b3ed8,_0x15999a=this['menuCancel'];this['menuCancel']=null,this[_0xe910bd(0x1a5)]({'menu':null}),_0x15999a?.();}[_0x4b3ed8(0x1d4)](){const _0x25e621=_0x4b3ed8,_0x9020fc=this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x184)][this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x1c9)]];this[_0x25e621(0x1bb)]=null,this['update']({'menu':null}),_0x9020fc[_0x25e621(0x1ae)]();}['workerMenu'](){const _0x125dab=_0x4b3ed8,_0x58c5a0=this[_0x125dab(0x1c9)]();if(!_0x58c5a0||_0x58c5a0[_0x125dab(0x131)]===_0x125dab(0x116))return;const _0x2355e0=(_0x11e63a,_0x3e3344=!0x1)=>()=>this[_0x125dab(0x1d9)](_0x11e63a,_0x3e3344),_0x1d2655=(_0x2723ee,_0x324e21,_0x24d28d,_0x526a0d,_0x40233b=!0x1)=>()=>this[_0x125dab(0x1e3)](_0x2723ee,[{'name':_0x24d28d,'label':_0x526a0d}],_0x379fbe=>{const _0x1f7f5e=_0x125dab;if(!_0x379fbe[_0x24d28d][_0x1f7f5e(0x11c)]())throw new Error(_0x526a0d+_0x1f7f5e(0x16e));return this[_0x1f7f5e(0x1a5)]({'form':null}),this[_0x1f7f5e(0x1d9)](_0x324e21[_0x1f7f5e(0x1c3)](_0x379fbe[_0x24d28d]['trim']()),_0x40233b);});this[_0x125dab(0x15d)](_0x125dab(0x12b)+_0x58c5a0[_0x125dab(0x1d7)],[{'label':_0x125dab(0x146),'run':_0x2355e0([_0x125dab(0x21d)])},{'label':_0x125dab(0x129),'run':_0x2355e0([_0x125dab(0x23b)])},{'label':_0x125dab(0xe9),'run':_0x2355e0(['doctor'])},{'label':_0x125dab(0xee),'run':_0x2355e0([_0x125dab(0x102)])},{'label':_0x125dab(0x249),'run':_0x2355e0([_0x125dab(0xd6)],!0x0)},{'label':_0x125dab(0x1ce),'run':_0x2355e0([_0x125dab(0x22a)],!0x0)},{'label':_0x125dab(0x18a),'run':_0x2355e0([_0x125dab(0x1eb)],!0x0)},{'label':'Install\x20background\x20service','run':()=>this[_0x125dab(0x104)]()},...['start',_0x125dab(0x248),_0x125dab(0x154),_0x125dab(0x1a5)][_0x125dab(0x21c)](_0x3efb5f=>({'label':_0x3efb5f[0x0][_0x125dab(0xff)]()+_0x3efb5f['slice'](0x1),'run':_0x2355e0([_0x3efb5f],!0x0)})),{'label':'Skills','run':()=>this[_0x125dab(0x15d)]('Worker\x20skills',[{'label':_0x125dab(0x10f),'run':_0x2355e0([_0x125dab(0x242),_0x125dab(0xf0)])},{'label':_0x125dab(0x1ff),'run':_0x1d2655(_0x125dab(0x1ff),[_0x125dab(0x242),'add'],'id',_0x125dab(0x149))},{'label':'Remove\x20skill','run':_0x1d2655(_0x125dab(0xd4),[_0x125dab(0x242),'remove'],'id',_0x125dab(0x149))}])},{'label':_0x125dab(0x127),'run':()=>this['showMenu'](_0x125dab(0x256),[{'label':_0x125dab(0x1ed),'run':_0x2355e0([_0x125dab(0x260),_0x125dab(0xf0)])},{'label':'Add\x20tool','run':_0x2355e0([_0x125dab(0x260),'add'],!0x0)},{'label':_0x125dab(0x232),'run':_0x1d2655(_0x125dab(0xea),[_0x125dab(0x260),_0x125dab(0x19c)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x117),'run':_0x1d2655(_0x125dab(0x117),['tools',_0x125dab(0x140)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x171),'run':_0x1d2655('Remove\x20tool',[_0x125dab(0x260),'remove'],'id',_0x125dab(0x22b))}])},{'label':_0x125dab(0xc5),'run':()=>this[_0x125dab(0x15d)]('Worker\x20RPC\x20endpoints',[{'label':'List\x20RPC\x20endpoints','run':_0x2355e0([_0x125dab(0x10b),_0x125dab(0xf0)])},{'label':_0x125dab(0x139),'run':_0x1d2655(_0x125dab(0x142),[_0x125dab(0x10b),'add'],_0x125dab(0x11e),_0x125dab(0x18f),!0x0)},{'label':'Remove\x20RPC\x20endpoint','run':_0x1d2655(_0x125dab(0xfe),['rpc',_0x125dab(0xd1)],_0x125dab(0x11e),_0x125dab(0x18f))}])},{'label':_0x125dab(0x1fc),'run':_0x2355e0([_0x125dab(0x241)],!0x0)}]);}[_0x4b3ed8(0x104)](){const _0x28abe7=_0x4b3ed8;this[_0x28abe7(0x1e3)](_0x28abe7(0x258),[{'name':_0x28abe7(0x217),'label':_0x28abe7(0x188),'value':_0x28abe7(0x1fd)},{'name':_0x28abe7(0xfd),'label':_0x28abe7(0x15a),'value':'1'},{'name':_0x28abe7(0x173),'label':_0x28abe7(0x1f3),'value':'no'}],async({runtime:_0x13675c,concurrency:_0x31beeb,boot:_0x37ecd6})=>{const _0x50e7b6=_0x28abe7;if(![_0x50e7b6(0x1fd),_0x50e7b6(0x1c7)][_0x50e7b6(0x223)](_0x13675c))throw new Error(_0x50e7b6(0x12a));if(!/^[1-4]$/['test'](_0x31beeb))throw new Error(_0x50e7b6(0x1c4));if(![_0x50e7b6(0x207),'no']['includes'](_0x37ecd6))throw new Error(_0x50e7b6(0x247));const _0x4e8cc5=[_0x50e7b6(0x1d3),_0x50e7b6(0x206),_0x50e7b6(0x1df),_0x13675c,'--concurrency',_0x31beeb];_0x37ecd6===_0x50e7b6(0x207)&&_0x4e8cc5[_0x50e7b6(0x1f9)](_0x50e7b6(0x20c)),this[_0x50e7b6(0x1a5)]({'form':null}),await this[_0x50e7b6(0x1d9)](_0x4e8cc5,!0x0);});}async[_0x4b3ed8(0x1d9)](_0x5cf115,_0x5e8208=!0x1){const _0x21394e=_0x4b3ed8,_0x22f2b4=this[_0x21394e(0x1c9)]();!_0x22f2b4||_0x22f2b4[_0x21394e(0x131)]===_0x21394e(0x116)||await this[_0x21394e(0x1ae)](_0x21394e(0xda)+_0x5cf115[_0x21394e(0x143)]('\x20')+_0x21394e(0x122),async _0x4b3a57=>{const _0x420522=_0x21394e;if(_0x5e8208){if(!await this['confirm']({'title':_0x420522(0x1a4)+_0x22f2b4[_0x420522(0x1d7)]+'?','lines':['colony\x20worker\x20'+_0x5cf115[_0x420522(0x143)]('\x20'),_0x420522(0xc1)]}))return;await this[_0x420522(0x23f)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4),this[_0x420522(0x1a5)]({'notice':_0x420522(0xbd)});}else{const _0x4c04bf=await this[_0x420522(0x119)][_0x420522(0x158)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4,_0x4b3a57);this['update']({'detail':{'output':_0x4c04bf},'focus':_0x420522(0x209),'scroll':0x0});}});}[_0x4b3ed8(0x15b)](_0x579da7){return new Promise((_0x5e7e61,_0x5f70f0)=>{const _0x35826b=_0x4052;this[_0x35826b(0x1c6)]=_0x5f70f0,this['showForm'](_0x35826b(0x14a),[{'name':_0x35826b(0x262),'label':_0x579da7,'secret':!0x0}],({password:_0x4facae})=>{const _0x3124f9=_0x35826b;this[_0x3124f9(0x1a5)]({'form':null}),this['passwordReject']=null,_0x5e7e61(_0x4facae);},{'submit':_0x35826b(0x144),'onCancel':()=>{const _0x389c9b=_0x35826b;this[_0x389c9b(0x1c6)]=null,_0x5f70f0(new Error(_0x389c9b(0x25c)));}});});}[_0x4b3ed8(0x259)](){const _0x30fba1=_0x4b3ed8,_0x4d7338=this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.['source']===_0x30fba1(0x198);this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]&&this['showMenu'](_0x30fba1(0x203),[...!this[_0x30fba1(0x1bf)]()&&this[_0x30fba1(0x1c9)]()?[{'label':_0x30fba1(0x236),'run':()=>this[_0x30fba1(0x176)]()}]:[],..._0x4d7338?[{'label':_0x30fba1(0xbc),'run':()=>this['walletPrivateKey']()},{'label':_0x30fba1(0x257),'run':()=>this[_0x30fba1(0x1bd)]()},{'label':'Delete\x20wallet','run':()=>this[_0x30fba1(0xe5)]()}]:[],...this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x30fba1(0x25f)]()}]:[]]);}[_0x4b3ed8(0x155)](){const _0x301f19=_0x4b3ed8;this[_0x301f19(0x15d)]('Wallet\x20management\x20\xB7\x20all\x20wallets',[{'label':'Create\x20a\x20new\x20local\x20wallet','run':()=>this[_0x301f19(0x14f)](!0x1)},{'label':_0x301f19(0x180),'run':()=>this['walletImport']()}]);}[_0x4b3ed8(0x16a)](){const _0x4cf061=_0x4b3ed8;this[_0x4cf061(0x15d)](_0x4cf061(0x180),[{'label':_0x4cf061(0x215),'run':()=>this[_0x4cf061(0x14f)](!0x0)},{'label':_0x4cf061(0xf1),'run':()=>this['walletRestore']()}]);}['walletIsCurrent'](){const _0x538b6d=_0x4b3ed8;return!this['selected']()||this[_0x538b6d(0x1c9)]()['address']===this[_0x538b6d(0x1a1)][_0x538b6d(0x261)];}async[_0x4b3ed8(0xe5)](){const _0x45df3d=_0x4b3ed8,_0x154d8c=this[_0x45df3d(0x1c9)]()?.['address']??this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x261)];if(this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x263)]!=='local'||!_0x154d8c||!await this[_0x45df3d(0x20d)]({'title':_0x45df3d(0x1da),'lines':[_0x154d8c,_0x45df3d(0x20e),_0x45df3d(0x17f)],'acceptLabel':_0x45df3d(0x144),'cancelLabel':'Keep\x20wallet'})||!await this[_0x45df3d(0x20d)]({'title':'Delete\x20wallet\x20\xB7\x202\x20of\x202','lines':[_0x154d8c,'The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.',_0x45df3d(0x185)],'acceptLabel':_0x45df3d(0x1e8),'cancelLabel':'Keep\x20wallet'}))return;const _0x5eaa8c=await this[_0x45df3d(0x1ae)](_0x45df3d(0x1c0),()=>this[_0x45df3d(0x119)][_0x45df3d(0xe6)](_0x154d8c));_0x5eaa8c&&(await this[_0x45df3d(0xd9)](_0x5eaa8c[_0x45df3d(0x1cf)]),this[_0x45df3d(0x1a5)]({'notice':_0x45df3d(0xc0)+_0x154d8c}));}['walletPrivateKey'](){const _0x239576=_0x4b3ed8,_0x4f6bd0=this[_0x239576(0x1c9)]()?.['address']??this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x261)];this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x263)]!==_0x239576(0x198)||!_0x4f6bd0||this['showForm'](_0x239576(0x1cd),[{'name':_0x239576(0x262),'label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x275f5c})=>{const _0x198861=_0x239576;this[_0x198861(0x1a5)]({'form':null});const _0x3ada62=await this[_0x198861(0x1ae)]('Checking\x20wallet\x20password...',_0xe9a86e=>this[_0x198861(0x119)]['revealPrivateKey'](_0x4f6bd0,_0x275f5c,_0xe9a86e));_0x3ada62&&this[_0x198861(0x1a5)]({'privateKeyView':_0x3ada62});},{'submit':_0x239576(0xbc)});}async[_0x4b3ed8(0xd9)](_0x5883d5){const _0xb89e89=_0x4b3ed8;this['update']({'selected':-0x1}),this[_0xb89e89(0x24f)]=_0x5883d5,await this[_0xb89e89(0x1dd)]();}async[_0x4b3ed8(0x176)](){const _0x43695e=_0x4b3ed8,_0x54ad26=this[_0x43695e(0x1c9)]();if(!_0x54ad26||this[_0x43695e(0x1bf)]())return;const _0x4925c9=await this[_0x43695e(0x1ae)]('Switching\x20wallet...',()=>this[_0x43695e(0x119)][_0x43695e(0x1e5)](_0x54ad26[_0x43695e(0x261)]));_0x4925c9&&(await this[_0x43695e(0x1dd)](),this['update']({'notice':_0x43695e(0xef)+_0x4925c9['address']}));}[_0x4b3ed8(0x14f)](_0xb930ca){const _0x4e69cd=_0x4b3ed8,_0x379092=this['services'][_0x4e69cd(0x134)]()[_0x4e69cd(0x1e4)]>0x0||this[_0x4e69cd(0x1a1)][_0x4e69cd(0x209)]?.[_0x4e69cd(0x263)]===_0x4e69cd(0x198),_0x1d3636=async({key:_0x4dc0cb,password:_0x5bad9b,repeat:_0x311b4a})=>{const _0x17dfd1=_0x4e69cd;if(!_0x379092){if(_0x5bad9b!==_0x311b4a)throw new Error(_0x17dfd1(0x20f));if(_0x5bad9b['length']<0x8)throw new Error(_0x17dfd1(0x106));}this['update']({'form':null});const _0x56403d=await this[_0x17dfd1(0x1ae)](_0x17dfd1(0xdc),_0x613524=>this[_0x17dfd1(0x119)][_0x17dfd1(0x197)](_0x5bad9b,_0x4dc0cb,_0x613524));_0x56403d&&(await this[_0x17dfd1(0xd9)](_0x56403d[_0x17dfd1(0x261)]),this['update']({'notice':'Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.'}));};if(_0x379092&&!_0xb930ca)return _0x1d3636({});this[_0x4e69cd(0x1e3)](_0xb930ca?'Import\x20private\x20key\x20\xB7\x20encrypted\x20locally':_0x4e69cd(0x19d),[..._0xb930ca?[{'name':_0x4e69cd(0x19c),'label':'Private\x20key\x20(hidden)','secret':!0x0}]:[],..._0x379092?[]:[{'name':_0x4e69cd(0x262),'label':_0x4e69cd(0x22d),'secret':!0x0},{'name':_0x4e69cd(0x13c),'label':'Confirm\x20password','secret':!0x0}]],_0x1d3636,{'submit':_0xb930ca?_0x4e69cd(0x180):'Create\x20wallet'});}[_0x4b3ed8(0xe3)](){const _0xceac38=_0x4b3ed8;this[_0xceac38(0x1e3)]('Restore\x20encrypted\x20wallet',[{'name':_0xceac38(0x105),'label':'Backup\x20file\x20path'},{'name':_0xceac38(0x262),'label':'Backup\x20password','secret':!0x0}],async({file:_0x423bd4,password:_0x491a8c})=>{const _0x3306a9=_0xceac38;this[_0x3306a9(0x1a5)]({'form':null});const _0xfa940=await this[_0x3306a9(0x1ae)](_0x3306a9(0x221),_0x31b653=>this[_0x3306a9(0x119)][_0x3306a9(0x246)](_0x423bd4,_0x491a8c,_0x31b653));_0xfa940&&await this[_0x3306a9(0xd9)](_0xfa940[_0x3306a9(0x261)]);},{'submit':_0xceac38(0x1f0)});}['walletBackup'](){const _0x3190e2=_0x4b3ed8,_0x1ec435=this[_0x3190e2(0x1c9)]()?.[_0x3190e2(0x261)]??this['state']['detail']?.[_0x3190e2(0x261)];_0x1ec435&&this[_0x3190e2(0x1e3)](_0x3190e2(0x257),[{'name':'out','label':_0x3190e2(0x1f7)}],async({out:_0x159a55})=>{const _0x350125=_0x3190e2;this['update']({'form':null});const _0x487909=await this[_0x350125(0x1ae)](_0x350125(0x19b),()=>this[_0x350125(0x119)]['backupWallet'](_0x159a55,_0x1ec435));_0x487909&&this['update']({'notice':_0x350125(0x14d)+_0x487909[_0x350125(0x165)]+_0x350125(0xcf)});},{'submit':'Save\x20backup'});}async['walletReceive'](){const _0x3b48ad=_0x4b3ed8,_0x22b34e=this[_0x3b48ad(0x1c9)]()?.[_0x3b48ad(0x261)]??this[_0x3b48ad(0x1a1)][_0x3b48ad(0x209)]?.['address'];_0x22b34e&&await this[_0x3b48ad(0x1ae)](_0x3b48ad(0x1ab),async()=>{const _0x16f1eb=_0x3b48ad;this[_0x16f1eb(0x1a5)]({'receive':await this[_0x16f1eb(0x119)]['receiveWallet'](_0x22b34e)});});}[_0x4b3ed8(0x175)](_0x51f8b5){const _0x2ea244=_0x4b3ed8,_0x52c1e2=_0x11d6f7(_0x51f8b5)['filter'](_0x3695b1=>!_0x3695b1[_0x2ea244(0x190)]);if(_0x52c1e2['length']<=0x1)return this['fundingReceive'](_0x51f8b5,_0x52c1e2[0x0]??_0x11d6f7(_0x51f8b5)[0x0]);const _0x809383={'dialog':this[_0x2ea244(0x1a1)]['confirm'],'scroll':this[_0x2ea244(0x1a1)][_0x2ea244(0x25a)]};this[_0x2ea244(0x1a5)]({'confirm':null}),this['showMenu'](_0x2ea244(0x1be),_0x52c1e2[_0x2ea244(0x21c)](_0xf7b805=>({'label':_0x28df1c(_0xf7b805),'run':()=>this[_0x2ea244(0xc4)](_0x51f8b5,_0xf7b805,_0x809383)})),{'onCancel':()=>this['update']({'confirm':_0x809383['dialog'],'scroll':_0x809383[_0x2ea244(0x25a)]})});}async[_0x4b3ed8(0xc4)](_0x12c7ef,_0x199e0e,_0x541cb6){const _0x514158=_0x4b3ed8,_0x555183=_0x541cb6?.['dialog']??this[_0x514158(0x1a1)][_0x514158(0x20d)],_0x4ec28e=_0x541cb6?.[_0x514158(0x25a)]??this[_0x514158(0x1a1)][_0x514158(0x25a)];try{const _0x5ac9d4=await this['services'][_0x514158(0x243)](_0x12c7ef[_0x514158(0x261)],_0x199e0e[_0x514158(0x19c)]);this['fundingDialog']={'dialog':_0x555183,'scroll':_0x4ec28e},this[_0x514158(0x1a5)]({'confirm':null,'receive':{..._0x5ac9d4,'targets':_0x3746eb(_0x199e0e)},'scroll':0x0,'error':null,'notice':null});}catch(_0x1d4242){this[_0x514158(0x1a5)]({'error':_0x1d4242['message'],..._0x541cb6?{'confirm':_0x555183,'scroll':_0x4ec28e}:{}});}}[_0x4b3ed8(0x1b3)](){const _0x359aff=_0x4b3ed8,_0x4a2c77=this['fundingDialog'];this[_0x359aff(0x1cc)]=null,this['update']({'receive':null,..._0x4a2c77?{'confirm':_0x4a2c77[_0x359aff(0x17b)],'scroll':_0x4a2c77[_0x359aff(0x25a)]}:{}});}[_0x4b3ed8(0x1b9)](){const _0x3ac86d=_0x4b3ed8,_0x53603c=this[_0x3ac86d(0x1a1)][_0x3ac86d(0x1d0)][_0x3ac86d(0x261)];this['showForm']('Save\x20recharge\x20QR\x20code',[{'name':_0x3ac86d(0x100),'label':'New\x20SVG\x20file\x20path','placeholder':_0x3ac86d(0x214)}],async({out:_0x1228e0})=>{const _0x2abcf7=_0x3ac86d,_0x371b5c=await this[_0x2abcf7(0x119)][_0x2abcf7(0x1db)](_0x53603c,_0x1228e0);this[_0x2abcf7(0x1a5)]({'form':null,'notice':_0x2abcf7(0x151)+_0x371b5c[_0x2abcf7(0x165)]});},{'submit':_0x3ac86d(0x1a9)});}['close'](){const _0x425672=_0x4b3ed8;clearTimeout(this[_0x425672(0x204)]),this['menuCancel']?.(),this[_0x425672(0x1bb)]=null,this[_0x425672(0x1c6)]?.(new Error(_0x425672(0xf3))),this['passwordReject']=null,_0x3ec757(),this[_0x425672(0x1a5)]({'form':null,'privateKeyView':null}),this['closed']=!0x0,this['operation']?.[_0x425672(0xc8)](),this[_0x425672(0x212)]?.[_0x425672(0xc8)](),this[_0x425672(0x1fa)]?.[_0x425672(0xc8)](),this['confirmResolve']?.(!0x1),this[_0x425672(0x1cc)]=null,this[_0x425672(0x250)]?.([]),++this[_0x425672(0x15c)],this[_0x425672(0x1d5)][_0x425672(0x234)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
@@ -1 +1 @@
1
- import{fork as _0x1e2df0}from'node:child_process';import{createServices as _0x1957b0}from'./services.mjs';import{selectedPaymentNetwork as _0x58e941}from'../lib/payment-networks.mjs';function d(_0x31a1aa,_0x1740d3){return new Promise((_0x48bf8e,_0x49b080)=>{const _0x509027=_0x5981,_0x4bb7e7=_0x1e2df0(new URL('./session.mjs',import.meta.url),[],{'stdio':[_0x509027(0xc7),_0x509027(0xc7),'inherit',_0x509027(0xca)],'windowsHide':!0x0});let _0x2bc03e;_0x4bb7e7['on'](_0x509027(0xce),_0xd78efa=>{_0x2bc03e=_0xd78efa['handoff'];}),_0x4bb7e7['on'](_0x509027(0xda),_0x49b080),_0x4bb7e7['on'](_0x509027(0xc9),(_0x52c3eb,_0x248c8)=>{const _0x2cca45=_0x509027;_0x52c3eb!==0x0?_0x49b080(new Error(_0x2cca45(0xdb)+(_0x248c8??_0x2cca45(0xd8)+_0x52c3eb)+'.')):_0x48bf8e(_0x2bc03e);}),_0x4bb7e7[_0x509027(0xd6)]({'options':_0x31a1aa,'restore':_0x1740d3});});}async function y(_0x3c59c7,_0x3b2970={}){const _0x5d0402=_0x5981;if(!process[_0x5d0402(0xd9)][_0x5d0402(0xcc)]||!process[_0x5d0402(0xcf)][_0x5d0402(0xcc)]||_0x3c59c7[_0x5d0402(0xd0)])throw new Error('The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.');_0x3c59c7[_0x5d0402(0xd5)]=(await _0x58e941(_0x3c59c7))[_0x5d0402(0xd1)];const _0x3f2546=_0x3b2970[_0x5d0402(0xd2)]??_0x1957b0(_0x3c59c7,_0x3b2970);let _0x5e6c13;for(;;){const _0x51e515=await d(_0x3c59c7,_0x5e6c13);if(!_0x51e515)return;_0x3c59c7[_0x5d0402(0xd5)]=_0x51e515[_0x5d0402(0xd5)],_0x5e6c13=_0x51e515[_0x5d0402(0xcd)];try{await _0x3f2546[_0x5d0402(0xd3)](_0x51e515[_0x5d0402(0xcb)],_0x51e515[_0x5d0402(0xc8)]),_0x5e6c13[_0x5d0402(0xd4)]=_0x5d0402(0xd7);}catch(_0x22e2bd){_0x5e6c13[_0x5d0402(0xda)]=_0x22e2bd[_0x5d0402(0xce)];}}}export{y as startDashboard};function _0x5981(_0x2f6414,_0x265820){_0x2f6414=_0x2f6414-0xc7;const _0x5981e4=_0x2658();let _0x9a4b6e=_0x5981e4[_0x2f6414];return _0x9a4b6e;}function _0x2658(){const _0x28605b=['inherit','target','exit','ipc','args','isTTY','restore','message','stdout','json','key','services','interactive','notice','paymentChain','send','Command\x20finished.\x20Press\x20r\x20to\x20refresh.','code\x20','stdin','error','Dashboard\x20exited\x20with\x20'];_0x2658=function(){return _0x28605b;};return _0x2658();}
1
+ function _0x164e(){const _0x24f188=['send','paymentChain','Command\x20finished.\x20Press\x20r\x20to\x20refresh.','services','isTTY','Dashboard\x20exited\x20with\x20','The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.','args','error','notice','exit','message','inherit','restore','code\x20','json','ipc','stdout'];_0x164e=function(){return _0x24f188;};return _0x164e();}function _0x77b3(_0x3634d4,_0x164eb5){_0x3634d4=_0x3634d4-0x69;const _0x77b331=_0x164e();let _0x14129a=_0x77b331[_0x3634d4];return _0x14129a;}import{fork as _0x349c21}from'node:child_process';import{createServices as _0x5c97b2}from'./services.mjs';function d(_0x2115f8,_0x8f0a06){return new Promise((_0x28bbdd,_0x3356da)=>{const _0x2a65cc=_0x77b3,_0x1ced81=_0x349c21(new URL('./session.mjs',import.meta.url),[],{'stdio':['inherit','inherit',_0x2a65cc(0x75),_0x2a65cc(0x79)],'windowsHide':!0x0});let _0x5a8744;_0x1ced81['on'](_0x2a65cc(0x74),_0x1a3649=>{_0x5a8744=_0x1a3649['handoff'];}),_0x1ced81['on'](_0x2a65cc(0x71),_0x3356da),_0x1ced81['on'](_0x2a65cc(0x73),(_0x1a6681,_0x2aa107)=>{const _0x240c29=_0x2a65cc;_0x1a6681!==0x0?_0x3356da(new Error(_0x240c29(0x6e)+(_0x2aa107??_0x240c29(0x77)+_0x1a6681)+'.')):_0x28bbdd(_0x5a8744);}),_0x1ced81[_0x2a65cc(0x69)]({'options':_0x2115f8,'restore':_0x8f0a06});});}async function w(_0xf4d111,_0x121bf7={}){const _0x703f1f=_0x77b3;if(!process['stdin'][_0x703f1f(0x6d)]||!process[_0x703f1f(0x7a)][_0x703f1f(0x6d)]||_0xf4d111[_0x703f1f(0x78)])throw new Error(_0x703f1f(0x6f));const _0x46c0be=_0x121bf7[_0x703f1f(0x6c)]??_0x5c97b2(_0xf4d111,_0x121bf7);let _0x4fce3c;for(;;){const _0x17cd56=await d(_0xf4d111,_0x4fce3c);if(!_0x17cd56)return;_0xf4d111['paymentChain']=_0x17cd56[_0x703f1f(0x6a)],_0x4fce3c=_0x17cd56[_0x703f1f(0x76)];try{await _0x46c0be['interactive'](_0x17cd56[_0x703f1f(0x70)],_0x17cd56['target']),_0x4fce3c[_0x703f1f(0x72)]=_0x703f1f(0x6b);}catch(_0x90d702){_0x4fce3c[_0x703f1f(0x71)]=_0x90d702[_0x703f1f(0x74)];}}}export{w as startDashboard};