supercolony 0.1.7 → 0.1.8
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/README.md +4 -1
- package/dist/commands/order.mjs +1 -1
- package/dist/commands/task.mjs +1 -1
- package/dist/lib/orders.mjs +1 -1
- package/dist/lib/task-link.mjs +1 -0
- package/dist/tui/app.mjs +1 -1
- package/dist/tui/controller.mjs +1 -1
- package/dist/tui/presentation.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ colony --ascii
|
|
|
25
25
|
|
|
26
26
|
If this computer has no wallet yet, launching the dashboard first offers **1. Create a new wallet** (the default; you set a local password and confirm it) or **2. Not now** (browse without a wallet; Esc does the same). The new wallet is empty; press `b` to back it up and `d` to add funds. The offer appears on each launch until a wallet exists.
|
|
27
27
|
|
|
28
|
-
The dashboard has **My tasks**, **Explore**, **Workers** and **Wallets** at the top.
|
|
28
|
+
The dashboard has **My tasks**, **Explore**, **Workers** and **Wallets** at the top. Terminals at least 80 columns wide show a list and details side by side; below 80 columns, Enter opens details and Esc returns to the list. Use an interactive terminal at least 40 columns by 20 rows. `--ascii` uses ordinary ASCII borders. Special fonts, WSL and a browser are not required.
|
|
29
29
|
|
|
30
30
|
Panel actions stay visible along the bottom of their frame. Task lists contain New task, Search and Refresh; My tasks also has Filter. The Workers list contains Add target, Search and Refresh, while the selected worker's actions stay in its details pane. Wallet actions and Refresh belong to the selected wallet; New, Import, Manage and Receive funds remain in Wallet management. Selection and Enter/Tab hints stay in the list; return, scrolling and detail-tab hints stay in the details pane. Shortcuts wrap as whole entries on narrow terminals. The screen footer contains only global Help and Quit; during input, confirmation or an operation, it shows Ctrl+C to exit.
|
|
31
31
|
|
|
@@ -37,6 +37,7 @@ Panel actions stay visible along the bottom of their frame. Task lists contain N
|
|
|
37
37
|
| `/`, `f`, `r` | Search, cycle My tasks filters, refresh |
|
|
38
38
|
| Tab, `[` / `]`, Page Up / Down | Focus list/details, switch detail tab, scroll |
|
|
39
39
|
| `d`, `s`, `c` | Fetch result files, save verified files, request project changes |
|
|
40
|
+
| `v` in My tasks / Explore | Show the official IMD task link |
|
|
40
41
|
| `o` | Inspect/resume a saved local order |
|
|
41
42
|
| `x`, `m` in My tasks | Cancel an unsigned request; open available task actions |
|
|
42
43
|
| `a`, `m`, `l`, `g` in Workers | Add an SSH target, actions, logs, diagnostics |
|
|
@@ -48,6 +49,8 @@ Panel actions stay visible along the bottom of their frame. Task lists contain N
|
|
|
48
49
|
|
|
49
50
|
Form fields use Enter to advance/submit and Tab to switch fields. A new task asks only for your request, then uses the local planner and the existing IMD payment/order workflow. You never pick a network up front. Colony checks Ethereum and Robinhood Chain together and picks a coin and network with enough balance (IMD first, then stablecoins, then ETH; the lower-gas network wins ties). The payment card shows the official admission fee, "Pay with <coin> on <network>", the payment amount and the gas (network fee) cap separately; confirmation defaults to **Cancel**. **Change payment** lists the other funded options with their amounts. If no option has enough funds, the card lists both networks side by side, for example "0.5 IMD or ≈ 2.01 USDC or ≈ 0.0006 ETH" plus gas, and suggests the smallest top-up. **Add funds** first asks which network you will send on, then shows that network's address, QR code and amounts. Tab selects the payment action, Enter confirms, and Esc returns to editing without signing. `--yes` never bypasses this dashboard confirmation. `i` reveals the payment network, asset, recipient and server-prepared input. Task admission does not guarantee completion. Wallet authorization transactions can incur separate gas fees.
|
|
50
51
|
|
|
52
|
+
After a task is published, Colony displays its official page at `https://explorer.imd.fun/jobs/<jobId>`. The dashboard shows the link in a full-width panel; Enter or Esc returns to the workspace, and `v` shows it again from My tasks or Explore. CLI creation, continuation, saved-order submission and `task show` also print the link. JSON publication output and order summaries expose it as `taskUrl`. Drafts and unpaid orders have no task link until IMD creates a job.
|
|
53
|
+
|
|
51
54
|
Explore shows the server's actual task total and refreshes in the background every 30 seconds. New tasks appear at the top, changed states update in place, and the selected task, loaded history and detail scroll position are preserved. Refreshing pauses during forms, payment confirmation and worker operations. Read errors are visible and the next scheduled refresh retries. Reaching the end of the loaded list automatically appends older tasks. Loading, errors and the end of history are visible; search results show the loaded count until all matches have been fetched because the API does not provide a search total. `r` reloads the latest list and resets loaded history.
|
|
52
55
|
|
|
53
56
|
The selected active task refreshes every five seconds while its workspace is idle. Only real server states are shown; the UI does not invent progress percentages or completion times. Completed tasks expose delivery files and a paid continuation flow. My tasks keeps local orders that have not produced a job, including recoverable interrupted payments.
|
package/dist/commands/order.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{writeDiagnostic as _0x53e055}from'../lib/terminal-text.mjs';import{paymentProgressReporter as _0x494b3e}from'../lib/payment-progress.mjs';function _0x5575(){const _0xccc75a=['admitted','no\x20orders','transaction:\x20','transaction','quote\x20ends:\x20\x20','refused','updatedAt','code','detail','payment:\x20\x20\x20\x20\x20','unknown','status:\x20','order\x20','padEnd','lastError','canCancel','updated:\x20\x20\x20\x20\x20','order\x20ended\x20with\x20status:\x20','exitCode','json','server:\x20\x20\x20\x20\x20\x20','request\x20key:\x20','inspect,\x20recover\x20and\x20cancel\x20saved\x20orders','action','pending\x20tx:\x20\x20','job:\x20\x20\x20\x20\x20\x20\x20\x20\x20','steps','submit\x20<id>','kind','Cancel\x20this\x20unpaid\x20request?\x0a','remoteStatus','api','delete\x20the\x20local\x20record\x20of\x20a\x20cancelled\x20unsigned\x20request','Local\x20record\x20deleted.','\x20tx\x20','cancelledAt','stringify','\x0aNo\x20payment\x20will\x20be\x20signed\x20or\x20submitted\x20by\x20this\x20request.','pay\x20with:\x20\x20\x20\x20','amount','Delete\x20this\x20cancelled\x20request\x20from\x20local\x20history?\x0a','payTo','not\x20started','action:\x20\x20\x20\x20\x20\x20','pendingTransaction','pay\x20to:\x20\x20\x20\x20\x20\x20','length','jobId','Request\x20cancelled\x20locally.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','transactionHash','hash','tx:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','refresh','\x20\x20-\x20','\x20(locally;\x20no\x20payment\x20signed\x20or\x20submitted)','payment_reconciling','Payment\x20needs\x20review.','continue\x20a\x20saved\x20task,\x20refreshing\x20unpaid\x20quotes\x20when\x20needed','resultUrl','max\x20debit:\x20\x20\x20','explorerUrl','transaction_pending','orderId','\x0aThis\x20removes\x20its\x20saved\x20details\x20permanently.','description','input','show\x20<id>','cancel\x20<id>','ORDER\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20STATUS\x20\x20\x20\x20\x20\x20\x20JOB\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ACTION','payment_failed','This\x20request\x20cannot\x20be\x20cancelled\x20locally.\x20Only\x20unsigned,\x20unsubmitted\x20requests\x20can\x20be\x20cancelled.','push','\x20was\x20admitted,\x20but\x20IMD\x20refused\x20the\x20job.','order:\x20\x20','cancelled:\x20\x20\x20','expired','includes','signed:\x20\x20\x20\x20\x20\x20','result\x20URL:\x20\x20','canDelete','result:\x20','amount:\x20\x20\x20\x20\x20\x20','home','asset:\x20\x20\x20\x20\x20\x20\x20','delete\x20<id>','paymentChain','funding','network:\x20\x20\x20\x20\x20','reason','Your\x20request\x20is\x20saved.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','optsWithGlobals','command','quoteExpiresAt','toISOString','\x20--refresh','join','order:\x20\x20\x20\x20\x20\x20\x20','status:\x20\x20\x20\x20\x20\x20','requestKey','payment:\x20','status','pending\x20why:\x20','paymentStatus','tx:\x20\x20\x20\x20\x20','cancel\x20an\x20unsigned,\x20unsubmitted\x20request\x20locally;\x20no\x20wallet\x20or\x20network\x20needed','statusUrl','read\x20GET\x20/requests/:id\x20with\x20the\x20saved\x20token\x20and\x20update\x20local\x20state','explorer:\x20\x20\x20\x20'];_0x5575=function(){return _0xccc75a;};return _0x5575();}function _0x27ef(_0x4f9c07,_0x5575cb){_0x4f9c07=_0x4f9c07-0x69;const _0x27ef65=_0x5575();let _0x2bf7e1=_0x27ef65[_0x4f9c07];return _0x2bf7e1;}import{confirmAction as _0x3ebf1a,print as _0x631228}from'../shared.mjs';import{cancelOrder as _0x3087e8,deleteOrder as _0x53b394,findOrder as _0x79d59f,listOrders as _0x23f8ee,orderActions as _0x45c401,orderSummary as _0xda14e4}from'../lib/orders.mjs';import{refreshOrder as _0x19d3ac,submitOrder as _0x5ad531}from'../lib/publish.mjs';function m(_0x21d559){const _0x5251bd=_0x27ef,_0x1bc4c1=_0x21d559[_0x5251bd(0x95)]??_0x21d559[_0x5251bd(0x6c)],_0x31d02d=[_0x5251bd(0xa1),_0x5251bd(0xc2)];return _0x1bc4c1?.[_0x5251bd(0x9b)]&&_0x31d02d[_0x5251bd(0xb0)](_0x5251bd(0x6b)+_0x1bc4c1[_0x5251bd(0x9b)]+(_0x1bc4c1['kind']?'\x20('+_0x1bc4c1[_0x5251bd(0x85)]+')':'')),_0x1bc4c1?.[_0x5251bd(0xc1)]&&_0x31d02d[_0x5251bd(0xb0)]('reason:\x20\x20\x20\x20\x20\x20'+_0x1bc4c1[_0x5251bd(0xc1)]),_0x1bc4c1?.[_0x5251bd(0xa5)]&&_0x31d02d['push'](_0x5251bd(0xd4)+_0x1bc4c1[_0x5251bd(0xa5)]),_0x21d559[_0x5251bd(0x9a)]&&_0x21d559[_0x5251bd(0x9a)]!==_0x1bc4c1?.[_0x5251bd(0x9b)]&&_0x31d02d[_0x5251bd(0xb0)]('transaction:\x20'+_0x21d559[_0x5251bd(0x9a)]),_0x21d559['orderId']&&_0x31d02d['push']('continue:\x20\x20\x20\x20colony\x20order\x20submit\x20'+_0x21d559[_0x5251bd(0xa7)]),_0x31d02d[_0x5251bd(0xc8)]('\x0a')+'\x0a';}function x(_0x5ad9ec){const _0x2d569b=_0x27ef;if(_0x5ad9ec[_0x2d569b(0x97)]===0x0)return _0x2d569b(0x6a);const _0x18b030=[_0x2d569b(0xad)];for(const _0x410e54 of _0x5ad9ec)_0x18b030['push'](String(_0x410e54[_0x2d569b(0xa7)]??_0x410e54[_0x2d569b(0xcb)])['padEnd'](0x24)+'\x20\x20'+String(_0xda14e4(_0x410e54)[_0x2d569b(0xcd)])[_0x2d569b(0x76)](0xa)+'\x20\x20'+String(_0x410e54[_0x2d569b(0x98)]??'')[_0x2d569b(0x76)](0x24)+'\x20\x20'+_0x410e54[_0x2d569b(0x80)]);return _0x18b030['join']('\x0a');}function j(_0x5ef7bd){const _0x4d3fe4=_0x27ef,_0x2c6bf9=_0xda14e4(_0x5ef7bd),_0x4b65fb=[_0x4d3fe4(0x7e)+_0x2c6bf9[_0x4d3fe4(0xcb)],_0x4d3fe4(0xc9)+(_0x2c6bf9['orderId']??''),_0x4d3fe4(0xca)+_0x2c6bf9[_0x4d3fe4(0xcd)],_0x4d3fe4(0x7d)+(_0x2c6bf9[_0x4d3fe4(0x87)]??''),_0x4d3fe4(0x94)+_0x2c6bf9[_0x4d3fe4(0x80)],_0x4d3fe4(0xc0)+_0x2c6bf9[_0x4d3fe4(0xbe)],_0x4d3fe4(0x8f)+_0x2c6bf9['payWith'],'created:\x20\x20\x20\x20\x20'+_0x2c6bf9['createdAt'],_0x4d3fe4(0x79)+_0x2c6bf9[_0x4d3fe4(0x6f)],_0x4d3fe4(0xba)+(_0x2c6bf9[_0x4d3fe4(0x90)]??''),_0x4d3fe4(0xbc)+(_0x2c6bf9['asset']??''),_0x4d3fe4(0x96)+(_0x2c6bf9[_0x4d3fe4(0x92)]??''),_0x4d3fe4(0x6d)+(_0x2c6bf9[_0x4d3fe4(0xc5)]?new Date(Number(_0x2c6bf9['quoteExpiresAt'])*0x3e8)[_0x4d3fe4(0xc6)]():''),_0x4d3fe4(0xb6)+_0x2c6bf9['paymentSigned'],_0x4d3fe4(0x72)+(_0x2c6bf9[_0x4d3fe4(0xcf)]??''),_0x4d3fe4(0x9c)+(_0x2c6bf9[_0x4d3fe4(0x9a)]??''),_0x4d3fe4(0x82)+(_0x2c6bf9[_0x4d3fe4(0x98)]??''),'status\x20URL:\x20\x20'+(_0x2c6bf9[_0x4d3fe4(0xd2)]??''),_0x4d3fe4(0xb7)+(_0x2c6bf9[_0x4d3fe4(0xa3)]??'')];_0x2c6bf9[_0x4d3fe4(0x77)]&&_0x4b65fb[_0x4d3fe4(0xb0)]('last\x20error:\x20\x20'+_0x2c6bf9[_0x4d3fe4(0x77)]);const _0x11cb7d=_0x5ef7bd[_0x4d3fe4(0x95)];if(_0x11cb7d?.[_0x4d3fe4(0x9b)]&&_0x4b65fb[_0x4d3fe4(0xb0)](_0x4d3fe4(0x81)+_0x11cb7d[_0x4d3fe4(0x9b)]+(_0x11cb7d[_0x4d3fe4(0x85)]?'\x20('+_0x11cb7d[_0x4d3fe4(0x85)]+')':'')),_0x11cb7d?.[_0x4d3fe4(0xc1)]&&_0x4b65fb[_0x4d3fe4(0xb0)](_0x4d3fe4(0xce)+_0x11cb7d['reason']),_0x11cb7d?.[_0x4d3fe4(0xa5)]&&_0x4b65fb[_0x4d3fe4(0xb0)]('explorer:\x20\x20\x20\x20'+_0x11cb7d[_0x4d3fe4(0xa5)]),_0x2c6bf9[_0x4d3fe4(0xbf)]){_0x4b65fb['push']('conversion:\x20\x20'+_0x2c6bf9[_0x4d3fe4(0xbf)][_0x4d3fe4(0x90)],_0x4d3fe4(0xa4)+_0x2c6bf9[_0x4d3fe4(0xbf)]['maximumDebit']);for(const _0x572942 of _0x2c6bf9[_0x4d3fe4(0xbf)][_0x4d3fe4(0x83)])_0x4b65fb[_0x4d3fe4(0xb0)]('\x20\x20'+_0x572942[_0x4d3fe4(0x85)]+':\x20'+(_0x572942[_0x4d3fe4(0xcd)]??_0x4d3fe4(0x93))+(_0x572942[_0x4d3fe4(0x9b)]?'\x20'+_0x572942[_0x4d3fe4(0x9b)]:''));}return _0x2c6bf9[_0x4d3fe4(0x8c)]&&_0x4b65fb['push'](_0x4d3fe4(0xb3)+_0x2c6bf9['cancelledAt']+_0x4d3fe4(0x9f)),_0x4b65fb[_0x4d3fe4(0xc8)]('\x0a');}function q(_0x2468ce){const _0x2a17ca=_0x27ef,_0x43e50d=[_0x2a17ca(0x74)+_0x2468ce[_0x2a17ca(0xcd)],_0x2a17ca(0xb2)+_0x2468ce[_0x2a17ca(0xa7)]];return _0x2468ce['jobId']&&_0x43e50d[_0x2a17ca(0xb0)]('job:\x20\x20\x20\x20'+_0x2468ce[_0x2a17ca(0x98)]),_0x2468ce['statusUrl']&&_0x43e50d['push'](_0x2a17ca(0x74)+_0x2468ce[_0x2a17ca(0xd2)]),_0x2468ce[_0x2a17ca(0xa3)]&&_0x43e50d[_0x2a17ca(0xb0)](_0x2a17ca(0xb9)+_0x2468ce[_0x2a17ca(0xa3)]),_0x2468ce['transactionHash']&&_0x43e50d[_0x2a17ca(0xb0)](_0x2a17ca(0xd0)+_0x2468ce['transactionHash']),_0x43e50d[_0x2a17ca(0xc8)]('\x0a');}function I(_0x5f4699){const _0x12153f=_0x27ef,_0x9566b9=[_0x12153f(0x75)+_0x5f4699[_0x12153f(0xa7)]+_0x12153f(0xb1),_0x12153f(0xcc)+(_0x5f4699[_0x12153f(0xcf)]??_0x12153f(0x73))+(_0x5f4699['transactionHash']?_0x12153f(0x8b)+_0x5f4699[_0x12153f(0x9a)]:'')];for(const _0x1611b1 of _0x5f4699['refusalProblems']??[])_0x9566b9[_0x12153f(0xb0)](_0x12153f(0x9e)+(_0x1611b1['code']??_0x12153f(0x6e))+':\x20'+(_0x1611b1[_0x12153f(0x71)]??JSON[_0x12153f(0x8d)](_0x1611b1)));return _0x9566b9[_0x12153f(0xb0)]('inspect:\x20colony\x20order\x20show\x20'+_0x5f4699[_0x12153f(0xa7)]+_0x12153f(0xc7)),_0x9566b9[_0x12153f(0xc8)]('\x0a')+'\x0a';}function k(_0x11afbc){const _0x14f7a0=_0x27ef,_0x44210f=_0x11afbc[_0x14f7a0(0xc4)]('order')['description'](_0x14f7a0(0x7f));_0x44210f['command']('list')['description']('list\x20locally\x20saved\x20orders')[_0x14f7a0(0x80)](async(_0x23a0b5,_0x337e6c)=>{const _0x3e2928=_0x14f7a0,_0x395c12=_0x337e6c['optsWithGlobals'](),_0x1d9bb0=await _0x23f8ee(_0x395c12[_0x3e2928(0xbb)]);_0x631228(_0x395c12[_0x3e2928(0x7c)]?_0x1d9bb0['map'](_0xda14e4):x(_0x1d9bb0),_0x395c12);}),_0x44210f[_0x14f7a0(0xc4)](_0x14f7a0(0xab))[_0x14f7a0(0xa9)]('show\x20local\x20order\x20state;\x20--refresh\x20also\x20reads\x20the\x20server')['option']('--refresh',_0x14f7a0(0xd3))[_0x14f7a0(0x80)](async(_0x1d9e78,_0x41c1b4,_0x1ea58)=>{const _0x1d936f=_0x14f7a0,_0x49389a=_0x1ea58[_0x1d936f(0xc3)](),_0x87aa98=_0x49389a[_0x1d936f(0x9d)]?await _0x19d3ac({'home':_0x49389a[_0x1d936f(0xbb)],'id':_0x1d9e78}):await _0x79d59f(_0x49389a[_0x1d936f(0xbb)],_0x1d9e78);_0x631228(_0x49389a[_0x1d936f(0x7c)]?_0xda14e4(_0x87aa98):j(_0x87aa98),_0x49389a);}),_0x44210f[_0x14f7a0(0xc4)](_0x14f7a0(0xac))[_0x14f7a0(0xa9)](_0x14f7a0(0xd1))[_0x14f7a0(0x80)](async(_0x7f3f15,_0x5940c8,_0x2ad99b)=>{const _0x40be7f=_0x14f7a0,_0x4104e4=_0x2ad99b['optsWithGlobals'](),_0x222012=await _0x79d59f(_0x4104e4[_0x40be7f(0xbb)],_0x7f3f15);if(!_0x45c401(_0x222012)[_0x40be7f(0x78)])throw new Error(_0x40be7f(0xaf));await _0x3ebf1a(_0x40be7f(0x86)+_0x222012[_0x40be7f(0xaa)]['objective']+_0x40be7f(0x8e),_0x4104e4);const _0x4b1317=await _0x3087e8(_0x4104e4['home'],_0x7f3f15);_0x631228(_0x4104e4[_0x40be7f(0x7c)]?_0xda14e4(_0x4b1317):_0x40be7f(0x99),_0x4104e4);}),_0x44210f[_0x14f7a0(0xc4)](_0x14f7a0(0xbd))['description'](_0x14f7a0(0x89))[_0x14f7a0(0x80)](async(_0x543c8c,_0x5db422,_0x3ea886)=>{const _0x5075d7=_0x14f7a0,_0x3f08e6=_0x3ea886[_0x5075d7(0xc3)](),_0x36a56a=await _0x79d59f(_0x3f08e6[_0x5075d7(0xbb)],_0x543c8c);if(!_0x45c401(_0x36a56a)[_0x5075d7(0xb8)])throw new Error('Cancel\x20this\x20unsigned\x20request\x20first.\x20Signed\x20payment\x20recovery\x20records\x20cannot\x20be\x20deleted.');await _0x3ebf1a(_0x5075d7(0x91)+_0x36a56a['input']['objective']+_0x5075d7(0xa8),_0x3f08e6);const _0x3508c1=await _0x53b394(_0x3f08e6[_0x5075d7(0xbb)],_0x543c8c);_0x631228(_0x3f08e6[_0x5075d7(0x7c)]?{'deleted':!0x0,'requestKey':_0x3508c1[_0x5075d7(0xcb)],'orderId':_0x3508c1['orderId']??null}:_0x5075d7(0x8a),_0x3f08e6);}),_0x44210f['command'](_0x14f7a0(0x84))['description'](_0x14f7a0(0xa2))['action'](async(_0x10af03,_0x2a4d5d,_0x228f19)=>{const _0x5efa5f=_0x14f7a0,_0x46106a=_0x228f19['optsWithGlobals']();let _0x3e263e;try{_0x3e263e=await _0x5ad531({..._0x46106a,'api':_0x46106a[_0x5efa5f(0x88)],'home':_0x46106a[_0x5efa5f(0xbb)],'id':_0x10af03,'onProgress':_0x494b3e(_0x46106a)});}catch(_0x243ebe){if(![_0x5efa5f(0xa6),_0x5efa5f(0xa0)][_0x5efa5f(0xb5)](_0x243ebe[_0x5efa5f(0x70)]))throw _0x243ebe;_0x46106a[_0x5efa5f(0x7c)]?_0x631228({'status':_0x243ebe[_0x5efa5f(0x70)],'transaction':_0x243ebe[_0x5efa5f(0x6c)]??null,'message':_0x243ebe['message']},_0x46106a):_0x53e055(m({'orderId':_0x10af03,'transaction':_0x243ebe[_0x5efa5f(0x6c)]},_0x243ebe[_0x5efa5f(0x70)])),process['exitCode']=0x1;return;}if(_0x3e263e[_0x5efa5f(0xcd)]===_0x5efa5f(0x6e)){_0x46106a['json']?_0x631228({..._0xda14e4(_0x3e263e),'status':_0x5efa5f(0x6e)},_0x46106a):_0x53e055(I(_0x3e263e)),process['exitCode']=0x1;return;}if([_0x5efa5f(0xb4),_0x5efa5f(0xae),_0x5efa5f(0xa6),'payment_reconciling'][_0x5efa5f(0xb5)](_0x3e263e[_0x5efa5f(0xcd)])){_0x46106a[_0x5efa5f(0x7c)]?_0x631228({..._0xda14e4(_0x3e263e),'status':_0x3e263e[_0x5efa5f(0xcd)]},_0x46106a):_0x53e055(m(_0x3e263e)),process[_0x5efa5f(0x7b)]=0x1;return;}if(_0x3e263e[_0x5efa5f(0xcd)]!==_0x5efa5f(0x69))throw new Error(_0x5efa5f(0x7a)+_0x3e263e[_0x5efa5f(0xcd)]+';\x20inspect\x20it\x20with\x20colony\x20order\x20show\x20'+_0x3e263e[_0x5efa5f(0xa7)]+_0x5efa5f(0xc7));_0x631228(_0x46106a['json']?_0xda14e4(_0x3e263e):q(_0x3e263e),_0x46106a);});}export{k as registerOrderCommands};
|
|
1
|
+
import{writeDiagnostic as _0x23c132}from'../lib/terminal-text.mjs';import{paymentProgressReporter as _0x54b525}from'../lib/payment-progress.mjs';function _0x25b5(){const _0x2563c0=['transaction_pending','This\x20request\x20cannot\x20be\x20cancelled\x20locally.\x20Only\x20unsigned,\x20unsubmitted\x20requests\x20can\x20be\x20cancelled.','api','explorer:\x20\x20\x20\x20','remoteStatus','option','hash','exitCode','list\x20locally\x20saved\x20orders','status:\x20','reason','IMD:\x20\x20\x20\x20\x20\x20\x20\x20\x20','jobId','optsWithGlobals','inspect,\x20recover\x20and\x20cancel\x20saved\x20orders','delete\x20the\x20local\x20record\x20of\x20a\x20cancelled\x20unsigned\x20request','server:\x20\x20\x20\x20\x20\x20','message','no\x20orders','quote\x20ends:\x20\x20','status:\x20\x20\x20\x20\x20\x20','order','explorerUrl','command','objective','lastError','funding','push','transaction','read\x20GET\x20/requests/:id\x20with\x20the\x20saved\x20token\x20and\x20update\x20local\x20state','cancel\x20<id>','taskUrl','pending\x20tx:\x20\x20','paymentStatus','tx:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20tx\x20','submit\x20<id>','list','Cancel\x20this\x20unsigned\x20request\x20first.\x20Signed\x20payment\x20recovery\x20records\x20cannot\x20be\x20deleted.','resultUrl','--refresh','order\x20','includes','cancel\x20an\x20unsigned,\x20unsubmitted\x20request\x20locally;\x20no\x20wallet\x20or\x20network\x20needed','\x0aNo\x20payment\x20will\x20be\x20signed\x20or\x20submitted\x20by\x20this\x20request.','pay\x20to:\x20\x20\x20\x20\x20\x20','payment_failed','pending\x20why:\x20','last\x20error:\x20\x20','show\x20<id>','canCancel','created:\x20\x20\x20\x20\x20','not\x20started','tx:\x20\x20\x20\x20\x20','refresh','orderId','json','cancelled:\x20\x20\x20','description','code','kind','transaction:\x20','canDelete','asset:\x20\x20\x20\x20\x20\x20\x20','paymentChain','\x0aThis\x20removes\x20its\x20saved\x20details\x20permanently.','toISOString','payTo','join','map','amount:\x20\x20\x20\x20\x20\x20',';\x20inspect\x20it\x20with\x20colony\x20order\x20show\x20','status','payWith','home','payment:\x20\x20\x20\x20\x20','padEnd','refused','requestKey','asset','input','request\x20key:\x20','pendingTransaction','updatedAt','delete\x20<id>','action:\x20\x20\x20\x20\x20\x20','statusUrl','action','result\x20URL:\x20\x20','detail','maximumDebit','admitted','Request\x20cancelled\x20locally.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','length','continue\x20a\x20saved\x20task,\x20refreshing\x20unpaid\x20quotes\x20when\x20needed','show\x20local\x20order\x20state;\x20--refresh\x20also\x20reads\x20the\x20server','Payment\x20needs\x20review.','amount','cancelledAt','inspect:\x20colony\x20order\x20show\x20','ORDER\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20STATUS\x20\x20\x20\x20\x20\x20\x20JOB\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ACTION','signed:\x20\x20\x20\x20\x20\x20','job:\x20\x20\x20\x20','\x20--refresh','\x20was\x20admitted,\x20but\x20IMD\x20refused\x20the\x20job.','continue:\x20\x20\x20\x20colony\x20order\x20submit\x20','transactionHash','max\x20debit:\x20\x20\x20','\x20\x20-\x20'];_0x25b5=function(){return _0x2563c0;};return _0x25b5();}import{confirmAction as _0x1abfd4,print as _0x16c5fb}from'../shared.mjs';import{cancelOrder as _0xc4343d,deleteOrder as _0x1e9db0,findOrder as _0x302389,listOrders as _0x7d010d,orderActions as _0x5d5f9e,orderSummary as _0x2948f4}from'../lib/orders.mjs';import{refreshOrder as _0xb997e4,submitOrder as _0x525e18}from'../lib/publish.mjs';import{imdTaskUrl as _0x3f3b1c}from'../lib/task-link.mjs';function m(_0xfe82f8){const _0x56461d=_0x1a5c,_0x2ac920=_0xfe82f8['pendingTransaction']??_0xfe82f8[_0x56461d(0xcd)],_0x1141e9=[_0x56461d(0x111),'Your\x20request\x20is\x20saved.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.'];return _0x2ac920?.['hash']&&_0x1141e9[_0x56461d(0xcc)](_0x56461d(0xee)+_0x2ac920[_0x56461d(0xb7)]+(_0x2ac920[_0x56461d(0xed)]?'\x20('+_0x2ac920[_0x56461d(0xed)]+')':'')),_0x2ac920?.[_0x56461d(0xbb)]&&_0x1141e9[_0x56461d(0xcc)]('reason:\x20\x20\x20\x20\x20\x20'+_0x2ac920[_0x56461d(0xbb)]),_0x2ac920?.[_0x56461d(0xc7)]&&_0x1141e9[_0x56461d(0xcc)](_0x56461d(0xb4)+_0x2ac920['explorerUrl']),_0xfe82f8[_0x56461d(0x11b)]&&_0xfe82f8[_0x56461d(0x11b)]!==_0x2ac920?.[_0x56461d(0xb7)]&&_0x1141e9[_0x56461d(0xcc)]('transaction:\x20'+_0xfe82f8['transactionHash']),_0xfe82f8[_0x56461d(0xe8)]&&_0x1141e9[_0x56461d(0xcc)](_0x56461d(0x11a)+_0xfe82f8['orderId']),_0x1141e9[_0x56461d(0xf5)]('\x0a')+'\x0a';}function j(_0x559956){const _0x1ef199=_0x1a5c;if(_0x559956[_0x1ef199(0x10e)]===0x0)return _0x1ef199(0xc3);const _0x56ba65=[_0x1ef199(0x115)];for(const _0x1365b0 of _0x559956)_0x56ba65['push'](String(_0x1365b0[_0x1ef199(0xe8)]??_0x1365b0[_0x1ef199(0xff)])['padEnd'](0x24)+'\x20\x20'+String(_0x2948f4(_0x1365b0)[_0x1ef199(0xf9)])['padEnd'](0xa)+'\x20\x20'+String(_0x1365b0[_0x1ef199(0xbd)]??'')[_0x1ef199(0xfd)](0x24)+'\x20\x20'+_0x1365b0[_0x1ef199(0x108)]);return _0x56ba65[_0x1ef199(0xf5)]('\x0a');}function I(_0x24033e){const _0x3896fd=_0x1a5c,_0x5df240=_0x2948f4(_0x24033e),_0x52be8f=[_0x3896fd(0x102)+_0x5df240[_0x3896fd(0xff)],'order:\x20\x20\x20\x20\x20\x20\x20'+(_0x5df240[_0x3896fd(0xe8)]??''),_0x3896fd(0xc5)+_0x5df240['status'],_0x3896fd(0xc1)+(_0x5df240[_0x3896fd(0xb5)]??''),_0x3896fd(0x106)+_0x5df240[_0x3896fd(0x108)],'network:\x20\x20\x20\x20\x20'+_0x5df240[_0x3896fd(0xf1)],'pay\x20with:\x20\x20\x20\x20'+_0x5df240[_0x3896fd(0xfa)],_0x3896fd(0xe4)+_0x5df240['createdAt'],'updated:\x20\x20\x20\x20\x20'+_0x5df240[_0x3896fd(0x104)],_0x3896fd(0xf7)+(_0x5df240['amount']??''),_0x3896fd(0xf0)+(_0x5df240[_0x3896fd(0x100)]??''),_0x3896fd(0xde)+(_0x5df240[_0x3896fd(0xf4)]??''),_0x3896fd(0xc4)+(_0x5df240['quoteExpiresAt']?new Date(Number(_0x5df240['quoteExpiresAt'])*0x3e8)[_0x3896fd(0xf3)]():''),_0x3896fd(0x116)+_0x5df240['paymentSigned'],_0x3896fd(0xfc)+(_0x5df240[_0x3896fd(0xd2)]??''),_0x3896fd(0xd3)+(_0x5df240[_0x3896fd(0x11b)]??''),'job:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5df240[_0x3896fd(0xbd)]??''),'status\x20URL:\x20\x20'+(_0x5df240[_0x3896fd(0x107)]??''),_0x3896fd(0x109)+(_0x5df240[_0x3896fd(0xd8)]??'')];_0x5df240['taskUrl']&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xbc)+_0x5df240[_0x3896fd(0xd0)]),_0x5df240[_0x3896fd(0xca)]&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xe1)+_0x5df240['lastError']);const _0x23e04c=_0x24033e[_0x3896fd(0x103)];if(_0x23e04c?.[_0x3896fd(0xb7)]&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xd1)+_0x23e04c[_0x3896fd(0xb7)]+(_0x23e04c[_0x3896fd(0xed)]?'\x20('+_0x23e04c[_0x3896fd(0xed)]+')':'')),_0x23e04c?.[_0x3896fd(0xbb)]&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xe0)+_0x23e04c[_0x3896fd(0xbb)]),_0x23e04c?.['explorerUrl']&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xb4)+_0x23e04c[_0x3896fd(0xc7)]),_0x5df240[_0x3896fd(0xcb)]){_0x52be8f['push']('conversion:\x20\x20'+_0x5df240[_0x3896fd(0xcb)][_0x3896fd(0x112)],_0x3896fd(0x11c)+_0x5df240['funding'][_0x3896fd(0x10b)]);for(const _0x5d7a40 of _0x5df240[_0x3896fd(0xcb)]['steps'])_0x52be8f['push']('\x20\x20'+_0x5d7a40[_0x3896fd(0xed)]+':\x20'+(_0x5d7a40[_0x3896fd(0xf9)]??_0x3896fd(0xe5))+(_0x5d7a40[_0x3896fd(0xb7)]?'\x20'+_0x5d7a40[_0x3896fd(0xb7)]:''));}return _0x5df240[_0x3896fd(0x113)]&&_0x52be8f[_0x3896fd(0xcc)](_0x3896fd(0xea)+_0x5df240[_0x3896fd(0x113)]+'\x20(locally;\x20no\x20payment\x20signed\x20or\x20submitted)'),_0x52be8f[_0x3896fd(0xf5)]('\x0a');}function q(_0xd547c4){const _0x5e73ff=_0x1a5c,_0x15926b=['status:\x20'+_0xd547c4[_0x5e73ff(0xf9)],'order:\x20\x20'+_0xd547c4[_0x5e73ff(0xe8)]];return _0xd547c4[_0x5e73ff(0xbd)]&&_0x15926b[_0x5e73ff(0xcc)](_0x5e73ff(0x117)+_0xd547c4[_0x5e73ff(0xbd)],'IMD:\x20\x20\x20\x20'+_0x3f3b1c(_0xd547c4[_0x5e73ff(0xbd)])),_0xd547c4[_0x5e73ff(0x107)]&&_0x15926b[_0x5e73ff(0xcc)](_0x5e73ff(0xba)+_0xd547c4[_0x5e73ff(0x107)]),_0xd547c4[_0x5e73ff(0xd8)]&&_0x15926b[_0x5e73ff(0xcc)]('result:\x20'+_0xd547c4[_0x5e73ff(0xd8)]),_0xd547c4['transactionHash']&&_0x15926b[_0x5e73ff(0xcc)](_0x5e73ff(0xe6)+_0xd547c4['transactionHash']),_0x15926b[_0x5e73ff(0xf5)]('\x0a');}function v(_0x268ecb){const _0x1c0c4c=_0x1a5c,_0x214816=[_0x1c0c4c(0xda)+_0x268ecb['orderId']+_0x1c0c4c(0x119),'payment:\x20'+(_0x268ecb['paymentStatus']??'unknown')+(_0x268ecb[_0x1c0c4c(0x11b)]?_0x1c0c4c(0xd4)+_0x268ecb[_0x1c0c4c(0x11b)]:'')];for(const _0x44067c of _0x268ecb['refusalProblems']??[])_0x214816[_0x1c0c4c(0xcc)](_0x1c0c4c(0x11d)+(_0x44067c[_0x1c0c4c(0xec)]??'refused')+':\x20'+(_0x44067c[_0x1c0c4c(0x10a)]??JSON['stringify'](_0x44067c)));return _0x214816[_0x1c0c4c(0xcc)](_0x1c0c4c(0x114)+_0x268ecb[_0x1c0c4c(0xe8)]+'\x20--refresh'),_0x214816[_0x1c0c4c(0xf5)]('\x0a')+'\x0a';}function _0x1a5c(_0x1792e9,_0x25b50f){_0x1792e9=_0x1792e9-0xb1;const _0x1a5c2a=_0x25b5();let _0x115c29=_0x1a5c2a[_0x1792e9];return _0x115c29;}function A(_0x43a1fb){const _0x44a4f9=_0x1a5c,_0x7cfe9=_0x43a1fb[_0x44a4f9(0xc8)](_0x44a4f9(0xc6))[_0x44a4f9(0xeb)](_0x44a4f9(0xbf));_0x7cfe9[_0x44a4f9(0xc8)](_0x44a4f9(0xd6))['description'](_0x44a4f9(0xb9))[_0x44a4f9(0x108)](async(_0x17e0aa,_0x4cad1a)=>{const _0x2c47ad=_0x44a4f9,_0x44ce2a=_0x4cad1a[_0x2c47ad(0xbe)](),_0x295bf1=await _0x7d010d(_0x44ce2a['home']);_0x16c5fb(_0x44ce2a[_0x2c47ad(0xe9)]?_0x295bf1[_0x2c47ad(0xf6)](_0x2948f4):j(_0x295bf1),_0x44ce2a);}),_0x7cfe9[_0x44a4f9(0xc8)](_0x44a4f9(0xe2))['description'](_0x44a4f9(0x110))[_0x44a4f9(0xb6)](_0x44a4f9(0xd9),_0x44a4f9(0xce))['action'](async(_0x59a320,_0x14f8ff,_0x1dca0d)=>{const _0x4ef935=_0x44a4f9,_0x1dd1ea=_0x1dca0d[_0x4ef935(0xbe)](),_0x3b5b74=_0x1dd1ea[_0x4ef935(0xe7)]?await _0xb997e4({'home':_0x1dd1ea[_0x4ef935(0xfb)],'id':_0x59a320}):await _0x302389(_0x1dd1ea[_0x4ef935(0xfb)],_0x59a320);_0x16c5fb(_0x1dd1ea[_0x4ef935(0xe9)]?_0x2948f4(_0x3b5b74):I(_0x3b5b74),_0x1dd1ea);}),_0x7cfe9['command'](_0x44a4f9(0xcf))['description'](_0x44a4f9(0xdc))['action'](async(_0x483964,_0x273503,_0x30fd65)=>{const _0xd28db4=_0x44a4f9,_0x151aa3=_0x30fd65[_0xd28db4(0xbe)](),_0x5155a9=await _0x302389(_0x151aa3[_0xd28db4(0xfb)],_0x483964);if(!_0x5d5f9e(_0x5155a9)[_0xd28db4(0xe3)])throw new Error(_0xd28db4(0xb2));await _0x1abfd4('Cancel\x20this\x20unpaid\x20request?\x0a'+_0x5155a9[_0xd28db4(0x101)][_0xd28db4(0xc9)]+_0xd28db4(0xdd),_0x151aa3);const _0x1274df=await _0xc4343d(_0x151aa3[_0xd28db4(0xfb)],_0x483964);_0x16c5fb(_0x151aa3[_0xd28db4(0xe9)]?_0x2948f4(_0x1274df):_0xd28db4(0x10d),_0x151aa3);}),_0x7cfe9[_0x44a4f9(0xc8)](_0x44a4f9(0x105))[_0x44a4f9(0xeb)](_0x44a4f9(0xc0))[_0x44a4f9(0x108)](async(_0x4bff62,_0x335121,_0x4e93ed)=>{const _0x2af4ce=_0x44a4f9,_0x18d27f=_0x4e93ed[_0x2af4ce(0xbe)](),_0xd47971=await _0x302389(_0x18d27f[_0x2af4ce(0xfb)],_0x4bff62);if(!_0x5d5f9e(_0xd47971)[_0x2af4ce(0xef)])throw new Error(_0x2af4ce(0xd7));await _0x1abfd4('Delete\x20this\x20cancelled\x20request\x20from\x20local\x20history?\x0a'+_0xd47971[_0x2af4ce(0x101)]['objective']+_0x2af4ce(0xf2),_0x18d27f);const _0x20a64f=await _0x1e9db0(_0x18d27f[_0x2af4ce(0xfb)],_0x4bff62);_0x16c5fb(_0x18d27f[_0x2af4ce(0xe9)]?{'deleted':!0x0,'requestKey':_0x20a64f[_0x2af4ce(0xff)],'orderId':_0x20a64f[_0x2af4ce(0xe8)]??null}:'Local\x20record\x20deleted.',_0x18d27f);}),_0x7cfe9['command'](_0x44a4f9(0xd5))[_0x44a4f9(0xeb)](_0x44a4f9(0x10f))['action'](async(_0x3670fc,_0x150671,_0x20f5ce)=>{const _0x51f932=_0x44a4f9,_0x3c693f=_0x20f5ce['optsWithGlobals']();let _0x8f4f72;try{_0x8f4f72=await _0x525e18({..._0x3c693f,'api':_0x3c693f[_0x51f932(0xb3)],'home':_0x3c693f[_0x51f932(0xfb)],'id':_0x3670fc,'onProgress':_0x54b525(_0x3c693f)});}catch(_0x4e9077){if(![_0x51f932(0xb1),'payment_reconciling'][_0x51f932(0xdb)](_0x4e9077[_0x51f932(0xec)]))throw _0x4e9077;_0x3c693f['json']?_0x16c5fb({'status':_0x4e9077['code'],'transaction':_0x4e9077[_0x51f932(0xcd)]??null,'message':_0x4e9077[_0x51f932(0xc2)]},_0x3c693f):_0x23c132(m({'orderId':_0x3670fc,'transaction':_0x4e9077[_0x51f932(0xcd)]},_0x4e9077[_0x51f932(0xec)])),process[_0x51f932(0xb8)]=0x1;return;}if(_0x8f4f72[_0x51f932(0xf9)]==='refused'){_0x3c693f[_0x51f932(0xe9)]?_0x16c5fb({..._0x2948f4(_0x8f4f72),'status':_0x51f932(0xfe)},_0x3c693f):_0x23c132(v(_0x8f4f72)),process[_0x51f932(0xb8)]=0x1;return;}if(['expired',_0x51f932(0xdf),_0x51f932(0xb1),'payment_reconciling'][_0x51f932(0xdb)](_0x8f4f72['status'])){_0x3c693f['json']?_0x16c5fb({..._0x2948f4(_0x8f4f72),'status':_0x8f4f72[_0x51f932(0xf9)]},_0x3c693f):_0x23c132(m(_0x8f4f72)),process[_0x51f932(0xb8)]=0x1;return;}if(_0x8f4f72[_0x51f932(0xf9)]!==_0x51f932(0x10c))throw new Error('order\x20ended\x20with\x20status:\x20'+_0x8f4f72[_0x51f932(0xf9)]+_0x51f932(0xf8)+_0x8f4f72[_0x51f932(0xe8)]+_0x51f932(0x118));_0x16c5fb(_0x3c693f['json']?_0x2948f4(_0x8f4f72):q(_0x8f4f72),_0x3c693f);});}export{A as registerOrderCommands};
|
package/dist/commands/task.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{writeDiagnostic as _0x253e14}from'../lib/terminal-text.mjs';import{paymentProgressReporter as _0x2aaf95}from'../lib/payment-progress.mjs';import{request as _0x6e1b30,print as _0x40216c}from'../shared.mjs';import{checkJob as _0x347c7b,publishJob as _0x3706aa,readJobFile as _0x41f5a5}from'../lib/publish.mjs';import{loadOrder as _0x96fca9,orderActions as _0x58da2f}from'../lib/orders.mjs';import{buildContinueInput as _0x274855,buildCreateInput as _0x5d1a0d,parentSummary as _0x3bbc3b,resolveAction as _0x53f80f,saveInputFile as _0x2e7447}from'../lib/task-input.mjs';import{DEFAULT_INTERVAL_SECONDS as _0x4e7f2d,DEFAULT_TIMEOUT_SECONDS as _0x2f6fa0,downloadTaskFiles as _0x59c773,waitForResult as _0x36a815}from'../lib/task-result.mjs';import{askQuestions as _0x5da7a4,loadLocalPlanner as _0x43d523,planTask as _0x1ddb5f}from'../planner/flow.mjs';import{registerMyTaskCommands as _0x287884}from'./my-tasks.mjs';import{orderPayment as _0x4e5577}from'../lib/payments.mjs';import{checkTaskWallet as _0x1a2fa6}from'../lib/task-wallet.mjs';async function x(_0x21fc22,_0x4b8caf){const _0x26d468=_0x5aee;let _0x22e01d;if(_0x21fc22[_0x26d468(0x1fe)]){const _0x4980bb=await _0x96fca9(_0x21fc22[_0x26d468(0x189)],_0x21fc22[_0x26d468(0x1fe)]);if(_0x4980bb&&!_0x58da2f(_0x4980bb)[_0x26d468(0x1f7)])return null;_0x4980bb&&(_0x22e01d={'paymentChain':_0x4980bb['paymentChain']??_0x26d468(0x247),'payWith':_0x4980bb[_0x26d468(0x262)]??_0x26d468(0x20f)});}const _0x38a4cf=await _0x1a2fa6({..._0x21fc22,'action':_0x4b8caf,'prefer':_0x22e01d});return _0x21fc22[_0x26d468(0x1f4)]||_0x253e14(_0x26d468(0x1bd)+_0x38a4cf[_0x26d468(0x262)]+'\x20on\x20'+_0x38a4cf[_0x26d468(0x179)]+_0x26d468(0x232)),_0x38a4cf;}function _0x5aee(_0x579e19,_0x4864f7){_0x579e19=_0x579e19-0x171;const _0x5aeef3=_0x4864();let _0x548a82=_0x5aeef3[_0x579e19];return _0x548a82;}function _0x4864(){const _0x4ec2e7=['paymentChain','/jobs?','none','detail',',\x20not\x20','continue\x20<id>\x20[objective]','blocked','publish','chainName','exclude\x20oracle\x20panel\x20jobs','padEnd','payment_failed','delivery','\x20\x20\x20\x20hash:\x20','--action\x20<action>','updated:\x20\x20\x20','\x20head=','github','replace','attempt','save','type','\x20verdict=','job\x20template','home','quote','<none>','task','complete\x20continuation\x20body\x20JSON\x20file','transactionHash','before','interval','input','base\x20commit\x20for\x20--repo','submissionHash','\x20belongs\x20to\x20parent\x20job\x20','code','expiresAt','job:\x20\x20\x20\x20\x20\x20\x20','\x20job(s)','trim','\x20version(s))','Network\x20error','state','orderId','--before\x20<time>','order\x20','optsWithGlobals','delayMs','source','check:\x20\x20\x20\x20\x20','reuse\x20a\x20saved\x20order\x20request\x20key','/jobs/','check,\x20quote,\x20sign\x20and\x20submit\x20a\x20job\x20file','rpc','statusUrl','explorerUrl','plan','url','retry','--answer\x20<text>','yes','saved','reviews','\x20blocker(s)','elapsedMs','complete:\x20\x20','--file\x20<path>','includes','push','blockers','wait:\x20','file','template:\x20\x20','Payment\x20needs\x20review.','exitCode','Paying\x20with\x20','nodes','poll\x20interval\x20in\x20seconds','poll\x20a\x20job\x20result\x20until\x20it\x20completes,\x20fails\x20or\x20times\x20out','repository\x20path\x20the\x20job\x20may\x20write\x20(repeatable)','delivery:\x20\x20','pendingTransaction','--request-key\x20<uuid>','job\x20response\x20is\x20missing\x20id','tx:\x20\x20\x20\x20\x20\x20\x20\x20','retries','set','kind','data','string','poll','\x0aquestions:\x0a','refusalProblems','result\x20<id>','\x0anot\x20paid:\x20blockers\x20must\x20be\x20resolved\x20first\x0a','answer\x20a\x20business\x20clarification\x20(repeatable)','--dry-run','verdict','--interval\x20<seconds>','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20500','short','admitted','statusUrl:\x20','map','files:\x20\x20\x20\x20\x20','state:\x20\x20\x20\x20\x20','stdin','--skill\x20<id>','refused','createdAt','launch','workflow','path','isArray','page\x20size\x20(1-500)','job.open','colony\x20--api\x20','action','\x20(poll\x20','objective','requiredOption','\x20has\x20no\x20saved\x20input','key','browse\x20and\x20publish\x20IMD\x20tasks','--out\x20<dir>','paymentStatus','length','challenge','source:\x20\x20\x20\x20','download\x20<id>','json','completed','named\x20input\x20preset\x20(report)','canCancel','\x20was\x20admitted,\x20but\x20IMD\x20refused\x20the\x20job.','check','message','\x20complete=','transaction:\x20','mediaType','requestKey','/result','parentJobId','show\x20one\x20job','\x20versions=','--template\x20<name>','publish\x20the\x20result\x20to\x20GitHub','interrupted','versions','\x20\x20-\x20','/jobs','resultUrl','request\x20key\x20','s\x20(retry\x20','wait:\x20interrupted\x0a','--limit\x20<n>','join','IMD','\x20bytes)','list','runnable\x20skill\x20id','launch:\x20\x20\x20\x20','project\x20ready','result','isTTY','oracle','--save\x20<path>','deliverables','\x20belongs\x20to\x20','\x20->\x20','\x20tx\x20','prepared\x20input:','parent:\x20\x20\x20\x20','dryRun','commit','stringify','limit','job.continue','create\x20[objective]','exclude','asset','result\x20response\x20is\x20missing\x20jobId','summary','continue\x20the\x20project\x20of\x20a\x20job\x20you\x20paid\x20for','HTTP\x20','complete\x20job\x20body\x20JSON\x20file','slice','toFixed','paidBy','payment:\x20','list\x20jobs','saved\x20input:\x20','\x20(enough\x20balance\x20found).\x0a','command','\x20--home\x20','show\x20<id>','objective:\x20','jobs\x20response\x20is\x20missing\x20jobs','--repo\x20<url>','outcome','files','repo','template','complete','action\x20to\x20check\x20(defaults\x20from\x20parentJobId)','reason','since','bytes','order:\x20\x20\x20\x20\x20',';\x20inspect\x20it\x20with\x20colony\x20order\x20show\x20','option','keyEnv','title','ethereum','plan:\x20','status','project','timeout','unknown','answer','api','unknown\x20request\x20key:\x20',';\x20rerun\x20with\x20--api\x20','--timeout\x20<seconds>','\x20--refresh','job\x20body\x20JSON\x20file','description','--preset\x20<name>','input:','order\x20ended\x20with\x20status:\x20','action:\x20\x20\x20\x20','preset','hash','public\x20GitHub\x20repository\x20URL','excludeOracle','skill','project:\x20\x20\x20','nodes:\x20\x20\x20\x20\x20','--path\x20<path>','jobs','payWith','only\x20run\x20the\x20free\x20check\x20and\x20print\x20the\x20input','payTo','download\x20a\x20completed\x20job\x27s\x20files\x20under\x20--out','questions','\x20attempt=','created:\x20\x20\x20','updatedAt','--github','payment_reconciling','transaction','save\x20the\x20input\x20JSON\x20without\x20overwriting','out','toString','jobId','--commit\x20<sha>','parent','head'];_0x4864=function(){return _0x4ec2e7;};return _0x4864();}function ee(_0x4439e9){const _0x54318b=_0x5aee,_0x42b841=new URLSearchParams();if(_0x4439e9['q']!==void 0x0&&_0x42b841['set']('q',_0x4439e9['q']),_0x4439e9['before']!==void 0x0&&_0x42b841[_0x54318b(0x1c8)](_0x54318b(0x18f),_0x4439e9[_0x54318b(0x18f)]),_0x4439e9[_0x54318b(0x240)]!==void 0x0&&_0x42b841[_0x54318b(0x1c8)](_0x54318b(0x240),_0x4439e9['since']),_0x4439e9[_0x54318b(0x222)]!==void 0x0){const _0x1d2df3=Number(_0x4439e9['limit']);if(!Number['isInteger'](_0x1d2df3)||_0x1d2df3<0x1||_0x1d2df3>0x1f4)throw new Error(_0x54318b(0x1d5));_0x42b841[_0x54318b(0x1c8)](_0x54318b(0x222),String(_0x1d2df3));}_0x4439e9[_0x54318b(0x25c)]&&_0x42b841[_0x54318b(0x1c8)](_0x54318b(0x225),_0x54318b(0x217));const _0x164e13=_0x42b841[_0x54318b(0x26f)]();return _0x164e13?_0x54318b(0x172)+_0x164e13:_0x54318b(0x208);}function b(_0x76b1ba,_0x28df34=0x5a){const _0x5737c2=_0x5aee,_0x818f2a=String(_0x76b1ba??'')[_0x5737c2(0x183)](/\s+/g,'\x20')[_0x5737c2(0x199)]();return _0x818f2a[_0x5737c2(0x1f0)]>_0x28df34?_0x818f2a[_0x5737c2(0x22c)](0x0,_0x28df34-0x1)+'…':_0x818f2a;}function te(_0x3a13c4){const _0x3af718=_0x5aee;if(!Array[_0x3af718(0x1e3)](_0x3a13c4?.[_0x3af718(0x261)]))throw new Error(_0x3af718(0x237));const _0x2b9585=[_0x3a13c4['count']+_0x3af718(0x198)];for(const _0x6cf962 of _0x3a13c4[_0x3af718(0x261)])_0x2b9585[_0x3af718(0x1b6)](_0x6cf962['id']+'\x20\x20'+_0x6cf962[_0x3af718(0x19c)][_0x3af718(0x17b)](0xa)+'\x20\x20'+String(_0x6cf962['template']??'')[_0x3af718(0x17b)](0x16)+'\x20\x20'+(_0x6cf962[_0x3af718(0x269)]??'')+'\x20\x20'+b(_0x6cf962[_0x3af718(0x1e9)]));return _0x2b9585[_0x3af718(0x20e)]('\x0a');}function ne(_0x4f13ff){const _0x1d42b5=_0x5aee;if(!_0x4f13ff?.['id'])throw new Error(_0x1d42b5(0x1c5));const _0x3d8391=[_0x1d42b5(0x197)+_0x4f13ff['id'],'state:\x20\x20\x20\x20\x20'+_0x4f13ff['state'],_0x1d42b5(0x1ba)+(_0x4f13ff[_0x1d42b5(0x23c)]??''),_0x1d42b5(0x236)+b(_0x4f13ff[_0x1d42b5(0x1e9)],0x1f4),_0x1d42b5(0x268)+(_0x4f13ff[_0x1d42b5(0x1df)]??''),_0x1d42b5(0x180)+(_0x4f13ff['updatedAt']??''),'paid\x20by:\x20\x20\x20'+(_0x4f13ff[_0x1d42b5(0x22e)]??''),'project:\x20\x20\x20'+(_0x4f13ff[_0x1d42b5(0x24a)]?_0x4f13ff[_0x1d42b5(0x24a)]['id']+'\x20('+(_0x4f13ff[_0x1d42b5(0x24a)][_0x1d42b5(0x206)]?.['length']??0x0)+_0x1d42b5(0x19a):_0x1d42b5(0x173)),_0x1d42b5(0x1c2)+(_0x4f13ff['delivery']?JSON[_0x1d42b5(0x221)](_0x4f13ff[_0x1d42b5(0x17d)]):_0x1d42b5(0x173)),_0x1d42b5(0x213)+(_0x4f13ff[_0x1d42b5(0x1e0)]?JSON['stringify'](_0x4f13ff[_0x1d42b5(0x1e0)]):_0x1d42b5(0x173))];if(Array[_0x1d42b5(0x1e3)](_0x4f13ff[_0x1d42b5(0x1be)])){_0x3d8391[_0x1d42b5(0x1b6)](_0x1d42b5(0x25f)+_0x4f13ff[_0x1d42b5(0x1be)]['length']);for(const _0x105038 of _0x4f13ff[_0x1d42b5(0x1be)])_0x3d8391[_0x1d42b5(0x1b6)]('\x20\x20-\x20'+_0x105038[_0x1d42b5(0x1ec)]+':\x20'+_0x105038[_0x1d42b5(0x19c)]+_0x1d42b5(0x267)+_0x105038[_0x1d42b5(0x184)]+_0x1d42b5(0x187)+(_0x105038[_0x1d42b5(0x1d3)]?.[_0x1d42b5(0x249)]??_0x1d42b5(0x173)));}return Array[_0x1d42b5(0x1e3)](_0x4f13ff[_0x1d42b5(0x1b0)])&&_0x3d8391[_0x1d42b5(0x1b6)]('reviews:\x20\x20\x20'+_0x4f13ff[_0x1d42b5(0x1b0)][_0x1d42b5(0x1f0)]),_0x4f13ff[_0x1d42b5(0x1e1)]?.['id']&&_0x3d8391[_0x1d42b5(0x1b6)](('workflow:\x20\x20'+_0x4f13ff[_0x1d42b5(0x1e1)]['id']+'\x20'+(_0x4f13ff[_0x1d42b5(0x1e1)]['status']??''))[_0x1d42b5(0x199)]()),_0x3d8391['join']('\x0a');}function S(_0x6a9b30){const _0x37af4a=_0x5aee;if(!_0x6a9b30?.[_0x37af4a(0x270)])throw new Error(_0x37af4a(0x227));const _0x169312=['job:\x20\x20\x20\x20\x20\x20\x20'+_0x6a9b30[_0x37af4a(0x270)],_0x37af4a(0x1db)+_0x6a9b30['state'],_0x37af4a(0x1b3)+_0x6a9b30['complete']],_0x8bd074=Array['isArray'](_0x6a9b30[_0x37af4a(0x23a)])?_0x6a9b30[_0x37af4a(0x23a)]:[];_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x1da)+_0x8bd074[_0x37af4a(0x1f0)]);for(const _0x5e5521 of _0x8bd074)_0x169312[_0x37af4a(0x1b6)]('\x20\x20-\x20'+_0x5e5521['path']+'\x20('+_0x5e5521[_0x37af4a(0x241)]+'\x20bytes,\x20'+_0x5e5521[_0x37af4a(0x1fd)]+')'),_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x17e)+_0x5e5521['hash']),_0x169312[_0x37af4a(0x1b6)]('\x20\x20\x20\x20url:\x20\x20'+_0x5e5521[_0x37af4a(0x1ab)]);const _0xf01a86=Array[_0x37af4a(0x1e3)](_0x6a9b30['source'])?_0x6a9b30[_0x37af4a(0x1a2)]:[];_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x1f2)+_0xf01a86['length']);for(const _0x53b436 of _0xf01a86)_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x207)+(_0x53b436['node']??_0x53b436[_0x37af4a(0x193)])+':\x20'+_0x53b436[_0x37af4a(0x1ab)]);return _0x6a9b30[_0x37af4a(0x17d)]&&_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x1c2)+JSON[_0x37af4a(0x221)](_0x6a9b30[_0x37af4a(0x17d)])),_0x6a9b30['launch']&&_0x169312[_0x37af4a(0x1b6)](_0x37af4a(0x213)+JSON[_0x37af4a(0x221)](_0x6a9b30[_0x37af4a(0x1e0)])),_0x169312[_0x37af4a(0x20e)]('\x0a');}function oe(_0xcf6f58){const _0x3495fb=_0x5aee,_0x174584=[_0x3495fb(0x197)+_0xcf6f58[_0x3495fb(0x270)],'state:\x20\x20\x20\x20\x20'+_0xcf6f58[_0x3495fb(0x19c)],_0x3495fb(0x1da)+_0xcf6f58[_0x3495fb(0x23a)][_0x3495fb(0x1f0)]];for(const _0x806c4b of _0xcf6f58[_0x3495fb(0x23a)])_0x174584[_0x3495fb(0x1b6)](_0x3495fb(0x207)+_0x806c4b[_0x3495fb(0x1e2)]+_0x3495fb(0x21b)+_0x806c4b[_0x3495fb(0x1b9)]+'\x20('+_0x806c4b[_0x3495fb(0x241)]+_0x3495fb(0x210)),_0x174584[_0x3495fb(0x1b6)](_0x3495fb(0x17e)+_0x806c4b[_0x3495fb(0x25a)]);return _0x174584['join']('\x0a');}function I(_0x4a292a){const _0x3f4cd6=_0x5aee,_0x1c00c5=['blockers:\x20'+_0x4a292a[_0x3f4cd6(0x1b7)]['length']];for(const _0x9eab4d of _0x4a292a[_0x3f4cd6(0x1b7)])_0x1c00c5[_0x3f4cd6(0x1b6)]('\x20\x20-\x20'+_0x9eab4d[_0x3f4cd6(0x195)]+':\x20'+_0x9eab4d['detail']);const _0x4cc5c5=Array['isArray'](_0x4a292a[_0x3f4cd6(0x1aa)])?_0x4a292a[_0x3f4cd6(0x1aa)]:[];_0x1c00c5['push'](_0x3f4cd6(0x248)+_0x4cc5c5[_0x3f4cd6(0x1f0)]);for(const _0x2b93ba of _0x4cc5c5)_0x1c00c5['push']('\x20\x20-\x20'+(_0x2b93ba[_0x3f4cd6(0x246)]??_0x2b93ba[_0x3f4cd6(0x1d6)]??_0x2b93ba[_0x3f4cd6(0x25d)])+(_0x2b93ba[_0x3f4cd6(0x25d)]?'\x20('+_0x2b93ba[_0x3f4cd6(0x25d)]+')':''));return _0x1c00c5[_0x3f4cd6(0x20e)]('\x0a');}function T(_0x3c9d23){const _0x51d6eb=_0x5aee,_0x3de66a=_0x3c9d23[_0x51d6eb(0x18a)]?_0x4e5577(_0x3c9d23):null;return{'status':_0x3c9d23[_0x51d6eb(0x249)],'action':_0x3c9d23[_0x51d6eb(0x1e7)],'requestKey':_0x3c9d23['requestKey'],'orderId':_0x3c9d23['orderId'],'jobId':_0x3c9d23['jobId']??null,'statusUrl':_0x3c9d23[_0x51d6eb(0x1a8)]??null,'resultUrl':_0x3c9d23[_0x51d6eb(0x209)]??null,'transactionHash':_0x3c9d23['transactionHash']??null,'problems':_0x3c9d23[_0x51d6eb(0x1ce)]??null,'parentJobId':_0x3c9d23[_0x51d6eb(0x191)]?.['parentJobId']??null,'parent':_0x3c9d23['parent']??null,'project':_0x3c9d23[_0x51d6eb(0x1f9)]?.['project']??null,'payer':_0x3c9d23['payer']??null,'paymentChain':_0x3c9d23[_0x51d6eb(0x171)]??'ethereum','payWith':_0x3c9d23[_0x51d6eb(0x262)]??_0x51d6eb(0x20f),'prepared':_0x3c9d23[_0x51d6eb(0x1f1)]?.['input']??null,'quote':_0x3c9d23[_0x51d6eb(0x18a)]?{'amount':_0x3de66a['amount'],'asset':_0x3de66a[_0x51d6eb(0x226)],'payTo':_0x3de66a[_0x51d6eb(0x264)],'expiresAt':_0x3c9d23['quote'][_0x51d6eb(0x196)]}:null};}function ie(_0x3e6c3a){const _0x35ff0a=_0x5aee,_0x2e4549=['status:\x20\x20\x20\x20'+_0x3e6c3a[_0x35ff0a(0x249)],_0x35ff0a(0x258)+_0x3e6c3a['action'],_0x35ff0a(0x242)+_0x3e6c3a[_0x35ff0a(0x19d)],_0x35ff0a(0x197)+(_0x3e6c3a['jobId']??'')];if(_0x3e6c3a[_0x35ff0a(0x1a8)]&&_0x2e4549['push'](_0x35ff0a(0x1d8)+_0x3e6c3a[_0x35ff0a(0x1a8)]),_0x3e6c3a[_0x35ff0a(0x209)]&&_0x2e4549[_0x35ff0a(0x1b6)]('resultUrl:\x20'+_0x3e6c3a['resultUrl']),_0x3e6c3a[_0x35ff0a(0x18e)]&&_0x2e4549['push'](_0x35ff0a(0x1c6)+_0x3e6c3a['transactionHash']),_0x3e6c3a[_0x35ff0a(0x272)]&&(_0x2e4549[_0x35ff0a(0x1b6)](_0x35ff0a(0x21e)+_0x3e6c3a[_0x35ff0a(0x272)]['id']+'\x20('+(_0x3e6c3a[_0x35ff0a(0x272)][_0x35ff0a(0x19c)]??'unknown')+')'),_0x3e6c3a[_0x35ff0a(0x272)][_0x35ff0a(0x24a)]&&_0x2e4549['push'](_0x35ff0a(0x25e)+_0x3e6c3a[_0x35ff0a(0x272)]['project']['id']+_0x35ff0a(0x181)+(_0x3e6c3a[_0x35ff0a(0x272)][_0x35ff0a(0x24a)]['head']??''))),_0x3e6c3a[_0x35ff0a(0x1f9)]?.[_0x35ff0a(0x24a)]){const _0xe19e7=_0x3e6c3a[_0x35ff0a(0x1f9)][_0x35ff0a(0x24a)];_0x2e4549[_0x35ff0a(0x1b6)](_0x35ff0a(0x1a3)+(_0xe19e7['summary']??_0xe19e7['id']??_0x35ff0a(0x214)));}return!_0x3e6c3a[_0x35ff0a(0x1aa)]&&_0x3e6c3a[_0x35ff0a(0x1e7)]===_0x35ff0a(0x223)&&_0x3e6c3a[_0x35ff0a(0x1f1)]?.[_0x35ff0a(0x191)]&&(_0x2e4549[_0x35ff0a(0x1b6)](_0x35ff0a(0x21d)),_0x2e4549[_0x35ff0a(0x1b6)](JSON[_0x35ff0a(0x221)](_0x3e6c3a[_0x35ff0a(0x1f1)]['input'],null,0x2))),_0x2e4549['join']('\x0a');}function A(_0xffe040,_0xdd1a7b){const _0x1fd6ea=_0x5aee;if(_0xffe040[_0x1fd6ea(0x249)]===_0x1fd6ea(0x177)){_0xdd1a7b['json']?_0x40216c({'status':'blocked','action':_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x1e7)],'requestKey':_0xffe040[_0x1fd6ea(0x19c)]['requestKey'],'parent':_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x272)]??null,'check':_0xffe040[_0x1fd6ea(0x1f9)]},_0xdd1a7b):(_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x272)]&&_0x253e14(K(_0xffe040[_0x1fd6ea(0x19c)]['parent'])+'\x0a'),_0x253e14(I(_0xffe040['check'])+_0x1fd6ea(0x1d0))),process[_0x1fd6ea(0x1bc)]=0x1;return;}if(_0xffe040[_0x1fd6ea(0x249)]==='refused'){const _0xec4e79=T(_0xffe040['state']);if(_0xdd1a7b[_0x1fd6ea(0x1f4)])_0x40216c({..._0xec4e79,'status':_0x1fd6ea(0x1de)},_0xdd1a7b);else{const _0x2cbd1e=[_0x1fd6ea(0x19f)+_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x19d)]+_0x1fd6ea(0x1f8),_0x1fd6ea(0x22f)+(_0xffe040['state'][_0x1fd6ea(0x1ef)]??_0x1fd6ea(0x24c))+(_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x18e)]?_0x1fd6ea(0x21c)+_0xffe040[_0x1fd6ea(0x19c)][_0x1fd6ea(0x18e)]:'')];for(const _0x5f5b9d of _0xffe040[_0x1fd6ea(0x19c)]['refusalProblems']??[])_0x2cbd1e[_0x1fd6ea(0x1b6)]('\x20\x20-\x20'+(_0x5f5b9d[_0x1fd6ea(0x195)]??_0x1fd6ea(0x1de))+':\x20'+(_0x5f5b9d[_0x1fd6ea(0x174)]??JSON[_0x1fd6ea(0x221)](_0x5f5b9d)));_0x2cbd1e[_0x1fd6ea(0x1b6)]('inspect:\x20colony\x20order\x20show\x20'+_0xffe040[_0x1fd6ea(0x19c)]['orderId']+_0x1fd6ea(0x252)),_0x253e14(_0x2cbd1e['join']('\x0a')+'\x0a');}process['exitCode']=0x1;return;}if(['expired',_0x1fd6ea(0x17c),'transaction_pending',_0x1fd6ea(0x26b)][_0x1fd6ea(0x1b5)](_0xffe040[_0x1fd6ea(0x249)])){const _0x654ff8=_0xffe040[_0x1fd6ea(0x19c)];if(_0xdd1a7b[_0x1fd6ea(0x1f4)])_0x40216c({...T(_0x654ff8),'status':_0xffe040[_0x1fd6ea(0x249)]},_0xdd1a7b);else{const _0x3a749e=_0x654ff8[_0x1fd6ea(0x1c3)]??_0x654ff8[_0x1fd6ea(0x26c)],_0x24cc26=[_0x1fd6ea(0x1bb),'Your\x20request\x20is\x20saved.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.'];_0x3a749e?.[_0x1fd6ea(0x25a)]&&_0x24cc26[_0x1fd6ea(0x1b6)](_0x1fd6ea(0x1fc)+_0x3a749e['hash']+(_0x3a749e['kind']?'\x20('+_0x3a749e[_0x1fd6ea(0x1c9)]+')':'')),_0x3a749e?.[_0x1fd6ea(0x23f)]&&_0x24cc26[_0x1fd6ea(0x1b6)]('reason:\x20\x20\x20\x20\x20\x20'+_0x3a749e[_0x1fd6ea(0x23f)]),_0x3a749e?.[_0x1fd6ea(0x1a9)]&&_0x24cc26[_0x1fd6ea(0x1b6)]('explorer:\x20\x20\x20\x20'+_0x3a749e[_0x1fd6ea(0x1a9)]),_0x654ff8[_0x1fd6ea(0x18e)]&&_0x654ff8[_0x1fd6ea(0x18e)]!==_0x3a749e?.[_0x1fd6ea(0x25a)]&&_0x24cc26['push'](_0x1fd6ea(0x1fc)+_0x654ff8['transactionHash']),_0x654ff8[_0x1fd6ea(0x19d)]&&_0x24cc26[_0x1fd6ea(0x1b6)]('continue:\x20\x20\x20\x20colony\x20order\x20submit\x20'+_0x654ff8['orderId']),_0x253e14(_0x24cc26['join']('\x0a')+'\x0a');}process['exitCode']=0x1;return;}if(_0xffe040['status']!==_0x1fd6ea(0x1d7))throw new Error(_0x1fd6ea(0x257)+_0xffe040[_0x1fd6ea(0x249)]+_0x1fd6ea(0x243)+_0xffe040[_0x1fd6ea(0x19c)]['orderId']+_0x1fd6ea(0x252));_0x40216c(_0xdd1a7b[_0x1fd6ea(0x1f4)]?T(_0xffe040[_0x1fd6ea(0x19c)]):ie(_0xffe040[_0x1fd6ea(0x19c)]),_0xdd1a7b);}function K(_0x349076){const _0x2147b8=_0x5aee,_0x3bf134=_0x3bbc3b(_0x349076),_0x2e1db8=[_0x2147b8(0x21e)+_0x3bf134['id'],_0x2147b8(0x1db)+(_0x3bf134[_0x2147b8(0x19c)]??''),_0x2147b8(0x1ba)+(_0x3bf134[_0x2147b8(0x23c)]??''),_0x2147b8(0x236)+b(_0x3bf134[_0x2147b8(0x1e9)],0x1f4),'paid\x20by:\x20\x20\x20'+(_0x3bf134[_0x2147b8(0x22e)]??'')];return _0x3bf134[_0x2147b8(0x24a)]&&_0x2e1db8[_0x2147b8(0x1b6)](_0x2147b8(0x25e)+_0x3bf134['project']['id']+_0x2147b8(0x181)+(_0x3bf134[_0x2147b8(0x24a)][_0x2147b8(0x273)]??'')+_0x2147b8(0x202)+_0x3bf134['project'][_0x2147b8(0x206)]['length']),_0x2e1db8[_0x2147b8(0x20e)]('\x0a');}function re(_0x4f633d){const _0x55ca7c=_0x5aee;return _0x4f633d?_0x4f633d['summary']?_0x55ca7c(0x25e)+b(_0x4f633d['summary'],0x1f4):_0x4f633d['id']?_0x55ca7c(0x25e)+_0x4f633d['id']:null:null;}function J(_0x344026,_0x4077fb,_0x4c7138,_0x51cb0e){const _0x1a9130=_0x5aee,_0x3c548a=[];_0x51cb0e&&_0x3c548a[_0x1a9130(0x1b6)](K(_0x51cb0e)),_0x3c548a[_0x1a9130(0x1b6)](_0x1a9130(0x258)+_0x344026),_0x3c548a[_0x1a9130(0x1b6)](_0x1a9130(0x256)),_0x3c548a['push'](JSON[_0x1a9130(0x221)](_0x4077fb,null,0x2)),_0x3c548a[_0x1a9130(0x1b6)](I(_0x4c7138));const _0x4647e1=re(_0x4c7138[_0x1a9130(0x24a)]);return _0x4647e1&&_0x3c548a[_0x1a9130(0x1b6)](_0x4647e1),_0x3c548a[_0x1a9130(0x20e)]('\x0a');}function O(_0x1aaa4e){const _0x5187b9=_0x5aee;return _0x1aaa4e[_0x5187b9(0x1b9)]!==void 0x0||_0x1aaa4e[_0x5187b9(0x259)]!==void 0x0||_0x1aaa4e[_0x5187b9(0x25d)]!==void 0x0||_0x1aaa4e[_0x5187b9(0x23c)]!==void 0x0||Array[_0x5187b9(0x1e3)](_0x1aaa4e[_0x5187b9(0x1e2)])&&_0x1aaa4e[_0x5187b9(0x1e2)][_0x5187b9(0x1f0)]>0x0;}function N(_0xc6c2dc){const _0xc78133=_0x5aee;return _0xc6c2dc[_0xc78133(0x1b9)]!==void 0x0||_0xc6c2dc[_0xc78133(0x25d)]!==void 0x0||_0xc6c2dc['template']!==void 0x0||Array[_0xc78133(0x1e3)](_0xc6c2dc['path'])&&_0xc6c2dc[_0xc78133(0x1e2)]['length']>0x0;}function se(_0x23b9fd,_0x219a69){const _0x2c0014=_0x5aee;return typeof _0x23b9fd==_0x2c0014(0x1cb)&&_0x23b9fd[_0x2c0014(0x199)]()!==''&&!O(_0x219a69);}function ae(_0x57dfb8,_0xdcbd9e){const _0x2baf0b=_0x5aee;return typeof _0x57dfb8==_0x2baf0b(0x1cb)&&_0x57dfb8[_0x2baf0b(0x199)]()!==''&&!N(_0xdcbd9e);}function $(_0x232002){const _0x55fbb9=_0x5aee,_0x526b42=['summary:\x20'+_0x232002[_0x55fbb9(0x228)],'deliverables:'];_0x232002[_0x55fbb9(0x219)]['length']===0x0&&_0x526b42[_0x55fbb9(0x1b6)]('\x20\x20-\x20none');for(const _0x157825 of _0x232002[_0x55fbb9(0x219)])_0x526b42[_0x55fbb9(0x1b6)]('\x20\x20-\x20'+_0x157825);return _0x526b42[_0x55fbb9(0x20e)]('\x0a');}function U(_0x393614,_0x125a77){const _0x2fbbb6=_0x5aee,_0x15eac2=[$(_0x393614),'check:\x20'+_0x125a77[_0x2fbbb6(0x1b7)][_0x2fbbb6(0x1f0)]+_0x2fbbb6(0x1b1)];for(const _0x38fd39 of _0x125a77[_0x2fbbb6(0x1b7)])_0x15eac2[_0x2fbbb6(0x1b6)](_0x2fbbb6(0x207)+_0x38fd39['code']+':\x20'+_0x38fd39[_0x2fbbb6(0x174)]);return _0x15eac2['join']('\x0a');}function W(_0x27597f,_0x511e90,_0x5180f8){const _0xcf4b45=_0x5aee;if(_0x5180f8[_0xcf4b45(0x1f4)])_0x40216c({'action':_0x511e90,'summary':_0x27597f[_0xcf4b45(0x228)],'deliverables':_0x27597f[_0xcf4b45(0x219)],'questions':_0x27597f[_0xcf4b45(0x266)],'input':null},_0x5180f8);else{const _0x343e50=_0x27597f[_0xcf4b45(0x266)][_0xcf4b45(0x1d9)](_0x153de5=>_0xcf4b45(0x207)+_0x153de5)['join']('\x0a');_0x40216c($(_0x27597f)+_0xcf4b45(0x1cd)+_0x343e50,_0x5180f8);}process[_0xcf4b45(0x1bc)]=0x1;}function pe(_0x1b4bad){const _0x16ab31=_0x5aee;return _0x1b4bad[_0x16ab31(0x23b)]===void 0x0&&_0x1b4bad[_0x16ab31(0x220)]===void 0x0?null:{'repoUrl':_0x1b4bad[_0x16ab31(0x23b)],'baseCommit':_0x1b4bad[_0x16ab31(0x220)]};}async function P({api:_0x396cfc,home:_0x6ab66b,objective:_0x23e6d9,answers:_0xc02b90,parent:_0x3cd4e0=null,source:_0x3c9993=null,github:_0x33d3bb=!0x1,opts:_0x28c93f,loadPlanner:_0x25b3ad}){const _0x1f0521=_0x5aee;return _0x1ddb5f({'api':_0x396cfc,'home':_0x6ab66b,'loadPlanner':_0x25b3ad,'objective':_0x23e6d9,'answers':_0xc02b90,'parent':_0x3cd4e0,'source':_0x3c9993,'github':_0x33d3bb,'ask':!_0x28c93f[_0x1f0521(0x1f4)]&&process[_0x1f0521(0x1dc)][_0x1f0521(0x216)]?_0x5da7a4:null});}function R(_0x28d2d7,_0x50cb13,{api:_0x3c7f0d,action:_0x28c8c4}){const _0x1149d2=_0x5aee;if(!_0x28d2d7)throw new Error(_0x1149d2(0x24f)+_0x50cb13);if(_0x28d2d7[_0x1149d2(0x24e)]!==_0x3c7f0d)throw new Error(_0x1149d2(0x19f)+_0x28d2d7[_0x1149d2(0x1fe)]+_0x1149d2(0x21a)+_0x28d2d7['api']+_0x1149d2(0x250)+_0x28d2d7[_0x1149d2(0x24e)]);if(_0x28d2d7['action']!==_0x28c8c4)throw new Error(_0x1149d2(0x20a)+_0x28d2d7[_0x1149d2(0x1fe)]+'\x20was\x20created\x20for\x20action\x20'+_0x28d2d7[_0x1149d2(0x1e7)]+_0x1149d2(0x175)+_0x28c8c4);if(!_0x28d2d7[_0x1149d2(0x191)]||typeof _0x28d2d7[_0x1149d2(0x191)]!='object'||Array[_0x1149d2(0x1e3)](_0x28d2d7[_0x1149d2(0x191)]))throw new Error(_0x1149d2(0x20a)+_0x28d2d7[_0x1149d2(0x1fe)]+_0x1149d2(0x1eb));return _0x28d2d7['input'];}function ue(_0x25a842,_0x561660){const _0x465abe=_0x5aee;return _0x465abe(0x1e6)+_0x25a842[_0x465abe(0x24e)]+_0x465abe(0x234)+_0x561660[_0x465abe(0x189)]+'\x20task\x20create\x20--request-key\x20'+_0x25a842[_0x465abe(0x1fe)];}function le(_0xf583fd,_0x2271aa){const _0x2e12d0=_0x5aee;return _0x2e12d0(0x1e6)+_0xf583fd[_0x2e12d0(0x24e)]+_0x2e12d0(0x234)+_0x2271aa[_0x2e12d0(0x189)]+'\x20task\x20continue\x20'+_0xf583fd['input']['parentJobId']+'\x20--request-key\x20'+_0xf583fd[_0x2e12d0(0x1fe)];}function ge(_0x511387,{loadPlanner:_0x154f0a=_0x43d523}={}){const _0x561359=_0x5aee,_0x3c66da=_0x511387['command'](_0x561359(0x18c))[_0x561359(0x254)](_0x561359(0x1ed));_0x287884(_0x3c66da),_0x3c66da[_0x561359(0x233)](_0x561359(0x211))[_0x561359(0x254)](_0x561359(0x230))[_0x561359(0x244)]('--q\x20<text>','objective\x20or\x20job\x20id\x20prefix')[_0x561359(0x244)](_0x561359(0x19e),'creation-time\x20cursor\x20(exclusive)')['option']('--since\x20<time>','jobs\x20that\x20moved\x20after\x20this\x20time')[_0x561359(0x244)](_0x561359(0x20d),_0x561359(0x1e4))['option']('--exclude-oracle',_0x561359(0x17a))['action'](async(_0x585187,_0x4732d1)=>{const _0x12c648=_0x561359,_0x42c827=_0x4732d1[_0x12c648(0x1a0)](),_0x1817d2=await _0x6e1b30(_0x42c827['api'],ee(_0x42c827));_0x40216c(_0x42c827[_0x12c648(0x1f4)]?_0x1817d2['data']:te(_0x1817d2[_0x12c648(0x1ca)]),_0x42c827);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x235))['description'](_0x561359(0x201))[_0x561359(0x1e7)](async(_0x2e606f,_0x2d9166,_0x4890c7)=>{const _0x2a1fd2=_0x561359,_0x410f0b=_0x4890c7[_0x2a1fd2(0x1a0)](),_0x4248eb=await _0x6e1b30(_0x410f0b[_0x2a1fd2(0x24e)],_0x2a1fd2(0x1a5)+encodeURIComponent(_0x2e606f));_0x40216c(_0x410f0b[_0x2a1fd2(0x1f4)]?_0x4248eb[_0x2a1fd2(0x1ca)]:ne(_0x4248eb[_0x2a1fd2(0x1ca)]),_0x410f0b);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x1cf))[_0x561359(0x254)]('show\x20a\x20job\x20result\x20and\x20artifact\x20URLs')[_0x561359(0x1e7)](async(_0x3aa943,_0x243e4e,_0x2afdac)=>{const _0x8b8efc=_0x561359,_0x1452af=_0x2afdac[_0x8b8efc(0x1a0)](),_0x576925=await _0x6e1b30(_0x1452af[_0x8b8efc(0x24e)],_0x8b8efc(0x1a5)+encodeURIComponent(_0x3aa943)+_0x8b8efc(0x1ff));_0x40216c(_0x1452af[_0x8b8efc(0x1f4)]?_0x576925[_0x8b8efc(0x1ca)]:S(_0x576925[_0x8b8efc(0x1ca)]),_0x1452af);}),_0x3c66da[_0x561359(0x233)]('wait\x20<id>')[_0x561359(0x254)](_0x561359(0x1c0))[_0x561359(0x244)](_0x561359(0x1d4),_0x561359(0x1bf),String(_0x4e7f2d))[_0x561359(0x244)](_0x561359(0x251),'total\x20timeout\x20in\x20seconds',String(_0x2f6fa0))[_0x561359(0x1e7)](async(_0x123623,_0x50036b,_0x24f059)=>{const _0x44546d=_0x561359,_0x38b69d=_0x24f059['optsWithGlobals'](),_0x156b64=await _0x36a815({'api':_0x38b69d['api'],'id':_0x123623,'interval':_0x38b69d[_0x44546d(0x190)],'timeout':_0x38b69d[_0x44546d(0x24b)],'onProgress':_0x4aea78=>{const _0x309747=_0x44546d;_0x4aea78[_0x309747(0x186)]===_0x309747(0x1cc)?_0x253e14('wait:\x20'+_0x4aea78[_0x309747(0x19c)]+_0x309747(0x1fb)+_0x4aea78[_0x309747(0x23d)]+_0x309747(0x1e8)+_0x4aea78[_0x309747(0x184)]+',\x20'+(_0x4aea78[_0x309747(0x1b2)]/0x3e8)[_0x309747(0x22d)](0x1)+'s)\x0a'):_0x4aea78[_0x309747(0x186)]===_0x309747(0x1ac)&&_0x253e14('wait:\x20'+(_0x4aea78[_0x309747(0x249)]?_0x309747(0x22a)+_0x4aea78[_0x309747(0x249)]:_0x309747(0x19b))+';\x20retrying\x20in\x20'+(_0x4aea78[_0x309747(0x1a1)]/0x3e8)[_0x309747(0x22d)](0x1)+_0x309747(0x20b)+_0x4aea78[_0x309747(0x1c7)]+')\x0a');}});if(_0x156b64[_0x44546d(0x239)]===_0x44546d(0x205)){_0x253e14(_0x44546d(0x20c)),process['exitCode']=0x82;return;}_0x156b64[_0x44546d(0x215)]&&_0x40216c(_0x38b69d[_0x44546d(0x1f4)]?_0x156b64[_0x44546d(0x215)]:S(_0x156b64[_0x44546d(0x215)]),_0x38b69d),_0x156b64['outcome']!==_0x44546d(0x1f5)&&(_0x253e14(_0x44546d(0x1b8)+_0x156b64[_0x44546d(0x1fa)]+'\x0a'),process['exitCode']=0x1);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x1f3))['description'](_0x561359(0x265))[_0x561359(0x1ea)](_0x561359(0x1ee),'destination\x20directory')[_0x561359(0x1e7)](async(_0x3e45b4,_0x134ada,_0x8b85a0)=>{const _0x376b7d=_0x561359,_0x39680e=_0x8b85a0['optsWithGlobals'](),_0x100458=await _0x59c773({'api':_0x39680e[_0x376b7d(0x24e)],'id':_0x3e45b4,'out':_0x39680e[_0x376b7d(0x26e)],'onProgress':_0x1bd4cb=>{const _0x31ba0a=_0x376b7d;_0x1bd4cb[_0x31ba0a(0x186)]===_0x31ba0a(0x1af)&&_0x253e14('download:\x20'+_0x1bd4cb[_0x31ba0a(0x1e2)]+_0x31ba0a(0x21b)+_0x1bd4cb[_0x31ba0a(0x1b9)]+'\x0a');}});_0x40216c(_0x39680e[_0x376b7d(0x1f4)]?_0x100458:oe(_0x100458),_0x39680e);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x1f9))['description']('validate\x20a\x20job\x20body\x20without\x20creating\x20an\x20order')['requiredOption'](_0x561359(0x1b4),'job\x20body\x20JSON\x20file')['option'](_0x561359(0x17f),_0x561359(0x23e))['action'](async(_0x5a98ac,_0x35f706)=>{const _0xd24d48=_0x561359,_0x4455a2=_0x35f706[_0xd24d48(0x1a0)](),_0x309f15=await _0x41f5a5(_0x4455a2[_0xd24d48(0x1b9)]),_0x1292cd=_0x4455a2[_0xd24d48(0x1e7)]??_0x53f80f(_0x309f15),_0x1a601a=await _0x347c7b(_0x4455a2[_0xd24d48(0x24e)],_0x309f15,_0x1292cd);_0x40216c(_0x4455a2[_0xd24d48(0x1f4)]?_0x1a601a:I(_0x1a601a),_0x4455a2);}),_0x3c66da['command'](_0x561359(0x178))[_0x561359(0x254)](_0x561359(0x1a6))[_0x561359(0x1ea)](_0x561359(0x1b4),_0x561359(0x253))['option'](_0x561359(0x1c4),_0x561359(0x1a4))[_0x561359(0x1e7)](async(_0x486ab6,_0x278182)=>{const _0x57f371=_0x561359,_0x2f8741=_0x278182[_0x57f371(0x1a0)](),_0x42815b=await x(_0x2f8741,'job.open'),_0x5b699f=await _0x3706aa({'api':_0x2f8741[_0x57f371(0x24e)],'home':_0x2f8741[_0x57f371(0x189)],'file':_0x2f8741[_0x57f371(0x1b9)],'action':_0x57f371(0x1e5),'requestKey':_0x2f8741['requestKey'],'yes':_0x2f8741[_0x57f371(0x1ae)],'keyEnv':_0x2f8741[_0x57f371(0x245)],'rpc':_0x2f8741[_0x57f371(0x1a7)],'paymentChain':_0x2f8741[_0x57f371(0x171)]??_0x42815b?.[_0x57f371(0x171)],'payWith':_0x2f8741['payWith']??_0x42815b?.[_0x57f371(0x262)],'onProgress':_0x2aaf95(_0x2f8741)});A(_0x5b699f,_0x2f8741);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x224))['description']('create\x20a\x20job\x20from\x20a\x20clear\x20objective\x20or\x20a\x20JSON\x20file')[_0x561359(0x244)]('--file\x20<path>',_0x561359(0x22b))['option'](_0x561359(0x255),_0x561359(0x1f6))[_0x561359(0x244)](_0x561359(0x1dd),_0x561359(0x212))[_0x561359(0x244)]('--template\x20<name>','job\x20template')[_0x561359(0x244)](_0x561359(0x260),_0x561359(0x1c1),(_0x1f1c1a,_0x58f51f)=>[..._0x58f51f,_0x1f1c1a],[])[_0x561359(0x244)](_0x561359(0x238),_0x561359(0x25b))[_0x561359(0x244)](_0x561359(0x271),_0x561359(0x192))[_0x561359(0x244)](_0x561359(0x26a),_0x561359(0x204))[_0x561359(0x244)](_0x561359(0x1ad),_0x561359(0x1d1),(_0x2e439a,_0x18f6a5)=>[..._0x18f6a5,_0x2e439a],[])['option'](_0x561359(0x1d2),_0x561359(0x263))[_0x561359(0x244)](_0x561359(0x218),_0x561359(0x26d))[_0x561359(0x244)](_0x561359(0x1c4),_0x561359(0x1a4))[_0x561359(0x1e7)](async(_0x205a24,_0x2028f7,_0x3ac265)=>{const _0x48146a=_0x561359,_0x279a24=_0x3ac265[_0x48146a(0x1a0)](),_0x47fced=_0x279a24['dryRun']?null:await x(_0x279a24,_0x48146a(0x1e5)),_0x5fae7a=se(_0x205a24,_0x279a24);let _0x96574f,_0x32ddaf=null;if(_0x279a24[_0x48146a(0x1fe)]&&!O(_0x279a24)&&(_0x205a24===void 0x0||_0x5fae7a)){const _0x2bdf89=await _0x96fca9(_0x279a24['home'],_0x279a24[_0x48146a(0x1fe)]);if(_0x96574f=R(_0x2bdf89,_0x279a24[_0x48146a(0x1fe)],{'api':_0x279a24[_0x48146a(0x24e)],'action':_0x48146a(0x1e5)}),_0x205a24!==void 0x0&&_0x205a24!==_0x96574f[_0x48146a(0x1e9)])throw new Error(_0x48146a(0x20a)+_0x279a24['requestKey']+'\x20was\x20created\x20for\x20a\x20different\x20objective;\x20omit\x20the\x20new\x20objective\x20to\x20resume\x20it');}else{if(_0x5fae7a){if(_0x32ddaf=await P({'api':_0x279a24[_0x48146a(0x24e)],'home':_0x279a24['home'],'objective':_0x205a24,'answers':_0x279a24[_0x48146a(0x24d)],'source':pe(_0x279a24),'github':_0x279a24[_0x48146a(0x182)]===!0x0,'opts':_0x279a24,'loadPlanner':_0x154f0a}),_0x32ddaf[_0x48146a(0x191)]===null){W(_0x32ddaf,_0x48146a(0x1e5),_0x279a24);return;}_0x96574f=_0x32ddaf[_0x48146a(0x191)];}else{const _0x1120b3=_0x279a24[_0x48146a(0x1b9)]?await _0x41f5a5(_0x279a24[_0x48146a(0x1b9)]):void 0x0;_0x96574f=await _0x5d1a0d({'fileInput':_0x1120b3,'objective':_0x205a24,'preset':_0x279a24[_0x48146a(0x259)],'skill':_0x279a24[_0x48146a(0x25d)],'template':_0x279a24['template'],'paths':_0x279a24[_0x48146a(0x1e2)],'repo':_0x279a24[_0x48146a(0x23b)],'commit':_0x279a24[_0x48146a(0x220)],'github':_0x279a24[_0x48146a(0x182)]});}}if(_0x279a24[_0x48146a(0x185)]&&(await _0x2e7447(_0x279a24[_0x48146a(0x185)],_0x96574f),_0x279a24[_0x48146a(0x1f4)]||_0x253e14('saved\x20input:\x20'+_0x279a24['save']+'\x0a')),_0x279a24[_0x48146a(0x21f)]){const _0x372af5=await _0x347c7b(_0x279a24['api'],_0x96574f,_0x48146a(0x1e5));_0x279a24[_0x48146a(0x1f4)]?_0x40216c({'action':_0x48146a(0x1e5),..._0x32ddaf?{'summary':_0x32ddaf[_0x48146a(0x228)],'deliverables':_0x32ddaf['deliverables']}:{},'input':_0x96574f,'check':_0x372af5},_0x279a24):_0x40216c(_0x32ddaf?U(_0x32ddaf,_0x372af5):J(_0x48146a(0x1e5),_0x96574f,_0x372af5),_0x279a24),_0x372af5[_0x48146a(0x1b7)]['length']>0x0&&(process[_0x48146a(0x1bc)]=0x1);return;}_0x32ddaf&&!_0x279a24[_0x48146a(0x1f4)]&&_0x253e14($(_0x32ddaf)+'\x0a');const _0x10489b=await _0x3706aa({'api':_0x279a24[_0x48146a(0x24e)],'home':_0x279a24[_0x48146a(0x189)],'input':_0x96574f,'action':_0x48146a(0x1e5),'requestKey':_0x279a24[_0x48146a(0x1fe)],'plan':_0x32ddaf?{'summary':_0x32ddaf['summary'],'deliverables':_0x32ddaf['deliverables']}:void 0x0,'yes':_0x279a24['yes'],'keyEnv':_0x279a24[_0x48146a(0x245)],'rpc':_0x279a24[_0x48146a(0x1a7)],'paymentChain':_0x279a24[_0x48146a(0x171)]??_0x47fced?.[_0x48146a(0x171)],'payWith':_0x279a24['payWith']??_0x47fced?.[_0x48146a(0x262)],'onProgress':_0x2aaf95(_0x279a24),'retryCommand':_0x40a75c=>ue(_0x40a75c,_0x279a24)});A(_0x10489b,_0x279a24);}),_0x3c66da[_0x561359(0x233)](_0x561359(0x176))['description'](_0x561359(0x229))[_0x561359(0x244)]('--file\x20<path>',_0x561359(0x18d))[_0x561359(0x244)]('--skill\x20<id>','runnable\x20skill\x20id')[_0x561359(0x244)](_0x561359(0x203),_0x561359(0x188))[_0x561359(0x244)](_0x561359(0x260),_0x561359(0x1c1),(_0x17d858,_0x2ef27d)=>[..._0x2ef27d,_0x17d858],[])[_0x561359(0x244)](_0x561359(0x1ad),_0x561359(0x1d1),(_0x3517f2,_0x58f436)=>[..._0x58f436,_0x3517f2],[])[_0x561359(0x244)](_0x561359(0x1d2),'only\x20run\x20the\x20free\x20check\x20and\x20print\x20the\x20input')[_0x561359(0x244)](_0x561359(0x218),_0x561359(0x26d))[_0x561359(0x244)]('--request-key\x20<uuid>',_0x561359(0x1a4))['action'](async(_0x308516,_0x4da877,_0x3cd0f5,_0x5dc8eb)=>{const _0x215cdd=_0x561359,_0x120030=_0x5dc8eb[_0x215cdd(0x1a0)](),_0x1a34e1=_0x120030['dryRun']?null:await x(_0x120030,_0x215cdd(0x223)),_0x526d11=ae(_0x4da877,_0x120030);let _0x33c19a,_0x364b12,_0x4eb4df=null;if(_0x120030[_0x215cdd(0x1fe)]&&!N(_0x120030)&&(_0x4da877===void 0x0||_0x526d11)){const _0x51fd92=await _0x96fca9(_0x120030[_0x215cdd(0x189)],_0x120030[_0x215cdd(0x1fe)]);if(_0x33c19a=R(_0x51fd92,_0x120030[_0x215cdd(0x1fe)],{'api':_0x120030[_0x215cdd(0x24e)],'action':'job.continue'}),_0x33c19a[_0x215cdd(0x200)]!==_0x308516)throw new Error(_0x215cdd(0x20a)+_0x120030[_0x215cdd(0x1fe)]+_0x215cdd(0x194)+(_0x33c19a[_0x215cdd(0x200)]??_0x215cdd(0x18b))+_0x215cdd(0x175)+_0x308516);if(_0x4da877!==void 0x0&&_0x4da877!==_0x33c19a[_0x215cdd(0x1e9)])throw new Error(_0x215cdd(0x20a)+_0x120030[_0x215cdd(0x1fe)]+'\x20was\x20created\x20for\x20a\x20different\x20objective;\x20omit\x20the\x20new\x20objective\x20to\x20resume\x20it');_0x364b12=(await _0x6e1b30(_0x120030[_0x215cdd(0x24e)],_0x215cdd(0x1a5)+encodeURIComponent(_0x308516)))[_0x215cdd(0x1ca)];}else{if(_0x526d11){if(_0x364b12=(await _0x6e1b30(_0x120030[_0x215cdd(0x24e)],_0x215cdd(0x1a5)+encodeURIComponent(_0x308516)))[_0x215cdd(0x1ca)],_0x4eb4df=await P({'api':_0x120030[_0x215cdd(0x24e)],'home':_0x120030[_0x215cdd(0x189)],'objective':_0x4da877,'answers':_0x120030[_0x215cdd(0x24d)],'parent':_0x364b12,'opts':_0x120030,'loadPlanner':_0x154f0a}),_0x4eb4df[_0x215cdd(0x191)]===null){W(_0x4eb4df,'job.continue',_0x120030);return;}_0x33c19a=_0x4eb4df[_0x215cdd(0x191)],_0x33c19a['parentJobId']!==_0x308516&&(_0x33c19a={..._0x33c19a,'parentJobId':_0x308516});}else{const _0x4a9f6b=_0x120030[_0x215cdd(0x1b9)]?await _0x41f5a5(_0x120030['file']):void 0x0;_0x33c19a=await _0x274855({'id':_0x308516,'fileInput':_0x4a9f6b,'objective':_0x4da877,'skill':_0x120030[_0x215cdd(0x25d)],'template':_0x120030[_0x215cdd(0x23c)],'paths':_0x120030['path']}),_0x364b12=(await _0x6e1b30(_0x120030['api'],_0x215cdd(0x1a5)+encodeURIComponent(_0x308516)))['data'];}}if(_0x120030[_0x215cdd(0x185)]&&(await _0x2e7447(_0x120030[_0x215cdd(0x185)],_0x33c19a),_0x120030[_0x215cdd(0x1f4)]||_0x253e14(_0x215cdd(0x231)+_0x120030[_0x215cdd(0x185)]+'\x0a')),_0x120030[_0x215cdd(0x21f)]){const _0xd1bcde=await _0x347c7b(_0x120030[_0x215cdd(0x24e)],_0x33c19a,_0x215cdd(0x223));_0x120030[_0x215cdd(0x1f4)]?_0x40216c({'action':'job.continue',..._0x4eb4df?{'summary':_0x4eb4df[_0x215cdd(0x228)],'deliverables':_0x4eb4df[_0x215cdd(0x219)]}:{},'parent':_0x3bbc3b(_0x364b12),'input':_0x33c19a,'check':_0xd1bcde},_0x120030):_0x40216c(_0x4eb4df?U(_0x4eb4df,_0xd1bcde):J(_0x215cdd(0x223),_0x33c19a,_0xd1bcde,_0x364b12),_0x120030),_0xd1bcde[_0x215cdd(0x1b7)]['length']>0x0&&(process['exitCode']=0x1);return;}_0x4eb4df&&!_0x120030[_0x215cdd(0x1f4)]&&_0x253e14($(_0x4eb4df)+'\x0a');const _0x2ff870=await _0x3706aa({'api':_0x120030[_0x215cdd(0x24e)],'home':_0x120030[_0x215cdd(0x189)],'input':_0x33c19a,'action':_0x215cdd(0x223),'requestKey':_0x120030[_0x215cdd(0x1fe)],'plan':_0x4eb4df?{'summary':_0x4eb4df['summary'],'deliverables':_0x4eb4df[_0x215cdd(0x219)]}:void 0x0,'yes':_0x120030[_0x215cdd(0x1ae)],'keyEnv':_0x120030[_0x215cdd(0x245)],'rpc':_0x120030['rpc'],'paymentChain':_0x120030[_0x215cdd(0x171)]??_0x1a34e1?.[_0x215cdd(0x171)],'payWith':_0x120030[_0x215cdd(0x262)]??_0x1a34e1?.[_0x215cdd(0x262)],'onProgress':_0x2aaf95(_0x120030),'retryCommand':_0x8b24e2=>le(_0x8b24e2,_0x120030)});_0x2ff870[_0x215cdd(0x19c)]&&(_0x2ff870[_0x215cdd(0x19c)]['parent']=_0x3bbc3b(_0x364b12)),A(_0x2ff870,_0x120030);});}export{ge as registerTaskCommands};
|
|
1
|
+
import{writeDiagnostic as _0x2862f9}from'../lib/terminal-text.mjs';import{paymentProgressReporter as _0x2a5beb}from'../lib/payment-progress.mjs';import{request as _0x26acd9,print as _0x476ca0}from'../shared.mjs';import{checkJob as _0x1dff41,publishJob as _0x3ad2f2,readJobFile as _0x39d335}from'../lib/publish.mjs';import{loadOrder as _0x1ca526,orderActions as _0x3a31d5}from'../lib/orders.mjs';import{buildContinueInput as _0x28e893,buildCreateInput as _0x143214,parentSummary as _0x3e2902,resolveAction as _0x54cacc,saveInputFile as _0xe1af48}from'../lib/task-input.mjs';import{DEFAULT_INTERVAL_SECONDS as _0x233852,DEFAULT_TIMEOUT_SECONDS as _0x619e2e,downloadTaskFiles as _0x30c0a9,waitForResult as _0x5e1f3f}from'../lib/task-result.mjs';import{askQuestions as _0x42664e,loadLocalPlanner as _0x3dff96,planTask as _0x42d9d8}from'../planner/flow.mjs';import{registerMyTaskCommands as _0x195918}from'./my-tasks.mjs';import{orderPayment as _0x206866}from'../lib/payments.mjs';import{checkTaskWallet as _0x230293}from'../lib/task-wallet.mjs';import{imdTaskUrl as _0xe67971}from'../lib/task-link.mjs';async function x(_0x5486ce,_0x3203e3){const _0x300993=_0x43c3;let _0x22da72;if(_0x5486ce['requestKey']){const _0x668d32=await _0x1ca526(_0x5486ce['home'],_0x5486ce[_0x300993(0x164)]);if(_0x668d32&&!_0x3a31d5(_0x668d32)[_0x300993(0x134)])return null;_0x668d32&&(_0x22da72={'paymentChain':_0x668d32[_0x300993(0x112)]??_0x300993(0x114),'payWith':_0x668d32[_0x300993(0x12e)]??_0x300993(0xb7)});}const _0x5c8b83=await _0x230293({..._0x5486ce,'action':_0x3203e3,'prefer':_0x22da72});return _0x5486ce['json']||_0x2862f9(_0x300993(0x19f)+_0x5c8b83[_0x300993(0x12e)]+_0x300993(0xd6)+_0x5c8b83[_0x300993(0x159)]+_0x300993(0x138)),_0x5c8b83;}function te(_0x13a824){const _0x33378=_0x43c3,_0x2ada68=new URLSearchParams();if(_0x13a824['q']!==void 0x0&&_0x2ada68[_0x33378(0xe9)]('q',_0x13a824['q']),_0x13a824['before']!==void 0x0&&_0x2ada68[_0x33378(0xe9)]('before',_0x13a824[_0x33378(0x14c)]),_0x13a824[_0x33378(0xd2)]!==void 0x0&&_0x2ada68[_0x33378(0xe9)](_0x33378(0xd2),_0x13a824['since']),_0x13a824[_0x33378(0x14f)]!==void 0x0){const _0xb1a6c=Number(_0x13a824[_0x33378(0x14f)]);if(!Number[_0x33378(0x1a9)](_0xb1a6c)||_0xb1a6c<0x1||_0xb1a6c>0x1f4)throw new Error(_0x33378(0x12d));_0x2ada68[_0x33378(0xe9)](_0x33378(0x14f),String(_0xb1a6c));}_0x13a824[_0x33378(0x160)]&&_0x2ada68['set']('exclude',_0x33378(0x1b0));const _0x5439e6=_0x2ada68[_0x33378(0x1ac)]();return _0x5439e6?_0x33378(0x123)+_0x5439e6:_0x33378(0x1ad);}function b(_0x4a1dba,_0x551a9e=0x5a){const _0x15b297=_0x43c3,_0x5c14e9=String(_0x4a1dba??'')['replace'](/\s+/g,'\x20')[_0x15b297(0xda)]();return _0x5c14e9[_0x15b297(0x1b5)]>_0x551a9e?_0x5c14e9[_0x15b297(0x158)](0x0,_0x551a9e-0x1)+'…':_0x5c14e9;}function ne(_0x22c05a){const _0x2c246b=_0x43c3;if(!Array[_0x2c246b(0x152)](_0x22c05a?.[_0x2c246b(0xea)]))throw new Error(_0x2c246b(0xd8));const _0x16cba4=[_0x22c05a['count']+_0x2c246b(0x173)];for(const _0x586781 of _0x22c05a[_0x2c246b(0xea)])_0x16cba4[_0x2c246b(0x119)](_0x586781['id']+'\x20\x20'+_0x586781[_0x2c246b(0x166)][_0x2c246b(0x136)](0xa)+'\x20\x20'+String(_0x586781[_0x2c246b(0x109)]??'')[_0x2c246b(0x136)](0x16)+'\x20\x20'+(_0x586781['updatedAt']??'')+'\x20\x20'+b(_0x586781[_0x2c246b(0x1a2)]));return _0x16cba4[_0x2c246b(0x13b)]('\x0a');}function oe(_0x551d1d){const _0x1b6738=_0x43c3;if(!_0x551d1d?.['id'])throw new Error(_0x1b6738(0x17e));const _0x18cda0=[_0x1b6738(0x15a)+_0x551d1d['id'],_0x1b6738(0xf4)+_0xe67971(_0x551d1d['id']),_0x1b6738(0x16e)+_0x551d1d[_0x1b6738(0x166)],'template:\x20\x20'+(_0x551d1d[_0x1b6738(0x109)]??''),_0x1b6738(0x19b)+b(_0x551d1d[_0x1b6738(0x1a2)],0x1f4),'created:\x20\x20\x20'+(_0x551d1d[_0x1b6738(0x106)]??''),'updated:\x20\x20\x20'+(_0x551d1d[_0x1b6738(0x172)]??''),_0x1b6738(0x195)+(_0x551d1d['paidBy']??''),_0x1b6738(0x168)+(_0x551d1d[_0x1b6738(0xbf)]?_0x551d1d['project']['id']+'\x20('+(_0x551d1d[_0x1b6738(0xbf)][_0x1b6738(0x15d)]?.['length']??0x0)+'\x20version(s))':_0x1b6738(0x115)),_0x1b6738(0xd5)+(_0x551d1d['delivery']?JSON[_0x1b6738(0x156)](_0x551d1d[_0x1b6738(0x17c)]):_0x1b6738(0x115)),_0x1b6738(0xeb)+(_0x551d1d[_0x1b6738(0xb4)]?JSON[_0x1b6738(0x156)](_0x551d1d[_0x1b6738(0xb4)]):_0x1b6738(0x115))];if(Array[_0x1b6738(0x152)](_0x551d1d[_0x1b6738(0xee)])){_0x18cda0[_0x1b6738(0x119)](_0x1b6738(0x15c)+_0x551d1d[_0x1b6738(0xee)][_0x1b6738(0x1b5)]);for(const _0x59493f of _0x551d1d[_0x1b6738(0xee)])_0x18cda0[_0x1b6738(0x119)](_0x1b6738(0x10e)+_0x59493f[_0x1b6738(0x16a)]+':\x20'+_0x59493f[_0x1b6738(0x166)]+'\x20attempt='+_0x59493f[_0x1b6738(0xe1)]+'\x20verdict='+(_0x59493f[_0x1b6738(0x167)]?.[_0x1b6738(0x178)]??_0x1b6738(0x115)));}return Array[_0x1b6738(0x152)](_0x551d1d['reviews'])&&_0x18cda0['push']('reviews:\x20\x20\x20'+_0x551d1d[_0x1b6738(0x14d)]['length']),_0x551d1d['workflow']?.['id']&&_0x18cda0[_0x1b6738(0x119)]((_0x1b6738(0xfd)+_0x551d1d['workflow']['id']+'\x20'+(_0x551d1d['workflow'][_0x1b6738(0x178)]??''))[_0x1b6738(0xda)]()),_0x18cda0[_0x1b6738(0x13b)]('\x0a');}function _0xe932(){const _0x395a85=['launch','jobId','explorerUrl','IMD','result\x20<id>','reason','reuse\x20a\x20saved\x20order\x20request\x20key','complete\x20continuation\x20body\x20JSON\x20file','--file\x20<path>','download:\x20','preset','project','\x20head=','message','option',';\x20retrying\x20in\x20','template:\x20\x20','request\x20key\x20','named\x20input\x20preset\x20(report)','source:\x20\x20\x20\x20','--commit\x20<sha>','plan','publish\x20the\x20result\x20to\x20GitHub','statusUrl:\x20','\x20--request-key\x20','head','Your\x20request\x20is\x20saved.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Network\x20error','\x20was\x20created\x20for\x20action\x20','code','since','detail','dryRun','delivery:\x20\x20','\x20on\x20','result\x20response\x20is\x20missing\x20jobId','jobs\x20response\x20is\x20missing\x20jobs','source','trim','order\x20','runnable\x20skill\x20id','challenge','blockers:\x20','github',';\x20rerun\x20with\x20--api\x20','attempt','\x20\x20\x20\x20url:\x20\x20','prepared\x20input:','deliverables:','delayMs','\x20blocker(s)','title','transaction:\x20','set','jobs','launch:\x20\x20\x20\x20','--repo\x20<url>','wait:\x20','nodes','<none>','save','parent','paidBy','base\x20commit\x20for\x20--repo','IMD:\x20\x20\x20\x20\x20\x20\x20','s)\x0a','action','saved','file','\x0aquestions:\x0a','--skill\x20<id>','--dry-run','keyEnv','workflow:\x20\x20','inspect:\x20colony\x20order\x20show\x20','orderId','exitCode','parent:\x20\x20\x20\x20','--since\x20<time>','download\x20a\x20completed\x20job\x27s\x20files\x20under\x20--out','url','unknown','createdAt','input:','\x20task\x20create\x20--request-key\x20','template','reason:\x20\x20\x20\x20\x20\x20','--before\x20<time>','type','/result','\x20\x20-\x20','payment_reconciling','skill','\x0anot\x20paid:\x20blockers\x20must\x20be\x20resolved\x20first\x0a','paymentChain','check','ethereum','none','blocked','--template\x20<name>','--path\x20<path>','push','completed','show\x20one\x20job','--timeout\x20<seconds>','poll\x20interval\x20in\x20seconds','blockers','expiresAt','out','repo','asset','/jobs?','create\x20a\x20job\x20from\x20a\x20clear\x20objective\x20or\x20a\x20JSON\x20file','--save\x20<path>','statusUrl','objective\x20or\x20job\x20id\x20prefix','\x20was\x20admitted,\x20but\x20IMD\x20refused\x20the\x20job.','rpc','wait:\x20interrupted\x0a','answer','job.continue','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20500','payWith','plan:\x20','path','--preset\x20<name>','bytes','public\x20GitHub\x20repository\x20URL','canCancel','explorer:\x20\x20\x20\x20','padEnd','\x20was\x20created\x20for\x20a\x20different\x20objective;\x20omit\x20the\x20new\x20objective\x20to\x20resume\x20it','\x20(enough\x20balance\x20found).\x0a','only\x20run\x20the\x20free\x20check\x20and\x20print\x20the\x20input','short','join','payTo','summary','files:\x20\x20\x20\x20\x20','json','admitted','interrupted','quote','\x20bytes)','continue\x20<id>\x20[objective]','includes','summary:\x20','\x20belongs\x20to\x20','list','interval','action\x20to\x20check\x20(defaults\x20from\x20parentJobId)','order\x20ended\x20with\x20status:\x20','before','reviews','parentJobId','limit','continue:\x20\x20\x20\x20colony\x20order\x20submit\x20','questions','isArray','poll\x20a\x20job\x20result\x20until\x20it\x20completes,\x20fails\x20or\x20times\x20out','expired','answer\x20a\x20business\x20clarification\x20(repeatable)','stringify','--github','slice','chainName','job:\x20\x20\x20\x20\x20\x20\x20','map','nodes:\x20\x20\x20\x20\x20','versions','command','timeout','excludeOracle','submissionHash','refusalProblems','saved\x20input:\x20','requestKey','repository\x20path\x20the\x20job\x20may\x20write\x20(repeatable)','state','verdict','project:\x20\x20\x20','complete\x20job\x20body\x20JSON\x20file','key','paymentStatus','retry','result','state:\x20\x20\x20\x20\x20','--answer\x20<text>','deliverables','data','updatedAt','\x20job(s)','\x20bytes,\x20','/jobs/','transaction_pending','Payment\x20needs\x20review.','status','requiredOption','continue\x20the\x20project\x20of\x20a\x20job\x20you\x20paid\x20for','\x20complete=','delivery','job.open','job\x20response\x20is\x20missing\x20id','create\x20[objective]','files','--out\x20<dir>','check:\x20\x20\x20\x20\x20','transactionHash','action:\x20\x20\x20\x20','\x20tx\x20','show\x20<id>','colony\x20--api\x20','commit','save\x20the\x20input\x20JSON\x20without\x20overwriting','outcome','\x20task\x20continue\x20','order:\x20\x20\x20\x20\x20','isTTY','hash','refused','s\x20(retry\x20','transaction','wait\x20<id>','pendingTransaction','\x20->\x20','paid\x20by:\x20\x20\x20','api','--limit\x20<n>','job\x20template','\x20--home\x20','description','objective:\x20','yes','--request-key\x20<uuid>','amount','Paying\x20with\x20','tx:\x20\x20\x20\x20\x20\x20\x20\x20','home','objective','toFixed','list\x20jobs','payment_failed','kind','resultUrl','\x20\x20\x20\x20hash:\x20','isInteger','optsWithGlobals','show\x20a\x20job\x20result\x20and\x20artifact\x20URLs','toString','/jobs','input','poll','oracle','string','\x20--refresh','mediaType','job\x20body\x20JSON\x20file','length'];_0xe932=function(){return _0x395a85;};return _0xe932();}function K(_0xccae35){const _0x2bddae=_0x43c3;if(!_0xccae35?.['jobId'])throw new Error(_0x2bddae(0xd7));const _0x414729=[_0x2bddae(0x15a)+_0xccae35[_0x2bddae(0xb5)],_0x2bddae(0x16e)+_0xccae35['state'],'complete:\x20\x20'+_0xccae35['complete']],_0x3fd6bc=Array[_0x2bddae(0x152)](_0xccae35['files'])?_0xccae35['files']:[];_0x414729[_0x2bddae(0x119)]('files:\x20\x20\x20\x20\x20'+_0x3fd6bc[_0x2bddae(0x1b5)]);for(const _0x1ec649 of _0x3fd6bc)_0x414729['push'](_0x2bddae(0x10e)+_0x1ec649[_0x2bddae(0x130)]+'\x20('+_0x1ec649['bytes']+_0x2bddae(0x174)+_0x1ec649[_0x2bddae(0x1b3)]+')'),_0x414729[_0x2bddae(0x119)](_0x2bddae(0x1a8)+_0x1ec649[_0x2bddae(0x18e)]),_0x414729[_0x2bddae(0x119)](_0x2bddae(0xe2)+_0x1ec649[_0x2bddae(0x104)]);const _0x4ade9e=Array[_0x2bddae(0x152)](_0xccae35[_0x2bddae(0xd9)])?_0xccae35[_0x2bddae(0xd9)]:[];_0x414729['push'](_0x2bddae(0xc7)+_0x4ade9e[_0x2bddae(0x1b5)]);for(const _0x40f223 of _0x4ade9e)_0x414729[_0x2bddae(0x119)](_0x2bddae(0x10e)+(_0x40f223['node']??_0x40f223[_0x2bddae(0x161)])+':\x20'+_0x40f223[_0x2bddae(0x104)]);return _0xccae35['delivery']&&_0x414729['push']('delivery:\x20\x20'+JSON['stringify'](_0xccae35[_0x2bddae(0x17c)])),_0xccae35[_0x2bddae(0xb4)]&&_0x414729[_0x2bddae(0x119)](_0x2bddae(0xeb)+JSON[_0x2bddae(0x156)](_0xccae35['launch'])),_0x414729[_0x2bddae(0x13b)]('\x0a');}function ie(_0x4ff891){const _0x28157c=_0x43c3,_0x4e2538=[_0x28157c(0x15a)+_0x4ff891[_0x28157c(0xb5)],'state:\x20\x20\x20\x20\x20'+_0x4ff891['state'],_0x28157c(0x13e)+_0x4ff891[_0x28157c(0x180)]['length']];for(const _0x3b97f7 of _0x4ff891[_0x28157c(0x180)])_0x4e2538[_0x28157c(0x119)](_0x28157c(0x10e)+_0x3b97f7[_0x28157c(0x130)]+_0x28157c(0x194)+_0x3b97f7[_0x28157c(0xf8)]+'\x20('+_0x3b97f7[_0x28157c(0x132)]+_0x28157c(0x143)),_0x4e2538[_0x28157c(0x119)](_0x28157c(0x1a8)+_0x3b97f7[_0x28157c(0x18e)]);return _0x4e2538[_0x28157c(0x13b)]('\x0a');}function T(_0x19d003){const _0x259221=_0x43c3,_0x308e6d=[_0x259221(0xde)+_0x19d003[_0x259221(0x11e)][_0x259221(0x1b5)]];for(const _0x145dee of _0x19d003['blockers'])_0x308e6d[_0x259221(0x119)](_0x259221(0x10e)+_0x145dee[_0x259221(0xd1)]+':\x20'+_0x145dee[_0x259221(0xd3)]);const _0x3b1e79=Array[_0x259221(0x152)](_0x19d003[_0x259221(0xc9)])?_0x19d003[_0x259221(0xc9)]:[];_0x308e6d['push'](_0x259221(0x12f)+_0x3b1e79['length']);for(const _0x1dc838 of _0x3b1e79)_0x308e6d[_0x259221(0x119)](_0x259221(0x10e)+(_0x1dc838[_0x259221(0xe7)]??_0x1dc838[_0x259221(0x13a)]??_0x1dc838[_0x259221(0x110)])+(_0x1dc838[_0x259221(0x110)]?'\x20('+_0x1dc838[_0x259221(0x110)]+')':''));return _0x308e6d[_0x259221(0x13b)]('\x0a');}function A(_0x3dbc41){const _0x2fb56d=_0x43c3,_0x44b9ea=_0x3dbc41[_0x2fb56d(0x142)]?_0x206866(_0x3dbc41):null;return{'status':_0x3dbc41[_0x2fb56d(0x178)],'action':_0x3dbc41['action'],'requestKey':_0x3dbc41['requestKey'],'orderId':_0x3dbc41[_0x2fb56d(0xff)],'jobId':_0x3dbc41[_0x2fb56d(0xb5)]??null,'taskUrl':_0xe67971(_0x3dbc41['jobId']),'statusUrl':_0x3dbc41[_0x2fb56d(0x126)]??null,'resultUrl':_0x3dbc41['resultUrl']??null,'transactionHash':_0x3dbc41['transactionHash']??null,'problems':_0x3dbc41[_0x2fb56d(0x162)]??null,'parentJobId':_0x3dbc41[_0x2fb56d(0x1ae)]?.[_0x2fb56d(0x14e)]??null,'parent':_0x3dbc41['parent']??null,'project':_0x3dbc41['check']?.[_0x2fb56d(0xbf)]??null,'payer':_0x3dbc41['payer']??null,'paymentChain':_0x3dbc41[_0x2fb56d(0x112)]??_0x2fb56d(0x114),'payWith':_0x3dbc41[_0x2fb56d(0x12e)]??_0x2fb56d(0xb7),'prepared':_0x3dbc41[_0x2fb56d(0xdd)]?.[_0x2fb56d(0x1ae)]??null,'quote':_0x3dbc41['quote']?{'amount':_0x44b9ea[_0x2fb56d(0x19e)],'asset':_0x44b9ea[_0x2fb56d(0x122)],'payTo':_0x44b9ea[_0x2fb56d(0x13c)],'expiresAt':_0x3dbc41[_0x2fb56d(0x142)][_0x2fb56d(0x11f)]}:null};}function re(_0x15ff95){const _0x18186b=_0x43c3,_0x4ae6b9=['status:\x20\x20\x20\x20'+_0x15ff95['status'],_0x18186b(0x184)+_0x15ff95[_0x18186b(0xf6)],_0x18186b(0x18c)+_0x15ff95[_0x18186b(0xff)],_0x18186b(0x15a)+(_0x15ff95[_0x18186b(0xb5)]??'')];if(_0x15ff95[_0x18186b(0xb5)]&&_0x4ae6b9[_0x18186b(0x119)](_0x18186b(0xf4)+_0xe67971(_0x15ff95[_0x18186b(0xb5)])),_0x15ff95[_0x18186b(0x126)]&&_0x4ae6b9['push'](_0x18186b(0xcb)+_0x15ff95['statusUrl']),_0x15ff95[_0x18186b(0x1a7)]&&_0x4ae6b9[_0x18186b(0x119)]('resultUrl:\x20'+_0x15ff95[_0x18186b(0x1a7)]),_0x15ff95['transactionHash']&&_0x4ae6b9['push'](_0x18186b(0x1a0)+_0x15ff95[_0x18186b(0x183)]),_0x15ff95[_0x18186b(0xf1)]&&(_0x4ae6b9[_0x18186b(0x119)](_0x18186b(0x101)+_0x15ff95['parent']['id']+'\x20('+(_0x15ff95['parent'][_0x18186b(0x166)]??_0x18186b(0x105))+')'),_0x15ff95[_0x18186b(0xf1)][_0x18186b(0xbf)]&&_0x4ae6b9['push']('project:\x20\x20\x20'+_0x15ff95['parent'][_0x18186b(0xbf)]['id']+_0x18186b(0xc0)+(_0x15ff95[_0x18186b(0xf1)][_0x18186b(0xbf)][_0x18186b(0xcd)]??''))),_0x15ff95[_0x18186b(0x113)]?.[_0x18186b(0xbf)]){const _0x4ff67d=_0x15ff95['check'][_0x18186b(0xbf)];_0x4ae6b9['push'](_0x18186b(0x182)+(_0x4ff67d[_0x18186b(0x13d)]??_0x4ff67d['id']??'project\x20ready'));}return!_0x15ff95[_0x18186b(0xc9)]&&_0x15ff95['action']==='job.continue'&&_0x15ff95[_0x18186b(0xdd)]?.[_0x18186b(0x1ae)]&&(_0x4ae6b9[_0x18186b(0x119)](_0x18186b(0xe3)),_0x4ae6b9[_0x18186b(0x119)](JSON['stringify'](_0x15ff95[_0x18186b(0xdd)][_0x18186b(0x1ae)],null,0x2))),_0x4ae6b9[_0x18186b(0x13b)]('\x0a');}function _0x43c3(_0x2cc570,_0xe9321e){_0x2cc570=_0x2cc570-0xb4;const _0x43c36a=_0xe932();let _0x16a09b=_0x43c36a[_0x2cc570];return _0x16a09b;}function E(_0x1c32fa,_0x144ea0){const _0x1edc6f=_0x43c3;if(_0x1c32fa[_0x1edc6f(0x178)]===_0x1edc6f(0x116)){_0x144ea0[_0x1edc6f(0x13f)]?_0x476ca0({'status':_0x1edc6f(0x116),'action':_0x1c32fa[_0x1edc6f(0x166)][_0x1edc6f(0xf6)],'requestKey':_0x1c32fa['state']['requestKey'],'parent':_0x1c32fa['state'][_0x1edc6f(0xf1)]??null,'check':_0x1c32fa[_0x1edc6f(0x113)]},_0x144ea0):(_0x1c32fa[_0x1edc6f(0x166)][_0x1edc6f(0xf1)]&&_0x2862f9(U(_0x1c32fa['state'][_0x1edc6f(0xf1)])+'\x0a'),_0x2862f9(T(_0x1c32fa['check'])+_0x1edc6f(0x111))),process['exitCode']=0x1;return;}if(_0x1c32fa['status']==='refused'){const _0x2639d7=A(_0x1c32fa[_0x1edc6f(0x166)]);if(_0x144ea0[_0x1edc6f(0x13f)])_0x476ca0({..._0x2639d7,'status':_0x1edc6f(0x18f)},_0x144ea0);else{const _0x3c8ec8=[_0x1edc6f(0xdb)+_0x1c32fa[_0x1edc6f(0x166)][_0x1edc6f(0xff)]+_0x1edc6f(0x128),'payment:\x20'+(_0x1c32fa[_0x1edc6f(0x166)][_0x1edc6f(0x16b)]??_0x1edc6f(0x105))+(_0x1c32fa[_0x1edc6f(0x166)][_0x1edc6f(0x183)]?_0x1edc6f(0x185)+_0x1c32fa[_0x1edc6f(0x166)]['transactionHash']:'')];for(const _0x2e687c of _0x1c32fa[_0x1edc6f(0x166)]['refusalProblems']??[])_0x3c8ec8[_0x1edc6f(0x119)](_0x1edc6f(0x10e)+(_0x2e687c[_0x1edc6f(0xd1)]??_0x1edc6f(0x18f))+':\x20'+(_0x2e687c['detail']??JSON[_0x1edc6f(0x156)](_0x2e687c)));_0x3c8ec8['push'](_0x1edc6f(0xfe)+_0x1c32fa['state']['orderId']+_0x1edc6f(0x1b2)),_0x2862f9(_0x3c8ec8['join']('\x0a')+'\x0a');}process[_0x1edc6f(0x100)]=0x1;return;}if([_0x1edc6f(0x154),_0x1edc6f(0x1a5),_0x1edc6f(0x176),_0x1edc6f(0x10f)][_0x1edc6f(0x145)](_0x1c32fa[_0x1edc6f(0x178)])){const _0x4236d3=_0x1c32fa[_0x1edc6f(0x166)];if(_0x144ea0[_0x1edc6f(0x13f)])_0x476ca0({...A(_0x4236d3),'status':_0x1c32fa[_0x1edc6f(0x178)]},_0x144ea0);else{const _0x42f876=_0x4236d3[_0x1edc6f(0x193)]??_0x4236d3[_0x1edc6f(0x191)],_0x1c9151=[_0x1edc6f(0x177),_0x1edc6f(0xce)];_0x42f876?.[_0x1edc6f(0x18e)]&&_0x1c9151['push'](_0x1edc6f(0xe8)+_0x42f876['hash']+(_0x42f876[_0x1edc6f(0x1a6)]?'\x20('+_0x42f876[_0x1edc6f(0x1a6)]+')':'')),_0x42f876?.[_0x1edc6f(0xb9)]&&_0x1c9151[_0x1edc6f(0x119)](_0x1edc6f(0x10a)+_0x42f876[_0x1edc6f(0xb9)]),_0x42f876?.[_0x1edc6f(0xb6)]&&_0x1c9151[_0x1edc6f(0x119)](_0x1edc6f(0x135)+_0x42f876[_0x1edc6f(0xb6)]),_0x4236d3['transactionHash']&&_0x4236d3[_0x1edc6f(0x183)]!==_0x42f876?.[_0x1edc6f(0x18e)]&&_0x1c9151['push'](_0x1edc6f(0xe8)+_0x4236d3[_0x1edc6f(0x183)]),_0x4236d3['orderId']&&_0x1c9151[_0x1edc6f(0x119)](_0x1edc6f(0x150)+_0x4236d3[_0x1edc6f(0xff)]),_0x2862f9(_0x1c9151[_0x1edc6f(0x13b)]('\x0a')+'\x0a');}process[_0x1edc6f(0x100)]=0x1;return;}if(_0x1c32fa[_0x1edc6f(0x178)]!==_0x1edc6f(0x140))throw new Error(_0x1edc6f(0x14b)+_0x1c32fa['status']+';\x20inspect\x20it\x20with\x20colony\x20order\x20show\x20'+_0x1c32fa[_0x1edc6f(0x166)]['orderId']+_0x1edc6f(0x1b2));_0x476ca0(_0x144ea0['json']?A(_0x1c32fa[_0x1edc6f(0x166)]):re(_0x1c32fa[_0x1edc6f(0x166)]),_0x144ea0);}function U(_0x139edb){const _0x3f7848=_0x43c3,_0x2ca2df=_0x3e2902(_0x139edb),_0x524263=[_0x3f7848(0x101)+_0x2ca2df['id'],_0x3f7848(0x16e)+(_0x2ca2df[_0x3f7848(0x166)]??''),_0x3f7848(0xc4)+(_0x2ca2df['template']??''),_0x3f7848(0x19b)+b(_0x2ca2df[_0x3f7848(0x1a2)],0x1f4),_0x3f7848(0x195)+(_0x2ca2df[_0x3f7848(0xf2)]??'')];return _0x2ca2df['project']&&_0x524263['push'](_0x3f7848(0x168)+_0x2ca2df[_0x3f7848(0xbf)]['id']+_0x3f7848(0xc0)+(_0x2ca2df[_0x3f7848(0xbf)]['head']??'')+'\x20versions='+_0x2ca2df['project'][_0x3f7848(0x15d)][_0x3f7848(0x1b5)]),_0x524263[_0x3f7848(0x13b)]('\x0a');}function se(_0x65970b){const _0x3149cc=_0x43c3;return _0x65970b?_0x65970b['summary']?_0x3149cc(0x168)+b(_0x65970b[_0x3149cc(0x13d)],0x1f4):_0x65970b['id']?_0x3149cc(0x168)+_0x65970b['id']:null:null;}function J(_0x2922a3,_0x3e005e,_0x47f79b,_0x52963e){const _0x2e7def=_0x43c3,_0x5e72e4=[];_0x52963e&&_0x5e72e4[_0x2e7def(0x119)](U(_0x52963e)),_0x5e72e4[_0x2e7def(0x119)](_0x2e7def(0x184)+_0x2922a3),_0x5e72e4[_0x2e7def(0x119)](_0x2e7def(0x107)),_0x5e72e4[_0x2e7def(0x119)](JSON[_0x2e7def(0x156)](_0x3e005e,null,0x2)),_0x5e72e4[_0x2e7def(0x119)](T(_0x47f79b));const _0x52a7f8=se(_0x47f79b[_0x2e7def(0xbf)]);return _0x52a7f8&&_0x5e72e4[_0x2e7def(0x119)](_0x52a7f8),_0x5e72e4['join']('\x0a');}function O(_0x2180eb){const _0x84577=_0x43c3;return _0x2180eb['file']!==void 0x0||_0x2180eb[_0x84577(0xbe)]!==void 0x0||_0x2180eb[_0x84577(0x110)]!==void 0x0||_0x2180eb[_0x84577(0x109)]!==void 0x0||Array[_0x84577(0x152)](_0x2180eb[_0x84577(0x130)])&&_0x2180eb[_0x84577(0x130)]['length']>0x0;}function N(_0x5ed83a){const _0x724658=_0x43c3;return _0x5ed83a[_0x724658(0xf8)]!==void 0x0||_0x5ed83a[_0x724658(0x110)]!==void 0x0||_0x5ed83a[_0x724658(0x109)]!==void 0x0||Array['isArray'](_0x5ed83a[_0x724658(0x130)])&&_0x5ed83a['path'][_0x724658(0x1b5)]>0x0;}function ae(_0x2fd51f,_0x8e7d50){const _0x5a9777=_0x43c3;return typeof _0x2fd51f==_0x5a9777(0x1b1)&&_0x2fd51f[_0x5a9777(0xda)]()!==''&&!O(_0x8e7d50);}function pe(_0x28ee87,_0x1a89e9){const _0x21857f=_0x43c3;return typeof _0x28ee87==_0x21857f(0x1b1)&&_0x28ee87[_0x21857f(0xda)]()!==''&&!N(_0x1a89e9);}function $(_0x24784b){const _0x223b98=_0x43c3,_0x1a97d5=[_0x223b98(0x146)+_0x24784b[_0x223b98(0x13d)],_0x223b98(0xe4)];_0x24784b[_0x223b98(0x170)][_0x223b98(0x1b5)]===0x0&&_0x1a97d5['push']('\x20\x20-\x20none');for(const _0xd27d48 of _0x24784b[_0x223b98(0x170)])_0x1a97d5[_0x223b98(0x119)]('\x20\x20-\x20'+_0xd27d48);return _0x1a97d5[_0x223b98(0x13b)]('\x0a');}function W(_0x4c8d32,_0x314ae7){const _0x1cbe07=_0x43c3,_0x5c11e2=[$(_0x4c8d32),'check:\x20'+_0x314ae7[_0x1cbe07(0x11e)][_0x1cbe07(0x1b5)]+_0x1cbe07(0xe6)];for(const _0x256c73 of _0x314ae7['blockers'])_0x5c11e2[_0x1cbe07(0x119)]('\x20\x20-\x20'+_0x256c73[_0x1cbe07(0xd1)]+':\x20'+_0x256c73['detail']);return _0x5c11e2[_0x1cbe07(0x13b)]('\x0a');}function P(_0x2ed773,_0xd92a78,_0x1db487){const _0x4c948c=_0x43c3;if(_0x1db487[_0x4c948c(0x13f)])_0x476ca0({'action':_0xd92a78,'summary':_0x2ed773[_0x4c948c(0x13d)],'deliverables':_0x2ed773[_0x4c948c(0x170)],'questions':_0x2ed773['questions'],'input':null},_0x1db487);else{const _0x52b2d2=_0x2ed773[_0x4c948c(0x151)][_0x4c948c(0x15b)](_0x5680f9=>'\x20\x20-\x20'+_0x5680f9)['join']('\x0a');_0x476ca0($(_0x2ed773)+_0x4c948c(0xf9)+_0x52b2d2,_0x1db487);}process[_0x4c948c(0x100)]=0x1;}function ue(_0x493373){const _0x55c369=_0x43c3;return _0x493373[_0x55c369(0x121)]===void 0x0&&_0x493373['commit']===void 0x0?null:{'repoUrl':_0x493373[_0x55c369(0x121)],'baseCommit':_0x493373[_0x55c369(0x188)]};}async function R({api:_0x55c7d2,home:_0x2a672d,objective:_0xcdaa95,answers:_0x493c4f,parent:_0x144408=null,source:_0x35b405=null,github:_0x2d3898=!0x1,opts:_0x330599,loadPlanner:_0x1c2188}){const _0x57f07d=_0x43c3;return _0x42d9d8({'api':_0x55c7d2,'home':_0x2a672d,'loadPlanner':_0x1c2188,'objective':_0xcdaa95,'answers':_0x493c4f,'parent':_0x144408,'source':_0x35b405,'github':_0x2d3898,'ask':!_0x330599['json']&&process['stdin'][_0x57f07d(0x18d)]?_0x42664e:null});}function H(_0x5e2aea,_0x54815c,{api:_0x31b93b,action:_0x52cb42}){const _0x565fab=_0x43c3;if(!_0x5e2aea)throw new Error('unknown\x20request\x20key:\x20'+_0x54815c);if(_0x5e2aea['api']!==_0x31b93b)throw new Error(_0x565fab(0xdb)+_0x5e2aea[_0x565fab(0x164)]+_0x565fab(0x147)+_0x5e2aea[_0x565fab(0x196)]+_0x565fab(0xe0)+_0x5e2aea[_0x565fab(0x196)]);if(_0x5e2aea['action']!==_0x52cb42)throw new Error(_0x565fab(0xc5)+_0x5e2aea[_0x565fab(0x164)]+_0x565fab(0xd0)+_0x5e2aea[_0x565fab(0xf6)]+',\x20not\x20'+_0x52cb42);if(!_0x5e2aea[_0x565fab(0x1ae)]||typeof _0x5e2aea[_0x565fab(0x1ae)]!='object'||Array['isArray'](_0x5e2aea[_0x565fab(0x1ae)]))throw new Error(_0x565fab(0xc5)+_0x5e2aea[_0x565fab(0x164)]+'\x20has\x20no\x20saved\x20input');return _0x5e2aea[_0x565fab(0x1ae)];}function le(_0x102857,_0x596774){const _0x5a78e1=_0x43c3;return _0x5a78e1(0x187)+_0x102857[_0x5a78e1(0x196)]+_0x5a78e1(0x199)+_0x596774['home']+_0x5a78e1(0x108)+_0x102857[_0x5a78e1(0x164)];}function ce(_0x2c2ed2,_0x1363ee){const _0x5942b0=_0x43c3;return'colony\x20--api\x20'+_0x2c2ed2[_0x5942b0(0x196)]+_0x5942b0(0x199)+_0x1363ee[_0x5942b0(0x1a1)]+_0x5942b0(0x18b)+_0x2c2ed2[_0x5942b0(0x1ae)][_0x5942b0(0x14e)]+_0x5942b0(0xcc)+_0x2c2ed2[_0x5942b0(0x164)];}function ve(_0x517efa,{loadPlanner:_0x10ce2c=_0x3dff96}={}){const _0x22e0a0=_0x43c3,_0x69e84d=_0x517efa[_0x22e0a0(0x15e)]('task')[_0x22e0a0(0x19a)]('browse\x20and\x20publish\x20IMD\x20tasks');_0x195918(_0x69e84d),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x148))[_0x22e0a0(0x19a)](_0x22e0a0(0x1a4))['option']('--q\x20<text>',_0x22e0a0(0x127))[_0x22e0a0(0xc2)](_0x22e0a0(0x10b),'creation-time\x20cursor\x20(exclusive)')[_0x22e0a0(0xc2)](_0x22e0a0(0x102),'jobs\x20that\x20moved\x20after\x20this\x20time')[_0x22e0a0(0xc2)](_0x22e0a0(0x197),'page\x20size\x20(1-500)')[_0x22e0a0(0xc2)]('--exclude-oracle','exclude\x20oracle\x20panel\x20jobs')[_0x22e0a0(0xf6)](async(_0x4be93f,_0x11919d)=>{const _0x1ce37b=_0x22e0a0,_0x8c69ba=_0x11919d[_0x1ce37b(0x1aa)](),_0x3e9f20=await _0x26acd9(_0x8c69ba[_0x1ce37b(0x196)],te(_0x8c69ba));_0x476ca0(_0x8c69ba['json']?_0x3e9f20[_0x1ce37b(0x171)]:ne(_0x3e9f20[_0x1ce37b(0x171)]),_0x8c69ba);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x186))[_0x22e0a0(0x19a)](_0x22e0a0(0x11b))['action'](async(_0x641668,_0x183177,_0x55db55)=>{const _0x80a5d6=_0x22e0a0,_0x39c426=_0x55db55['optsWithGlobals'](),_0x193a7d=await _0x26acd9(_0x39c426[_0x80a5d6(0x196)],_0x80a5d6(0x175)+encodeURIComponent(_0x641668));_0x476ca0(_0x39c426['json']?_0x193a7d[_0x80a5d6(0x171)]:oe(_0x193a7d[_0x80a5d6(0x171)]),_0x39c426);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0xb8))['description'](_0x22e0a0(0x1ab))[_0x22e0a0(0xf6)](async(_0x1b43a8,_0x4d1d00,_0xc5e0ba)=>{const _0x583000=_0x22e0a0,_0x262417=_0xc5e0ba[_0x583000(0x1aa)](),_0x165fd8=await _0x26acd9(_0x262417[_0x583000(0x196)],_0x583000(0x175)+encodeURIComponent(_0x1b43a8)+_0x583000(0x10d));_0x476ca0(_0x262417['json']?_0x165fd8[_0x583000(0x171)]:K(_0x165fd8[_0x583000(0x171)]),_0x262417);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x192))[_0x22e0a0(0x19a)](_0x22e0a0(0x153))['option']('--interval\x20<seconds>',_0x22e0a0(0x11d),String(_0x233852))[_0x22e0a0(0xc2)](_0x22e0a0(0x11c),'total\x20timeout\x20in\x20seconds',String(_0x619e2e))['action'](async(_0x206c1f,_0x6b5553,_0x29240e)=>{const _0x296435=_0x22e0a0,_0x297b14=_0x29240e[_0x296435(0x1aa)](),_0x468180=await _0x5e1f3f({'api':_0x297b14[_0x296435(0x196)],'id':_0x206c1f,'interval':_0x297b14[_0x296435(0x149)],'timeout':_0x297b14[_0x296435(0x15f)],'onProgress':_0x513fad=>{const _0xa26097=_0x296435;_0x513fad[_0xa26097(0x10c)]===_0xa26097(0x1af)?_0x2862f9(_0xa26097(0xed)+_0x513fad[_0xa26097(0x166)]+_0xa26097(0x17b)+_0x513fad['complete']+'\x20(poll\x20'+_0x513fad[_0xa26097(0xe1)]+',\x20'+(_0x513fad['elapsedMs']/0x3e8)['toFixed'](0x1)+_0xa26097(0xf5)):_0x513fad[_0xa26097(0x10c)]===_0xa26097(0x16c)&&_0x2862f9(_0xa26097(0xed)+(_0x513fad['status']?'HTTP\x20'+_0x513fad[_0xa26097(0x178)]:_0xa26097(0xcf))+_0xa26097(0xc3)+(_0x513fad[_0xa26097(0xe5)]/0x3e8)[_0xa26097(0x1a3)](0x1)+_0xa26097(0x190)+_0x513fad['retries']+')\x0a');}});if(_0x468180[_0x296435(0x18a)]===_0x296435(0x141)){_0x2862f9(_0x296435(0x12a)),process['exitCode']=0x82;return;}_0x468180[_0x296435(0x16d)]&&_0x476ca0(_0x297b14[_0x296435(0x13f)]?_0x468180[_0x296435(0x16d)]:K(_0x468180[_0x296435(0x16d)]),_0x297b14),_0x468180[_0x296435(0x18a)]!==_0x296435(0x11a)&&(_0x2862f9(_0x296435(0xed)+_0x468180[_0x296435(0xc1)]+'\x0a'),process[_0x296435(0x100)]=0x1);}),_0x69e84d[_0x22e0a0(0x15e)]('download\x20<id>')['description'](_0x22e0a0(0x103))[_0x22e0a0(0x179)](_0x22e0a0(0x181),'destination\x20directory')[_0x22e0a0(0xf6)](async(_0x134060,_0xe6a784,_0x42720e)=>{const _0x4f6ac1=_0x22e0a0,_0x1bc436=_0x42720e[_0x4f6ac1(0x1aa)](),_0x5de482=await _0x30c0a9({'api':_0x1bc436['api'],'id':_0x134060,'out':_0x1bc436[_0x4f6ac1(0x120)],'onProgress':_0x39326b=>{const _0x496bd3=_0x4f6ac1;_0x39326b['type']===_0x496bd3(0xf7)&&_0x2862f9(_0x496bd3(0xbd)+_0x39326b[_0x496bd3(0x130)]+_0x496bd3(0x194)+_0x39326b[_0x496bd3(0xf8)]+'\x0a');}});_0x476ca0(_0x1bc436[_0x4f6ac1(0x13f)]?_0x5de482:ie(_0x5de482),_0x1bc436);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x113))[_0x22e0a0(0x19a)]('validate\x20a\x20job\x20body\x20without\x20creating\x20an\x20order')['requiredOption'](_0x22e0a0(0xbc),_0x22e0a0(0x1b4))[_0x22e0a0(0xc2)]('--action\x20<action>',_0x22e0a0(0x14a))['action'](async(_0x531a79,_0x547618)=>{const _0x5af1fb=_0x22e0a0,_0x21ae04=_0x547618[_0x5af1fb(0x1aa)](),_0x101e29=await _0x39d335(_0x21ae04[_0x5af1fb(0xf8)]),_0x142eee=_0x21ae04[_0x5af1fb(0xf6)]??_0x54cacc(_0x101e29),_0x275f14=await _0x1dff41(_0x21ae04[_0x5af1fb(0x196)],_0x101e29,_0x142eee);_0x476ca0(_0x21ae04[_0x5af1fb(0x13f)]?_0x275f14:T(_0x275f14),_0x21ae04);}),_0x69e84d[_0x22e0a0(0x15e)]('publish')['description']('check,\x20quote,\x20sign\x20and\x20submit\x20a\x20job\x20file')[_0x22e0a0(0x179)]('--file\x20<path>','job\x20body\x20JSON\x20file')['option'](_0x22e0a0(0x19d),_0x22e0a0(0xba))[_0x22e0a0(0xf6)](async(_0x19de00,_0x5a3a6a)=>{const _0x42d217=_0x22e0a0,_0x30c09f=_0x5a3a6a[_0x42d217(0x1aa)](),_0x4813cd=await x(_0x30c09f,_0x42d217(0x17d)),_0x11fbb5=await _0x3ad2f2({'api':_0x30c09f[_0x42d217(0x196)],'home':_0x30c09f[_0x42d217(0x1a1)],'file':_0x30c09f[_0x42d217(0xf8)],'action':'job.open','requestKey':_0x30c09f[_0x42d217(0x164)],'yes':_0x30c09f[_0x42d217(0x19c)],'keyEnv':_0x30c09f[_0x42d217(0xfc)],'rpc':_0x30c09f[_0x42d217(0x129)],'paymentChain':_0x30c09f[_0x42d217(0x112)]??_0x4813cd?.['paymentChain'],'payWith':_0x30c09f['payWith']??_0x4813cd?.[_0x42d217(0x12e)],'onProgress':_0x2a5beb(_0x30c09f)});E(_0x11fbb5,_0x30c09f);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x17f))[_0x22e0a0(0x19a)](_0x22e0a0(0x124))[_0x22e0a0(0xc2)](_0x22e0a0(0xbc),_0x22e0a0(0x169))[_0x22e0a0(0xc2)](_0x22e0a0(0x131),_0x22e0a0(0xc6))[_0x22e0a0(0xc2)](_0x22e0a0(0xfa),_0x22e0a0(0xdc))[_0x22e0a0(0xc2)](_0x22e0a0(0x117),_0x22e0a0(0x198))['option'](_0x22e0a0(0x118),_0x22e0a0(0x165),(_0x571161,_0x53baed)=>[..._0x53baed,_0x571161],[])[_0x22e0a0(0xc2)](_0x22e0a0(0xec),_0x22e0a0(0x133))[_0x22e0a0(0xc2)](_0x22e0a0(0xc8),_0x22e0a0(0xf3))[_0x22e0a0(0xc2)](_0x22e0a0(0x157),_0x22e0a0(0xca))[_0x22e0a0(0xc2)](_0x22e0a0(0x16f),_0x22e0a0(0x155),(_0x3904ad,_0x14d00e)=>[..._0x14d00e,_0x3904ad],[])['option'](_0x22e0a0(0xfb),_0x22e0a0(0x139))[_0x22e0a0(0xc2)](_0x22e0a0(0x125),_0x22e0a0(0x189))[_0x22e0a0(0xc2)](_0x22e0a0(0x19d),_0x22e0a0(0xba))['action'](async(_0x1955c9,_0x268d12,_0x1a9b06)=>{const _0x3da6fd=_0x22e0a0,_0x303c06=_0x1a9b06['optsWithGlobals'](),_0x2f9358=_0x303c06[_0x3da6fd(0xd4)]?null:await x(_0x303c06,_0x3da6fd(0x17d)),_0x50c06c=ae(_0x1955c9,_0x303c06);let _0x1ba6b1,_0xdd148d=null;if(_0x303c06[_0x3da6fd(0x164)]&&!O(_0x303c06)&&(_0x1955c9===void 0x0||_0x50c06c)){const _0x3d0d12=await _0x1ca526(_0x303c06['home'],_0x303c06[_0x3da6fd(0x164)]);if(_0x1ba6b1=H(_0x3d0d12,_0x303c06[_0x3da6fd(0x164)],{'api':_0x303c06[_0x3da6fd(0x196)],'action':'job.open'}),_0x1955c9!==void 0x0&&_0x1955c9!==_0x1ba6b1[_0x3da6fd(0x1a2)])throw new Error(_0x3da6fd(0xc5)+_0x303c06[_0x3da6fd(0x164)]+'\x20was\x20created\x20for\x20a\x20different\x20objective;\x20omit\x20the\x20new\x20objective\x20to\x20resume\x20it');}else{if(_0x50c06c){if(_0xdd148d=await R({'api':_0x303c06[_0x3da6fd(0x196)],'home':_0x303c06['home'],'objective':_0x1955c9,'answers':_0x303c06[_0x3da6fd(0x12b)],'source':ue(_0x303c06),'github':_0x303c06[_0x3da6fd(0xdf)]===!0x0,'opts':_0x303c06,'loadPlanner':_0x10ce2c}),_0xdd148d[_0x3da6fd(0x1ae)]===null){P(_0xdd148d,_0x3da6fd(0x17d),_0x303c06);return;}_0x1ba6b1=_0xdd148d[_0x3da6fd(0x1ae)];}else{const _0x4c846d=_0x303c06[_0x3da6fd(0xf8)]?await _0x39d335(_0x303c06[_0x3da6fd(0xf8)]):void 0x0;_0x1ba6b1=await _0x143214({'fileInput':_0x4c846d,'objective':_0x1955c9,'preset':_0x303c06['preset'],'skill':_0x303c06[_0x3da6fd(0x110)],'template':_0x303c06[_0x3da6fd(0x109)],'paths':_0x303c06['path'],'repo':_0x303c06['repo'],'commit':_0x303c06['commit'],'github':_0x303c06[_0x3da6fd(0xdf)]});}}if(_0x303c06[_0x3da6fd(0xf0)]&&(await _0xe1af48(_0x303c06[_0x3da6fd(0xf0)],_0x1ba6b1),_0x303c06[_0x3da6fd(0x13f)]||_0x2862f9(_0x3da6fd(0x163)+_0x303c06[_0x3da6fd(0xf0)]+'\x0a')),_0x303c06[_0x3da6fd(0xd4)]){const _0x2f97a7=await _0x1dff41(_0x303c06[_0x3da6fd(0x196)],_0x1ba6b1,_0x3da6fd(0x17d));_0x303c06[_0x3da6fd(0x13f)]?_0x476ca0({'action':_0x3da6fd(0x17d),..._0xdd148d?{'summary':_0xdd148d[_0x3da6fd(0x13d)],'deliverables':_0xdd148d[_0x3da6fd(0x170)]}:{},'input':_0x1ba6b1,'check':_0x2f97a7},_0x303c06):_0x476ca0(_0xdd148d?W(_0xdd148d,_0x2f97a7):J(_0x3da6fd(0x17d),_0x1ba6b1,_0x2f97a7),_0x303c06),_0x2f97a7[_0x3da6fd(0x11e)]['length']>0x0&&(process[_0x3da6fd(0x100)]=0x1);return;}_0xdd148d&&!_0x303c06['json']&&_0x2862f9($(_0xdd148d)+'\x0a');const _0x17a532=await _0x3ad2f2({'api':_0x303c06[_0x3da6fd(0x196)],'home':_0x303c06[_0x3da6fd(0x1a1)],'input':_0x1ba6b1,'action':_0x3da6fd(0x17d),'requestKey':_0x303c06[_0x3da6fd(0x164)],'plan':_0xdd148d?{'summary':_0xdd148d[_0x3da6fd(0x13d)],'deliverables':_0xdd148d['deliverables']}:void 0x0,'yes':_0x303c06[_0x3da6fd(0x19c)],'keyEnv':_0x303c06[_0x3da6fd(0xfc)],'rpc':_0x303c06['rpc'],'paymentChain':_0x303c06[_0x3da6fd(0x112)]??_0x2f9358?.['paymentChain'],'payWith':_0x303c06[_0x3da6fd(0x12e)]??_0x2f9358?.[_0x3da6fd(0x12e)],'onProgress':_0x2a5beb(_0x303c06),'retryCommand':_0x4d4d3e=>le(_0x4d4d3e,_0x303c06)});E(_0x17a532,_0x303c06);}),_0x69e84d[_0x22e0a0(0x15e)](_0x22e0a0(0x144))[_0x22e0a0(0x19a)](_0x22e0a0(0x17a))[_0x22e0a0(0xc2)](_0x22e0a0(0xbc),_0x22e0a0(0xbb))['option'](_0x22e0a0(0xfa),_0x22e0a0(0xdc))[_0x22e0a0(0xc2)](_0x22e0a0(0x117),_0x22e0a0(0x198))[_0x22e0a0(0xc2)]('--path\x20<path>',_0x22e0a0(0x165),(_0x5eeb16,_0x575bdb)=>[..._0x575bdb,_0x5eeb16],[])[_0x22e0a0(0xc2)](_0x22e0a0(0x16f),'answer\x20a\x20business\x20clarification\x20(repeatable)',(_0x51f774,_0x5562a5)=>[..._0x5562a5,_0x51f774],[])[_0x22e0a0(0xc2)](_0x22e0a0(0xfb),_0x22e0a0(0x139))[_0x22e0a0(0xc2)]('--save\x20<path>',_0x22e0a0(0x189))[_0x22e0a0(0xc2)]('--request-key\x20<uuid>',_0x22e0a0(0xba))[_0x22e0a0(0xf6)](async(_0x3889d3,_0x413b4d,_0x28bb03,_0x5882fa)=>{const _0x475c18=_0x22e0a0,_0x4e5376=_0x5882fa[_0x475c18(0x1aa)](),_0x11f439=_0x4e5376['dryRun']?null:await x(_0x4e5376,_0x475c18(0x12c)),_0x1363b1=pe(_0x413b4d,_0x4e5376);let _0x564860,_0x1cbac1,_0x327732=null;if(_0x4e5376[_0x475c18(0x164)]&&!N(_0x4e5376)&&(_0x413b4d===void 0x0||_0x1363b1)){const _0x25db5c=await _0x1ca526(_0x4e5376[_0x475c18(0x1a1)],_0x4e5376[_0x475c18(0x164)]);if(_0x564860=H(_0x25db5c,_0x4e5376['requestKey'],{'api':_0x4e5376[_0x475c18(0x196)],'action':'job.continue'}),_0x564860[_0x475c18(0x14e)]!==_0x3889d3)throw new Error('request\x20key\x20'+_0x4e5376[_0x475c18(0x164)]+'\x20belongs\x20to\x20parent\x20job\x20'+(_0x564860[_0x475c18(0x14e)]??_0x475c18(0xef))+',\x20not\x20'+_0x3889d3);if(_0x413b4d!==void 0x0&&_0x413b4d!==_0x564860['objective'])throw new Error(_0x475c18(0xc5)+_0x4e5376[_0x475c18(0x164)]+_0x475c18(0x137));_0x1cbac1=(await _0x26acd9(_0x4e5376[_0x475c18(0x196)],_0x475c18(0x175)+encodeURIComponent(_0x3889d3)))[_0x475c18(0x171)];}else{if(_0x1363b1){if(_0x1cbac1=(await _0x26acd9(_0x4e5376[_0x475c18(0x196)],'/jobs/'+encodeURIComponent(_0x3889d3)))[_0x475c18(0x171)],_0x327732=await R({'api':_0x4e5376[_0x475c18(0x196)],'home':_0x4e5376[_0x475c18(0x1a1)],'objective':_0x413b4d,'answers':_0x4e5376[_0x475c18(0x12b)],'parent':_0x1cbac1,'opts':_0x4e5376,'loadPlanner':_0x10ce2c}),_0x327732[_0x475c18(0x1ae)]===null){P(_0x327732,_0x475c18(0x12c),_0x4e5376);return;}_0x564860=_0x327732['input'],_0x564860[_0x475c18(0x14e)]!==_0x3889d3&&(_0x564860={..._0x564860,'parentJobId':_0x3889d3});}else{const _0x11af4b=_0x4e5376[_0x475c18(0xf8)]?await _0x39d335(_0x4e5376[_0x475c18(0xf8)]):void 0x0;_0x564860=await _0x28e893({'id':_0x3889d3,'fileInput':_0x11af4b,'objective':_0x413b4d,'skill':_0x4e5376[_0x475c18(0x110)],'template':_0x4e5376[_0x475c18(0x109)],'paths':_0x4e5376[_0x475c18(0x130)]}),_0x1cbac1=(await _0x26acd9(_0x4e5376[_0x475c18(0x196)],_0x475c18(0x175)+encodeURIComponent(_0x3889d3)))['data'];}}if(_0x4e5376[_0x475c18(0xf0)]&&(await _0xe1af48(_0x4e5376[_0x475c18(0xf0)],_0x564860),_0x4e5376['json']||_0x2862f9(_0x475c18(0x163)+_0x4e5376['save']+'\x0a')),_0x4e5376[_0x475c18(0xd4)]){const _0x5f49b1=await _0x1dff41(_0x4e5376[_0x475c18(0x196)],_0x564860,_0x475c18(0x12c));_0x4e5376['json']?_0x476ca0({'action':_0x475c18(0x12c),..._0x327732?{'summary':_0x327732[_0x475c18(0x13d)],'deliverables':_0x327732[_0x475c18(0x170)]}:{},'parent':_0x3e2902(_0x1cbac1),'input':_0x564860,'check':_0x5f49b1},_0x4e5376):_0x476ca0(_0x327732?W(_0x327732,_0x5f49b1):J('job.continue',_0x564860,_0x5f49b1,_0x1cbac1),_0x4e5376),_0x5f49b1[_0x475c18(0x11e)][_0x475c18(0x1b5)]>0x0&&(process['exitCode']=0x1);return;}_0x327732&&!_0x4e5376['json']&&_0x2862f9($(_0x327732)+'\x0a');const _0x2279ea=await _0x3ad2f2({'api':_0x4e5376[_0x475c18(0x196)],'home':_0x4e5376[_0x475c18(0x1a1)],'input':_0x564860,'action':'job.continue','requestKey':_0x4e5376['requestKey'],'plan':_0x327732?{'summary':_0x327732[_0x475c18(0x13d)],'deliverables':_0x327732[_0x475c18(0x170)]}:void 0x0,'yes':_0x4e5376[_0x475c18(0x19c)],'keyEnv':_0x4e5376[_0x475c18(0xfc)],'rpc':_0x4e5376[_0x475c18(0x129)],'paymentChain':_0x4e5376[_0x475c18(0x112)]??_0x11f439?.[_0x475c18(0x112)],'payWith':_0x4e5376['payWith']??_0x11f439?.[_0x475c18(0x12e)],'onProgress':_0x2a5beb(_0x4e5376),'retryCommand':_0x2dd7f9=>ce(_0x2dd7f9,_0x4e5376)});_0x2279ea[_0x475c18(0x166)]&&(_0x2279ea[_0x475c18(0x166)][_0x475c18(0xf1)]=_0x3e2902(_0x1cbac1)),E(_0x2279ea,_0x4e5376);});}export{ve as registerTaskCommands};
|
package/dist/lib/orders.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3c2ec5=_0x4e09;import{randomBytes as _0x54f3fc}from'node:crypto';import{chmod as _0x4a5f91,mkdir as _0x32f3f4,readdir as _0x5be2ed,readFile as _0x3c9241,rename as _0x1c2a07,unlink as _0x5f5c53,writeFile as _0x43a7ec}from'node:fs/promises';import{join as _0x13c023}from'node:path';import{fundingSummary as _0x5f4a5e}from'./funding-state.mjs';import{mapConcurrent as _0x54d400}from'./concurrent.mjs';import _0x5a329b from'proper-lockfile';import{imdTaskUrl as _0x27fe35}from'./task-link.mjs';const x=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function i(_0x494e80){const _0x4d5bba=_0x4e09;return _0x13c023(_0x494e80,_0x4d5bba(0x1dd));}function u(_0x22d175,_0x1b1c52){const _0x4a436e=_0x4e09;if(!x[_0x4a436e(0x1e2)](_0x1b1c52))throw new Error(_0x4a436e(0x20c)+_0x1b1c52);return _0x13c023(i(_0x22d175),_0x1b1c52+_0x4a436e(0x215));}async function s(_0x27f2d0,_0x7e5d96,_0x1692b5){const _0x30759a=_0x4e09,_0xf74244=i(_0x27f2d0);await _0x32f3f4(_0xf74244,{'recursive':!0x0,'mode':0x1c0});const _0x315b88=u(_0x27f2d0,_0x7e5d96),_0xaf19f9=await _0x5a329b[_0x30759a(0x1f0)](_0x315b88,{'realpath':!0x1,'retries':{'retries':0x2,'minTimeout':0x64,'maxTimeout':0xc8}});try{return await _0x1692b5(_0x315b88);}finally{await _0xaf19f9();}}async function I(_0x381821,_0x591601){const _0xd196f6=_0x4e09;return s(_0x381821,_0x591601[_0xd196f6(0x1f5)],async _0x3e343c=>{const _0x336fd7=_0xd196f6,_0xdc88d5=await p(_0x381821,_0x591601[_0x336fd7(0x1f5)]);if(_0xdc88d5&&!_0x591601['cancelledAt']&&v(_0xdc88d5),!_0xdc88d5&&_0x591601['revision']!==void 0x0||_0xdc88d5&&(_0x591601[_0x336fd7(0x213)]??0x0)!==_0xdc88d5[_0x336fd7(0x213)])throw Object[_0x336fd7(0x20e)](new Error(_0x336fd7(0x1f2)),{'code':_0x336fd7(0x1f4)});if(_0x591601[_0x336fd7(0x217)]&&_0xdc88d5&&!_0xdc88d5[_0x336fd7(0x217)]&&!l(_0xdc88d5)[_0x336fd7(0x208)])throw new Error(_0x336fd7(0x1e8));const _0x56b17f={..._0x591601,'revision':(_0xdc88d5?.['revision']??0x0)+0x1,'updatedAt':new Date()[_0x336fd7(0x211)]()},_0x37609c=_0x13c023(i(_0x381821),'.'+_0x591601[_0x336fd7(0x1f5)]+'.'+process[_0x336fd7(0x1dc)]+'.'+_0x54f3fc(0x4)[_0x336fd7(0x222)]('hex')+_0x336fd7(0x20b));return await _0x43a7ec(_0x37609c,JSON[_0x336fd7(0x1eb)](_0x56b17f,null,0x2)+'\x0a',{'mode':0x180}),await _0x1c2a07(_0x37609c,_0x3e343c),await _0x4a5f91(_0x3e343c,0x180),Object[_0x336fd7(0x20e)](_0x591601,_0x56b17f),_0x591601;});}function _0x4e09(_0x2b08c5,_0x247bac){_0x2b08c5=_0x2b08c5-0x1db;const _0x4e092f=_0x247b();let _0xd0767e=_0x4e092f[_0x2b08c5];return _0xd0767e;}async function p(_0x3be40e,_0x161355){const _0x28c8f1=_0x4e09,_0x58176d=u(_0x3be40e,_0x161355);try{const _0x1c14f8=JSON[_0x28c8f1(0x21b)](await _0x3c9241(_0x58176d,_0x28c8f1(0x21d)));return _0x1c14f8[_0x28c8f1(0x213)]??=0x0,_0x1c14f8;}catch(_0x580e7e){if(_0x580e7e[_0x28c8f1(0x203)]==='ENOENT')return null;throw _0x580e7e instanceof SyntaxError?new Error(_0x28c8f1(0x1e0)+_0x58176d+':\x20'+_0x580e7e[_0x28c8f1(0x1ed)]):_0x580e7e;}}async function q(_0x1a0e06){const _0x193419=_0x4e09;let _0x21ed8c;try{_0x21ed8c=await _0x5be2ed(i(_0x1a0e06),{'withFileTypes':!0x0});}catch(_0xeb885e){if(_0xeb885e[_0x193419(0x203)]===_0x193419(0x226))return[];throw _0xeb885e;}const _0x1f86b4=_0x21ed8c[_0x193419(0x1fe)](_0x56eb71=>_0x56eb71['isFile']()&&_0x56eb71[_0x193419(0x1ec)]['endsWith'](_0x193419(0x215))),_0x48f979=await _0x54d400(_0x1f86b4,0x8,async _0x28cd56=>{const _0x4789c6=_0x193419,_0x2b15ef=JSON['parse'](await _0x3c9241(_0x13c023(i(_0x1a0e06),_0x28cd56[_0x4789c6(0x1ec)]),'utf8'));return _0x2b15ef[_0x4789c6(0x213)]??=0x0,_0x2b15ef;});return _0x48f979['sort']((_0x126e6b,_0x406d18)=>String(_0x406d18[_0x193419(0x224)])[_0x193419(0x202)](String(_0x126e6b['updatedAt']))),_0x48f979;}async function m(_0xebf9b5,_0x5d2f2f){const _0x19f6f9=_0x4e09,_0x1895f8=(await q(_0xebf9b5))[_0x19f6f9(0x1f1)](_0x3ad33b=>_0x3ad33b['orderId']===_0x5d2f2f||_0x3ad33b[_0x19f6f9(0x1f5)]===_0x5d2f2f||_0x3ad33b[_0x19f6f9(0x1db)]?.[_0x19f6f9(0x1f3)](_0x17b6b2=>_0x17b6b2['orderId']===_0x5d2f2f));if(!_0x1895f8)throw new Error(_0x19f6f9(0x210)+_0x5d2f2f);return _0x1895f8;}function _0x247b(){const _0x30c7e9=['quoteHistory','pid','orders','cancelled','order_cancelled','invalid\x20order\x20file\x20','paymentHeader','test','quoted','transactionHash','asset','payment','expired','This\x20payment\x20has\x20already\x20started.\x20Reopen\x20the\x20task\x20to\x20inspect\x20its\x20progress.','onchainQuotes','refused','stringify','name','message','funding','action','lock','find','This\x20task\x20was\x20updated\x20in\x20another\x20terminal.\x20Reopen\x20it\x20to\x20continue\x20from\x20its\x20saved\x20progress.','some','order_changed','requestKey','payment_failed','expiresAt','status','recoveryStatus','createdAt','pendingTransaction','canDelete','payWith','filter','orderId','IMD','admitted','localeCompare','code','paymentStatus','Cancel\x20this\x20unsigned\x20request\x20before\x20deleting\x20its\x20local\x20record.\x20Signed\x20payment\x20recovery\x20records\x20must\x20be\x20kept.','ethereum','submittedAt','canCancel','onchainPayment','blocked','.tmp','invalid\x20request\x20key:\x20','paymentHistory','assign','resultUrl','unknown\x20order:\x20','toISOString','amount','revision','payTo','.json','quote','cancelledAt','quoteSignature','refusalProblems','statusUrl','parse','includes','utf8','lastStatus','robinhood','created','lastError','toString','jobId','updatedAt','chainId','ENOENT','transaction_pending','expiredFunding','This\x20request\x20was\x20cancelled\x20locally\x20and\x20cannot\x20be\x20paid\x20or\x20resumed.\x20Create\x20a\x20new\x20task\x20to\x20start\x20again.','steps'];_0x247b=function(){return _0x30c7e9;};return _0x247b();}const k=new Set([_0x3c2ec5(0x220),_0x3c2ec5(0x20a),_0x3c2ec5(0x1e3),'challenged',_0x3c2ec5(0x1e7),_0x3c2ec5(0x1f6)]);function l(_0x1d7344){const _0x1d1f69=_0x3c2ec5,_0x764dfe=k['has'](_0x1d7344[_0x1d1f69(0x1f8)])&&!_0x1d7344[_0x1d1f69(0x1e1)]&&!_0x1d7344[_0x1d1f69(0x218)]&&!_0x1d7344[_0x1d1f69(0x1e6)]&&!_0x1d7344[_0x1d1f69(0x209)]&&!_0x1d7344[_0x1d1f69(0x1ee)]?.[_0x1d1f69(0x22a)]['some'](_0x4c3548=>_0x4c3548['rawTransaction'])&&!_0x1d7344[_0x1d1f69(0x20d)]?.['length']&&!_0x1d7344[_0x1d1f69(0x228)]?.['length']&&!_0x1d7344[_0x1d1f69(0x207)]&&!_0x1d7344[_0x1d1f69(0x223)]&&!_0x1d7344['paymentStatus']&&!_0x1d7344[_0x1d1f69(0x1e4)];return{'canCancel':_0x764dfe&&!_0x1d7344[_0x1d1f69(0x217)],'canDelete':_0x764dfe&&!!_0x1d7344[_0x1d1f69(0x217)],'canResume':!_0x1d7344['cancelledAt']&&!_0x1d7344[_0x1d1f69(0x223)]&&!['admitted',_0x1d1f69(0x1ea)][_0x1d1f69(0x21c)](_0x1d7344[_0x1d1f69(0x1f8)])};}function v(_0x47a9e5){const _0x71dcda=_0x3c2ec5;if(_0x47a9e5[_0x71dcda(0x217)])throw Object[_0x71dcda(0x20e)](new Error(_0x71dcda(0x229)),{'code':_0x71dcda(0x1df)});}async function H(_0x254798,_0x1b3967){const _0xbc78a4=_0x3c2ec5,_0x1dd0a9=await m(_0x254798,_0x1b3967);if(!l(_0x1dd0a9)['canCancel'])throw new Error('Only\x20unsigned,\x20unsubmitted\x20requests\x20can\x20be\x20cancelled\x20locally.\x20Signed\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20IMD\x20public\x20API.');return _0x1dd0a9[_0xbc78a4(0x217)]=new Date()[_0xbc78a4(0x211)](),_0x1dd0a9[_0xbc78a4(0x221)]=null,await I(_0x254798,_0x1dd0a9),_0x1dd0a9;}async function K(_0x164adb,_0x5bf935){const _0x5e656d=_0x3c2ec5,_0x5c2502=await m(_0x164adb,_0x5bf935);return s(_0x164adb,_0x5c2502[_0x5e656d(0x1f5)],async _0x392f82=>{const _0x4ae903=_0x5e656d,_0x5a0656=await p(_0x164adb,_0x5c2502[_0x4ae903(0x1f5)]);if(!l(_0x5a0656)[_0x4ae903(0x1fc)])throw new Error(_0x4ae903(0x205));return await _0x5f5c53(_0x392f82),_0x5a0656;});}function _(_0x5b42ac){const _0x5aece2=_0x3c2ec5,_0x357171=_0x5b42ac['paymentChain']===_0x5aece2(0x21f)?_0x5b42ac[_0x5aece2(0x1e9)]?.[_0x5aece2(0x1f1)](_0x50ff22=>_0x50ff22[_0x5aece2(0x225)]===0x1237):_0x5b42ac[_0x5aece2(0x216)]?.[_0x5aece2(0x1e6)];return{'requestKey':_0x5b42ac[_0x5aece2(0x1f5)],'orderId':_0x5b42ac[_0x5aece2(0x1ff)]??null,'status':_0x5b42ac[_0x5aece2(0x217)]&&!_0x5b42ac[_0x5aece2(0x223)]?_0x5aece2(0x1de):[_0x5aece2(0x201),_0x5aece2(0x1ea)][_0x5aece2(0x21c)](_0x5b42ac[_0x5aece2(0x1f8)])?_0x5b42ac[_0x5aece2(0x1f8)]:_0x5b42ac[_0x5aece2(0x1f9)]??(_0x5b42ac[_0x5aece2(0x1fb)]?_0x5aece2(0x227):_0x5b42ac[_0x5aece2(0x1f8)]),'cancelledAt':_0x5b42ac['cancelledAt']??null,...l(_0x5b42ac),'remoteStatus':_0x5b42ac[_0x5aece2(0x21e)]??null,'action':_0x5b42ac[_0x5aece2(0x1ef)],'paymentChain':_0x5b42ac['paymentChain']??_0x5aece2(0x206),'payWith':_0x5b42ac[_0x5aece2(0x1fd)]??_0x5aece2(0x200),'funding':_0x5b42ac[_0x5aece2(0x1ee)]?_0x5f4a5e(_0x5b42ac['funding']):null,'createdAt':_0x5b42ac[_0x5aece2(0x1fa)],'updatedAt':_0x5b42ac[_0x5aece2(0x224)],'amount':_0x357171?.[_0x5aece2(0x212)]??null,'asset':_0x357171?.[_0x5aece2(0x1e5)]??null,'payTo':_0x357171?.[_0x5aece2(0x214)]??null,'quoteExpiresAt':_0x5b42ac[_0x5aece2(0x216)]?.[_0x5aece2(0x1f7)]??null,'paymentSigned':!!(_0x5b42ac['paymentHeader']||_0x5b42ac[_0x5aece2(0x218)]||_0x5b42ac['onchainPayment']),'paymentStatus':_0x5b42ac[_0x5aece2(0x204)]??null,'transactionHash':_0x5b42ac[_0x5aece2(0x1e4)]??null,'refusalProblems':_0x5b42ac[_0x5aece2(0x219)]??null,'jobId':_0x5b42ac['jobId']??null,'taskUrl':_0x27fe35(_0x5b42ac[_0x5aece2(0x223)]),'statusUrl':_0x5b42ac[_0x5aece2(0x21a)]??null,'resultUrl':_0x5b42ac[_0x5aece2(0x20f)]??null,'lastError':_0x5b42ac[_0x5aece2(0x221)]??null,'pendingTransaction':_0x5b42ac[_0x5aece2(0x1fb)]??null};}export{v as assertOrderNotCancelled,H as cancelOrder,K as deleteOrder,m as findOrder,q as listOrders,p as loadOrder,l as orderActions,_ as orderSummary,i as ordersDir,I as saveOrder};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(_0x2de1a9){var _0x21d4ed=_0x4fbc;return _0x2de1a9?_0x21d4ed(0xfd)+encodeURIComponent(_0x2de1a9):null;}function _0x38bf(){var _0x1de534=['https://explorer.imd.fun/jobs/'];_0x38bf=function(){return _0x1de534;};return _0x38bf();}function _0x4fbc(_0x48d624,_0x38bfa6){_0x48d624=_0x48d624-0xfd;var _0x4fbc86=_0x38bf();var _0x194f0b=_0x4fbc86[_0x48d624];return _0x194f0b;}export{e as imdTaskUrl};
|
package/dist/tui/app.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1394b3=_0x242c;import{createElement as _0x58d9dd,useEffect as _0x3db06e,useState as _0x2f2dac,useSyncExternalStore as _0x64a80b}from'react';import{Box as _0x19aeea,Text as _0x39b46f,useApp as _0x33449e,useInput as _0x503b1c,useWindowSize as _0x1977a6}from'ink';import _0x117be9 from'ink-text-input';import _0x1cb0c9 from'string-width';import{visibleItems as _0x56bbe3,VIEWS as _0x4d1b58}from'./controller.mjs';import{clean as _0x253cd7,detailText as _0x228f58,lines as _0xa87f81,short as _0x3e3169,statusLabel as _0x21ee5a,taskActions as _0x52a8bb}from'./presentation.mjs';import{modelProgressLines as _0x19a439}from'../planner/progress.mjs';const ce={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},de={'tasks':'My\x20tasks','explore':_0x1394b3(0x1c7),'workers':_0x1394b3(0x24f),'wallet':_0x1394b3(0x20c)},B=[_0x1394b3(0x227),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x1394b3(0x248),_0x1394b3(0x28d),_0x1394b3(0x1de)],ue=_0x497b5a=>_0x497b5a===_0x1394b3(0x29e)?_0x1394b3(0x2a8):_0x497b5a==='completed'?_0x1394b3(0x1f9):[_0x1394b3(0x1af),'blocked',_0x1394b3(0x218),'payment_failed',_0x1394b3(0x237)]['includes'](_0x497b5a)?_0x1394b3(0x1d2):'cyan',s=(_0x43a08e,_0x4d42b5={})=>_0x58d9dd(_0x39b46f,_0x4d42b5,_0x253cd7(_0x43a08e));function z({label:_0x3490b4}){const _0x158e6f=_0x1394b3,[_0x54e1a5,_0x4def7d]=_0x2f2dac(0x0);return _0x3db06e(()=>{const _0x4d7f30=setInterval(()=>_0x4def7d(_0xfc010e=>(_0xfc010e+0x1)%0x4),0x96);return()=>clearInterval(_0x4d7f30);},[]),s(['|','/','-','\x5c'][_0x54e1a5]+'\x20'+_0x3490b4,{'color':_0x158e6f(0x1ba),'wrap':_0x158e6f(0x2ac)});}function C({title:_0x4ed05d,width:_0xd63f7a,height:_0x13f599,ascii:_0x162e98,active:_0x4cce7a,children:_0x4198a9}){const _0xcc6f6c=_0x1394b3;return _0x58d9dd(_0x19aeea,{'width':_0xd63f7a,'height':_0x13f599,'flexDirection':'column','borderStyle':_0x162e98?ce:_0xcc6f6c(0x1c8),'borderColor':_0x4cce7a?_0xcc6f6c(0x1ba):_0xcc6f6c(0x2a8),'paddingX':0x1,'flexShrink':0x0,'overflow':_0xcc6f6c(0x2a7)},s(_0x4ed05d,{'color':_0x4cce7a?_0xcc6f6c(0x1ba):void 0x0,'dimColor':!_0x4cce7a}),_0x4198a9);}function L(_0x450ab4,_0x29b2ab){const _0x360960=_0x1394b3,_0x1306c1=[];for(const _0x59445a of _0x450ab4){const _0x8768d7=_0x1306c1[_0x360960(0x27b)]-0x1;_0x8768d7>=0x0&&_0x1cb0c9(_0x1306c1[_0x8768d7]+'\x20\x20'+_0x59445a)<=_0x29b2ab?_0x1306c1[_0x8768d7]+='\x20\x20'+_0x59445a:_0x1306c1[_0x360960(0x1bd)](_0x59445a);}return _0x1306c1;}function K({rows:_0x462263,width:_0x492062,ascii:_0x436e6d}){const _0x36c553=_0x1394b3;return _0x462263['length']?_0x58d9dd(_0x19aeea,{'flexDirection':_0x36c553(0x1e2),'flexShrink':0x0},s((_0x436e6d?'-':'\u2500')['repeat'](_0x492062),{'dimColor':!0x0}),..._0x462263[_0x36c553(0x1e3)]((_0x506a4d,_0x3b51a9)=>s(_0x506a4d,{'key':_0x3b51a9,'color':_0x36c553(0x1ba),'bold':!0x0}))):null;}function fe({event:_0x470701,width:_0x56b9c0,height:_0x5c8be8,ascii:_0x1a3d93}){const _0x39d9c0=_0x1394b3,_0x411a95=_0x19a439(_0x470701,{'width':_0x56b9c0-0x4,'compact':!0x0})[_0x39d9c0(0x253)](0x2);return _0x58d9dd(C,{'title':_0x39d9c0(0x276),'width':_0x56b9c0,'height':_0x5c8be8,'ascii':_0x1a3d93,'active':!0x0},_0x58d9dd(_0x19aeea,{'flexDirection':_0x39d9c0(0x1e2)},..._0x411a95[_0x39d9c0(0x1e3)]((_0x49a1ca,_0x3d8b10)=>_0x49a1ca[_0x39d9c0(0x1d7)](_0x39d9c0(0x216))?_0x58d9dd(z,{'key':_0x3d8b10,'label':_0x49a1ca[_0x39d9c0(0x253)](0x4)}):s(_0x49a1ca||'\x20',{'key':_0x3d8b10,'color':_0x49a1ca[_0x39d9c0(0x1d7)]('[+]')?_0x39d9c0(0x1f9):'cyan'}))),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}));}function _0x242c(_0xce7c0c,_0x56092c){_0xce7c0c=_0xce7c0c-0x1af;const _0x242c61=_0x5609();let _0x65f614=_0x242c61[_0xce7c0c];return _0x65f614;}function O({content:_0x4efb17,width:_0x4ef911,height:_0x874045,offset:_0x37280c}){const _0x4dee98=_0x1394b3,_0x4ba11b=_0xa87f81(_0x4efb17,_0x4ef911),_0x384c79=Math[_0x4dee98(0x223)](_0x37280c,Math[_0x4dee98(0x1dd)](0x0,_0x4ba11b['length']-_0x874045));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4dee98(0x1e2),'height':_0x874045,'overflow':_0x4dee98(0x2a7)},..._0x4ba11b[_0x4dee98(0x253)](_0x384c79,_0x384c79+_0x874045)['map']((_0x211a41,_0x4be9bb)=>s(_0x211a41||'\x20',{'key':_0x4be9bb})));}function Y({state:_0x1d2ac0,height:_0x3cf7e8,width:_0x5e07e1,ascii:_0x39f1e}){const _0x4fb8fc=_0x1394b3,_0x2e3cf3=_0x56bbe3(_0x1d2ac0),_0x56041f=_0x1d2ac0[_0x4fb8fc(0x288)]==='explore',_0x20a2e2=_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x1ed)?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),'[f]\x20Filter',_0x4fb8fc(0x294)]:_0x56041f?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),_0x4fb8fc(0x294)]:_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?[_0x4fb8fc(0x221),_0x4fb8fc(0x26d),'[r]\x20Refresh']:[];_0x1d2ac0[_0x4fb8fc(0x288)]!==_0x4fb8fc(0x1bc)&&(_0x1d2ac0['error']||_0x1d2ac0[_0x4fb8fc(0x27a)])&&_0x20a2e2[_0x4fb8fc(0x1bd)](_0x4fb8fc(0x285));const _0x5510a4=L(_0x20a2e2,_0x5e07e1),_0x7eed27=_0x56041f?_0x1d2ac0[_0x4fb8fc(0x29c)]:_0x2e3cf3[_0x4fb8fc(0x27b)],_0x23f712=_0x56041f?_0x7eed27===null?_0x2e3cf3[_0x4fb8fc(0x27b)]+_0x4fb8fc(0x262):_0x7eed27[_0x4fb8fc(0x287)](_0x4fb8fc(0x252))+(_0x7eed27===0x1?_0x4fb8fc(0x297):_0x4fb8fc(0x246)):_0x2e3cf3[_0x4fb8fc(0x27b)]+(_0x1d2ac0['view']===_0x4fb8fc(0x1bc)?_0x4fb8fc(0x1e5):_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?_0x4fb8fc(0x26b):_0x4fb8fc(0x222)+_0x1d2ac0[_0x4fb8fc(0x24d)]),_0x2f3edb=_0x7eed27===null?_0x4fb8fc(0x1cd)+(_0x1d2ac0['selected']+0x1):_0x1d2ac0['selected']+0x1+'/'+_0x7eed27['toLocaleString'](_0x4fb8fc(0x252)),_0x4d5faf=_0x56041f&&_0x1d2ac0[_0x4fb8fc(0x260)]===_0x2e3cf3[_0x4fb8fc(0x27b)]-0x1;let _0x47d58e='up/down';_0x4d5faf&&(_0x1d2ac0['busy']?_0x47d58e=_0x4fb8fc(0x219):_0x1d2ac0['error']&&_0x1d2ac0[_0x4fb8fc(0x265)]?_0x47d58e='l\x20retry\x20history':_0x47d58e=_0x1d2ac0[_0x4fb8fc(0x265)]?_0x4fb8fc(0x225):'End\x20of\x20history');const _0x3cbea8=_0x2e3cf3[_0x4fb8fc(0x27b)]?L([_0x2f3edb,_0x47d58e,_0x4fb8fc(0x1c9)],_0x5e07e1):[],_0x3e4303=_0x5510a4[_0x4fb8fc(0x27b)]?_0x5510a4[_0x4fb8fc(0x27b)]+0x1:0x0,_0x4372ff=Math[_0x4fb8fc(0x1dd)](0x1,Math[_0x4fb8fc(0x295)]((_0x3cf7e8-0x4-_0x3cbea8['length']-_0x3e4303)/0x3)),_0xdede0c=Math[_0x4fb8fc(0x1dd)](0x0,Math[_0x4fb8fc(0x223)](_0x1d2ac0['selected']-Math['floor'](_0x4372ff/0x2),_0x2e3cf3[_0x4fb8fc(0x27b)]-_0x4372ff));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4fb8fc(0x1e2),'flexGrow':0x1},s(_0x23f712,{'dimColor':!0x0}),..._0x2e3cf3[_0x4fb8fc(0x253)](_0xdede0c,_0xdede0c+_0x4372ff)['map']((_0x54f0bc,_0x3987a0)=>_0x58d9dd(_0x19aeea,{'key':_0x54f0bc['id'],'flexDirection':_0x4fb8fc(0x1e2)},s((_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0?'>\x20':'\x20\x20')+_0x3e3169((_0x54f0bc[_0x4fb8fc(0x1e7)]==='managed-worker'?'Mine\x20\xB7\x20':'')+_0x54f0bc[_0x4fb8fc(0x1db)],_0x5e07e1-0x2),{'inverse':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0,'bold':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0}),s('\x20\x20'+_0x3e3169(_0x54f0bc['subtitle']??_0x21ee5a(_0x54f0bc['state'])??(_0x54f0bc[_0x4fb8fc(0x257)]?_0x4fb8fc(0x202):'Not\x20deployed'),_0x5e07e1-0x2),{'color':ue(_0x54f0bc['state'])}),s((_0x39f1e?'-':'\u2500')[_0x4fb8fc(0x1b5)](_0x5e07e1),{'dimColor':!0x0}))),_0x2e3cf3[_0x4fb8fc(0x27b)]===0x0?s(_0x1d2ac0[_0x4fb8fc(0x278)]?_0x4fb8fc(0x2a0):_0x1d2ac0[_0x4fb8fc(0x207)]?'Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.':_0x1d2ac0[_0x4fb8fc(0x288)]==='wallet'?'No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.':_0x1d2ac0['view']==='tasks'?_0x4fb8fc(0x24a):_0x4fb8fc(0x2ab),{'dimColor':!0x0}):null,_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x3cbea8[_0x4fb8fc(0x1e3)]((_0x1ae2fb,_0x29188b)=>s(_0x1ae2fb,{'key':_0x29188b,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x5510a4,'width':_0x5e07e1,'ascii':_0x39f1e}));}function me({state:_0xa3cd49,width:_0x55a21d,height:_0x882328,ascii:_0x9c7810,narrow:_0x5a01f2}){const _0x4f89db=_0x1394b3,_0x223500=_0x5a01f2?_0x55a21d:Math[_0x4f89db(0x295)](_0x55a21d*0.43),_0x2f1e08=_0x5a01f2?_0x55a21d:_0x55a21d-_0x223500-0x1,_0x5b99b7=0x5,_0x2c1b1c=_0x882328-_0x5b99b7,_0x49a213=_0xa3cd49[_0x4f89db(0x23e)]?.[_0x4f89db(0x2aa)]?[_0x4f89db(0x1d6),_0x4f89db(0x294)]:[_0x4f89db(0x294)];(_0xa3cd49[_0x4f89db(0x207)]||_0xa3cd49[_0x4f89db(0x27a)])&&_0x49a213[_0x4f89db(0x1bd)](_0x4f89db(0x285));const _0x26011e=L(_0x49a213,_0x2f1e08-0x4),_0x2a1978=L([_0x4f89db(0x1f1),_0x4f89db(0x22a)],_0x2f1e08-0x4),_0x24d8ba=_0x58d9dd(C,{'title':_0x4f89db(0x24c),'width':_0x223500,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]==='list'},_0x58d9dd(Y,{'state':_0xa3cd49,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'width':_0x223500-0x4,'ascii':_0x9c7810})),_0x557a59=_0x58d9dd(C,{'title':_0x4f89db(0x261),'width':_0x2f1e08,'height':_0x2c1b1c,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]===_0x4f89db(0x23e)},_0x58d9dd(O,{'content':_0x228f58(_0xa3cd49),'width':_0x2f1e08-0x4,'height':_0x2c1b1c-0x4-_0x2a1978['length']-_0x26011e[_0x4f89db(0x27b)],'offset':_0xa3cd49['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x2a1978[_0x4f89db(0x1e3)]((_0x3ee167,_0x28fdc7)=>s(_0x3ee167,{'key':_0x28fdc7,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x26011e,'width':_0x2f1e08-0x4,'ascii':_0x9c7810})),_0x43ff14=_0x58d9dd(C,{'title':_0x4f89db(0x1fb),'width':_0x2f1e08,'height':_0x5b99b7,'ascii':_0x9c7810,'active':!0x1},s(_0x4f89db(0x1c2)),s(_0x4f89db(0x1f2)));return _0x5a01f2?_0x58d9dd(_0x19aeea,{'flexDirection':_0x4f89db(0x1e2),'width':_0x55a21d,'height':_0x882328},_0xa3cd49[_0x4f89db(0x29d)]==='list'?_0x24d8ba:_0x557a59,_0x43ff14):_0x58d9dd(_0x19aeea,{'width':_0x55a21d,'height':_0x882328,'gap':0x1},_0x24d8ba,_0x58d9dd(_0x19aeea,{'width':_0x2f1e08,'flexDirection':_0x4f89db(0x1e2)},_0x557a59,_0x43ff14));}function he({controller:_0x353435,state:_0x414e3e,width:_0x2aaf86,height:_0x4c7f4f,ascii:_0x4f79ed}){const _0x4a0439=_0x1394b3,_0x2b3e58=_0x414e3e[_0x4a0439(0x2a3)],_0x3dc02b=_0x2b3e58['fields'][_0x2b3e58[_0x4a0439(0x242)]],_0x3951df=_0x2b3e58[_0x4a0439(0x1cc)]['slice'](0x0,_0x2b3e58[_0x4a0439(0x242)])[_0x4a0439(0x1e3)](_0x1f85b2=>_0x1f85b2[_0x4a0439(0x20e)]+':\x20'+(_0x1f85b2[_0x4a0439(0x1e1)]?'********':_0x2b3e58[_0x4a0439(0x235)][_0x1f85b2[_0x4a0439(0x2a5)]]));return _0x58d9dd(C,{'title':_0x2b3e58['title'],'width':_0x2aaf86,'height':_0x4c7f4f,'ascii':_0x4f79ed,'active':!0x0},_0x58d9dd(_0x19aeea,{'marginTop':0x1,'flexDirection':_0x4a0439(0x1e2)},..._0x3951df[_0x4a0439(0x1e3)]((_0x3d2fcd,_0x4f047c)=>s(_0x3e3169(_0x3d2fcd,_0x2aaf86-0x6),{'key':_0x4f047c,'dimColor':!0x0})),s(_0x3dc02b['label'],{'bold':!0x0}),_0x58d9dd(_0x19aeea,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x4a0439(0x1dd)](0x2,_0x4c7f4f-0x9),'overflow':_0x4a0439(0x2a7)},s('>\x20',{'color':'cyan'}),_0x58d9dd(_0x117be9,{'key':_0x3dc02b[_0x4a0439(0x2a5)],'value':_0x2b3e58['values'][_0x3dc02b[_0x4a0439(0x2a5)]],'placeholder':_0x3dc02b[_0x4a0439(0x245)]??'','mask':_0x3dc02b[_0x4a0439(0x1e1)]?'*':void 0x0,'onChange':_0xc9a16c=>_0x353435[_0x4a0439(0x1dc)](_0xc9a16c),'onSubmit':()=>_0x2b3e58['field']===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?void _0x353435[_0x4a0439(0x299)]():_0x353435[_0x4a0439(0x2af)]()})),s(_0x2b3e58[_0x4a0439(0x207)]??'',{'color':'red'}),_0x2b3e58[_0x4a0439(0x250)]?s(_0x2b3e58['hint'],{'dimColor':!0x0}):null),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x4a0439(0x273)+(_0x2b3e58[_0x4a0439(0x242)]===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?_0x2b3e58[_0x4a0439(0x28b)]:_0x4a0439(0x244))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':'cyan','wrap':_0x4a0439(0x2ac)}));}function pe({state:_0x35f396,width:_0x5a2c93,height:_0x401687,ascii:_0x301675}){const _0x166aaf=_0x1394b3,_0x22ae9d=_0x35f396[_0x166aaf(0x270)],_0x2af54f=_0x22ae9d[_0x166aaf(0x229)],_0x4925ea=_0x2af54f?.['funding'],_0xea672d=_0x4925ea?.['coin']??_0x2af54f?.['payWith']??_0x166aaf(0x289),_0x3fc8ad=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x2ae)+_0x2af54f[_0x166aaf(0x1ea)]['total']+_0x166aaf(0x290)+_0x2af54f[_0x166aaf(0x277)]+_0x166aaf(0x22b)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+')':_0x166aaf(0x1ca)+_0x2af54f[_0x166aaf(0x277)]+'\x20IMD':null,_0x5293c0=_0x2af54f?_0x166aaf(0x1b9)+_0xea672d+_0x166aaf(0x1b7)+_0x2af54f['chainName']:null,_0x4437fe=_0x4925ea&&_0xea672d!==_0x166aaf(0x289)?_0x166aaf(0x21c)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea['amount'])+(_0x4925ea['converted']?_0x166aaf(0x205):''):null,_0x540e54=_0x4925ea?.['display']?.[_0x166aaf(0x217)]??(_0x2af54f?.[_0x166aaf(0x249)]?_0x2af54f[_0x166aaf(0x249)]+'\x20ETH':null),_0x23bd8d=_0x540e54?_0x166aaf(0x22e)+_0x540e54:null,_0x508a0d=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x20f):'Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.':null;let _0x2bf1c9=_0x2af54f?_0x166aaf(0x1b0)+(_0x2af54f[_0x166aaf(0x1ea)]?.[_0x166aaf(0x29c)]??_0x2af54f['amount'])+_0x166aaf(0x1d0):'';_0x2af54f?.[_0x166aaf(0x1d9)]&&_0x2af54f[_0x166aaf(0x1d9)][_0x166aaf(0x1f4)]!=='IMD'&&(_0x2bf1c9=_0x2af54f['funding'][_0x166aaf(0x1b3)]?_0x166aaf(0x1d8):_0x166aaf(0x25d));const _0x4e00e0=0x2+_0xa87f81(_0x22ae9d['title']??_0x166aaf(0x2a4),_0x5a2c93-0x4)[_0x166aaf(0x27b)]+[_0x3fc8ad,_0x5293c0,_0x4437fe,_0x23bd8d,_0x508a0d][_0x166aaf(0x24d)](Boolean)[_0x166aaf(0x292)]((_0x2efb0d,_0x2b20fd)=>_0x2efb0d+_0xa87f81(_0x2b20fd,_0x5a2c93-0x4)[_0x166aaf(0x27b)],0x0)+(_0x5a2c93<0x46?_0x22ae9d[_0x166aaf(0x236)]?0x3:0x2:0x1)+0x1,_0x2f94d9=_0x2af54f?['REQUEST',_0x2af54f[_0x166aaf(0x1d3)],'',..._0x2af54f[_0x166aaf(0x20a)][_0x166aaf(0x1e3)](_0x30b637=>'-\x20'+_0x30b637),'',..._0x2af54f['support']?[_0x166aaf(0x231),_0x166aaf(0x25a)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+_0x166aaf(0x2a2),'Support\x20recipient:\x20'+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x211)],_0x166aaf(0x1e0),'']:[],..._0x4925ea&&_0xea672d!==_0x166aaf(0x289)?[_0x4925ea[_0x166aaf(0x1b3)]?_0x166aaf(0x20b):_0x166aaf(0x1ec)+_0xea672d+'\x20to\x20IMD\x20for\x20you:\x20\u2248\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x1f6)]??_0x4925ea[_0x166aaf(0x214)]??_0x4925ea['amount'])+_0x166aaf(0x25f)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea[_0x166aaf(0x277)])+'.',..._0xea672d==='ETH'?['Total\x20ETH\x20at\x20most:\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x2a1)]??_0x4925ea['maximumDebit'])+'\x20(payment\x20+\x20gas)']:[],_0x166aaf(0x271)+_0x4925ea['minimumImd'],_0x166aaf(0x1d4),'']:[],_0x166aaf(0x266),..._0x22ae9d[_0x166aaf(0x236)]?[_0x166aaf(0x259)+_0x22ae9d['extraAction']['label']+_0x166aaf(0x20d)]:[],_0x166aaf(0x238),..._0x22ae9d[_0x166aaf(0x251)]?['',_0x166aaf(0x1e9),_0x166aaf(0x1e6)+_0x2af54f[_0x166aaf(0x213)],'Network:\x20'+_0x2af54f[_0x166aaf(0x281)],_0x166aaf(0x25c)+_0x2af54f[_0x166aaf(0x1fc)],'Pay\x20to:\x20'+_0x2af54f[_0x166aaf(0x1b1)],_0x166aaf(0x22f)+_0x2af54f['orderId'],'',_0x166aaf(0x27e),JSON[_0x166aaf(0x1e4)](_0x2af54f[_0x166aaf(0x23a)],null,0x2)]:[]]['join']('\x0a'):_0x22ae9d[_0x166aaf(0x1fd)][_0x166aaf(0x201)]('\x0a');return _0x58d9dd(C,{'title':_0x22ae9d[_0x166aaf(0x1db)]??_0x166aaf(0x2a4),'width':_0x5a2c93,'height':_0x401687,'ascii':_0x301675,'active':!0x0},_0x3fc8ad?s(_0x3fc8ad,{'color':'cyan','bold':!0x0}):null,_0x5293c0?s(_0x5293c0,{'color':_0x166aaf(0x1ba),'bold':!0x0}):null,_0x4437fe?s(_0x4437fe,{'color':_0x166aaf(0x1ba)}):null,_0x23bd8d?s(_0x23bd8d,{'color':_0x166aaf(0x1d2)}):null,_0x58d9dd(O,{'content':_0x2f94d9,'width':_0x5a2c93-0x4,'height':Math[_0x166aaf(0x1dd)](0x0,_0x401687-_0x4e00e0),'offset':_0x35f396[_0x166aaf(0x268)]}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),_0x508a0d?s(_0x508a0d,{'color':'yellow'}):null,_0x58d9dd(_0x19aeea,{'flexDirection':_0x5a2c93<0x46?_0x166aaf(0x1e2):_0x166aaf(0x286),'gap':_0x5a2c93<0x46?0x0:0x3},s('[\x20'+(_0x22ae9d[_0x166aaf(0x2a9)]??(_0x2af54f?_0x166aaf(0x28e):_0x166aaf(0x291)))+'\x20]',{'inverse':_0x22ae9d['selection']===0x0}),_0x22ae9d[_0x166aaf(0x236)]?s('[\x20'+_0x22ae9d['extraAction']['label']+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x1c5)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x2af54f?_0x2bf1c9:_0x22ae9d[_0x166aaf(0x27f)]??_0x166aaf(0x280))+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x2b0)],'color':_0x166aaf(0x1ba)})),s(_0x166aaf(0x26f)+(_0x2af54f?_0x166aaf(0x24b):''),{'dimColor':!0x0,'wrap':_0x166aaf(0x2ac)}));}function _0x5609(){const _0x32155c=['challenged','Pay\x20','payTo','more','converted','modelProgress','repeat','return','\x20on\x20','tab','Pay\x20with\x20','cyan','downArrow','wallet','push','COLONY\x20\x20get\x20things\x20done.','workerMenu','[l]\x20Logs','white','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','move','download','selection','refreshing','Explore','single','Enter/Tab\x20details','Fee\x20','pageUp','fields','Item\x20','upArrow','Browse','\x20IMD\x20&\x20publish','offerFirstWallet','yellow','objective','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','WORKERS','[m]\x20Actions','startsWith','Continue\x20&\x20publish','funding','receive','title','setField','max','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','help','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','secret','column','map','stringify','\x20wallets','Quote\x20expires:\x20','kind','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','PAYMENT\x20DETAILS','support','changeTab','Colony\x20converts\x20','tasks','cycleFilter','Wallet:\x20','close','Esc/Tab\x20list','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','leftArrow','coin','update','estimate','COLONY','chooseMenu','green','DETAILS','WALLET\x20MANAGEMENT','asset','lines','red','split','list','join','Deployed\x20·\x20status\x20on\x20selection','[g]\x20Diagnostics','search','\x20(converted)','test','error','black','note','deliverables','Conversion\x20to\x20IMD\x20already\x20confirmed.','Wallets','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','label','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','escape','recipient','privateKeyView','expiresAt','estimatedAmount','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','[>]','gas','refused','Loading\x20history...','Receive\x20funds','Resize\x20to\x20at\x20least\x20','Payment:\x20at\x20most\x20','shift','autoRefresh','workerCommand','[\x20]\x20tabs','[a]\x20Add\x20target','\x20items\x20·\x20','min','Private\x20key','down\x20loads\x20more','display','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','payment','PgUp/PgDn\x20scroll','\x20+\x20support\x20','walletSetup','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','Gas\x20(network\x20fee):\x20at\x20most\x20','Order:\x20','pageDown','Help\x20us\x20make\x20Colony\x20better.','s\x20save\x20QR\x20·\x20Esc\x20back','includes','network-worker','values','extraAction','expired','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','prepared','Esc\x20hide\x20and\x20return','Activity','chainName','detail','ctrl','navigate','privateKey','field','respond','next','placeholder','\x20tasks','then','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','networkFeeCap','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','\x20·\x20i\x20details','WALLETS','filter','[Ctrl+C]\x20Exit','Workers','hint','expanded','en-US','slice','useSelectedWallet','logs','menu','installed','walletReceive','Choose\x20','Optional\x20support:\x20','[n]\x20New\x20task','Asset:\x20','Convert\x20&\x20publish','columns',',\x20at\x20most\x20','selected','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20results\x20loaded','notice','workers','cursor','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','Work','scroll','terminal','query','\x20entries\x20·\x20Mine\x20+\x20Network','files','[/]\x20Search','addTarget','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','confirm','IMD\x20for\x20this\x20task:\x20','networks','Enter\x20','resumeOrder','moveConfirmation','Preparing\x20local\x20LLM','amount','busy','submitConfirmation','refreshError','length','walletMenu','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','SERVER\x20PREPARED\x20INPUT','acceptLabel','Confirm','network','refresh','items','rows','[e]\x20Error\x20details','row','toLocaleString','view','IMD','subscribe','submit','walletImport','Tip:\x20Review\x20the\x20price\x20before\x20paying.','Cancel\x20/\x20edit','Refreshing\x20tasks...','\x20IMD\x20(fee\x20','Cancel','reduce','space-between','[r]\x20Refresh','floor','[?]\x20Help\x20\x20[q]\x20Quit','\x20task','address','submitForm','taskMenu','Keyboard\x20shortcuts','total','focus','cancelled','intro','Loading...','maximumDebit','\x20IMD','form','Review\x20saved\x20payment','name','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.','hidden','gray','cancelLabel','configured','No\x20matching\x20items.','truncate-end','coins','Total\x20','nextField','accepted'];_0x5609=function(){return _0x32155c;};return _0x5609();}function we({state:_0x510b6b,width:_0x18cdc8,height:_0x53ff39,ascii:_0x4c452f}){const _0x4620f8=_0x1394b3,_0x638f41=_0x510b6b[_0x4620f8(0x256)],_0x427e81=_0x638f41[_0x4620f8(0x1fd)]??[],_0x13e776=_0x427e81['reduce']((_0x32b73d,_0x31a3c0)=>_0x32b73d+Math[_0x4620f8(0x1dd)](0x1,_0xa87f81(_0x31a3c0,_0x18cdc8-0x4)[_0x4620f8(0x27b)]),0x0),_0x13ff0a=Math[_0x4620f8(0x1dd)](0x1,_0x53ff39-0x5-_0x13e776),_0x5ed2e3=Math['max'](0x0,Math[_0x4620f8(0x223)](_0x638f41[_0x4620f8(0x260)]-Math[_0x4620f8(0x295)](_0x13ff0a/0x2),_0x638f41[_0x4620f8(0x283)][_0x4620f8(0x27b)]-_0x13ff0a));return _0x58d9dd(C,{'title':_0x638f41[_0x4620f8(0x1db)],'width':_0x18cdc8,'height':_0x53ff39,'ascii':_0x4c452f,'active':!0x0},..._0x427e81['map']((_0x1cb7c9,_0x160223)=>s(_0x1cb7c9||'\x20',{'key':_0x4620f8(0x29f)+_0x160223})),..._0x638f41[_0x4620f8(0x283)][_0x4620f8(0x253)](_0x5ed2e3,_0x5ed2e3+_0x13ff0a)[_0x4620f8(0x1e3)]((_0x3c3684,_0x1b1f26)=>s((_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]?'>\x20':'\x20\x20')+_0x3c3684[_0x4620f8(0x20e)],{'key':_0x1b1f26,'inverse':_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]})),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x638f41['hint']??_0x4620f8(0x22d),{'dimColor':!0x0}));}const ge=_0x1394b3(0x2a6);function Ae({controller:_0x58bd3c,ascii:_0x1c9d63=!0x1,dimensions:_0x296f46,terminal:_0x5642ea,feedback:_0xd74da,welcome:_0x151602=!0x1}){const _0x1dac5d=_0x1394b3,_0x67bd3b=_0x64a80b(_0x58bd3c[_0x1dac5d(0x28a)],_0x58bd3c['getSnapshot']),[_0x1b1640,_0x1d4fa7]=_0x2f2dac(0x0);_0x3db06e(()=>{const _0x51d80f=_0x1dac5d,_0x465184=setInterval(()=>_0x1d4fa7(_0xeeaf72=>(_0xeeaf72+0x1)%B[_0x51d80f(0x27b)]),0x4e20);return()=>clearInterval(_0x465184);},[]);const _0x5ee4fa=_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b['refreshError'],_0x4432c3=_0x1977a6(),_0x3a0aff=_0x296f46??_0x4432c3,_0x492b58=_0x3a0aff[_0x1dac5d(0x25e)],_0x26b0d8=Math['max'](0x8,_0x3a0aff[_0x1dac5d(0x284)]-0x1),_0x19793a=_0x492b58<0x64,{exit:_0x1d8d39}=_0x33449e();if(_0x3db06e(()=>(_0x58bd3c[_0x1dac5d(0x269)]=_0x5642ea,_0x58bd3c[_0x1dac5d(0x282)]()[_0x1dac5d(0x247)](()=>{const _0x3b50c4=_0x1dac5d;if(_0xd74da)_0x58bd3c[_0x3b50c4(0x1f5)](_0xd74da);else{if(_0x151602)return _0x58bd3c[_0x3b50c4(0x1d1)]();}}),()=>_0x58bd3c[_0x1dac5d(0x1f0)]()),[_0x58bd3c,_0x5642ea,_0xd74da,_0x151602]),_0x3db06e(()=>{const _0x52b026=setInterval(()=>{const _0x49af03=_0x242c;_0x58bd3c[_0x49af03(0x21e)]();},0x1388);return()=>clearInterval(_0x52b026);},[_0x58bd3c]),_0x503b1c((_0x1f6d7b,_0x5865a2)=>{const _0x321c2f=_0x1dac5d;if(_0x5865a2[_0x321c2f(0x23f)]&&_0x1f6d7b==='c'){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(_0x67bd3b[_0x321c2f(0x212)]){_0x5865a2['escape']&&_0x58bd3c[_0x321c2f(0x1f5)]({'privateKeyView':null});return;}if(_0x492b58<0x28||_0x3a0aff[_0x321c2f(0x284)]<0x14){_0x67bd3b[_0x321c2f(0x1da)]?_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive']():_0x1f6d7b==='q'&&(_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39());return;}if(_0x67bd3b[_0x321c2f(0x270)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c[_0x321c2f(0x243)](!0x1):_0x5865a2[_0x321c2f(0x1b8)]||_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['rightArrow']?_0x58bd3c[_0x321c2f(0x275)](_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['tab']&&_0x5865a2[_0x321c2f(0x21d)]?-0x1:0x1):_0x5865a2['return']?_0x58bd3c[_0x321c2f(0x279)]():_0x1f6d7b==='i'?_0x58bd3c[_0x321c2f(0x1f5)]({'confirm':{..._0x67bd3b[_0x321c2f(0x270)],'expanded':!_0x67bd3b[_0x321c2f(0x270)][_0x321c2f(0x251)]},'scroll':0x0}):(_0x5865a2['pageDown']||_0x5865a2[_0x321c2f(0x1cb)])&&_0x58bd3c[_0x321c2f(0x1f5)]({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:-0x5))});return;}if(_0x67bd3b[_0x321c2f(0x2a3)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissForm']():_0x5865a2['tab']&&_0x58bd3c[_0x321c2f(0x2af)](_0x5865a2[_0x321c2f(0x21d)]);return;}if(_0x67bd3b[_0x321c2f(0x1da)]){_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive'](),_0x1f6d7b==='s'&&_0x58bd3c['saveReceiveQr']();return;}if(_0x67bd3b['menu']){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissMenu']():_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)]?_0x58bd3c['update']({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Math[_0x321c2f(0x1dd)](0x0,Math['min'](_0x67bd3b[_0x321c2f(0x256)]['items'][_0x321c2f(0x27b)]-0x1,_0x67bd3b[_0x321c2f(0x256)][_0x321c2f(0x260)]+(_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1)))}}):_0x5865a2[_0x321c2f(0x1b6)]?_0x58bd3c[_0x321c2f(0x1f8)]():_0x67bd3b[_0x321c2f(0x256)]['numbered']&&/^[1-9]$/[_0x321c2f(0x206)](_0x1f6d7b)&&Number(_0x1f6d7b)<=_0x67bd3b['menu'][_0x321c2f(0x283)][_0x321c2f(0x27b)]&&(_0x58bd3c[_0x321c2f(0x1f5)]({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Number(_0x1f6d7b)-0x1}}),_0x58bd3c[_0x321c2f(0x1f8)]());return;}if(_0x1f6d7b==='q'&&!_0x67bd3b['busy']){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(!_0x67bd3b[_0x321c2f(0x278)]){if(_0x1f6d7b==='e'&&_0x5ee4fa){_0x58bd3c['showError']();return;}if(_0x321c2f(0x239)[_0x321c2f(0x233)](_0x1f6d7b)&&_0x1f6d7b['length']===0x1){_0x58bd3c[_0x321c2f(0x240)](_0x4d1b58[Number(_0x1f6d7b)-0x1]);return;}if(_0x1f6d7b==='?'){_0x58bd3c['update']({'help':!_0x67bd3b[_0x321c2f(0x1df)],'scroll':0x0});return;}if(_0x5865a2['escape']){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x321c2f(0x200),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x1f6d7b==='n'){_0x67bd3b['view']===_0x321c2f(0x1bc)?_0x58bd3c[_0x321c2f(0x22c)](!0x1):_0x58bd3c['create']();return;}if(_0x1f6d7b==='r'){_0x58bd3c[_0x321c2f(0x282)]();return;}if(_0x5865a2[_0x321c2f(0x230)]||_0x5865a2[_0x321c2f(0x1cb)]||_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x23e)&&(_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)])){_0x58bd3c['update']({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:_0x5865a2['pageUp']?-0x5:_0x5865a2['downArrow']?0x1:-0x1))});return;}if(_0x67bd3b[_0x321c2f(0x288)]==='wallet'){(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)])&&_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2['downArrow']?0x1:-0x1),(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)])&&_0x58bd3c['update']({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?_0x321c2f(0x23e):'list','scroll':0x0}),_0x1f6d7b==='u'&&_0x58bd3c[_0x321c2f(0x254)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x27c)](),_0x1f6d7b==='g'&&_0x58bd3c['walletManagement'](),_0x1f6d7b==='i'&&_0x58bd3c[_0x321c2f(0x28c)](),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x258)](),_0x1f6d7b==='b'&&_0x58bd3c['walletBackup']();return;}if(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)]){_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1);return;}if(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)]){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?'detail':'list','scroll':0x0});return;}if(_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x264)){_0x1f6d7b==='/'&&_0x58bd3c[_0x321c2f(0x204)](),_0x1f6d7b==='a'&&_0x58bd3c[_0x321c2f(0x26e)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x1bf)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x21f)]([_0x321c2f(0x255)]),_0x1f6d7b==='g'&&_0x58bd3c[_0x321c2f(0x21f)](['doctor']);return;}_0x1f6d7b==='/'&&_0x58bd3c['search'](),_0x1f6d7b==='f'&&_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x1ed)&&_0x58bd3c[_0x321c2f(0x1ee)](),(_0x1f6d7b==='['||_0x1f6d7b===']')&&_0x58bd3c[_0x321c2f(0x1eb)](_0x1f6d7b==='['?-0x1:0x1),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x26c)](),_0x1f6d7b==='s'&&_0x58bd3c[_0x321c2f(0x1c4)](),_0x1f6d7b==='c'&&_0x58bd3c['continueTask'](),_0x1f6d7b==='o'&&_0x58bd3c[_0x321c2f(0x274)](),_0x1f6d7b==='x'&&_0x58bd3c['cancelRequest'](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x29a)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x1b2)]();}}),_0x492b58<0x28||_0x3a0aff[_0x1dac5d(0x284)]<0x14)return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'flexDirection':'column'},s(_0x1dac5d(0x1f7),{'color':_0x1dac5d(0x1ba)}),s(_0x1dac5d(0x215)),s(_0x67bd3b[_0x1dac5d(0x1da)]||_0x67bd3b[_0x1dac5d(0x212)]?'Esc\x20back':_0x1dac5d(0x1e8)));if(_0x67bd3b[_0x1dac5d(0x212)])return _0x58d9dd(C,{'title':_0x1dac5d(0x224),'width':_0x492b58,'height':_0x26b0d8,'ascii':_0x1c9d63,'active':!0x0},s(_0x1dac5d(0x1ef)+_0x67bd3b[_0x1dac5d(0x212)][_0x1dac5d(0x298)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':_0x1dac5d(0x1d2)}),_0x58d9dd(_0x19aeea,{'marginTop':0x1},s(_0x67bd3b['privateKeyView'][_0x1dac5d(0x241)])),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x1dac5d(0x23b),{'color':'cyan'}));if(_0x67bd3b[_0x1dac5d(0x1da)]&&!_0x67bd3b[_0x1dac5d(0x2a3)]){const _0xd74bc5=_0x67bd3b[_0x1dac5d(0x1da)],_0x53a493=_0xd74bc5['qr'][_0x1dac5d(0x1ff)]('\x0a'),_0x4605fa=!_0xd74bc5[_0x1dac5d(0x272)]||_0xd74bc5[_0x1dac5d(0x272)]['length']===0x1,_0x1dd7d7=[..._0x4605fa?['Accepted:\x20'+_0xd74bc5['coins']['join'](',\x20')]:_0xd74bc5[_0x1dac5d(0x272)]['map'](_0x1482fc=>_0x1482fc[_0x1dac5d(0x23d)]+':\x20'+_0x1482fc[_0x1dac5d(0x2ad)]['join'](',\x20')),..._0xd74bc5['targets']??[]],_0x31edb0=_0x4605fa?'Send\x20on\x20'+_0xd74bc5['chainName']+'\x20only.\x20Choose\x20'+_0xd74bc5[_0x1dac5d(0x23d)]+_0x1dac5d(0x27d):'Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.',_0xc4f218=[_0xd74bc5[_0x1dac5d(0x298)],..._0x1dd7d7,_0x31edb0][_0x1dac5d(0x292)]((_0x35505b,_0x4429b3)=>_0x35505b+_0xa87f81(_0x4429b3,_0x492b58)[_0x1dac5d(0x27b)],0x0),_0x3980f1=_0x53a493[_0x1dac5d(0x27b)]+_0xc4f218+0x2,_0x32e485=_0x492b58>=_0x53a493[0x0][_0x1dac5d(0x27b)]&&_0x26b0d8>=_0x3980f1;return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},s(_0x4605fa?'Receive\x20on\x20'+_0xd74bc5[_0x1dac5d(0x23d)]:_0x1dac5d(0x21a),{'bold':!0x0,'color':'cyan'}),s(_0xd74bc5[_0x1dac5d(0x298)]),..._0x1dd7d7[_0x1dac5d(0x1e3)]((_0x22f8f5,_0x236721)=>s(_0x22f8f5,{'key':_0x236721})),_0x32e485?s(_0xd74bc5['qr'],{'color':_0x1dac5d(0x208),'backgroundColor':_0x1dac5d(0x1c1)}):s(_0x1dac5d(0x21b)+Math[_0x1dac5d(0x1dd)](0x28,_0x53a493[0x0][_0x1dac5d(0x27b)])+'\x20columns\x20and\x20'+(_0x3980f1+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x31edb0,{'color':_0x1dac5d(0x1d2)}),s(_0x3e3169(_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b[_0x1dac5d(0x263)]??_0x1dac5d(0x232),_0x492b58),{'color':_0x67bd3b[_0x1dac5d(0x207)]?_0x1dac5d(0x1fe):'cyan'}));}const _0x1a714c=_0x67bd3b['form']||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x1b4)],_0xfc16dc=Math[_0x1dac5d(0x1dd)](0x6,_0x26b0d8-(_0x1a714c?0x3:0x6)),_0x3dbcc3=_0x56bbe3(_0x67bd3b)[_0x67bd3b[_0x1dac5d(0x260)]];let _0xb8d65f;if(_0x67bd3b[_0x1dac5d(0x2a3)])_0xb8d65f=_0x58d9dd(he,{'controller':_0x58bd3c,'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b['confirm'])_0xb8d65f=_0x58d9dd(pe,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1b4)])_0xb8d65f=_0x58d9dd(fe,{'event':_0x67bd3b[_0x1dac5d(0x1b4)],'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x256)])_0xb8d65f=_0x58d9dd(we,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1df)])_0xb8d65f=_0x58d9dd(C,{'title':_0x1dac5d(0x29b),'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':!0x0},_0x58d9dd(O,{'content':ge,'width':_0x492b58-0x4,'height':_0xfc16dc-0x4,'offset':_0x67bd3b['scroll']}),s(_0x1dac5d(0x228),{'dimColor':!0x0}));else{if(_0x67bd3b['view']==='wallet')_0xb8d65f=_0x58d9dd(me,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'narrow':_0x19793a});else{const _0x2083bf=!_0x19793a||_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200),_0x1493e0=!_0x19793a||_0x67bd3b['focus']===_0x1dac5d(0x23e),_0x4905b7=_0x19793a?_0x492b58:Math[_0x1dac5d(0x295)](_0x492b58*0.43),_0x52427d=_0x2083bf&&!_0x19793a?_0x492b58-_0x4905b7-0x1:_0x492b58,_0x4a8af0=_0x228f58({..._0x67bd3b,'selectedId':_0x3dbcc3?.['id']}),_0x1a4282=_0x67bd3b['view']===_0x1dac5d(0x1ed)||_0x67bd3b[_0x1dac5d(0x288)]==='explore',_0xd75ed7=_0x1a4282?_0x52a8bb(_0x3dbcc3,_0x67bd3b[_0x1dac5d(0x288)]):_0x3dbcc3?_0x3dbcc3[_0x1dac5d(0x1e7)]===_0x1dac5d(0x234)?['Read\x20only']:[_0x1dac5d(0x1d6),_0x1dac5d(0x1c0),_0x1dac5d(0x203)]:[];_0x5ee4fa&&_0xd75ed7[_0x1dac5d(0x1bd)](_0x1dac5d(0x285));const _0x4fdb51=L(_0xd75ed7,_0x52427d-0x4),_0x20b76e=_0x4fdb51[_0x1dac5d(0x27b)]?_0x4fdb51[_0x1dac5d(0x27b)]+0x1:0x0,_0x295ea4=L([_0x1dac5d(0x1f1),_0x1dac5d(0x22a),..._0x1a4282?[_0x1dac5d(0x220)]:[]],_0x52427d-0x4);_0xb8d65f=_0x58d9dd(_0x19aeea,{'height':_0xfc16dc,'width':_0x492b58,'gap':0x1},_0x2083bf?_0x58d9dd(C,{'title':(_0x67bd3b[_0x1dac5d(0x288)]==='workers'?_0x1dac5d(0x1d5):_0x67bd3b[_0x1dac5d(0x24d)])+(_0x67bd3b[_0x1dac5d(0x26a)]?'\x20/\x20'+_0x3e3169(_0x67bd3b[_0x1dac5d(0x26a)],0x16):''),'width':_0x4905b7,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200)},_0x58d9dd(Y,{'state':_0x67bd3b,'height':_0xfc16dc,'width':_0x4905b7-0x4,'ascii':_0x1c9d63})):null,_0x1493e0?_0x58d9dd(C,{'title':_0x3e3169(_0x3dbcc3?.['id']??_0x1dac5d(0x1fa),_0x52427d-0x7),'width':_0x52427d,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x23e)},_0x1a4282?s(['Overview',_0x1dac5d(0x23c),'Files'][_0x1dac5d(0x1e3)](_0x374da1=>_0x374da1===_0x67bd3b[_0x1dac5d(0x1b8)]?'['+_0x374da1+']':_0x374da1)[_0x1dac5d(0x201)]('\x20\x20'),{'color':_0x1dac5d(0x1ba),'wrap':'truncate-end'}):null,_0x58d9dd(O,{'content':_0x4a8af0,'width':_0x52427d-0x4,'height':_0xfc16dc-0x3-Number(_0x1a4282)-_0x20b76e-_0x295ea4['length'],'offset':_0x67bd3b['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x295ea4['map']((_0x316921,_0x3c0a2e)=>s(_0x316921,{'key':_0x3c0a2e,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x4fdb51,'width':_0x52427d-0x4,'ascii':_0x1c9d63})):null);}}}}}}const _0x25955e=_0x67bd3b[_0x1dac5d(0x2a3)]||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?_0x1dac5d(0x24e):_0x1dac5d(0x296),_0x59c1a0=_0x492b58<0x4b?_0x4d1b58[_0x1dac5d(0x1e3)]((_0x258fb2,_0x117979)=>'['+(_0x117979+0x1)+']'+['Mine',_0x1dac5d(0x1cf),_0x1dac5d(0x267),'Wallets'][_0x117979])[_0x1dac5d(0x201)]('\x20'):_0x4d1b58['map']((_0x329452,_0x28cb7d)=>(_0x329452===_0x67bd3b[_0x1dac5d(0x288)]?'>\x20':'\x20\x20')+'['+(_0x28cb7d+0x1)+']\x20'+de[_0x329452])[_0x1dac5d(0x201)]('\x20\x20');return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},_0x58d9dd(_0x19aeea,{'justifyContent':_0x1dac5d(0x293),'height':_0x1a714c?0x1:0x2},s(_0x1dac5d(0x1be),{'color':_0x1dac5d(0x1ba),'bold':!0x0}),_0x492b58>=0x4b?s(_0x67bd3b[_0x1dac5d(0x298)]?_0x3e3169(_0x67bd3b['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1a714c?null:s(_0x59c1a0,{'color':_0x1dac5d(0x1ba),'wrap':_0x1dac5d(0x2ac)}),_0x1a714c?null:_0x67bd3b[_0x1dac5d(0x278)]||_0x67bd3b[_0x1dac5d(0x1c6)]?_0x58d9dd(z,{'label':_0x67bd3b[_0x1dac5d(0x278)]??_0x1dac5d(0x28f)}):s(_0x67bd3b[_0x1dac5d(0x209)],{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}),_0xb8d65f,s(_0x3e3169(_0x5ee4fa??_0x67bd3b[_0x1dac5d(0x263)]??(_0x1a714c||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?'':B[_0x1b1640]),_0x492b58),{'color':_0x5ee4fa?_0x1dac5d(0x1fe):_0x67bd3b[_0x1dac5d(0x263)]?_0x1dac5d(0x1f9):void 0x0,'dimColor':!_0x5ee4fa&&!_0x67bd3b[_0x1dac5d(0x263)]}),s(_0x25955e,{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}));}export{Ae as DashboardApp};
|
|
1
|
+
const _0xd0a99e=_0x317a;import{createElement as _0x3806f1,useEffect as _0x5a6d2c,useState as _0x3fb89f,useSyncExternalStore as _0x5a4292}from'react';import{Box as _0x29b182,Text as _0x674495,useApp as _0x408345,useInput as _0x406961,useWindowSize as _0x5391ad}from'ink';import _0x94e76d from'ink-text-input';import _0x35bddf from'string-width';import{visibleItems as _0x1ddba0,VIEWS as _0xed352b}from'./controller.mjs';import{clean as _0x478e2f,detailText as _0x1c082d,lines as _0x1eb0fa,short as _0x369ca2,statusLabel as _0x23b596,taskActions as _0x537c95}from'./presentation.mjs';import{modelProgressLines as _0x5bb706}from'../planner/progress.mjs';const ce={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},de={'tasks':_0xd0a99e(0x1fa),'explore':_0xd0a99e(0x2c6),'workers':_0xd0a99e(0x257),'wallet':_0xd0a99e(0x217)},B=[_0xd0a99e(0x214),_0xd0a99e(0x1e9),_0xd0a99e(0x2ae),'Tip:\x20Review\x20the\x20price\x20before\x20paying.',_0xd0a99e(0x2ed)],ue=_0x114d0e=>_0x114d0e===_0xd0a99e(0x2a5)?_0xd0a99e(0x1f0):_0x114d0e===_0xd0a99e(0x241)?_0xd0a99e(0x244):['challenged',_0xd0a99e(0x24a),_0xd0a99e(0x20e),'payment_failed','expired'][_0xd0a99e(0x20c)](_0x114d0e)?'yellow':_0xd0a99e(0x2ba),s=(_0x46804f,_0x4dbf49={})=>_0x3806f1(_0x674495,_0x4dbf49,_0x478e2f(_0x46804f));function Y({label:_0x53317b}){const _0x19c713=_0xd0a99e,[_0x431b29,_0x862f2a]=_0x3fb89f(0x0);return _0x5a6d2c(()=>{const _0x5be973=setInterval(()=>_0x862f2a(_0x29b225=>(_0x29b225+0x1)%0x4),0x96);return()=>clearInterval(_0x5be973);},[]),s(['|','/','-','\x5c'][_0x431b29]+'\x20'+_0x53317b,{'color':_0x19c713(0x2ba),'wrap':'truncate-end'});}function k({title:_0x455165,width:_0x23bdb1,height:_0xcf2156,ascii:_0x40e758,active:_0x5539c2,children:_0x40beea}){const _0x40b2d3=_0xd0a99e;return _0x3806f1(_0x29b182,{'width':_0x23bdb1,'height':_0xcf2156,'flexDirection':_0x40b2d3(0x2ce),'borderStyle':_0x40e758?ce:_0x40b2d3(0x28a),'borderColor':_0x5539c2?_0x40b2d3(0x2ba):'gray','paddingX':0x1,'flexShrink':0x0,'overflow':'hidden'},s(_0x455165,{'color':_0x5539c2?_0x40b2d3(0x2ba):void 0x0,'dimColor':!_0x5539c2}),_0x40beea);}function I(_0x1a29bc,_0x368133){const _0xb60859=_0xd0a99e,_0x5a4d2e=[];for(const _0x1abe04 of _0x1a29bc){const _0x467ce1=_0x5a4d2e[_0xb60859(0x1fc)]-0x1;_0x467ce1>=0x0&&_0x35bddf(_0x5a4d2e[_0x467ce1]+'\x20\x20'+_0x1abe04)<=_0x368133?_0x5a4d2e[_0x467ce1]+='\x20\x20'+_0x1abe04:_0x5a4d2e[_0xb60859(0x21d)](_0x1abe04);}return _0x5a4d2e;}function V({rows:_0x101a8b,width:_0x24faea,ascii:_0x15ca69}){const _0x33dc75=_0xd0a99e;return _0x101a8b[_0x33dc75(0x1fc)]?_0x3806f1(_0x29b182,{'flexDirection':_0x33dc75(0x2ce),'flexShrink':0x0},s((_0x15ca69?'-':'\u2500')[_0x33dc75(0x21e)](_0x24faea),{'dimColor':!0x0}),..._0x101a8b[_0x33dc75(0x2e8)]((_0xd5a185,_0x5e5320)=>s(_0xd5a185,{'key':_0x5e5320,'color':_0x33dc75(0x2ba),'bold':!0x0}))):null;}function fe({event:_0x1fde60,width:_0x22abac,height:_0x51e5b3,ascii:_0x5b342e}){const _0x5c9223=_0xd0a99e,_0x51c50c=_0x5bb706(_0x1fde60,{'width':_0x22abac-0x4,'compact':!0x0})[_0x5c9223(0x267)](0x2);return _0x3806f1(k,{'title':'Preparing\x20local\x20LLM','width':_0x22abac,'height':_0x51e5b3,'ascii':_0x5b342e,'active':!0x0},_0x3806f1(_0x29b182,{'flexDirection':_0x5c9223(0x2ce)},..._0x51c50c[_0x5c9223(0x2e8)]((_0x2f7efa,_0x20c01c)=>_0x2f7efa[_0x5c9223(0x2d0)](_0x5c9223(0x2a2))?_0x3806f1(Y,{'key':_0x20c01c,'label':_0x2f7efa[_0x5c9223(0x267)](0x4)}):s(_0x2f7efa||'\x20',{'key':_0x20c01c,'color':_0x2f7efa[_0x5c9223(0x2d0)]('[+]')?_0x5c9223(0x244):_0x5c9223(0x2ba)}))),_0x3806f1(_0x29b182,{'flexGrow':0x1}));}function O({content:_0x3b2b80,width:_0x27cc88,height:_0x2e78b3,offset:_0x133f95}){const _0x38b568=_0xd0a99e,_0x2671df=_0x1eb0fa(_0x3b2b80,_0x27cc88),_0x4b6034=Math[_0x38b568(0x225)](_0x133f95,Math[_0x38b568(0x23f)](0x0,_0x2671df['length']-_0x2e78b3));return _0x3806f1(_0x29b182,{'flexDirection':'column','height':_0x2e78b3,'overflow':'hidden'},..._0x2671df[_0x38b568(0x267)](_0x4b6034,_0x4b6034+_0x2e78b3)[_0x38b568(0x2e8)]((_0x356ec1,_0x1ac40c)=>s(_0x356ec1||'\x20',{'key':_0x1ac40c})));}function _0x317a(_0x123760,_0x2d9a9a){_0x123760=_0x123760-0x1e6;const _0x317a28=_0x2d9a();let _0x47d046=_0x317a28[_0x123760];return _0x47d046;}function z({state:_0x321759,height:_0x4207ca,width:_0x28a393,ascii:_0x385853}){const _0x1d62fb=_0xd0a99e,_0x48207e=_0x1ddba0(_0x321759),_0x5d03f0=_0x321759[_0x1d62fb(0x29a)]===_0x1d62fb(0x27c),_0x34071f=_0x321759['view']==='tasks'?['[n]\x20New\x20task',_0x1d62fb(0x271),'[f]\x20Filter',_0x1d62fb(0x26d)]:_0x5d03f0?['[n]\x20New\x20task',_0x1d62fb(0x271),'[r]\x20Refresh']:_0x321759[_0x1d62fb(0x29a)]===_0x1d62fb(0x2e2)?[_0x1d62fb(0x1ef),_0x1d62fb(0x271),_0x1d62fb(0x26d)]:[];_0x321759['view']!==_0x1d62fb(0x207)&&(_0x321759['error']||_0x321759[_0x1d62fb(0x24b)])&&_0x34071f[_0x1d62fb(0x21d)](_0x1d62fb(0x289));const _0x15e57a=I(_0x34071f,_0x28a393),_0x1eadf7=_0x5d03f0?_0x321759[_0x1d62fb(0x23b)]:_0x48207e[_0x1d62fb(0x1fc)],_0x5f396d=_0x5d03f0?_0x1eadf7===null?_0x48207e[_0x1d62fb(0x1fc)]+_0x1d62fb(0x25e):_0x1eadf7[_0x1d62fb(0x1f8)]('en-US')+(_0x1eadf7===0x1?_0x1d62fb(0x28e):'\x20tasks'):_0x48207e['length']+(_0x321759['view']==='wallet'?_0x1d62fb(0x291):_0x321759['view']===_0x1d62fb(0x2e2)?_0x1d62fb(0x227):_0x1d62fb(0x210)+_0x321759['filter']),_0x4b5e2a=_0x1eadf7===null?'Item\x20'+(_0x321759['selected']+0x1):_0x321759[_0x1d62fb(0x2ef)]+0x1+'/'+_0x1eadf7['toLocaleString'](_0x1d62fb(0x2ec)),_0x5ce5d8=_0x5d03f0&&_0x321759[_0x1d62fb(0x2ef)]===_0x48207e[_0x1d62fb(0x1fc)]-0x1;let _0xc3c313=_0x1d62fb(0x2e7);_0x5ce5d8&&(_0x321759[_0x1d62fb(0x256)]?_0xc3c313=_0x1d62fb(0x27b):_0x321759[_0x1d62fb(0x1f6)]&&_0x321759['cursor']?_0xc3c313=_0x1d62fb(0x2b0):_0xc3c313=_0x321759[_0x1d62fb(0x279)]?_0x1d62fb(0x230):_0x1d62fb(0x2ad));const _0x40c470=_0x48207e[_0x1d62fb(0x1fc)]?I([_0x4b5e2a,_0xc3c313,'Enter/Tab\x20details'],_0x28a393):[],_0x2c0c77=_0x15e57a[_0x1d62fb(0x1fc)]?_0x15e57a['length']+0x1:0x0,_0x56d361=Math[_0x1d62fb(0x23f)](0x1,Math[_0x1d62fb(0x2cf)]((_0x4207ca-0x4-_0x40c470[_0x1d62fb(0x1fc)]-_0x2c0c77)/0x3)),_0x212e42=Math[_0x1d62fb(0x23f)](0x0,Math[_0x1d62fb(0x225)](_0x321759[_0x1d62fb(0x2ef)]-Math[_0x1d62fb(0x2cf)](_0x56d361/0x2),_0x48207e[_0x1d62fb(0x1fc)]-_0x56d361));return _0x3806f1(_0x29b182,{'flexDirection':_0x1d62fb(0x2ce),'flexGrow':0x1},s(_0x5f396d,{'dimColor':!0x0}),..._0x48207e[_0x1d62fb(0x267)](_0x212e42,_0x212e42+_0x56d361)[_0x1d62fb(0x2e8)]((_0x2a90f1,_0x16f3f0)=>_0x3806f1(_0x29b182,{'key':_0x2a90f1['id'],'flexDirection':_0x1d62fb(0x2ce)},s((_0x321759[_0x1d62fb(0x2ef)]===_0x212e42+_0x16f3f0?'>\x20':'\x20\x20')+_0x369ca2((_0x2a90f1['kind']==='managed-worker'?_0x1d62fb(0x2c9):'')+_0x2a90f1['title'],_0x28a393-0x2),{'inverse':_0x321759[_0x1d62fb(0x2ef)]===_0x212e42+_0x16f3f0,'bold':_0x321759[_0x1d62fb(0x2ef)]===_0x212e42+_0x16f3f0}),s('\x20\x20'+_0x369ca2(_0x2a90f1['subtitle']??_0x23b596(_0x2a90f1[_0x1d62fb(0x204)])??(_0x2a90f1['installed']?_0x1d62fb(0x27d):_0x1d62fb(0x2a3)),_0x28a393-0x2),{'color':ue(_0x2a90f1[_0x1d62fb(0x204)])}),s((_0x385853?'-':'\u2500')[_0x1d62fb(0x21e)](_0x28a393),{'dimColor':!0x0}))),_0x48207e[_0x1d62fb(0x1fc)]===0x0?s(_0x321759[_0x1d62fb(0x256)]?_0x1d62fb(0x250):_0x321759['error']?'Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.':_0x321759['view']===_0x1d62fb(0x207)?'No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.':_0x321759['view']===_0x1d62fb(0x1f7)?_0x1d62fb(0x1fd):_0x1d62fb(0x284),{'dimColor':!0x0}):null,_0x3806f1(_0x29b182,{'flexGrow':0x1}),..._0x40c470[_0x1d62fb(0x2e8)]((_0x226b76,_0x737a4e)=>s(_0x226b76,{'key':_0x737a4e,'dimColor':!0x0})),_0x3806f1(V,{'rows':_0x15e57a,'width':_0x28a393,'ascii':_0x385853}));}function me({state:_0x1d5f34,width:_0x482725,height:_0x3ff006,ascii:_0x32284c,narrow:_0x32e6f9}){const _0xb8b2e4=_0xd0a99e,_0x430b35=_0x32e6f9?_0x482725:Math[_0xb8b2e4(0x2cf)](_0x482725*0.43),_0xfe2fbd=_0x32e6f9?_0x482725:_0x482725-_0x430b35-0x1,_0x558ce0=0x5,_0x4cd248=_0x3ff006-_0x558ce0,_0x1b74c8=_0x1d5f34[_0xb8b2e4(0x2c8)]?.[_0xb8b2e4(0x261)]?[_0xb8b2e4(0x2aa),_0xb8b2e4(0x26d)]:[_0xb8b2e4(0x26d)];(_0x1d5f34['error']||_0x1d5f34[_0xb8b2e4(0x24b)])&&_0x1b74c8[_0xb8b2e4(0x21d)](_0xb8b2e4(0x289));const _0x2c1b82=I(_0x1b74c8,_0xfe2fbd-0x4),_0x533185=I([_0xb8b2e4(0x211),'PgUp/PgDn\x20scroll'],_0xfe2fbd-0x4),_0x5ba8ec=_0x3806f1(k,{'title':_0xb8b2e4(0x253),'width':_0x430b35,'height':_0x32e6f9?_0x4cd248:_0x3ff006,'ascii':_0x32284c,'active':_0x1d5f34[_0xb8b2e4(0x24d)]===_0xb8b2e4(0x272)},_0x3806f1(z,{'state':_0x1d5f34,'height':_0x32e6f9?_0x4cd248:_0x3ff006,'width':_0x430b35-0x4,'ascii':_0x32284c})),_0xeccf36=_0x3806f1(k,{'title':'WALLET\x20DETAILS\x20\xB7\x20selected\x20wallet','width':_0xfe2fbd,'height':_0x4cd248,'ascii':_0x32284c,'active':_0x1d5f34[_0xb8b2e4(0x24d)]===_0xb8b2e4(0x2c8)},_0x3806f1(O,{'content':_0x1c082d(_0x1d5f34),'width':_0xfe2fbd-0x4,'height':_0x4cd248-0x4-_0x533185[_0xb8b2e4(0x1fc)]-_0x2c1b82[_0xb8b2e4(0x1fc)],'offset':_0x1d5f34['scroll']}),_0x3806f1(_0x29b182,{'flexGrow':0x1}),..._0x533185[_0xb8b2e4(0x2e8)]((_0x4c521f,_0xe2bca0)=>s(_0x4c521f,{'key':_0xe2bca0,'dimColor':!0x0})),_0x3806f1(V,{'rows':_0x2c1b82,'width':_0xfe2fbd-0x4,'ascii':_0x32284c})),_0x2f3e49=_0x3806f1(k,{'title':'WALLET\x20MANAGEMENT','width':_0xfe2fbd,'height':_0x558ce0,'ascii':_0x32284c,'active':!0x1},s(_0xb8b2e4(0x209)),s(_0xb8b2e4(0x27f)));return _0x32e6f9?_0x3806f1(_0x29b182,{'flexDirection':_0xb8b2e4(0x2ce),'width':_0x482725,'height':_0x3ff006},_0x1d5f34[_0xb8b2e4(0x24d)]===_0xb8b2e4(0x272)?_0x5ba8ec:_0xeccf36,_0x2f3e49):_0x3806f1(_0x29b182,{'width':_0x482725,'height':_0x3ff006,'gap':0x1},_0x5ba8ec,_0x3806f1(_0x29b182,{'width':_0xfe2fbd,'flexDirection':'column'},_0xeccf36,_0x2f3e49));}function he({controller:_0x1b7587,state:_0x3d920c,width:_0x498a5d,height:_0x34a241,ascii:_0x42fe75}){const _0x48b58a=_0xd0a99e,_0x5f8f95=_0x3d920c[_0x48b58a(0x247)],_0x47d997=_0x5f8f95[_0x48b58a(0x2d9)][_0x5f8f95[_0x48b58a(0x277)]],_0x12971c=_0x5f8f95[_0x48b58a(0x2d9)][_0x48b58a(0x267)](0x0,_0x5f8f95[_0x48b58a(0x277)])['map'](_0x2eecd0=>_0x2eecd0[_0x48b58a(0x26a)]+':\x20'+(_0x2eecd0[_0x48b58a(0x239)]?'********':_0x5f8f95['values'][_0x2eecd0[_0x48b58a(0x22e)]]));return _0x3806f1(k,{'title':_0x5f8f95[_0x48b58a(0x266)],'width':_0x498a5d,'height':_0x34a241,'ascii':_0x42fe75,'active':!0x0},_0x3806f1(_0x29b182,{'marginTop':0x1,'flexDirection':_0x48b58a(0x2ce)},..._0x12971c[_0x48b58a(0x2e8)]((_0x22a0c0,_0x1f6881)=>s(_0x369ca2(_0x22a0c0,_0x498a5d-0x6),{'key':_0x1f6881,'dimColor':!0x0})),s(_0x47d997[_0x48b58a(0x26a)],{'bold':!0x0}),_0x3806f1(_0x29b182,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x48b58a(0x23f)](0x2,_0x34a241-0x9),'overflow':'hidden'},s('>\x20',{'color':_0x48b58a(0x2ba)}),_0x3806f1(_0x94e76d,{'key':_0x47d997[_0x48b58a(0x22e)],'value':_0x5f8f95['values'][_0x47d997[_0x48b58a(0x22e)]],'placeholder':_0x47d997[_0x48b58a(0x2a9)]??'','mask':_0x47d997[_0x48b58a(0x239)]?'*':void 0x0,'onChange':_0x4a976c=>_0x1b7587[_0x48b58a(0x29d)](_0x4a976c),'onSubmit':()=>_0x5f8f95[_0x48b58a(0x277)]===_0x5f8f95[_0x48b58a(0x2d9)]['length']-0x1?void _0x1b7587[_0x48b58a(0x23d)]():_0x1b7587[_0x48b58a(0x2f1)]()})),s(_0x5f8f95[_0x48b58a(0x1f6)]??'',{'color':'red'}),_0x5f8f95['hint']?s(_0x5f8f95[_0x48b58a(0x1ec)],{'dimColor':!0x0}):null),_0x3806f1(_0x29b182,{'flexGrow':0x1}),s(_0x48b58a(0x2df)+(_0x5f8f95[_0x48b58a(0x277)]===_0x5f8f95[_0x48b58a(0x2d9)]['length']-0x1?_0x5f8f95[_0x48b58a(0x240)]:_0x48b58a(0x260))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':'cyan','wrap':'truncate-end'}));}function pe({state:_0x526c8d,width:_0x23f6cc,height:_0x1427bc,ascii:_0x45f0b4}){const _0xa8f561=_0xd0a99e,_0x23ec12=_0x526c8d[_0xa8f561(0x236)],_0x319a14=_0x23ec12[_0xa8f561(0x2d1)],_0x21b5df=_0x319a14?.[_0xa8f561(0x24f)],_0x396435=_0x21b5df?.[_0xa8f561(0x24c)]??_0x319a14?.['payWith']??_0xa8f561(0x2e0),_0x154e48=_0x319a14?_0x319a14[_0xa8f561(0x2c5)]?_0xa8f561(0x2a7)+_0x319a14[_0xa8f561(0x2c5)][_0xa8f561(0x23b)]+'\x20IMD\x20(fee\x20'+_0x319a14[_0xa8f561(0x238)]+_0xa8f561(0x219)+_0x319a14[_0xa8f561(0x2c5)][_0xa8f561(0x238)]+')':_0xa8f561(0x285)+_0x319a14['amount']+'\x20IMD':null,_0x48022d=_0x319a14?'Pay\x20with\x20'+_0x396435+_0xa8f561(0x280)+_0x319a14[_0xa8f561(0x1ff)]:null,_0x1870d4=_0x21b5df&&_0x396435!==_0xa8f561(0x2e0)?_0xa8f561(0x28c)+(_0x21b5df[_0xa8f561(0x2c3)]?.[_0xa8f561(0x2d1)]??_0x21b5df[_0xa8f561(0x238)])+(_0x21b5df['converted']?_0xa8f561(0x2bb):''):null,_0xa1e0e2=_0x21b5df?.[_0xa8f561(0x2c3)]?.[_0xa8f561(0x1ea)]??(_0x319a14?.[_0xa8f561(0x265)]?_0x319a14[_0xa8f561(0x265)]+_0xa8f561(0x23e):null),_0x18d5fa=_0xa1e0e2?_0xa8f561(0x1f2)+_0xa1e0e2:null,_0x3b8520=_0x319a14?_0x319a14[_0xa8f561(0x2c5)]?'Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.':_0xa8f561(0x1ed):null;let _0x170ee0=_0x319a14?_0xa8f561(0x281)+(_0x319a14[_0xa8f561(0x2c5)]?.[_0xa8f561(0x23b)]??_0x319a14['amount'])+_0xa8f561(0x20f):'';_0x319a14?.[_0xa8f561(0x24f)]&&_0x319a14[_0xa8f561(0x24f)]['coin']!==_0xa8f561(0x2e0)&&(_0x170ee0=_0x319a14['funding'][_0xa8f561(0x255)]?_0xa8f561(0x294):'Convert\x20&\x20publish');const _0x3fb120=0x2+_0x1eb0fa(_0x23ec12[_0xa8f561(0x266)]??'Review\x20saved\x20payment',_0x23f6cc-0x4)['length']+[_0x154e48,_0x48022d,_0x1870d4,_0x18d5fa,_0x3b8520]['filter'](Boolean)[_0xa8f561(0x235)]((_0x2f5ad8,_0x4feb08)=>_0x2f5ad8+_0x1eb0fa(_0x4feb08,_0x23f6cc-0x4)['length'],0x0)+(_0x23f6cc<0x46?_0x23ec12['extraAction']?0x3:0x2:0x1)+0x1,_0xc4f3e7=_0x319a14?[_0xa8f561(0x1fb),_0x319a14[_0xa8f561(0x1f1)],'',..._0x319a14[_0xa8f561(0x263)][_0xa8f561(0x2e8)](_0x3a2ab4=>'-\x20'+_0x3a2ab4),'',..._0x319a14['support']?[_0xa8f561(0x27e),_0xa8f561(0x2ea)+_0x319a14[_0xa8f561(0x2c5)][_0xa8f561(0x238)]+_0xa8f561(0x2f0),'Support\x20recipient:\x20'+_0x319a14[_0xa8f561(0x2c5)][_0xa8f561(0x2c2)],_0xa8f561(0x2e3),'']:[],..._0x21b5df&&_0x396435!=='IMD'?[_0x21b5df[_0xa8f561(0x255)]?'Conversion\x20to\x20IMD\x20already\x20confirmed.':_0xa8f561(0x254)+_0x396435+_0xa8f561(0x298)+(_0x21b5df[_0xa8f561(0x2c3)]?.[_0xa8f561(0x242)]??_0x21b5df[_0xa8f561(0x288)]??_0x21b5df[_0xa8f561(0x238)])+',\x20at\x20most\x20'+(_0x21b5df[_0xa8f561(0x2c3)]?.[_0xa8f561(0x2d1)]??_0x21b5df[_0xa8f561(0x238)])+'.',..._0x396435===_0xa8f561(0x278)?[_0xa8f561(0x2b7)+(_0x21b5df['display']?.['maximumDebit']??_0x21b5df[_0xa8f561(0x2c7)])+_0xa8f561(0x232)]:[],_0xa8f561(0x243)+_0x21b5df[_0xa8f561(0x270)],_0xa8f561(0x203),'']:[],'Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.',..._0x23ec12['extraAction']?[_0xa8f561(0x2ab)+_0x23ec12[_0xa8f561(0x2bd)][_0xa8f561(0x26a)]+_0xa8f561(0x2ee)]:[],'Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.',..._0x23ec12[_0xa8f561(0x2eb)]?['','PAYMENT\x20DETAILS',_0xa8f561(0x2c0)+_0x319a14['expiresAt'],_0xa8f561(0x290)+_0x319a14[_0xa8f561(0x20b)],_0xa8f561(0x218)+_0x319a14[_0xa8f561(0x23a)],_0xa8f561(0x200)+_0x319a14['payTo'],'Order:\x20'+_0x319a14[_0xa8f561(0x206)],'',_0xa8f561(0x29c),JSON[_0xa8f561(0x2af)](_0x319a14[_0xa8f561(0x29e)],null,0x2)]:[]]['join']('\x0a'):_0x23ec12[_0xa8f561(0x2d2)][_0xa8f561(0x25a)]('\x0a');return _0x3806f1(k,{'title':_0x23ec12['title']??_0xa8f561(0x292),'width':_0x23f6cc,'height':_0x1427bc,'ascii':_0x45f0b4,'active':!0x0},_0x154e48?s(_0x154e48,{'color':_0xa8f561(0x2ba),'bold':!0x0}):null,_0x48022d?s(_0x48022d,{'color':_0xa8f561(0x2ba),'bold':!0x0}):null,_0x1870d4?s(_0x1870d4,{'color':_0xa8f561(0x2ba)}):null,_0x18d5fa?s(_0x18d5fa,{'color':_0xa8f561(0x2d8)}):null,_0x3806f1(O,{'content':_0xc4f3e7,'width':_0x23f6cc-0x4,'height':Math['max'](0x0,_0x1427bc-_0x3fb120),'offset':_0x526c8d['scroll']}),_0x3806f1(_0x29b182,{'flexGrow':0x1}),_0x3b8520?s(_0x3b8520,{'color':_0xa8f561(0x2d8)}):null,_0x3806f1(_0x29b182,{'flexDirection':_0x23f6cc<0x46?_0xa8f561(0x2ce):_0xa8f561(0x237),'gap':_0x23f6cc<0x46?0x0:0x3},s('[\x20'+(_0x23ec12[_0xa8f561(0x2b3)]??(_0x319a14?_0xa8f561(0x24e):_0xa8f561(0x221)))+'\x20]',{'inverse':_0x23ec12[_0xa8f561(0x2cd)]===0x0}),_0x23ec12[_0xa8f561(0x2bd)]?s('[\x20'+_0x23ec12[_0xa8f561(0x2bd)][_0xa8f561(0x26a)]+'\x20]',{'inverse':_0x23ec12[_0xa8f561(0x2cd)]===0x1,'color':_0xa8f561(0x2ba)}):null,s('[\x20'+(_0x319a14?_0x170ee0:_0x23ec12['acceptLabel']??_0xa8f561(0x1f3))+'\x20]',{'inverse':_0x23ec12[_0xa8f561(0x2e1)],'color':_0xa8f561(0x2ba)})),s('Tab\x20choose\x20\xB7\x20Enter\x20confirm\x20\xB7\x20Esc\x20cancel\x20\xB7\x20PgDn\x20scroll'+(_0x319a14?'\x20\xB7\x20i\x20details':''),{'dimColor':!0x0,'wrap':_0xa8f561(0x22a)}));}function we({state:_0x5a1dc1,width:_0x460690,height:_0x230e73,ascii:_0x1b3462}){const _0x4b0c4b=_0xd0a99e,_0x30fed3=_0x5a1dc1[_0x4b0c4b(0x229)],_0x5306fe=_0x30fed3['lines']??[],_0xc4bca4=_0x5306fe[_0x4b0c4b(0x235)]((_0x73f049,_0x1ee9aa)=>_0x73f049+Math[_0x4b0c4b(0x23f)](0x1,_0x1eb0fa(_0x1ee9aa,_0x460690-0x4)[_0x4b0c4b(0x1fc)]),0x0),_0x32fb21=Math[_0x4b0c4b(0x23f)](0x1,_0x230e73-0x5-_0xc4bca4),_0x2c59ea=Math['max'](0x0,Math[_0x4b0c4b(0x225)](_0x30fed3['selected']-Math['floor'](_0x32fb21/0x2),_0x30fed3[_0x4b0c4b(0x2cc)]['length']-_0x32fb21));return _0x3806f1(k,{'title':_0x30fed3['title'],'width':_0x460690,'height':_0x230e73,'ascii':_0x1b3462,'active':!0x0},..._0x5306fe[_0x4b0c4b(0x2e8)]((_0xa4f04f,_0x223914)=>s(_0xa4f04f||'\x20',{'key':_0x4b0c4b(0x208)+_0x223914})),..._0x30fed3['items']['slice'](_0x2c59ea,_0x2c59ea+_0x32fb21)[_0x4b0c4b(0x2e8)]((_0x5c0937,_0x2a6670)=>s((_0x2c59ea+_0x2a6670===_0x30fed3[_0x4b0c4b(0x2ef)]?'>\x20':'\x20\x20')+_0x5c0937['label'],{'key':_0x2a6670,'inverse':_0x2c59ea+_0x2a6670===_0x30fed3[_0x4b0c4b(0x2ef)]})),_0x3806f1(_0x29b182,{'flexGrow':0x1}),s(_0x30fed3[_0x4b0c4b(0x1ec)]??_0x4b0c4b(0x2d6),{'dimColor':!0x0}));}const ge=_0xd0a99e(0x21f);function Ce({controller:_0x2024c0,ascii:_0x40d980=!0x1,dimensions:_0x345d93,terminal:_0x432e0b,feedback:_0x13966f,welcome:_0x34bc5b=!0x1}){const _0xcdeee4=_0xd0a99e,_0x4c004e=_0x5a4292(_0x2024c0[_0xcdeee4(0x1ee)],_0x2024c0[_0xcdeee4(0x2e6)]),[_0x13f65b,_0x4760ef]=_0x3fb89f(0x0);_0x5a6d2c(()=>{const _0x439017=_0xcdeee4,_0xe870d6=setInterval(()=>_0x4760ef(_0x240096=>(_0x240096+0x1)%B[_0x439017(0x1fc)]),0x4e20);return()=>clearInterval(_0xe870d6);},[]);const _0x248483=_0x4c004e[_0xcdeee4(0x1f6)]??_0x4c004e['refreshError'],_0x4f884b=_0x5391ad(),_0x53907c=_0x345d93??_0x4f884b,_0x466297=_0x53907c[_0xcdeee4(0x2e4)],_0x383717=Math['max'](0x8,_0x53907c['rows']-0x1),_0x48620b=_0x466297<0x50,{exit:_0x3109f4}=_0x408345();if(_0x5a6d2c(()=>(_0x2024c0[_0xcdeee4(0x1e8)]=_0x432e0b,_0x2024c0[_0xcdeee4(0x212)]()[_0xcdeee4(0x28f)](()=>{const _0x5720c2=_0xcdeee4;if(_0x13966f)_0x2024c0[_0x5720c2(0x2c4)](_0x13966f);else{if(_0x34bc5b)return _0x2024c0['offerFirstWallet']();}}),()=>_0x2024c0['close']()),[_0x2024c0,_0x432e0b,_0x13966f,_0x34bc5b]),_0x5a6d2c(()=>{const _0x459289=setInterval(()=>{const _0x1dda14=_0x317a;_0x2024c0[_0x1dda14(0x1f4)]();},0x1388);return()=>clearInterval(_0x459289);},[_0x2024c0]),_0x406961((_0x335f07,_0x549cb5)=>{const _0x1171cb=_0xcdeee4;if(_0x549cb5[_0x1171cb(0x1e6)]&&_0x335f07==='c'){_0x2024c0['close'](),_0x3109f4();return;}if(_0x4c004e[_0x1171cb(0x2d3)]){_0x549cb5[_0x1171cb(0x2e9)]&&_0x2024c0[_0x1171cb(0x2c4)]({'privateKeyView':null});return;}if(_0x4c004e['taskLink']){(_0x549cb5['escape']||_0x549cb5[_0x1171cb(0x213)])&&_0x2024c0['update']({'taskLink':null});return;}if(_0x466297<0x28||_0x53907c['rows']<0x14){_0x4c004e[_0x1171cb(0x27a)]?_0x549cb5['escape']&&_0x2024c0[_0x1171cb(0x2cb)]():_0x335f07==='q'&&(_0x2024c0[_0x1171cb(0x228)](),_0x3109f4());return;}if(_0x4c004e[_0x1171cb(0x236)]){_0x549cb5[_0x1171cb(0x2e9)]?_0x2024c0[_0x1171cb(0x273)](!0x1):_0x549cb5[_0x1171cb(0x251)]||_0x549cb5['leftArrow']||_0x549cb5['rightArrow']?_0x2024c0[_0x1171cb(0x269)](_0x549cb5[_0x1171cb(0x26e)]||_0x549cb5[_0x1171cb(0x251)]&&_0x549cb5[_0x1171cb(0x264)]?-0x1:0x1):_0x549cb5[_0x1171cb(0x213)]?_0x2024c0[_0x1171cb(0x2a0)]():_0x335f07==='i'?_0x2024c0[_0x1171cb(0x2c4)]({'confirm':{..._0x4c004e[_0x1171cb(0x236)],'expanded':!_0x4c004e['confirm'][_0x1171cb(0x2eb)]},'scroll':0x0}):(_0x549cb5[_0x1171cb(0x20d)]||_0x549cb5[_0x1171cb(0x215)])&&_0x2024c0[_0x1171cb(0x2c4)]({'scroll':Math[_0x1171cb(0x23f)](0x0,_0x4c004e[_0x1171cb(0x1f9)]+(_0x549cb5['pageDown']?0x5:-0x5))});return;}if(_0x4c004e['form']){_0x549cb5['escape']?_0x2024c0[_0x1171cb(0x202)]():_0x549cb5['tab']&&_0x2024c0[_0x1171cb(0x2f1)](_0x549cb5[_0x1171cb(0x264)]);return;}if(_0x4c004e[_0x1171cb(0x27a)]){_0x549cb5[_0x1171cb(0x2e9)]&&_0x2024c0[_0x1171cb(0x2cb)](),_0x335f07==='s'&&_0x2024c0[_0x1171cb(0x2ca)]();return;}if(_0x4c004e['menu']){_0x549cb5[_0x1171cb(0x2e9)]?_0x2024c0[_0x1171cb(0x274)]():_0x549cb5[_0x1171cb(0x2b4)]||_0x549cb5[_0x1171cb(0x2dd)]?_0x2024c0['update']({'menu':{..._0x4c004e[_0x1171cb(0x229)],'selected':Math[_0x1171cb(0x23f)](0x0,Math[_0x1171cb(0x225)](_0x4c004e['menu'][_0x1171cb(0x2cc)]['length']-0x1,_0x4c004e['menu'][_0x1171cb(0x2ef)]+(_0x549cb5['downArrow']?0x1:-0x1)))}}):_0x549cb5[_0x1171cb(0x213)]?_0x2024c0['chooseMenu']():_0x4c004e[_0x1171cb(0x229)][_0x1171cb(0x1f5)]&&/^[1-9]$/['test'](_0x335f07)&&Number(_0x335f07)<=_0x4c004e[_0x1171cb(0x229)][_0x1171cb(0x2cc)]['length']&&(_0x2024c0['update']({'menu':{..._0x4c004e[_0x1171cb(0x229)],'selected':Number(_0x335f07)-0x1}}),_0x2024c0[_0x1171cb(0x299)]());return;}if(_0x335f07==='q'&&!_0x4c004e['busy']){_0x2024c0[_0x1171cb(0x228)](),_0x3109f4();return;}if(!_0x4c004e[_0x1171cb(0x256)]){if(_0x335f07==='e'&&_0x248483){_0x2024c0[_0x1171cb(0x20a)]();return;}if(_0x1171cb(0x2de)[_0x1171cb(0x20c)](_0x335f07)&&_0x335f07['length']===0x1){_0x2024c0['navigate'](_0xed352b[Number(_0x335f07)-0x1]);return;}if(_0x335f07==='?'){_0x2024c0[_0x1171cb(0x2c4)]({'help':!_0x4c004e[_0x1171cb(0x28d)],'scroll':0x0});return;}if(_0x549cb5['escape']){_0x2024c0[_0x1171cb(0x2c4)]({'focus':_0x1171cb(0x272),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x335f07==='n'){_0x4c004e[_0x1171cb(0x29a)]===_0x1171cb(0x207)?_0x2024c0[_0x1171cb(0x22b)](!0x1):_0x2024c0[_0x1171cb(0x26c)]();return;}if(_0x335f07==='r'){_0x2024c0[_0x1171cb(0x212)]();return;}if(_0x549cb5[_0x1171cb(0x20d)]||_0x549cb5[_0x1171cb(0x215)]||_0x4c004e[_0x1171cb(0x24d)]==='detail'&&(_0x549cb5[_0x1171cb(0x2b4)]||_0x549cb5[_0x1171cb(0x2dd)])){_0x2024c0[_0x1171cb(0x2c4)]({'scroll':Math['max'](0x0,_0x4c004e[_0x1171cb(0x1f9)]+(_0x549cb5[_0x1171cb(0x20d)]?0x5:_0x549cb5['pageUp']?-0x5:_0x549cb5[_0x1171cb(0x2b4)]?0x1:-0x1))});return;}if(_0x4c004e['view']==='wallet'){(_0x549cb5[_0x1171cb(0x2b4)]||_0x549cb5[_0x1171cb(0x2dd)])&&_0x2024c0['move'](_0x549cb5[_0x1171cb(0x2b4)]?0x1:-0x1),(_0x549cb5[_0x1171cb(0x213)]||_0x549cb5[_0x1171cb(0x251)])&&_0x2024c0['update']({'focus':_0x4c004e['focus']===_0x1171cb(0x272)?_0x1171cb(0x2c8):_0x1171cb(0x272),'scroll':0x0}),_0x335f07==='u'&&_0x2024c0[_0x1171cb(0x21b)](),_0x335f07==='m'&&_0x2024c0[_0x1171cb(0x2c1)](),_0x335f07==='g'&&_0x2024c0[_0x1171cb(0x286)](),_0x335f07==='i'&&_0x2024c0['walletImport'](),_0x335f07==='d'&&_0x2024c0[_0x1171cb(0x248)](),_0x335f07==='b'&&_0x2024c0[_0x1171cb(0x231)]();return;}if(_0x549cb5['downArrow']||_0x549cb5['upArrow']){_0x2024c0['move'](_0x549cb5[_0x1171cb(0x2b4)]?0x1:-0x1);return;}if(_0x549cb5[_0x1171cb(0x213)]||_0x549cb5['tab']){_0x2024c0[_0x1171cb(0x2c4)]({'focus':_0x4c004e[_0x1171cb(0x24d)]===_0x1171cb(0x272)?_0x1171cb(0x2c8):_0x1171cb(0x272),'scroll':0x0});return;}if(_0x4c004e[_0x1171cb(0x29a)]===_0x1171cb(0x2e2)){_0x335f07==='/'&&_0x2024c0[_0x1171cb(0x2bf)](),_0x335f07==='a'&&_0x2024c0[_0x1171cb(0x252)](),_0x335f07==='m'&&_0x2024c0[_0x1171cb(0x21a)](),_0x335f07==='l'&&_0x2024c0[_0x1171cb(0x275)](['logs']),_0x335f07==='g'&&_0x2024c0[_0x1171cb(0x275)]([_0x1171cb(0x2d7)]);return;}_0x335f07==='/'&&_0x2024c0[_0x1171cb(0x2bf)](),_0x335f07==='f'&&_0x4c004e[_0x1171cb(0x29a)]===_0x1171cb(0x1f7)&&_0x2024c0['cycleFilter'](),(_0x335f07==='['||_0x335f07===']')&&_0x2024c0['changeTab'](_0x335f07==='['?-0x1:0x1),_0x335f07==='d'&&_0x2024c0['files'](),_0x335f07==='v'&&_0x2024c0[_0x1171cb(0x226)](),_0x335f07==='s'&&_0x2024c0[_0x1171cb(0x1eb)](),_0x335f07==='c'&&_0x2024c0[_0x1171cb(0x234)](),_0x335f07==='o'&&_0x2024c0[_0x1171cb(0x2a4)](),_0x335f07==='x'&&_0x2024c0['cancelRequest'](),_0x335f07==='m'&&_0x2024c0[_0x1171cb(0x287)](),_0x335f07==='l'&&_0x2024c0['more']();}}),_0x466297<0x28||_0x53907c[_0xcdeee4(0x216)]<0x14)return _0x3806f1(_0x29b182,{'width':_0x466297,'flexDirection':_0xcdeee4(0x2ce)},s(_0xcdeee4(0x222),{'color':_0xcdeee4(0x2ba)}),s(_0xcdeee4(0x2bc)),s(_0x4c004e[_0xcdeee4(0x27a)]||_0x4c004e['privateKeyView']||_0x4c004e[_0xcdeee4(0x2ac)]?_0xcdeee4(0x268):_0xcdeee4(0x297)));if(_0x4c004e[_0xcdeee4(0x2ac)])return _0x3806f1(k,{'title':_0x4c004e[_0xcdeee4(0x2ac)][_0xcdeee4(0x2db)]?_0xcdeee4(0x21c):_0xcdeee4(0x1fe),'width':_0x466297,'height':_0x383717,'ascii':_0x40d980,'active':!0x0},_0x3806f1(_0x29b182,{'marginTop':0x1,'flexDirection':_0xcdeee4(0x2ce)},s(_0xcdeee4(0x2dc)),_0x3806f1(_0x29b182,{'marginY':0x1},s(_0x4c004e[_0xcdeee4(0x2ac)][_0xcdeee4(0x2b1)],{'color':_0xcdeee4(0x2ba),'bold':!0x0})),s(_0xcdeee4(0x245),{'dimColor':!0x0})),_0x3806f1(_0x29b182,{'flexGrow':0x1}),s('Enter\x20/\x20Esc\x20back',{'color':_0xcdeee4(0x2ba)}));if(_0x4c004e[_0xcdeee4(0x2d3)])return _0x3806f1(k,{'title':'Private\x20key','width':_0x466297,'height':_0x383717,'ascii':_0x40d980,'active':!0x0},s('Wallet:\x20'+_0x4c004e['privateKeyView'][_0xcdeee4(0x2d5)]),s(_0xcdeee4(0x224),{'color':_0xcdeee4(0x2d8)}),_0x3806f1(_0x29b182,{'marginTop':0x1},s(_0x4c004e[_0xcdeee4(0x2d3)][_0xcdeee4(0x28b)])),_0x3806f1(_0x29b182,{'flexGrow':0x1}),s(_0xcdeee4(0x2a6),{'color':_0xcdeee4(0x2ba)}));if(_0x4c004e[_0xcdeee4(0x27a)]&&!_0x4c004e[_0xcdeee4(0x247)]){const _0x2cb9cc=_0x4c004e[_0xcdeee4(0x27a)],_0x16c999=_0x2cb9cc['qr'][_0xcdeee4(0x29f)]('\x0a'),_0x358477=!_0x2cb9cc[_0xcdeee4(0x22c)]||_0x2cb9cc[_0xcdeee4(0x22c)][_0xcdeee4(0x1fc)]===0x1,_0x3dbdb5=[..._0x358477?[_0xcdeee4(0x262)+_0x2cb9cc[_0xcdeee4(0x2b2)][_0xcdeee4(0x25a)](',\x20')]:_0x2cb9cc[_0xcdeee4(0x22c)][_0xcdeee4(0x2e8)](_0x149c87=>_0x149c87['chainName']+':\x20'+_0x149c87['coins']['join'](',\x20')),..._0x2cb9cc['targets']??[]],_0x3aad5a=_0x358477?_0xcdeee4(0x220)+_0x2cb9cc[_0xcdeee4(0x1ff)]+_0xcdeee4(0x25c)+_0x2cb9cc['chainName']+'\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.':_0xcdeee4(0x2a1),_0x5181c4=[_0x2cb9cc[_0xcdeee4(0x2d5)],..._0x3dbdb5,_0x3aad5a][_0xcdeee4(0x235)]((_0x31c57a,_0x4c3508)=>_0x31c57a+_0x1eb0fa(_0x4c3508,_0x466297)[_0xcdeee4(0x1fc)],0x0),_0x956b0e=_0x16c999[_0xcdeee4(0x1fc)]+_0x5181c4+0x2,_0xcb1fd7=_0x466297>=_0x16c999[0x0]['length']&&_0x383717>=_0x956b0e;return _0x3806f1(_0x29b182,{'width':_0x466297,'height':_0x383717,'flexDirection':_0xcdeee4(0x2ce)},s(_0x358477?'Receive\x20on\x20'+_0x2cb9cc[_0xcdeee4(0x1ff)]:_0xcdeee4(0x233),{'bold':!0x0,'color':_0xcdeee4(0x2ba)}),s(_0x2cb9cc[_0xcdeee4(0x2d5)]),..._0x3dbdb5['map']((_0x5a3885,_0x420aba)=>s(_0x5a3885,{'key':_0x420aba})),_0xcb1fd7?s(_0x2cb9cc['qr'],{'color':_0xcdeee4(0x249),'backgroundColor':_0xcdeee4(0x25f)}):s('Resize\x20to\x20at\x20least\x20'+Math[_0xcdeee4(0x23f)](0x28,_0x16c999[0x0][_0xcdeee4(0x1fc)])+_0xcdeee4(0x22d)+(_0x956b0e+0x1)+_0xcdeee4(0x2d4)),s(_0x3aad5a,{'color':_0xcdeee4(0x2d8)}),s(_0x369ca2(_0x4c004e[_0xcdeee4(0x1f6)]??_0x4c004e[_0xcdeee4(0x2a8)]??'s\x20save\x20QR\x20\xB7\x20Esc\x20back',_0x466297),{'color':_0x4c004e[_0xcdeee4(0x1f6)]?_0xcdeee4(0x205):_0xcdeee4(0x2ba)}));}const _0x174f5f=_0x4c004e[_0xcdeee4(0x247)]||_0x4c004e[_0xcdeee4(0x236)]||_0x4c004e[_0xcdeee4(0x296)],_0x39d2c5=Math['max'](0x6,_0x383717-(_0x174f5f?0x3:0x6)),_0x5e2b78=_0x1ddba0(_0x4c004e)[_0x4c004e[_0xcdeee4(0x2ef)]];let _0x40e38c;if(_0x4c004e['form'])_0x40e38c=_0x3806f1(he,{'controller':_0x2024c0,'state':_0x4c004e,'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980});else{if(_0x4c004e[_0xcdeee4(0x236)])_0x40e38c=_0x3806f1(pe,{'state':_0x4c004e,'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980});else{if(_0x4c004e[_0xcdeee4(0x296)])_0x40e38c=_0x3806f1(fe,{'event':_0x4c004e[_0xcdeee4(0x296)],'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980});else{if(_0x4c004e['menu'])_0x40e38c=_0x3806f1(we,{'state':_0x4c004e,'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980});else{if(_0x4c004e[_0xcdeee4(0x28d)])_0x40e38c=_0x3806f1(k,{'title':_0xcdeee4(0x276),'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980,'active':!0x0},_0x3806f1(O,{'content':ge,'width':_0x466297-0x4,'height':_0x39d2c5-0x4,'offset':_0x4c004e[_0xcdeee4(0x1f9)]}),s(_0xcdeee4(0x223),{'dimColor':!0x0}));else{if(_0x4c004e['view']===_0xcdeee4(0x207))_0x40e38c=_0x3806f1(me,{'state':_0x4c004e,'width':_0x466297,'height':_0x39d2c5,'ascii':_0x40d980,'narrow':_0x48620b});else{const _0xe776bc=!_0x48620b||_0x4c004e['focus']===_0xcdeee4(0x272),_0x4a5731=!_0x48620b||_0x4c004e[_0xcdeee4(0x24d)]===_0xcdeee4(0x2c8),_0x494276=_0x48620b?_0x466297:Math['floor'](_0x466297*0.43),_0x551197=_0xe776bc&&!_0x48620b?_0x466297-_0x494276-0x1:_0x466297,_0x21c588=_0x1c082d({..._0x4c004e,'selectedId':_0x5e2b78?.['id']}),_0x2a23e5=_0x4c004e[_0xcdeee4(0x29a)]==='tasks'||_0x4c004e[_0xcdeee4(0x29a)]===_0xcdeee4(0x27c),_0x801b5a=_0x2a23e5?_0x537c95(_0x5e2b78,_0x4c004e[_0xcdeee4(0x29a)]):_0x5e2b78?_0x5e2b78[_0xcdeee4(0x258)]===_0xcdeee4(0x2b6)?[_0xcdeee4(0x283)]:[_0xcdeee4(0x2aa),_0xcdeee4(0x2b5),_0xcdeee4(0x293)]:[];_0x248483&&_0x801b5a[_0xcdeee4(0x21d)](_0xcdeee4(0x289));const _0x26167f=I(_0x801b5a,_0x551197-0x4),_0x150880=_0x26167f['length']?_0x26167f[_0xcdeee4(0x1fc)]+0x1:0x0,_0x4b588c=I([_0xcdeee4(0x211),_0xcdeee4(0x29b),..._0x2a23e5?['[\x20]\x20tabs']:[]],_0x551197-0x4);_0x40e38c=_0x3806f1(_0x29b182,{'height':_0x39d2c5,'width':_0x466297,'gap':0x1},_0xe776bc?_0x3806f1(k,{'title':(_0x4c004e[_0xcdeee4(0x29a)]===_0xcdeee4(0x2e2)?'WORKERS':_0x4c004e[_0xcdeee4(0x2be)])+(_0x4c004e[_0xcdeee4(0x25d)]?_0xcdeee4(0x201)+_0x369ca2(_0x4c004e[_0xcdeee4(0x25d)],0x16):''),'width':_0x494276,'height':_0x39d2c5,'ascii':_0x40d980,'active':_0x4c004e[_0xcdeee4(0x24d)]==='list'},_0x3806f1(z,{'state':_0x4c004e,'height':_0x39d2c5,'width':_0x494276-0x4,'ascii':_0x40d980})):null,_0x4a5731?_0x3806f1(k,{'title':_0x369ca2(_0x5e2b78?.['id']??_0xcdeee4(0x2b9),_0x551197-0x7),'width':_0x551197,'height':_0x39d2c5,'ascii':_0x40d980,'active':_0x4c004e[_0xcdeee4(0x24d)]==='detail'},_0x2a23e5?s([_0xcdeee4(0x2da),_0xcdeee4(0x26b),_0xcdeee4(0x2e5)][_0xcdeee4(0x2e8)](_0x349ee4=>_0x349ee4===_0x4c004e['tab']?'['+_0x349ee4+']':_0x349ee4)[_0xcdeee4(0x25a)]('\x20\x20'),{'color':_0xcdeee4(0x2ba),'wrap':_0xcdeee4(0x22a)}):null,_0x3806f1(O,{'content':_0x21c588,'width':_0x551197-0x4,'height':_0x39d2c5-0x3-Number(_0x2a23e5)-_0x150880-_0x4b588c['length'],'offset':_0x4c004e['scroll']}),_0x3806f1(_0x29b182,{'flexGrow':0x1}),..._0x4b588c[_0xcdeee4(0x2e8)]((_0x51c6fd,_0x40f15d)=>s(_0x51c6fd,{'key':_0x40f15d,'dimColor':!0x0})),_0x3806f1(V,{'rows':_0x26167f,'width':_0x551197-0x4,'ascii':_0x40d980})):null);}}}}}}const _0x268e12=_0x4c004e[_0xcdeee4(0x247)]||_0x4c004e[_0xcdeee4(0x236)]||_0x4c004e['menu']||_0x4c004e[_0xcdeee4(0x256)]?'[Ctrl+C]\x20Exit':_0xcdeee4(0x295),_0x3ffe87=_0x466297<0x4b?_0xed352b[_0xcdeee4(0x2e8)]((_0x1a30bc,_0x1a29ea)=>'['+(_0x1a29ea+0x1)+']'+[_0xcdeee4(0x246),_0xcdeee4(0x2b8),_0xcdeee4(0x22f),_0xcdeee4(0x217)][_0x1a29ea])[_0xcdeee4(0x25a)]('\x20'):_0xed352b[_0xcdeee4(0x2e8)]((_0x47cf5d,_0x57df05)=>(_0x47cf5d===_0x4c004e[_0xcdeee4(0x29a)]?'>\x20':'\x20\x20')+'['+(_0x57df05+0x1)+']\x20'+de[_0x47cf5d])[_0xcdeee4(0x25a)]('\x20\x20');return _0x3806f1(_0x29b182,{'width':_0x466297,'height':_0x383717,'flexDirection':'column'},_0x3806f1(_0x29b182,{'justifyContent':_0xcdeee4(0x23c),'height':_0x174f5f?0x1:0x2},s(_0xcdeee4(0x1e7),{'color':_0xcdeee4(0x2ba),'bold':!0x0}),_0x466297>=0x4b?s(_0x4c004e[_0xcdeee4(0x2d5)]?_0x369ca2(_0x4c004e[_0xcdeee4(0x2d5)],0x14):_0xcdeee4(0x259),{'dimColor':!0x0}):null),_0x174f5f?null:s(_0x3ffe87,{'color':'cyan','wrap':_0xcdeee4(0x22a)}),_0x174f5f?null:_0x4c004e[_0xcdeee4(0x256)]||_0x4c004e[_0xcdeee4(0x282)]?_0x3806f1(Y,{'label':_0x4c004e[_0xcdeee4(0x256)]??_0xcdeee4(0x26f)}):s(_0x4c004e[_0xcdeee4(0x25b)],{'dimColor':!0x0,'wrap':'truncate-end'}),_0x40e38c,s(_0x369ca2(_0x248483??_0x4c004e[_0xcdeee4(0x2a8)]??(_0x174f5f||_0x4c004e[_0xcdeee4(0x229)]||_0x4c004e[_0xcdeee4(0x256)]?'':B[_0x13f65b]),_0x466297),{'color':_0x248483?'red':_0x4c004e[_0xcdeee4(0x2a8)]?_0xcdeee4(0x244):void 0x0,'dimColor':!_0x248483&&!_0x4c004e[_0xcdeee4(0x2a8)]}),s(_0x268e12,{'dimColor':!0x0,'wrap':_0xcdeee4(0x22a)}));}export{Ce as DashboardApp};function _0x2d9a(){const _0x557791=['ctrl','COLONY\x20\x20get\x20things\x20done.','terminal','Tip:\x20Colony\x20handles\x20task\x20settings.','gas','download','hint','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','subscribe','[a]\x20Add\x20target','gray','objective','Gas\x20(network\x20fee):\x20at\x20most\x20','Confirm','autoRefresh','numbered','error','tasks','toLocaleString','scroll','My\x20tasks','REQUEST','length','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','View\x20task\x20on\x20IMD','chainName','Pay\x20to:\x20','\x20/\x20','dismissForm','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','state','red','orderId','wallet','intro','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','showError','network','includes','pageDown','refused','\x20IMD\x20&\x20publish','\x20items\x20·\x20','Esc/Tab\x20list','refresh','return','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','pageUp','rows','Wallets','Asset:\x20','\x20+\x20support\x20','workerMenu','useSelectedWallet','Task\x20published','push','repeat','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\x0av\x20View\x20official\x20IMD\x20task\x20link\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.','Send\x20on\x20','Cancel','COLONY','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet’s\x20funds.','min','showTaskLink','\x20entries\x20·\x20Mine\x20+\x20Network','close','menu','truncate-end','walletSetup','networks','\x20columns\x20and\x20','name','Work','down\x20loads\x20more','walletBackup','\x20(payment\x20+\x20gas)','Receive\x20funds','continueTask','reduce','confirm','row','amount','secret','asset','total','space-between','submitForm','\x20ETH','max','submit','completed','estimate','IMD\x20for\x20this\x20task:\x20','green','Open\x20this\x20link\x20in\x20your\x20browser.','Mine','form','walletReceive','black','blocked','refreshError','coin','focus','Cancel\x20/\x20edit','funding','Loading...','tab','addTarget','WALLETS','Colony\x20converts\x20','converted','busy','Workers','kind','Wallet\x20not\x20configured','join','note','\x20only.\x20Choose\x20','query','\x20results\x20loaded','white','next','configured','Accepted:\x20','deliverables','shift','networkFeeCap','title','slice','Esc\x20back','moveConfirmation','label','Activity','create','[r]\x20Refresh','leftArrow','Refreshing\x20tasks...','minimumImd','[/]\x20Search','list','respond','dismissMenu','workerCommand','Keyboard\x20shortcuts','field','ETH','cursor','receive','Loading\x20history...','explore','Deployed\x20·\x20status\x20on\x20selection','Help\x20us\x20make\x20Colony\x20better.','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','\x20on\x20','Pay\x20','refreshing','Read\x20only','No\x20matching\x20items.','Fee\x20','walletManagement','taskMenu','estimatedAmount','[e]\x20Error\x20details','single','privateKey','Payment:\x20at\x20most\x20','help','\x20task','then','Network:\x20','\x20wallets','Review\x20saved\x20payment','[g]\x20Diagnostics','Continue\x20&\x20publish','[?]\x20Help\x20\x20[q]\x20Quit','modelProgress','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','\x20to\x20IMD\x20for\x20you:\x20≈\x20','chooseMenu','view','PgUp/PgDn\x20scroll','SERVER\x20PREPARED\x20INPUT','setField','prepared','split','submitConfirmation','Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.','[>]','Not\x20deployed','resumeOrder','cancelled','Esc\x20hide\x20and\x20return','Total\x20','notice','placeholder','[m]\x20Actions','Choose\x20','taskLink','End\x20of\x20history','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','stringify','l\x20retry\x20history','url','coins','cancelLabel','downArrow','[l]\x20Logs','network-worker','Total\x20ETH\x20at\x20most:\x20','Browse','DETAILS','cyan','\x20(converted)','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','extraAction','filter','search','Quote\x20expires:\x20','walletMenu','recipient','display','update','support','Explore','maximumDebit','detail','Mine\x20·\x20','saveReceiveQr','closeReceive','items','selection','column','floor','startsWith','payment','lines','privateKeyView','\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.','address','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','doctor','yellow','fields','Overview','published','View\x20progress\x20and\x20results\x20on\x20IMD.','upArrow','1234','Enter\x20','IMD','accepted','workers','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','columns','Files','getSnapshot','up/down','map','escape','Optional\x20support:\x20','expanded','en-US','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','selected','\x20IMD','nextField'];_0x2d9a=function(){return _0x557791;};return _0x2d9a();}
|
package/dist/tui/controller.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35df2a=_0x35aa;import{friendlyAmount as _0x42628b}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x45f686,paymentView as _0x512502}from'./services.mjs';function _0x35aa(_0x112002,_0x1169fd){_0x112002=_0x112002-0x1be;const _0x35aa05=_0x1169();let _0x98fc04=_0x35aa05[_0x112002];return _0x98fc04;}import{lockWallet as _0x3e28dd}from'../lib/local-wallet.mjs';import{fundingInstructions as _0x58ce5d,fundingNetworks as _0x12a616,networkChoiceLabel as _0x285a35,networkTargets as _0x17597a}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x47130e}from'../lib/support.mjs';import{randomUUID as _0x142cc6}from'node:crypto';const V=[_0x35df2a(0x1dd),_0x35df2a(0x1c7),_0x35df2a(0x210),_0x35df2a(0x2b0)],m=[_0x35df2a(0x249),_0x35df2a(0x303),_0x35df2a(0x225),_0x35df2a(0x1dc),'Cancelled'],u=[_0x35df2a(0x26e),'Activity',_0x35df2a(0x318)],v=new Set([_0x35df2a(0x2a2),_0x35df2a(0x2c1),_0x35df2a(0x1ef),'challenged',_0x35df2a(0x269),_0x35df2a(0x324),_0x35df2a(0x264),_0x35df2a(0x380),_0x35df2a(0x21d),_0x35df2a(0x23c),'pending',_0x35df2a(0x2a6)]),S=new Set(['expired','payment_failed',_0x35df2a(0x2ba),'payment_reconciling']),P=new Set([_0x35df2a(0x2ba),'payment_reconciling']),x=0x7530;function f(_0x5aa1d9){const _0x459cde=_0x35df2a;return _0x5aa1d9[_0x459cde(0x373)]['filter'](_0x4b1d5f=>![_0x459cde(0x1dd),_0x459cde(0x210)]['includes'](_0x5aa1d9[_0x459cde(0x34f)])||[_0x4b1d5f[_0x459cde(0x27a)],_0x4b1d5f['id'],_0x4b1d5f[_0x459cde(0x359)]??''][_0x459cde(0x212)](_0x5ea46a=>_0x5ea46a[_0x459cde(0x254)]()[_0x459cde(0x253)](_0x5aa1d9['query'][_0x459cde(0x254)]()))?_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x249)||_0x5aa1d9['view']!==_0x459cde(0x1dd)?!0x0:_0x5aa1d9[_0x459cde(0x282)]==='Completed'?_0x4b1d5f[_0x459cde(0x24c)]==='completed':_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x1de)?_0x4b1d5f[_0x459cde(0x24c)]===_0x459cde(0x1c8):_0x5aa1d9['filter']===_0x459cde(0x303)?v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):![_0x459cde(0x2c8),_0x459cde(0x1c8)][_0x459cde(0x253)](_0x4b1d5f[_0x459cde(0x24c)])&&!v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):!0x1);}function p(){const _0xb82897=_0x35df2a;return Object['assign'](new Error(_0xb82897(0x23e)),{'code':'cancelled'});}function _0x1169(){const _0x116952=['canChangePayment','files','Run\x20diagnostics','selected','Preparing\x20local\x20LLM...','tools','receive','\x20is\x20required.','remove','explore','cancelled','unlink','Draft\x20saved','Understanding\x20your\x20request...','1.\x20Create\x20a\x20new\x20wallet\x20(empty,\x20add\x20funds\x20later)','exploreUpdates','Preparing\x20the\x20payment\x20review...','join','addTarget','No\x20wallet\x20found\x20on\x20this\x20computer.','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','configured','Task\x20published:\x20','Delete\x20wallet\x20·\x201\x20of\x202','Wallet\x20ready:\x20','Loading\x20files...','deleteDraft','Add\x20a\x20worker\x20target','formCancel','refreshExplore','Attention','tasks','Cancelled','Create\x20a\x20new\x20local\x20wallet','start','deleteTaskDraft','cycleFilter','From\x20encrypted\x20backup','Add\x20tool','workerMenu','chooseMenu','out','Search\x20tasks','dialog','showError','Pair\x20with\x20wallet','slice','Current\x20wallet:\x20','gas','quoted','What\x20would\x20you\x20like\x20to\x20change?','set','Welcome\x20to\x20Colony','1\x20/\x202\x20or\x20Up/down\x20·\x20Enter\x20choose\x20·\x20Esc\x20not\x20now','services','confirmReplacement','walletManagement','delete','\x0aOrder:\x20','colony\x20worker\x20','host','length','fields','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.','Transaction:\x20','message','canCancel','Checking\x20balances\x20on\x20all\x20networks...','Saving\x20encrypted\x20backup...','refresh','Backup\x20file\x20path','chainName','rpc','max','cursor','Request\x20changes\x20(new\x20paid\x20task)','logs','networkWorkers','Not\x20paid.\x20','Tool\x20ID','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','explorerUrl','workers','deliverables','some','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','detailTimer','restart','Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.','askResolve','sort','blocked','stage','Delete\x20draft?','more','running','ask','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','total','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','requestKey','choice','Add\x20target','Completed','Private\x20key\x20(hidden)','Install\x20background\x20service','findIndex','assign','fundingDialog','Worker:\x20','Explorer:\x20','Switching\x20wallet...','indexOf','saveQr','Skills','Keep\x20draft','pickPayment','The\x20wallet\x20key\x20is\x20encrypted\x20with\x20your\x20password\x20and\x20stays\x20on\x20this\x20computer.','add','refused','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','Payment\x20needs\x20review.','menuCancel','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','detail','job.open','executing','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.','scroll','coin','Checking\x20the\x20saved\x20order...','detailVersion','confirmResolve','runtime','confirm','name','walletBackup','change_payment','All','saveReceiveQr','Inspect\x20/\x20resume\x20saved\x20order','state','cancel','canDelete','Keep\x20request','Checking\x20balances\x20and\x20refreshing\x20prices...','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Downloading\x20verified\x20files...','includes','toLowerCase','dismissForm','funding_required','Remove\x20this\x20wallet\x20from\x20Colony?','repeat','walletMenu','submitForm','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','accepted','refreshWalletSelection','create','has','signal','closed','Open\x20Wallets','refreshRequest','submitted','install','refreshError','forget','Opening\x20draft...','funding','Delete\x20draft','setField','kind','deleteWallet','Overview','View\x20details','publishDraft','Review\x20saved\x20payment','move','\x20managed\x20targets\x20·\x20','min','abort','walletDelete','pending','Tools\x20&\x20credentials','reviewPayment','title','Add\x20funds\x20to\x20continue','Cancelling\x20request...','navigate','showPaymentProgress','revealPrivateKey','key','targets','filter','busy','Loading\x20','plan','Keyword\x20or\x20task\x20ID','identity','Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now','Save\x20recharge\x20QR\x20code','withFundingRetry','showForm','run','List\x20tools','QR\x20saved:\x20','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','close','map','network-worker','walletImport','update','job.continue','createWallet','Delete\x20local\x20record','Remove\x20RPC\x20endpoint','input','RPC\x20endpoints','You\x20need\x20a\x20wallet\x20to\x20pay\x20for\x20tasks.\x20Browsing\x20works\x20without\x20one.','managed-worker','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','Continue\x20draft','Worker\x20RPC\x20endpoints','Reason:\x20','Auto-refresh\x20failed:\x20','draft','query','claude','Import\x20wallet','admitting','action','Download','showOutcome','continueTask','...','receiveWallet','.\x20Press\x20b\x20to\x20back\x20up,\x20then\x20d\x20to\x20add\x20funds.','Task\x20actions','code','wallet','command','Worker\x20·\x20','blockers','pendingTransaction','useSelectedWallet','Back\x20up\x20encrypted\x20wallet','Linux\x20start\x20at\x20boot\x20(yes/no)','Loading\x20network\x20workers...','file','transaction_pending','Saved\x20','password','passwordReject','trim','Forget\x20credential','2.\x20Not\x20now\x20(browse\x20without\x20a\x20wallet)','created','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','concat','Status','error','paymentOptions','Enter\x20yes\x20or\x20no.','completed','port','reason','Worker\x20skills','whoami','Restore\x20wallet','subscribe','Wallet\x20management\x20·\x20all\x20wallets','Deleting\x20local\x20wallet...','walletPrivateKey','source','payWith','field','boot','\x20managed\x20targets\x20·\x20Network\x20unavailable\x20·\x20r\x20retry','flatMap','\x20on\x20','codex','value','test','requestPassword','Add\x20RPC','restoreSelectedId','pair','Continue','From\x20private\x20key','admitted','Back','list','locked','Add\x20skill','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','Cancel\x20request','stop','funded','listeners','register','wallets','\x20+\x20gas\x20≈\x20','selectWallet','result','draftId','terminal','service','menu','Worker\x20tools','jobId','walletRestore','deploy','Back\x20to\x20My\x20tasks','address','detailRequest','cancelAutoRefresh','form','taskMenu','search','chain','Add\x20funds','respond','Active','Remove\x20tool','Save\x20backup','cancelRequest','offerFirstWallet','payment','View\x20private\x20key','path','addFunds','walletReceive','status','--boot','Choose\x20an\x20output\x20directory.','loaded','autoRefresh','canResume','yes','publish','Skill\x20ID','No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).','Confirm\x20password','Files','help','loadDetail','extraTargets','hash','Set\x20local\x20wallet\x20password','walletSetup','extraAction','string','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Request\x20changes','serviceInstall','signed','toUpperCase','change','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','--runtime','values','fundingReceive','note','showMenu','paymentChain','updatedAt','worker','Restoring\x20wallet...','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','colony-receive.svg','Confirm\x20wallet\x20password','View\x20result\x20files','options','Download\x20files','Review\x20task','resume','transaction','questions','The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.','closeReceive','now','editDraft','operation','hasOwn','nextField','Remove\x20skill','Remove\x20RPC','restoreWallet','Backup\x20password','lastExploreRefresh','resumeOrder','push','mine','ETH','Cancel\x20this\x20request?','label','selection','lines','view','Restore\x20encrypted\x20wallet','Keep\x20wallet','get','formSubmit','Import\x20private\x20key\x20·\x20encrypted\x20locally','Check\x20balance\x20&\x20continue','Loading\x20older\x20tasks...','Use\x20at\x20least\x208\x20characters.','parent','searchText','chooseSupport','Saved\x20wallet','changeTab','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','Delete\x20wallet\x20·\x202\x20of\x202','Identity','doctor','throwIfAborted','Review\x20task\x20&\x20payment','autoPayment','workerCommand','createdAt','deleteRequest','Search','walletIsCurrent','View\x20logs','SSH\x20identity\x20file\x20(optional)','objective','clear','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.','Credential\x20name','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','getSnapshot','Unlink\x20worker','The\x20payment\x20result\x20is\x20not\x20final\x20yet.','items','backupWallet','Delete\x20wallet','Current','download','ethereum','\x20·\x20','detailLoading','saveDraft','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','Backup\x20saved:\x20','currentAddress','local','queued'];_0x1169=function(){return _0x116952;};return _0x1169();}function W(){const _0x5b7d97=_0x35df2a;return Object[_0x5b7d97(0x229)](new Error(_0x5b7d97(0x221)),{'code':_0x5b7d97(0x248)});}function T(_0x32a88e,_0x55bd58){const _0x5e6b98=_0x35df2a,{option:_0x3a019e}=_0x32a88e,_0x2f1d54=(_0x32a88e[_0x5e6b98(0x2d3)]==='IMD'?'':'\u2248\x20')+_0x42628b(_0x3a019e['payment'],_0x32a88e[_0x5e6b98(0x2d3)],{'up':!0x0}),_0x27cbaf=_0x55bd58&&_0x55bd58[_0x5e6b98(0x32d)]===_0x32a88e['paymentChain']&&_0x55bd58[_0x5e6b98(0x2d3)]===_0x32a88e['payWith'];return _0x32a88e[_0x5e6b98(0x2d3)]+_0x5e6b98(0x2d8)+_0x32a88e[_0x5e6b98(0x205)]+_0x5e6b98(0x379)+_0x2f1d54+_0x5e6b98(0x2ee)+_0x42628b(_0x3a019e[_0x5e6b98(0x1ee)],_0x5e6b98(0x34a),{'up':!0x0})+(_0x27cbaf?'\x20\xB7\x20current':'');}function A(_0x55ed9e){const _0x42ac54=_0x35df2a;if(!_0x55ed9e)return[];const _0xd44b=[];return _0x55ed9e['hash']&&_0xd44b[_0x42ac54(0x348)]('Transaction:\x20'+_0x55ed9e['hash']+(_0x55ed9e[_0x42ac54(0x26c)]?'\x20('+_0x55ed9e[_0x42ac54(0x26c)]+')':'')),_0x55ed9e[_0x42ac54(0x2ca)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x2a0)+_0x55ed9e[_0x42ac54(0x2ca)]),_0x55ed9e[_0x42ac54(0x20f)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x22c)+_0x55ed9e[_0x42ac54(0x20f)]),_0xd44b;}function E(_0x514591){const _0x36ffed=_0x35df2a,_0x232a1f=[_0x514591[_0x36ffed(0x1ff)]||_0x36ffed(0x372)];return _0x232a1f[_0x36ffed(0x348)](...A(_0x514591[_0x36ffed(0x339)])),_0x232a1f[_0x36ffed(0x348)](_0x36ffed(0x36d)),_0x232a1f[_0x36ffed(0x1cf)]('\x0a');}class _{constructor(_0x5ad583){const _0x471c8c=_0x35df2a;this[_0x471c8c(0x1f4)]=_0x5ad583,this[_0x471c8c(0x2eb)]=new Set(),this['state']={'view':_0x471c8c(0x1dd),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x471c8c(0x26e),'filter':_0x471c8c(0x249),'query':'','note':'','focus':_0x471c8c(0x2e4),'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[_0x471c8c(0x242)]=0x0,this[_0x471c8c(0x31b)]=[],this[_0x471c8c(0x261)]=!0x1,this['lastExploreRefresh']=0x0;}[_0x35df2a(0x2ce)]=_0x391932=>(this[_0x35df2a(0x2eb)][_0x35df2a(0x234)](_0x391932),()=>this[_0x35df2a(0x2eb)]['delete'](_0x391932));[_0x35df2a(0x370)]=()=>this[_0x35df2a(0x24c)];[_0x35df2a(0x294)](_0xe425f){const _0x31fe50=_0x35df2a;if(!this[_0x31fe50(0x261)]){this[_0x31fe50(0x24c)]={...this[_0x31fe50(0x24c)],..._0xe425f};for(const _0x304bfe of this[_0x31fe50(0x2eb)])_0x304bfe();}}[_0x35df2a(0x1c1)](){const _0x7c845d=_0x35df2a;return f(this[_0x7c845d(0x24c)])[this[_0x7c845d(0x24c)][_0x7c845d(0x1c1)]];}[_0x35df2a(0x1ea)](){const _0x1f85e=_0x35df2a;++this[_0x1f85e(0x242)],this['update']({'detail':{'output':this['state'][_0x1f85e(0x2c5)]??this[_0x1f85e(0x24c)][_0x1f85e(0x266)]},'detailLoading':!0x1,'focus':_0x1f85e(0x23a),'scroll':0x0,'tab':'Overview'});}[_0x35df2a(0x2fc)](){const _0x19d5ce=_0x35df2a;this[_0x19d5ce(0x263)]?.[_0x19d5ce(0x275)](),this[_0x19d5ce(0x263)]=null,this[_0x19d5ce(0x294)]({'refreshing':!0x1});}async[_0x35df2a(0x28c)](_0x2aeb20,_0x3f90aa){const _0x40641c=_0x35df2a;if(!this[_0x40641c(0x24c)][_0x40641c(0x283)]){this['cancelAutoRefresh'](),this[_0x40641c(0x33f)]=new AbortController(),this[_0x40641c(0x294)]({'busy':_0x2aeb20,'error':null,'refreshError':null,'notice':null});try{return await _0x3f90aa(this[_0x40641c(0x33f)][_0x40641c(0x260)]);}catch(_0x28abcc){_0x28abcc[_0x40641c(0x2af)]===_0x40641c(0x1c8)?(this[_0x40641c(0x294)]({'notice':_0x28abcc[_0x40641c(0x1ff)]}),this[_0x40641c(0x33e)]()):P[_0x40641c(0x25f)](_0x28abcc[_0x40641c(0x2af)])?this[_0x40641c(0x294)]({'error':E(_0x28abcc)}):this[_0x40641c(0x294)]({'error':_0x28abcc[_0x40641c(0x1ff)]});}finally{this[_0x40641c(0x294)]({'busy':null,'modelProgress':null});}}}async['navigate'](_0x377290){const _0x509829=_0x35df2a;this[_0x509829(0x24c)][_0x509829(0x283)]||(clearTimeout(this[_0x509829(0x214)]),this[_0x509829(0x2fb)]?.['abort'](),++this[_0x509829(0x242)],this[_0x509829(0x294)]({'view':_0x377290,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':'All','tab':_0x509829(0x26e),'scroll':0x0,'focus':_0x509829(0x2e4),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x509829(0x203)]());}async[_0x35df2a(0x203)]({notice:_0x39a047}={}){const _0x568e2d=_0x35df2a,_0x18f471=this[_0x568e2d(0x1c1)]()?.['id']??this[_0x568e2d(0x2de)];this[_0x568e2d(0x2de)]=void 0x0,await this[_0x568e2d(0x28c)](_0x568e2d(0x284)+this[_0x568e2d(0x24c)][_0x568e2d(0x34f)]+_0x568e2d(0x2ab),async _0x984c97=>{const _0x288897=_0x568e2d;let _0x391253;if(this['state'][_0x288897(0x34f)]===_0x288897(0x1dd))_0x391253=await this['services'][_0x288897(0x349)](_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x1c7))_0x391253=await this[_0x288897(0x1f4)][_0x288897(0x1c7)](this[_0x288897(0x24c)][_0x288897(0x2a3)],void 0x0,_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x210)){const _0x13048a=this['services'][_0x288897(0x281)](),_0x1adc9e=new Set(_0x13048a[_0x288897(0x291)](_0x411909=>_0x411909['id'])),_0x25a978=_0x13048a[_0x288897(0x2c3)](this[_0x288897(0x31b)]['filter'](_0x52ab04=>!_0x1adc9e['has'](_0x52ab04['id'])))[_0x288897(0x291)](_0x26e4a9=>({..._0x26e4a9,'kind':_0x288897(0x29c)}));this['update']({'items':_0x25a978,'selected':0x0,'note':_0x288897(0x2b8)});let _0x164086;try{_0x164086=await this[_0x288897(0x1f4)][_0x288897(0x20b)](_0x984c97);}catch(_0x397ece){throw this[_0x288897(0x294)]({'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x2d6)}),_0x397ece;}_0x391253={'items':_0x25a978[_0x288897(0x2c3)](_0x164086),'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x273)+_0x164086[_0x288897(0x1fb)]+'\x20network\x20workers\x20\xB7\x20availability,\x20free\x20slots,\x20ID\x20\xB7\x20r\x20refresh'};}else{const _0x53c6b1=await this['services']['wallet'](_0x984c97,_0x18f471,{'balances':!0x1}),_0x15fe1c=this[_0x288897(0x1f4)]['wallets']();!_0x15fe1c[_0x288897(0x1fb)]&&_0x53c6b1[_0x288897(0x1d3)]&&_0x15fe1c[_0x288897(0x348)]({'address':_0x53c6b1['address'],'active':!0x0,'locked':_0x53c6b1[_0x288897(0x2e5)]}),_0x391253={'items':_0x15fe1c[_0x288897(0x291)](_0xde629c=>({..._0xde629c,'id':_0xde629c['address'],'title':_0xde629c[_0x288897(0x2fa)]['slice'](0x0,0xa)+_0x288897(0x2ab)+_0xde629c[_0x288897(0x2fa)][_0x288897(0x1ec)](-0x8),'subtitle':_0xde629c['active']?_0x288897(0x376):_0x288897(0x35b)})),'note':'One\x20local\x20password\x20\xB7\x20u\x20use\x20selected\x20wallet','address':_0x53c6b1[_0x288897(0x37e)]??_0x53c6b1[_0x288897(0x2fa)]??null},this[_0x288897(0x294)]({'detail':_0x53c6b1,'scroll':0x0});}}}const _0x3d3c9d=_0x18f471??(this['state'][_0x288897(0x34f)]===_0x288897(0x2b0)?_0x391253['address']:void 0x0),_0x4232bb=Math[_0x288897(0x207)](0x0,f({...this[_0x288897(0x24c)],'items':_0x391253['items']})['findIndex'](_0x288c55=>_0x288c55['id']===_0x3d3c9d));this[_0x288897(0x294)]({'items':_0x391253[_0x288897(0x373)],'note':_0x391253[_0x288897(0x32b)],'cursor':_0x391253['cursor'],'total':_0x391253['total']??(_0x391253[_0x288897(0x208)]?null:_0x391253['items'][_0x288897(0x1fb)]),'since':_0x391253['since']??null,'selected':_0x4232bb,'address':Object[_0x288897(0x340)](_0x391253,_0x288897(0x2fa))?_0x391253['address']:this['state'][_0x288897(0x2fa)]}),this[_0x288897(0x24c)]['view']===_0x288897(0x1c7)&&(this[_0x288897(0x346)]=Date[_0x288897(0x33d)]());}),_0x39a047&&this[_0x568e2d(0x294)]({'notice':_0x39a047}),this[_0x568e2d(0x261)]||await this[_0x568e2d(0x31a)](this[_0x568e2d(0x24c)]['view']===_0x568e2d(0x2b0));}async[_0x35df2a(0x311)](){const _0x3061ad=_0x35df2a,_0x36dc4e=this['state'];this['closed']||_0x36dc4e['busy']||_0x36dc4e['refreshing']||_0x36dc4e[_0x3061ad(0x37a)]||_0x36dc4e[_0x3061ad(0x2fd)]||_0x36dc4e[_0x3061ad(0x245)]||_0x36dc4e[_0x3061ad(0x2f4)]||_0x36dc4e[_0x3061ad(0x319)]||_0x36dc4e['privateKeyView']||(_0x36dc4e[_0x3061ad(0x34f)]==='explore'&&_0x36dc4e['since']!==null&&Date['now']()-this[_0x3061ad(0x346)]>=x?await this[_0x3061ad(0x1db)]():_0x36dc4e['view']===_0x3061ad(0x1dd)&&!_0x36dc4e[_0x3061ad(0x2c5)]&&[_0x3061ad(0x21d),'executing',_0x3061ad(0x380),_0x3061ad(0x277)][_0x3061ad(0x253)](this[_0x3061ad(0x1c1)]()?.[_0x3061ad(0x24c)])&&await this['loadDetail'](!0x0));}async[_0x35df2a(0x1db)](){const _0x476a0e=_0x35df2a,_0x17dc9d=new AbortController();this[_0x476a0e(0x263)]=_0x17dc9d,this['lastExploreRefresh']=Date['now'](),this[_0x476a0e(0x294)]({'refreshing':!0x0});try{const _0x48b120=await this['services'][_0x476a0e(0x1cd)](this[_0x476a0e(0x24c)][_0x476a0e(0x2a3)],this[_0x476a0e(0x24c)]['since'],_0x17dc9d[_0x476a0e(0x260)]);if(this[_0x476a0e(0x263)]!==_0x17dc9d||this[_0x476a0e(0x261)])return;const _0x33f10b=this[_0x476a0e(0x1c1)]()?.['id'],_0x4d734e=this[_0x476a0e(0x24c)][_0x476a0e(0x373)]['at'](-0x1)?.['createdAt'],_0x1391a2=new Map(this[_0x476a0e(0x24c)]['items'][_0x476a0e(0x291)](_0x4ca31c=>[_0x4ca31c['id'],_0x4ca31c]));for(const _0x2b6ec6 of _0x48b120[_0x476a0e(0x373)]){const _0xb1a806=_0x1391a2[_0x476a0e(0x352)](_0x2b6ec6['id']);_0xb1a806&&_0x2b6ec6[_0x476a0e(0x32e)]<_0xb1a806[_0x476a0e(0x32e)]||(_0x1391a2['has'](_0x2b6ec6['id'])||!_0x4d734e||_0x2b6ec6[_0x476a0e(0x365)]>=_0x4d734e)&&_0x1391a2[_0x476a0e(0x1f1)](_0x2b6ec6['id'],_0x2b6ec6);}const _0x8c4c76=[..._0x1391a2['values']()][_0x476a0e(0x218)]((_0x36abae,_0x5ea0ae)=>_0x5ea0ae[_0x476a0e(0x365)]['localeCompare'](_0x36abae[_0x476a0e(0x365)])),_0x3cde12=Math['max'](0x0,_0x8c4c76[_0x476a0e(0x228)](_0x4c98ac=>_0x4c98ac['id']===_0x33f10b));this[_0x476a0e(0x294)]({'items':_0x8c4c76,'selected':_0x3cde12,'since':_0x48b120['since'],'total':_0x48b120[_0x476a0e(0x220)]??(this[_0x476a0e(0x24c)][_0x476a0e(0x208)]?null:_0x8c4c76[_0x476a0e(0x1fb)]),'refreshError':null}),await this[_0x476a0e(0x31a)](!0x0);}catch(_0x59a89e){this[_0x476a0e(0x263)]===_0x17dc9d&&!this[_0x476a0e(0x261)]&&this['update']({'refreshError':_0x476a0e(0x2a1)+_0x59a89e['message']});}finally{this[_0x476a0e(0x263)]===_0x17dc9d&&(this[_0x476a0e(0x263)]=null,this[_0x476a0e(0x294)]({'refreshing':!0x1}));}}async['more'](){const _0x4a13b1=_0x35df2a;this[_0x4a13b1(0x24c)][_0x4a13b1(0x34f)]!==_0x4a13b1(0x1c7)||!this['state'][_0x4a13b1(0x208)]||await this[_0x4a13b1(0x28c)](_0x4a13b1(0x356),async _0x26dd4c=>{const _0x54c0ef=_0x4a13b1,_0x1cd2c5=await this[_0x54c0ef(0x1f4)][_0x54c0ef(0x1c7)](this[_0x54c0ef(0x24c)][_0x54c0ef(0x2a3)],this[_0x54c0ef(0x24c)][_0x54c0ef(0x208)],_0x26dd4c),_0x48c49b=new Set(this[_0x54c0ef(0x24c)]['items'][_0x54c0ef(0x291)](_0x39cb43=>_0x39cb43['id'])),_0x2955af=this[_0x54c0ef(0x24c)][_0x54c0ef(0x373)][_0x54c0ef(0x2c3)](_0x1cd2c5[_0x54c0ef(0x373)][_0x54c0ef(0x282)](_0x1b7b38=>!_0x48c49b[_0x54c0ef(0x25f)](_0x1b7b38['id'])));this[_0x54c0ef(0x294)]({'items':_0x2955af,'cursor':_0x1cd2c5[_0x54c0ef(0x208)],'total':this[_0x54c0ef(0x24c)][_0x54c0ef(0x220)]??(_0x1cd2c5[_0x54c0ef(0x208)]?null:_0x2955af['length'])});});}async[_0x35df2a(0x31a)](_0x55c61a=!0x1){const _0x32526d=_0x35df2a;clearTimeout(this[_0x32526d(0x214)]),this[_0x32526d(0x214)]=null;const _0x41341d=this[_0x32526d(0x1c1)]();if(this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x2b0)&&!_0x41341d)return;const _0x5a1d4e=++this[_0x32526d(0x242)];if(this[_0x32526d(0x2fb)]?.[_0x32526d(0x275)](),this[_0x32526d(0x2fb)]=new AbortController(),this[_0x32526d(0x294)]({'detail':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23a)]:null,'result':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x2f0)]:null,'detailLoading':!!_0x41341d,'scroll':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23f)]:0x0}),!!_0x41341d)try{const _0x4eb46d=this['state'][_0x32526d(0x34f)]===_0x32526d(0x2b0)?await this['services']['wallet'](this[_0x32526d(0x2fb)]['signal'],_0x41341d[_0x32526d(0x2fa)]):this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x210)?_0x41341d['kind']===_0x32526d(0x292)?_0x41341d:_0x41341d['installed']?await this[_0x32526d(0x1f4)][_0x32526d(0x2b1)]([_0x32526d(0x32f),_0x32526d(0x30d)],_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]):{'notInstalled':!0x0}:await this[_0x32526d(0x1f4)][_0x32526d(0x23a)](_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]);if(_0x5a1d4e===this['detailVersion']){const _0x373249=_0x4eb46d[_0x32526d(0x24c)]??(_0x41341d['jobId']?void 0x0:_0x4eb46d['status']),_0x29a5fe=this[_0x32526d(0x24c)][_0x32526d(0x373)][_0x32526d(0x291)](_0x27d8f5=>_0x27d8f5['id']===_0x41341d['id']&&_0x373249?{..._0x27d8f5,'state':_0x373249,..._0x4eb46d[_0x32526d(0x32e)]?{'updatedAt':_0x4eb46d['updatedAt']}:{},..._0x32526d(0x200)in _0x4eb46d?{'canCancel':_0x4eb46d[_0x32526d(0x200)],'canDelete':_0x4eb46d[_0x32526d(0x24e)],'canResume':_0x4eb46d[_0x32526d(0x312)]}:{}}:_0x27d8f5),_0x80740=f({...this['state'],'items':_0x29a5fe})['findIndex'](_0x38ff8e=>_0x38ff8e['id']===_0x41341d['id']);this[_0x32526d(0x294)]({'detail':_0x80740<0x0?null:_0x4eb46d,'detailLoading':!0x1,'items':_0x29a5fe,'selected':Math[_0x32526d(0x207)](0x0,_0x80740)}),_0x80740<0x0&&this['loadDetail']();}}catch(_0x19691c){_0x5a1d4e===this[_0x32526d(0x242)]&&this[_0x32526d(0x294)]({'detailLoading':!0x1,'error':_0x19691c['message']});}}[_0x35df2a(0x272)](_0x4193de){const _0x416a50=_0x35df2a,_0x39b1c2=f(this[_0x416a50(0x24c)])['length'],_0x3bc74d=Math[_0x416a50(0x207)](0x0,Math[_0x416a50(0x274)](_0x39b1c2-0x1,this[_0x416a50(0x24c)][_0x416a50(0x1c1)]+_0x4193de));_0x3bc74d!==this[_0x416a50(0x24c)][_0x416a50(0x1c1)]&&(clearTimeout(this[_0x416a50(0x214)]),++this[_0x416a50(0x242)],this[_0x416a50(0x2fb)]?.[_0x416a50(0x275)](),this[_0x416a50(0x294)]({'selected':_0x3bc74d,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x416a50(0x24c)][_0x416a50(0x34f)]==='workers'?this['loadDetail']():this[_0x416a50(0x214)]=setTimeout(()=>{const _0x46a9f6=_0x416a50;this[_0x46a9f6(0x31a)]();},0x78)),_0x4193de>0x0&&_0x3bc74d===_0x39b1c2-0x1&&this[_0x416a50(0x21c)]();}[_0x35df2a(0x1e2)](){const _0x53b7a9=_0x35df2a;this[_0x53b7a9(0x294)]({'filter':m[(m[_0x53b7a9(0x22e)](this[_0x53b7a9(0x24c)][_0x53b7a9(0x282)])+0x1)%m['length']],'selected':0x0}),this[_0x53b7a9(0x31a)]();}async[_0x35df2a(0x35c)](_0x3f9f50){const _0x3efcbc=_0x35df2a,_0x54dd6d=u[(u[_0x3efcbc(0x22e)](this[_0x3efcbc(0x24c)]['tab'])+_0x3f9f50+u[_0x3efcbc(0x1fb)])%u[_0x3efcbc(0x1fb)]];this[_0x3efcbc(0x294)]({'tab':_0x54dd6d,'scroll':0x0}),_0x54dd6d===_0x3efcbc(0x318)&&await this[_0x3efcbc(0x1bf)]();}async[_0x35df2a(0x1bf)](){const _0x1dd1fd=_0x35df2a,_0x48b8f5=this[_0x1dd1fd(0x1c1)]();_0x48b8f5?.['jobId']&&(this[_0x1dd1fd(0x214)]&&this[_0x1dd1fd(0x31a)](!0x0),this[_0x1dd1fd(0x294)]({'tab':_0x1dd1fd(0x318),'focus':_0x1dd1fd(0x23a),'scroll':0x0}),await this[_0x1dd1fd(0x28c)](_0x1dd1fd(0x1d7),async _0x2fc973=>{const _0x1e0161=_0x1dd1fd;this[_0x1e0161(0x294)]({'result':await this[_0x1e0161(0x1f4)][_0x1e0161(0x2f0)](_0x48b8f5[_0x1e0161(0x2f6)],_0x2fc973)});}));}['showForm'](_0x2b1efb,_0x445bdf,_0x3cf9f8,{onCancel:_0xd13cf6,submit:_0x27ffc4=_0x35df2a(0x2e0)}={}){const _0xb43c5c=_0x35df2a;this[_0xb43c5c(0x2fc)](),this[_0xb43c5c(0x353)]=_0x3cf9f8,this[_0xb43c5c(0x1da)]=_0xd13cf6,this['update']({'form':{'title':_0x2b1efb,'fields':_0x445bdf,'values':Object['fromEntries'](_0x445bdf['map'](_0x431f9d=>[_0x431f9d['name'],_0x431f9d[_0xb43c5c(0x2da)]??''])),'field':0x0,'submit':_0x27ffc4,'error':null},'menu':null});}[_0x35df2a(0x26b)](_0x1ee384){const _0x25b8b2=_0x35df2a,_0x436ca4=this[_0x25b8b2(0x24c)]['form'],_0x3755b8=_0x436ca4[_0x25b8b2(0x1fc)][_0x436ca4[_0x25b8b2(0x2d4)]][_0x25b8b2(0x246)];this[_0x25b8b2(0x294)]({'form':{..._0x436ca4,'values':{..._0x436ca4[_0x25b8b2(0x329)],[_0x3755b8]:_0x1ee384},'error':null}});}[_0x35df2a(0x341)](_0x2703b1=!0x1){const _0x5caa48=_0x35df2a,_0x508866=this[_0x5caa48(0x24c)][_0x5caa48(0x2fd)];this[_0x5caa48(0x294)]({'form':{..._0x508866,'field':(_0x508866['field']+(_0x2703b1?-0x1:0x1)+_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)])%_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)]}});}async[_0x35df2a(0x25a)](){const _0x2d00f0=_0x35df2a,{values:_0xd7f802}=this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)];try{await this[_0x2d00f0(0x353)](_0xd7f802);}catch(_0x1ab736){this[_0x2d00f0(0x294)]({'form':{...this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)],'error':_0x1ab736[_0x2d00f0(0x1ff)]}});}}[_0x35df2a(0x255)](){const _0x32876c=_0x35df2a,_0x4a5fea=this[_0x32876c(0x1da)];this[_0x32876c(0x294)]({'form':null}),_0x4a5fea&&_0x4a5fea();}[_0x35df2a(0x2ff)](){const _0xf35a3f=_0x35df2a,_0x3f70d9=this[_0xf35a3f(0x24c)][_0xf35a3f(0x34f)]===_0xf35a3f(0x210);this[_0xf35a3f(0x28b)](_0x3f70d9?'Search\x20workers':_0xf35a3f(0x1e8),[{'name':_0xf35a3f(0x2a3),'label':_0x3f70d9?'Worker\x20ID,\x20runtime\x20or\x20skill':_0xf35a3f(0x286),'value':this['state']['query']}],async({query:_0x1fdf1a})=>{const _0x2b87d1=_0xf35a3f;this[_0x2b87d1(0x294)]({'query':_0x1fdf1a,'selected':0x0,'form':null}),this['state'][_0x2b87d1(0x34f)]==='explore'?await this[_0x2b87d1(0x203)]():await this[_0x2b87d1(0x31a)]();},{'submit':_0xf35a3f(0x367)});}['create'](_0x166aef=null){const _0x406c3e=_0x35df2a;this['draft']={'id':_0x142cc6(),'objective':'','parent':_0x166aef},this[_0x406c3e(0x33e)]();}[_0x35df2a(0x2aa)](){const _0x12d343=_0x35df2a,_0x5cdea9=this[_0x12d343(0x1c1)]();this[_0x12d343(0x24c)]['view']!==_0x12d343(0x1dd)||!_0x5cdea9?.[_0x12d343(0x2f6)]||this[_0x12d343(0x25e)](_0x5cdea9[_0x12d343(0x2f6)]);}[_0x35df2a(0x33e)](){const _0x52d7d6=_0x35df2a;this[_0x52d7d6(0x2a2)]&&(this['showForm'](this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x322):'Create\x20a\x20task',[{'name':'objective','label':this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x1f0):'What\x20would\x20you\x20like\x20to\x20get\x20done?','value':this[_0x52d7d6(0x2a2)]['objective'],'placeholder':_0x52d7d6(0x37c)}],async({objective:_0x1710e8})=>{const _0x1df2b8=_0x52d7d6;if(!_0x1710e8[_0x1df2b8(0x2be)]())throw new Error(_0x1df2b8(0x25b));const _0x14b81b=_0x1710e8[_0x1df2b8(0x2be)]()!==this[_0x1df2b8(0x2a2)][_0x1df2b8(0x36b)];this[_0x1df2b8(0x2a2)]={...this[_0x1df2b8(0x2a2)],'objective':_0x1710e8[_0x1df2b8(0x2be)](),..._0x14b81b&&this[_0x1df2b8(0x2a2)][_0x1df2b8(0x222)]?{'id':_0x142cc6(),'createdAt':void 0x0}:{},..._0x14b81b?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x1df2b8(0x294)]({'form':null}),await this[_0x1df2b8(0x270)]();},{'submit':_0x52d7d6(0x337)}),this[_0x52d7d6(0x294)]({'form':{...this[_0x52d7d6(0x24c)]['form'],'hint':_0x52d7d6(0x216)}}));}['ask'](_0x15c919){return new Promise(_0x544300=>{const _0x34d334=_0x35aa;this[_0x34d334(0x217)]=_0x544300,this[_0x34d334(0x28b)]('A\x20little\x20more\x20information',_0x15c919[_0x34d334(0x291)]((_0x1fefa6,_0x5f38ae)=>({'name':String(_0x5f38ae),'label':_0x1fefa6})),_0x389c70=>{const _0x11fe4f=_0x34d334;this[_0x11fe4f(0x294)]({'form':null}),this[_0x11fe4f(0x217)]=null,_0x544300(Object[_0x11fe4f(0x329)](_0x389c70));},{'onCancel':()=>{const _0x128709=_0x34d334;this[_0x128709(0x217)]=null,_0x544300([]);}});});}[_0x35df2a(0x245)](_0x588072){return new Promise(_0x33ba2f=>{const _0x5cfd4b=_0x35aa;this[_0x5cfd4b(0x243)]=_0x33ba2f;const _0x4a7da3=_0x588072[_0x5cfd4b(0x34e)]??(_0x588072[_0x5cfd4b(0x1ff)]!==void 0x0?[String(_0x588072[_0x5cfd4b(0x1ff)])]:[]);this[_0x5cfd4b(0x294)]({'confirm':{..._0x588072,'lines':_0x4a7da3,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x373bef){const _0x401ea4=_0x35df2a,_0x44a576=this['state'][_0x401ea4(0x245)],_0x1cd3f3=_0x44a576[_0x401ea4(0x31f)]?0x3:0x2,_0x31bcd2=(_0x44a576[_0x401ea4(0x34d)]+_0x373bef+_0x1cd3f3)%_0x1cd3f3;this[_0x401ea4(0x294)]({'confirm':{..._0x44a576,'selection':_0x31bcd2,'accepted':_0x31bcd2===_0x1cd3f3-0x1}});}['submitConfirmation'](){const _0x32c720=_0x35df2a,_0x412d31=this[_0x32c720(0x24c)][_0x32c720(0x245)];_0x412d31[_0x32c720(0x31f)]&&_0x412d31[_0x32c720(0x34d)]===0x1?_0x412d31[_0x32c720(0x31f)][_0x32c720(0x28c)]():this[_0x32c720(0x302)](_0x412d31[_0x32c720(0x25c)]);}async[_0x35df2a(0x1f5)](_0x2bb8da){const _0x26b003=_0x35df2a;if(!await this[_0x26b003(0x245)]({'title':'Update\x20network\x20fee','message':_0x2bb8da?.[_0x26b003(0x1ff)]??''}))throw p();}[_0x35df2a(0x302)](_0x109160){const _0x52bec5=_0x35df2a,_0x245b36=this[_0x52bec5(0x243)];this[_0x52bec5(0x243)]=null,this['update']({'confirm':null}),_0x245b36(_0x109160);}[_0x35df2a(0x279)](_0x43b8b2={}){return async _0x18e255=>{const _0x4d8094=_0x35aa,_0x29da22=await this[_0x4d8094(0x245)]({'title':_0x4d8094(0x362),'payment':_0x512502(_0x18e255),'extraAction':{'label':'Change\x20payment','run':()=>this['respond'](_0x4d8094(0x326))},..._0x43b8b2});if(_0x29da22===_0x4d8094(0x326))throw W();if(!_0x29da22)throw p();};}async[_0x35df2a(0x363)]({action:_0x3f825d,signal:_0x44be6c,prefer:_0x381d2f}){const _0x3f5fb=_0x35df2a,_0x594531=await this[_0x3f5fb(0x28a)](()=>this[_0x3f5fb(0x1f4)]['checkTaskWallet']({'action':_0x3f825d,'signal':_0x44be6c,'prefer':_0x381d2f}));return{'choice':_0x594531,'payment':{'paymentChain':_0x594531['paymentChain'],'payWith':_0x594531[_0x3f5fb(0x2d3)]}};}async['pickPayment']({action:_0x29b8c6,signal:_0x37c14d,current:_0x140b25}){const _0x18422d=_0x35df2a;this['update']({'busy':'Checking\x20balances\x20on\x20all\x20networks...'});const {networks:_0x3a3c77}=await this[_0x18422d(0x1f4)][_0x18422d(0x2c6)]({'action':_0x29b8c6,'signal':_0x37c14d}),_0x51a712=_0x3a3c77[_0x18422d(0x2d7)](_0x2de376=>(_0x2de376[_0x18422d(0x335)]??[])[_0x18422d(0x282)](_0x579137=>_0x579137[_0x18422d(0x2ea)])[_0x18422d(0x291)](_0x97b91d=>({'paymentChain':_0x2de376[_0x18422d(0x280)],'payWith':_0x97b91d[_0x18422d(0x240)],'chainName':_0x2de376[_0x18422d(0x205)],'option':_0x97b91d})));return new Promise(_0x2998b0=>{const _0x21b4ab=_0x18422d,_0x30ef13=_0x51a712['map'](_0x34f9ce=>({'label':T(_0x34f9ce,_0x140b25),'run':()=>_0x2998b0({'paymentChain':_0x34f9ce['paymentChain'],'payWith':_0x34f9ce[_0x21b4ab(0x2d3)]})}));_0x30ef13[_0x21b4ab(0x1fb)]||_0x30ef13[_0x21b4ab(0x348)]({'label':_0x21b4ab(0x29d),'run':()=>_0x2998b0(_0x140b25)}),this[_0x21b4ab(0x32c)](_0x51a712[_0x21b4ab(0x1fb)]>0x1?_0x21b4ab(0x21f):_0x21b4ab(0x288),_0x30ef13,{'onCancel':()=>_0x2998b0(_0x140b25)});});}async['publishDraft'](){const _0x1af6dc=_0x35df2a,_0x63b8c=await this[_0x1af6dc(0x28c)]('Checking\x20balances\x20on\x20all\x20networks...',async _0x1cfca5=>{const _0x76e6c6=_0x1af6dc,_0x1e8c44=this[_0x76e6c6(0x2a2)];_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44));const _0xa3774b=_0x1e8c44['parent']?_0x76e6c6(0x295):'job.open';let _0xe3ed58;try{if(!_0x1e8c44[_0x76e6c6(0x222)]){const _0xd733a4=await this[_0x76e6c6(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44['payment']});_0xe3ed58=_0xd733a4[_0x76e6c6(0x223)],_0x1e8c44['payment']=_0xd733a4['payment'];}}catch(_0x1959af){if(_0x1959af[_0x76e6c6(0x2af)]!=='wallet_required')throw _0x1959af;return{'status':_0x76e6c6(0x2a2),'setupWallet':await this['confirm']({'title':_0x76e6c6(0x1ca),'lines':[_0x76e6c6(0x239),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':_0x76e6c6(0x262),'cancelLabel':_0x76e6c6(0x2f9)}),'draftId':_0x1e8c44['id']};}this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1cb)});const _0x148871=_0x1e8c44['parent']?await this['services'][_0x76e6c6(0x23a)]({'jobId':_0x1e8c44['parent']},_0x1cfca5):null,_0x3d4e66=_0x1e8c44[_0x76e6c6(0x285)]??await this[_0x76e6c6(0x1f4)][_0x76e6c6(0x285)]({'objective':_0x1e8c44[_0x76e6c6(0x36b)],'parent':_0x148871,'signal':_0x1cfca5,'ask':_0x222d72=>this[_0x76e6c6(0x21e)](_0x222d72),'onProgress':_0x423b5d=>{const _0x2292c6=_0x76e6c6;this[_0x2292c6(0x294)](_0x423b5d[_0x2292c6(0x21a)]===_0x2292c6(0x310)?{'busy':_0x2292c6(0x1cb),'modelProgress':null}:{'busy':_0x2292c6(0x1c2),'modelProgress':_0x423b5d});}});if(_0x1cfca5[_0x76e6c6(0x361)](),!_0x3d4e66[_0x76e6c6(0x299)])throw new Error(_0x3d4e66[_0x76e6c6(0x33a)]['join']('\x0a')||'This\x20request\x20is\x20not\x20supported.');_0x1e8c44[_0x76e6c6(0x285)]=_0x3d4e66,_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44)),this[_0x76e6c6(0x294)]({'busy':'Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...'});let _0x20a990=!0x1;const _0x49d81b=async _0x4d6cac=>{const _0x53670d=_0x76e6c6;if(_0x20a990){const _0x183546=await this[_0x53670d(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44[_0x53670d(0x308)]});_0xe3ed58=_0x183546[_0x53670d(0x223)],_0x1e8c44[_0x53670d(0x308)]=_0x183546[_0x53670d(0x308)],_0x4d6cac={..._0x4d6cac,'paymentChain':_0x1e8c44[_0x53670d(0x308)][_0x53670d(0x32d)],'payWith':_0x1e8c44['payment']['payWith'],'expectedWallet':_0xe3ed58[_0x53670d(0x2fa)]},_0x20a990=!0x1;}try{return await this[_0x53670d(0x1f4)][_0x53670d(0x314)](_0x4d6cac);}catch(_0x22b759){throw _0x22b759[_0x53670d(0x2af)]===_0x53670d(0x256)&&_0x22b759['funding']?.[_0x53670d(0x1be)]&&(_0x20a990=!0x0),_0x22b759;}};for(;;)try{const _0x5cc1d1=await this[_0x76e6c6(0x28a)](()=>_0x49d81b({'input':_0x3d4e66['input'],'action':_0xa3774b,'paymentChain':_0x1e8c44[_0x76e6c6(0x308)]?.[_0x76e6c6(0x32d)],'payWith':_0x1e8c44[_0x76e6c6(0x308)]?.['payWith'],'expectedWallet':_0xe3ed58?.[_0x76e6c6(0x2fa)],'requestKey':_0x1e8c44[_0x76e6c6(0x222)]??_0x1e8c44['id'],'onSaved':async _0x4b611c=>{const _0x4f05ed=_0x76e6c6;_0x1e8c44[_0x4f05ed(0x222)]=_0x4b611c[_0x4f05ed(0x222)],await this[_0x4f05ed(0x1f4)][_0x4f05ed(0x1d8)](_0x1e8c44['id']);},'plan':{'summary':_0x3d4e66['summary'],'deliverables':_0x3d4e66[_0x76e6c6(0x211)]},'signal':_0x1cfca5,'chooseSupport':_0x5ed051=>this[_0x76e6c6(0x35a)](_0x5ed051),'onProgress':_0x771f95=>this[_0x76e6c6(0x27e)](_0x771f95),'confirmReplacement':_0x3408e2=>this[_0x76e6c6(0x1f5)](_0x3408e2),'confirm':this['reviewPayment']()}));return this['showOutcome'](_0x5cc1d1),_0x5cc1d1;}catch(_0x56bbdb){if(_0x56bbdb[_0x76e6c6(0x2af)]!==_0x76e6c6(0x248))throw _0x56bbdb;_0x1e8c44[_0x76e6c6(0x308)]=await this['pickPayment']({'action':_0xa3774b,'signal':_0x1cfca5,'current':_0x1e8c44[_0x76e6c6(0x308)]}),this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1ce)});}});if(!this['closed']&&_0x63b8c?.[_0x1af6dc(0x30d)]===_0x1af6dc(0x2a2))await this[_0x1af6dc(0x27d)](_0x63b8c['setupWallet']?_0x1af6dc(0x2b0):_0x1af6dc(0x1dd)),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x2e7)}),_0x63b8c['setupWallet']&&this[_0x1af6dc(0x1f6)]();else{if(!this[_0x1af6dc(0x261)]&&_0x63b8c?.['status']===_0x1af6dc(0x2e2)&&_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]){await this['navigate'](_0x1af6dc(0x1dd));const _0x20dc61=this[_0x1af6dc(0x24c)][_0x1af6dc(0x373)][_0x1af6dc(0x228)](_0x57a979=>_0x57a979[_0x1af6dc(0x2f6)]===_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]);_0x20dc61>=0x0&&(this[_0x1af6dc(0x294)]({'selected':_0x20dc61}),await this['loadDetail']()),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x1d4)+_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]});}}}['showPaymentProgress'](_0x2d1e15){const _0xa6c17b=_0x35df2a,_0x36a137=typeof _0x2d1e15?.[_0xa6c17b(0x1ff)]==_0xa6c17b(0x320)?_0x2d1e15[_0xa6c17b(0x1ff)][_0xa6c17b(0x2be)]():'';_0x36a137&&this['update']({'busy':_0x36a137});}async[_0x35df2a(0x28a)](_0x645493){const _0x3602f4=_0x35df2a;for(;;)try{return await _0x645493();}catch(_0x464d56){if(_0x464d56[_0x3602f4(0x2af)]!==_0x3602f4(0x256))throw _0x464d56;if(!await this[_0x3602f4(0x245)]({'title':_0x3602f4(0x27b),'lines':_0x58ce5d(_0x464d56[_0x3602f4(0x269)]),'acceptLabel':_0x3602f4(0x355),'cancelLabel':_0x3602f4(0x2e3),'extraAction':{'label':_0x3602f4(0x301),'run':()=>this[_0x3602f4(0x30b)](_0x464d56[_0x3602f4(0x269)])}}))throw p();this[_0x3602f4(0x294)]({'busy':_0x3602f4(0x250)});}}['showOutcome']({state:_0x574961,status:_0x49311f,check:_0x53e3b4}){const _0x36b4b3=_0x35df2a;if(_0x49311f===_0x36b4b3(0x2e2)&&_0x574961[_0x36b4b3(0x2f6)])this[_0x36b4b3(0x2a2)]=null,this['update']({'notice':'Task\x20published:\x20'+_0x574961[_0x36b4b3(0x2f6)]+_0x36b4b3(0x213)});else{if(_0x49311f===_0x36b4b3(0x219))this[_0x36b4b3(0x294)]({'error':_0x36b4b3(0x20c)+_0x53e3b4[_0x36b4b3(0x2b3)][_0x36b4b3(0x291)](_0x273741=>_0x273741[_0x36b4b3(0x23a)]??_0x273741['code'])[_0x36b4b3(0x1cf)]('\x0a')});else{if(_0x49311f===_0x36b4b3(0x235))this['update']({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x574961['refusalProblems']??[])['map'](_0x33a2a7=>_0x33a2a7['detail']??_0x33a2a7[_0x36b4b3(0x2af)])[_0x36b4b3(0x1cf)]('\x0a')+_0x36b4b3(0x1f8)+_0x574961['orderId']});else{if(S[_0x36b4b3(0x25f)](_0x49311f)){const _0x30aa1b=[_0x36b4b3(0x237),_0x36b4b3(0x239),_0x36b4b3(0x321)],_0x5d3946=_0x574961?.[_0x36b4b3(0x2b4)]??_0x574961?.[_0x36b4b3(0x339)];_0x5d3946?.['hash']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x1fe)+_0x5d3946[_0x36b4b3(0x31c)]),_0x5d3946?.['explorerUrl']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x22c)+_0x5d3946[_0x36b4b3(0x20f)]),this['update']({'error':_0x30aa1b['join']('\x0a')});}else this['update']({'error':'Order\x20status:\x20'+_0x49311f+_0x36b4b3(0x327)});}}}}async[_0x35df2a(0x347)](){const _0x25469d=_0x35df2a,_0x3a1f70=this[_0x25469d(0x1c1)]();if(this[_0x25469d(0x24c)]['view']===_0x25469d(0x1dd)&&_0x3a1f70?.[_0x25469d(0x2f1)]){const _0x41b0d3=await this[_0x25469d(0x28c)](_0x25469d(0x268),()=>this[_0x25469d(0x1f4)]['loadDraft'](_0x3a1f70['draftId']));_0x41b0d3&&(this[_0x25469d(0x2a2)]=_0x41b0d3,this[_0x25469d(0x33e)]());return;}this[_0x25469d(0x24c)][_0x25469d(0x34f)]!==_0x25469d(0x1dd)||!_0x3a1f70?.[_0x25469d(0x222)]||_0x3a1f70[_0x25469d(0x2f6)]||!_0x3a1f70[_0x25469d(0x312)]||(this['draft']=null,await this[_0x25469d(0x28c)](_0x25469d(0x241),async _0x43dea0=>{const _0xa5863b=_0x25469d;let _0x5f425f,_0x241115,_0x13e46e;if(_0x3a1f70['canCancel']){const _0x5148d5=await this['services'][_0xa5863b(0x23a)](_0x3a1f70,_0x43dea0);_0x13e46e=_0x5148d5[_0xa5863b(0x2a7)]??_0xa5863b(0x23b),this[_0xa5863b(0x294)]({'busy':_0xa5863b(0x201)}),_0x5f425f=(await this[_0xa5863b(0x363)]({'action':_0x13e46e,'signal':_0x43dea0,'prefer':{'paymentChain':_0x5148d5[_0xa5863b(0x32d)]??_0xa5863b(0x378),'payWith':_0x5148d5[_0xa5863b(0x2d3)]??'IMD'}}))[_0xa5863b(0x308)],_0x241115=this[_0xa5863b(0x279)]({'title':_0xa5863b(0x271)});}let _0x20048c=!0x1;const _0x15bc87=async()=>{const _0x4604a7=_0xa5863b;_0x20048c&&(_0x5f425f=(await this['autoPayment']({'action':_0x13e46e,'signal':_0x43dea0,'prefer':_0x5f425f}))[_0x4604a7(0x308)],_0x20048c=!0x1);try{return await this['services'][_0x4604a7(0x338)](_0x3a1f70,_0x3a9b86=>this[_0x4604a7(0x245)](_0x3a9b86),_0x43dea0,_0x3950dd=>this[_0x4604a7(0x35a)](_0x3950dd),_0x23a67f=>this['showPaymentProgress'](_0x23a67f),_0x577791=>this[_0x4604a7(0x1f5)](_0x577791),{'payment':_0x5f425f,'review':_0x241115});}catch(_0x394bbc){throw _0x3a1f70[_0x4604a7(0x200)]&&_0x394bbc['code']===_0x4604a7(0x256)&&_0x394bbc[_0x4604a7(0x269)]?.[_0x4604a7(0x1be)]&&(_0x20048c=!0x0),_0x394bbc;}};for(;;)try{this[_0xa5863b(0x2a9)](await this[_0xa5863b(0x28a)](_0x15bc87));return;}catch(_0x594e2d){if(_0x594e2d[_0xa5863b(0x2af)]!==_0xa5863b(0x248))throw _0x594e2d;_0x5f425f=await this[_0xa5863b(0x232)]({'action':_0x13e46e,'signal':_0x43dea0,'current':_0x5f425f}),this[_0xa5863b(0x294)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}[_0x35df2a(0x2fe)](){const _0x529cb9=_0x35df2a,_0x13043f=this[_0x529cb9(0x1c1)]();if(this['state'][_0x529cb9(0x34f)]!==_0x529cb9(0x1dd)||!_0x13043f)return;const _0x3c97df=[{'label':_0x529cb9(0x26f),'run':()=>this[_0x529cb9(0x294)]({'focus':_0x529cb9(0x23a),'tab':_0x529cb9(0x26e),'scroll':0x0})}];_0x13043f[_0x529cb9(0x2f1)]?_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x29e),'run':()=>this[_0x529cb9(0x347)]()},{'label':_0x529cb9(0x26a),'run':()=>this[_0x529cb9(0x1e1)]()}):_0x13043f['jobId']?(_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x334),'run':()=>this[_0x529cb9(0x1bf)]()},{'label':_0x529cb9(0x336),'run':()=>this['download']()}),_0x13043f[_0x529cb9(0x24c)]===_0x529cb9(0x2c8)&&_0x3c97df['push']({'label':_0x529cb9(0x209),'run':()=>this['continueTask']()})):_0x13043f[_0x529cb9(0x222)]&&(_0x13043f[_0x529cb9(0x312)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x13043f[_0x529cb9(0x200)]?'Review\x20&\x20pay':_0x529cb9(0x24b),'run':()=>this[_0x529cb9(0x347)]()}),_0x13043f[_0x529cb9(0x200)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x2e8),'run':()=>this[_0x529cb9(0x306)]()}),_0x13043f[_0x529cb9(0x24e)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x297),'run':()=>this[_0x529cb9(0x366)]()})),this['showMenu'](_0x529cb9(0x2ae),_0x3c97df);}async[_0x35df2a(0x1e1)](){const _0xeead58=_0x35df2a,_0xa45497=this[_0xeead58(0x1c1)]();if(!_0xa45497?.[_0xeead58(0x2f1)]||!await this[_0xeead58(0x245)]({'title':_0xeead58(0x21b),'lines':[_0xa45497['title']],'acceptLabel':_0xeead58(0x26a),'cancelLabel':_0xeead58(0x231)}))return;await this[_0xeead58(0x28c)]('Deleting\x20draft...',()=>this[_0xeead58(0x1f4)][_0xeead58(0x1d8)](_0xa45497[_0xeead58(0x2f1)]))&&(this[_0xeead58(0x2a2)]?.['id']===_0xa45497['draftId']&&(this[_0xeead58(0x2a2)]=null),await this[_0xeead58(0x203)]());}async[_0x35df2a(0x306)](){const _0x2cdb2f=_0x35df2a,_0x59fec1=this[_0x2cdb2f(0x1c1)]();if(this['state'][_0x2cdb2f(0x34f)]!==_0x2cdb2f(0x1dd)||!_0x59fec1?.['canCancel'])return;let _0x2fa460=!0x1;await this[_0x2cdb2f(0x28c)](_0x2cdb2f(0x27c),async()=>{const _0x4f0a10=_0x2cdb2f;await this[_0x4f0a10(0x245)]({'title':_0x4f0a10(0x34b),'lines':[_0x59fec1[_0x4f0a10(0x27a)],'',_0x4f0a10(0x236),_0x4f0a10(0x331),_0x4f0a10(0x1fd)],'acceptLabel':_0x4f0a10(0x2e8),'cancelLabel':_0x4f0a10(0x24f)})&&(await this['services'][_0x4f0a10(0x24d)](_0x59fec1),_0x2fa460=!0x0);}),_0x2fa460&&!this[_0x2cdb2f(0x261)]&&(await this[_0x2cdb2f(0x203)](),this[_0x2cdb2f(0x294)]({'notice':_0x2cdb2f(0x251)}));}async[_0x35df2a(0x366)](){const _0x70f81b=_0x35df2a,_0x55c2e4=this[_0x70f81b(0x1c1)]();if(this[_0x70f81b(0x24c)][_0x70f81b(0x34f)]!==_0x70f81b(0x1dd)||!_0x55c2e4?.['canDelete'])return;let _0x530023=!0x1;await this[_0x70f81b(0x28c)]('Deleting\x20local\x20record...',async()=>{const _0x45b35a=_0x70f81b;await this['services'][_0x45b35a(0x1f7)](_0x55c2e4),_0x530023=!0x0;}),_0x530023&&!this[_0x70f81b(0x261)]&&(await this['refresh'](),this[_0x70f81b(0x294)]({'notice':'Local\x20record\x20deleted.'}));}[_0x35df2a(0x377)](){const _0x467eb6=_0x35df2a,_0x336344=this[_0x467eb6(0x1c1)]();_0x336344?.[_0x467eb6(0x2f6)]&&this[_0x467eb6(0x28b)]('Download\x20task\x20files',[{'name':_0x467eb6(0x1e7),'label':'Save\x20under\x20this\x20directory','value':'./output/'+_0x336344[_0x467eb6(0x2f6)]}],async({out:_0x3dabe1})=>{const _0x40bfbd=_0x467eb6;if(!_0x3dabe1[_0x40bfbd(0x2be)]())throw new Error(_0x40bfbd(0x30f));this[_0x40bfbd(0x294)]({'form':null}),await this['run'](_0x40bfbd(0x252),async _0x46c797=>{const _0x3f7e34=_0x40bfbd,_0x9e0ee9=await this[_0x3f7e34(0x1f4)][_0x3f7e34(0x377)]({'id':_0x336344['jobId'],'out':_0x3dabe1,'signal':_0x46c797,'onProgress':_0x510cf7=>this['update']({'busy':'Saved\x20'+_0x510cf7[_0x3f7e34(0x30a)]})});this[_0x3f7e34(0x294)]({'notice':_0x3f7e34(0x2bb)+_0x9e0ee9[_0x3f7e34(0x1bf)][_0x3f7e34(0x1fb)]+'\x20verified\x20files\x20to\x20'+_0x3dabe1});});},{'submit':_0x467eb6(0x2a8)});}[_0x35df2a(0x1d0)](){const _0x856874=_0x35df2a;this[_0x856874(0x28b)](_0x856874(0x1d9),[{'name':_0x856874(0x1fa),'label':_0x856874(0x20e)},{'name':_0x856874(0x2c9),'label':'SSH\x20port','value':'22'},{'name':_0x856874(0x287),'label':_0x856874(0x36a)}],async _0x2f0503=>{const _0x13bc56=_0x856874,_0x2bab24=_0x45f686(_0x2f0503);this[_0x13bc56(0x31b)][_0x13bc56(0x212)](_0x1b8074=>_0x1b8074['id']===_0x2bab24['id'])||this[_0x13bc56(0x31b)]['push'](_0x2bab24),this[_0x13bc56(0x294)]({'form':null}),await this[_0x13bc56(0x203)](),this[_0x13bc56(0x294)]({'selected':this[_0x13bc56(0x24c)][_0x13bc56(0x373)][_0x13bc56(0x228)](_0x2f5ea0=>_0x2f5ea0['id']===_0x2bab24['id'])}),await this[_0x13bc56(0x31a)]();},{'submit':_0x856874(0x224)});}[_0x35df2a(0x32c)](_0x561550,_0x3d5edf,{onCancel:_0x26af84,selected:_0x48b05b=0x0,lines:_0x2daf3a,hint:_0x2eb2bb,numbered:_0x568dac=!0x1}={}){const _0x535f21=_0x35df2a;this['cancelAutoRefresh'](),this[_0x535f21(0x238)]=_0x26af84??null,this[_0x535f21(0x294)]({'menu':{'title':_0x561550,'items':_0x3d5edf,'selected':_0x48b05b,'lines':_0x2daf3a,'hint':_0x2eb2bb,'numbered':_0x568dac},'form':null});}[_0x35df2a(0x35a)](_0x558728){return new Promise((_0x1b7855,_0x45738e)=>{const _0xbdf4bd=_0x35aa;this[_0xbdf4bd(0x32c)]('Choose\x20payment\x20\xB7\x20support\x20is\x20optional',_0x558728['map']((_0x598e46,_0x132505)=>({'label':_0x598e46[_0xbdf4bd(0x34c)],'run':()=>_0x1b7855(_0x132505)})),{'onCancel':()=>_0x45738e(p()),'selected':_0x47130e});});}['dismissMenu'](){const _0x4c845c=_0x35df2a,_0x1fb46d=this['menuCancel'];this[_0x4c845c(0x238)]=null,this[_0x4c845c(0x294)]({'menu':null}),_0x1fb46d?.();}[_0x35df2a(0x1e6)](){const _0x2d72de=_0x35df2a,_0x5af5c3=this[_0x2d72de(0x24c)][_0x2d72de(0x2f4)][_0x2d72de(0x373)][this[_0x2d72de(0x24c)]['menu']['selected']];this[_0x2d72de(0x238)]=null,this['update']({'menu':null}),_0x5af5c3[_0x2d72de(0x28c)]();}[_0x35df2a(0x1e5)](){const _0x37b2b9=_0x35df2a,_0x78caaa=this[_0x37b2b9(0x1c1)]();if(!_0x78caaa||_0x78caaa[_0x37b2b9(0x26c)]===_0x37b2b9(0x292))return;const _0x1a2b49=(_0x1e67cd,_0xb7421a=!0x1)=>()=>this[_0x37b2b9(0x364)](_0x1e67cd,_0xb7421a),_0x2cd7a2=(_0x38e6a0,_0x3dfdf4,_0x5eafab,_0x1f0753,_0x13a3db=!0x1)=>()=>this['showForm'](_0x38e6a0,[{'name':_0x5eafab,'label':_0x1f0753}],_0x28b999=>{const _0x4802e2=_0x37b2b9;if(!_0x28b999[_0x5eafab][_0x4802e2(0x2be)]())throw new Error(_0x1f0753+_0x4802e2(0x1c5));return this[_0x4802e2(0x294)]({'form':null}),this[_0x4802e2(0x364)](_0x3dfdf4['concat'](_0x28b999[_0x5eafab]['trim']()),_0x13a3db);});this[_0x37b2b9(0x32c)](_0x37b2b9(0x2b2)+_0x78caaa[_0x37b2b9(0x27a)],[{'label':_0x37b2b9(0x2c4),'run':_0x1a2b49([_0x37b2b9(0x30d)])},{'label':_0x37b2b9(0x369),'run':_0x1a2b49([_0x37b2b9(0x20a)])},{'label':_0x37b2b9(0x1c0),'run':_0x1a2b49([_0x37b2b9(0x360)])},{'label':_0x37b2b9(0x35f),'run':_0x1a2b49([_0x37b2b9(0x2cc)])},{'label':'Deploy\x20official\x20worker','run':_0x1a2b49([_0x37b2b9(0x2f8)],!0x0)},{'label':_0x37b2b9(0x1eb),'run':_0x1a2b49([_0x37b2b9(0x2df)],!0x0)},{'label':'Register\x20on\x20chain','run':_0x1a2b49([_0x37b2b9(0x2ec)],!0x0)},{'label':_0x37b2b9(0x227),'run':()=>this[_0x37b2b9(0x323)]()},...[_0x37b2b9(0x1e0),_0x37b2b9(0x2e9),_0x37b2b9(0x215),_0x37b2b9(0x294)][_0x37b2b9(0x291)](_0x2352dd=>({'label':_0x2352dd[0x0][_0x37b2b9(0x325)]()+_0x2352dd[_0x37b2b9(0x1ec)](0x1),'run':_0x1a2b49([_0x2352dd],!0x0)})),{'label':_0x37b2b9(0x230),'run':()=>this['showMenu'](_0x37b2b9(0x2cb),[{'label':'List\x20skills','run':_0x1a2b49(['skills',_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x2e6),'run':_0x2cd7a2(_0x37b2b9(0x2e6),['skills',_0x37b2b9(0x234)],'id',_0x37b2b9(0x315))},{'label':_0x37b2b9(0x342),'run':_0x2cd7a2(_0x37b2b9(0x342),['skills','remove'],'id','Skill\x20ID')}])},{'label':_0x37b2b9(0x278),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x2f5),[{'label':_0x37b2b9(0x28d),'run':_0x1a2b49([_0x37b2b9(0x1c3),_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x1e4),'run':_0x1a2b49(['tools','add'],!0x0)},{'label':'Set\x20tool\x20credential\x20(hidden\x20input)','run':_0x2cd7a2('Tool\x20credential',[_0x37b2b9(0x1c3),'key'],_0x37b2b9(0x246),'Credential\x20name',!0x0)},{'label':_0x37b2b9(0x2bf),'run':_0x2cd7a2(_0x37b2b9(0x2bf),[_0x37b2b9(0x1c3),_0x37b2b9(0x267)],'name',_0x37b2b9(0x36e),!0x0)},{'label':_0x37b2b9(0x304),'run':_0x2cd7a2(_0x37b2b9(0x304),[_0x37b2b9(0x1c3),_0x37b2b9(0x1c6)],'id',_0x37b2b9(0x20d))}])},{'label':_0x37b2b9(0x29a),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x29f),[{'label':'List\x20RPC\x20endpoints','run':_0x1a2b49([_0x37b2b9(0x206),'list'])},{'label':'Add\x20RPC\x20endpoint\x20(hidden\x20input)','run':_0x2cd7a2(_0x37b2b9(0x2dd),[_0x37b2b9(0x206),'add'],_0x37b2b9(0x300),'Chain\x20ID',!0x0)},{'label':_0x37b2b9(0x298),'run':_0x2cd7a2(_0x37b2b9(0x343),['rpc',_0x37b2b9(0x1c6)],_0x37b2b9(0x300),'Chain\x20ID')}])},{'label':_0x37b2b9(0x371),'run':_0x1a2b49([_0x37b2b9(0x1c9)],!0x0)}]);}['serviceInstall'](){const _0x240a60=_0x35df2a;this[_0x240a60(0x28b)](_0x240a60(0x227),[{'name':_0x240a60(0x244),'label':'Runtime\x20(claude\x20or\x20codex)','value':_0x240a60(0x2a4)},{'name':'concurrency','label':'Concurrent\x20tasks\x20(1\u20134)','value':'1'},{'name':_0x240a60(0x2d5),'label':_0x240a60(0x2b7),'value':'no'}],async({runtime:_0x3c5b0d,concurrency:_0x44bd4b,boot:_0x5af142})=>{const _0x5963d4=_0x240a60;if(![_0x5963d4(0x2a4),_0x5963d4(0x2d9)][_0x5963d4(0x253)](_0x3c5b0d))throw new Error('Choose\x20claude\x20or\x20codex.');if(!/^[1-4]$/[_0x5963d4(0x2db)](_0x44bd4b))throw new Error('Concurrency\x20must\x20be\x201\u20134.');if(![_0x5963d4(0x313),'no'][_0x5963d4(0x253)](_0x5af142))throw new Error(_0x5963d4(0x2c7));const _0x40dba0=[_0x5963d4(0x2f3),_0x5963d4(0x265),_0x5963d4(0x328),_0x3c5b0d,'--concurrency',_0x44bd4b];_0x5af142===_0x5963d4(0x313)&&_0x40dba0[_0x5963d4(0x348)](_0x5963d4(0x30e)),this[_0x5963d4(0x294)]({'form':null}),await this[_0x5963d4(0x364)](_0x40dba0,!0x0);});}async[_0x35df2a(0x364)](_0x4863a0,_0x472e46=!0x1){const _0x280fd0=_0x35df2a,_0x21caa0=this[_0x280fd0(0x1c1)]();!_0x21caa0||_0x21caa0[_0x280fd0(0x26c)]===_0x280fd0(0x292)||await this[_0x280fd0(0x28c)](_0x280fd0(0x22b)+_0x4863a0[_0x280fd0(0x1cf)]('\x20')+_0x280fd0(0x2ab),async _0x783b9c=>{const _0x134a3a=_0x280fd0;if(_0x472e46){if(!await this['confirm']({'title':'Run\x20on\x20'+_0x21caa0['title']+'?','lines':[_0x134a3a(0x1f9)+_0x4863a0[_0x134a3a(0x1cf)]('\x20'),'The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.']}))return;await this[_0x134a3a(0x2f2)]([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0),this['update']({'notice':_0x134a3a(0x2c2)});}else{const _0x3b9975=await this['services']['command']([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0,_0x783b9c);this[_0x134a3a(0x294)]({'detail':{'output':_0x3b9975},'focus':'detail','scroll':0x0});}});}[_0x35df2a(0x2dc)](_0x4180f9){return new Promise((_0x56c2f1,_0x5e48cf)=>{const _0x1c8c59=_0x35aa;this[_0x1c8c59(0x2bd)]=_0x5e48cf,this[_0x1c8c59(0x28b)](_0x1c8c59(0x333),[{'name':_0x1c8c59(0x2bc),'label':_0x4180f9,'secret':!0x0}],({password:_0xdac28e})=>{const _0x13f699=_0x1c8c59;this[_0x13f699(0x294)]({'form':null}),this[_0x13f699(0x2bd)]=null,_0x56c2f1(_0xdac28e);},{'submit':_0x1c8c59(0x2e0),'onCancel':()=>{const _0x2de2bc=_0x1c8c59;this[_0x2de2bc(0x2bd)]=null,_0x5e48cf(new Error(_0x2de2bc(0x36f)));}});});}[_0x35df2a(0x259)](){const _0x14e681=_0x35df2a,_0xac6ea9=this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x2d2)]===_0x14e681(0x37f);this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x1d3)]&&this[_0x14e681(0x32c)]('Selected\x20wallet\x20actions',[...!this[_0x14e681(0x368)]()&&this[_0x14e681(0x1c1)]()?[{'label':'Use\x20this\x20wallet','run':()=>this[_0x14e681(0x2b5)]()}]:[],..._0xac6ea9?[{'label':'View\x20private\x20key','run':()=>this[_0x14e681(0x2d1)]()},{'label':_0x14e681(0x2b6),'run':()=>this['walletBackup']()},{'label':_0x14e681(0x375),'run':()=>this['walletDelete']()}]:[],...this[_0x14e681(0x24c)][_0x14e681(0x23a)]?.[_0x14e681(0x1d3)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x14e681(0x30c)]()}]:[]]);}async[_0x35df2a(0x307)](){const _0x57c2f7=_0x35df2a;if(this[_0x57c2f7(0x261)]||this[_0x57c2f7(0x24c)][_0x57c2f7(0x283)]||this['state'][_0x57c2f7(0x2fd)]||this['state']['menu']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x245)]||this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2ed)]()['length'])return;let _0x58d12a;try{_0x58d12a=await this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2b0)](void 0x0,void 0x0,{'balances':!0x1});}catch{return;}if(_0x58d12a[_0x57c2f7(0x1d3)]||this['closed']||this[_0x57c2f7(0x24c)]['busy']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x2fd)]||this['state'][_0x57c2f7(0x2f4)]||this['state'][_0x57c2f7(0x245)])return;const _0x308d5d=()=>this['update']({'notice':_0x57c2f7(0x316)});this[_0x57c2f7(0x32c)](_0x57c2f7(0x1f2),[{'label':_0x57c2f7(0x1cc),'run':()=>this[_0x57c2f7(0x31e)](!0x1,{'firstRun':!0x0})},{'label':_0x57c2f7(0x2c0),'run':_0x308d5d}],{'onCancel':_0x308d5d,'numbered':!0x0,'lines':[_0x57c2f7(0x1d1),_0x57c2f7(0x29b),_0x57c2f7(0x233),''],'hint':_0x57c2f7(0x1f3)});}[_0x35df2a(0x1f6)](){const _0x5aeaad=_0x35df2a;this[_0x5aeaad(0x32c)](_0x5aeaad(0x2cf),[{'label':_0x5aeaad(0x1df),'run':()=>this['walletSetup'](!0x1)},{'label':_0x5aeaad(0x2a5),'run':()=>this[_0x5aeaad(0x293)]()}]);}[_0x35df2a(0x293)](){const _0x1d4178=_0x35df2a;this[_0x1d4178(0x32c)]('Import\x20wallet',[{'label':_0x1d4178(0x2e1),'run':()=>this['walletSetup'](!0x0)},{'label':_0x1d4178(0x1e3),'run':()=>this[_0x1d4178(0x2f7)]()}]);}[_0x35df2a(0x368)](){const _0x51bfb6=_0x35df2a;return!this[_0x51bfb6(0x1c1)]()||this[_0x51bfb6(0x1c1)]()[_0x51bfb6(0x2fa)]===this['state']['address'];}async[_0x35df2a(0x276)](){const _0x4b4cd0=_0x35df2a,_0x3cd531=this['selected']()?.['address']??this[_0x4b4cd0(0x24c)]['detail']?.[_0x4b4cd0(0x2fa)];if(this[_0x4b4cd0(0x24c)][_0x4b4cd0(0x23a)]?.['source']!=='local'||!_0x3cd531||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x1d5),'lines':[_0x3cd531,_0x4b4cd0(0x257),'On-chain\x20funds\x20stay\x20at\x20this\x20address.'],'acceptLabel':'Continue','cancelLabel':_0x4b4cd0(0x351)})||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x35e),'lines':[_0x3cd531,_0x4b4cd0(0x33b),_0x4b4cd0(0x28f)],'acceptLabel':_0x4b4cd0(0x375),'cancelLabel':_0x4b4cd0(0x351)}))return;const _0x338154=await this[_0x4b4cd0(0x28c)](_0x4b4cd0(0x2d0),()=>this[_0x4b4cd0(0x1f4)][_0x4b4cd0(0x26d)](_0x3cd531));_0x338154&&(await this[_0x4b4cd0(0x25d)](_0x338154[_0x4b4cd0(0x37e)]),this['update']({'notice':'Wallet\x20deleted:\x20'+_0x3cd531}));}[_0x35df2a(0x2d1)](){const _0x2b2d60=_0x35df2a,_0x4875c8=this[_0x2b2d60(0x1c1)]()?.[_0x2b2d60(0x2fa)]??this[_0x2b2d60(0x24c)][_0x2b2d60(0x23a)]?.[_0x2b2d60(0x2fa)];this['state'][_0x2b2d60(0x23a)]?.['source']!==_0x2b2d60(0x37f)||!_0x4875c8||this[_0x2b2d60(0x28b)]('View\x20private\x20key\x20\xB7\x20confirm\x20password',[{'name':'password','label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x12f255})=>{const _0x5ad71f=_0x2b2d60;this['update']({'form':null});const _0x347a11=await this[_0x5ad71f(0x28c)]('Checking\x20wallet\x20password...',_0x467538=>this['services'][_0x5ad71f(0x27f)](_0x4875c8,_0x12f255,_0x467538));_0x347a11&&this['update']({'privateKeyView':_0x347a11});},{'submit':_0x2b2d60(0x309)});}async['refreshWalletSelection'](_0x33ad98,_0xe3a855){const _0x283a2c=_0x35df2a;this[_0x283a2c(0x294)]({'selected':-0x1}),this[_0x283a2c(0x2de)]=_0x33ad98,await this[_0x283a2c(0x203)]({'notice':_0xe3a855});}async[_0x35df2a(0x2b5)](){const _0x52ac3a=_0x35df2a,_0x378f57=this['selected']();if(!_0x378f57||this[_0x52ac3a(0x368)]())return;const _0xbd8883=await this[_0x52ac3a(0x28c)](_0x52ac3a(0x22d),()=>this[_0x52ac3a(0x1f4)][_0x52ac3a(0x2ef)](_0x378f57[_0x52ac3a(0x2fa)]));_0xbd8883&&(await this[_0x52ac3a(0x203)](),this[_0x52ac3a(0x294)]({'notice':_0x52ac3a(0x1ed)+_0xbd8883[_0x52ac3a(0x2fa)]}));}[_0x35df2a(0x31e)](_0x1c4e4c,{firstRun:_0x21b396=!0x1}={}){const _0x102755=_0x35df2a,_0x222dc6=this[_0x102755(0x1f4)]['wallets']()[_0x102755(0x1fb)]>0x0||this[_0x102755(0x24c)]['detail']?.['source']===_0x102755(0x37f),_0x47347c=async({key:_0xf0bba5,password:_0x4d8636,repeat:_0x27ed1b})=>{const _0x1c4475=_0x102755;if(!_0x222dc6){if(_0x4d8636!==_0x27ed1b)throw new Error('Passwords\x20do\x20not\x20match.');if(_0x4d8636['length']<0x8)throw new Error(_0x1c4475(0x357));}this['update']({'form':null});const _0x1fc6f0=await this['run']('Encrypting\x20wallet\x20locally...',_0x20eead=>this[_0x1c4475(0x1f4)][_0x1c4475(0x296)](_0x4d8636,_0xf0bba5,_0x20eead));_0x1fc6f0&&(_0x21b396&&this[_0x1c4475(0x24c)][_0x1c4475(0x34f)]!=='wallet'&&(clearTimeout(this[_0x1c4475(0x214)]),this[_0x1c4475(0x2fb)]?.[_0x1c4475(0x275)](),++this[_0x1c4475(0x242)],this[_0x1c4475(0x294)]({'view':'wallet','items':[],'detail':null,'result':null,'query':'','filter':_0x1c4475(0x249),'tab':_0x1c4475(0x26e),'focus':_0x1c4475(0x2e4),'menu':null,'cursor':null,'total':null,'since':null})),await this[_0x1c4475(0x25d)](_0x1fc6f0['address'],_0x21b396?_0x1c4475(0x1d6)+_0x1fc6f0[_0x1c4475(0x2fa)]+_0x1c4475(0x2ad):_0x1c4475(0x23d)));};if(_0x222dc6&&!_0x1c4e4c)return _0x47347c({});this[_0x102755(0x28b)](_0x1c4e4c?_0x102755(0x354):_0x102755(0x31d),[..._0x1c4e4c?[{'name':_0x102755(0x280),'label':_0x102755(0x226),'secret':!0x0}]:[],..._0x222dc6?[]:[{'name':_0x102755(0x2bc),'label':_0x102755(0x1d2),'secret':!0x0},{'name':_0x102755(0x258),'label':_0x102755(0x317),'secret':!0x0}]],_0x47347c,{'submit':_0x1c4e4c?_0x102755(0x2a5):'Create\x20wallet',..._0x21b396?{'onCancel':()=>this['update']({'notice':'No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).'})}:{}});}['walletRestore'](){const _0x3b972e=_0x35df2a;this[_0x3b972e(0x28b)](_0x3b972e(0x350),[{'name':_0x3b972e(0x2b9),'label':_0x3b972e(0x204)},{'name':_0x3b972e(0x2bc),'label':_0x3b972e(0x345),'secret':!0x0}],async({file:_0x296873,password:_0x497393})=>{const _0x165e92=_0x3b972e;this[_0x165e92(0x294)]({'form':null});const _0x3895ef=await this[_0x165e92(0x28c)](_0x165e92(0x330),_0x4c36c1=>this['services'][_0x165e92(0x344)](_0x296873,_0x497393,_0x4c36c1));_0x3895ef&&await this[_0x165e92(0x25d)](_0x3895ef[_0x165e92(0x2fa)]);},{'submit':_0x3b972e(0x2cd)});}[_0x35df2a(0x247)](){const _0x37586f=_0x35df2a,_0xf2fad3=this[_0x37586f(0x1c1)]()?.[_0x37586f(0x2fa)]??this['state'][_0x37586f(0x23a)]?.[_0x37586f(0x2fa)];_0xf2fad3&&this['showForm'](_0x37586f(0x2b6),[{'name':'out','label':'Save\x20encrypted\x20backup\x20to\x20(new\x20file)'}],async({out:_0x3327c2})=>{const _0x1914d9=_0x37586f;this['update']({'form':null});const _0x11b214=await this[_0x1914d9(0x28c)](_0x1914d9(0x202),()=>this[_0x1914d9(0x1f4)][_0x1914d9(0x374)](_0x3327c2,_0xf2fad3));_0x11b214&&this[_0x1914d9(0x294)]({'notice':_0x1914d9(0x37d)+_0x11b214[_0x1914d9(0x30a)]+'.\x20Keep\x20your\x20password\x20separately.'});},{'submit':_0x37586f(0x305)});}async[_0x35df2a(0x30c)](){const _0x50ec94=_0x35df2a,_0x273d43=this[_0x50ec94(0x1c1)]()?.[_0x50ec94(0x2fa)]??this['state']['detail']?.[_0x50ec94(0x2fa)];_0x273d43&&await this[_0x50ec94(0x28c)]('Preparing\x20receive\x20address...',async()=>{const _0x49021e=_0x50ec94;this['update']({'receive':await this['services'][_0x49021e(0x2ac)](_0x273d43)});});}[_0x35df2a(0x30b)](_0x146fd1){const _0x56f758=_0x35df2a,_0x56413f=_0x12a616(_0x146fd1)['filter'](_0x211f87=>!_0x211f87[_0x56f758(0x2c5)]);if(_0x56413f['length']<=0x1)return this[_0x56f758(0x32a)](_0x146fd1,_0x56413f[0x0]??_0x12a616(_0x146fd1)[0x0]);const _0x2fdf53={'dialog':this[_0x56f758(0x24c)]['confirm'],'scroll':this[_0x56f758(0x24c)][_0x56f758(0x23f)]};this[_0x56f758(0x294)]({'confirm':null}),this[_0x56f758(0x32c)](_0x56f758(0x35d),_0x56413f['map'](_0x12e6f2=>({'label':_0x285a35(_0x12e6f2),'run':()=>this[_0x56f758(0x32a)](_0x146fd1,_0x12e6f2,_0x2fdf53)})),{'onCancel':()=>this[_0x56f758(0x294)]({'confirm':_0x2fdf53[_0x56f758(0x1e9)],'scroll':_0x2fdf53[_0x56f758(0x23f)]})});}async['fundingReceive'](_0x3bc0b2,_0x443b72,_0x56008f){const _0x5a754a=_0x35df2a,_0x21f7ee=_0x56008f?.[_0x5a754a(0x1e9)]??this[_0x5a754a(0x24c)][_0x5a754a(0x245)],_0x534718=_0x56008f?.[_0x5a754a(0x23f)]??this['state'][_0x5a754a(0x23f)];try{const _0x2284e0=await this['services'][_0x5a754a(0x2ac)](_0x3bc0b2['address'],_0x443b72[_0x5a754a(0x280)]);this['fundingDialog']={'dialog':_0x21f7ee,'scroll':_0x534718},this['update']({'confirm':null,'receive':{..._0x2284e0,'targets':_0x17597a(_0x443b72)},'scroll':0x0,'error':null,'notice':null});}catch(_0x18184d){this[_0x5a754a(0x294)]({'error':_0x18184d[_0x5a754a(0x1ff)],..._0x56008f?{'confirm':_0x21f7ee,'scroll':_0x534718}:{}});}}[_0x35df2a(0x33c)](){const _0x29fed4=_0x35df2a,_0x25bbdf=this[_0x29fed4(0x22a)];this[_0x29fed4(0x22a)]=null,this[_0x29fed4(0x294)]({'receive':null,..._0x25bbdf?{'confirm':_0x25bbdf[_0x29fed4(0x1e9)],'scroll':_0x25bbdf['scroll']}:{}});}[_0x35df2a(0x24a)](){const _0x5d4685=_0x35df2a,_0x1cf8b1=this[_0x5d4685(0x24c)][_0x5d4685(0x1c4)][_0x5d4685(0x2fa)];this['showForm'](_0x5d4685(0x289),[{'name':_0x5d4685(0x1e7),'label':'New\x20SVG\x20file\x20path','placeholder':_0x5d4685(0x332)}],async({out:_0x12d911})=>{const _0x313fba=_0x5d4685,_0x236133=await this[_0x313fba(0x1f4)][_0x313fba(0x22f)](_0x1cf8b1,_0x12d911);this[_0x313fba(0x294)]({'form':null,'notice':_0x313fba(0x28e)+_0x236133['path']});},{'submit':'Save\x20QR'});}[_0x35df2a(0x290)](){const _0x45cda1=_0x35df2a;clearTimeout(this['detailTimer']),this[_0x45cda1(0x238)]?.(),this[_0x45cda1(0x238)]=null,this[_0x45cda1(0x2bd)]?.(new Error('Wallet\x20unlock\x20cancelled.')),this['passwordReject']=null,_0x3e28dd(),this['update']({'form':null,'privateKeyView':null}),this[_0x45cda1(0x261)]=!0x0,this['operation']?.[_0x45cda1(0x275)](),this[_0x45cda1(0x263)]?.['abort'](),this[_0x45cda1(0x2fb)]?.[_0x45cda1(0x275)](),this[_0x45cda1(0x243)]?.(!0x1),this['fundingDialog']=null,this['askResolve']?.([]),++this[_0x45cda1(0x242)],this[_0x45cda1(0x2eb)][_0x45cda1(0x36c)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
|
|
1
|
+
const _0x497272=_0x1e25;import{friendlyAmount as _0x75287e}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x309ade,paymentView as _0x2693e0}from'./services.mjs';import{lockWallet as _0x340ef0}from'../lib/local-wallet.mjs';import{fundingInstructions as _0x3a642f,fundingNetworks as _0x17a6e5,networkChoiceLabel as _0x1a3014,networkTargets as _0x59032d}from'../lib/funding-error.mjs';function _0x1e25(_0x46e4e0,_0x2cc950){_0x46e4e0=_0x46e4e0-0x66;const _0x1e2559=_0x2cc9();let _0x21f696=_0x1e2559[_0x46e4e0];return _0x21f696;}import{DEFAULT_SUPPORT_CHOICE as _0x2a428f}from'../lib/support.mjs';import{randomUUID as _0x435561}from'node:crypto';function _0x2cc9(){const _0x2910a3=['Completed','...','Delete\x20local\x20record','concat','created','repeat','passwordReject','QR\x20saved:\x20','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','refused','refusalProblems','set','Identity','Deleting\x20local\x20record...','Remove\x20RPC\x20endpoint','askResolve','walletDelete','submitted','dialog','Concurrency\x20must\x20be\x201–4.','gas','Downloading\x20verified\x20files...','Saved\x20wallet','explore','publishDraft','blocked','test','pending','listeners','close','backupWallet','What\x20would\x20you\x20like\x20to\x20change?','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','Add\x20RPC\x20endpoint\x20(hidden\x20input)','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','deleteDraft','List\x20tools','pair','View\x20private\x20key','chooseSupport','Run\x20on\x20','The\x20payment\x20result\x20is\x20not\x20final\x20yet.','push','Delete\x20wallet','2.\x20Not\x20now\x20(browse\x20without\x20a\x20wallet)','Opening\x20draft...','\x20managed\x20targets\x20·\x20Network\x20unavailable\x20·\x20r\x20retry','transaction_pending','payment','form','refreshError','Use\x20at\x20least\x208\x20characters.','total','deleteWallet','Restore\x20encrypted\x20wallet','active','restart','Search\x20tasks','map','cancelRequest','signal','now','source','status','checkTaskWallet','\x20·\x20','change_payment','nextField','From\x20encrypted\x20backup','changeTab','join','assign','findIndex','Add\x20funds\x20to\x20continue','toLowerCase','Runtime\x20(claude\x20or\x20codex)','ETH','includes','detailRequest','formCancel','lastExploreRefresh','Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.','Check\x20balance\x20&\x20continue','executing','selectWallet','Import\x20private\x20key\x20·\x20encrypted\x20locally','flatMap','pickPayment','A\x20little\x20more\x20information','SSH\x20port','Linux\x20start\x20at\x20boot\x20(yes/no)','Remove\x20RPC','updatedAt','chain','Forget\x20credential','max','Local\x20record\x20deleted.','networkWorkers','codex','network-worker','showMenu','Understanding\x20your\x20request...','showPaymentProgress','tools','Back\x20to\x20My\x20tasks','extraAction','Checking\x20wallet\x20password...','Welcome\x20to\x20Colony','services','Explorer:\x20','Download\x20task\x20files','deliverables','title','Restore\x20wallet','runtime','command','canChangePayment','moveConfirmation','Preparing\x20local\x20LLM...','some','orderId','Backup\x20password','restoreWallet','trim','delete','editDraft','Back\x20up\x20encrypted\x20wallet','payWith','start','Set\x20local\x20wallet\x20password','doctor','logs','terminal','deleteTaskDraft','Credential\x20name','hasOwn','signed','value','--concurrency','Inspect\x20/\x20resume\x20saved\x20order','Open\x20Wallets','View\x20logs','Review\x20saved\x20payment','\x20verified\x20files\x20to\x20','Loading\x20network\x20workers...','Worker\x20tools','concurrency','skills','rpc','workerCommand','\x20is\x20required.','result','key','claude','Checking\x20balances\x20on\x20all\x20networks...','navigate','Saved\x20','run','createdAt','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Save\x20QR','workerMenu','create','You\x20need\x20a\x20wallet\x20to\x20pay\x20for\x20tasks.\x20Browsing\x20works\x20without\x20one.','showTaskLink','Add\x20a\x20worker\x20target','Choose\x20payment\x20·\x20support\x20is\x20optional','colony\x20worker\x20','detailTimer','Back','Use\x20this\x20wallet','requestPassword','dismissForm','Remove\x20skill','pendingTransaction','Continue','walletManagement','cycleFilter','IMD','Task\x20published:\x20','Current','scroll','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','Confirm\x20wallet\x20password','Create\x20a\x20new\x20local\x20wallet','menu','Files','submitConfirmation','Passwords\x20do\x20not\x20match.','mine','Tool\x20ID','Keyword\x20or\x20task\x20ID','extraTargets','payment_reconciling','\x20·\x20current','running','All','throwIfAborted','respond','slice','View\x20task\x20on\x20IMD','Worker\x20RPC\x20endpoints','filter','View\x20result\x20files','confirm','forget','Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a','job.open','taskMenu','resume','Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.','cancelAutoRefresh','refresh','showOutcome','Order\x20status:\x20','serviceInstall','walletReceive','toUpperCase','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','Auto-refresh\x20failed:\x20','queued','receive','transaction','requestKey','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','Set\x20tool\x20credential\x20(hidden\x20input)','admitted','walletPrivateKey','Update\x20network\x20fee','No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).','name','Delete\x20wallet\x20·\x201\x20of\x202','Continue\x20draft','action','Checking\x20balances\x20and\x20refreshing\x20prices...','Tool\x20credential','searchText','Search','Cancel\x20this\x20request?','setupWallet','Save\x20backup','update','summary','Skill\x20ID','taskLink','move','addFunds','stage','tab','Worker\x20ID,\x20runtime\x20or\x20skill','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','abort','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','subscribe','service','walletIsCurrent','questions','worker','Deploy\x20official\x20worker','Add\x20skill','coin','plan','Restoring\x20wallet...','Cancelling\x20request...','code','ask','formSubmit','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','Download','values','Active','Change\x20payment','getSnapshot','Private\x20key\x20(hidden)','state','wallet','completed','add','fundingReceive','confirmResolve','loadDetail','string','showError','Confirm\x20password','canResume','Run\x20diagnostics','draftId','receiveWallet','Selected\x20wallet\x20actions','RPC\x20endpoints','Delete\x20draft','Cancelled','identity','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','remove','Save\x20recharge\x20QR\x20code','input','targets','password','lines','Register\x20on\x20chain','Remove\x20tool','Cancel\x20request','canDelete','Wallet\x20ready:\x20','saveReceiveQr','Backup\x20file\x20path','Remove\x20this\x20wallet\x20from\x20Colony?','Pair\x20with\x20wallet','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Reason:\x20','label','Status','autoPayment','detail','Not\x20paid.\x20','cancelled','change','List\x20skills','SSH\x20identity\x20file\x20(optional)','useSelectedWallet','revealPrivateKey','fields','Add\x20target','New\x20SVG\x20file\x20path','colony-receive.svg','installed','closeReceive','Wallet\x20management\x20·\x20all\x20wallets','cursor','Worker\x20·\x20','Download\x20files','closed','withFundingRetry','\x20+\x20gas\x20≈\x20','refreshWalletSelection','Overview','Enter\x20yes\x20or\x20no.','publish','Choose\x20an\x20output\x20directory.','funded','refreshRequest','view','--boot','menuCancel','indexOf','chainName','createWallet','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','setField','yes','since','boot','saveDraft','operation','min','Loading\x20','walletBackup','query','message','1\x20/\x202\x20or\x20Up/down\x20·\x20Enter\x20choose\x20·\x20Esc\x20not\x20now','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','field','Backup\x20saved:\x20','cancel','kind','reviewPayment','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','resumeOrder','currentAddress','files','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','Save\x20encrypted\x20backup\x20to\x20(new\x20file)','blockers','busy','configured','job.continue','tasks','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','Delete\x20wallet\x20·\x202\x20of\x202','restoreSelectedId','paymentChain','list','address','On-chain\x20funds\x20stay\x20at\x20this\x20address.','get','more','Task\x20actions','funding_required','No\x20wallet\x20found\x20on\x20this\x20computer.','selection','Save\x20under\x20this\x20directory','selected','Chain\x20ID','--runtime','error','The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.','Preparing\x20the\x20payment\x20review...','Concurrent\x20tasks\x20(1–4)','Import\x20wallet','walletRestore','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','funding','What\x20would\x20you\x20like\x20to\x20get\x20done?','Delete\x20draft?','Review\x20task\x20&\x20payment','1.\x20Create\x20a\x20new\x20wallet\x20(empty,\x20add\x20funds\x20later)','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.','draft','.\x20Press\x20b\x20to\x20back\x20up,\x20then\x20d\x20to\x20add\x20funds.','walletSetup','Receive\x20funds\x20/\x20QR\x20code','has','Local\x20wallet\x20password','detailVersion','unlink','workers','showForm','managed-worker','payment_failed','fundingDialog','local','Activity','Keep\x20wallet','refreshExplore','out','Worker\x20skills','Choose\x20claude\x20or\x20codex.','download','hash','Skills','Transaction:\x20','reason','challenged','dismissMenu','path','jobId','Deleting\x20draft...','file','This\x20request\x20is\x20not\x20supported.','length','Request\x20changes','explorerUrl','View\x20private\x20key\x20·\x20confirm\x20password','Encrypting\x20wallet\x20locally...','walletImport','Install\x20background\x20service','Tools\x20&\x20credentials','items','objective','Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now','parent','walletMenu','offerFirstWallet','canCancel','confirmReplacement'];_0x2cc9=function(){return _0x2910a3;};return _0x2cc9();}import{imdTaskUrl as _0xcb7c17}from'../lib/task-link.mjs';const U=['tasks',_0x497272(0x7d),_0x497272(0x207),_0x497272(0x17a)],m=[_0x497272(0x12a),_0x497272(0x175),_0x497272(0x66),'Attention',_0x497272(0x18a)],u=[_0x497272(0x1b7),_0x497272(0x20d),_0x497272(0x120)],v=new Set([_0x497272(0x1ff),_0x497272(0x6a),'quoted',_0x497272(0x218),_0x497272(0x1f9),_0x497272(0xee),_0x497272(0x77),_0x497272(0x142),_0x497272(0x129),_0x497272(0xb9),_0x497272(0x81),'admitting']),P=new Set(['expired',_0x497272(0x20a),_0x497272(0x95),_0x497272(0x127)]),x=new Set([_0x497272(0x95),_0x497272(0x127)]),T=0x7530;function f(_0x30061c){const _0x57c5c4=_0x497272;return _0x30061c[_0x57c5c4(0x227)]['filter'](_0xe86f66=>![_0x57c5c4(0x1e0),_0x57c5c4(0x207)][_0x57c5c4(0xb3)](_0x30061c['view'])||[_0xe86f66['title'],_0xe86f66['id'],_0xe86f66[_0x57c5c4(0x153)]??''][_0x57c5c4(0xdd)](_0x483b1d=>_0x483b1d[_0x57c5c4(0xb0)]()['includes'](_0x30061c[_0x57c5c4(0x1cd)]['toLowerCase']()))?_0x30061c['filter']===_0x57c5c4(0x12a)||_0x30061c[_0x57c5c4(0x1bd)]!==_0x57c5c4(0x1e0)?!0x0:_0x30061c[_0x57c5c4(0x130)]===_0x57c5c4(0x66)?_0xe86f66[_0x57c5c4(0x179)]===_0x57c5c4(0x17b):_0x30061c[_0x57c5c4(0x130)]===_0x57c5c4(0x18a)?_0xe86f66[_0x57c5c4(0x179)]==='cancelled':_0x30061c[_0x57c5c4(0x130)]===_0x57c5c4(0x175)?v[_0x57c5c4(0x203)](_0xe86f66[_0x57c5c4(0x179)]):![_0x57c5c4(0x17b),'cancelled'][_0x57c5c4(0xb3)](_0xe86f66[_0x57c5c4(0x179)])&&!v[_0x57c5c4(0x203)](_0xe86f66[_0x57c5c4(0x179)]):!0x1);}function p(){const _0x394f70=_0x497272;return Object[_0x394f70(0xad)](new Error(_0x394f70(0x138)),{'code':_0x394f70(0x1a3)});}function W(){const _0x5816ee=_0x497272;return Object[_0x5816ee(0xad)](new Error(_0x5816ee(0x172)),{'code':_0x5816ee(0xa8)});}function A(_0x17182c,_0x4d8dc6){const _0x5e649f=_0x497272,{option:_0x20a0db}=_0x17182c,_0x55ac63=(_0x17182c['payWith']==='IMD'?'':'\u2248\x20')+_0x75287e(_0x20a0db[_0x5e649f(0x96)],_0x17182c[_0x5e649f(0xe5)],{'up':!0x0}),_0x411f84=_0x4d8dc6&&_0x4d8dc6[_0x5e649f(0x1e4)]===_0x17182c['paymentChain']&&_0x4d8dc6['payWith']===_0x17182c[_0x5e649f(0xe5)];return _0x17182c['payWith']+'\x20on\x20'+_0x17182c['chainName']+_0x5e649f(0xa7)+_0x55ac63+_0x5e649f(0x1b5)+_0x75287e(_0x20a0db[_0x5e649f(0x7a)],_0x5e649f(0xb2),{'up':!0x0})+(_0x411f84?_0x5e649f(0x128):'');}function E(_0x1ad0f4){const _0xf4cc1e=_0x497272;if(!_0x1ad0f4)return[];const _0x40a273=[];return _0x1ad0f4[_0xf4cc1e(0x214)]&&_0x40a273[_0xf4cc1e(0x90)](_0xf4cc1e(0x216)+_0x1ad0f4[_0xf4cc1e(0x214)]+(_0x1ad0f4[_0xf4cc1e(0x1d4)]?'\x20('+_0x1ad0f4['kind']+')':'')),_0x1ad0f4[_0xf4cc1e(0x217)]&&_0x40a273[_0xf4cc1e(0x90)](_0xf4cc1e(0x19d)+_0x1ad0f4[_0xf4cc1e(0x217)]),_0x1ad0f4[_0xf4cc1e(0x221)]&&_0x40a273['push'](_0xf4cc1e(0xd3)+_0x1ad0f4[_0xf4cc1e(0x221)]),_0x40a273;}function L(_0x36e46c){const _0x302c8f=_0x497272,_0x2b7355=[_0x36e46c[_0x302c8f(0x1ce)]||_0x302c8f(0x8f)];return _0x2b7355[_0x302c8f(0x90)](...E(_0x36e46c[_0x302c8f(0x144)])),_0x2b7355[_0x302c8f(0x90)]('Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.'),_0x2b7355[_0x302c8f(0xac)]('\x0a');}class N{constructor(_0x72323f){const _0xdf2a16=_0x497272;this['services']=_0x72323f,this[_0xdf2a16(0x82)]=new Set(),this['state']={'view':_0xdf2a16(0x1e0),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0xdf2a16(0x1b7),'filter':_0xdf2a16(0x12a),'query':'','note':'','focus':_0xdf2a16(0x1e5),'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,'taskLink':null},this[_0xdf2a16(0x205)]=0x0,this[_0xdf2a16(0x126)]=[],this['closed']=!0x1,this[_0xdf2a16(0xb6)]=0x0;}[_0x497272(0x164)]=_0x4bff96=>(this[_0x497272(0x82)]['add'](_0x4bff96),()=>this['listeners']['delete'](_0x4bff96));[_0x497272(0x177)]=()=>this[_0x497272(0x179)];[_0x497272(0x158)](_0x5aaa83){const _0x3dcd43=_0x497272;if(!this[_0x3dcd43(0x1b3)]){this['state']={...this['state'],..._0x5aaa83};for(const _0x4340d6 of this[_0x3dcd43(0x82)])_0x4340d6();}}[_0x497272(0x1ef)](){const _0xf0c386=_0x497272;return f(this[_0xf0c386(0x179)])[this[_0xf0c386(0x179)][_0xf0c386(0x1ef)]];}[_0x497272(0x10a)](_0x1d9fbc=this[_0x497272(0x1ef)]()?.[_0x497272(0x21b)],_0x5cd95c=!0x1){const _0x457a3c=_0x497272,_0x234268=_0xcb7c17(_0x1d9fbc);_0x234268&&this[_0x457a3c(0x158)]({'taskLink':{'url':_0x234268,'published':_0x5cd95c},'menu':null});}[_0x497272(0x181)](){const _0x5b1d23=_0x497272;++this[_0x5b1d23(0x205)],this[_0x5b1d23(0x158)]({'detail':{'output':this[_0x5b1d23(0x179)]['error']??this['state'][_0x5b1d23(0x98)]},'detailLoading':!0x1,'focus':_0x5b1d23(0x1a1),'scroll':0x0,'tab':_0x5b1d23(0x1b7)});}['cancelAutoRefresh'](){const _0x55120c=_0x497272;this['refreshRequest']?.[_0x55120c(0x162)](),this[_0x55120c(0x1bc)]=null,this[_0x55120c(0x158)]({'refreshing':!0x1});}async[_0x497272(0x103)](_0x4f167e,_0x49a04b){const _0x45d3b5=_0x497272;if(!this[_0x45d3b5(0x179)]['busy']){this['cancelAutoRefresh'](),this[_0x45d3b5(0x1c9)]=new AbortController(),this[_0x45d3b5(0x158)]({'busy':_0x4f167e,'error':null,'refreshError':null,'notice':null});try{return await _0x49a04b(this[_0x45d3b5(0x1c9)][_0x45d3b5(0xa2)]);}catch(_0x53b4ae){_0x53b4ae[_0x45d3b5(0x16f)]===_0x45d3b5(0x1a3)?(this[_0x45d3b5(0x158)]({'notice':_0x53b4ae[_0x45d3b5(0x1ce)]}),this[_0x45d3b5(0xe3)]()):x[_0x45d3b5(0x203)](_0x53b4ae[_0x45d3b5(0x16f)])?this['update']({'error':L(_0x53b4ae)}):this['update']({'error':_0x53b4ae[_0x45d3b5(0x1ce)]});}finally{this[_0x45d3b5(0x158)]({'busy':null,'modelProgress':null});}}}async[_0x497272(0x101)](_0x31288b){const _0x529f54=_0x497272;this[_0x529f54(0x179)][_0x529f54(0x1dd)]||(clearTimeout(this[_0x529f54(0x10e)]),this['detailRequest']?.[_0x529f54(0x162)](),++this['detailVersion'],this[_0x529f54(0x158)]({'view':_0x31288b,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x529f54(0x12a),'tab':_0x529f54(0x1b7),'scroll':0x0,'focus':_0x529f54(0x1e5),'form':null,'menu':null,'taskLink':null,'cursor':null,'total':null,'since':null}),await this[_0x529f54(0x13a)]());}async[_0x497272(0x13a)]({notice:_0x141d13}={}){const _0x292cd6=_0x497272,_0x201af2=this['selected']()?.['id']??this[_0x292cd6(0x1e3)];this['restoreSelectedId']=void 0x0,await this[_0x292cd6(0x103)](_0x292cd6(0x1cb)+this[_0x292cd6(0x179)][_0x292cd6(0x1bd)]+'...',async _0x3af64c=>{const _0x1e0819=_0x292cd6;let _0x4b7be0;if(this[_0x1e0819(0x179)][_0x1e0819(0x1bd)]===_0x1e0819(0x1e0))_0x4b7be0=await this[_0x1e0819(0xd2)][_0x1e0819(0x123)](_0x3af64c);else{if(this['state'][_0x1e0819(0x1bd)]===_0x1e0819(0x7d))_0x4b7be0=await this[_0x1e0819(0xd2)][_0x1e0819(0x7d)](this[_0x1e0819(0x179)][_0x1e0819(0x1cd)],void 0x0,_0x3af64c);else{if(this[_0x1e0819(0x179)][_0x1e0819(0x1bd)]===_0x1e0819(0x207)){const _0x37c3fd=this[_0x1e0819(0xd2)][_0x1e0819(0x190)](),_0x569fd5=new Set(_0x37c3fd['map'](_0x7944a2=>_0x7944a2['id'])),_0x20f1f=_0x37c3fd[_0x1e0819(0x69)](this[_0x1e0819(0x126)][_0x1e0819(0x130)](_0x9f557b=>!_0x569fd5[_0x1e0819(0x203)](_0x9f557b['id'])))[_0x1e0819(0xa0)](_0x44d233=>({..._0x44d233,'kind':_0x1e0819(0x209)}));this[_0x1e0819(0x158)]({'items':_0x20f1f,'selected':0x0,'note':_0x1e0819(0xf6)});let _0x3d5426;try{_0x3d5426=await this[_0x1e0819(0xd2)][_0x1e0819(0xc7)](_0x3af64c);}catch(_0x3dbc0c){throw this[_0x1e0819(0x158)]({'note':_0x20f1f['length']+_0x1e0819(0x94)}),_0x3dbc0c;}_0x4b7be0={'items':_0x20f1f[_0x1e0819(0x69)](_0x3d5426),'note':_0x20f1f[_0x1e0819(0x21f)]+'\x20managed\x20targets\x20\xB7\x20'+_0x3d5426[_0x1e0819(0x21f)]+_0x1e0819(0x6e)};}else{const _0x50e052=await this[_0x1e0819(0xd2)][_0x1e0819(0x17a)](_0x3af64c,_0x201af2,{'balances':!0x1}),_0x3459ca=this['services']['wallets']();!_0x3459ca[_0x1e0819(0x21f)]&&_0x50e052[_0x1e0819(0x1de)]&&_0x3459ca[_0x1e0819(0x90)]({'address':_0x50e052[_0x1e0819(0x1e6)],'active':!0x0,'locked':_0x50e052['locked']}),_0x4b7be0={'items':_0x3459ca[_0x1e0819(0xa0)](_0xd3d989=>({..._0xd3d989,'id':_0xd3d989[_0x1e0819(0x1e6)],'title':_0xd3d989[_0x1e0819(0x1e6)][_0x1e0819(0x12d)](0x0,0xa)+_0x1e0819(0x67)+_0xd3d989[_0x1e0819(0x1e6)][_0x1e0819(0x12d)](-0x8),'subtitle':_0xd3d989[_0x1e0819(0x9d)]?_0x1e0819(0x11a):_0x1e0819(0x7c)})),'note':'One\x20local\x20password\x20\xB7\x20u\x20use\x20selected\x20wallet','address':_0x50e052[_0x1e0819(0x1d8)]??_0x50e052[_0x1e0819(0x1e6)]??null},this[_0x1e0819(0x158)]({'detail':_0x50e052,'scroll':0x0});}}}const _0x3b9a40=_0x201af2??(this['state']['view']===_0x1e0819(0x17a)?_0x4b7be0['address']:void 0x0),_0x20b2fc=Math[_0x1e0819(0xc5)](0x0,f({...this[_0x1e0819(0x179)],'items':_0x4b7be0[_0x1e0819(0x227)]})[_0x1e0819(0xae)](_0x470f84=>_0x470f84['id']===_0x3b9a40));this[_0x1e0819(0x158)]({'items':_0x4b7be0[_0x1e0819(0x227)],'note':_0x4b7be0['note'],'cursor':_0x4b7be0['cursor'],'total':_0x4b7be0[_0x1e0819(0x9a)]??(_0x4b7be0[_0x1e0819(0x1b0)]?null:_0x4b7be0[_0x1e0819(0x227)][_0x1e0819(0x21f)]),'since':_0x4b7be0[_0x1e0819(0x1c6)]??null,'selected':_0x20b2fc,'address':Object[_0x1e0819(0xed)](_0x4b7be0,_0x1e0819(0x1e6))?_0x4b7be0['address']:this[_0x1e0819(0x179)][_0x1e0819(0x1e6)]}),this[_0x1e0819(0x179)][_0x1e0819(0x1bd)]===_0x1e0819(0x7d)&&(this[_0x1e0819(0xb6)]=Date[_0x1e0819(0xa3)]());}),_0x141d13&&this[_0x292cd6(0x158)]({'notice':_0x141d13}),this['closed']||await this[_0x292cd6(0x17f)](this[_0x292cd6(0x179)][_0x292cd6(0x1bd)]===_0x292cd6(0x17a));}async['autoRefresh'](){const _0x57e393=_0x497272,_0x2864dd=this[_0x57e393(0x179)];this[_0x57e393(0x1b3)]||_0x2864dd[_0x57e393(0x1dd)]||_0x2864dd['refreshing']||_0x2864dd['detailLoading']||_0x2864dd['form']||_0x2864dd[_0x57e393(0x132)]||_0x2864dd[_0x57e393(0x11f)]||_0x2864dd['help']||_0x2864dd['privateKeyView']||_0x2864dd[_0x57e393(0x15b)]||(_0x2864dd[_0x57e393(0x1bd)]===_0x57e393(0x7d)&&_0x2864dd['since']!==null&&Date[_0x57e393(0xa3)]()-this[_0x57e393(0xb6)]>=T?await this[_0x57e393(0x20f)]():_0x2864dd[_0x57e393(0x1bd)]==='tasks'&&!_0x2864dd['error']&&['running',_0x57e393(0xb9),'queued',_0x57e393(0x81)][_0x57e393(0xb3)](this[_0x57e393(0x1ef)]()?.['state'])&&await this[_0x57e393(0x17f)](!0x0));}async[_0x497272(0x20f)](){const _0x3a5ed2=_0x497272,_0x4072f7=new AbortController();this['refreshRequest']=_0x4072f7,this[_0x3a5ed2(0xb6)]=Date[_0x3a5ed2(0xa3)](),this[_0x3a5ed2(0x158)]({'refreshing':!0x0});try{const _0x288b0d=await this[_0x3a5ed2(0xd2)]['exploreUpdates'](this[_0x3a5ed2(0x179)][_0x3a5ed2(0x1cd)],this['state']['since'],_0x4072f7['signal']);if(this[_0x3a5ed2(0x1bc)]!==_0x4072f7||this[_0x3a5ed2(0x1b3)])return;const _0xc5a640=this[_0x3a5ed2(0x1ef)]()?.['id'],_0xf1ef58=this[_0x3a5ed2(0x179)][_0x3a5ed2(0x227)]['at'](-0x1)?.['createdAt'],_0x21eb46=new Map(this[_0x3a5ed2(0x179)][_0x3a5ed2(0x227)]['map'](_0x41f6e1=>[_0x41f6e1['id'],_0x41f6e1]));for(const _0x2793ce of _0x288b0d[_0x3a5ed2(0x227)]){const _0x30fd67=_0x21eb46[_0x3a5ed2(0x1e8)](_0x2793ce['id']);_0x30fd67&&_0x2793ce[_0x3a5ed2(0xc2)]<_0x30fd67[_0x3a5ed2(0xc2)]||(_0x21eb46[_0x3a5ed2(0x203)](_0x2793ce['id'])||!_0xf1ef58||_0x2793ce[_0x3a5ed2(0x104)]>=_0xf1ef58)&&_0x21eb46[_0x3a5ed2(0x71)](_0x2793ce['id'],_0x2793ce);}const _0x593757=[..._0x21eb46[_0x3a5ed2(0x174)]()]['sort']((_0x446719,_0x51686e)=>_0x51686e[_0x3a5ed2(0x104)]['localeCompare'](_0x446719[_0x3a5ed2(0x104)])),_0x378368=Math[_0x3a5ed2(0xc5)](0x0,_0x593757[_0x3a5ed2(0xae)](_0x3df6d4=>_0x3df6d4['id']===_0xc5a640));this[_0x3a5ed2(0x158)]({'items':_0x593757,'selected':_0x378368,'since':_0x288b0d[_0x3a5ed2(0x1c6)],'total':_0x288b0d[_0x3a5ed2(0x9a)]??(this[_0x3a5ed2(0x179)]['cursor']?null:_0x593757['length']),'refreshError':null}),await this[_0x3a5ed2(0x17f)](!0x0);}catch(_0x3472e0){this[_0x3a5ed2(0x1bc)]===_0x4072f7&&!this[_0x3a5ed2(0x1b3)]&&this[_0x3a5ed2(0x158)]({'refreshError':_0x3a5ed2(0x141)+_0x3472e0[_0x3a5ed2(0x1ce)]});}finally{this[_0x3a5ed2(0x1bc)]===_0x4072f7&&(this[_0x3a5ed2(0x1bc)]=null,this[_0x3a5ed2(0x158)]({'refreshing':!0x1}));}}async[_0x497272(0x1e9)](){const _0x583e26=_0x497272;this[_0x583e26(0x179)][_0x583e26(0x1bd)]!=='explore'||!this[_0x583e26(0x179)][_0x583e26(0x1b0)]||await this[_0x583e26(0x103)]('Loading\x20older\x20tasks...',async _0x4daca4=>{const _0x1bc11f=_0x583e26,_0xdfa3fc=await this[_0x1bc11f(0xd2)][_0x1bc11f(0x7d)](this['state'][_0x1bc11f(0x1cd)],this[_0x1bc11f(0x179)][_0x1bc11f(0x1b0)],_0x4daca4),_0xccfc1e=new Set(this[_0x1bc11f(0x179)][_0x1bc11f(0x227)][_0x1bc11f(0xa0)](_0x51ae1f=>_0x51ae1f['id'])),_0x5d6909=this[_0x1bc11f(0x179)]['items']['concat'](_0xdfa3fc[_0x1bc11f(0x227)][_0x1bc11f(0x130)](_0x3eec12=>!_0xccfc1e[_0x1bc11f(0x203)](_0x3eec12['id'])));this[_0x1bc11f(0x158)]({'items':_0x5d6909,'cursor':_0xdfa3fc[_0x1bc11f(0x1b0)],'total':this['state']['total']??(_0xdfa3fc['cursor']?null:_0x5d6909[_0x1bc11f(0x21f)])});});}async[_0x497272(0x17f)](_0x5f1afd=!0x1){const _0x37fe56=_0x497272;clearTimeout(this[_0x37fe56(0x10e)]),this[_0x37fe56(0x10e)]=null;const _0x2f5227=this['selected']();if(this[_0x37fe56(0x179)][_0x37fe56(0x1bd)]===_0x37fe56(0x17a)&&!_0x2f5227)return;const _0x3319ec=++this[_0x37fe56(0x205)];if(this[_0x37fe56(0xb4)]?.[_0x37fe56(0x162)](),this[_0x37fe56(0xb4)]=new AbortController(),this[_0x37fe56(0x158)]({'detail':_0x5f1afd?this[_0x37fe56(0x179)][_0x37fe56(0x1a1)]:null,'result':_0x5f1afd?this[_0x37fe56(0x179)][_0x37fe56(0xfd)]:null,'detailLoading':!!_0x2f5227,'scroll':_0x5f1afd?this[_0x37fe56(0x179)][_0x37fe56(0x11b)]:0x0}),!!_0x2f5227)try{const _0x56d6b3=this['state'][_0x37fe56(0x1bd)]===_0x37fe56(0x17a)?await this[_0x37fe56(0xd2)][_0x37fe56(0x17a)](this[_0x37fe56(0xb4)]['signal'],_0x2f5227[_0x37fe56(0x1e6)]):this[_0x37fe56(0x179)][_0x37fe56(0x1bd)]===_0x37fe56(0x207)?_0x2f5227['kind']===_0x37fe56(0xc9)?_0x2f5227:_0x2f5227[_0x37fe56(0x1ad)]?await this[_0x37fe56(0xd2)][_0x37fe56(0xd9)]([_0x37fe56(0x168),_0x37fe56(0xa5)],_0x2f5227,this['detailRequest'][_0x37fe56(0xa2)]):{'notInstalled':!0x0}:await this[_0x37fe56(0xd2)][_0x37fe56(0x1a1)](_0x2f5227,this[_0x37fe56(0xb4)][_0x37fe56(0xa2)]);if(_0x3319ec===this[_0x37fe56(0x205)]){const _0x29c5d1=_0x56d6b3[_0x37fe56(0x179)]??(_0x2f5227[_0x37fe56(0x21b)]?void 0x0:_0x56d6b3['status']),_0x1b5eb4=this[_0x37fe56(0x179)][_0x37fe56(0x227)]['map'](_0xa3a1d7=>_0xa3a1d7['id']===_0x2f5227['id']&&_0x29c5d1?{..._0xa3a1d7,'state':_0x29c5d1,..._0x56d6b3[_0x37fe56(0xc2)]?{'updatedAt':_0x56d6b3[_0x37fe56(0xc2)]}:{},..._0x37fe56(0x22d)in _0x56d6b3?{'canCancel':_0x56d6b3[_0x37fe56(0x22d)],'canDelete':_0x56d6b3[_0x37fe56(0x196)],'canResume':_0x56d6b3['canResume']}:{}}:_0xa3a1d7),_0x26c66a=f({...this[_0x37fe56(0x179)],'items':_0x1b5eb4})[_0x37fe56(0xae)](_0xb60f44=>_0xb60f44['id']===_0x2f5227['id']);this[_0x37fe56(0x158)]({'detail':_0x26c66a<0x0?null:_0x56d6b3,'detailLoading':!0x1,'items':_0x1b5eb4,'selected':Math[_0x37fe56(0xc5)](0x0,_0x26c66a)}),_0x26c66a<0x0&&this[_0x37fe56(0x17f)]();}}catch(_0x40aa1b){_0x3319ec===this[_0x37fe56(0x205)]&&this[_0x37fe56(0x158)]({'detailLoading':!0x1,'error':_0x40aa1b[_0x37fe56(0x1ce)]});}}[_0x497272(0x15c)](_0x49eb5f){const _0xa74d82=_0x497272,_0x3e8e1a=f(this[_0xa74d82(0x179)])[_0xa74d82(0x21f)],_0x17db82=Math['max'](0x0,Math[_0xa74d82(0x1ca)](_0x3e8e1a-0x1,this[_0xa74d82(0x179)][_0xa74d82(0x1ef)]+_0x49eb5f));_0x17db82!==this['state'][_0xa74d82(0x1ef)]&&(clearTimeout(this['detailTimer']),++this['detailVersion'],this['detailRequest']?.[_0xa74d82(0x162)](),this[_0xa74d82(0x158)]({'selected':_0x17db82,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0xa74d82(0x179)][_0xa74d82(0x1bd)]==='workers'?this[_0xa74d82(0x17f)]():this[_0xa74d82(0x10e)]=setTimeout(()=>{const _0x26b4f7=_0xa74d82;this[_0x26b4f7(0x17f)]();},0x78)),_0x49eb5f>0x0&&_0x17db82===_0x3e8e1a-0x1&&this[_0xa74d82(0x1e9)]();}[_0x497272(0x117)](){const _0x325bfb=_0x497272;this[_0x325bfb(0x158)]({'filter':m[(m[_0x325bfb(0x1c0)](this[_0x325bfb(0x179)][_0x325bfb(0x130)])+0x1)%m[_0x325bfb(0x21f)]],'selected':0x0}),this['loadDetail']();}async[_0x497272(0xab)](_0x1a3ab0){const _0x4003c6=_0x497272,_0x161ff9=u[(u[_0x4003c6(0x1c0)](this[_0x4003c6(0x179)][_0x4003c6(0x15f)])+_0x1a3ab0+u['length'])%u[_0x4003c6(0x21f)]];this[_0x4003c6(0x158)]({'tab':_0x161ff9,'scroll':0x0}),_0x161ff9===_0x4003c6(0x120)&&await this[_0x4003c6(0x1d9)]();}async['files'](){const _0x4a64bd=_0x497272,_0x2f33a6=this[_0x4a64bd(0x1ef)]();_0x2f33a6?.[_0x4a64bd(0x21b)]&&(this['detailTimer']&&this['loadDetail'](!0x0),this['update']({'tab':_0x4a64bd(0x120),'focus':_0x4a64bd(0x1a1),'scroll':0x0}),await this[_0x4a64bd(0x103)]('Loading\x20files...',async _0x1d00b5=>{const _0x1d4cc5=_0x4a64bd;this['update']({'result':await this[_0x1d4cc5(0xd2)][_0x1d4cc5(0xfd)](_0x2f33a6[_0x1d4cc5(0x21b)],_0x1d00b5)});}));}[_0x497272(0x208)](_0x16d81c,_0x512768,_0x208804,{onCancel:_0x572518,submit:_0x5d9383=_0x497272(0x115)}={}){const _0x2c17dc=_0x497272;this[_0x2c17dc(0x139)](),this[_0x2c17dc(0x171)]=_0x208804,this[_0x2c17dc(0xb5)]=_0x572518,this[_0x2c17dc(0x158)]({'form':{'title':_0x16d81c,'fields':_0x512768,'values':Object['fromEntries'](_0x512768[_0x2c17dc(0xa0)](_0x2b4e10=>[_0x2b4e10[_0x2c17dc(0x14d)],_0x2b4e10[_0x2c17dc(0xef)]??''])),'field':0x0,'submit':_0x5d9383,'error':null},'menu':null});}[_0x497272(0x1c4)](_0x30675d){const _0x4b4265=_0x497272,_0xf9fa33=this[_0x4b4265(0x179)][_0x4b4265(0x97)],_0x1cf177=_0xf9fa33[_0x4b4265(0x1a9)][_0xf9fa33['field']][_0x4b4265(0x14d)];this[_0x4b4265(0x158)]({'form':{..._0xf9fa33,'values':{..._0xf9fa33['values'],[_0x1cf177]:_0x30675d},'error':null}});}[_0x497272(0xa9)](_0x31dbe3=!0x1){const _0x2920b2=_0x497272,_0x2f73b4=this[_0x2920b2(0x179)][_0x2920b2(0x97)];this[_0x2920b2(0x158)]({'form':{..._0x2f73b4,'field':(_0x2f73b4[_0x2920b2(0x1d1)]+(_0x31dbe3?-0x1:0x1)+_0x2f73b4[_0x2920b2(0x1a9)][_0x2920b2(0x21f)])%_0x2f73b4[_0x2920b2(0x1a9)][_0x2920b2(0x21f)]}});}async['submitForm'](){const _0x5f45e1=_0x497272,{values:_0xb358f9}=this[_0x5f45e1(0x179)]['form'];try{await this[_0x5f45e1(0x171)](_0xb358f9);}catch(_0x3df361){this[_0x5f45e1(0x158)]({'form':{...this[_0x5f45e1(0x179)][_0x5f45e1(0x97)],'error':_0x3df361[_0x5f45e1(0x1ce)]}});}}[_0x497272(0x112)](){const _0x6cd161=_0x497272,_0x5051f3=this['formCancel'];this[_0x6cd161(0x158)]({'form':null}),_0x5051f3&&_0x5051f3();}['search'](){const _0x1f72e0=_0x497272,_0x4027a1=this[_0x1f72e0(0x179)][_0x1f72e0(0x1bd)]===_0x1f72e0(0x207);this['showForm'](_0x4027a1?'Search\x20workers':_0x1f72e0(0x9f),[{'name':_0x1f72e0(0x1cd),'label':_0x4027a1?_0x1f72e0(0x160):_0x1f72e0(0x125),'value':this['state']['query']}],async({query:_0x4a3ed0})=>{const _0xf381b5=_0x1f72e0;this[_0xf381b5(0x158)]({'query':_0x4a3ed0,'selected':0x0,'form':null}),this[_0xf381b5(0x179)]['view']===_0xf381b5(0x7d)?await this[_0xf381b5(0x13a)]():await this[_0xf381b5(0x17f)]();},{'submit':_0x1f72e0(0x154)});}['create'](_0x5ace7b=null){const _0x7d3afa=_0x497272;this['draft']={'id':_0x435561(),'objective':'','parent':_0x5ace7b},this[_0x7d3afa(0xe3)]();}['continueTask'](){const _0x402161=_0x497272,_0x376f39=this['selected']();this['state'][_0x402161(0x1bd)]!==_0x402161(0x1e0)||!_0x376f39?.[_0x402161(0x21b)]||this[_0x402161(0x108)](_0x376f39['jobId']);}[_0x497272(0xe3)](){const _0x4d582b=_0x497272;this[_0x4d582b(0x1ff)]&&(this[_0x4d582b(0x208)](this[_0x4d582b(0x1ff)]['parent']?_0x4d582b(0x220):'Create\x20a\x20task',[{'name':_0x4d582b(0x228),'label':this['draft'][_0x4d582b(0x22a)]?_0x4d582b(0x85):_0x4d582b(0x1fa),'value':this[_0x4d582b(0x1ff)][_0x4d582b(0x228)],'placeholder':_0x4d582b(0x147)}],async({objective:_0x4f7ca0})=>{const _0x59ea9f=_0x4d582b;if(!_0x4f7ca0['trim']())throw new Error(_0x59ea9f(0x86));const _0x299768=_0x4f7ca0[_0x59ea9f(0xe1)]()!==this[_0x59ea9f(0x1ff)][_0x59ea9f(0x228)];this['draft']={...this[_0x59ea9f(0x1ff)],'objective':_0x4f7ca0[_0x59ea9f(0xe1)](),..._0x299768&&this[_0x59ea9f(0x1ff)]['requestKey']?{'id':_0x435561(),'createdAt':void 0x0}:{},..._0x299768?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x59ea9f(0x158)]({'form':null}),await this[_0x59ea9f(0x7e)]();},{'submit':'Review\x20task'}),this[_0x4d582b(0x158)]({'form':{...this['state'][_0x4d582b(0x97)],'hint':'Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.'}}));}[_0x497272(0x170)](_0x4744eb){return new Promise(_0x2cc79d=>{const _0x4d8c1d=_0x1e25;this[_0x4d8c1d(0x75)]=_0x2cc79d,this[_0x4d8c1d(0x208)](_0x4d8c1d(0xbe),_0x4744eb['map']((_0x593378,_0x4dbd77)=>({'name':String(_0x4dbd77),'label':_0x593378})),_0x4b0c49=>{const _0x1b02ce=_0x4d8c1d;this[_0x1b02ce(0x158)]({'form':null}),this[_0x1b02ce(0x75)]=null,_0x2cc79d(Object[_0x1b02ce(0x174)](_0x4b0c49));},{'onCancel':()=>{const _0x2d0f6b=_0x4d8c1d;this[_0x2d0f6b(0x75)]=null,_0x2cc79d([]);}});});}[_0x497272(0x132)](_0x412a55){return new Promise(_0x3d39a8=>{const _0x2e8671=_0x1e25;this[_0x2e8671(0x17e)]=_0x3d39a8;const _0x517316=_0x412a55[_0x2e8671(0x192)]??(_0x412a55['message']!==void 0x0?[String(_0x412a55[_0x2e8671(0x1ce)])]:[]);this['update']({'confirm':{..._0x412a55,'lines':_0x517316,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}[_0x497272(0xdb)](_0x14a58f){const _0x49e1b3=_0x497272,_0x349fb7=this['state'][_0x49e1b3(0x132)],_0xe3b173=_0x349fb7[_0x49e1b3(0xcf)]?0x3:0x2,_0x2eff02=(_0x349fb7['selection']+_0x14a58f+_0xe3b173)%_0xe3b173;this[_0x49e1b3(0x158)]({'confirm':{..._0x349fb7,'selection':_0x2eff02,'accepted':_0x2eff02===_0xe3b173-0x1}});}[_0x497272(0x121)](){const _0x52f1db=_0x497272,_0xa1c219=this[_0x52f1db(0x179)][_0x52f1db(0x132)];_0xa1c219['extraAction']&&_0xa1c219[_0x52f1db(0x1ed)]===0x1?_0xa1c219[_0x52f1db(0xcf)][_0x52f1db(0x103)]():this[_0x52f1db(0x12c)](_0xa1c219['accepted']);}async['confirmReplacement'](_0x2a7371){const _0x4652be=_0x497272;if(!await this[_0x4652be(0x132)]({'title':_0x4652be(0x14b),'message':_0x2a7371?.[_0x4652be(0x1ce)]??''}))throw p();}[_0x497272(0x12c)](_0x5b4e30){const _0x16879b=_0x497272,_0x5e6313=this[_0x16879b(0x17e)];this['confirmResolve']=null,this[_0x16879b(0x158)]({'confirm':null}),_0x5e6313(_0x5b4e30);}[_0x497272(0x1d5)](_0x11e467={}){return async _0x486c89=>{const _0x12e6ff=_0x1e25,_0x2c58d6=await this['confirm']({'title':_0x12e6ff(0x1fc),'payment':_0x2693e0(_0x486c89),'extraAction':{'label':_0x12e6ff(0x176),'run':()=>this[_0x12e6ff(0x12c)](_0x12e6ff(0x1a4))},..._0x11e467});if(_0x2c58d6===_0x12e6ff(0x1a4))throw W();if(!_0x2c58d6)throw p();};}async[_0x497272(0x1a0)]({action:_0x1fb43e,signal:_0x3fe40e,prefer:_0x512b90}){const _0x1ec35c=_0x497272,_0x3585d2=await this['withFundingRetry'](()=>this[_0x1ec35c(0xd2)][_0x1ec35c(0xa6)]({'action':_0x1fb43e,'signal':_0x3fe40e,'prefer':_0x512b90}));return{'choice':_0x3585d2,'payment':{'paymentChain':_0x3585d2[_0x1ec35c(0x1e4)],'payWith':_0x3585d2[_0x1ec35c(0xe5)]}};}async[_0x497272(0xbd)]({action:_0x3429b2,signal:_0x1afe16,current:_0x3a5a7c}){const _0xcaae17=_0x497272;this[_0xcaae17(0x158)]({'busy':_0xcaae17(0x100)});const {networks:_0x3d5d4d}=await this[_0xcaae17(0xd2)]['paymentOptions']({'action':_0x3429b2,'signal':_0x1afe16}),_0x4f60f3=_0x3d5d4d[_0xcaae17(0xbc)](_0x312908=>(_0x312908['options']??[])[_0xcaae17(0x130)](_0x45d1d9=>_0x45d1d9[_0xcaae17(0x1bb)])[_0xcaae17(0xa0)](_0x11990c=>({'paymentChain':_0x312908['key'],'payWith':_0x11990c[_0xcaae17(0x16b)],'chainName':_0x312908[_0xcaae17(0x1c1)],'option':_0x11990c})));return new Promise(_0x105aa0=>{const _0x9c0bd9=_0xcaae17,_0x110a25=_0x4f60f3[_0x9c0bd9(0xa0)](_0x1874a6=>({'label':A(_0x1874a6,_0x3a5a7c),'run':()=>_0x105aa0({'paymentChain':_0x1874a6['paymentChain'],'payWith':_0x1874a6[_0x9c0bd9(0xe5)]})}));_0x110a25['length']||_0x110a25[_0x9c0bd9(0x90)]({'label':_0x9c0bd9(0x18c),'run':()=>_0x105aa0(_0x3a5a7c)}),this[_0x9c0bd9(0xca)](_0x4f60f3[_0x9c0bd9(0x21f)]>0x1?_0x9c0bd9(0x11c):_0x9c0bd9(0x229),_0x110a25,{'onCancel':()=>_0x105aa0(_0x3a5a7c)});});}async[_0x497272(0x7e)](){const _0x3c781b=_0x497272,_0x265c65=await this[_0x3c781b(0x103)](_0x3c781b(0x100),async _0xe665b1=>{const _0x33e6b8=_0x3c781b,_0x2b6d53=this[_0x33e6b8(0x1ff)];_0x2b6d53[_0x33e6b8(0x145)]||Object[_0x33e6b8(0xad)](_0x2b6d53,await this[_0x33e6b8(0xd2)][_0x33e6b8(0x1c8)](_0x2b6d53));const _0x1d0d63=_0x2b6d53['parent']?_0x33e6b8(0x1df):_0x33e6b8(0x135);let _0x2db94c;try{if(!_0x2b6d53[_0x33e6b8(0x145)]){const _0x5ac56e=await this['autoPayment']({'action':_0x1d0d63,'signal':_0xe665b1,'prefer':_0x2b6d53[_0x33e6b8(0x96)]});_0x2db94c=_0x5ac56e['choice'],_0x2b6d53['payment']=_0x5ac56e[_0x33e6b8(0x96)];}}catch(_0x3004be){if(_0x3004be[_0x33e6b8(0x16f)]!=='wallet_required')throw _0x3004be;return{'status':_0x33e6b8(0x1ff),'setupWallet':await this[_0x33e6b8(0x132)]({'title':'Draft\x20saved','lines':[_0x33e6b8(0x140),_0x33e6b8(0xb7)],'acceptLabel':_0x33e6b8(0xf2),'cancelLabel':_0x33e6b8(0xce)}),'draftId':_0x2b6d53['id']};}this[_0x33e6b8(0x158)]({'busy':_0x33e6b8(0xcb)});const _0x27a950=_0x2b6d53['parent']?await this[_0x33e6b8(0xd2)][_0x33e6b8(0x1a1)]({'jobId':_0x2b6d53[_0x33e6b8(0x22a)]},_0xe665b1):null,_0x512f45=_0x2b6d53['plan']??await this[_0x33e6b8(0xd2)][_0x33e6b8(0x16c)]({'objective':_0x2b6d53['objective'],'parent':_0x27a950,'signal':_0xe665b1,'ask':_0x99610d=>this['ask'](_0x99610d),'onProgress':_0x55493f=>{const _0x48861b=_0x33e6b8;this[_0x48861b(0x158)](_0x55493f[_0x48861b(0x15e)]==='loaded'?{'busy':'Understanding\x20your\x20request...','modelProgress':null}:{'busy':_0x48861b(0xdc),'modelProgress':_0x55493f});}});if(_0xe665b1[_0x33e6b8(0x12b)](),!_0x512f45[_0x33e6b8(0x18f)])throw new Error(_0x512f45[_0x33e6b8(0x167)][_0x33e6b8(0xac)]('\x0a')||_0x33e6b8(0x21e));_0x2b6d53['plan']=_0x512f45,_0x2b6d53[_0x33e6b8(0x145)]||Object['assign'](_0x2b6d53,await this['services'][_0x33e6b8(0x1c8)](_0x2b6d53)),this[_0x33e6b8(0x158)]({'busy':_0x33e6b8(0x1d0)});let _0x35c8e8=!0x1;const _0x5e0236=async _0x27d5ae=>{const _0x4942c1=_0x33e6b8;if(_0x35c8e8){const _0x5a5ffc=await this[_0x4942c1(0x1a0)]({'action':_0x1d0d63,'signal':_0xe665b1,'prefer':_0x2b6d53['payment']});_0x2db94c=_0x5a5ffc['choice'],_0x2b6d53[_0x4942c1(0x96)]=_0x5a5ffc[_0x4942c1(0x96)],_0x27d5ae={..._0x27d5ae,'paymentChain':_0x2b6d53['payment'][_0x4942c1(0x1e4)],'payWith':_0x2b6d53[_0x4942c1(0x96)][_0x4942c1(0xe5)],'expectedWallet':_0x2db94c[_0x4942c1(0x1e6)]},_0x35c8e8=!0x1;}try{return await this[_0x4942c1(0xd2)][_0x4942c1(0x1b9)](_0x27d5ae);}catch(_0x1e6395){throw _0x1e6395['code']===_0x4942c1(0x1eb)&&_0x1e6395[_0x4942c1(0x1f9)]?.[_0x4942c1(0xda)]&&(_0x35c8e8=!0x0),_0x1e6395;}};for(;;)try{const _0x4ac872=await this[_0x33e6b8(0x1b4)](()=>_0x5e0236({'input':_0x512f45[_0x33e6b8(0x18f)],'action':_0x1d0d63,'paymentChain':_0x2b6d53['payment']?.[_0x33e6b8(0x1e4)],'payWith':_0x2b6d53['payment']?.['payWith'],'expectedWallet':_0x2db94c?.['address'],'requestKey':_0x2b6d53['requestKey']??_0x2b6d53['id'],'onSaved':async _0x1c7057=>{const _0x56376c=_0x33e6b8;_0x2b6d53[_0x56376c(0x145)]=_0x1c7057[_0x56376c(0x145)],await this[_0x56376c(0xd2)][_0x56376c(0x89)](_0x2b6d53['id']);},'plan':{'summary':_0x512f45[_0x33e6b8(0x159)],'deliverables':_0x512f45[_0x33e6b8(0xd5)]},'signal':_0xe665b1,'chooseSupport':_0x331041=>this[_0x33e6b8(0x8d)](_0x331041),'onProgress':_0x56caed=>this[_0x33e6b8(0xcc)](_0x56caed),'confirmReplacement':_0x201120=>this[_0x33e6b8(0x22e)](_0x201120),'confirm':this[_0x33e6b8(0x1d5)]()}));return this[_0x33e6b8(0x13b)](_0x4ac872),_0x4ac872;}catch(_0xda1cd6){if(_0xda1cd6[_0x33e6b8(0x16f)]!==_0x33e6b8(0xa8))throw _0xda1cd6;_0x2b6d53[_0x33e6b8(0x96)]=await this[_0x33e6b8(0xbd)]({'action':_0x1d0d63,'signal':_0xe665b1,'current':_0x2b6d53[_0x33e6b8(0x96)]}),this[_0x33e6b8(0x158)]({'busy':'Preparing\x20the\x20payment\x20review...'});}});if(!this[_0x3c781b(0x1b3)]&&_0x265c65?.[_0x3c781b(0xa5)]===_0x3c781b(0x1ff))await this[_0x3c781b(0x101)](_0x265c65['setupWallet']?'wallet':_0x3c781b(0x1e0)),this[_0x3c781b(0x158)]({'notice':_0x3c781b(0x1f8)}),_0x265c65[_0x3c781b(0x156)]&&this[_0x3c781b(0x116)]();else{if(!this['closed']&&_0x265c65?.['status']===_0x3c781b(0x149)&&_0x265c65[_0x3c781b(0x179)][_0x3c781b(0x21b)]){await this[_0x3c781b(0x101)](_0x3c781b(0x1e0));const _0x2a45c1=this['state'][_0x3c781b(0x227)][_0x3c781b(0xae)](_0x3efb0f=>_0x3efb0f[_0x3c781b(0x21b)]===_0x265c65[_0x3c781b(0x179)][_0x3c781b(0x21b)]);_0x2a45c1>=0x0&&(this['update']({'selected':_0x2a45c1}),await this[_0x3c781b(0x17f)]()),this[_0x3c781b(0x158)]({'notice':_0x3c781b(0x119)+_0x265c65[_0x3c781b(0x179)][_0x3c781b(0x21b)]}),this[_0x3c781b(0x10a)](_0x265c65[_0x3c781b(0x179)]['jobId'],!0x0);}}}[_0x497272(0xcc)](_0x55ec59){const _0x46d829=_0x497272,_0x552c9b=typeof _0x55ec59?.['message']==_0x46d829(0x180)?_0x55ec59[_0x46d829(0x1ce)]['trim']():'';_0x552c9b&&this[_0x46d829(0x158)]({'busy':_0x552c9b});}async[_0x497272(0x1b4)](_0x5118c0){const _0x226018=_0x497272;for(;;)try{return await _0x5118c0();}catch(_0xb10fe8){if(_0xb10fe8[_0x226018(0x16f)]!==_0x226018(0x1eb))throw _0xb10fe8;if(!await this[_0x226018(0x132)]({'title':_0x226018(0xaf),'lines':_0x3a642f(_0xb10fe8[_0x226018(0x1f9)]),'acceptLabel':_0x226018(0xb8),'cancelLabel':_0x226018(0x10f),'extraAction':{'label':'Add\x20funds','run':()=>this[_0x226018(0x15d)](_0xb10fe8[_0x226018(0x1f9)])}}))throw p();this['update']({'busy':_0x226018(0x151)});}}[_0x497272(0x13b)]({state:_0x470036,status:_0x161b4d,check:_0x4f7134}){const _0x506f3a=_0x497272;if(_0x161b4d==='admitted'&&_0x470036[_0x506f3a(0x21b)])this[_0x506f3a(0x1ff)]=null,this[_0x506f3a(0x158)]({'notice':_0x506f3a(0x119)+_0x470036[_0x506f3a(0x21b)]+_0x506f3a(0x1c3)}),this[_0x506f3a(0x10a)](_0x470036[_0x506f3a(0x21b)],!0x0);else{if(_0x161b4d===_0x506f3a(0x7f))this[_0x506f3a(0x158)]({'error':_0x506f3a(0x1a2)+_0x4f7134[_0x506f3a(0x1dc)]['map'](_0x598fef=>_0x598fef['detail']??_0x598fef[_0x506f3a(0x16f)])[_0x506f3a(0xac)]('\x0a')});else{if(_0x161b4d===_0x506f3a(0x6f))this[_0x506f3a(0x158)]({'error':_0x506f3a(0x134)+(_0x470036[_0x506f3a(0x70)]??[])[_0x506f3a(0xa0)](_0x1241fe=>_0x1241fe['detail']??_0x1241fe[_0x506f3a(0x16f)])[_0x506f3a(0xac)]('\x0a')+'\x0aOrder:\x20'+_0x470036[_0x506f3a(0xde)]});else{if(P[_0x506f3a(0x203)](_0x161b4d)){const _0x9c1563=['Payment\x20needs\x20review.','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.',_0x506f3a(0x19c)],_0x1b9017=_0x470036?.[_0x506f3a(0x114)]??_0x470036?.['transaction'];_0x1b9017?.[_0x506f3a(0x214)]&&_0x9c1563[_0x506f3a(0x90)]('Transaction:\x20'+_0x1b9017['hash']),_0x1b9017?.[_0x506f3a(0x221)]&&_0x9c1563['push']('Explorer:\x20'+_0x1b9017['explorerUrl']),this['update']({'error':_0x9c1563[_0x506f3a(0xac)]('\x0a')});}else this['update']({'error':_0x506f3a(0x13c)+_0x161b4d+'.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.'});}}}}async['resumeOrder'](){const _0x3a7ee3=_0x497272,_0x27294b=this[_0x3a7ee3(0x1ef)]();if(this[_0x3a7ee3(0x179)][_0x3a7ee3(0x1bd)]===_0x3a7ee3(0x1e0)&&_0x27294b?.[_0x3a7ee3(0x185)]){const _0x4a7177=await this[_0x3a7ee3(0x103)](_0x3a7ee3(0x93),()=>this['services']['loadDraft'](_0x27294b[_0x3a7ee3(0x185)]));_0x4a7177&&(this[_0x3a7ee3(0x1ff)]=_0x4a7177,this[_0x3a7ee3(0xe3)]());return;}this[_0x3a7ee3(0x179)]['view']!=='tasks'||!_0x27294b?.[_0x3a7ee3(0x145)]||_0x27294b[_0x3a7ee3(0x21b)]||!_0x27294b[_0x3a7ee3(0x183)]||(this[_0x3a7ee3(0x1ff)]=null,await this['run']('Checking\x20the\x20saved\x20order...',async _0x4fd0c2=>{const _0x53feba=_0x3a7ee3;let _0x3c6a73,_0x16cf18,_0x5ca8e5;if(_0x27294b[_0x53feba(0x22d)]){const _0x4948ae=await this['services'][_0x53feba(0x1a1)](_0x27294b,_0x4fd0c2);_0x5ca8e5=_0x4948ae[_0x53feba(0x150)]??_0x53feba(0x135),this['update']({'busy':_0x53feba(0x100)}),_0x3c6a73=(await this[_0x53feba(0x1a0)]({'action':_0x5ca8e5,'signal':_0x4fd0c2,'prefer':{'paymentChain':_0x4948ae[_0x53feba(0x1e4)]??'ethereum','payWith':_0x4948ae[_0x53feba(0xe5)]??_0x53feba(0x118)}}))['payment'],_0x16cf18=this[_0x53feba(0x1d5)]({'title':_0x53feba(0xf4)});}let _0x468a3f=!0x1;const _0x47f8f2=async()=>{const _0x820958=_0x53feba;_0x468a3f&&(_0x3c6a73=(await this[_0x820958(0x1a0)]({'action':_0x5ca8e5,'signal':_0x4fd0c2,'prefer':_0x3c6a73}))[_0x820958(0x96)],_0x468a3f=!0x1);try{return await this[_0x820958(0xd2)][_0x820958(0x137)](_0x27294b,_0xb811f7=>this[_0x820958(0x132)](_0xb811f7),_0x4fd0c2,_0x525ed2=>this['chooseSupport'](_0x525ed2),_0x458f39=>this[_0x820958(0xcc)](_0x458f39),_0x28f110=>this['confirmReplacement'](_0x28f110),{'payment':_0x3c6a73,'review':_0x16cf18});}catch(_0x2cbffa){throw _0x27294b[_0x820958(0x22d)]&&_0x2cbffa[_0x820958(0x16f)]===_0x820958(0x1eb)&&_0x2cbffa['funding']?.[_0x820958(0xda)]&&(_0x468a3f=!0x0),_0x2cbffa;}};for(;;)try{this[_0x53feba(0x13b)](await this[_0x53feba(0x1b4)](_0x47f8f2));return;}catch(_0x21b25b){if(_0x21b25b[_0x53feba(0x16f)]!==_0x53feba(0xa8))throw _0x21b25b;_0x3c6a73=await this[_0x53feba(0xbd)]({'action':_0x5ca8e5,'signal':_0x4fd0c2,'current':_0x3c6a73}),this[_0x53feba(0x158)]({'busy':_0x53feba(0x1f4)});}}));}[_0x497272(0x136)](){const _0x5be5ba=_0x497272,_0x3288d9=this['selected']();if(this[_0x5be5ba(0x179)][_0x5be5ba(0x1bd)]!==_0x5be5ba(0x1e0)||!_0x3288d9)return;const _0x259eff=[{'label':'View\x20details','run':()=>this[_0x5be5ba(0x158)]({'focus':_0x5be5ba(0x1a1),'tab':_0x5be5ba(0x1b7),'scroll':0x0})}];_0x3288d9[_0x5be5ba(0x185)]?_0x259eff['push']({'label':_0x5be5ba(0x14f),'run':()=>this['resumeOrder']()},{'label':_0x5be5ba(0x189),'run':()=>this[_0x5be5ba(0xeb)]()}):_0x3288d9[_0x5be5ba(0x21b)]?(_0x259eff[_0x5be5ba(0x90)]({'label':_0x5be5ba(0x131),'run':()=>this[_0x5be5ba(0x1d9)]()},{'label':_0x5be5ba(0x1b2),'run':()=>this[_0x5be5ba(0x213)]()},{'label':_0x5be5ba(0x12e),'run':()=>this[_0x5be5ba(0x10a)]()}),_0x3288d9[_0x5be5ba(0x179)]===_0x5be5ba(0x17b)&&_0x259eff[_0x5be5ba(0x90)]({'label':'Request\x20changes\x20(new\x20paid\x20task)','run':()=>this['continueTask']()})):_0x3288d9[_0x5be5ba(0x145)]&&(_0x3288d9[_0x5be5ba(0x183)]&&_0x259eff['push']({'label':_0x3288d9[_0x5be5ba(0x22d)]?'Review\x20&\x20pay':_0x5be5ba(0xf1),'run':()=>this[_0x5be5ba(0x1d7)]()}),_0x3288d9[_0x5be5ba(0x22d)]&&_0x259eff[_0x5be5ba(0x90)]({'label':_0x5be5ba(0x195),'run':()=>this[_0x5be5ba(0xa1)]()}),_0x3288d9['canDelete']&&_0x259eff[_0x5be5ba(0x90)]({'label':_0x5be5ba(0x68),'run':()=>this['deleteRequest']()})),this[_0x5be5ba(0xca)](_0x5be5ba(0x1ea),_0x259eff);}async[_0x497272(0xeb)](){const _0x905597=_0x497272,_0x30ffae=this[_0x905597(0x1ef)]();if(!_0x30ffae?.['draftId']||!await this[_0x905597(0x132)]({'title':_0x905597(0x1fb),'lines':[_0x30ffae[_0x905597(0xd6)]],'acceptLabel':_0x905597(0x189),'cancelLabel':'Keep\x20draft'}))return;await this[_0x905597(0x103)](_0x905597(0x21c),()=>this[_0x905597(0xd2)][_0x905597(0x89)](_0x30ffae['draftId']))&&(this[_0x905597(0x1ff)]?.['id']===_0x30ffae[_0x905597(0x185)]&&(this[_0x905597(0x1ff)]=null),await this[_0x905597(0x13a)]());}async[_0x497272(0xa1)](){const _0x39e8de=_0x497272,_0x1ddc6a=this[_0x39e8de(0x1ef)]();if(this[_0x39e8de(0x179)]['view']!=='tasks'||!_0x1ddc6a?.[_0x39e8de(0x22d)])return;let _0x2062ed=!0x1;await this[_0x39e8de(0x103)](_0x39e8de(0x16e),async()=>{const _0x2ac1ed=_0x39e8de;await this[_0x2ac1ed(0x132)]({'title':_0x2ac1ed(0x155),'lines':[_0x1ddc6a[_0x2ac1ed(0xd6)],'',_0x2ac1ed(0x88),_0x2ac1ed(0x163),_0x2ac1ed(0x1fe)],'acceptLabel':'Cancel\x20request','cancelLabel':'Keep\x20request'})&&(await this['services'][_0x2ac1ed(0x1d3)](_0x1ddc6a),_0x2062ed=!0x0);}),_0x2062ed&&!this[_0x39e8de(0x1b3)]&&(await this[_0x39e8de(0x13a)](),this[_0x39e8de(0x158)]({'notice':_0x39e8de(0x105)}));}async['deleteRequest'](){const _0x5646ab=_0x497272,_0x173762=this[_0x5646ab(0x1ef)]();if(this[_0x5646ab(0x179)]['view']!=='tasks'||!_0x173762?.[_0x5646ab(0x196)])return;let _0x4c1c45=!0x1;await this[_0x5646ab(0x103)](_0x5646ab(0x73),async()=>{const _0x309a55=_0x5646ab;await this[_0x309a55(0xd2)][_0x309a55(0xe2)](_0x173762),_0x4c1c45=!0x0;}),_0x4c1c45&&!this[_0x5646ab(0x1b3)]&&(await this[_0x5646ab(0x13a)](),this[_0x5646ab(0x158)]({'notice':_0x5646ab(0xc6)}));}[_0x497272(0x213)](){const _0x97654c=_0x497272,_0x1f059c=this[_0x97654c(0x1ef)]();_0x1f059c?.[_0x97654c(0x21b)]&&this[_0x97654c(0x208)](_0x97654c(0xd4),[{'name':_0x97654c(0x210),'label':_0x97654c(0x1ee),'value':'./output/'+_0x1f059c['jobId']}],async({out:_0x6c9f74})=>{const _0x2a6187=_0x97654c;if(!_0x6c9f74[_0x2a6187(0xe1)]())throw new Error(_0x2a6187(0x1ba));this['update']({'form':null}),await this['run'](_0x2a6187(0x7b),async _0x19db86=>{const _0x4efbd8=_0x2a6187,_0x36136d=await this[_0x4efbd8(0xd2)][_0x4efbd8(0x213)]({'id':_0x1f059c[_0x4efbd8(0x21b)],'out':_0x6c9f74,'signal':_0x19db86,'onProgress':_0x1c28d9=>this[_0x4efbd8(0x158)]({'busy':_0x4efbd8(0x102)+_0x1c28d9[_0x4efbd8(0x21a)]})});this[_0x4efbd8(0x158)]({'notice':_0x4efbd8(0x102)+_0x36136d[_0x4efbd8(0x1d9)][_0x4efbd8(0x21f)]+_0x4efbd8(0xf5)+_0x6c9f74});});},{'submit':_0x97654c(0x173)});}['addTarget'](){const _0x174cfc=_0x497272;this[_0x174cfc(0x208)](_0x174cfc(0x10b),[{'name':'host','label':'SSH\x20user@host\x20(empty\x20=\x20this\x20computer)'},{'name':'port','label':_0x174cfc(0xbf),'value':'22'},{'name':_0x174cfc(0x18b),'label':_0x174cfc(0x1a6)}],async _0x390e91=>{const _0x3b4a4d=_0x174cfc,_0x2cfc5f=_0x309ade(_0x390e91);this[_0x3b4a4d(0x126)]['some'](_0x4fb761=>_0x4fb761['id']===_0x2cfc5f['id'])||this[_0x3b4a4d(0x126)][_0x3b4a4d(0x90)](_0x2cfc5f),this['update']({'form':null}),await this['refresh'](),this['update']({'selected':this[_0x3b4a4d(0x179)][_0x3b4a4d(0x227)][_0x3b4a4d(0xae)](_0xe923ec=>_0xe923ec['id']===_0x2cfc5f['id'])}),await this[_0x3b4a4d(0x17f)]();},{'submit':_0x174cfc(0x1aa)});}[_0x497272(0xca)](_0x121d1e,_0x85ddf2,{onCancel:_0x59d9b7,selected:_0x2f97b4=0x0,lines:_0x202dad,hint:_0x5ab1a9,numbered:_0x1679ff=!0x1}={}){const _0x5eb955=_0x497272;this['cancelAutoRefresh'](),this[_0x5eb955(0x1bf)]=_0x59d9b7??null,this['update']({'menu':{'title':_0x121d1e,'items':_0x85ddf2,'selected':_0x2f97b4,'lines':_0x202dad,'hint':_0x5ab1a9,'numbered':_0x1679ff},'form':null});}[_0x497272(0x8d)](_0x4be199){return new Promise((_0x5e3a1a,_0x1d6e1d)=>{const _0x57d1cc=_0x1e25;this[_0x57d1cc(0xca)](_0x57d1cc(0x10c),_0x4be199[_0x57d1cc(0xa0)]((_0x5f4da0,_0xedf580)=>({'label':_0x5f4da0[_0x57d1cc(0x19e)],'run':()=>_0x5e3a1a(_0xedf580)})),{'onCancel':()=>_0x1d6e1d(p()),'selected':_0x2a428f});});}[_0x497272(0x219)](){const _0x3889e9=_0x497272,_0x4335f0=this[_0x3889e9(0x1bf)];this[_0x3889e9(0x1bf)]=null,this[_0x3889e9(0x158)]({'menu':null}),_0x4335f0?.();}['chooseMenu'](){const _0x5c2b8c=_0x497272,_0x4386c6=this[_0x5c2b8c(0x179)][_0x5c2b8c(0x11f)][_0x5c2b8c(0x227)][this[_0x5c2b8c(0x179)][_0x5c2b8c(0x11f)][_0x5c2b8c(0x1ef)]];this[_0x5c2b8c(0x1bf)]=null,this['update']({'menu':null}),_0x4386c6[_0x5c2b8c(0x103)]();}[_0x497272(0x107)](){const _0x5910e1=_0x497272,_0x4e2543=this['selected']();if(!_0x4e2543||_0x4e2543[_0x5910e1(0x1d4)]===_0x5910e1(0xc9))return;const _0x506784=(_0x2b2435,_0x33ade8=!0x1)=>()=>this[_0x5910e1(0xfb)](_0x2b2435,_0x33ade8),_0x1c6e68=(_0x245f33,_0x12c8cc,_0x432277,_0x3ef930,_0x2192c9=!0x1)=>()=>this[_0x5910e1(0x208)](_0x245f33,[{'name':_0x432277,'label':_0x3ef930}],_0x4be869=>{const _0x55cbfe=_0x5910e1;if(!_0x4be869[_0x432277][_0x55cbfe(0xe1)]())throw new Error(_0x3ef930+_0x55cbfe(0xfc));return this[_0x55cbfe(0x158)]({'form':null}),this[_0x55cbfe(0xfb)](_0x12c8cc['concat'](_0x4be869[_0x432277]['trim']()),_0x2192c9);});this[_0x5910e1(0xca)](_0x5910e1(0x1b1)+_0x4e2543[_0x5910e1(0xd6)],[{'label':_0x5910e1(0x19f),'run':_0x506784([_0x5910e1(0xa5)])},{'label':_0x5910e1(0xf3),'run':_0x506784([_0x5910e1(0xe9)])},{'label':_0x5910e1(0x184),'run':_0x506784([_0x5910e1(0xe8)])},{'label':_0x5910e1(0x72),'run':_0x506784(['whoami'])},{'label':_0x5910e1(0x169),'run':_0x506784(['deploy'],!0x0)},{'label':_0x5910e1(0x19b),'run':_0x506784([_0x5910e1(0x8b)],!0x0)},{'label':_0x5910e1(0x193),'run':_0x506784(['register'],!0x0)},{'label':'Install\x20background\x20service','run':()=>this[_0x5910e1(0x13d)]()},...[_0x5910e1(0xe6),'stop',_0x5910e1(0x9e),_0x5910e1(0x158)][_0x5910e1(0xa0)](_0x3a625b=>({'label':_0x3a625b[0x0][_0x5910e1(0x13f)]()+_0x3a625b['slice'](0x1),'run':_0x506784([_0x3a625b],!0x0)})),{'label':_0x5910e1(0x215),'run':()=>this[_0x5910e1(0xca)](_0x5910e1(0x211),[{'label':_0x5910e1(0x1a5),'run':_0x506784([_0x5910e1(0xf9),_0x5910e1(0x1e5)])},{'label':_0x5910e1(0x16a),'run':_0x1c6e68(_0x5910e1(0x16a),[_0x5910e1(0xf9),_0x5910e1(0x17c)],'id',_0x5910e1(0x15a))},{'label':_0x5910e1(0x113),'run':_0x1c6e68(_0x5910e1(0x113),[_0x5910e1(0xf9),_0x5910e1(0x18d)],'id',_0x5910e1(0x15a))}])},{'label':_0x5910e1(0x226),'run':()=>this[_0x5910e1(0xca)](_0x5910e1(0xf7),[{'label':_0x5910e1(0x8a),'run':_0x506784(['tools',_0x5910e1(0x1e5)])},{'label':'Add\x20tool','run':_0x506784([_0x5910e1(0xcd),_0x5910e1(0x17c)],!0x0)},{'label':_0x5910e1(0x148),'run':_0x1c6e68(_0x5910e1(0x152),[_0x5910e1(0xcd),_0x5910e1(0xfe)],_0x5910e1(0x14d),_0x5910e1(0xec),!0x0)},{'label':_0x5910e1(0xc4),'run':_0x1c6e68(_0x5910e1(0xc4),[_0x5910e1(0xcd),_0x5910e1(0x133)],'name',_0x5910e1(0xec),!0x0)},{'label':_0x5910e1(0x194),'run':_0x1c6e68('Remove\x20tool',[_0x5910e1(0xcd),'remove'],'id',_0x5910e1(0x124))}])},{'label':_0x5910e1(0x188),'run':()=>this[_0x5910e1(0xca)](_0x5910e1(0x12f),[{'label':'List\x20RPC\x20endpoints','run':_0x506784([_0x5910e1(0xfa),'list'])},{'label':_0x5910e1(0x87),'run':_0x1c6e68('Add\x20RPC',['rpc',_0x5910e1(0x17c)],_0x5910e1(0xc3),_0x5910e1(0x1f0),!0x0)},{'label':_0x5910e1(0x74),'run':_0x1c6e68(_0x5910e1(0xc1),[_0x5910e1(0xfa),_0x5910e1(0x18d)],_0x5910e1(0xc3),_0x5910e1(0x1f0))}])},{'label':'Unlink\x20worker','run':_0x506784([_0x5910e1(0x206)],!0x0)}]);}[_0x497272(0x13d)](){const _0x2cc2c9=_0x497272;this[_0x2cc2c9(0x208)](_0x2cc2c9(0x225),[{'name':_0x2cc2c9(0xd8),'label':_0x2cc2c9(0xb1),'value':_0x2cc2c9(0xff)},{'name':_0x2cc2c9(0xf8),'label':_0x2cc2c9(0x1f5),'value':'1'},{'name':_0x2cc2c9(0x1c7),'label':_0x2cc2c9(0xc0),'value':'no'}],async({runtime:_0x5bdfc8,concurrency:_0x3938ce,boot:_0xd7345c})=>{const _0x441135=_0x2cc2c9;if(![_0x441135(0xff),_0x441135(0xc8)]['includes'](_0x5bdfc8))throw new Error(_0x441135(0x212));if(!/^[1-4]$/[_0x441135(0x80)](_0x3938ce))throw new Error(_0x441135(0x79));if(!['yes','no'][_0x441135(0xb3)](_0xd7345c))throw new Error(_0x441135(0x1b8));const _0x3c0ce8=[_0x441135(0x165),'install',_0x441135(0x1f1),_0x5bdfc8,_0x441135(0xf0),_0x3938ce];_0xd7345c===_0x441135(0x1c5)&&_0x3c0ce8[_0x441135(0x90)](_0x441135(0x1be)),this['update']({'form':null}),await this['workerCommand'](_0x3c0ce8,!0x0);});}async['workerCommand'](_0x4444d0,_0x5aa255=!0x1){const _0x1d62af=_0x497272,_0x2c19be=this[_0x1d62af(0x1ef)]();!_0x2c19be||_0x2c19be[_0x1d62af(0x1d4)]===_0x1d62af(0xc9)||await this[_0x1d62af(0x103)]('Worker:\x20'+_0x4444d0[_0x1d62af(0xac)]('\x20')+_0x1d62af(0x67),async _0xde8836=>{const _0x231ed3=_0x1d62af;if(_0x5aa255){if(!await this[_0x231ed3(0x132)]({'title':_0x231ed3(0x8e)+_0x2c19be[_0x231ed3(0xd6)]+'?','lines':[_0x231ed3(0x10d)+_0x4444d0[_0x231ed3(0xac)]('\x20'),_0x231ed3(0x1f3)]}))return;await this[_0x231ed3(0xea)](['worker',..._0x4444d0],_0x2c19be),this[_0x231ed3(0x158)]({'notice':_0x231ed3(0x1d6)});}else{const _0x70fa80=await this['services'][_0x231ed3(0xd9)]([_0x231ed3(0x168),..._0x4444d0],_0x2c19be,_0xde8836);this[_0x231ed3(0x158)]({'detail':{'output':_0x70fa80},'focus':_0x231ed3(0x1a1),'scroll':0x0});}});}[_0x497272(0x111)](_0x3dd300){return new Promise((_0x274a9a,_0x43bd9b)=>{const _0x5334a1=_0x1e25;this[_0x5334a1(0x6c)]=_0x43bd9b,this[_0x5334a1(0x208)](_0x5334a1(0x11d),[{'name':_0x5334a1(0x191),'label':_0x3dd300,'secret':!0x0}],({password:_0x1efe13})=>{const _0x60b81f=_0x5334a1;this['update']({'form':null}),this[_0x60b81f(0x6c)]=null,_0x274a9a(_0x1efe13);},{'submit':_0x5334a1(0x115),'onCancel':()=>{const _0x4bf4f3=_0x5334a1;this[_0x4bf4f3(0x6c)]=null,_0x43bd9b(new Error(_0x4bf4f3(0x146)));}});});}[_0x497272(0x22b)](){const _0x169426=_0x497272,_0x335e0c=this[_0x169426(0x179)][_0x169426(0x1a1)]?.[_0x169426(0xa4)]===_0x169426(0x20c);this[_0x169426(0x179)][_0x169426(0x1a1)]?.[_0x169426(0x1de)]&&this['showMenu'](_0x169426(0x187),[...!this[_0x169426(0x166)]()&&this[_0x169426(0x1ef)]()?[{'label':_0x169426(0x110),'run':()=>this['useSelectedWallet']()}]:[],..._0x335e0c?[{'label':_0x169426(0x8c),'run':()=>this[_0x169426(0x14a)]()},{'label':_0x169426(0xe4),'run':()=>this[_0x169426(0x1cc)]()},{'label':_0x169426(0x91),'run':()=>this[_0x169426(0x76)]()}]:[],...this['state']['detail']?.[_0x169426(0x1de)]?[{'label':_0x169426(0x202),'run':()=>this['walletReceive']()}]:[]]);}async[_0x497272(0x22c)](){const _0x457738=_0x497272;if(this[_0x457738(0x1b3)]||this[_0x457738(0x179)][_0x457738(0x1dd)]||this[_0x457738(0x179)][_0x457738(0x97)]||this['state'][_0x457738(0x11f)]||this[_0x457738(0x179)]['confirm']||this[_0x457738(0xd2)]['wallets']()[_0x457738(0x21f)])return;let _0xd33cd5;try{_0xd33cd5=await this['services'][_0x457738(0x17a)](void 0x0,void 0x0,{'balances':!0x1});}catch{return;}if(_0xd33cd5[_0x457738(0x1de)]||this['closed']||this['state']['busy']||this[_0x457738(0x179)][_0x457738(0x97)]||this[_0x457738(0x179)][_0x457738(0x11f)]||this[_0x457738(0x179)]['confirm'])return;const _0xf23d83=()=>this['update']({'notice':_0x457738(0x14c)});this[_0x457738(0xca)](_0x457738(0xd1),[{'label':_0x457738(0x1fd),'run':()=>this[_0x457738(0x201)](!0x1,{'firstRun':!0x0})},{'label':_0x457738(0x92),'run':_0xf23d83}],{'onCancel':_0xf23d83,'numbered':!0x0,'lines':[_0x457738(0x1ec),_0x457738(0x109),'The\x20wallet\x20key\x20is\x20encrypted\x20with\x20your\x20password\x20and\x20stays\x20on\x20this\x20computer.',''],'hint':_0x457738(0x1cf)});}['walletManagement'](){const _0x1e1766=_0x497272;this[_0x1e1766(0xca)](_0x1e1766(0x1af),[{'label':_0x1e1766(0x11e),'run':()=>this[_0x1e1766(0x201)](!0x1)},{'label':_0x1e1766(0x1f6),'run':()=>this[_0x1e1766(0x224)]()}]);}[_0x497272(0x224)](){const _0x3e5ce6=_0x497272;this['showMenu']('Import\x20wallet',[{'label':'From\x20private\x20key','run':()=>this['walletSetup'](!0x0)},{'label':_0x3e5ce6(0xaa),'run':()=>this[_0x3e5ce6(0x1f7)]()}]);}[_0x497272(0x166)](){const _0x56b0ad=_0x497272;return!this[_0x56b0ad(0x1ef)]()||this[_0x56b0ad(0x1ef)]()[_0x56b0ad(0x1e6)]===this[_0x56b0ad(0x179)][_0x56b0ad(0x1e6)];}async[_0x497272(0x76)](){const _0x35f592=_0x497272,_0x1a0ba2=this[_0x35f592(0x1ef)]()?.['address']??this[_0x35f592(0x179)][_0x35f592(0x1a1)]?.[_0x35f592(0x1e6)];if(this[_0x35f592(0x179)][_0x35f592(0x1a1)]?.['source']!==_0x35f592(0x20c)||!_0x1a0ba2||!await this[_0x35f592(0x132)]({'title':_0x35f592(0x14e),'lines':[_0x1a0ba2,_0x35f592(0x19a),_0x35f592(0x1e7)],'acceptLabel':'Continue','cancelLabel':_0x35f592(0x20e)})||!await this[_0x35f592(0x132)]({'title':_0x35f592(0x1e2),'lines':[_0x1a0ba2,'The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.',_0x35f592(0x1e1)],'acceptLabel':_0x35f592(0x91),'cancelLabel':'Keep\x20wallet'}))return;const _0x57e66f=await this[_0x35f592(0x103)]('Deleting\x20local\x20wallet...',()=>this['services'][_0x35f592(0x9b)](_0x1a0ba2));_0x57e66f&&(await this[_0x35f592(0x1b6)](_0x57e66f['currentAddress']),this['update']({'notice':'Wallet\x20deleted:\x20'+_0x1a0ba2}));}[_0x497272(0x14a)](){const _0x2f1fe9=_0x497272,_0x4b07b6=this[_0x2f1fe9(0x1ef)]()?.[_0x2f1fe9(0x1e6)]??this[_0x2f1fe9(0x179)][_0x2f1fe9(0x1a1)]?.[_0x2f1fe9(0x1e6)];this[_0x2f1fe9(0x179)][_0x2f1fe9(0x1a1)]?.[_0x2f1fe9(0xa4)]!=='local'||!_0x4b07b6||this[_0x2f1fe9(0x208)](_0x2f1fe9(0x222),[{'name':_0x2f1fe9(0x191),'label':_0x2f1fe9(0x204),'secret':!0x0}],async({password:_0x3750b3})=>{const _0x3555a3=_0x2f1fe9;this[_0x3555a3(0x158)]({'form':null});const _0x14f4da=await this['run'](_0x3555a3(0xd0),_0x5c6e41=>this[_0x3555a3(0xd2)][_0x3555a3(0x1a8)](_0x4b07b6,_0x3750b3,_0x5c6e41));_0x14f4da&&this['update']({'privateKeyView':_0x14f4da});},{'submit':_0x2f1fe9(0x8c)});}async[_0x497272(0x1b6)](_0x665c4c,_0x41feb5){const _0x4013ac=_0x497272;this['update']({'selected':-0x1}),this[_0x4013ac(0x1e3)]=_0x665c4c,await this[_0x4013ac(0x13a)]({'notice':_0x41feb5});}async[_0x497272(0x1a7)](){const _0x315893=_0x497272,_0x12fe5=this['selected']();if(!_0x12fe5||this['walletIsCurrent']())return;const _0x5e4418=await this[_0x315893(0x103)]('Switching\x20wallet...',()=>this['services'][_0x315893(0xba)](_0x12fe5['address']));_0x5e4418&&(await this['refresh'](),this[_0x315893(0x158)]({'notice':'Current\x20wallet:\x20'+_0x5e4418['address']}));}['walletSetup'](_0x50af34,{firstRun:_0x55be7b=!0x1}={}){const _0x22ac63=_0x497272,_0x4669da=this['services']['wallets']()['length']>0x0||this['state'][_0x22ac63(0x1a1)]?.[_0x22ac63(0xa4)]===_0x22ac63(0x20c),_0x2d6002=async({key:_0x1832e5,password:_0x9d6c7,repeat:_0x39fe3d})=>{const _0x380a66=_0x22ac63;if(!_0x4669da){if(_0x9d6c7!==_0x39fe3d)throw new Error(_0x380a66(0x122));if(_0x9d6c7[_0x380a66(0x21f)]<0x8)throw new Error(_0x380a66(0x99));}this['update']({'form':null});const _0x220254=await this[_0x380a66(0x103)](_0x380a66(0x223),_0x4cca02=>this[_0x380a66(0xd2)][_0x380a66(0x1c2)](_0x9d6c7,_0x1832e5,_0x4cca02));_0x220254&&(_0x55be7b&&this[_0x380a66(0x179)][_0x380a66(0x1bd)]!=='wallet'&&(clearTimeout(this[_0x380a66(0x10e)]),this[_0x380a66(0xb4)]?.['abort'](),++this['detailVersion'],this[_0x380a66(0x158)]({'view':'wallet','items':[],'detail':null,'result':null,'query':'','filter':_0x380a66(0x12a),'tab':'Overview','focus':_0x380a66(0x1e5),'menu':null,'cursor':null,'total':null,'since':null})),await this[_0x380a66(0x1b6)](_0x220254[_0x380a66(0x1e6)],_0x55be7b?_0x380a66(0x197)+_0x220254[_0x380a66(0x1e6)]+_0x380a66(0x200):_0x380a66(0x161)));};if(_0x4669da&&!_0x50af34)return _0x2d6002({});this[_0x22ac63(0x208)](_0x50af34?_0x22ac63(0xbb):_0x22ac63(0xe7),[..._0x50af34?[{'name':_0x22ac63(0xfe),'label':_0x22ac63(0x178),'secret':!0x0}]:[],..._0x4669da?[]:[{'name':_0x22ac63(0x191),'label':'Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','secret':!0x0},{'name':_0x22ac63(0x6b),'label':_0x22ac63(0x182),'secret':!0x0}]],_0x2d6002,{'submit':_0x50af34?'Import\x20wallet':'Create\x20wallet',..._0x55be7b?{'onCancel':()=>this[_0x22ac63(0x158)]({'notice':_0x22ac63(0x14c)})}:{}});}['walletRestore'](){const _0x5ef9b7=_0x497272;this[_0x5ef9b7(0x208)](_0x5ef9b7(0x9c),[{'name':_0x5ef9b7(0x21d),'label':_0x5ef9b7(0x199)},{'name':'password','label':_0x5ef9b7(0xdf),'secret':!0x0}],async({file:_0xa1b275,password:_0x203d9a})=>{const _0x2d6b7d=_0x5ef9b7;this[_0x2d6b7d(0x158)]({'form':null});const _0x203975=await this[_0x2d6b7d(0x103)](_0x2d6b7d(0x16d),_0x236676=>this[_0x2d6b7d(0xd2)][_0x2d6b7d(0xe0)](_0xa1b275,_0x203d9a,_0x236676));_0x203975&&await this[_0x2d6b7d(0x1b6)](_0x203975['address']);},{'submit':_0x5ef9b7(0xd7)});}[_0x497272(0x1cc)](){const _0x2416bc=_0x497272,_0x4eba8d=this['selected']()?.[_0x2416bc(0x1e6)]??this[_0x2416bc(0x179)][_0x2416bc(0x1a1)]?.[_0x2416bc(0x1e6)];_0x4eba8d&&this[_0x2416bc(0x208)](_0x2416bc(0xe4),[{'name':_0x2416bc(0x210),'label':_0x2416bc(0x1db)}],async({out:_0x99694c})=>{const _0x8ed512=_0x2416bc;this[_0x8ed512(0x158)]({'form':null});const _0x3af8a4=await this[_0x8ed512(0x103)]('Saving\x20encrypted\x20backup...',()=>this[_0x8ed512(0xd2)][_0x8ed512(0x84)](_0x99694c,_0x4eba8d));_0x3af8a4&&this[_0x8ed512(0x158)]({'notice':_0x8ed512(0x1d2)+_0x3af8a4[_0x8ed512(0x21a)]+'.\x20Keep\x20your\x20password\x20separately.'});},{'submit':_0x2416bc(0x157)});}async[_0x497272(0x13e)](){const _0x114935=_0x497272,_0x1aa46f=this[_0x114935(0x1ef)]()?.[_0x114935(0x1e6)]??this[_0x114935(0x179)][_0x114935(0x1a1)]?.[_0x114935(0x1e6)];_0x1aa46f&&await this[_0x114935(0x103)]('Preparing\x20receive\x20address...',async()=>{const _0x1ad121=_0x114935;this[_0x1ad121(0x158)]({'receive':await this['services'][_0x1ad121(0x186)](_0x1aa46f)});});}[_0x497272(0x15d)](_0x5d297c){const _0x386465=_0x497272,_0x1f43e2=_0x17a6e5(_0x5d297c)[_0x386465(0x130)](_0xb37684=>!_0xb37684[_0x386465(0x1f2)]);if(_0x1f43e2['length']<=0x1)return this[_0x386465(0x17d)](_0x5d297c,_0x1f43e2[0x0]??_0x17a6e5(_0x5d297c)[0x0]);const _0x45b576={'dialog':this['state'][_0x386465(0x132)],'scroll':this[_0x386465(0x179)]['scroll']};this[_0x386465(0x158)]({'confirm':null}),this['showMenu'](_0x386465(0x1da),_0x1f43e2[_0x386465(0xa0)](_0x4a5014=>({'label':_0x1a3014(_0x4a5014),'run':()=>this[_0x386465(0x17d)](_0x5d297c,_0x4a5014,_0x45b576)})),{'onCancel':()=>this['update']({'confirm':_0x45b576[_0x386465(0x78)],'scroll':_0x45b576[_0x386465(0x11b)]})});}async[_0x497272(0x17d)](_0x5208c6,_0x48c80a,_0x3329f4){const _0x158103=_0x497272,_0x4c7b40=_0x3329f4?.[_0x158103(0x78)]??this['state'][_0x158103(0x132)],_0x42377d=_0x3329f4?.['scroll']??this['state'][_0x158103(0x11b)];try{const _0x335f46=await this['services'][_0x158103(0x186)](_0x5208c6['address'],_0x48c80a['key']);this[_0x158103(0x20b)]={'dialog':_0x4c7b40,'scroll':_0x42377d},this[_0x158103(0x158)]({'confirm':null,'receive':{..._0x335f46,'targets':_0x59032d(_0x48c80a)},'scroll':0x0,'error':null,'notice':null});}catch(_0xf4363f){this[_0x158103(0x158)]({'error':_0xf4363f['message'],..._0x3329f4?{'confirm':_0x4c7b40,'scroll':_0x42377d}:{}});}}[_0x497272(0x1ae)](){const _0x2c278e=_0x497272,_0xed18e8=this[_0x2c278e(0x20b)];this['fundingDialog']=null,this[_0x2c278e(0x158)]({'receive':null,..._0xed18e8?{'confirm':_0xed18e8[_0x2c278e(0x78)],'scroll':_0xed18e8['scroll']}:{}});}[_0x497272(0x198)](){const _0x4e51a7=_0x497272,_0xdb401a=this['state'][_0x4e51a7(0x143)][_0x4e51a7(0x1e6)];this['showForm'](_0x4e51a7(0x18e),[{'name':_0x4e51a7(0x210),'label':_0x4e51a7(0x1ab),'placeholder':_0x4e51a7(0x1ac)}],async({out:_0x2d3c9c})=>{const _0x237a73=_0x4e51a7,_0x4c2780=await this['services']['saveQr'](_0xdb401a,_0x2d3c9c);this['update']({'form':null,'notice':_0x237a73(0x6d)+_0x4c2780[_0x237a73(0x21a)]});},{'submit':_0x4e51a7(0x106)});}[_0x497272(0x83)](){const _0x1d04d6=_0x497272;clearTimeout(this[_0x1d04d6(0x10e)]),this['menuCancel']?.(),this[_0x1d04d6(0x1bf)]=null,this['passwordReject']?.(new Error('Wallet\x20unlock\x20cancelled.')),this['passwordReject']=null,_0x340ef0(),this['update']({'form':null,'privateKeyView':null,'taskLink':null}),this['closed']=!0x0,this['operation']?.['abort'](),this[_0x1d04d6(0x1bc)]?.[_0x1d04d6(0x162)](),this[_0x1d04d6(0xb4)]?.[_0x1d04d6(0x162)](),this['confirmResolve']?.(!0x1),this[_0x1d04d6(0x20b)]=null,this[_0x1d04d6(0x75)]?.([]),++this[_0x1d04d6(0x205)],this['listeners']['clear']();}}export{N as DashboardController,m as FILTERS,u as TABS,U as VIEWS,f as visibleItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c237e=_0x1ed5;import{terminalText as _0x4b1b12}from'../lib/terminal-text.mjs';import _0x129845 from'wrap-ansi';import _0xecb8c from'string-width';function _0x5586(){const _0x25f746=['Type:\x20','tab','challenged','view','transaction_pending','key','steps','[o]\x20Continue\x20draft','Payment:\x20at\x20most\x20','status','Status:\x20Draft','\x0a\x0aPaying:\x20Colony\x20picks\x20a\x20network\x20and\x20coin\x20with\x20enough\x20balance\x20for\x20each\x20task.\x20Gas\x20(network\x20fee)\x20is\x20always\x20paid\x20in\x20ETH\x20on\x20the\x20same\x20network.\x0a\x0a[d]\x20Receive\x20funds\x20/\x20QR\x20code\x0a[b]\x20Back\x20up\x20this\x20wallet','replaceAll','funding','[c]\x20Changes','\x20·\x20task\x20price\x20','\x0aSame\x20address\x20on\x20Ethereum\x20and\x20Robinhood\x20Chain.\x20Balances\x20are\x20separate\x20per\x20network.','LAST\x20ERROR','gas','Draft','PAYMENT\x20PREPARATION\x0a\x0a','Ethereum','Not\x20available','network-worker','configured','Order:\x20','path','lastError','Payment\x20needs\x20review','address','Create\x20or\x20import\x20a\x20wallet\x20in\x20Wallets,\x20then\x20continue\x20this\x20draft.','workers','[x]\x20Cancel\x20request\x20·\x20no\x20payment','cancelled','display','Select\x20an\x20item\x20to\x20view\x20details.','error','explore','orderId','standing','\x20on\x20','DELIVERY','canCancel','networks','result','\x0aNo\x20payment\x20was\x20signed\x20or\x20submitted.','stringify','toUpperCase','YOUR\x20REQUEST','price','wallet','items','payment','coins','paymentChain','robinhood','explorerUrl','payWith','symbol','Awaiting\x20payment','stderr','Command\x20failed\x20(exit\x20code\x20','Robinhood\x20Chain','reviews','payment_reconciling','SAVED\x20WALLET\x0a','verdict','[m]\x20Actions','attempt','REQUEST\x20CANCELLED\x0a\x0aCancelled\x20locally:\x20','service','No\x20delivered\x20files\x20yet.\x0aTask\x20state:\x20','[s]\x20Save','Payment:\x20picked\x20from\x20your\x20balances\x20when\x20you\x20continue','[o]\x20Inspect\x20/\x20resume\x20saved\x20order','\x0aAttempt:\x20','chainName','Continue\x20here\x20after\x20adding\x20funds.\x20Unpaid\x20quotes\x20and\x20exchange\x20rates\x20are\x20refreshed.','Resume','DELIVERED\x20FILES\x0a\x0a','project','includes','bytes','mediaType','coin','delivery','Continue\x20payment\x20to\x20check\x20the\x20original\x20payment.','local','payment_failed','stdout','string','filter','split','networkFeeCap','completed','expired','draftId','\x0a\x0aREVIEWS\x0a','exitCode','SERVICE\x0a','\x0a[m]\x20Selected\x20wallet\x20actions','\x0aBalances\x20unavailable:\x20','Project:\x20','No\x20wallet\x20selected.\x0a\x0aUse\x20Wallet\x20management\x20to\x20create,\x20import\x20or\x20restore\x20a\x20wallet.\x0a\x0aYour\x20key\x20is\x20encrypted\x20locally.\x0aBrowsing\x20does\x20not\x20need\x20a\x20wallet.','paidBy','paymentStatus','Transaction:\x20','\x20IMD','hash','\x0a[u]\x20Use\x20this\x20wallet\x20for\x20payments','template','\x20·\x20can\x20change\x20before\x20paying','push','transaction','transactionHash','selectedId','parent','notInstalled','has','refusalProblems','LAUNCH','No\x20execution\x20steps\x20reported\x20yet.','map','\x20ETH','[o]\x20','launch','Continue\x20this\x20draft\x20to\x20review\x20and\x20publish.','join','Files','cancelledAt','EXECUTION\x0a\x0a','Payment\x20note:\x20','Payment\x20needs\x20review.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Review\x20&\x20pay','ETH','not\x20started','\x20bytes\x20·\x20','IMD','[m]\x20Actions\x20·\x20delete\x20local\x20record','reason','detail','Activity\x20shows\x20the\x20saved\x20transaction\x20progress.','jobId','kind','[d]\x20Files','output','objective','unknown','length','Preparing\x20payment','tasks','\x0a\x0a[m]\x20Worker\x20actions\x20·\x20[l]\x20Logs\x20·\x20[g]\x20Diagnostics','balanceError','Saved\x20locally.\x20Not\x20published.','\x0aEnvironment\x20wallet\x20·\x20import\x20it\x20here\x20to\x20save\x20it\x20encrypted','code','Loading\x20balances\x20on\x20all\x20networks...','pendingTransaction','state','[o]\x20Review\x20quote\x20and\x20pay','find','REFUSED','\x0aVerdict:\x20','Continues\x20task:\x20','nodes','Loading\x20details...','Cancelled\x20requests\x20do\x20not\x20produce\x20files.'];_0x5586=function(){return _0x25f746;};return _0x5586();}import{networkWorkerText as _0x22a0a2}from'../lib/network-workers.mjs';function k(_0x517954,_0x3681a3){const _0x3482d6=_0x4b1b12(_0x517954)['replace'](/\s+/g,'\x20');if(_0xecb8c(_0x3482d6)<=_0x3681a3)return _0x3482d6;let _0x1adcbe='';for(const _0x2dfacd of _0x3482d6){if(_0xecb8c(_0x1adcbe+_0x2dfacd)>_0x3681a3-0x1)break;_0x1adcbe+=_0x2dfacd;}return _0x1adcbe+'~';}function T(_0x4a701f,_0x1f27f8){const _0x44ae62=_0x1ed5;return _0x129845(_0x4b1b12(_0x4a701f),Math['max'](0x1,_0x1f27f8),{'hard':!0x0,'trim':!0x1})[_0x44ae62(0x23a)]('\x0a');}function o(_0x14b511){const _0x4ea435=_0x1ed5;return typeof _0x14b511==_0x4ea435(0x238)?_0x14b511:_0x14b511&&_0x4ea435(0x237)in _0x14b511?[_0x14b511[_0x4ea435(0x240)]?_0x4ea435(0x21b)+_0x14b511[_0x4ea435(0x240)]+')':null,_0x14b511['stdout'],_0x14b511[_0x4ea435(0x21a)]][_0x4ea435(0x239)](Boolean)[_0x4ea435(0x25d)]('\x0a'):JSON[_0x4ea435(0x20c)](_0x14b511,null,0x2);}function m(_0x31f5e1){const _0x49ef52=_0x1ed5;return _0x31f5e1==='draft'?_0x49ef52(0x1f1):_0x31f5e1===_0x49ef52(0x1e0)?_0x49ef52(0x219):[_0x49ef52(0x23d),_0x49ef52(0x236)]['includes'](_0x31f5e1)?_0x49ef52(0x1fa):[_0x49ef52(0x1e2),_0x49ef52(0x21e)][_0x49ef52(0x22f)](_0x31f5e1)?'Payment\x20result\x20pending':_0x31f5e1===_0x49ef52(0x1eb)?_0x49ef52(0x273):_0x31f5e1===_0x49ef52(0x1ff)?'Cancelled':_0x31f5e1;}const y=new Set([_0x5c237e(0x23d),_0x5c237e(0x236),'transaction_pending',_0x5c237e(0x21e)]);function A(_0x36384e,_0x4f5e2e){const _0x2dea38=_0x5c237e;return _0x36384e?_0x36384e[_0x2dea38(0x23e)]?[_0x2dea38(0x1e5),_0x2dea38(0x221)]:_0x4f5e2e===_0x2dea38(0x203)?[_0x2dea38(0x26e),_0x2dea38(0x226)]:_0x36384e[_0x2dea38(0x26c)]?['[d]\x20Files',_0x2dea38(0x226),..._0x36384e['state']===_0x2dea38(0x23c)?[_0x2dea38(0x1ec)]:[],_0x2dea38(0x221)]:[_0x36384e['canResume']?_0x2dea38(0x25a)+(_0x36384e[_0x2dea38(0x208)]?_0x2dea38(0x263):_0x2dea38(0x22c)):null,_0x36384e[_0x2dea38(0x208)]?'[x]\x20Cancel':null,'[m]\x20Actions'][_0x2dea38(0x239)](Boolean):[];}function g(_0x15e6fa){const _0x157638=_0x5c237e,_0x5977ce=_0x15e6fa[_0x157638(0x22a)][_0x157638(0x20d)]()+(_0x15e6fa['price']?_0x157638(0x1ed)+_0x15e6fa[_0x157638(0x20f)]+_0x157638(0x249):'');return _0x15e6fa[_0x157638(0x202)]?_0x5977ce+_0x157638(0x243)+_0x15e6fa[_0x157638(0x202)]:_0x5977ce+'\x0a'+_0x15e6fa[_0x157638(0x213)][_0x157638(0x258)](_0x2414be=>'\x20\x20'+_0x2414be[_0x157638(0x218)]+':\x20'+_0x2414be['balance']+(_0x2414be[_0x157638(0x218)]===_0x157638(0x264)?'\x20\x20(pays\x20gas)':''))['join']('\x0a');}function E(_0x12275c){const _0x3b56e0=_0x5c237e;return(_0x12275c[_0x3b56e0(0x217)]??_0x3b56e0(0x267))+_0x3b56e0(0x206)+(_0x12275c['paymentChain']===_0x3b56e0(0x215)?_0x3b56e0(0x21c):_0x3b56e0(0x1f3));}function _0x1ed5(_0x5c5e1c,_0x558656){_0x5c5e1c=_0x5c5e1c-0x1de;const _0x1ed500=_0x5586();let _0x127853=_0x1ed500[_0x5c5e1c];return _0x127853;}function R(_0x562a86){const _0xd6a051=_0x5c237e,_0x2a01cb=_0x562a86[_0xd6a051(0x211)][_0xd6a051(0x27e)](_0x1d3d89=>_0x1d3d89['id']===_0x562a86[_0xd6a051(0x251)]),_0x40eda9=_0x562a86[_0xd6a051(0x26a)];if(_0x562a86['detailLoading']&&!(_0x562a86[_0xd6a051(0x1e1)]===_0xd6a051(0x210)&&_0x40eda9))return _0xd6a051(0x283);if(!_0x40eda9)return _0xd6a051(0x201);if(_0x40eda9['output']!==void 0x0)return o(_0x40eda9[_0xd6a051(0x26f)]);if(_0x562a86[_0xd6a051(0x1e1)]===_0xd6a051(0x210)){if(!_0x40eda9[_0xd6a051(0x1f6)])return _0xd6a051(0x245);const _0x3ded45=_0x40eda9['address']===_0x562a86[_0xd6a051(0x1fb)],_0x2364b7=_0x562a86['detailLoading']&&!_0x40eda9['networks']?_0xd6a051(0x27a):_0x40eda9[_0xd6a051(0x276)]?'Balances\x20unavailable:\x20'+_0x40eda9[_0xd6a051(0x276)]:(_0x40eda9[_0xd6a051(0x209)]??[])[_0xd6a051(0x258)](g)[_0xd6a051(0x25d)]('\x0a\x0a');return(_0x3ded45?'CURRENT\x20WALLET\x0a':_0xd6a051(0x21f))+_0x40eda9['address']+_0xd6a051(0x1ee)+(_0x40eda9['source']===_0xd6a051(0x235)?'':_0xd6a051(0x278))+'\x0a\x0a'+_0x2364b7+_0xd6a051(0x1e9)+(_0x3ded45?'':_0xd6a051(0x24b))+_0xd6a051(0x242);}if(_0x562a86['view']===_0xd6a051(0x1fd))return _0x40eda9['kind']===_0xd6a051(0x1f5)?_0x22a0a2(_0x40eda9):_0x40eda9[_0xd6a051(0x253)]?'Worker\x20not\x20deployed\x0a\x0a[m]\x20Open\x20worker\x20actions\x20to\x20deploy\x20the\x20official\x20release,\x20pair\x20a\x20wallet,\x20register,\x20and\x20install\x20its\x20service.':_0x40eda9[_0xd6a051(0x26f)]?o(_0x40eda9[_0xd6a051(0x26f)]):_0xd6a051(0x241)+o(_0x40eda9[_0xd6a051(0x224)])+'\x0a\x0aSTANDING\x0a'+(_0x40eda9[_0xd6a051(0x205)]?o(_0x40eda9['standing']):_0x40eda9['standingError']??_0xd6a051(0x1f4))+_0xd6a051(0x275);if(_0x40eda9[_0xd6a051(0x1e7)]==='draft')return[_0xd6a051(0x20e),_0x40eda9[_0xd6a051(0x270)],'',_0xd6a051(0x1e8),_0xd6a051(0x277),..._0x40eda9[_0xd6a051(0x252)]?[_0xd6a051(0x281)+_0x40eda9[_0xd6a051(0x252)]]:[],_0xd6a051(0x227),'',_0x562a86[_0xd6a051(0x1fb)]?_0xd6a051(0x25c):_0xd6a051(0x1fc),'','[o]\x20Continue\x20draft','[m]\x20Actions\x20\xB7\x20delete\x20draft']['join']('\x0a');if(_0x562a86[_0xd6a051(0x1df)]===_0xd6a051(0x25e)){if(!_0x2a01cb?.[_0xd6a051(0x26c)])return _0x40eda9[_0xd6a051(0x25f)]?_0xd6a051(0x284):'Files\x20become\x20available\x20after\x20payment\x20and\x20task\x20execution.';if(!_0x562a86[_0xd6a051(0x20a)])return'Press\x20d\x20to\x20fetch\x20the\x20result\x20files.';const _0x6debc8=_0x562a86[_0xd6a051(0x20a)]['files']??[];return _0xd6a051(0x22d)+(_0x6debc8['length']?_0x6debc8[_0xd6a051(0x258)](_0x4512f5=>_0x4512f5[_0xd6a051(0x1f8)]+'\x0a'+_0x4512f5[_0xd6a051(0x230)]+_0xd6a051(0x266)+_0x4512f5[_0xd6a051(0x231)]+'\x0a'+_0x4512f5['url'])[_0xd6a051(0x25d)]('\x0a\x0a')+'\x0a\x0a[s]\x20Save\x20verified\x20files':_0xd6a051(0x225)+_0x562a86[_0xd6a051(0x20a)][_0xd6a051(0x27c)]);}if(_0x562a86['tab']==='Activity')return _0x40eda9[_0xd6a051(0x25f)]?_0xd6a051(0x223)+_0x40eda9[_0xd6a051(0x25f)]+_0xd6a051(0x20b):_0x40eda9[_0xd6a051(0x1eb)]?_0xd6a051(0x1f2)+_0x40eda9[_0xd6a051(0x1eb)][_0xd6a051(0x1e4)][_0xd6a051(0x258)](_0xf5ece5=>_0xf5ece5[_0xd6a051(0x26d)][_0xd6a051(0x1ea)]('_','\x20')+':\x20'+(_0xf5ece5[_0xd6a051(0x1e7)]??_0xd6a051(0x265))+(_0xf5ece5[_0xd6a051(0x24a)]?'\x0a'+_0xf5ece5[_0xd6a051(0x24a)]:''))[_0xd6a051(0x25d)]('\x0a\x0a'):_0xd6a051(0x260)+(_0x40eda9[_0xd6a051(0x282)]?.[_0xd6a051(0x272)]?_0x40eda9[_0xd6a051(0x282)][_0xd6a051(0x258)](_0x2354a8=>_0x2354a8[_0xd6a051(0x1e3)]+':\x20'+_0x2354a8[_0xd6a051(0x27c)]+_0xd6a051(0x229)+_0x2354a8[_0xd6a051(0x222)]+(_0x2354a8[_0xd6a051(0x220)]?_0xd6a051(0x280)+_0x2354a8[_0xd6a051(0x220)]['status']:''))[_0xd6a051(0x25d)]('\x0a\x0a'):_0xd6a051(0x257))+(_0x40eda9[_0xd6a051(0x21d)]?.[_0xd6a051(0x272)]?_0xd6a051(0x23f)+o(_0x40eda9['reviews']):'');const _0x3b6b7e=_0x40eda9[_0xd6a051(0x27c)]??_0x40eda9[_0xd6a051(0x1e7)]??_0x2a01cb?.[_0xd6a051(0x27c)]??_0xd6a051(0x271),_0x4d76b1=_0x40eda9[_0xd6a051(0x27b)]??_0x40eda9[_0xd6a051(0x24f)],_0x2c7692=y[_0xd6a051(0x254)](_0x3b6b7e)||!!_0x4d76b1?.[_0xd6a051(0x24a)],_0x27d1ab=['YOUR\x20REQUEST',_0x40eda9[_0xd6a051(0x270)]??_0x2a01cb?.['title']??'','','Status:\x20'+m(_0x3b6b7e)];_0x40eda9[_0xd6a051(0x24c)]&&_0x27d1ab['push'](_0xd6a051(0x1de)+_0x40eda9[_0xd6a051(0x24c)]),_0x40eda9[_0xd6a051(0x22e)]&&_0x27d1ab[_0xd6a051(0x24e)](_0xd6a051(0x244)+_0x40eda9[_0xd6a051(0x22e)]['id']),_0x40eda9['paidBy']&&_0x27d1ab[_0xd6a051(0x24e)]('Paid\x20by:\x20'+_0x40eda9[_0xd6a051(0x246)]),_0x40eda9[_0xd6a051(0x247)]&&_0x27d1ab[_0xd6a051(0x24e)]('Payment:\x20'+_0x40eda9[_0xd6a051(0x247)]),_0x4d76b1?.[_0xd6a051(0x24a)]&&_0x27d1ab[_0xd6a051(0x24e)](_0xd6a051(0x248)+_0x4d76b1[_0xd6a051(0x24a)]+(_0x4d76b1['kind']?'\x20('+_0x4d76b1[_0xd6a051(0x26d)]+')':'')),_0x4d76b1?.[_0xd6a051(0x269)]&&_0x27d1ab[_0xd6a051(0x24e)](_0xd6a051(0x261)+_0x4d76b1[_0xd6a051(0x269)]),_0x4d76b1?.[_0xd6a051(0x216)]&&_0x27d1ab['push']('Explorer:\x20'+_0x4d76b1['explorerUrl']),_0x2c7692&&_0x27d1ab['push']('','PAYMENT\x20RECOVERY',_0xd6a051(0x262));const _0x45388f=_0x40eda9[_0xd6a051(0x214)]??_0x2a01cb?.[_0xd6a051(0x214)];if(_0x45388f&&_0x27d1ab[_0xd6a051(0x24e)]('Pay\x20with:\x20'+E({..._0x40eda9,'paymentChain':_0x45388f})+(_0x2a01cb?.['canCancel']?_0xd6a051(0x24d):'')),_0x40eda9[_0xd6a051(0x1eb)]){const _0xd6212f=_0x40eda9[_0xd6a051(0x1eb)][_0xd6a051(0x200)]??{};_0x27d1ab[_0xd6a051(0x24e)]('','PAYMENT\x20PLAN',..._0x40eda9['funding'][_0xd6a051(0x232)]==='IMD'?[]:[_0xd6a051(0x1e6)+(_0xd6212f[_0xd6a051(0x212)]??_0x40eda9['funding']['amount'])+',\x20converted\x20to\x20IMD'],'Gas\x20(network\x20fee,\x20ETH):\x20at\x20most\x20'+(_0xd6212f[_0xd6a051(0x1f0)]??_0x40eda9[_0xd6a051(0x1eb)][_0xd6a051(0x23b)]+_0xd6a051(0x259)),_0xd6a051(0x26b));}return _0x40eda9['delivery']&&_0x27d1ab[_0xd6a051(0x24e)]('',_0xd6a051(0x207),o(_0x40eda9[_0xd6a051(0x233)])),_0x40eda9['launch']&&_0x27d1ab['push']('',_0xd6a051(0x256),o(_0x40eda9[_0xd6a051(0x25b)])),_0x40eda9[_0xd6a051(0x255)]?.[_0xd6a051(0x272)]&&_0x27d1ab['push']('',_0xd6a051(0x27f),..._0x40eda9[_0xd6a051(0x255)][_0xd6a051(0x258)](_0x5be49e=>_0x5be49e[_0xd6a051(0x26a)]??_0x5be49e[_0xd6a051(0x279)])),_0x40eda9[_0xd6a051(0x1f9)]&&_0x27d1ab['push']('',_0xd6a051(0x1ef),_0x40eda9[_0xd6a051(0x1f9)]),_0x40eda9[_0xd6a051(0x204)]&&_0x27d1ab[_0xd6a051(0x24e)]('',_0xd6a051(0x1f7)+_0x40eda9[_0xd6a051(0x204)]),_0x40eda9[_0xd6a051(0x250)]&&_0x27d1ab[_0xd6a051(0x24e)](_0xd6a051(0x248)+_0x40eda9[_0xd6a051(0x250)]),_0x2a01cb?.[_0xd6a051(0x26c)]?_0x562a86[_0xd6a051(0x1e1)]===_0xd6a051(0x274)&&_0x27d1ab['push']('','[m]\x20Task\x20actions','Published\x20tasks\x20cannot\x20currently\x20be\x20cancelled\x20or\x20refunded\x20from\x20Colony.'):_0x40eda9[_0xd6a051(0x25f)]?_0x27d1ab[_0xd6a051(0x24e)]('','Cancelled\x20locally.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.',_0xd6a051(0x268)):(_0x2a01cb?.['canResume']&&_0x27d1ab[_0xd6a051(0x24e)]('',_0x2a01cb['canCancel']?_0xd6a051(0x27d):_0xd6a051(0x228),_0x2c7692?_0xd6a051(0x234):_0xd6a051(0x22b)),_0x2a01cb?.['canCancel']&&_0x27d1ab[_0xd6a051(0x24e)](_0xd6a051(0x1fe)),!_0x2a01cb?.[_0xd6a051(0x208)]&&_0x2a01cb?.['requestKey']&&_0x27d1ab[_0xd6a051(0x24e)]('','Check\x20the\x20payment\x20result\x20before\x20retrying.\x20This\x20order\x20cannot\x20currently\x20be\x20cancelled\x20from\x20Colony.')),_0x27d1ab[_0xd6a051(0x25d)]('\x0a');}export{_0x4b1b12 as clean,R as detailText,T as lines,o as outputText,k as short,m as statusLabel,A as taskActions};
|
|
1
|
+
const _0x4a47cf=_0x29d1;function _0x6929(){const _0xb8d65e=['payment_reconciling','LAUNCH','Payment:\x20at\x20most\x20','robinhood','YOUR\x20REQUEST','reason','paymentStatus','\x20·\x20task\x20price\x20','\x20\x20(pays\x20gas)','status','Cancelled\x20locally.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Transaction:\x20','Continue\x20payment\x20to\x20check\x20the\x20original\x20payment.','project','IMD','verdict','transaction','cancelledAt','canCancel','chainName','kind','Activity','[o]\x20Continue\x20draft','network-worker','toUpperCase','[o]\x20','Balances\x20unavailable:\x20','transactionHash','launch','configured','exitCode','selectedId','stringify','Not\x20available','[m]\x20Actions\x20·\x20delete\x20local\x20record','lastError','reviews','Create\x20or\x20import\x20a\x20wallet\x20in\x20Wallets,\x20then\x20continue\x20this\x20draft.','not\x20started','files','Pay\x20with:\x20','result','orderId','parent','[m]\x20Actions','paymentChain','error','Continue\x20here\x20after\x20adding\x20funds.\x20Unpaid\x20quotes\x20and\x20exchange\x20rates\x20are\x20refreshed.','Command\x20failed\x20(exit\x20code\x20','payWith','[c]\x20Changes','hash','\x0a[u]\x20Use\x20this\x20wallet\x20for\x20payments','Review\x20&\x20pay','No\x20wallet\x20selected.\x0a\x0aUse\x20Wallet\x20management\x20to\x20create,\x20import\x20or\x20restore\x20a\x20wallet.\x0a\x0aYour\x20key\x20is\x20encrypted\x20locally.\x0aBrowsing\x20does\x20not\x20need\x20a\x20wallet.','source','balance','Status:\x20Draft','Project:\x20','address','jobId','Payment\x20needs\x20review.\x20Continue\x20payment\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','join','\x20ETH','explore','Preparing\x20payment','\x20bytes\x20·\x20','draft','\x0a\x0a[s]\x20Save\x20verified\x20files','pendingTransaction','ETH','Order:\x20','coins','mediaType','objective','find','payment_failed','transaction_pending','networkFeeCap','unknown','Resume','EXECUTION\x0a\x0a','output','includes','replaceAll','SAVED\x20WALLET\x0a','Ethereum','coin','DELIVERY','detail','key','cancelled','PAYMENT\x20RECOVERY','Published\x20tasks\x20cannot\x20currently\x20be\x20cancelled\x20or\x20refunded\x20from\x20Colony.','DELIVERED\x20FILES\x0a\x0a','detailLoading','\x20on\x20','payment','Continue\x20this\x20draft\x20to\x20review\x20and\x20publish.','Files','Continues\x20task:\x20','challenged','explorerUrl','service','tab','price','\x0a[m]\x20Selected\x20wallet\x20actions','notInstalled','completed','wallet','stdout','length','gas','No\x20execution\x20steps\x20reported\x20yet.','Loading\x20details...','[m]\x20Actions\x20·\x20delete\x20draft','expired','items','REQUEST\x20CANCELLED\x0a\x0aCancelled\x20locally:\x20','url','refusalProblems','[x]\x20Cancel\x20request\x20·\x20no\x20payment','amount','\x0aSame\x20address\x20on\x20Ethereum\x20and\x20Robinhood\x20Chain.\x20Balances\x20are\x20separate\x20per\x20network.','Payment\x20result\x20pending','Explorer:\x20','Select\x20an\x20item\x20to\x20view\x20details.','Payment:\x20','[o]\x20Review\x20quote\x20and\x20pay','Awaiting\x20payment','canResume','REFUSED','\x0a\x0aPaying:\x20Colony\x20picks\x20a\x20network\x20and\x20coin\x20with\x20enough\x20balance\x20for\x20each\x20task.\x20Gas\x20(network\x20fee)\x20is\x20always\x20paid\x20in\x20ETH\x20on\x20the\x20same\x20network.\x0a\x0a[d]\x20Receive\x20funds\x20/\x20QR\x20code\x0a[b]\x20Back\x20up\x20this\x20wallet','\x0a\x0aREVIEWS\x0a','networks','nodes','balanceError','filter','Payment:\x20picked\x20from\x20your\x20balances\x20when\x20you\x20continue','bytes','view','title','delivery','LAST\x20ERROR','\x0aNo\x20payment\x20was\x20signed\x20or\x20submitted.','[o]\x20Inspect\x20/\x20resume\x20saved\x20order','\x20IMD','Saved\x20locally.\x20Not\x20published.','funding','standing','map','Draft','[s]\x20Save','CURRENT\x20WALLET\x0a','No\x20delivered\x20files\x20yet.\x0aTask\x20state:\x20','replace','workers','Activity\x20shows\x20the\x20saved\x20transaction\x20progress.','\x0aEnvironment\x20wallet\x20·\x20import\x20it\x20here\x20to\x20save\x20it\x20encrypted','requestKey','Paid\x20by:\x20','local','paidBy','state','SERVICE\x0a','\x0aAttempt:\x20','push'];_0x6929=function(){return _0xb8d65e;};return _0x6929();}import{terminalText as _0x3128ca}from'../lib/terminal-text.mjs';import _0x38be30 from'wrap-ansi';import _0x19a1f1 from'string-width';import{networkWorkerText as _0x5bcf72}from'../lib/network-workers.mjs';function k(_0xe5d4ac,_0x492301){const _0x2b86d4=_0x29d1,_0x516d4a=_0x3128ca(_0xe5d4ac)[_0x2b86d4(0x1d3)](/\s+/g,'\x20');if(_0x19a1f1(_0x516d4a)<=_0x492301)return _0x516d4a;let _0x3f97a3='';for(const _0x394d54 of _0x516d4a){if(_0x19a1f1(_0x3f97a3+_0x394d54)>_0x492301-0x1)break;_0x3f97a3+=_0x394d54;}return _0x3f97a3+'~';}function T(_0x415776,_0x1773ac){return _0x38be30(_0x3128ca(_0x415776),Math['max'](0x1,_0x1773ac),{'hard':!0x0,'trim':!0x1})['split']('\x0a');}function o(_0x228727){const _0x324209=_0x29d1;return typeof _0x228727=='string'?_0x228727:_0x228727&&'stdout'in _0x228727?[_0x228727[_0x324209(0x156)]?_0x324209(0x168)+_0x228727[_0x324209(0x156)]+')':null,_0x228727[_0x324209(0x1a6)],_0x228727['stderr']][_0x324209(0x1c1)](Boolean)['join']('\x0a'):JSON[_0x324209(0x158)](_0x228727,null,0x2);}function m(_0x2d1d31){const _0x1d67fc=_0x29d1;return _0x2d1d31===_0x1d67fc(0x17b)?_0x1d67fc(0x1cf):_0x2d1d31===_0x1d67fc(0x19d)?_0x1d67fc(0x1b9):[_0x1d67fc(0x1ac),_0x1d67fc(0x184)][_0x1d67fc(0x18b)](_0x2d1d31)?'Payment\x20needs\x20review':[_0x1d67fc(0x185),_0x1d67fc(0x138)][_0x1d67fc(0x18b)](_0x2d1d31)?_0x1d67fc(0x1b4):_0x2d1d31==='funding'?_0x1d67fc(0x179):_0x2d1d31===_0x1d67fc(0x193)?'Cancelled':_0x2d1d31;}const y=new Set([_0x4a47cf(0x1ac),_0x4a47cf(0x184),_0x4a47cf(0x185),_0x4a47cf(0x138)]);function A(_0x120732,_0x4797e5){const _0x3db012=_0x4a47cf;return _0x120732?_0x120732['draftId']?[_0x3db012(0x14e),_0x3db012(0x164)]:_0x4797e5===_0x3db012(0x178)?['[d]\x20Files',_0x3db012(0x1d0),'[v]\x20IMD\x20link']:_0x120732['jobId']?['[d]\x20Files',_0x3db012(0x1d0),..._0x120732[_0x3db012(0x1db)]===_0x3db012(0x1a4)?[_0x3db012(0x16a)]:[],'[m]\x20Actions','[v]\x20IMD\x20link']:[_0x120732[_0x3db012(0x1ba)]?_0x3db012(0x151)+(_0x120732[_0x3db012(0x14a)]?_0x3db012(0x16d):_0x3db012(0x188)):null,_0x120732[_0x3db012(0x14a)]?'[x]\x20Cancel':null,_0x3db012(0x164)][_0x3db012(0x1c1)](Boolean):[];}function g(_0xe8b769){const _0x5d0aeb=_0x4a47cf,_0x45292f=_0xe8b769[_0x5d0aeb(0x14b)][_0x5d0aeb(0x150)]()+(_0xe8b769[_0x5d0aeb(0x1a1)]?_0x5d0aeb(0x13f)+_0xe8b769[_0x5d0aeb(0x1a1)]+_0x5d0aeb(0x1ca):'');return _0xe8b769[_0x5d0aeb(0x166)]?_0x45292f+'\x0aBalances\x20unavailable:\x20'+_0xe8b769['error']:_0x45292f+'\x0a'+_0xe8b769[_0x5d0aeb(0x180)][_0x5d0aeb(0x1ce)](_0x1d0d62=>'\x20\x20'+_0x1d0d62['symbol']+':\x20'+_0x1d0d62[_0x5d0aeb(0x170)]+(_0x1d0d62['symbol']===_0x5d0aeb(0x17e)?_0x5d0aeb(0x140):''))[_0x5d0aeb(0x176)]('\x0a');}function _0x29d1(_0x19f5f7,_0x6929c0){_0x19f5f7=_0x19f5f7-0x138;const _0x29d1ed=_0x6929();let _0x1a611a=_0x29d1ed[_0x19f5f7];return _0x1a611a;}function E(_0x1ec0eb){const _0x49905a=_0x4a47cf;return(_0x1ec0eb[_0x49905a(0x169)]??'IMD')+_0x49905a(0x198)+(_0x1ec0eb[_0x49905a(0x165)]===_0x49905a(0x13b)?'Robinhood\x20Chain':_0x49905a(0x18e));}function R(_0x5d355b){const _0x1b36c1=_0x4a47cf,_0x51b4d6=_0x5d355b[_0x1b36c1(0x1ad)][_0x1b36c1(0x183)](_0x1f1da5=>_0x1f1da5['id']===_0x5d355b[_0x1b36c1(0x157)]),_0x2f436a=_0x5d355b['detail'];if(_0x5d355b[_0x1b36c1(0x197)]&&!(_0x5d355b[_0x1b36c1(0x1c4)]===_0x1b36c1(0x1a5)&&_0x2f436a))return _0x1b36c1(0x1aa);if(!_0x2f436a)return _0x1b36c1(0x1b6);if(_0x2f436a[_0x1b36c1(0x18a)]!==void 0x0)return o(_0x2f436a[_0x1b36c1(0x18a)]);if(_0x5d355b[_0x1b36c1(0x1c4)]===_0x1b36c1(0x1a5)){if(!_0x2f436a[_0x1b36c1(0x155)])return _0x1b36c1(0x16e);const _0x3f70a7=_0x2f436a[_0x1b36c1(0x173)]===_0x5d355b[_0x1b36c1(0x173)],_0x4329b9=_0x5d355b['detailLoading']&&!_0x2f436a[_0x1b36c1(0x1be)]?'Loading\x20balances\x20on\x20all\x20networks...':_0x2f436a['balanceError']?_0x1b36c1(0x152)+_0x2f436a[_0x1b36c1(0x1c0)]:(_0x2f436a[_0x1b36c1(0x1be)]??[])[_0x1b36c1(0x1ce)](g)[_0x1b36c1(0x176)]('\x0a\x0a');return(_0x3f70a7?_0x1b36c1(0x1d1):_0x1b36c1(0x18d))+_0x2f436a[_0x1b36c1(0x173)]+_0x1b36c1(0x1b3)+(_0x2f436a[_0x1b36c1(0x16f)]===_0x1b36c1(0x1d9)?'':_0x1b36c1(0x1d6))+'\x0a\x0a'+_0x4329b9+_0x1b36c1(0x1bc)+(_0x3f70a7?'':_0x1b36c1(0x16c))+_0x1b36c1(0x1a2);}if(_0x5d355b[_0x1b36c1(0x1c4)]===_0x1b36c1(0x1d4))return _0x2f436a['kind']===_0x1b36c1(0x14f)?_0x5bcf72(_0x2f436a):_0x2f436a[_0x1b36c1(0x1a3)]?'Worker\x20not\x20deployed\x0a\x0a[m]\x20Open\x20worker\x20actions\x20to\x20deploy\x20the\x20official\x20release,\x20pair\x20a\x20wallet,\x20register,\x20and\x20install\x20its\x20service.':_0x2f436a['output']?o(_0x2f436a[_0x1b36c1(0x18a)]):_0x1b36c1(0x1dc)+o(_0x2f436a[_0x1b36c1(0x19f)])+'\x0a\x0aSTANDING\x0a'+(_0x2f436a[_0x1b36c1(0x1cd)]?o(_0x2f436a[_0x1b36c1(0x1cd)]):_0x2f436a['standingError']??_0x1b36c1(0x159))+'\x0a\x0a[m]\x20Worker\x20actions\x20·\x20[l]\x20Logs\x20·\x20[g]\x20Diagnostics';if(_0x2f436a[_0x1b36c1(0x141)]===_0x1b36c1(0x17b))return['YOUR\x20REQUEST',_0x2f436a[_0x1b36c1(0x182)],'',_0x1b36c1(0x171),_0x1b36c1(0x1cb),..._0x2f436a[_0x1b36c1(0x163)]?[_0x1b36c1(0x19c)+_0x2f436a[_0x1b36c1(0x163)]]:[],_0x1b36c1(0x1c2),'',_0x5d355b[_0x1b36c1(0x173)]?_0x1b36c1(0x19a):_0x1b36c1(0x15d),'','[o]\x20Continue\x20draft',_0x1b36c1(0x1ab)]['join']('\x0a');if(_0x5d355b[_0x1b36c1(0x1a0)]===_0x1b36c1(0x19b)){if(!_0x51b4d6?.[_0x1b36c1(0x174)])return _0x2f436a[_0x1b36c1(0x149)]?'Cancelled\x20requests\x20do\x20not\x20produce\x20files.':'Files\x20become\x20available\x20after\x20payment\x20and\x20task\x20execution.';if(!_0x5d355b[_0x1b36c1(0x161)])return'Press\x20d\x20to\x20fetch\x20the\x20result\x20files.';const _0xaac370=_0x5d355b[_0x1b36c1(0x161)][_0x1b36c1(0x15f)]??[];return _0x1b36c1(0x196)+(_0xaac370[_0x1b36c1(0x1a7)]?_0xaac370[_0x1b36c1(0x1ce)](_0x350d5d=>_0x350d5d['path']+'\x0a'+_0x350d5d[_0x1b36c1(0x1c3)]+_0x1b36c1(0x17a)+_0x350d5d[_0x1b36c1(0x181)]+'\x0a'+_0x350d5d[_0x1b36c1(0x1af)])[_0x1b36c1(0x176)]('\x0a\x0a')+_0x1b36c1(0x17c):_0x1b36c1(0x1d2)+_0x5d355b[_0x1b36c1(0x161)][_0x1b36c1(0x1db)]);}if(_0x5d355b['tab']===_0x1b36c1(0x14d))return _0x2f436a[_0x1b36c1(0x149)]?_0x1b36c1(0x1ae)+_0x2f436a['cancelledAt']+_0x1b36c1(0x1c8):_0x2f436a[_0x1b36c1(0x1cc)]?'PAYMENT\x20PREPARATION\x0a\x0a'+_0x2f436a[_0x1b36c1(0x1cc)]['steps']['map'](_0xe35315=>_0xe35315[_0x1b36c1(0x14c)][_0x1b36c1(0x18c)]('_','\x20')+':\x20'+(_0xe35315[_0x1b36c1(0x141)]??_0x1b36c1(0x15e))+(_0xe35315['hash']?'\x0a'+_0xe35315['hash']:''))[_0x1b36c1(0x176)]('\x0a\x0a'):_0x1b36c1(0x189)+(_0x2f436a[_0x1b36c1(0x1bf)]?.['length']?_0x2f436a['nodes'][_0x1b36c1(0x1ce)](_0x15e0bb=>_0x15e0bb[_0x1b36c1(0x192)]+':\x20'+_0x15e0bb[_0x1b36c1(0x1db)]+_0x1b36c1(0x1dd)+_0x15e0bb['attempt']+(_0x15e0bb[_0x1b36c1(0x147)]?'\x0aVerdict:\x20'+_0x15e0bb[_0x1b36c1(0x147)][_0x1b36c1(0x141)]:''))[_0x1b36c1(0x176)]('\x0a\x0a'):_0x1b36c1(0x1a9))+(_0x2f436a['reviews']?.[_0x1b36c1(0x1a7)]?_0x1b36c1(0x1bd)+o(_0x2f436a[_0x1b36c1(0x15c)]):'');const _0x2f8d78=_0x2f436a['state']??_0x2f436a[_0x1b36c1(0x141)]??_0x51b4d6?.[_0x1b36c1(0x1db)]??_0x1b36c1(0x187),_0x57b59e=_0x2f436a[_0x1b36c1(0x17d)]??_0x2f436a[_0x1b36c1(0x148)],_0x35353b=y['has'](_0x2f8d78)||!!_0x57b59e?.['hash'],_0xf0936=[_0x1b36c1(0x13c),_0x2f436a[_0x1b36c1(0x182)]??_0x51b4d6?.[_0x1b36c1(0x1c5)]??'','','Status:\x20'+m(_0x2f8d78)];_0x2f436a['template']&&_0xf0936[_0x1b36c1(0x1de)]('Type:\x20'+_0x2f436a['template']),_0x2f436a[_0x1b36c1(0x145)]&&_0xf0936[_0x1b36c1(0x1de)](_0x1b36c1(0x172)+_0x2f436a['project']['id']),_0x2f436a[_0x1b36c1(0x1da)]&&_0xf0936[_0x1b36c1(0x1de)](_0x1b36c1(0x1d8)+_0x2f436a['paidBy']),_0x2f436a[_0x1b36c1(0x13e)]&&_0xf0936['push'](_0x1b36c1(0x1b7)+_0x2f436a['paymentStatus']),_0x57b59e?.['hash']&&_0xf0936[_0x1b36c1(0x1de)](_0x1b36c1(0x143)+_0x57b59e[_0x1b36c1(0x16b)]+(_0x57b59e[_0x1b36c1(0x14c)]?'\x20('+_0x57b59e['kind']+')':'')),_0x57b59e?.['reason']&&_0xf0936[_0x1b36c1(0x1de)]('Payment\x20note:\x20'+_0x57b59e[_0x1b36c1(0x13d)]),_0x57b59e?.[_0x1b36c1(0x19e)]&&_0xf0936['push'](_0x1b36c1(0x1b5)+_0x57b59e[_0x1b36c1(0x19e)]),_0x35353b&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x194),_0x1b36c1(0x175));const _0x17131c=_0x2f436a[_0x1b36c1(0x165)]??_0x51b4d6?.[_0x1b36c1(0x165)];if(_0x17131c&&_0xf0936[_0x1b36c1(0x1de)](_0x1b36c1(0x160)+E({..._0x2f436a,'paymentChain':_0x17131c})+(_0x51b4d6?.[_0x1b36c1(0x14a)]?'\x20\xB7\x20can\x20change\x20before\x20paying':'')),_0x2f436a[_0x1b36c1(0x1cc)]){const _0x30af8f=_0x2f436a[_0x1b36c1(0x1cc)]['display']??{};_0xf0936[_0x1b36c1(0x1de)]('','PAYMENT\x20PLAN',..._0x2f436a[_0x1b36c1(0x1cc)][_0x1b36c1(0x18f)]===_0x1b36c1(0x146)?[]:[_0x1b36c1(0x13a)+(_0x30af8f[_0x1b36c1(0x199)]??_0x2f436a['funding'][_0x1b36c1(0x1b2)])+',\x20converted\x20to\x20IMD'],'Gas\x20(network\x20fee,\x20ETH):\x20at\x20most\x20'+(_0x30af8f[_0x1b36c1(0x1a8)]??_0x2f436a[_0x1b36c1(0x1cc)][_0x1b36c1(0x186)]+_0x1b36c1(0x177)),_0x1b36c1(0x1d5));}return _0x2f436a['delivery']&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x190),o(_0x2f436a[_0x1b36c1(0x1c6)])),_0x2f436a['launch']&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x139),o(_0x2f436a[_0x1b36c1(0x154)])),_0x2f436a[_0x1b36c1(0x1b0)]?.['length']&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x1bb),..._0x2f436a[_0x1b36c1(0x1b0)][_0x1b36c1(0x1ce)](_0x203850=>_0x203850[_0x1b36c1(0x191)]??_0x203850['code'])),_0x2f436a[_0x1b36c1(0x15b)]&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x1c7),_0x2f436a['lastError']),_0x2f436a[_0x1b36c1(0x162)]&&_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x17f)+_0x2f436a[_0x1b36c1(0x162)]),_0x2f436a[_0x1b36c1(0x153)]&&_0xf0936['push'](_0x1b36c1(0x143)+_0x2f436a[_0x1b36c1(0x153)]),_0x51b4d6?.[_0x1b36c1(0x174)]?_0x5d355b[_0x1b36c1(0x1c4)]==='tasks'&&_0xf0936[_0x1b36c1(0x1de)]('','[m]\x20Task\x20actions',_0x1b36c1(0x195)):_0x2f436a['cancelledAt']?_0xf0936[_0x1b36c1(0x1de)]('',_0x1b36c1(0x142),_0x1b36c1(0x15a)):(_0x51b4d6?.[_0x1b36c1(0x1ba)]&&_0xf0936['push']('',_0x51b4d6[_0x1b36c1(0x14a)]?_0x1b36c1(0x1b8):_0x1b36c1(0x1c9),_0x35353b?_0x1b36c1(0x144):_0x1b36c1(0x167)),_0x51b4d6?.['canCancel']&&_0xf0936[_0x1b36c1(0x1de)](_0x1b36c1(0x1b1)),!_0x51b4d6?.['canCancel']&&_0x51b4d6?.[_0x1b36c1(0x1d7)]&&_0xf0936[_0x1b36c1(0x1de)]('','Check\x20the\x20payment\x20result\x20before\x20retrying.\x20This\x20order\x20cannot\x20currently\x20be\x20cancelled\x20from\x20Colony.')),_0xf0936[_0x1b36c1(0x176)]('\x0a');}export{_0x3128ca as clean,R as detailText,T as lines,o as outputText,k as short,m as statusLabel,A as taskActions};
|