supercolony 0.1.6 → 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 +7 -2
- package/dist/commands/order.mjs +1 -1
- package/dist/commands/task.mjs +1 -1
- package/dist/lib/orders.mjs +1 -1
- package/dist/lib/submission-attribution.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/index.mjs +1 -1
- package/dist/tui/presentation.mjs +1 -1
- package/dist/tui/session.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,9 @@ colony ui
|
|
|
23
23
|
colony --ascii
|
|
24
24
|
```
|
|
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
|
+
|
|
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.
|
|
27
29
|
|
|
28
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.
|
|
29
31
|
|
|
@@ -35,6 +37,7 @@ Panel actions stay visible along the bottom of their frame. Task lists contain N
|
|
|
35
37
|
| `/`, `f`, `r` | Search, cycle My tasks filters, refresh |
|
|
36
38
|
| Tab, `[` / `]`, Page Up / Down | Focus list/details, switch detail tab, scroll |
|
|
37
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 |
|
|
38
41
|
| `o` | Inspect/resume a saved local order |
|
|
39
42
|
| `x`, `m` in My tasks | Cancel an unsigned request; open available task actions |
|
|
40
43
|
| `a`, `m`, `l`, `g` in Workers | Add an SSH target, actions, logs, diagnostics |
|
|
@@ -46,6 +49,8 @@ Panel actions stay visible along the bottom of their frame. Task lists contain N
|
|
|
46
49
|
|
|
47
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.
|
|
48
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
|
+
|
|
49
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.
|
|
50
55
|
|
|
51
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.
|
|
@@ -215,7 +220,7 @@ colony task create --file examples/research-job.json
|
|
|
215
220
|
|
|
216
221
|
流程:
|
|
217
222
|
|
|
218
|
-
正式创建和续作任务时,Colony
|
|
223
|
+
正式创建和续作任务时,Colony 会在任务描述末尾另起一行添加 `via supercolony`。原始输入用于本地编辑和恢复,提交内容在报价前固定保存;重试和报价续期不会重复添加署名,已保存的旧订单保持原提交内容。
|
|
219
224
|
|
|
220
225
|
1. 先以公开地址检查余额和 gas;自然语言输入随后由本地模型选择任务参数。`POST /requests/check` 有 blocker 立即停止;
|
|
221
226
|
2. 生成并保存 `requestToken` 和 `requestKey`,再 `POST /requests/quote`;
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o='
|
|
1
|
+
const o='via\x20supercolony';function i(_0x4b885c){const _0x7511e9=_0xc0e2;if(typeof _0x4b885c[_0x7511e9(0x1da)]!=_0x7511e9(0x1d8)||!_0x4b885c['objective'][_0x7511e9(0x1d7)]())return _0x4b885c;const _0x3084ac=_0x4b885c[_0x7511e9(0x1da)]['trimEnd']();return _0x3084ac===o||_0x3084ac[_0x7511e9(0x1d9)]('\x0a'+o)?_0x4b885c:{..._0x4b885c,'objective':_0x3084ac+'\x0a'+o};}function _0x50ed(){const _0x596a37=['trim','string','endsWith','objective'];_0x50ed=function(){return _0x596a37;};return _0x50ed();}function _0xc0e2(_0x2e44bf,_0x50ed93){_0x2e44bf=_0x2e44bf-0x1d7;const _0xc0e202=_0x50ed();let _0x3be8e9=_0xc0e202[_0x2e44bf];return _0x3be8e9;}export{o as SUBMISSION_ATTRIBUTION,i as withSubmissionAttribution};
|
|
@@ -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 _0x4a8be8=_0x11f7;import{createElement as _0x377643,useEffect as _0xd6bd5d,useState as _0x1fec36,useSyncExternalStore as _0x15b696}from'react';import{Box as _0x1d0bf1,Text as _0x31a267,useApp as _0x1c6ab1,useInput as _0x23dbf4,useWindowSize as _0x3c7eca}from'ink';import _0x3087f2 from'ink-text-input';import _0x180bb6 from'string-width';import{visibleItems as _0x1f852a,VIEWS as _0x118e55}from'./controller.mjs';import{clean as _0x33d708,detailText as _0x8f542f,lines as _0x46af78,short as _0x4b445d,statusLabel as _0x12f1e6,taskActions as _0x48aa65}from'./presentation.mjs';import{modelProgressLines as _0x16f8ff}from'../planner/progress.mjs';const le={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},ce={'tasks':_0x4a8be8(0x13f),'explore':_0x4a8be8(0x156),'workers':'Workers','wallet':'Wallets'},Q=[_0x4a8be8(0x1a9),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x4a8be8(0x11c),'Tip:\x20Review\x20the\x20price\x20before\x20paying.',_0x4a8be8(0x153)],de=_0x43d932=>_0x43d932===_0x4a8be8(0x135)?'gray':_0x43d932===_0x4a8be8(0x118)?_0x4a8be8(0x137):[_0x4a8be8(0x114),_0x4a8be8(0x149),_0x4a8be8(0x1d3),_0x4a8be8(0x115),_0x4a8be8(0x151)][_0x4a8be8(0x1b4)](_0x43d932)?_0x4a8be8(0x188):_0x4a8be8(0x170),s=(_0x4f4932,_0x3f74e0={})=>_0x377643(_0x31a267,_0x3f74e0,_0x33d708(_0x4f4932));function B({label:_0x110908}){const _0x437566=_0x4a8be8,[_0x47fd64,_0x238a10]=_0x1fec36(0x0);return _0xd6bd5d(()=>{const _0x567860=setInterval(()=>_0x238a10(_0x277bd9=>(_0x277bd9+0x1)%0x4),0x96);return()=>clearInterval(_0x567860);},[]),s(['|','/','-','\x5c'][_0x47fd64]+'\x20'+_0x110908,{'color':'cyan','wrap':_0x437566(0x119)});}function A({title:_0x43b66b,width:_0x259e76,height:_0xbf3b59,ascii:_0x42bbcf,active:_0x1d39c6,children:_0x4f35be}){const _0x35aee9=_0x4a8be8;return _0x377643(_0x1d0bf1,{'width':_0x259e76,'height':_0xbf3b59,'flexDirection':'column','borderStyle':_0x42bbcf?le:'single','borderColor':_0x1d39c6?_0x35aee9(0x170):_0x35aee9(0x122),'paddingX':0x1,'flexShrink':0x0,'overflow':'hidden'},s(_0x43b66b,{'color':_0x1d39c6?_0x35aee9(0x170):void 0x0,'dimColor':!_0x1d39c6}),_0x4f35be);}function L(_0x3702b9,_0x571980){const _0x481588=_0x4a8be8,_0x1cd976=[];for(const _0x59c142 of _0x3702b9){const _0x3a3ad9=_0x1cd976[_0x481588(0x1bb)]-0x1;_0x3a3ad9>=0x0&&_0x180bb6(_0x1cd976[_0x3a3ad9]+'\x20\x20'+_0x59c142)<=_0x571980?_0x1cd976[_0x3a3ad9]+='\x20\x20'+_0x59c142:_0x1cd976[_0x481588(0x1e2)](_0x59c142);}return _0x1cd976;}function U({rows:_0x15a2c0,width:_0x5842ca,ascii:_0x16a73b}){const _0x2d7d6a=_0x4a8be8;return _0x15a2c0[_0x2d7d6a(0x1bb)]?_0x377643(_0x1d0bf1,{'flexDirection':_0x2d7d6a(0x20b),'flexShrink':0x0},s((_0x16a73b?'-':'\u2500')[_0x2d7d6a(0x19f)](_0x5842ca),{'dimColor':!0x0}),..._0x15a2c0[_0x2d7d6a(0x162)]((_0x113524,_0x1c713a)=>s(_0x113524,{'key':_0x1c713a,'color':_0x2d7d6a(0x170),'bold':!0x0}))):null;}function ue({event:_0x382b4a,width:_0x6f5331,height:_0x38a472,ascii:_0x253a7d}){const _0x2417e1=_0x4a8be8,_0x2a7111=_0x16f8ff(_0x382b4a,{'width':_0x6f5331-0x4,'compact':!0x0})[_0x2417e1(0x141)](0x2);return _0x377643(A,{'title':_0x2417e1(0x16a),'width':_0x6f5331,'height':_0x38a472,'ascii':_0x253a7d,'active':!0x0},_0x377643(_0x1d0bf1,{'flexDirection':_0x2417e1(0x20b)},..._0x2a7111[_0x2417e1(0x162)]((_0x4d88ea,_0x46cf7e)=>_0x4d88ea[_0x2417e1(0x11f)](_0x2417e1(0x1f7))?_0x377643(B,{'key':_0x46cf7e,'label':_0x4d88ea['slice'](0x4)}):s(_0x4d88ea||'\x20',{'key':_0x46cf7e,'color':_0x4d88ea[_0x2417e1(0x11f)]('[+]')?_0x2417e1(0x137):_0x2417e1(0x170)}))),_0x377643(_0x1d0bf1,{'flexGrow':0x1}));}function G({content:_0x105314,width:_0x15b4a9,height:_0x11412c,offset:_0x4eb352}){const _0x2dc7e1=_0x4a8be8,_0x2c58c2=_0x46af78(_0x105314,_0x15b4a9),_0x344578=Math['min'](_0x4eb352,Math['max'](0x0,_0x2c58c2[_0x2dc7e1(0x1bb)]-_0x11412c));return _0x377643(_0x1d0bf1,{'flexDirection':_0x2dc7e1(0x20b),'height':_0x11412c,'overflow':'hidden'},..._0x2c58c2[_0x2dc7e1(0x141)](_0x344578,_0x344578+_0x11412c)['map']((_0x22c4de,_0x2acaab)=>s(_0x22c4de||'\x20',{'key':_0x2acaab})));}function z({state:_0x4e8320,height:_0x4205ac,width:_0x184234,ascii:_0x1e2bb3}){const _0x50b645=_0x4a8be8,_0x537e06=_0x1f852a(_0x4e8320),_0x190f32=_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f6),_0x489c90=_0x4e8320[_0x50b645(0x180)]==='tasks'?[_0x50b645(0x15f),_0x50b645(0x1fb),_0x50b645(0x21a),_0x50b645(0x1a0)]:_0x190f32?[_0x50b645(0x15f),'[/]\x20Search','[r]\x20Refresh']:_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?['[a]\x20Add\x20target',_0x50b645(0x1fb),_0x50b645(0x1a0)]:[];_0x4e8320['view']!==_0x50b645(0x17a)&&(_0x4e8320[_0x50b645(0x20c)]||_0x4e8320[_0x50b645(0x1cd)])&&_0x489c90[_0x50b645(0x1e2)](_0x50b645(0x1cb));const _0x4553d0=L(_0x489c90,_0x184234),_0x1896d7=_0x190f32?_0x4e8320[_0x50b645(0x129)]:_0x537e06[_0x50b645(0x1bb)],_0x2c56c9=_0x190f32?_0x1896d7===null?_0x537e06[_0x50b645(0x1bb)]+_0x50b645(0x1d1):_0x1896d7['toLocaleString']('en-US')+(_0x1896d7===0x1?'\x20task':_0x50b645(0x12d)):_0x537e06[_0x50b645(0x1bb)]+(_0x4e8320[_0x50b645(0x180)]==='wallet'?_0x50b645(0x14e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?_0x50b645(0x12c):_0x50b645(0x11d)+_0x4e8320[_0x50b645(0x1a3)]),_0x376fee=_0x1896d7===null?_0x50b645(0x1ff)+(_0x4e8320[_0x50b645(0x142)]+0x1):_0x4e8320[_0x50b645(0x142)]+0x1+'/'+_0x1896d7[_0x50b645(0x1d2)](_0x50b645(0x172)),_0x5654ca=_0x190f32&&_0x4e8320[_0x50b645(0x142)]===_0x537e06[_0x50b645(0x1bb)]-0x1;let _0x1f9d5d=_0x50b645(0x1b7);_0x5654ca&&(_0x4e8320[_0x50b645(0x178)]?_0x1f9d5d=_0x50b645(0x1ac):_0x4e8320[_0x50b645(0x20c)]&&_0x4e8320[_0x50b645(0x191)]?_0x1f9d5d='l\x20retry\x20history':_0x1f9d5d=_0x4e8320[_0x50b645(0x191)]?_0x50b645(0x20e):_0x50b645(0x10f));const _0x23f097=_0x537e06[_0x50b645(0x1bb)]?L([_0x376fee,_0x1f9d5d,_0x50b645(0x18f)],_0x184234):[],_0x3348e2=_0x4553d0[_0x50b645(0x1bb)]?_0x4553d0[_0x50b645(0x1bb)]+0x1:0x0,_0x4ebbd8=Math[_0x50b645(0x203)](0x1,Math['floor']((_0x4205ac-0x4-_0x23f097[_0x50b645(0x1bb)]-_0x3348e2)/0x3)),_0x1534d8=Math[_0x50b645(0x203)](0x0,Math[_0x50b645(0x1ba)](_0x4e8320['selected']-Math['floor'](_0x4ebbd8/0x2),_0x537e06[_0x50b645(0x1bb)]-_0x4ebbd8));return _0x377643(_0x1d0bf1,{'flexDirection':_0x50b645(0x20b),'flexGrow':0x1},s(_0x2c56c9,{'dimColor':!0x0}),..._0x537e06[_0x50b645(0x141)](_0x1534d8,_0x1534d8+_0x4ebbd8)[_0x50b645(0x162)]((_0x192202,_0x445cca)=>_0x377643(_0x1d0bf1,{'key':_0x192202['id'],'flexDirection':_0x50b645(0x20b)},s((_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca?'>\x20':'\x20\x20')+_0x4b445d((_0x192202[_0x50b645(0x110)]===_0x50b645(0x143)?_0x50b645(0x171):'')+_0x192202['title'],_0x184234-0x2),{'inverse':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca,'bold':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca}),s('\x20\x20'+_0x4b445d(_0x192202[_0x50b645(0x12a)]??_0x12f1e6(_0x192202[_0x50b645(0x1a2)])??(_0x192202[_0x50b645(0x10d)]?_0x50b645(0x175):_0x50b645(0x189)),_0x184234-0x2),{'color':de(_0x192202['state'])}),s((_0x1e2bb3?'-':'\u2500')[_0x50b645(0x19f)](_0x184234),{'dimColor':!0x0}))),_0x537e06['length']===0x0?s(_0x4e8320[_0x50b645(0x178)]?'Loading...':_0x4e8320['error']?_0x50b645(0x18e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x17a)?_0x50b645(0x19c):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x169)?_0x50b645(0x18c):'No\x20matching\x20items.',{'dimColor':!0x0}):null,_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x23f097[_0x50b645(0x162)]((_0x6921b3,_0x5437ec)=>s(_0x6921b3,{'key':_0x5437ec,'dimColor':!0x0})),_0x377643(U,{'rows':_0x4553d0,'width':_0x184234,'ascii':_0x1e2bb3}));}function fe({state:_0x22de42,width:_0x1926f0,height:_0x1e95d3,ascii:_0x3fa1ec,narrow:_0x2ad8df}){const _0x109ee1=_0x4a8be8,_0x25f11a=_0x2ad8df?_0x1926f0:Math[_0x109ee1(0x196)](_0x1926f0*0.43),_0x1c6d05=_0x2ad8df?_0x1926f0:_0x1926f0-_0x25f11a-0x1,_0x5ce12b=0x5,_0x5bea3a=_0x1e95d3-_0x5ce12b,_0x4ffe37=_0x22de42[_0x109ee1(0x1d8)]?.['configured']?[_0x109ee1(0x1c1),'[r]\x20Refresh']:[_0x109ee1(0x1a0)];(_0x22de42['error']||_0x22de42[_0x109ee1(0x1cd)])&&_0x4ffe37['push']('[e]\x20Error\x20details');const _0x1a060d=L(_0x4ffe37,_0x1c6d05-0x4),_0x20418a=L(['Esc/Tab\x20list','PgUp/PgDn\x20scroll'],_0x1c6d05-0x4),_0x59bda8=_0x377643(A,{'title':_0x109ee1(0x1d6),'width':_0x25f11a,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'ascii':_0x3fa1ec,'active':_0x22de42[_0x109ee1(0x19b)]==='list'},_0x377643(z,{'state':_0x22de42,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'width':_0x25f11a-0x4,'ascii':_0x3fa1ec})),_0x2fa0bf=_0x377643(A,{'title':_0x109ee1(0x200),'width':_0x1c6d05,'height':_0x5bea3a,'ascii':_0x3fa1ec,'active':_0x22de42['focus']===_0x109ee1(0x1d8)},_0x377643(G,{'content':_0x8f542f(_0x22de42),'width':_0x1c6d05-0x4,'height':_0x5bea3a-0x4-_0x20418a[_0x109ee1(0x1bb)]-_0x1a060d[_0x109ee1(0x1bb)],'offset':_0x22de42[_0x109ee1(0x206)]}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x20418a[_0x109ee1(0x162)]((_0x25e203,_0x5de8be)=>s(_0x25e203,{'key':_0x5de8be,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1a060d,'width':_0x1c6d05-0x4,'ascii':_0x3fa1ec})),_0x151148=_0x377643(A,{'title':_0x109ee1(0x124),'width':_0x1c6d05,'height':_0x5ce12b,'ascii':_0x3fa1ec,'active':!0x1},s(_0x109ee1(0x147)),s(_0x109ee1(0x1ee)));return _0x2ad8df?_0x377643(_0x1d0bf1,{'flexDirection':_0x109ee1(0x20b),'width':_0x1926f0,'height':_0x1e95d3},_0x22de42[_0x109ee1(0x19b)]==='list'?_0x59bda8:_0x2fa0bf,_0x151148):_0x377643(_0x1d0bf1,{'width':_0x1926f0,'height':_0x1e95d3,'gap':0x1},_0x59bda8,_0x377643(_0x1d0bf1,{'width':_0x1c6d05,'flexDirection':'column'},_0x2fa0bf,_0x151148));}function me({controller:_0x454bbe,state:_0x150a93,width:_0x2d8ab0,height:_0x1c78e1,ascii:_0x2cd3b4}){const _0x216968=_0x4a8be8,_0x363c2f=_0x150a93['form'],_0x128999=_0x363c2f['fields'][_0x363c2f[_0x216968(0x208)]],_0x34c871=_0x363c2f[_0x216968(0x15c)][_0x216968(0x141)](0x0,_0x363c2f[_0x216968(0x208)])[_0x216968(0x162)](_0x113416=>_0x113416[_0x216968(0x132)]+':\x20'+(_0x113416[_0x216968(0x1ea)]?_0x216968(0x17c):_0x363c2f[_0x216968(0x120)][_0x113416['name']]));return _0x377643(A,{'title':_0x363c2f[_0x216968(0x19e)],'width':_0x2d8ab0,'height':_0x1c78e1,'ascii':_0x2cd3b4,'active':!0x0},_0x377643(_0x1d0bf1,{'marginTop':0x1,'flexDirection':_0x216968(0x20b)},..._0x34c871[_0x216968(0x162)]((_0x1e7d21,_0x2a243d)=>s(_0x4b445d(_0x1e7d21,_0x2d8ab0-0x6),{'key':_0x2a243d,'dimColor':!0x0})),s(_0x128999['label'],{'bold':!0x0}),_0x377643(_0x1d0bf1,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x216968(0x203)](0x2,_0x1c78e1-0x9),'overflow':_0x216968(0x1f1)},s('>\x20',{'color':_0x216968(0x170)}),_0x377643(_0x3087f2,{'key':_0x128999[_0x216968(0x207)],'value':_0x363c2f['values'][_0x128999['name']],'placeholder':_0x128999[_0x216968(0x1e7)]??'','mask':_0x128999[_0x216968(0x1ea)]?'*':void 0x0,'onChange':_0x166c6a=>_0x454bbe[_0x216968(0x1b9)](_0x166c6a),'onSubmit':()=>_0x363c2f[_0x216968(0x208)]===_0x363c2f['fields'][_0x216968(0x1bb)]-0x1?void _0x454bbe[_0x216968(0x138)]():_0x454bbe[_0x216968(0x1e3)]()})),s(_0x363c2f[_0x216968(0x20c)]??'',{'color':_0x216968(0x11e)}),_0x363c2f['hint']?s(_0x363c2f[_0x216968(0x1af)],{'dimColor':!0x0}):null),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x216968(0x11a)+(_0x363c2f[_0x216968(0x208)]===_0x363c2f[_0x216968(0x15c)]['length']-0x1?_0x363c2f[_0x216968(0x19d)]:_0x216968(0x17e))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':_0x216968(0x170),'wrap':_0x216968(0x119)}));}function he({state:_0x48675f,width:_0x54935c,height:_0x1163b8,ascii:_0x1a161c}){const _0x4e8f89=_0x4a8be8,_0x2ab3b5=_0x48675f['confirm'],_0x40689b=_0x2ab3b5[_0x4e8f89(0x1e1)],_0x3d041d=_0x40689b?.[_0x4e8f89(0x186)],_0x2f8db1=_0x3d041d?.['coin']??_0x40689b?.[_0x4e8f89(0x146)]??_0x4e8f89(0x1bf),_0x1cfbf0=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?'Total\x20'+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x129)]+'\x20IMD\x20(fee\x20'+_0x40689b[_0x4e8f89(0x16c)]+'\x20+\x20support\x20'+_0x40689b['support'][_0x4e8f89(0x16c)]+')':_0x4e8f89(0x185)+_0x40689b[_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8):null,_0x17fa4a=_0x40689b?_0x4e8f89(0x14d)+_0x2f8db1+_0x4e8f89(0x14c)+_0x40689b['chainName']:null,_0x578792=_0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?_0x4e8f89(0x14a)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e1)]??_0x3d041d['amount'])+(_0x3d041d[_0x4e8f89(0x165)]?_0x4e8f89(0x130):''):null,_0xff185=_0x3d041d?.[_0x4e8f89(0x187)]?.[_0x4e8f89(0x179)]??(_0x40689b?.['networkFeeCap']?_0x40689b[_0x4e8f89(0x1ae)]+_0x4e8f89(0x1e0):null),_0xea0650=_0xff185?_0x4e8f89(0x20d)+_0xff185:null,_0x5d7c9e=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?_0x4e8f89(0x1aa):_0x4e8f89(0x1cc):null;let _0x1d03db=_0x40689b?_0x4e8f89(0x1d5)+(_0x40689b['support']?.[_0x4e8f89(0x129)]??_0x40689b[_0x4e8f89(0x16c)])+_0x4e8f89(0x14f):'';_0x40689b?.[_0x4e8f89(0x186)]&&_0x40689b['funding'][_0x4e8f89(0x13c)]!==_0x4e8f89(0x1bf)&&(_0x1d03db=_0x40689b['funding'][_0x4e8f89(0x165)]?_0x4e8f89(0x1c5):_0x4e8f89(0x1fa));const _0x31c5c1=0x2+_0x46af78(_0x2ab3b5[_0x4e8f89(0x19e)]??'Review\x20saved\x20payment',_0x54935c-0x4)['length']+[_0x1cfbf0,_0x17fa4a,_0x578792,_0xea0650,_0x5d7c9e]['filter'](Boolean)[_0x4e8f89(0x13e)]((_0xff2eb2,_0x4e3cae)=>_0xff2eb2+_0x46af78(_0x4e3cae,_0x54935c-0x4)[_0x4e8f89(0x1bb)],0x0)+(_0x54935c<0x46?_0x2ab3b5[_0x4e8f89(0x157)]?0x3:0x2:0x1)+0x1,_0x5ca4af=_0x40689b?[_0x4e8f89(0x13a),_0x40689b['objective'],'',..._0x40689b[_0x4e8f89(0x190)]['map'](_0x15ef38=>'-\x20'+_0x15ef38),'',..._0x40689b[_0x4e8f89(0x1ca)]?[_0x4e8f89(0x164),_0x4e8f89(0x131)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8),_0x4e8f89(0x1fc)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x1a5)],_0x4e8f89(0x199),'']:[],..._0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?[_0x3d041d[_0x4e8f89(0x165)]?'Conversion\x20to\x20IMD\x20already\x20confirmed.':_0x4e8f89(0x205)+_0x2f8db1+_0x4e8f89(0x117)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x183)]??_0x3d041d[_0x4e8f89(0x14b)]??_0x3d041d[_0x4e8f89(0x16c)])+_0x4e8f89(0x111)+(_0x3d041d[_0x4e8f89(0x187)]?.['payment']??_0x3d041d[_0x4e8f89(0x16c)])+'.',..._0x2f8db1===_0x4e8f89(0x192)?[_0x4e8f89(0x11b)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e9)]??_0x3d041d[_0x4e8f89(0x1e9)])+_0x4e8f89(0x1a4)]:[],_0x4e8f89(0x173)+_0x3d041d[_0x4e8f89(0x15d)],_0x4e8f89(0x1c9),'']:[],_0x4e8f89(0x127),..._0x2ab3b5['extraAction']?[_0x4e8f89(0x177)+_0x2ab3b5[_0x4e8f89(0x157)][_0x4e8f89(0x132)]+_0x4e8f89(0x167)]:[],_0x4e8f89(0x1bd),..._0x2ab3b5[_0x4e8f89(0x166)]?['',_0x4e8f89(0x184),_0x4e8f89(0x161)+_0x40689b[_0x4e8f89(0x1f2)],_0x4e8f89(0x150)+_0x40689b['network'],_0x4e8f89(0x13b)+_0x40689b['asset'],_0x4e8f89(0x136)+_0x40689b[_0x4e8f89(0x148)],_0x4e8f89(0x1a1)+_0x40689b[_0x4e8f89(0x217)],'',_0x4e8f89(0x1c7),JSON[_0x4e8f89(0x1fd)](_0x40689b[_0x4e8f89(0x1c8)],null,0x2)]:[]][_0x4e8f89(0x195)]('\x0a'):_0x2ab3b5[_0x4e8f89(0x1b6)][_0x4e8f89(0x195)]('\x0a');return _0x377643(A,{'title':_0x2ab3b5[_0x4e8f89(0x19e)]??_0x4e8f89(0x213),'width':_0x54935c,'height':_0x1163b8,'ascii':_0x1a161c,'active':!0x0},_0x1cfbf0?s(_0x1cfbf0,{'color':'cyan','bold':!0x0}):null,_0x17fa4a?s(_0x17fa4a,{'color':_0x4e8f89(0x170),'bold':!0x0}):null,_0x578792?s(_0x578792,{'color':_0x4e8f89(0x170)}):null,_0xea0650?s(_0xea0650,{'color':_0x4e8f89(0x188)}):null,_0x377643(G,{'content':_0x5ca4af,'width':_0x54935c-0x4,'height':Math[_0x4e8f89(0x203)](0x0,_0x1163b8-_0x31c5c1),'offset':_0x48675f['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),_0x5d7c9e?s(_0x5d7c9e,{'color':'yellow'}):null,_0x377643(_0x1d0bf1,{'flexDirection':_0x54935c<0x46?_0x4e8f89(0x20b):_0x4e8f89(0x1b2),'gap':_0x54935c<0x46?0x0:0x3},s('[\x20'+(_0x2ab3b5[_0x4e8f89(0x16f)]??(_0x40689b?_0x4e8f89(0x181):_0x4e8f89(0x1ab)))+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x0}),_0x2ab3b5['extraAction']?s('[\x20'+_0x2ab3b5['extraAction'][_0x4e8f89(0x132)]+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x40689b?_0x1d03db:_0x2ab3b5[_0x4e8f89(0x145)]??'Confirm')+'\x20]',{'inverse':_0x2ab3b5['accepted'],'color':_0x4e8f89(0x170)})),s(_0x4e8f89(0x1bc)+(_0x40689b?_0x4e8f89(0x1dd):''),{'dimColor':!0x0,'wrap':'truncate-end'}));}function pe({state:_0x28b9fc,width:_0x18d67b,height:_0x4a4f36,ascii:_0x485b43}){const _0x29ad8c=_0x4a8be8,_0x15c3a8=_0x28b9fc[_0x29ad8c(0x193)],_0xfb11d4=Math['max'](0x1,_0x4a4f36-0x5),_0x299d0d=Math[_0x29ad8c(0x203)](0x0,Math[_0x29ad8c(0x1ba)](_0x15c3a8[_0x29ad8c(0x142)]-Math['floor'](_0xfb11d4/0x2),_0x15c3a8[_0x29ad8c(0x1b3)]['length']-_0xfb11d4));return _0x377643(A,{'title':_0x15c3a8['title'],'width':_0x18d67b,'height':_0x4a4f36,'ascii':_0x485b43,'active':!0x0},..._0x15c3a8[_0x29ad8c(0x1b3)][_0x29ad8c(0x141)](_0x299d0d,_0x299d0d+_0xfb11d4)['map']((_0x5f8f59,_0x5f199b)=>s((_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]?'>\x20':'\x20\x20')+_0x5f8f59[_0x29ad8c(0x132)],{'key':_0x5f199b,'inverse':_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]})),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x29ad8c(0x16b),{'dimColor':!0x0}));}const we='WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.';function Ae({controller:_0x355e21,ascii:_0x213e54=!0x1,dimensions:_0x579fdb,terminal:_0x4bd5fb,feedback:_0x3cc182}){const _0x3208b7=_0x4a8be8,_0x1e0640=_0x15b696(_0x355e21[_0x3208b7(0x1f9)],_0x355e21[_0x3208b7(0x1d7)]),[_0x1605e6,_0x5dbe86]=_0x1fec36(0x0);_0xd6bd5d(()=>{const _0x11ce51=_0x3208b7,_0x486ece=setInterval(()=>_0x5dbe86(_0x1671ed=>(_0x1671ed+0x1)%Q[_0x11ce51(0x1bb)]),0x4e20);return()=>clearInterval(_0x486ece);},[]);const _0x4a1faa=_0x1e0640['error']??_0x1e0640[_0x3208b7(0x1cd)],_0x15ccb4=_0x3c7eca(),_0x134507=_0x579fdb??_0x15ccb4,_0x413e04=_0x134507[_0x3208b7(0x176)],_0x3e862f=Math[_0x3208b7(0x203)](0x8,_0x134507[_0x3208b7(0x134)]-0x1),_0x5340eb=_0x413e04<0x64,{exit:_0x27b90a}=_0x1c6ab1();if(_0xd6bd5d(()=>(_0x355e21[_0x3208b7(0x1e8)]=_0x4bd5fb,_0x355e21['refresh']()['then'](()=>{const _0x4a7687=_0x3208b7;_0x3cc182&&_0x355e21[_0x4a7687(0x1e5)](_0x3cc182);}),()=>_0x355e21[_0x3208b7(0x123)]()),[_0x355e21,_0x4bd5fb,_0x3cc182]),_0xd6bd5d(()=>{const _0x190409=setInterval(()=>{const _0x5e865e=_0x11f7;_0x355e21[_0x5e865e(0x215)]();},0x1388);return()=>clearInterval(_0x190409);},[_0x355e21]),_0x23dbf4((_0x2e2ddf,_0x160c0a)=>{const _0x45f222=_0x3208b7;if(_0x160c0a[_0x45f222(0x1d9)]&&_0x2e2ddf==='c'){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(_0x1e0640[_0x45f222(0x209)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x1e5)]({'privateKeyView':null});return;}if(_0x413e04<0x28||_0x134507['rows']<0x14){_0x1e0640['receive']?_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)]():_0x2e2ddf==='q'&&(_0x355e21[_0x45f222(0x123)](),_0x27b90a());return;}if(_0x1e0640['confirm']){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21['respond'](!0x1):_0x160c0a[_0x45f222(0x1f5)]||_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1c0)]?_0x355e21[_0x45f222(0x1d4)](_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1f5)]&&_0x160c0a[_0x45f222(0x159)]?-0x1:0x1):_0x160c0a[_0x45f222(0x1ed)]?_0x355e21[_0x45f222(0x1dc)]():_0x2e2ddf==='i'?_0x355e21[_0x45f222(0x1e5)]({'confirm':{..._0x1e0640['confirm'],'expanded':!_0x1e0640[_0x45f222(0x15b)]['expanded']},'scroll':0x0}):(_0x160c0a[_0x45f222(0x1f4)]||_0x160c0a[_0x45f222(0x1ad)])&&_0x355e21[_0x45f222(0x1e5)]({'scroll':Math[_0x45f222(0x203)](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:-0x5))});return;}if(_0x1e0640[_0x45f222(0x160)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x204)]():_0x160c0a[_0x45f222(0x1f5)]&&_0x355e21[_0x45f222(0x1e3)](_0x160c0a[_0x45f222(0x159)]);return;}if(_0x1e0640[_0x45f222(0x1ef)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)](),_0x2e2ddf==='s'&&_0x355e21['saveReceiveQr']();return;}if(_0x1e0640[_0x45f222(0x193)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x1f3)]():_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]?_0x355e21[_0x45f222(0x1e5)]({'menu':{..._0x1e0640[_0x45f222(0x193)],'selected':Math[_0x45f222(0x203)](0x0,Math[_0x45f222(0x1ba)](_0x1e0640[_0x45f222(0x193)][_0x45f222(0x1b3)][_0x45f222(0x1bb)]-0x1,_0x1e0640[_0x45f222(0x193)][_0x45f222(0x142)]+(_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1)))}}):_0x160c0a[_0x45f222(0x1ed)]&&_0x355e21['chooseMenu']();return;}if(_0x2e2ddf==='q'&&!_0x1e0640['busy']){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(!_0x1e0640[_0x45f222(0x178)]){if(_0x2e2ddf==='e'&&_0x4a1faa){_0x355e21['showError']();return;}if(_0x45f222(0x1be)[_0x45f222(0x1b4)](_0x2e2ddf)&&_0x2e2ddf[_0x45f222(0x1bb)]===0x1){_0x355e21[_0x45f222(0x1eb)](_0x118e55[Number(_0x2e2ddf)-0x1]);return;}if(_0x2e2ddf==='?'){_0x355e21[_0x45f222(0x1e5)]({'help':!_0x1e0640[_0x45f222(0x10e)],'scroll':0x0});return;}if(_0x160c0a[_0x45f222(0x1cf)]){_0x355e21[_0x45f222(0x1e5)]({'focus':'list','help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x2e2ddf==='n'){_0x1e0640['view']==='wallet'?_0x355e21[_0x45f222(0x139)](!0x1):_0x355e21[_0x45f222(0x121)]();return;}if(_0x2e2ddf==='r'){_0x355e21['refresh']();return;}if(_0x160c0a['pageDown']||_0x160c0a[_0x45f222(0x1ad)]||_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x1d8)&&(_0x160c0a['downArrow']||_0x160c0a[_0x45f222(0x17b)])){_0x355e21['update']({'scroll':Math['max'](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:_0x160c0a[_0x45f222(0x1ad)]?-0x5:_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1))});return;}if(_0x1e0640[_0x45f222(0x180)]==='wallet'){(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)])&&_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1),(_0x160c0a['return']||_0x160c0a['tab'])&&_0x355e21['update']({'focus':_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x174)?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0}),_0x2e2ddf==='u'&&_0x355e21[_0x45f222(0x112)](),_0x2e2ddf==='m'&&_0x355e21[_0x45f222(0x198)](),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x17d)](),_0x2e2ddf==='i'&&_0x355e21['walletImport'](),_0x2e2ddf==='d'&&_0x355e21['walletReceive'](),_0x2e2ddf==='b'&&_0x355e21[_0x45f222(0x16d)]();return;}if(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]){_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1);return;}if(_0x160c0a[_0x45f222(0x1ed)]||_0x160c0a[_0x45f222(0x1f5)]){_0x355e21[_0x45f222(0x1e5)]({'focus':_0x1e0640[_0x45f222(0x19b)]==='list'?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0});return;}if(_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x1f8)){_0x2e2ddf==='/'&&_0x355e21['search'](),_0x2e2ddf==='a'&&_0x355e21[_0x45f222(0x19a)](),_0x2e2ddf==='m'&&_0x355e21['workerMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x155)](['logs']),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x155)]([_0x45f222(0x140)]);return;}_0x2e2ddf==='/'&&_0x355e21[_0x45f222(0x214)](),_0x2e2ddf==='f'&&_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x169)&&_0x355e21[_0x45f222(0x144)](),(_0x2e2ddf==='['||_0x2e2ddf===']')&&_0x355e21[_0x45f222(0x16e)](_0x2e2ddf==='['?-0x1:0x1),_0x2e2ddf==='d'&&_0x355e21[_0x45f222(0x128)](),_0x2e2ddf==='s'&&_0x355e21[_0x45f222(0x113)](),_0x2e2ddf==='c'&&_0x355e21[_0x45f222(0x15a)](),_0x2e2ddf==='o'&&_0x355e21[_0x45f222(0x1c3)](),_0x2e2ddf==='x'&&_0x355e21[_0x45f222(0x20a)](),_0x2e2ddf==='m'&&_0x355e21['taskMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x197)]();}}),_0x413e04<0x28||_0x134507[_0x3208b7(0x134)]<0x14)return _0x377643(_0x1d0bf1,{'width':_0x413e04,'flexDirection':_0x3208b7(0x20b)},s(_0x3208b7(0x13d),{'color':_0x3208b7(0x170)}),s(_0x3208b7(0x1fe)),s(_0x1e0640[_0x3208b7(0x1ef)]||_0x1e0640['privateKeyView']?'Esc\x20back':_0x3208b7(0x202)));if(_0x1e0640[_0x3208b7(0x209)])return _0x377643(A,{'title':_0x3208b7(0x211),'width':_0x413e04,'height':_0x3e862f,'ascii':_0x213e54,'active':!0x0},s(_0x3208b7(0x163)+_0x1e0640[_0x3208b7(0x209)][_0x3208b7(0x12f)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':'yellow'}),_0x377643(_0x1d0bf1,{'marginTop':0x1},s(_0x1e0640['privateKeyView'][_0x3208b7(0x126)])),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s('Esc\x20hide\x20and\x20return',{'color':_0x3208b7(0x170)}));if(_0x1e0640['receive']&&!_0x1e0640['form']){const _0x3a6b96=_0x1e0640[_0x3208b7(0x1ef)],_0x66f8c1=_0x3a6b96['qr']['split']('\x0a'),_0x206a6d=!_0x3a6b96['networks']||_0x3a6b96['networks']['length']===0x1,_0x5e03bd=[..._0x206a6d?[_0x3208b7(0x194)+_0x3a6b96[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')]:_0x3a6b96[_0x3208b7(0x1db)]['map'](_0x1dd4f1=>_0x1dd4f1['chainName']+':\x20'+_0x1dd4f1[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')),..._0x3a6b96[_0x3208b7(0x1f0)]??[]],_0x4035b2=_0x206a6d?_0x3208b7(0x1b5)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x158)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x1ce):_0x3208b7(0x212),_0x4af1d6=[_0x3a6b96[_0x3208b7(0x12f)],..._0x5e03bd,_0x4035b2][_0x3208b7(0x13e)]((_0x73232d,_0x17bf75)=>_0x73232d+_0x46af78(_0x17bf75,_0x413e04)[_0x3208b7(0x1bb)],0x0),_0x37880a=_0x66f8c1[_0x3208b7(0x1bb)]+_0x4af1d6+0x2,_0x545364=_0x413e04>=_0x66f8c1[0x0][_0x3208b7(0x1bb)]&&_0x3e862f>=_0x37880a;return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':_0x3208b7(0x20b)},s(_0x206a6d?_0x3208b7(0x1b0)+_0x3a6b96['chainName']:_0x3208b7(0x152),{'bold':!0x0,'color':'cyan'}),s(_0x3a6b96[_0x3208b7(0x12f)]),..._0x5e03bd[_0x3208b7(0x162)]((_0x3f511a,_0x574977)=>s(_0x3f511a,{'key':_0x574977})),_0x545364?s(_0x3a6b96['qr'],{'color':_0x3208b7(0x1df),'backgroundColor':_0x3208b7(0x168)}):s(_0x3208b7(0x1e6)+Math[_0x3208b7(0x203)](0x28,_0x66f8c1[0x0][_0x3208b7(0x1bb)])+_0x3208b7(0x1da)+(_0x37880a+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x4035b2,{'color':_0x3208b7(0x188)}),s(_0x4b445d(_0x1e0640[_0x3208b7(0x20c)]??_0x1e0640[_0x3208b7(0x154)]??_0x3208b7(0x182),_0x413e04),{'color':_0x1e0640['error']?_0x3208b7(0x11e):_0x3208b7(0x170)}));}const _0x1443c0=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x17f)],_0x29d85b=Math[_0x3208b7(0x203)](0x6,_0x3e862f-(_0x1443c0?0x3:0x6)),_0x2c8303=_0x1f852a(_0x1e0640)[_0x1e0640[_0x3208b7(0x142)]];let _0x4ca51d;if(_0x1e0640['form'])_0x4ca51d=_0x377643(me,{'controller':_0x355e21,'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640[_0x3208b7(0x15b)])_0x4ca51d=_0x377643(he,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['modelProgress'])_0x4ca51d=_0x377643(ue,{'event':_0x1e0640[_0x3208b7(0x17f)],'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['menu'])_0x4ca51d=_0x377643(pe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['help'])_0x4ca51d=_0x377643(A,{'title':_0x3208b7(0x20f),'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'active':!0x0},_0x377643(G,{'content':we,'width':_0x413e04-0x4,'height':_0x29d85b-0x4,'offset':_0x1e0640[_0x3208b7(0x206)]}),s(_0x3208b7(0x218),{'dimColor':!0x0}));else{if(_0x1e0640['view']===_0x3208b7(0x17a))_0x4ca51d=_0x377643(fe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'narrow':_0x5340eb});else{const _0x2da724=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174),_0x2336ad=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]==='detail',_0x16cc73=_0x5340eb?_0x413e04:Math['floor'](_0x413e04*0.43),_0x3b3139=_0x2da724&&!_0x5340eb?_0x413e04-_0x16cc73-0x1:_0x413e04,_0x980287=_0x8f542f({..._0x1e0640,'selectedId':_0x2c8303?.['id']}),_0x50776e=_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x169)||_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x1f6),_0x13cacb=_0x50776e?_0x48aa65(_0x2c8303,_0x1e0640[_0x3208b7(0x180)]):_0x2c8303?_0x2c8303[_0x3208b7(0x110)]==='network-worker'?['Read\x20only']:[_0x3208b7(0x1c1),_0x3208b7(0x1a8),_0x3208b7(0x1ec)]:[];_0x4a1faa&&_0x13cacb[_0x3208b7(0x1e2)](_0x3208b7(0x1cb));const _0x1b99ec=L(_0x13cacb,_0x3b3139-0x4),_0x39acd5=_0x1b99ec['length']?_0x1b99ec[_0x3208b7(0x1bb)]+0x1:0x0,_0x24f5c4=L([_0x3208b7(0x1d0),'PgUp/PgDn\x20scroll',..._0x50776e?['[\x20]\x20tabs']:[]],_0x3b3139-0x4);_0x4ca51d=_0x377643(_0x1d0bf1,{'height':_0x29d85b,'width':_0x413e04,'gap':0x1},_0x2da724?_0x377643(A,{'title':(_0x1e0640[_0x3208b7(0x180)]==='workers'?_0x3208b7(0x1c2):_0x1e0640[_0x3208b7(0x1a3)])+(_0x1e0640[_0x3208b7(0x1a7)]?_0x3208b7(0x201)+_0x4b445d(_0x1e0640['query'],0x16):''),'width':_0x16cc73,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174)},_0x377643(z,{'state':_0x1e0640,'height':_0x29d85b,'width':_0x16cc73-0x4,'ascii':_0x213e54})):null,_0x2336ad?_0x377643(A,{'title':_0x4b445d(_0x2c8303?.['id']??_0x3208b7(0x116),_0x3b3139-0x7),'width':_0x3b3139,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x1d8)},_0x50776e?s([_0x3208b7(0x15e),_0x3208b7(0x12b),_0x3208b7(0x1c6)][_0x3208b7(0x162)](_0x20b2c2=>_0x20b2c2===_0x1e0640[_0x3208b7(0x1f5)]?'['+_0x20b2c2+']':_0x20b2c2)['join']('\x20\x20'),{'color':_0x3208b7(0x170),'wrap':'truncate-end'}):null,_0x377643(G,{'content':_0x980287,'width':_0x3b3139-0x4,'height':_0x29d85b-0x3-Number(_0x50776e)-_0x39acd5-_0x24f5c4[_0x3208b7(0x1bb)],'offset':_0x1e0640['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x24f5c4[_0x3208b7(0x162)]((_0x2c7104,_0x1e97da)=>s(_0x2c7104,{'key':_0x1e97da,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1b99ec,'width':_0x3b3139-0x4,'ascii':_0x213e54})):null);}}}}}}const _0x29cf65=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?_0x3208b7(0x1de):_0x3208b7(0x1b1),_0x4246ba=_0x413e04<0x4b?_0x118e55['map']((_0x475edf,_0x4d3d9e)=>'['+(_0x4d3d9e+0x1)+']'+[_0x3208b7(0x133),_0x3208b7(0x210),_0x3208b7(0x125),'Wallets'][_0x4d3d9e])[_0x3208b7(0x195)]('\x20'):_0x118e55[_0x3208b7(0x162)]((_0x482528,_0x39edb2)=>(_0x482528===_0x1e0640[_0x3208b7(0x180)]?'>\x20':'\x20\x20')+'['+(_0x39edb2+0x1)+']\x20'+ce[_0x482528])['join']('\x20\x20');return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':'column'},_0x377643(_0x1d0bf1,{'justifyContent':'space-between','height':_0x1443c0?0x1:0x2},s(_0x3208b7(0x216),{'color':_0x3208b7(0x170),'bold':!0x0}),_0x413e04>=0x4b?s(_0x1e0640[_0x3208b7(0x12f)]?_0x4b445d(_0x1e0640['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1443c0?null:s(_0x4246ba,{'color':_0x3208b7(0x170),'wrap':_0x3208b7(0x119)}),_0x1443c0?null:_0x1e0640[_0x3208b7(0x178)]||_0x1e0640[_0x3208b7(0x1e4)]?_0x377643(B,{'label':_0x1e0640[_0x3208b7(0x178)]??_0x3208b7(0x18b)}):s(_0x1e0640['note'],{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}),_0x4ca51d,s(_0x4b445d(_0x4a1faa??_0x1e0640[_0x3208b7(0x154)]??(_0x1443c0||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?'':Q[_0x1605e6]),_0x413e04),{'color':_0x4a1faa?_0x3208b7(0x11e):_0x1e0640[_0x3208b7(0x154)]?_0x3208b7(0x137):void 0x0,'dimColor':!_0x4a1faa&&!_0x1e0640[_0x3208b7(0x154)]}),s(_0x29cf65,{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}));}function _0x11f7(_0x30f202,_0x203dda){_0x30f202=_0x30f202-0x10d;const _0x11f7e6=_0x203d();let _0x4a6eb3=_0x11f7e6[_0x30f202];return _0x4a6eb3;}export{Ae as DashboardApp};function _0x203d(){const _0x39ce0d=['installed','help','End\x20of\x20history','kind',',\x20at\x20most\x20','useSelectedWallet','download','challenged','payment_failed','DETAILS','\x20to\x20IMD\x20for\x20you:\x20≈\x20','completed','truncate-end','Enter\x20','Total\x20ETH\x20at\x20most:\x20','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','\x20items\x20·\x20','red','startsWith','values','create','gray','close','WALLET\x20MANAGEMENT','Work','privateKey','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','files','total','subtitle','Activity','\x20entries\x20·\x20Mine\x20+\x20Network','\x20tasks','selection','address','\x20(converted)','Optional\x20support:\x20','label','Mine','rows','cancelled','Pay\x20to:\x20','green','submitForm','walletSetup','REQUEST','Asset:\x20','coin','COLONY','reduce','My\x20tasks','doctor','slice','selected','managed-worker','cycleFilter','acceptLabel','payWith','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','payTo','blocked','Payment:\x20at\x20most\x20','estimatedAmount','\x20on\x20','Pay\x20with\x20','\x20wallets','\x20IMD\x20&\x20publish','Network:\x20','expired','Receive\x20funds','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','notice','workerCommand','Explore','extraAction','\x20only.\x20Choose\x20','shift','continueTask','confirm','fields','minimumImd','Overview','[n]\x20New\x20task','form','Quote\x20expires:\x20','map','Wallet:\x20','Help\x20us\x20make\x20Colony\x20better.','converted','expanded','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','white','tasks','Preparing\x20local\x20LLM','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','amount','walletBackup','changeTab','cancelLabel','cyan','Mine\x20·\x20','en-US','IMD\x20for\x20this\x20task:\x20','list','Deployed\x20·\x20status\x20on\x20selection','columns','Choose\x20','busy','gas','wallet','upArrow','********','walletManagement','next','modelProgress','view','Cancel\x20/\x20edit','s\x20save\x20QR\x20·\x20Esc\x20back','estimate','PAYMENT\x20DETAILS','Fee\x20','funding','display','yellow','Not\x20deployed','downArrow','Refreshing\x20tasks...','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','closeReceive','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','Enter/Tab\x20details','deliverables','cursor','ETH','menu','Accepted:\x20','join','floor','more','walletMenu','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','addTarget','focus','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','submit','title','repeat','[r]\x20Refresh','Order:\x20','state','filter','\x20(payment\x20+\x20gas)','recipient','move','query','[l]\x20Logs','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','Cancel','Loading\x20history...','pageUp','networkFeeCap','hint','Receive\x20on\x20','[?]\x20Help\x20\x20[q]\x20Quit','row','items','includes','Send\x20on\x20','lines','up/down','\x20IMD','setField','min','length','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','IMD','rightArrow','[m]\x20Actions','WORKERS','resumeOrder','coins','Continue\x20&\x20publish','Files','SERVER\x20PREPARED\x20INPUT','prepared','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','support','[e]\x20Error\x20details','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','refreshError','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','escape','Esc/Tab\x20list','\x20results\x20loaded','toLocaleString','refused','moveConfirmation','Pay\x20','WALLETS','getSnapshot','detail','ctrl','\x20columns\x20and\x20','networks','submitConfirmation','\x20·\x20i\x20details','[Ctrl+C]\x20Exit','black','\x20ETH','payment','push','nextField','refreshing','update','Resize\x20to\x20at\x20least\x20','placeholder','terminal','maximumDebit','secret','navigate','[g]\x20Diagnostics','return','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','receive','targets','hidden','expiresAt','dismissMenu','pageDown','tab','explore','[>]','workers','subscribe','Convert\x20&\x20publish','[/]\x20Search','Support\x20recipient:\x20','stringify','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','Item\x20','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20/\x20','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','max','dismissForm','Colony\x20converts\x20','scroll','name','field','privateKeyView','cancelRequest','column','error','Gas\x20(network\x20fee):\x20at\x20most\x20','down\x20loads\x20more','Keyboard\x20shortcuts','Browse','Private\x20key','Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.','Review\x20saved\x20payment','search','autoRefresh','COLONY\x20\x20get\x20things\x20done.','orderId','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','leftArrow','[f]\x20Filter','chainName'];_0x203d=function(){return _0x39ce0d;};return _0x203d();}
|
|
1
|
+
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 _0x4b3ed8=_0x4052;import{friendlyAmount as _0x77175d}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x5b065c,paymentView as _0x547ef0}from'./services.mjs';import{lockWallet as _0x3ec757}from'../lib/local-wallet.mjs';function _0x50e9(){const _0x506209=['View\x20private\x20key','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','Choose\x20an\x20output\x20directory.','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','Wallet\x20deleted:\x20','The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.','Checking\x20the\x20saved\x20order...','Deleting\x20draft...','fundingReceive','RPC\x20endpoints','workers','max','abort','resume','Search','addTarget','sort','continueTask','field','.\x20Keep\x20your\x20password\x20separately.','respond','remove','changeTab','saveDraft','Remove\x20skill','completed','deploy','Update\x20network\x20fee','Keyword\x20or\x20task\x20ID','refreshWalletSelection','Worker:\x20','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','Encrypting\x20wallet\x20locally...','Explorer:\x20','\x20managed\x20targets\x20·\x20','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','canChangePayment','ask','queued','walletRestore','get','walletDelete','deleteWallet','Cancelling\x20request...','Opening\x20draft...','Run\x20diagnostics','Tool\x20credential','job.open','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','\x20·\x20','Identity','Current\x20wallet:\x20','list','From\x20encrypted\x20backup','view','Wallet\x20unlock\x20cancelled.','deleteDraft','Cancel\x20this\x20request?','accepted','exploreUpdates','Review\x20task\x20&\x20payment','cursor','Request\x20changes\x20(new\x20paid\x20task)','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','Checking\x20balances\x20and\x20refreshing\x20prices...','concurrency','Remove\x20RPC','toUpperCase','out','Worker\x20ID,\x20runtime\x20or\x20skill','whoami','explorerUrl','serviceInstall','file','Use\x20at\x20least\x208\x20characters.','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','fromEntries','note','localeCompare','rpc','showOutcome','refused','requestKey','List\x20skills','explore','getSnapshot','form','payment_failed','action','throwIfAborted','network-worker','Forget\x20credential','extraTargets','services','total','Understanding\x20your\x20request...','trim','paymentChain','chain','View\x20details','refreshing','created','...','help','Files','blockers','Completed','Tools\x20&\x20credentials','Review\x20saved\x20payment','View\x20logs','Choose\x20claude\x20or\x20codex.','Worker\x20·\x20','autoRefresh','Cancelled','parent','Deleting\x20local\x20record...','plan','kind','draft','paymentOptions','wallets','name','assign','confirmReplacement','files','Add\x20RPC\x20endpoint\x20(hidden\x20input)','change_payment','submitForm','repeat','download','Task\x20published:\x20','What\x20would\x20you\x20like\x20to\x20change?','forget','indexOf','Add\x20RPC','join','Continue','has','Status','Add\x20target','menu','Skill\x20ID','Confirm\x20wallet\x20password','wallet','configured','Backup\x20saved:\x20','refreshError','walletSetup','searchText','QR\x20saved:\x20','Choose\x20payment\x20·\x20support\x20is\x20optional','expired','restart','walletManagement','Draft\x20saved','tasks','command','managed-worker','Concurrent\x20tasks\x20(1–4)','requestPassword','detailVersion','showMenu','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','View\x20result\x20files','query','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','\x20on\x20','result','Download\x20files','path','toLowerCase','Transaction:\x20','Auto-refresh\x20failed:\x20','values','walletImport','running','funding','Preparing\x20the\x20payment\x20review...','\x20is\x20required.','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','label','Remove\x20tool','pickPayment','boot','hash','addFunds','useSelectedWallet','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','showPaymentProgress','Save\x20under\x20this\x20directory','Loading\x20older\x20tasks...','dialog','code','Download','createdAt','On-chain\x20funds\x20stay\x20at\x20this\x20address.','Import\x20wallet','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','Attention','Saved\x20wallet','items','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','canDelete','set','Runtime\x20(claude\x20or\x20codex)','funded','Register\x20on\x20chain','This\x20request\x20is\x20not\x20supported.','delete','Keep\x20draft','selection','Chain\x20ID','error','setField','editDraft','Local\x20record\x20deleted.','Checking\x20balances\x20on\x20all\x20networks...','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','\x20verified\x20files\x20to\x20','createWallet','local','findIndex','flatMap','Saving\x20encrypted\x20backup...','key','Set\x20local\x20wallet\x20password','Continue\x20draft','create','Delete\x20draft','state','reason','formSubmit','Run\x20on\x20','update','autoPayment','What\x20would\x20you\x20like\x20to\x20get\x20done?','executing','Save\x20QR','funding_required','Preparing\x20receive\x20address...','input','transaction_pending','run','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','Review\x20&\x20pay','pendingTransaction','locked','closeReceive','payment','loaded','job.continue','Loading\x20network\x20workers...','value','saveReceiveQr','cancelAutoRefresh','menuCancel','change','walletBackup','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','walletIsCurrent','Deleting\x20local\x20wallet...','updatedAt','slice','concat','Concurrency\x20must\x20be\x201–4.','cancelled','passwordReject','codex','Payment\x20needs\x20review.','selected','Preparing\x20local\x20LLM...','draftId','fundingDialog','View\x20private\x20key\x20·\x20confirm\x20password','Pair\x20with\x20wallet','currentAddress','receive','reviewPayment','now','service','chooseMenu','listeners','All','title','networkWorkers','workerCommand','Delete\x20wallet\x20·\x201\x20of\x202','saveQr','./output/','refresh','Current','--runtime','checkTaskWallet','extraAction','cancelRequest','showForm','length','selectWallet','payment_reconciling','Saved\x20','Delete\x20wallet','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','deleteTaskDraft','register','pending','List\x20tools','gas','One\x20local\x20password\x20·\x20u\x20use\x20selected\x20wallet','Restore\x20wallet','port','admitted','Linux\x20start\x20at\x20boot\x20(yes/no)','busy','chooseSupport','summary','Save\x20encrypted\x20backup\x20to\x20(new\x20file)','dismissForm','push','detailRequest','Cancel\x20request','Unlink\x20worker','claude','stage','Add\x20skill','identity','resumeOrder','IMD','Selected\x20wallet\x20actions','detailTimer','cancel','install','yes','withFundingRetry','detail','Loading\x20files...','Download\x20task\x20files','--boot','confirm','Remove\x20this\x20wallet\x20from\x20Colony?','Passwords\x20do\x20not\x20match.','canCancel','quoted','refreshRequest','submitConfirmation','colony-receive.svg','From\x20private\x20key','lastExploreRefresh','runtime','questions','chainName','refreshExplore','Keep\x20request','map','status','choice','SSH\x20port','Check\x20balance\x20&\x20continue','Restoring\x20wallet...','since','includes','lines','coin','jobId','filter','more','closed','pair','Tool\x20ID','targets','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','formCancel','Add\x20funds\x20to\x20continue','Change\x20payment','objective','Set\x20tool\x20credential\x20(hidden\x20input)','\x0aOrder:\x20','clear','message','Use\x20this\x20wallet','Request\x20changes','Credential\x20name','signal','fields','logs','deleteRequest','wallet_required','some','terminal','navigate','unlink','skills','receiveWallet','operation','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','restoreWallet','Enter\x20yes\x20or\x20no.','stop','Deploy\x20official\x20worker','deliverables','setupWallet','loadDetail','payWith','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','restoreSelectedId','askResolve','Task\x20actions','transaction','canResume','ethereum','Overview','Worker\x20tools','Back\x20up\x20encrypted\x20wallet','Install\x20background\x20service','walletMenu','scroll','cycleFilter','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','\x20·\x20current','worker','walletReceive','tools','address','password','source'];_0x50e9=function(){return _0x506209;};return _0x50e9();}import{fundingInstructions as _0x2a90a8,fundingNetworks as _0x11d6f7,networkChoiceLabel as _0x28df1c,networkTargets as _0x3746eb}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x714d5c}from'../lib/support.mjs';import{randomUUID as _0x1b9955}from'node:crypto';const V=[_0x4b3ed8(0x157),_0x4b3ed8(0x110),_0x4b3ed8(0xc6),_0x4b3ed8(0x14b)],m=[_0x4b3ed8(0x1d6),'Active',_0x4b3ed8(0x126),_0x4b3ed8(0x182),_0x4b3ed8(0x12d)],u=[_0x4b3ed8(0x255),'Activity',_0x4b3ed8(0x124)],v=new Set([_0x4b3ed8(0x132),_0x4b3ed8(0x121),_0x4b3ed8(0x211),'challenged',_0x4b3ed8(0x16c),'signed','submitted',_0x4b3ed8(0xe2),_0x4b3ed8(0x16b),_0x4b3ed8(0x1a8),'pending','admitting']),S=new Set([_0x4b3ed8(0x153),_0x4b3ed8(0x113),_0x4b3ed8(0x1ad),'payment_reconciling']),P=new Set([_0x4b3ed8(0x1ad),_0x4b3ed8(0x1e6)]),x=0x7530;function _0x4052(_0x1cb790,_0x50e915){_0x1cb790=_0x1cb790-0xbc;const _0x405283=_0x50e9();let _0x808b46=_0x405283[_0x1cb790];return _0x808b46;}function f(_0x215607){const _0x5b7712=_0x4b3ed8;return _0x215607[_0x5b7712(0x184)]['filter'](_0x545370=>!['tasks','workers'][_0x5b7712(0x223)](_0x215607[_0x5b7712(0xf2)])||[_0x545370[_0x5b7712(0x1d7)],_0x545370['id'],_0x545370[_0x5b7712(0x150)]??'']['some'](_0x3b5d10=>_0x3b5d10['toLowerCase']()[_0x5b7712(0x223)](_0x215607['query'][_0x5b7712(0x166)]()))?_0x215607['filter']===_0x5b7712(0x1d6)||_0x215607[_0x5b7712(0xf2)]!==_0x5b7712(0x157)?!0x0:_0x215607['filter']===_0x5b7712(0x126)?_0x545370[_0x5b7712(0x1a1)]==='completed':_0x215607[_0x5b7712(0x227)]===_0x5b7712(0x12d)?_0x545370[_0x5b7712(0x1a1)]===_0x5b7712(0x1c5):_0x215607[_0x5b7712(0x227)]==='Active'?v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):![_0x5b7712(0xd5),_0x5b7712(0x1c5)][_0x5b7712(0x223)](_0x545370[_0x5b7712(0x1a1)])&&!v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):!0x1);}function p(){const _0x258c51=_0x4b3ed8;return Object['assign'](new Error('Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.'),{'code':_0x258c51(0x1c5)});}function W(){const _0x5b2bab=_0x4b3ed8;return Object[_0x5b2bab(0x136)](new Error(_0x5b2bab(0x107)),{'code':_0x5b2bab(0x13a)});}function A(_0xed4242,_0x268eaa){const _0x1ea3c6=_0x4b3ed8,{option:_0x3f44cf}=_0xed4242,_0x32aa3e=(_0xed4242[_0x1ea3c6(0x24d)]===_0x1ea3c6(0x202)?'':'\u2248\x20')+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1b4)],_0xed4242[_0x1ea3c6(0x24d)],{'up':!0x0}),_0x296326=_0x268eaa&&_0x268eaa[_0x1ea3c6(0x11d)]===_0xed4242[_0x1ea3c6(0x11d)]&&_0x268eaa['payWith']===_0xed4242[_0x1ea3c6(0x24d)];return _0xed4242[_0x1ea3c6(0x24d)]+_0x1ea3c6(0x162)+_0xed4242['chainName']+_0x1ea3c6(0xed)+_0x32aa3e+'\x20+\x20gas\x20\u2248\x20'+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1ee)],'ETH',{'up':!0x0})+(_0x296326?_0x1ea3c6(0x25d):'');}function T(_0x33e387){const _0x51f2f2=_0x4b3ed8;if(!_0x33e387)return[];const _0x1a9b25=[];return _0x33e387[_0x51f2f2(0x174)]&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0x167)+_0x33e387[_0x51f2f2(0x174)]+(_0x33e387['kind']?'\x20('+_0x33e387['kind']+')':'')),_0x33e387[_0x51f2f2(0x1a2)]&&_0x1a9b25['push']('Reason:\x20'+_0x33e387[_0x51f2f2(0x1a2)]),_0x33e387['explorerUrl']&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0xdd)+_0x33e387[_0x51f2f2(0x103)]),_0x1a9b25;}function E(_0x1544c3){const _0x4423b4=_0x4b3ed8,_0x5fa5ae=[_0x1544c3['message']||'The\x20payment\x20result\x20is\x20not\x20final\x20yet.'];return _0x5fa5ae[_0x4423b4(0x1f9)](...T(_0x1544c3[_0x4423b4(0x252)])),_0x5fa5ae[_0x4423b4(0x1f9)]('Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.'),_0x5fa5ae['join']('\x0a');}class _{constructor(_0xc45412){const _0x329039=_0x4b3ed8;this[_0x329039(0x119)]=_0xc45412,this['listeners']=new Set(),this[_0x329039(0x1a1)]={'view':_0x329039(0x157),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x329039(0x255),'filter':_0x329039(0x1d6),'query':'','note':'','focus':'list','scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this['detailVersion']=0x0,this['extraTargets']=[],this['closed']=!0x1,this[_0x329039(0x216)]=0x0;}['subscribe']=_0x20d277=>(this[_0x4b3ed8(0x1d5)]['add'](_0x20d277),()=>this[_0x4b3ed8(0x1d5)][_0x4b3ed8(0x18c)](_0x20d277));[_0x4b3ed8(0x111)]=()=>this[_0x4b3ed8(0x1a1)];[_0x4b3ed8(0x1a5)](_0x496dfc){const _0x3e24d3=_0x4b3ed8;if(!this['closed']){this['state']={...this[_0x3e24d3(0x1a1)],..._0x496dfc};for(const _0xe42a0f of this[_0x3e24d3(0x1d5)])_0xe42a0f();}}[_0x4b3ed8(0x1c9)](){const _0x78aab2=_0x4b3ed8;return f(this[_0x78aab2(0x1a1)])[this['state']['selected']];}['showError'](){const _0x945eb1=_0x4b3ed8;++this[_0x945eb1(0x15c)],this[_0x945eb1(0x1a5)]({'detail':{'output':this['state']['error']??this['state'][_0x945eb1(0x14e)]},'detailLoading':!0x1,'focus':_0x945eb1(0x209),'scroll':0x0,'tab':_0x945eb1(0x255)});}[_0x4b3ed8(0x1ba)](){const _0x17663f=_0x4b3ed8;this[_0x17663f(0x212)]?.[_0x17663f(0xc8)](),this[_0x17663f(0x212)]=null,this[_0x17663f(0x1a5)]({'refreshing':!0x1});}async[_0x4b3ed8(0x1ae)](_0x57120f,_0x49d76e){const _0x5baeba=_0x4b3ed8;if(!this[_0x5baeba(0x1a1)][_0x5baeba(0x1f4)]){this[_0x5baeba(0x1ba)](),this['operation']=new AbortController(),this[_0x5baeba(0x1a5)]({'busy':_0x57120f,'error':null,'refreshError':null,'notice':null});try{return await _0x49d76e(this[_0x5baeba(0x244)][_0x5baeba(0x239)]);}catch(_0x8fbc60){_0x8fbc60[_0x5baeba(0x17c)]===_0x5baeba(0x1c5)?(this['update']({'notice':_0x8fbc60[_0x5baeba(0x235)]}),this[_0x5baeba(0x192)]()):P[_0x5baeba(0x145)](_0x8fbc60['code'])?this[_0x5baeba(0x1a5)]({'error':E(_0x8fbc60)}):this[_0x5baeba(0x1a5)]({'error':_0x8fbc60[_0x5baeba(0x235)]});}finally{this[_0x5baeba(0x1a5)]({'busy':null,'modelProgress':null});}}}async[_0x4b3ed8(0x240)](_0x2049be){const _0x3ab5a9=_0x4b3ed8;this['state'][_0x3ab5a9(0x1f4)]||(clearTimeout(this[_0x3ab5a9(0x204)]),this[_0x3ab5a9(0x1fa)]?.[_0x3ab5a9(0xc8)](),++this[_0x3ab5a9(0x15c)],this['update']({'view':_0x2049be,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x3ab5a9(0x1d6),'tab':_0x3ab5a9(0x255),'scroll':0x0,'focus':_0x3ab5a9(0xf0),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x3ab5a9(0x1dd)]());}async[_0x4b3ed8(0x1dd)](){const _0x8a5511=_0x4b3ed8,_0x558e84=this[_0x8a5511(0x1c9)]()?.['id']??this['restoreSelectedId'];this[_0x8a5511(0x24f)]=void 0x0,await this['run']('Loading\x20'+this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]+_0x8a5511(0x122),async _0x719f7d=>{const _0x518b2e=_0x8a5511;let _0x4d168b;if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x157))_0x4d168b=await this[_0x518b2e(0x119)]['mine'](_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]==='explore')_0x4d168b=await this[_0x518b2e(0x119)][_0x518b2e(0x110)](this[_0x518b2e(0x1a1)][_0x518b2e(0x160)],void 0x0,_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0xc6)){const _0x387ff1=this['services'][_0x518b2e(0x22c)](),_0x3993f2=new Set(_0x387ff1['map'](_0x3e601e=>_0x3e601e['id'])),_0x58d957=_0x387ff1[_0x518b2e(0x1c3)](this[_0x518b2e(0x118)][_0x518b2e(0x227)](_0xea739c=>!_0x3993f2[_0x518b2e(0x145)](_0xea739c['id'])))[_0x518b2e(0x21c)](_0x238dd3=>({..._0x238dd3,'kind':_0x518b2e(0x159)}));this[_0x518b2e(0x1a5)]({'items':_0x58d957,'selected':0x0,'note':_0x518b2e(0x1b7)});let _0x54a3f5;try{_0x54a3f5=await this[_0x518b2e(0x119)][_0x518b2e(0x1d8)](_0x719f7d);}catch(_0x5ee570){throw this[_0x518b2e(0x1a5)]({'note':_0x58d957[_0x518b2e(0x1e4)]+'\x20managed\x20targets\x20\xB7\x20Network\x20unavailable\x20\xB7\x20r\x20retry'}),_0x5ee570;}_0x4d168b={'items':_0x58d957[_0x518b2e(0x1c3)](_0x54a3f5),'note':_0x58d957[_0x518b2e(0x1e4)]+_0x518b2e(0xde)+_0x54a3f5[_0x518b2e(0x1e4)]+_0x518b2e(0xbf)};}else{const _0x1bd3f3=await this[_0x518b2e(0x119)]['wallet'](_0x719f7d,_0x558e84,{'balances':!0x1}),_0x3eb1e0=this['services']['wallets']();!_0x3eb1e0[_0x518b2e(0x1e4)]&&_0x1bd3f3[_0x518b2e(0x14c)]&&_0x3eb1e0['push']({'address':_0x1bd3f3[_0x518b2e(0x261)],'active':!0x0,'locked':_0x1bd3f3[_0x518b2e(0x1b2)]}),_0x4d168b={'items':_0x3eb1e0[_0x518b2e(0x21c)](_0x105440=>({..._0x105440,'id':_0x105440[_0x518b2e(0x261)],'title':_0x105440[_0x518b2e(0x261)][_0x518b2e(0x1c2)](0x0,0xa)+_0x518b2e(0x122)+_0x105440['address'][_0x518b2e(0x1c2)](-0x8),'subtitle':_0x105440['active']?_0x518b2e(0x1de):_0x518b2e(0x183)})),'note':_0x518b2e(0x1ef),'address':_0x1bd3f3[_0x518b2e(0x1cf)]??_0x1bd3f3[_0x518b2e(0x261)]??null},this['update']({'detail':_0x1bd3f3,'scroll':0x0});}}}const _0x2778ab=_0x558e84??(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x14b)?_0x4d168b['address']:void 0x0),_0x52e860=Math[_0x518b2e(0xc7)](0x0,f({...this[_0x518b2e(0x1a1)],'items':_0x4d168b['items']})[_0x518b2e(0x199)](_0x318f53=>_0x318f53['id']===_0x2778ab));this[_0x518b2e(0x1a5)]({'items':_0x4d168b['items'],'note':_0x4d168b[_0x518b2e(0x109)],'cursor':_0x4d168b[_0x518b2e(0xf9)],'total':_0x4d168b[_0x518b2e(0x11a)]??(_0x4d168b[_0x518b2e(0xf9)]?null:_0x4d168b[_0x518b2e(0x184)][_0x518b2e(0x1e4)]),'since':_0x4d168b[_0x518b2e(0x222)]??null,'selected':_0x52e860,'address':Object['hasOwn'](_0x4d168b,_0x518b2e(0x261))?_0x4d168b[_0x518b2e(0x261)]:this['state']['address']}),this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x110)&&(this[_0x518b2e(0x216)]=Date[_0x518b2e(0x1d2)]());}),this[_0x8a5511(0x229)]||await this[_0x8a5511(0x24c)](this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]===_0x8a5511(0x14b));}async[_0x4b3ed8(0x12c)](){const _0x34caec=_0x4b3ed8,_0x52c307=this[_0x34caec(0x1a1)];this['closed']||_0x52c307['busy']||_0x52c307[_0x34caec(0x120)]||_0x52c307['detailLoading']||_0x52c307[_0x34caec(0x112)]||_0x52c307['confirm']||_0x52c307['menu']||_0x52c307[_0x34caec(0x123)]||_0x52c307['privateKeyView']||(_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x110)&&_0x52c307[_0x34caec(0x222)]!==null&&Date[_0x34caec(0x1d2)]()-this[_0x34caec(0x216)]>=x?await this[_0x34caec(0x21a)]():_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x157)&&!_0x52c307[_0x34caec(0x190)]&&[_0x34caec(0x16b),_0x34caec(0x1a8),_0x34caec(0xe2),_0x34caec(0x1ec)][_0x34caec(0x223)](this['selected']()?.[_0x34caec(0x1a1)])&&await this[_0x34caec(0x24c)](!0x0));}async[_0x4b3ed8(0x21a)](){const _0x2f32f3=_0x4b3ed8,_0x153a25=new AbortController();this['refreshRequest']=_0x153a25,this[_0x2f32f3(0x216)]=Date[_0x2f32f3(0x1d2)](),this[_0x2f32f3(0x1a5)]({'refreshing':!0x0});try{const _0x5b0ac3=await this['services'][_0x2f32f3(0xf7)](this[_0x2f32f3(0x1a1)][_0x2f32f3(0x160)],this[_0x2f32f3(0x1a1)][_0x2f32f3(0x222)],_0x153a25['signal']);if(this['refreshRequest']!==_0x153a25||this[_0x2f32f3(0x229)])return;const _0x47daa7=this['selected']()?.['id'],_0xad99a5=this[_0x2f32f3(0x1a1)]['items']['at'](-0x1)?.[_0x2f32f3(0x17e)],_0x12c742=new Map(this[_0x2f32f3(0x1a1)][_0x2f32f3(0x184)][_0x2f32f3(0x21c)](_0x3840cd=>[_0x3840cd['id'],_0x3840cd]));for(const _0x19ea6b of _0x5b0ac3[_0x2f32f3(0x184)]){const _0x5e428f=_0x12c742[_0x2f32f3(0xe4)](_0x19ea6b['id']);_0x5e428f&&_0x19ea6b[_0x2f32f3(0x1c1)]<_0x5e428f['updatedAt']||(_0x12c742['has'](_0x19ea6b['id'])||!_0xad99a5||_0x19ea6b[_0x2f32f3(0x17e)]>=_0xad99a5)&&_0x12c742[_0x2f32f3(0x187)](_0x19ea6b['id'],_0x19ea6b);}const _0x2a4b5a=[..._0x12c742[_0x2f32f3(0x169)]()][_0x2f32f3(0xcc)]((_0x59d9f1,_0x7f2c37)=>_0x7f2c37[_0x2f32f3(0x17e)][_0x2f32f3(0x10a)](_0x59d9f1[_0x2f32f3(0x17e)])),_0x57c760=Math[_0x2f32f3(0xc7)](0x0,_0x2a4b5a[_0x2f32f3(0x199)](_0x332481=>_0x332481['id']===_0x47daa7));this['update']({'items':_0x2a4b5a,'selected':_0x57c760,'since':_0x5b0ac3[_0x2f32f3(0x222)],'total':_0x5b0ac3[_0x2f32f3(0x11a)]??(this['state'][_0x2f32f3(0xf9)]?null:_0x2a4b5a[_0x2f32f3(0x1e4)]),'refreshError':null}),await this[_0x2f32f3(0x24c)](!0x0);}catch(_0x3cc59f){this[_0x2f32f3(0x212)]===_0x153a25&&!this[_0x2f32f3(0x229)]&&this[_0x2f32f3(0x1a5)]({'refreshError':_0x2f32f3(0x168)+_0x3cc59f['message']});}finally{this['refreshRequest']===_0x153a25&&(this[_0x2f32f3(0x212)]=null,this[_0x2f32f3(0x1a5)]({'refreshing':!0x1}));}}async[_0x4b3ed8(0x228)](){const _0x3e197d=_0x4b3ed8;this[_0x3e197d(0x1a1)][_0x3e197d(0xf2)]!==_0x3e197d(0x110)||!this[_0x3e197d(0x1a1)][_0x3e197d(0xf9)]||await this[_0x3e197d(0x1ae)](_0x3e197d(0x17a),async _0x3ea926=>{const _0x40d81b=_0x3e197d,_0x4cc9fb=await this['services'][_0x40d81b(0x110)](this[_0x40d81b(0x1a1)]['query'],this[_0x40d81b(0x1a1)][_0x40d81b(0xf9)],_0x3ea926),_0x9a8947=new Set(this[_0x40d81b(0x1a1)][_0x40d81b(0x184)]['map'](_0x1d775f=>_0x1d775f['id'])),_0x464265=this['state'][_0x40d81b(0x184)][_0x40d81b(0x1c3)](_0x4cc9fb[_0x40d81b(0x184)][_0x40d81b(0x227)](_0x52d7bf=>!_0x9a8947[_0x40d81b(0x145)](_0x52d7bf['id'])));this['update']({'items':_0x464265,'cursor':_0x4cc9fb[_0x40d81b(0xf9)],'total':this['state'][_0x40d81b(0x11a)]??(_0x4cc9fb[_0x40d81b(0xf9)]?null:_0x464265[_0x40d81b(0x1e4)])});});}async['loadDetail'](_0x423c04=!0x1){const _0x1347a6=_0x4b3ed8;clearTimeout(this['detailTimer']),this[_0x1347a6(0x204)]=null;const _0x24a167=this[_0x1347a6(0x1c9)]();if(this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0x14b)&&!_0x24a167)return;const _0x3979a7=++this[_0x1347a6(0x15c)];if(this[_0x1347a6(0x1fa)]?.['abort'](),this[_0x1347a6(0x1fa)]=new AbortController(),this[_0x1347a6(0x1a5)]({'detail':_0x423c04?this[_0x1347a6(0x1a1)][_0x1347a6(0x209)]:null,'result':_0x423c04?this['state']['result']:null,'detailLoading':!!_0x24a167,'scroll':_0x423c04?this[_0x1347a6(0x1a1)]['scroll']:0x0}),!!_0x24a167)try{const _0x477ebc=this[_0x1347a6(0x1a1)][_0x1347a6(0xf2)]==='wallet'?await this[_0x1347a6(0x119)]['wallet'](this[_0x1347a6(0x1fa)][_0x1347a6(0x239)],_0x24a167['address']):this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0xc6)?_0x24a167[_0x1347a6(0x131)]===_0x1347a6(0x116)?_0x24a167:_0x24a167['installed']?await this[_0x1347a6(0x119)]['command']([_0x1347a6(0x25e),_0x1347a6(0x21d)],_0x24a167,this['detailRequest'][_0x1347a6(0x239)]):{'notInstalled':!0x0}:await this[_0x1347a6(0x119)][_0x1347a6(0x209)](_0x24a167,this[_0x1347a6(0x1fa)][_0x1347a6(0x239)]);if(_0x3979a7===this[_0x1347a6(0x15c)]){const _0x5141ca=_0x477ebc['state']??(_0x24a167[_0x1347a6(0x226)]?void 0x0:_0x477ebc[_0x1347a6(0x21d)]),_0x4010c0=this[_0x1347a6(0x1a1)][_0x1347a6(0x184)][_0x1347a6(0x21c)](_0x1ce49a=>_0x1ce49a['id']===_0x24a167['id']&&_0x5141ca?{..._0x1ce49a,'state':_0x5141ca,..._0x477ebc['updatedAt']?{'updatedAt':_0x477ebc[_0x1347a6(0x1c1)]}:{},..._0x1347a6(0x210)in _0x477ebc?{'canCancel':_0x477ebc[_0x1347a6(0x210)],'canDelete':_0x477ebc['canDelete'],'canResume':_0x477ebc[_0x1347a6(0x253)]}:{}}:_0x1ce49a),_0xb1996e=f({...this['state'],'items':_0x4010c0})[_0x1347a6(0x199)](_0x8b9f1=>_0x8b9f1['id']===_0x24a167['id']);this[_0x1347a6(0x1a5)]({'detail':_0xb1996e<0x0?null:_0x477ebc,'detailLoading':!0x1,'items':_0x4010c0,'selected':Math['max'](0x0,_0xb1996e)}),_0xb1996e<0x0&&this[_0x1347a6(0x24c)]();}}catch(_0x5bb54d){_0x3979a7===this[_0x1347a6(0x15c)]&&this[_0x1347a6(0x1a5)]({'detailLoading':!0x1,'error':_0x5bb54d[_0x1347a6(0x235)]});}}['move'](_0x143d9b){const _0x36eab6=_0x4b3ed8,_0x1dfe3a=f(this['state'])[_0x36eab6(0x1e4)],_0x56d239=Math['max'](0x0,Math['min'](_0x1dfe3a-0x1,this[_0x36eab6(0x1a1)][_0x36eab6(0x1c9)]+_0x143d9b));_0x56d239!==this['state'][_0x36eab6(0x1c9)]&&(clearTimeout(this['detailTimer']),++this[_0x36eab6(0x15c)],this[_0x36eab6(0x1fa)]?.[_0x36eab6(0xc8)](),this[_0x36eab6(0x1a5)]({'selected':_0x56d239,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x36eab6(0x1a1)][_0x36eab6(0xf2)]===_0x36eab6(0xc6)?this[_0x36eab6(0x24c)]():this[_0x36eab6(0x204)]=setTimeout(()=>{const _0x217ed=_0x36eab6;this[_0x217ed(0x24c)]();},0x78)),_0x143d9b>0x0&&_0x56d239===_0x1dfe3a-0x1&&this[_0x36eab6(0x228)]();}[_0x4b3ed8(0x25b)](){const _0x15398a=_0x4b3ed8;this[_0x15398a(0x1a5)]({'filter':m[(m[_0x15398a(0x141)](this[_0x15398a(0x1a1)]['filter'])+0x1)%m[_0x15398a(0x1e4)]],'selected':0x0}),this[_0x15398a(0x24c)]();}async[_0x4b3ed8(0xd2)](_0x170ce2){const _0x16208f=_0x4b3ed8,_0x5c2671=u[(u[_0x16208f(0x141)](this[_0x16208f(0x1a1)]['tab'])+_0x170ce2+u['length'])%u[_0x16208f(0x1e4)]];this[_0x16208f(0x1a5)]({'tab':_0x5c2671,'scroll':0x0}),_0x5c2671===_0x16208f(0x124)&&await this['files']();}async[_0x4b3ed8(0x138)](){const _0x22f693=_0x4b3ed8,_0x224740=this['selected']();_0x224740?.[_0x22f693(0x226)]&&(this['detailTimer']&&this[_0x22f693(0x24c)](!0x0),this[_0x22f693(0x1a5)]({'tab':_0x22f693(0x124),'focus':_0x22f693(0x209),'scroll':0x0}),await this['run'](_0x22f693(0x20a),async _0x2237e8=>{const _0x5a19fb=_0x22f693;this['update']({'result':await this['services'][_0x5a19fb(0x163)](_0x224740['jobId'],_0x2237e8)});}));}['showForm'](_0x51acf7,_0x53ccb2,_0xf2ab41,{onCancel:_0x5a3f40,submit:_0x2c5b95=_0x4b3ed8(0x144)}={}){const _0x4e59be=_0x4b3ed8;this[_0x4e59be(0x1ba)](),this[_0x4e59be(0x1a3)]=_0xf2ab41,this[_0x4e59be(0x22e)]=_0x5a3f40,this[_0x4e59be(0x1a5)]({'form':{'title':_0x51acf7,'fields':_0x53ccb2,'values':Object[_0x4e59be(0x108)](_0x53ccb2[_0x4e59be(0x21c)](_0x3692e4=>[_0x3692e4['name'],_0x3692e4[_0x4e59be(0x1b8)]??''])),'field':0x0,'submit':_0x2c5b95,'error':null},'menu':null});}[_0x4b3ed8(0x191)](_0x3558b3){const _0x2ef19a=_0x4b3ed8,_0x35b2f8=this[_0x2ef19a(0x1a1)][_0x2ef19a(0x112)],_0x51d6d1=_0x35b2f8[_0x2ef19a(0x23a)][_0x35b2f8[_0x2ef19a(0xce)]][_0x2ef19a(0x135)];this[_0x2ef19a(0x1a5)]({'form':{..._0x35b2f8,'values':{..._0x35b2f8[_0x2ef19a(0x169)],[_0x51d6d1]:_0x3558b3},'error':null}});}['nextField'](_0x4db844=!0x1){const _0x20e86a=_0x4b3ed8,_0x585d6e=this[_0x20e86a(0x1a1)][_0x20e86a(0x112)];this['update']({'form':{..._0x585d6e,'field':(_0x585d6e[_0x20e86a(0xce)]+(_0x4db844?-0x1:0x1)+_0x585d6e[_0x20e86a(0x23a)]['length'])%_0x585d6e['fields'][_0x20e86a(0x1e4)]}});}async[_0x4b3ed8(0x13b)](){const _0x500e2e=_0x4b3ed8,{values:_0x4034c7}=this[_0x500e2e(0x1a1)]['form'];try{await this[_0x500e2e(0x1a3)](_0x4034c7);}catch(_0x57b6bb){this[_0x500e2e(0x1a5)]({'form':{...this[_0x500e2e(0x1a1)][_0x500e2e(0x112)],'error':_0x57b6bb[_0x500e2e(0x235)]}});}}[_0x4b3ed8(0x1f8)](){const _0x2f363c=_0x4b3ed8,_0x24ddd3=this[_0x2f363c(0x22e)];this[_0x2f363c(0x1a5)]({'form':null}),_0x24ddd3&&_0x24ddd3();}['search'](){const _0x1f89ad=_0x4b3ed8,_0x28c74a=this[_0x1f89ad(0x1a1)][_0x1f89ad(0xf2)]===_0x1f89ad(0xc6);this[_0x1f89ad(0x1e3)](_0x28c74a?'Search\x20workers':'Search\x20tasks',[{'name':_0x1f89ad(0x160),'label':_0x28c74a?_0x1f89ad(0x101):_0x1f89ad(0xd8),'value':this[_0x1f89ad(0x1a1)][_0x1f89ad(0x160)]}],async({query:_0x54d3c7})=>{const _0x3d88fb=_0x1f89ad;this[_0x3d88fb(0x1a5)]({'query':_0x54d3c7,'selected':0x0,'form':null}),this[_0x3d88fb(0x1a1)][_0x3d88fb(0xf2)]===_0x3d88fb(0x110)?await this[_0x3d88fb(0x1dd)]():await this[_0x3d88fb(0x24c)]();},{'submit':_0x1f89ad(0xca)});}[_0x4b3ed8(0x19f)](_0x534a7f=null){const _0x2ac5f7=_0x4b3ed8;this[_0x2ac5f7(0x132)]={'id':_0x1b9955(),'objective':'','parent':_0x534a7f},this[_0x2ac5f7(0x192)]();}[_0x4b3ed8(0xcd)](){const _0x48459a=_0x4b3ed8,_0x113fec=this['selected']();this[_0x48459a(0x1a1)][_0x48459a(0xf2)]!==_0x48459a(0x157)||!_0x113fec?.[_0x48459a(0x226)]||this['create'](_0x113fec[_0x48459a(0x226)]);}[_0x4b3ed8(0x192)](){const _0x504a23=_0x4b3ed8;this[_0x504a23(0x132)]&&(this[_0x504a23(0x1e3)](this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x237):'Create\x20a\x20task',[{'name':_0x504a23(0x231),'label':this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x13f):_0x504a23(0x1a7),'value':this[_0x504a23(0x132)][_0x504a23(0x231)],'placeholder':_0x504a23(0x177)}],async({objective:_0x44ca54})=>{const _0x54cecf=_0x504a23;if(!_0x44ca54[_0x54cecf(0x11c)]())throw new Error(_0x54cecf(0x24e));const _0xe278bb=_0x44ca54[_0x54cecf(0x11c)]()!==this['draft']['objective'];this[_0x54cecf(0x132)]={...this[_0x54cecf(0x132)],'objective':_0x44ca54['trim'](),..._0xe278bb&&this[_0x54cecf(0x132)][_0x54cecf(0x10e)]?{'id':_0x1b9955(),'createdAt':void 0x0}:{},..._0xe278bb?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x54cecf(0x1a5)]({'form':null}),await this['publishDraft']();},{'submit':'Review\x20task'}),this['update']({'form':{...this['state'][_0x504a23(0x112)],'hint':'Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.'}}));}[_0x4b3ed8(0xe1)](_0x2a35c3){return new Promise(_0x119423=>{this['askResolve']=_0x119423,this['showForm']('A\x20little\x20more\x20information',_0x2a35c3['map']((_0x3f07e2,_0x2e4019)=>({'name':String(_0x2e4019),'label':_0x3f07e2})),_0x326220=>{const _0x31ba3e=_0x4052;this[_0x31ba3e(0x1a5)]({'form':null}),this['askResolve']=null,_0x119423(Object[_0x31ba3e(0x169)](_0x326220));},{'onCancel':()=>{const _0x21d0f9=_0x4052;this[_0x21d0f9(0x250)]=null,_0x119423([]);}});});}[_0x4b3ed8(0x20d)](_0x308e20){return new Promise(_0x3437cb=>{const _0x37b166=_0x4052;this['confirmResolve']=_0x3437cb;const _0xa13b97=_0x308e20[_0x37b166(0x224)]??(_0x308e20[_0x37b166(0x235)]!==void 0x0?[String(_0x308e20['message'])]:[]);this[_0x37b166(0x1a5)]({'confirm':{..._0x308e20,'lines':_0xa13b97,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x116960){const _0x27f6a6=_0x4b3ed8,_0x107b56=this['state']['confirm'],_0x2a2973=_0x107b56['extraAction']?0x3:0x2,_0x4c628f=(_0x107b56[_0x27f6a6(0x18e)]+_0x116960+_0x2a2973)%_0x2a2973;this[_0x27f6a6(0x1a5)]({'confirm':{..._0x107b56,'selection':_0x4c628f,'accepted':_0x4c628f===_0x2a2973-0x1}});}[_0x4b3ed8(0x213)](){const _0x59785a=_0x4b3ed8,_0x362317=this['state'][_0x59785a(0x20d)];_0x362317[_0x59785a(0x1e1)]&&_0x362317[_0x59785a(0x18e)]===0x1?_0x362317['extraAction'][_0x59785a(0x1ae)]():this[_0x59785a(0xd0)](_0x362317[_0x59785a(0xf6)]);}async[_0x4b3ed8(0x137)](_0x4a8757){const _0x3f5f13=_0x4b3ed8;if(!await this[_0x3f5f13(0x20d)]({'title':_0x3f5f13(0xd7),'message':_0x4a8757?.[_0x3f5f13(0x235)]??''}))throw p();}[_0x4b3ed8(0xd0)](_0x36ef18){const _0x20ffb5=this['confirmResolve'];this['confirmResolve']=null,this['update']({'confirm':null}),_0x20ffb5(_0x36ef18);}['reviewPayment'](_0x32b710={}){return async _0x1d592a=>{const _0x4d1c7d=_0x4052,_0x5d7666=await this['confirm']({'title':_0x4d1c7d(0xf8),'payment':_0x547ef0(_0x1d592a),'extraAction':{'label':_0x4d1c7d(0x230),'run':()=>this[_0x4d1c7d(0xd0)](_0x4d1c7d(0x1bc))},..._0x32b710});if(_0x5d7666===_0x4d1c7d(0x1bc))throw W();if(!_0x5d7666)throw p();};}async[_0x4b3ed8(0x1a6)]({action:_0x26fd59,signal:_0x35670f,prefer:_0x3c41d0}){const _0x21652c=_0x4b3ed8,_0x572bcc=await this[_0x21652c(0x208)](()=>this['services'][_0x21652c(0x1e0)]({'action':_0x26fd59,'signal':_0x35670f,'prefer':_0x3c41d0}));return{'choice':_0x572bcc,'payment':{'paymentChain':_0x572bcc[_0x21652c(0x11d)],'payWith':_0x572bcc[_0x21652c(0x24d)]}};}async[_0x4b3ed8(0x172)]({action:_0x26e410,signal:_0x53554c,current:_0xecee46}){const _0x2cf5fd=_0x4b3ed8;this[_0x2cf5fd(0x1a5)]({'busy':_0x2cf5fd(0x194)});const {networks:_0x5e4532}=await this[_0x2cf5fd(0x119)][_0x2cf5fd(0x133)]({'action':_0x26e410,'signal':_0x53554c}),_0xdca48e=_0x5e4532[_0x2cf5fd(0x19a)](_0x3c49e7=>(_0x3c49e7['options']??[])[_0x2cf5fd(0x227)](_0x2a254e=>_0x2a254e[_0x2cf5fd(0x189)])[_0x2cf5fd(0x21c)](_0x1ea94f=>({'paymentChain':_0x3c49e7[_0x2cf5fd(0x19c)],'payWith':_0x1ea94f[_0x2cf5fd(0x225)],'chainName':_0x3c49e7[_0x2cf5fd(0x219)],'option':_0x1ea94f})));return new Promise(_0xfb95f0=>{const _0x437f40=_0x2cf5fd,_0x4aec6d=_0xdca48e[_0x437f40(0x21c)](_0x35fef6=>({'label':A(_0x35fef6,_0xecee46),'run':()=>_0xfb95f0({'paymentChain':_0x35fef6[_0x437f40(0x11d)],'payWith':_0x35fef6[_0x437f40(0x24d)]})}));_0x4aec6d[_0x437f40(0x1e4)]||_0x4aec6d[_0x437f40(0x1f9)]({'label':_0x437f40(0x161),'run':()=>_0xfb95f0(_0xecee46)}),this['showMenu'](_0xdca48e['length']>0x1?_0x437f40(0x15e):'Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now',_0x4aec6d,{'onCancel':()=>_0xfb95f0(_0xecee46)});});}async['publishDraft'](){const _0x524c9a=_0x4b3ed8,_0x365942=await this[_0x524c9a(0x1ae)](_0x524c9a(0x194),async _0x40740c=>{const _0x215961=_0x524c9a,_0x5e4639=this[_0x215961(0x132)];_0x5e4639['requestKey']||Object[_0x215961(0x136)](_0x5e4639,await this[_0x215961(0x119)][_0x215961(0xd3)](_0x5e4639));const _0x2e8e61=_0x5e4639[_0x215961(0x12e)]?_0x215961(0x1b6):'job.open';let _0x2215a4;try{if(!_0x5e4639[_0x215961(0x10e)]){const _0x2ca4c0=await this[_0x215961(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x215961(0x1b4)]});_0x2215a4=_0x2ca4c0[_0x215961(0x21e)],_0x5e4639[_0x215961(0x1b4)]=_0x2ca4c0[_0x215961(0x1b4)];}}catch(_0x4e7d17){if(_0x4e7d17[_0x215961(0x17c)]!==_0x215961(0x23d))throw _0x4e7d17;return{'status':_0x215961(0x132),'setupWallet':await this[_0x215961(0x20d)]({'title':_0x215961(0x156),'lines':[_0x215961(0x181),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':'Open\x20Wallets','cancelLabel':'Back\x20to\x20My\x20tasks'}),'draftId':_0x5e4639['id']};}this[_0x215961(0x1a5)]({'busy':_0x215961(0x11b)});const _0x38884b=_0x5e4639[_0x215961(0x12e)]?await this[_0x215961(0x119)][_0x215961(0x209)]({'jobId':_0x5e4639[_0x215961(0x12e)]},_0x40740c):null,_0x35dc19=_0x5e4639['plan']??await this[_0x215961(0x119)][_0x215961(0x130)]({'objective':_0x5e4639[_0x215961(0x231)],'parent':_0x38884b,'signal':_0x40740c,'ask':_0xcd32c6=>this['ask'](_0xcd32c6),'onProgress':_0x4b76fd=>{const _0x4ef1bf=_0x215961;this['update'](_0x4b76fd[_0x4ef1bf(0x1fe)]===_0x4ef1bf(0x1b5)?{'busy':_0x4ef1bf(0x11b),'modelProgress':null}:{'busy':_0x4ef1bf(0x1ca),'modelProgress':_0x4b76fd});}});if(_0x40740c[_0x215961(0x115)](),!_0x35dc19[_0x215961(0x1ac)])throw new Error(_0x35dc19[_0x215961(0x218)][_0x215961(0x143)]('\x0a')||_0x215961(0x18b));_0x5e4639[_0x215961(0x130)]=_0x35dc19,_0x5e4639['requestKey']||Object['assign'](_0x5e4639,await this[_0x215961(0x119)]['saveDraft'](_0x5e4639)),this[_0x215961(0x1a5)]({'busy':_0x215961(0xfb)});let _0x3fbc14=!0x1;const _0x490c0a=async _0x1a3e18=>{const _0x2e58db=_0x215961;if(_0x3fbc14){const _0x555632=await this[_0x2e58db(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x2e58db(0x1b4)]});_0x2215a4=_0x555632[_0x2e58db(0x21e)],_0x5e4639[_0x2e58db(0x1b4)]=_0x555632['payment'],_0x1a3e18={..._0x1a3e18,'paymentChain':_0x5e4639[_0x2e58db(0x1b4)][_0x2e58db(0x11d)],'payWith':_0x5e4639['payment'][_0x2e58db(0x24d)],'expectedWallet':_0x2215a4[_0x2e58db(0x261)]},_0x3fbc14=!0x1;}try{return await this[_0x2e58db(0x119)]['publish'](_0x1a3e18);}catch(_0x537a33){throw _0x537a33[_0x2e58db(0x17c)]==='funding_required'&&_0x537a33[_0x2e58db(0x16c)]?.['canChangePayment']&&(_0x3fbc14=!0x0),_0x537a33;}};for(;;)try{const _0x5e1c63=await this['withFundingRetry'](()=>_0x490c0a({'input':_0x35dc19['input'],'action':_0x2e8e61,'paymentChain':_0x5e4639[_0x215961(0x1b4)]?.['paymentChain'],'payWith':_0x5e4639['payment']?.[_0x215961(0x24d)],'expectedWallet':_0x2215a4?.[_0x215961(0x261)],'requestKey':_0x5e4639[_0x215961(0x10e)]??_0x5e4639['id'],'onSaved':async _0x303180=>{const _0x47605e=_0x215961;_0x5e4639[_0x47605e(0x10e)]=_0x303180[_0x47605e(0x10e)],await this[_0x47605e(0x119)][_0x47605e(0xf4)](_0x5e4639['id']);},'plan':{'summary':_0x35dc19[_0x215961(0x1f6)],'deliverables':_0x35dc19[_0x215961(0x24a)]},'signal':_0x40740c,'chooseSupport':_0x4a6765=>this[_0x215961(0x1f5)](_0x4a6765),'onProgress':_0x4eac90=>this[_0x215961(0x178)](_0x4eac90),'confirmReplacement':_0x1d3806=>this[_0x215961(0x137)](_0x1d3806),'confirm':this[_0x215961(0x1d1)]()}));return this[_0x215961(0x10c)](_0x5e1c63),_0x5e1c63;}catch(_0x4a5346){if(_0x4a5346[_0x215961(0x17c)]!==_0x215961(0x13a))throw _0x4a5346;_0x5e4639[_0x215961(0x1b4)]=await this['pickPayment']({'action':_0x2e8e61,'signal':_0x40740c,'current':_0x5e4639['payment']}),this['update']({'busy':_0x215961(0x16d)});}});if(!this[_0x524c9a(0x229)]&&_0x365942?.[_0x524c9a(0x21d)]==='draft')await this['navigate'](_0x365942[_0x524c9a(0x24b)]?_0x524c9a(0x14b):_0x524c9a(0x157)),this[_0x524c9a(0x1a5)]({'notice':_0x524c9a(0xec)}),_0x365942[_0x524c9a(0x24b)]&&this[_0x524c9a(0x155)]();else{if(!this[_0x524c9a(0x229)]&&_0x365942?.['status']==='admitted'&&_0x365942['state'][_0x524c9a(0x226)]){await this['navigate'](_0x524c9a(0x157));const _0x190335=this[_0x524c9a(0x1a1)][_0x524c9a(0x184)][_0x524c9a(0x199)](_0x5a72ce=>_0x5a72ce['jobId']===_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]);_0x190335>=0x0&&(this[_0x524c9a(0x1a5)]({'selected':_0x190335}),await this[_0x524c9a(0x24c)]()),this['update']({'notice':'Task\x20published:\x20'+_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]});}}}[_0x4b3ed8(0x178)](_0xa98149){const _0x1e4e49=_0x4b3ed8,_0x3c252b=typeof _0xa98149?.[_0x1e4e49(0x235)]=='string'?_0xa98149['message'][_0x1e4e49(0x11c)]():'';_0x3c252b&&this[_0x1e4e49(0x1a5)]({'busy':_0x3c252b});}async[_0x4b3ed8(0x208)](_0xcf1e28){const _0x2e8b5e=_0x4b3ed8;for(;;)try{return await _0xcf1e28();}catch(_0x42c1ee){if(_0x42c1ee[_0x2e8b5e(0x17c)]!==_0x2e8b5e(0x1aa))throw _0x42c1ee;if(!await this[_0x2e8b5e(0x20d)]({'title':_0x2e8b5e(0x22f),'lines':_0x2a90a8(_0x42c1ee[_0x2e8b5e(0x16c)]),'acceptLabel':_0x2e8b5e(0x220),'cancelLabel':'Back','extraAction':{'label':'Add\x20funds','run':()=>this[_0x2e8b5e(0x175)](_0x42c1ee[_0x2e8b5e(0x16c)])}}))throw p();this['update']({'busy':_0x2e8b5e(0xfc)});}}[_0x4b3ed8(0x10c)]({state:_0x2dfb5f,status:_0x5becfd,check:_0x4f3cc3}){const _0x1bd5b1=_0x4b3ed8;if(_0x5becfd===_0x1bd5b1(0x1f2)&&_0x2dfb5f['jobId'])this['draft']=null,this[_0x1bd5b1(0x1a5)]({'notice':_0x1bd5b1(0x13e)+_0x2dfb5f[_0x1bd5b1(0x226)]+_0x1bd5b1(0x195)});else{if(_0x5becfd==='blocked')this[_0x1bd5b1(0x1a5)]({'error':'Not\x20paid.\x20'+_0x4f3cc3[_0x1bd5b1(0x125)][_0x1bd5b1(0x21c)](_0x5985be=>_0x5985be[_0x1bd5b1(0x209)]??_0x5985be['code'])[_0x1bd5b1(0x143)]('\x0a')});else{if(_0x5becfd===_0x1bd5b1(0x10d))this[_0x1bd5b1(0x1a5)]({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x2dfb5f['refusalProblems']??[])[_0x1bd5b1(0x21c)](_0x12d759=>_0x12d759['detail']??_0x12d759['code'])[_0x1bd5b1(0x143)]('\x0a')+_0x1bd5b1(0x233)+_0x2dfb5f['orderId']});else{if(S[_0x1bd5b1(0x145)](_0x5becfd)){const _0x4e16c3=[_0x1bd5b1(0x1c8),_0x1bd5b1(0x181),_0x1bd5b1(0x245)],_0x22112a=_0x2dfb5f?.[_0x1bd5b1(0x1b1)]??_0x2dfb5f?.[_0x1bd5b1(0x252)];_0x22112a?.[_0x1bd5b1(0x174)]&&_0x4e16c3['push'](_0x1bd5b1(0x167)+_0x22112a['hash']),_0x22112a?.['explorerUrl']&&_0x4e16c3[_0x1bd5b1(0x1f9)](_0x1bd5b1(0xdd)+_0x22112a[_0x1bd5b1(0x103)]),this['update']({'error':_0x4e16c3[_0x1bd5b1(0x143)]('\x0a')});}else this[_0x1bd5b1(0x1a5)]({'error':'Order\x20status:\x20'+_0x5becfd+_0x1bd5b1(0x16f)});}}}}async[_0x4b3ed8(0x201)](){const _0x24fcf5=_0x4b3ed8,_0x4afe08=this[_0x24fcf5(0x1c9)]();if(this[_0x24fcf5(0x1a1)]['view']===_0x24fcf5(0x157)&&_0x4afe08?.[_0x24fcf5(0x1cb)]){const _0x503b5b=await this[_0x24fcf5(0x1ae)](_0x24fcf5(0xe8),()=>this['services']['loadDraft'](_0x4afe08[_0x24fcf5(0x1cb)]));_0x503b5b&&(this['draft']=_0x503b5b,this[_0x24fcf5(0x192)]());return;}this['state']['view']!==_0x24fcf5(0x157)||!_0x4afe08?.[_0x24fcf5(0x10e)]||_0x4afe08[_0x24fcf5(0x226)]||!_0x4afe08[_0x24fcf5(0x253)]||(this[_0x24fcf5(0x132)]=null,await this['run'](_0x24fcf5(0xc2),async _0xec72c1=>{const _0x406207=_0x24fcf5;let _0x506a17,_0x250e9a,_0xba8368;if(_0x4afe08[_0x406207(0x210)]){const _0x11abea=await this[_0x406207(0x119)]['detail'](_0x4afe08,_0xec72c1);_0xba8368=_0x11abea[_0x406207(0x114)]??_0x406207(0xeb),this[_0x406207(0x1a5)]({'busy':_0x406207(0x194)}),_0x506a17=(await this['autoPayment']({'action':_0xba8368,'signal':_0xec72c1,'prefer':{'paymentChain':_0x11abea[_0x406207(0x11d)]??_0x406207(0x254),'payWith':_0x11abea[_0x406207(0x24d)]??'IMD'}}))[_0x406207(0x1b4)],_0x250e9a=this[_0x406207(0x1d1)]({'title':_0x406207(0x128)});}let _0x3db92a=!0x1;const _0x4fb7f2=async()=>{const _0x3cc211=_0x406207;_0x3db92a&&(_0x506a17=(await this[_0x3cc211(0x1a6)]({'action':_0xba8368,'signal':_0xec72c1,'prefer':_0x506a17}))['payment'],_0x3db92a=!0x1);try{return await this['services'][_0x3cc211(0xc9)](_0x4afe08,_0x2012dc=>this[_0x3cc211(0x20d)](_0x2012dc),_0xec72c1,_0x7c3242=>this[_0x3cc211(0x1f5)](_0x7c3242),_0x45f808=>this['showPaymentProgress'](_0x45f808),_0x740914=>this[_0x3cc211(0x137)](_0x740914),{'payment':_0x506a17,'review':_0x250e9a});}catch(_0x4d25a7){throw _0x4afe08[_0x3cc211(0x210)]&&_0x4d25a7[_0x3cc211(0x17c)]===_0x3cc211(0x1aa)&&_0x4d25a7['funding']?.[_0x3cc211(0xe0)]&&(_0x3db92a=!0x0),_0x4d25a7;}};for(;;)try{this[_0x406207(0x10c)](await this['withFundingRetry'](_0x4fb7f2));return;}catch(_0x3eb2e3){if(_0x3eb2e3['code']!=='change_payment')throw _0x3eb2e3;_0x506a17=await this[_0x406207(0x172)]({'action':_0xba8368,'signal':_0xec72c1,'current':_0x506a17}),this[_0x406207(0x1a5)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}['taskMenu'](){const _0x9ab71d=_0x4b3ed8,_0x1303bf=this[_0x9ab71d(0x1c9)]();if(this[_0x9ab71d(0x1a1)][_0x9ab71d(0xf2)]!==_0x9ab71d(0x157)||!_0x1303bf)return;const _0xd5203a=[{'label':_0x9ab71d(0x11f),'run':()=>this[_0x9ab71d(0x1a5)]({'focus':'detail','tab':_0x9ab71d(0x255),'scroll':0x0})}];_0x1303bf[_0x9ab71d(0x1cb)]?_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x19e),'run':()=>this[_0x9ab71d(0x201)]()},{'label':'Delete\x20draft','run':()=>this[_0x9ab71d(0x1ea)]()}):_0x1303bf[_0x9ab71d(0x226)]?(_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x15f),'run':()=>this[_0x9ab71d(0x138)]()},{'label':_0x9ab71d(0x164),'run':()=>this[_0x9ab71d(0x13d)]()}),_0x1303bf[_0x9ab71d(0x1a1)]===_0x9ab71d(0xd5)&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0xfa),'run':()=>this[_0x9ab71d(0xcd)]()})):_0x1303bf[_0x9ab71d(0x10e)]&&(_0x1303bf['canResume']&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x1303bf['canCancel']?_0x9ab71d(0x1b0):'Inspect\x20/\x20resume\x20saved\x20order','run':()=>this[_0x9ab71d(0x201)]()}),_0x1303bf[_0x9ab71d(0x210)]&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x1fb),'run':()=>this[_0x9ab71d(0x1e2)]()}),_0x1303bf['canDelete']&&_0xd5203a['push']({'label':'Delete\x20local\x20record','run':()=>this[_0x9ab71d(0x23c)]()})),this[_0x9ab71d(0x15d)](_0x9ab71d(0x251),_0xd5203a);}async[_0x4b3ed8(0x1ea)](){const _0x74f1a1=_0x4b3ed8,_0x3b0330=this[_0x74f1a1(0x1c9)]();if(!_0x3b0330?.[_0x74f1a1(0x1cb)]||!await this['confirm']({'title':'Delete\x20draft?','lines':[_0x3b0330[_0x74f1a1(0x1d7)]],'acceptLabel':_0x74f1a1(0x1a0),'cancelLabel':_0x74f1a1(0x18d)}))return;await this[_0x74f1a1(0x1ae)](_0x74f1a1(0xc3),()=>this[_0x74f1a1(0x119)][_0x74f1a1(0xf4)](_0x3b0330[_0x74f1a1(0x1cb)]))&&(this[_0x74f1a1(0x132)]?.['id']===_0x3b0330[_0x74f1a1(0x1cb)]&&(this['draft']=null),await this[_0x74f1a1(0x1dd)]());}async[_0x4b3ed8(0x1e2)](){const _0x4176d5=_0x4b3ed8,_0x5c5f6c=this[_0x4176d5(0x1c9)]();if(this['state'][_0x4176d5(0xf2)]!==_0x4176d5(0x157)||!_0x5c5f6c?.['canCancel'])return;let _0xd4a703=!0x1;await this[_0x4176d5(0x1ae)](_0x4176d5(0xe7),async()=>{const _0xf63fdb=_0x4176d5;await this[_0xf63fdb(0x20d)]({'title':_0xf63fdb(0xf5),'lines':[_0x5c5f6c[_0xf63fdb(0x1d7)],'',_0xf63fdb(0xdf),_0xf63fdb(0x1af),'You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.'],'acceptLabel':_0xf63fdb(0x1fb),'cancelLabel':_0xf63fdb(0x21b)})&&(await this[_0xf63fdb(0x119)][_0xf63fdb(0x205)](_0x5c5f6c),_0xd4a703=!0x0);}),_0xd4a703&&!this[_0x4176d5(0x229)]&&(await this[_0x4176d5(0x1dd)](),this['update']({'notice':_0x4176d5(0x1e9)}));}async[_0x4b3ed8(0x23c)](){const _0x4b2d29=_0x4b3ed8,_0x502e9b=this['selected']();if(this[_0x4b2d29(0x1a1)]['view']!=='tasks'||!_0x502e9b?.[_0x4b2d29(0x186)])return;let _0x3dfd3a=!0x1;await this['run'](_0x4b2d29(0x12f),async()=>{const _0x384a0e=_0x4b2d29;await this[_0x384a0e(0x119)]['delete'](_0x502e9b),_0x3dfd3a=!0x0;}),_0x3dfd3a&&!this[_0x4b2d29(0x229)]&&(await this['refresh'](),this[_0x4b2d29(0x1a5)]({'notice':_0x4b2d29(0x193)}));}[_0x4b3ed8(0x13d)](){const _0x251ca=_0x4b3ed8,_0x344d9b=this[_0x251ca(0x1c9)]();_0x344d9b?.['jobId']&&this[_0x251ca(0x1e3)](_0x251ca(0x20b),[{'name':_0x251ca(0x100),'label':_0x251ca(0x179),'value':_0x251ca(0x1dc)+_0x344d9b[_0x251ca(0x226)]}],async({out:_0x36e3b6})=>{const _0x46166b=_0x251ca;if(!_0x36e3b6[_0x46166b(0x11c)]())throw new Error(_0x46166b(0xbe));this[_0x46166b(0x1a5)]({'form':null}),await this[_0x46166b(0x1ae)]('Downloading\x20verified\x20files...',async _0x4270c3=>{const _0x5916f3=_0x46166b,_0x3ea1ed=await this[_0x5916f3(0x119)][_0x5916f3(0x13d)]({'id':_0x344d9b[_0x5916f3(0x226)],'out':_0x36e3b6,'signal':_0x4270c3,'onProgress':_0x23a3da=>this[_0x5916f3(0x1a5)]({'busy':_0x5916f3(0x1e7)+_0x23a3da['path']})});this[_0x5916f3(0x1a5)]({'notice':_0x5916f3(0x1e7)+_0x3ea1ed[_0x5916f3(0x138)]['length']+_0x5916f3(0x196)+_0x36e3b6});});},{'submit':_0x251ca(0x17d)});}[_0x4b3ed8(0xcb)](){const _0x460802=_0x4b3ed8;this[_0x460802(0x1e3)]('Add\x20a\x20worker\x20target',[{'name':'host','label':_0x460802(0xdb)},{'name':_0x460802(0x1f1),'label':_0x460802(0x21f),'value':'22'},{'name':_0x460802(0x200),'label':'SSH\x20identity\x20file\x20(optional)'}],async _0x113579=>{const _0x572b4b=_0x460802,_0x29f02c=_0x5b065c(_0x113579);this['extraTargets'][_0x572b4b(0x23e)](_0x551f53=>_0x551f53['id']===_0x29f02c['id'])||this[_0x572b4b(0x118)][_0x572b4b(0x1f9)](_0x29f02c),this[_0x572b4b(0x1a5)]({'form':null}),await this[_0x572b4b(0x1dd)](),this['update']({'selected':this[_0x572b4b(0x1a1)][_0x572b4b(0x184)][_0x572b4b(0x199)](_0x439e44=>_0x439e44['id']===_0x29f02c['id'])}),await this['loadDetail']();},{'submit':_0x460802(0x147)});}[_0x4b3ed8(0x15d)](_0x3224bf,_0x3e129b,{onCancel:_0x26c1db,selected:_0x181dc4=0x0}={}){const _0x3f1ca5=_0x4b3ed8;this[_0x3f1ca5(0x1ba)](),this['menuCancel']=_0x26c1db??null,this[_0x3f1ca5(0x1a5)]({'menu':{'title':_0x3224bf,'items':_0x3e129b,'selected':_0x181dc4},'form':null});}[_0x4b3ed8(0x1f5)](_0x36286f){return new Promise((_0x3efa36,_0x3c49b5)=>{const _0x19febc=_0x4052;this[_0x19febc(0x15d)](_0x19febc(0x152),_0x36286f[_0x19febc(0x21c)]((_0x250fa3,_0x3b69bf)=>({'label':_0x250fa3[_0x19febc(0x170)],'run':()=>_0x3efa36(_0x3b69bf)})),{'onCancel':()=>_0x3c49b5(p()),'selected':_0x714d5c});});}['dismissMenu'](){const _0xe910bd=_0x4b3ed8,_0x15999a=this['menuCancel'];this['menuCancel']=null,this[_0xe910bd(0x1a5)]({'menu':null}),_0x15999a?.();}[_0x4b3ed8(0x1d4)](){const _0x25e621=_0x4b3ed8,_0x9020fc=this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x184)][this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x1c9)]];this[_0x25e621(0x1bb)]=null,this['update']({'menu':null}),_0x9020fc[_0x25e621(0x1ae)]();}['workerMenu'](){const _0x125dab=_0x4b3ed8,_0x58c5a0=this[_0x125dab(0x1c9)]();if(!_0x58c5a0||_0x58c5a0[_0x125dab(0x131)]===_0x125dab(0x116))return;const _0x2355e0=(_0x11e63a,_0x3e3344=!0x1)=>()=>this[_0x125dab(0x1d9)](_0x11e63a,_0x3e3344),_0x1d2655=(_0x2723ee,_0x324e21,_0x24d28d,_0x526a0d,_0x40233b=!0x1)=>()=>this[_0x125dab(0x1e3)](_0x2723ee,[{'name':_0x24d28d,'label':_0x526a0d}],_0x379fbe=>{const _0x1f7f5e=_0x125dab;if(!_0x379fbe[_0x24d28d][_0x1f7f5e(0x11c)]())throw new Error(_0x526a0d+_0x1f7f5e(0x16e));return this[_0x1f7f5e(0x1a5)]({'form':null}),this[_0x1f7f5e(0x1d9)](_0x324e21[_0x1f7f5e(0x1c3)](_0x379fbe[_0x24d28d]['trim']()),_0x40233b);});this[_0x125dab(0x15d)](_0x125dab(0x12b)+_0x58c5a0[_0x125dab(0x1d7)],[{'label':_0x125dab(0x146),'run':_0x2355e0([_0x125dab(0x21d)])},{'label':_0x125dab(0x129),'run':_0x2355e0([_0x125dab(0x23b)])},{'label':_0x125dab(0xe9),'run':_0x2355e0(['doctor'])},{'label':_0x125dab(0xee),'run':_0x2355e0([_0x125dab(0x102)])},{'label':_0x125dab(0x249),'run':_0x2355e0([_0x125dab(0xd6)],!0x0)},{'label':_0x125dab(0x1ce),'run':_0x2355e0([_0x125dab(0x22a)],!0x0)},{'label':_0x125dab(0x18a),'run':_0x2355e0([_0x125dab(0x1eb)],!0x0)},{'label':'Install\x20background\x20service','run':()=>this[_0x125dab(0x104)]()},...['start',_0x125dab(0x248),_0x125dab(0x154),_0x125dab(0x1a5)][_0x125dab(0x21c)](_0x3efb5f=>({'label':_0x3efb5f[0x0][_0x125dab(0xff)]()+_0x3efb5f['slice'](0x1),'run':_0x2355e0([_0x3efb5f],!0x0)})),{'label':'Skills','run':()=>this[_0x125dab(0x15d)]('Worker\x20skills',[{'label':_0x125dab(0x10f),'run':_0x2355e0([_0x125dab(0x242),_0x125dab(0xf0)])},{'label':_0x125dab(0x1ff),'run':_0x1d2655(_0x125dab(0x1ff),[_0x125dab(0x242),'add'],'id',_0x125dab(0x149))},{'label':'Remove\x20skill','run':_0x1d2655(_0x125dab(0xd4),[_0x125dab(0x242),'remove'],'id',_0x125dab(0x149))}])},{'label':_0x125dab(0x127),'run':()=>this['showMenu'](_0x125dab(0x256),[{'label':_0x125dab(0x1ed),'run':_0x2355e0([_0x125dab(0x260),_0x125dab(0xf0)])},{'label':'Add\x20tool','run':_0x2355e0([_0x125dab(0x260),'add'],!0x0)},{'label':_0x125dab(0x232),'run':_0x1d2655(_0x125dab(0xea),[_0x125dab(0x260),_0x125dab(0x19c)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x117),'run':_0x1d2655(_0x125dab(0x117),['tools',_0x125dab(0x140)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x171),'run':_0x1d2655('Remove\x20tool',[_0x125dab(0x260),'remove'],'id',_0x125dab(0x22b))}])},{'label':_0x125dab(0xc5),'run':()=>this[_0x125dab(0x15d)]('Worker\x20RPC\x20endpoints',[{'label':'List\x20RPC\x20endpoints','run':_0x2355e0([_0x125dab(0x10b),_0x125dab(0xf0)])},{'label':_0x125dab(0x139),'run':_0x1d2655(_0x125dab(0x142),[_0x125dab(0x10b),'add'],_0x125dab(0x11e),_0x125dab(0x18f),!0x0)},{'label':'Remove\x20RPC\x20endpoint','run':_0x1d2655(_0x125dab(0xfe),['rpc',_0x125dab(0xd1)],_0x125dab(0x11e),_0x125dab(0x18f))}])},{'label':_0x125dab(0x1fc),'run':_0x2355e0([_0x125dab(0x241)],!0x0)}]);}[_0x4b3ed8(0x104)](){const _0x28abe7=_0x4b3ed8;this[_0x28abe7(0x1e3)](_0x28abe7(0x258),[{'name':_0x28abe7(0x217),'label':_0x28abe7(0x188),'value':_0x28abe7(0x1fd)},{'name':_0x28abe7(0xfd),'label':_0x28abe7(0x15a),'value':'1'},{'name':_0x28abe7(0x173),'label':_0x28abe7(0x1f3),'value':'no'}],async({runtime:_0x13675c,concurrency:_0x31beeb,boot:_0x37ecd6})=>{const _0x50e7b6=_0x28abe7;if(![_0x50e7b6(0x1fd),_0x50e7b6(0x1c7)][_0x50e7b6(0x223)](_0x13675c))throw new Error(_0x50e7b6(0x12a));if(!/^[1-4]$/['test'](_0x31beeb))throw new Error(_0x50e7b6(0x1c4));if(![_0x50e7b6(0x207),'no']['includes'](_0x37ecd6))throw new Error(_0x50e7b6(0x247));const _0x4e8cc5=[_0x50e7b6(0x1d3),_0x50e7b6(0x206),_0x50e7b6(0x1df),_0x13675c,'--concurrency',_0x31beeb];_0x37ecd6===_0x50e7b6(0x207)&&_0x4e8cc5[_0x50e7b6(0x1f9)](_0x50e7b6(0x20c)),this[_0x50e7b6(0x1a5)]({'form':null}),await this[_0x50e7b6(0x1d9)](_0x4e8cc5,!0x0);});}async[_0x4b3ed8(0x1d9)](_0x5cf115,_0x5e8208=!0x1){const _0x21394e=_0x4b3ed8,_0x22f2b4=this[_0x21394e(0x1c9)]();!_0x22f2b4||_0x22f2b4[_0x21394e(0x131)]===_0x21394e(0x116)||await this[_0x21394e(0x1ae)](_0x21394e(0xda)+_0x5cf115[_0x21394e(0x143)]('\x20')+_0x21394e(0x122),async _0x4b3a57=>{const _0x420522=_0x21394e;if(_0x5e8208){if(!await this['confirm']({'title':_0x420522(0x1a4)+_0x22f2b4[_0x420522(0x1d7)]+'?','lines':['colony\x20worker\x20'+_0x5cf115[_0x420522(0x143)]('\x20'),_0x420522(0xc1)]}))return;await this[_0x420522(0x23f)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4),this[_0x420522(0x1a5)]({'notice':_0x420522(0xbd)});}else{const _0x4c04bf=await this[_0x420522(0x119)][_0x420522(0x158)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4,_0x4b3a57);this['update']({'detail':{'output':_0x4c04bf},'focus':_0x420522(0x209),'scroll':0x0});}});}[_0x4b3ed8(0x15b)](_0x579da7){return new Promise((_0x5e7e61,_0x5f70f0)=>{const _0x35826b=_0x4052;this[_0x35826b(0x1c6)]=_0x5f70f0,this['showForm'](_0x35826b(0x14a),[{'name':_0x35826b(0x262),'label':_0x579da7,'secret':!0x0}],({password:_0x4facae})=>{const _0x3124f9=_0x35826b;this[_0x3124f9(0x1a5)]({'form':null}),this['passwordReject']=null,_0x5e7e61(_0x4facae);},{'submit':_0x35826b(0x144),'onCancel':()=>{const _0x389c9b=_0x35826b;this[_0x389c9b(0x1c6)]=null,_0x5f70f0(new Error(_0x389c9b(0x25c)));}});});}[_0x4b3ed8(0x259)](){const _0x30fba1=_0x4b3ed8,_0x4d7338=this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.['source']===_0x30fba1(0x198);this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]&&this['showMenu'](_0x30fba1(0x203),[...!this[_0x30fba1(0x1bf)]()&&this[_0x30fba1(0x1c9)]()?[{'label':_0x30fba1(0x236),'run':()=>this[_0x30fba1(0x176)]()}]:[],..._0x4d7338?[{'label':_0x30fba1(0xbc),'run':()=>this['walletPrivateKey']()},{'label':_0x30fba1(0x257),'run':()=>this[_0x30fba1(0x1bd)]()},{'label':'Delete\x20wallet','run':()=>this[_0x30fba1(0xe5)]()}]:[],...this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x30fba1(0x25f)]()}]:[]]);}[_0x4b3ed8(0x155)](){const _0x301f19=_0x4b3ed8;this[_0x301f19(0x15d)]('Wallet\x20management\x20\xB7\x20all\x20wallets',[{'label':'Create\x20a\x20new\x20local\x20wallet','run':()=>this[_0x301f19(0x14f)](!0x1)},{'label':_0x301f19(0x180),'run':()=>this['walletImport']()}]);}[_0x4b3ed8(0x16a)](){const _0x4cf061=_0x4b3ed8;this[_0x4cf061(0x15d)](_0x4cf061(0x180),[{'label':_0x4cf061(0x215),'run':()=>this[_0x4cf061(0x14f)](!0x0)},{'label':_0x4cf061(0xf1),'run':()=>this['walletRestore']()}]);}['walletIsCurrent'](){const _0x538b6d=_0x4b3ed8;return!this['selected']()||this[_0x538b6d(0x1c9)]()['address']===this[_0x538b6d(0x1a1)][_0x538b6d(0x261)];}async[_0x4b3ed8(0xe5)](){const _0x45df3d=_0x4b3ed8,_0x154d8c=this[_0x45df3d(0x1c9)]()?.['address']??this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x261)];if(this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x263)]!=='local'||!_0x154d8c||!await this[_0x45df3d(0x20d)]({'title':_0x45df3d(0x1da),'lines':[_0x154d8c,_0x45df3d(0x20e),_0x45df3d(0x17f)],'acceptLabel':_0x45df3d(0x144),'cancelLabel':'Keep\x20wallet'})||!await this[_0x45df3d(0x20d)]({'title':'Delete\x20wallet\x20\xB7\x202\x20of\x202','lines':[_0x154d8c,'The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.',_0x45df3d(0x185)],'acceptLabel':_0x45df3d(0x1e8),'cancelLabel':'Keep\x20wallet'}))return;const _0x5eaa8c=await this[_0x45df3d(0x1ae)](_0x45df3d(0x1c0),()=>this[_0x45df3d(0x119)][_0x45df3d(0xe6)](_0x154d8c));_0x5eaa8c&&(await this[_0x45df3d(0xd9)](_0x5eaa8c[_0x45df3d(0x1cf)]),this[_0x45df3d(0x1a5)]({'notice':_0x45df3d(0xc0)+_0x154d8c}));}['walletPrivateKey'](){const _0x239576=_0x4b3ed8,_0x4f6bd0=this[_0x239576(0x1c9)]()?.['address']??this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x261)];this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x263)]!==_0x239576(0x198)||!_0x4f6bd0||this['showForm'](_0x239576(0x1cd),[{'name':_0x239576(0x262),'label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x275f5c})=>{const _0x198861=_0x239576;this[_0x198861(0x1a5)]({'form':null});const _0x3ada62=await this[_0x198861(0x1ae)]('Checking\x20wallet\x20password...',_0xe9a86e=>this[_0x198861(0x119)]['revealPrivateKey'](_0x4f6bd0,_0x275f5c,_0xe9a86e));_0x3ada62&&this[_0x198861(0x1a5)]({'privateKeyView':_0x3ada62});},{'submit':_0x239576(0xbc)});}async[_0x4b3ed8(0xd9)](_0x5883d5){const _0xb89e89=_0x4b3ed8;this['update']({'selected':-0x1}),this[_0xb89e89(0x24f)]=_0x5883d5,await this[_0xb89e89(0x1dd)]();}async[_0x4b3ed8(0x176)](){const _0x43695e=_0x4b3ed8,_0x54ad26=this[_0x43695e(0x1c9)]();if(!_0x54ad26||this[_0x43695e(0x1bf)]())return;const _0x4925c9=await this[_0x43695e(0x1ae)]('Switching\x20wallet...',()=>this[_0x43695e(0x119)][_0x43695e(0x1e5)](_0x54ad26[_0x43695e(0x261)]));_0x4925c9&&(await this[_0x43695e(0x1dd)](),this['update']({'notice':_0x43695e(0xef)+_0x4925c9['address']}));}[_0x4b3ed8(0x14f)](_0xb930ca){const _0x4e69cd=_0x4b3ed8,_0x379092=this['services'][_0x4e69cd(0x134)]()[_0x4e69cd(0x1e4)]>0x0||this[_0x4e69cd(0x1a1)][_0x4e69cd(0x209)]?.[_0x4e69cd(0x263)]===_0x4e69cd(0x198),_0x1d3636=async({key:_0x4dc0cb,password:_0x5bad9b,repeat:_0x311b4a})=>{const _0x17dfd1=_0x4e69cd;if(!_0x379092){if(_0x5bad9b!==_0x311b4a)throw new Error(_0x17dfd1(0x20f));if(_0x5bad9b['length']<0x8)throw new Error(_0x17dfd1(0x106));}this['update']({'form':null});const _0x56403d=await this[_0x17dfd1(0x1ae)](_0x17dfd1(0xdc),_0x613524=>this[_0x17dfd1(0x119)][_0x17dfd1(0x197)](_0x5bad9b,_0x4dc0cb,_0x613524));_0x56403d&&(await this[_0x17dfd1(0xd9)](_0x56403d[_0x17dfd1(0x261)]),this['update']({'notice':'Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.'}));};if(_0x379092&&!_0xb930ca)return _0x1d3636({});this[_0x4e69cd(0x1e3)](_0xb930ca?'Import\x20private\x20key\x20\xB7\x20encrypted\x20locally':_0x4e69cd(0x19d),[..._0xb930ca?[{'name':_0x4e69cd(0x19c),'label':'Private\x20key\x20(hidden)','secret':!0x0}]:[],..._0x379092?[]:[{'name':_0x4e69cd(0x262),'label':_0x4e69cd(0x22d),'secret':!0x0},{'name':_0x4e69cd(0x13c),'label':'Confirm\x20password','secret':!0x0}]],_0x1d3636,{'submit':_0xb930ca?_0x4e69cd(0x180):'Create\x20wallet'});}[_0x4b3ed8(0xe3)](){const _0xceac38=_0x4b3ed8;this[_0xceac38(0x1e3)]('Restore\x20encrypted\x20wallet',[{'name':_0xceac38(0x105),'label':'Backup\x20file\x20path'},{'name':_0xceac38(0x262),'label':'Backup\x20password','secret':!0x0}],async({file:_0x423bd4,password:_0x491a8c})=>{const _0x3306a9=_0xceac38;this[_0x3306a9(0x1a5)]({'form':null});const _0xfa940=await this[_0x3306a9(0x1ae)](_0x3306a9(0x221),_0x31b653=>this[_0x3306a9(0x119)][_0x3306a9(0x246)](_0x423bd4,_0x491a8c,_0x31b653));_0xfa940&&await this[_0x3306a9(0xd9)](_0xfa940[_0x3306a9(0x261)]);},{'submit':_0xceac38(0x1f0)});}['walletBackup'](){const _0x3190e2=_0x4b3ed8,_0x1ec435=this[_0x3190e2(0x1c9)]()?.[_0x3190e2(0x261)]??this['state']['detail']?.[_0x3190e2(0x261)];_0x1ec435&&this[_0x3190e2(0x1e3)](_0x3190e2(0x257),[{'name':'out','label':_0x3190e2(0x1f7)}],async({out:_0x159a55})=>{const _0x350125=_0x3190e2;this['update']({'form':null});const _0x487909=await this[_0x350125(0x1ae)](_0x350125(0x19b),()=>this[_0x350125(0x119)]['backupWallet'](_0x159a55,_0x1ec435));_0x487909&&this['update']({'notice':_0x350125(0x14d)+_0x487909[_0x350125(0x165)]+_0x350125(0xcf)});},{'submit':'Save\x20backup'});}async['walletReceive'](){const _0x3b48ad=_0x4b3ed8,_0x22b34e=this[_0x3b48ad(0x1c9)]()?.[_0x3b48ad(0x261)]??this[_0x3b48ad(0x1a1)][_0x3b48ad(0x209)]?.['address'];_0x22b34e&&await this[_0x3b48ad(0x1ae)](_0x3b48ad(0x1ab),async()=>{const _0x16f1eb=_0x3b48ad;this[_0x16f1eb(0x1a5)]({'receive':await this[_0x16f1eb(0x119)]['receiveWallet'](_0x22b34e)});});}[_0x4b3ed8(0x175)](_0x51f8b5){const _0x2ea244=_0x4b3ed8,_0x52c1e2=_0x11d6f7(_0x51f8b5)['filter'](_0x3695b1=>!_0x3695b1[_0x2ea244(0x190)]);if(_0x52c1e2['length']<=0x1)return this['fundingReceive'](_0x51f8b5,_0x52c1e2[0x0]??_0x11d6f7(_0x51f8b5)[0x0]);const _0x809383={'dialog':this[_0x2ea244(0x1a1)]['confirm'],'scroll':this[_0x2ea244(0x1a1)][_0x2ea244(0x25a)]};this[_0x2ea244(0x1a5)]({'confirm':null}),this['showMenu'](_0x2ea244(0x1be),_0x52c1e2[_0x2ea244(0x21c)](_0xf7b805=>({'label':_0x28df1c(_0xf7b805),'run':()=>this[_0x2ea244(0xc4)](_0x51f8b5,_0xf7b805,_0x809383)})),{'onCancel':()=>this['update']({'confirm':_0x809383['dialog'],'scroll':_0x809383[_0x2ea244(0x25a)]})});}async[_0x4b3ed8(0xc4)](_0x12c7ef,_0x199e0e,_0x541cb6){const _0x514158=_0x4b3ed8,_0x555183=_0x541cb6?.['dialog']??this[_0x514158(0x1a1)][_0x514158(0x20d)],_0x4ec28e=_0x541cb6?.[_0x514158(0x25a)]??this[_0x514158(0x1a1)][_0x514158(0x25a)];try{const _0x5ac9d4=await this['services'][_0x514158(0x243)](_0x12c7ef[_0x514158(0x261)],_0x199e0e[_0x514158(0x19c)]);this['fundingDialog']={'dialog':_0x555183,'scroll':_0x4ec28e},this[_0x514158(0x1a5)]({'confirm':null,'receive':{..._0x5ac9d4,'targets':_0x3746eb(_0x199e0e)},'scroll':0x0,'error':null,'notice':null});}catch(_0x1d4242){this[_0x514158(0x1a5)]({'error':_0x1d4242['message'],..._0x541cb6?{'confirm':_0x555183,'scroll':_0x4ec28e}:{}});}}[_0x4b3ed8(0x1b3)](){const _0x359aff=_0x4b3ed8,_0x4a2c77=this['fundingDialog'];this[_0x359aff(0x1cc)]=null,this['update']({'receive':null,..._0x4a2c77?{'confirm':_0x4a2c77[_0x359aff(0x17b)],'scroll':_0x4a2c77[_0x359aff(0x25a)]}:{}});}[_0x4b3ed8(0x1b9)](){const _0x3ac86d=_0x4b3ed8,_0x53603c=this[_0x3ac86d(0x1a1)][_0x3ac86d(0x1d0)][_0x3ac86d(0x261)];this['showForm']('Save\x20recharge\x20QR\x20code',[{'name':_0x3ac86d(0x100),'label':'New\x20SVG\x20file\x20path','placeholder':_0x3ac86d(0x214)}],async({out:_0x1228e0})=>{const _0x2abcf7=_0x3ac86d,_0x371b5c=await this[_0x2abcf7(0x119)][_0x2abcf7(0x1db)](_0x53603c,_0x1228e0);this[_0x2abcf7(0x1a5)]({'form':null,'notice':_0x2abcf7(0x151)+_0x371b5c[_0x2abcf7(0x165)]});},{'submit':_0x3ac86d(0x1a9)});}['close'](){const _0x425672=_0x4b3ed8;clearTimeout(this[_0x425672(0x204)]),this['menuCancel']?.(),this[_0x425672(0x1bb)]=null,this[_0x425672(0x1c6)]?.(new Error(_0x425672(0xf3))),this['passwordReject']=null,_0x3ec757(),this[_0x425672(0x1a5)]({'form':null,'privateKeyView':null}),this['closed']=!0x0,this['operation']?.[_0x425672(0xc8)](),this[_0x425672(0x212)]?.[_0x425672(0xc8)](),this[_0x425672(0x1fa)]?.[_0x425672(0xc8)](),this['confirmResolve']?.(!0x1),this[_0x425672(0x1cc)]=null,this[_0x425672(0x250)]?.([]),++this[_0x425672(0x15c)],this[_0x425672(0x1d5)][_0x425672(0x234)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
|
|
1
|
+
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};
|
package/dist/tui/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
import{fork as _0x5b4037}from'node:child_process';import{createServices as _0x318290}from'./services.mjs';function _0x4d8d(){const _0x5419e8=['handoff','target','ipc','json','inherit','code\x20','The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.','services','./session.mjs','Dashboard\x20exited\x20with\x20','notice','stdout','send','isTTY','message','args','error','restore','Command\x20finished.\x20Press\x20r\x20to\x20refresh.'];_0x4d8d=function(){return _0x5419e8;};return _0x4d8d();}function d(_0x2d738f,_0x13bfb0){return new Promise((_0x2b4f22,_0x35d0ed)=>{const _0x26cd15=_0x5b48,_0x29c011=_0x5b4037(new URL(_0x26cd15(0xa6),import.meta.url),[],{'stdio':['inherit','inherit',_0x26cd15(0xa2),_0x26cd15(0xa0)],'windowsHide':!0x0});let _0x262128;_0x29c011['on'](_0x26cd15(0xac),_0x27137b=>{const _0x9788c4=_0x26cd15;_0x262128=_0x27137b[_0x9788c4(0x9e)];}),_0x29c011['on']('error',_0x35d0ed),_0x29c011['on']('exit',(_0x1e1f3e,_0xcad463)=>{const _0x113953=_0x26cd15;_0x1e1f3e!==0x0?_0x35d0ed(new Error(_0x113953(0xa7)+(_0xcad463??_0x113953(0xa3)+_0x1e1f3e)+'.')):_0x2b4f22(_0x262128);}),_0x29c011[_0x26cd15(0xaa)]({'options':_0x2d738f,'restore':_0x13bfb0});});}function _0x5b48(_0x555abf,_0x4d8dba){_0x555abf=_0x555abf-0x9e;const _0x5b48dd=_0x4d8d();let _0x18b791=_0x5b48dd[_0x555abf];return _0x18b791;}async function w(_0x379a70,_0x517033={}){const _0x13357c=_0x5b48;if(!process['stdin'][_0x13357c(0xab)]||!process[_0x13357c(0xa9)]['isTTY']||_0x379a70[_0x13357c(0xa1)])throw new Error(_0x13357c(0xa4));const _0x6dc9ce=_0x517033[_0x13357c(0xa5)]??_0x318290(_0x379a70,_0x517033);let _0x4f5dd6;for(;;){const _0x297861=await d(_0x379a70,_0x4f5dd6);if(!_0x297861)return;_0x4f5dd6=_0x297861[_0x13357c(0xaf)];try{await _0x6dc9ce['interactive'](_0x297861[_0x13357c(0xad)],_0x297861[_0x13357c(0x9f)]),_0x4f5dd6[_0x13357c(0xa8)]=_0x13357c(0xb0);}catch(_0x1d95b1){_0x4f5dd6[_0x13357c(0xae)]=_0x1d95b1[_0x13357c(0xac)];}}}export{w as startDashboard};
|
|
@@ -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};
|
package/dist/tui/session.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5e54(){const _0x255d58=['extraTargets','requestPassword','close','update','ascii','restoreSelectedId','waitUntilExit','disabled','once','disconnect','send','message','getSnapshot'];_0x5e54=function(){return _0x255d58;};return _0x5e54();}const _0x24bf0c=_0x3cc1;import{createElement as _0x2aef74,useCallback as _0x769ed0}from'react';import{render as _0x1b6f71,useApp as _0x2b22c3}from'ink';import{DashboardApp as _0x48cc0a}from'./app.mjs';import{DashboardController as _0x116f69}from'./controller.mjs';function _0x3cc1(_0xa242e6,_0x5e5460){_0xa242e6=_0xa242e6-0x1ee;const _0x3cc1cb=_0x5e54();let _0x13d9ab=_0x3cc1cb[_0xa242e6];return _0x13d9ab;}import{createServices as _0x4ee10e}from'./services.mjs';process[_0x24bf0c(0x1f6)](_0x24bf0c(0x1f9),async({options:_0x14b2ac,restore:_0x5f411b})=>{const _0x13b664=_0x24bf0c,_0x3bfaa6=new _0x116f69(_0x4ee10e(_0x14b2ac));_0x14b2ac['requestPassword']=_0x1b32a1=>_0x3bfaa6[_0x13b664(0x1ef)](_0x1b32a1);let _0x3e7073;if(_0x5f411b){const {selectedId:_0x2e6a6b,extraTargets:_0x6a3668,notice:_0x3612c6,error:_0x128f11,..._0x2ce3f5}=_0x5f411b;_0x3e7073={'notice':_0x3612c6??null,'error':_0x128f11??null},_0x3bfaa6[_0x13b664(0x1f1)](_0x2ce3f5),_0x3bfaa6[_0x13b664(0x1f3)]=_0x2e6a6b,_0x3bfaa6[_0x13b664(0x1ee)]=_0x6a3668;}let _0x5a2c40;function _0x4bfcc3(){const _0x57ce6d=_0x13b664,{exit:_0x1168c5}=_0x2b22c3(),_0x1dcf52=_0x769ed0(async(_0x3a2f4f,_0x527474)=>{const _0x59e678=_0x3cc1,{view:_0x1a8573,filter:_0x4a8471,query:_0xd04397,tab:_0x20a91f,focus:_0x56995f}=_0x3bfaa6[_0x59e678(0x1fa)]();_0x5a2c40={'args':_0x3a2f4f,'target':_0x527474,'restore':{'view':_0x1a8573,'filter':_0x4a8471,'query':_0xd04397,'tab':_0x20a91f,'focus':_0x56995f,'selectedId':_0x3bfaa6['selected']()?.['id'],'extraTargets':_0x3bfaa6[_0x59e678(0x1ee)]}},_0x3bfaa6[_0x59e678(0x1f0)](),_0x1168c5();},[_0x1168c5]);return _0x2aef74(_0x48cc0a,{'controller':_0x3bfaa6,'ascii':_0x14b2ac[_0x57ce6d(0x1f2)],'terminal':_0x1dcf52,'feedback':_0x3e7073,'welcome':!_0x5f411b});}const _0x604c5f=_0x1b6f71(_0x2aef74(_0x4bfcc3),{'interactive':!0x0,'alternateScreen':!0x0,'exitOnCtrlC':!0x1,'kittyKeyboard':{'mode':_0x13b664(0x1f5)},'maxFps':0x14});try{await _0x604c5f[_0x13b664(0x1f4)](),process[_0x13b664(0x1f8)]({'handoff':_0x5a2c40});}finally{_0x3bfaa6[_0x13b664(0x1f0)](),process[_0x13b664(0x1f7)]();}});
|