@claudiolabs/claudin 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App-1.1.35-r3nj6jfs.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.35-8nvhxyw9.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.35-1ywwnh39.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.35-bvk75rww.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.35-1ct3fw8c.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.35-nt22bzb6.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.35-98xrgmtc.mjs +6 -0
- package/dist/chunks/Doctor-1.1.35-k34y3jy9.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.35-nan1wyke.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.35-kt3ng0j6.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.35-k7wnc3v8.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.35-3dp4jb6e.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.35-6pa67bzn.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.35-4sje6bjv.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.35-99y8t1j9.mjs +1 -0
- package/dist/chunks/REPL-1.1.35-0vqh1ns0.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.35-104fszyr.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.35-xcz2dypc.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.35-nfckw5cx.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.35-6528ybrk.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.35-rqncjk99.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.35-0t2d7g7n.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.35-j9d3asbg.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.35-fkjy6sz1.mjs +1 -0
- package/dist/chunks/add-dir-1.1.35-4gh89hh4.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.35-nx5q66t5.mjs +1 -0
- package/dist/chunks/agents-1.1.35-0kyfdt7w.mjs +3 -0
- package/dist/chunks/agents-1.1.35-1vzstv4y.mjs +110 -0
- package/dist/chunks/api-1.1.35-ab0j2x7t.mjs +1 -0
- package/dist/chunks/asciicast-1.1.35-xgjp2wrs.mjs +1 -0
- package/dist/chunks/auth-1.1.35-2fpa9v9f.mjs +1 -0
- package/dist/chunks/auth-1.1.35-deksnwe8.mjs +1 -0
- package/dist/chunks/autoMode-1.1.35-8d2qr79q.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.35-hg5dxv1t.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.35-5pzsrenf.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.35-2kythx4m.mjs +1 -0
- package/dist/chunks/branch-1.1.35-tmksh596.mjs +4 -0
- package/dist/chunks/bridge-1.1.35-0za41yjp.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.35-qtvayvc3.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.35-3mhemdrx.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.35-7awverkv.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.35-5gpfg6h4.mjs +1 -0
- package/dist/chunks/btw-1.1.35-6hy8wabr.mjs +1 -0
- package/dist/chunks/buddy-1.1.35-8z3tb1ne.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.35-adn6dpak.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.35-z3268gay.mjs +4 -0
- package/dist/chunks/caches-1.1.35-1qqfgvsm.mjs +1 -0
- package/dist/chunks/cd-1.1.35-vqy7n0x0.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.35-enw3hpss.mjs +1 -0
- package/dist/chunks/claudemd-1.1.35-wsav3shz.mjs +1 -0
- package/dist/chunks/clear-1.1.35-21ry6n0m.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.35-sg808cbp.mjs +1 -0
- package/dist/chunks/cli-1.1.35-02qx9a8j.mjs +2 -0
- package/dist/chunks/cli-1.1.35-0axe3ev5.mjs +2 -0
- package/dist/chunks/cli-1.1.35-0feday40.mjs +20 -0
- package/dist/chunks/cli-1.1.35-0p69hr1j.mjs +2 -0
- package/dist/chunks/cli-1.1.35-0qrw70p1.mjs +2 -0
- package/dist/chunks/cli-1.1.35-0tc3wmtp.mjs +5 -0
- package/dist/chunks/cli-1.1.35-0vpxr2rk.mjs +2 -0
- package/dist/chunks/cli-1.1.35-0zkzg6at.mjs +2 -0
- package/dist/chunks/cli-1.1.35-1618y169.mjs +2 -0
- package/dist/chunks/cli-1.1.35-18wszrez.mjs +15 -0
- package/dist/chunks/cli-1.1.35-1bzyzrvt.mjs +2 -0
- package/dist/chunks/cli-1.1.35-1ceb2tjb.mjs +2 -0
- package/dist/chunks/cli-1.1.35-1gae8a5m.mjs +2 -0
- package/dist/chunks/cli-1.1.35-1x2wb524.mjs +2 -0
- package/dist/chunks/cli-1.1.35-21w0bna1.mjs +2 -0
- package/dist/chunks/cli-1.1.35-22q1jqqq.mjs +2 -0
- package/dist/chunks/cli-1.1.35-2gxxpyvc.mjs +2 -0
- package/dist/chunks/cli-1.1.35-2sm1x5n8.mjs +2 -0
- package/dist/chunks/cli-1.1.35-2x0m7ewe.mjs +9 -0
- package/dist/chunks/cli-1.1.35-34h7nfzz.mjs +11 -0
- package/dist/chunks/cli-1.1.35-389ej7r1.mjs +2 -0
- package/dist/chunks/cli-1.1.35-38s8y5cf.mjs +2 -0
- package/dist/chunks/cli-1.1.35-3keqk8xr.mjs +2 -0
- package/dist/chunks/cli-1.1.35-3zrjqd93.mjs +2 -0
- package/dist/chunks/cli-1.1.35-41srzc8c.mjs +2 -0
- package/dist/chunks/cli-1.1.35-46bm9f8q.mjs +2 -0
- package/dist/chunks/cli-1.1.35-4d0cm3mc.mjs +2 -0
- package/dist/chunks/cli-1.1.35-4d9merys.mjs +2 -0
- package/dist/chunks/cli-1.1.35-4g77zek0.mjs +24 -0
- package/dist/chunks/cli-1.1.35-4kft2wxe.mjs +2 -0
- package/dist/chunks/cli-1.1.35-4njf7z42.mjs +2 -0
- package/dist/chunks/cli-1.1.35-4typvdqe.mjs +2 -0
- package/dist/chunks/cli-1.1.35-589b1qht.mjs +2 -0
- package/dist/chunks/cli-1.1.35-5b39mwe0.mjs +2 -0
- package/dist/chunks/cli-1.1.35-5j12hjjm.mjs +2 -0
- package/dist/chunks/cli-1.1.35-5v115fee.mjs +2 -0
- package/dist/chunks/cli-1.1.35-61gmwbbt.mjs +2 -0
- package/dist/chunks/cli-1.1.35-688xsqg8.mjs +2 -0
- package/dist/chunks/cli-1.1.35-6c4v5dpe.mjs +15 -0
- package/dist/chunks/cli-1.1.35-6nhv8vhv.mjs +2 -0
- package/dist/chunks/cli-1.1.35-6p10e278.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7g4yw92j.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7hfdc6xn.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7mxbj45y.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7mz6cnfb.mjs +6 -0
- package/dist/chunks/cli-1.1.35-7nsr0a6p.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7p1685r1.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7tt5b2wx.mjs +2 -0
- package/dist/chunks/cli-1.1.35-7y74em05.mjs +2 -0
- package/dist/chunks/cli-1.1.35-82ak1wpt.mjs +7 -0
- package/dist/chunks/cli-1.1.35-854kyr9a.mjs +3 -0
- package/dist/chunks/cli-1.1.35-85zb0hfp.mjs +2 -0
- package/dist/chunks/cli-1.1.35-873xb9w7.mjs +2 -0
- package/dist/chunks/cli-1.1.35-8b1qqrev.mjs +135 -0
- package/dist/chunks/cli-1.1.35-8d9f31xx.mjs +2 -0
- package/dist/chunks/cli-1.1.35-8qdvqjz3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-8ttx7y70.mjs +2 -0
- package/dist/chunks/cli-1.1.35-959df5vk.mjs +2 -0
- package/dist/chunks/cli-1.1.35-9817kkw4.mjs +3 -0
- package/dist/chunks/cli-1.1.35-9dkpx812.mjs +2 -0
- package/dist/chunks/cli-1.1.35-9tnc0a3x.mjs +2 -0
- package/dist/chunks/cli-1.1.35-9z4kwrpr.mjs +6 -0
- package/dist/chunks/cli-1.1.35-a7ygtwdr.mjs +5 -0
- package/dist/chunks/cli-1.1.35-a8677mcz.mjs +2 -0
- package/dist/chunks/cli-1.1.35-a9y8qxsj.mjs +6 -0
- package/dist/chunks/cli-1.1.35-an20pj6q.mjs +2 -0
- package/dist/chunks/cli-1.1.35-arj7fm1n.mjs +2 -0
- package/dist/chunks/cli-1.1.35-b0n88pf7.mjs +2 -0
- package/dist/chunks/cli-1.1.35-bbq4frhw.mjs +2 -0
- package/dist/chunks/cli-1.1.35-bhmad6rp.mjs +3 -0
- package/dist/chunks/cli-1.1.35-bka68014.mjs +2 -0
- package/dist/chunks/cli-1.1.35-bq7wadxz.mjs +2 -0
- package/dist/chunks/cli-1.1.35-c05841mj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-c3vqfrj0.mjs +45 -0
- package/dist/chunks/cli-1.1.35-c4thx500.mjs +26 -0
- package/dist/chunks/cli-1.1.35-cj42e7aq.mjs +24 -0
- package/dist/chunks/cli-1.1.35-cjdzbmst.mjs +2 -0
- package/dist/chunks/cli-1.1.35-cjsf2kh3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-cm0anghq.mjs +2 -0
- package/dist/chunks/cli-1.1.35-cp6wwahj.mjs +4 -0
- package/dist/chunks/cli-1.1.35-d6kd2zv5.mjs +2 -0
- package/dist/chunks/cli-1.1.35-d7n85zf2.mjs +2 -0
- package/dist/chunks/cli-1.1.35-da72zgbs.mjs +50 -0
- package/dist/chunks/cli-1.1.35-dfcj4fkz.mjs +2 -0
- package/dist/chunks/cli-1.1.35-dk4f6kgr.mjs +2 -0
- package/dist/chunks/cli-1.1.35-dnacc640.mjs +252 -0
- package/dist/chunks/cli-1.1.35-dw3fv0g8.mjs +60 -0
- package/dist/chunks/cli-1.1.35-dwaz1jv4.mjs +2 -0
- package/dist/chunks/cli-1.1.35-e08b8j98.mjs +18 -0
- package/dist/chunks/cli-1.1.35-eqcgyqke.mjs +39 -0
- package/dist/chunks/cli-1.1.35-ewtk80cp.mjs +3 -0
- package/dist/chunks/cli-1.1.35-f6sa351s.mjs +5 -0
- package/dist/chunks/cli-1.1.35-f8jgxvev.mjs +2 -0
- package/dist/chunks/cli-1.1.35-fgkpe9g9.mjs +2 -0
- package/dist/chunks/cli-1.1.35-fjtf9x1v.mjs +2 -0
- package/dist/chunks/cli-1.1.35-fr8gap0y.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ftvtbdm6.mjs +4 -0
- package/dist/chunks/cli-1.1.35-fwyc7v71.mjs +7 -0
- package/dist/chunks/cli-1.1.35-fz50q22a.mjs +2 -0
- package/dist/chunks/cli-1.1.35-g2vg6fw2.mjs +2 -0
- package/dist/chunks/cli-1.1.35-g7086zkj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-g74y15na.mjs +2 -0
- package/dist/chunks/cli-1.1.35-gcjyc9x3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-gr966v4t.mjs +2 -0
- package/dist/chunks/cli-1.1.35-h06ng57d.mjs +2 -0
- package/dist/chunks/cli-1.1.35-h262sgvd.mjs +4 -0
- package/dist/chunks/cli-1.1.35-h71ph12s.mjs +2 -0
- package/dist/chunks/cli-1.1.35-h7qpm4z8.mjs +3 -0
- package/dist/chunks/cli-1.1.35-hm1wpf1w.mjs +2 -0
- package/dist/chunks/cli-1.1.35-htvjtg4f.mjs +2 -0
- package/dist/chunks/cli-1.1.35-hwphkmp4.mjs +2 -0
- package/dist/chunks/cli-1.1.35-hy9jtbmb.mjs +5570 -0
- package/dist/chunks/cli-1.1.35-hyqzaskn.mjs +2 -0
- package/dist/chunks/cli-1.1.35-j1ypjsz5.mjs +2 -0
- package/dist/chunks/cli-1.1.35-j7xxkgf1.mjs +133 -0
- package/dist/chunks/cli-1.1.35-jajp8grw.mjs +2 -0
- package/dist/chunks/cli-1.1.35-jdqn8gkp.mjs +2 -0
- package/dist/chunks/cli-1.1.35-jfzp91gv.mjs +2 -0
- package/dist/chunks/cli-1.1.35-jn52m495.mjs +2 -0
- package/dist/chunks/cli-1.1.35-jq1wvnwe.mjs +17 -0
- package/dist/chunks/cli-1.1.35-jrexyjt9.mjs +2 -0
- package/dist/chunks/cli-1.1.35-jvhs6ypf.mjs +10 -0
- package/dist/chunks/cli-1.1.35-jx42cnmn.mjs +15 -0
- package/dist/chunks/cli-1.1.35-k6jh38a3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-kbrngf5h.mjs +2 -0
- package/dist/chunks/cli-1.1.35-kcgcs2dj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-kdw3m4z1.mjs +25 -0
- package/dist/chunks/cli-1.1.35-kh8s6rf2.mjs +4 -0
- package/dist/chunks/cli-1.1.35-kkhrpw6q.mjs +2 -0
- package/dist/chunks/cli-1.1.35-kp2hgrdb.mjs +24 -0
- package/dist/chunks/cli-1.1.35-ktb8z2s9.mjs +3 -0
- package/dist/chunks/cli-1.1.35-kvw88dmk.mjs +2 -0
- package/dist/chunks/cli-1.1.35-kz5tydkv.mjs +2 -0
- package/dist/chunks/cli-1.1.35-m20xytkt.mjs +2 -0
- package/dist/chunks/cli-1.1.35-m6efjk78.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ma6czbht.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ms3xdp4c.mjs +42 -0
- package/dist/chunks/cli-1.1.35-ms5g0jwj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-nahyfraf.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ne21zedp.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ngg53c9c.mjs +2 -0
- package/dist/chunks/cli-1.1.35-pa3rjff6.mjs +2 -0
- package/dist/chunks/cli-1.1.35-pgcrgrc3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-pms9wnd8.mjs +2 -0
- package/dist/chunks/cli-1.1.35-pr69kkhz.mjs +2 -0
- package/dist/chunks/cli-1.1.35-prf6sjs7.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ps66nanc.mjs +2 -0
- package/dist/chunks/cli-1.1.35-pycaqt81.mjs +2 -0
- package/dist/chunks/cli-1.1.35-q1axe4bk.mjs +2 -0
- package/dist/chunks/cli-1.1.35-qb0eb8th.mjs +2 -0
- package/dist/chunks/cli-1.1.35-qbahm5cg.mjs +2 -0
- package/dist/chunks/cli-1.1.35-qgjs5ex0.mjs +7 -0
- package/dist/chunks/cli-1.1.35-qnfq8bw4.mjs +4 -0
- package/dist/chunks/cli-1.1.35-qvdpj1qb.mjs +2 -0
- package/dist/chunks/cli-1.1.35-qxj39xzd.mjs +8 -0
- package/dist/chunks/cli-1.1.35-qygaywxg.mjs +34 -0
- package/dist/chunks/cli-1.1.35-r4rm2297.mjs +4 -0
- package/dist/chunks/cli-1.1.35-r80cjbt8.mjs +2 -0
- package/dist/chunks/cli-1.1.35-rmfsk9nw.mjs +2 -0
- package/dist/chunks/cli-1.1.35-s05wj44h.mjs +3 -0
- package/dist/chunks/cli-1.1.35-s066wwsj.mjs +3 -0
- package/dist/chunks/cli-1.1.35-s367nd6g.mjs +2 -0
- package/dist/chunks/cli-1.1.35-s3d0nchc.mjs +2 -0
- package/dist/chunks/cli-1.1.35-s6n3pb03.mjs +2 -0
- package/dist/chunks/cli-1.1.35-s85hd24a.mjs +16 -0
- package/dist/chunks/cli-1.1.35-sg0tga4d.mjs +2 -0
- package/dist/chunks/cli-1.1.35-swxcv3xf.mjs +6 -0
- package/dist/chunks/cli-1.1.35-szkn08rr.mjs +2 -0
- package/dist/chunks/cli-1.1.35-t2vx6b45.mjs +17 -0
- package/dist/chunks/cli-1.1.35-t5kexs8c.mjs +6 -0
- package/dist/chunks/cli-1.1.35-t8c5b3qj.mjs +4 -0
- package/dist/chunks/cli-1.1.35-ta15z2yx.mjs +10 -0
- package/dist/chunks/cli-1.1.35-tsrq3cxy.mjs +2 -0
- package/dist/chunks/cli-1.1.35-tsx8c30n.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ve889dy8.mjs +3 -0
- package/dist/chunks/cli-1.1.35-w1mzdb9s.mjs +2 -0
- package/dist/chunks/cli-1.1.35-w6kgq9n5.mjs +2 -0
- package/dist/chunks/cli-1.1.35-w73x0912.mjs +2 -0
- package/dist/chunks/cli-1.1.35-w9wzew2x.mjs +4 -0
- package/dist/chunks/cli-1.1.35-wmcp8vyj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-wpa5rfnt.mjs +12 -0
- package/dist/chunks/cli-1.1.35-wtjyzsga.mjs +2 -0
- package/dist/chunks/cli-1.1.35-ww28b5vj.mjs +2 -0
- package/dist/chunks/cli-1.1.35-x5ft52g3.mjs +2 -0
- package/dist/chunks/cli-1.1.35-xbhjhs1c.mjs +3 -0
- package/dist/chunks/cli-1.1.35-xdzsf38z.mjs +2 -0
- package/dist/chunks/cli-1.1.35-xs5mj8ee.mjs +21 -0
- package/dist/chunks/cli-1.1.35-y6bdqv7z.mjs +2 -0
- package/dist/chunks/cli-1.1.35-y6xhcehv.mjs +25 -0
- package/dist/chunks/cli-1.1.35-yns1ngnz.mjs +2 -0
- package/dist/chunks/cli-1.1.35-yta9zrj6.mjs +2 -0
- package/dist/chunks/cli-1.1.35-zbz78cha.mjs +9 -0
- package/dist/chunks/cli-1.1.35-zf7zq3kb.mjs +63 -0
- package/dist/chunks/client-1.1.35-2j9sd0sg.mjs +1 -0
- package/dist/chunks/color-1.1.35-nf9dqw3m.mjs +1 -0
- package/dist/chunks/compact-1.1.35-h8mqxxs0.mjs +2 -0
- package/dist/chunks/config-1.1.35-7t0vfbst.mjs +1 -0
- package/dist/chunks/config-1.1.35-cfhvn2fq.mjs +1 -0
- package/dist/chunks/constants-1.1.35-kst22e3x.mjs +1 -0
- package/dist/chunks/context-1.1.35-2nc26t9y.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.35-0ym77q3t.mjs +1 -0
- package/dist/chunks/conversation-1.1.35-0q4g6qt8.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.35-7a5mc98p.mjs +1 -0
- package/dist/chunks/copy-1.1.35-n37rvhzj.mjs +9 -0
- package/dist/chunks/cost-1.1.35-hjmwjk6s.mjs +1 -0
- package/dist/chunks/createSession-1.1.35-v7c15fc8.mjs +1 -0
- package/dist/chunks/debug-1.1.35-2hf8mhst.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.35-15jcbncs.mjs +1480 -0
- package/dist/chunks/desktop-1.1.35-6w6gjpff.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.35-eztj0q3f.mjs +1 -0
- package/dist/chunks/detection-1.1.35-rfkb2dxe.mjs +1 -0
- package/dist/chunks/diff-1.1.35-xb27tkcx.mjs +1 -0
- package/dist/chunks/doctor-1.1.35-ddg564v7.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.35-1gfkz0p1.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.35-5wsb4bkz.mjs +1 -0
- package/dist/chunks/effort-1.1.35-r53ttmc3.mjs +13 -0
- package/dist/chunks/engine-1.1.35-xthhbk9w.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.35-t6narn79.mjs +1 -0
- package/dist/chunks/envUtils-1.1.35-t6yq14ba.mjs +1 -0
- package/dist/chunks/errors-1.1.35-6m0kryy5.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.35-c7dhfj0z.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.35-39xh2ycx.mjs +1 -0
- package/dist/chunks/exit-1.1.35-zc8g5mnv.mjs +1 -0
- package/dist/chunks/explorer-1.1.35-784hbx9r.mjs +1 -0
- package/dist/chunks/export-1.1.35-5q6zdykx.mjs +2 -0
- package/dist/chunks/fast-1.1.35-fpsnnadp.mjs +1 -0
- package/dist/chunks/feedback-1.1.35-mdm8easg.mjs +16 -0
- package/dist/chunks/git-1.1.35-j2med41y.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.35-4xzf0z5w.mjs +1 -0
- package/dist/chunks/goal-1.1.35-yp44rshy.mjs +4 -0
- package/dist/chunks/headless-1.1.35-rxvrbe58.mjs +2 -0
- package/dist/chunks/heapdump-1.1.35-xkthm0kj.mjs +6 -0
- package/dist/chunks/help-1.1.35-6ppc7eee.mjs +1 -0
- package/dist/chunks/hooks-1.1.35-0e80c1wz.mjs +79 -0
- package/dist/chunks/hooks-1.1.35-f791gbgk.mjs +1 -0
- package/dist/chunks/ide-1.1.35-pz8m36fj.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.35-56y5k454.mjs +1 -0
- package/dist/chunks/import-1.1.35-fcn1y643.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.35-n6b7ppqk.mjs +1 -0
- package/dist/chunks/index-1.1.35-434cwyrk.mjs +1 -0
- package/dist/chunks/index-1.1.35-4ngbsgjz.mjs +1 -0
- package/dist/chunks/index-1.1.35-7nsjazx1.mjs +1 -0
- package/dist/chunks/index-1.1.35-8rnbf6ea.mjs +1 -0
- package/dist/chunks/index-1.1.35-e5amgccf.mjs +1 -0
- package/dist/chunks/index-1.1.35-eejex06g.mjs +5 -0
- package/dist/chunks/index-1.1.35-epm25vr2.mjs +9 -0
- package/dist/chunks/index-1.1.35-jxpschvm.mjs +1 -0
- package/dist/chunks/index-1.1.35-mdgw0byv.mjs +9 -0
- package/dist/chunks/index-1.1.35-n36e4pzf.mjs +1 -0
- package/dist/chunks/index-1.1.35-nnrmrgn5.mjs +30 -0
- package/dist/chunks/index-1.1.35-p1fttaxb.mjs +1 -0
- package/dist/chunks/index-1.1.35-p3ttta20.mjs +1 -0
- package/dist/chunks/index-1.1.35-pjz1v5fa.mjs +1 -0
- package/dist/chunks/index-1.1.35-pqswr512.mjs +23 -0
- package/dist/chunks/index-1.1.35-q464ks4t.mjs +1 -0
- package/dist/chunks/index-1.1.35-r5cefbke.mjs +2 -0
- package/dist/chunks/index-1.1.35-rf0z1h76.mjs +1 -0
- package/dist/chunks/index-1.1.35-wg3dwx0w.mjs +2 -0
- package/dist/chunks/index-1.1.35-xcm76j0n.mjs +1 -0
- package/dist/chunks/index-1.1.35-y7q90201.mjs +1 -0
- package/dist/chunks/index-1.1.35-y9scvznb.mjs +1 -0
- package/dist/chunks/index-1.1.35-yy5qsdz8.mjs +1 -0
- package/dist/chunks/init-1.1.35-hawgzj6s.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.35-aee08exn.mjs +1 -0
- package/dist/chunks/ink-1.1.35-9vhjhx60.mjs +1 -0
- package/dist/chunks/insights-1.1.35-2782qak6.mjs +870 -0
- package/dist/chunks/install-1.1.35-nptjkfk3.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.35-v4ahg5m0.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.35-rc6ch1k0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.35-1755rb8a.mjs +1 -0
- package/dist/chunks/keybindings-1.1.35-9qz4bvrq.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.35-ff7kd1x3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.35-nwtm30nv.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.35-jxqkv874.mjs +1 -0
- package/dist/chunks/log-1.1.35-h5x69tbw.mjs +1 -0
- package/dist/chunks/main-1.1.35-1e6064ax.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.35-s6143dpv.mjs +1 -0
- package/dist/chunks/mcp-1.1.35-0tswravz.mjs +1 -0
- package/dist/chunks/mcp-1.1.35-bdv2pgpj.mjs +17 -0
- package/dist/chunks/mcp-1.1.35-khngfse0.mjs +4 -0
- package/dist/chunks/mcpb-1.1.35-p4jn8q66.mjs +1 -0
- package/dist/chunks/memory-1.1.35-zvk9c80b.mjs +128 -0
- package/dist/chunks/model-1.1.35-j8hp9tcm.mjs +1 -0
- package/dist/chunks/model-1.1.35-mb41ksj1.mjs +2 -0
- package/dist/chunks/node-1.1.35-312s6waw.mjs +1 -0
- package/dist/chunks/node-1.1.35-zzk2fc7x.mjs +15 -0
- package/dist/chunks/oauth-1.1.35-2pwvpgey.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.35-6gbm01ym.mjs +14 -0
- package/dist/chunks/output-style-1.1.35-gbk18883.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.35-0z3efknf.mjs +1 -0
- package/dist/chunks/permissions-1.1.35-c11nnhp0.mjs +3 -0
- package/dist/chunks/permissions-1.1.35-vqtbrznv.mjs +1 -0
- package/dist/chunks/plan-1.1.35-5nz3m4kh.mjs +1 -0
- package/dist/chunks/plist-1.1.35-4bd0g91w.mjs +1 -0
- package/dist/chunks/plugin-1.1.35-0tg6jzxg.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.35-z1parxqs.mjs +1 -0
- package/dist/chunks/plugins-1.1.35-z14pz0dr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.35-9dyzn96j.mjs +2 -0
- package/dist/chunks/print-1.1.35-89rm2txf.mjs +57 -0
- package/dist/chunks/process-1.1.35-7x8d7kyn.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.35-hj8xz358.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.35-egejjqfw.mjs +9 -0
- package/dist/chunks/prompt-1.1.35-aaz8q4j6.mjs +1 -0
- package/dist/chunks/prompt-1.1.35-f3fackax.mjs +1 -0
- package/dist/chunks/prompts-1.1.35-58wwfjfd.mjs +1 -0
- package/dist/chunks/provider-1.1.35-xwj158q8.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.35-6wzwgty6.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.35-z9h8ampz.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.35-7ewvmysm.mjs +26 -0
- package/dist/chunks/registry-1.1.35-y4zandg8.mjs +1 -0
- package/dist/chunks/release-notes-1.1.35-s31rkdxh.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.35-18xd3nwy.mjs +2 -0
- package/dist/chunks/remote-env-1.1.35-0v4tk5np.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.35-ev420056.mjs +1 -0
- package/dist/chunks/rename-1.1.35-m8chhebj.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.35-483j4br6.mjs +1 -0
- package/dist/chunks/resume-1.1.35-vaxxp18n.mjs +2 -0
- package/dist/chunks/rewind-1.1.35-scs8763b.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.35-9j5y8k9x.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.35-zjy5t791.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.35-qrmypwca.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.35-c2k8p98n.mjs +1 -0
- package/dist/chunks/session-1.1.35-78ew080a.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.35-0tyr8wn3.mjs +1 -0
- package/dist/chunks/settings-1.1.35-808m5j14.mjs +1 -0
- package/dist/chunks/setup-1.1.35-ebpewe9s.mjs +12 -0
- package/dist/chunks/sinks-1.1.35-nj35kk9h.mjs +1 -0
- package/dist/chunks/skills-1.1.35-zczajd48.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.35-wa5psc2j.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.35-0wac30ap.mjs +1 -0
- package/dist/chunks/state-1.1.35-gcp827qz.mjs +1 -0
- package/dist/chunks/stats-1.1.35-f1kndsge.mjs +1 -0
- package/dist/chunks/status-1.1.35-gwtdrkx2.mjs +1 -0
- package/dist/chunks/stickers-1.1.35-fa69zd3v.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.35-8wsc86ft.mjs +1 -0
- package/dist/chunks/tasks-1.1.35-0wd1t6v2.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.35-13qqfhxa.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.35-wdbfsm1h.mjs +1 -0
- package/dist/chunks/teleport-1.1.35-tmhzqx90.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.35-6xq5nt25.mjs +1 -0
- package/dist/chunks/theme-1.1.35-4b6gd2dx.mjs +1 -0
- package/dist/chunks/thinkback-1.1.35-x88djqdz.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.35-g6n14rjh.mjs +1 -0
- package/dist/chunks/toolPool-1.1.35-0qd67zrc.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.35-54dpcvf8.mjs +1 -0
- package/dist/chunks/tools-1.1.35-3hjsc7mm.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.35-szkdvqcz.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.35-4azkv4s5.mjs +69 -0
- package/dist/chunks/types-1.1.35-ncfe8wzg.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.35-d271ddpn.mjs +4 -0
- package/dist/chunks/update-1.1.35-5zabq625.mjs +72 -0
- package/dist/chunks/upload-1.1.35-gey82edy.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.35-bbztgd01.mjs +14 -0
- package/dist/chunks/usage-1.1.35-sx2ahz77.mjs +1 -0
- package/dist/chunks/util-1.1.35-aph6a5hy.mjs +1 -0
- package/dist/chunks/utils-1.1.35-avpezj08.mjs +1 -0
- package/dist/chunks/vim-1.1.35-e0jh10q6.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.35-baxd01b0.mjs +13 -0
- package/dist/chunks/wiki-1.1.35-cns1572n.mjs +132 -0
- package/dist/chunks/workflows-1.1.35-0r21887z.mjs +1 -0
- package/dist/chunks/worktree-1.1.35-0mj24by3.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.35-6ej7pdyw.mjs +1 -0
- package/dist/chunks/wrapper-1.1.35-fpcy8t3v.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.34-5bkzspjw.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +0 -6
- package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +0 -1
- package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +0 -1
- package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +0 -1
- package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +0 -3
- package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +0 -110
- package/dist/chunks/api-1.1.34-99hm00p0.mjs +0 -1
- package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +0 -1
- package/dist/chunks/auth-1.1.34-32n80bwr.mjs +0 -1
- package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +0 -1
- package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +0 -1
- package/dist/chunks/branch-1.1.34-949t9ara.mjs +0 -4
- package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +0 -1
- package/dist/chunks/btw-1.1.34-4246e84n.mjs +0 -1
- package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +0 -4
- package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +0 -1
- package/dist/chunks/cd-1.1.34-6458ex95.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +0 -1
- package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +0 -1
- package/dist/chunks/cli-1.1.34-00hxx56p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +0 -9
- package/dist/chunks/cli-1.1.34-0f5qa0q0.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0h4whfas.mjs +0 -6
- package/dist/chunks/cli-1.1.34-0kkae10p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0zqthr52.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1229x70a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-166q8s04.mjs +0 -24
- package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +0 -3
- package/dist/chunks/cli-1.1.34-1ategs07.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +0 -3
- package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +0 -12
- package/dist/chunks/cli-1.1.34-20femz8z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-20p72tmb.mjs +0 -20
- package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +0 -5
- package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +0 -2
- package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-372a0qyj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-37g65vk7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3rcacat5.mjs +0 -3
- package/dist/chunks/cli-1.1.34-4v8eanby.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4x915j9t.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-58ergrxf.mjs +0 -7
- package/dist/chunks/cli-1.1.34-59csbz1a.mjs +0 -60
- package/dist/chunks/cli-1.1.34-5ec767fj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +0 -3
- package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5vktvncs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +0 -4
- package/dist/chunks/cli-1.1.34-643n510j.mjs +0 -2
- package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +0 -2
- package/dist/chunks/cli-1.1.34-6ndxsqp1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +0 -133
- package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7bxexffs.mjs +0 -6
- package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7npd3as5.mjs +0 -18
- package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +0 -3
- package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-84707tma.mjs +0 -5491
- package/dist/chunks/cli-1.1.34-859ap6f7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +0 -2
- package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +0 -39
- package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +0 -2
- package/dist/chunks/cli-1.1.34-92kps6jn.mjs +0 -63
- package/dist/chunks/cli-1.1.34-9jn997h8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-9tctqya9.mjs +0 -6
- package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-9z887t80.mjs +0 -2
- package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +0 -2
- package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-c3w48hst.mjs +0 -2
- package/dist/chunks/cli-1.1.34-cp457g25.mjs +0 -11
- package/dist/chunks/cli-1.1.34-cptp243m.mjs +0 -2
- package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +0 -4
- package/dist/chunks/cli-1.1.34-d5enzbca.mjs +0 -2
- package/dist/chunks/cli-1.1.34-d8bccy48.mjs +0 -7
- package/dist/chunks/cli-1.1.34-dceap5rk.mjs +0 -4
- package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +0 -3
- package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-f806gv2e.mjs +0 -7
- package/dist/chunks/cli-1.1.34-faavcjnj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ffs3510y.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +0 -17
- package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +0 -34
- package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fnds3msv.mjs +0 -6
- package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g888fgsj.mjs +0 -4
- package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-gmaedxb1.mjs +0 -26
- package/dist/chunks/cli-1.1.34-gsrndv90.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +0 -4
- package/dist/chunks/cli-1.1.34-h7927ctg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h9h6119y.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +0 -10
- package/dist/chunks/cli-1.1.34-he92bjvt.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hrw37per.mjs +0 -8
- package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +0 -24
- package/dist/chunks/cli-1.1.34-hyya784q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-j8ab267c.mjs +0 -2
- package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +0 -2
- package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +0 -4
- package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +0 -15
- package/dist/chunks/cli-1.1.34-k761g5m2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +0 -2
- package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +0 -6
- package/dist/chunks/cli-1.1.34-mhjjf878.mjs +0 -5
- package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +0 -42
- package/dist/chunks/cli-1.1.34-ncz9dava.mjs +0 -2
- package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +0 -25
- package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +0 -2
- package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +0 -4
- package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-q83yydqv.mjs +0 -133
- package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +0 -2
- package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +0 -10
- package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-qs805z7n.mjs +0 -9
- package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r222exkd.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +0 -45
- package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +0 -4
- package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +0 -21
- package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +0 -3
- package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +0 -3
- package/dist/chunks/cli-1.1.34-shm51n5s.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sq51za8b.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-syx85e6f.mjs +0 -15
- package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +0 -2
- package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +0 -3
- package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +0 -50
- package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +0 -15
- package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vz14r55x.mjs +0 -3
- package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +0 -2
- package/dist/chunks/cli-1.1.34-webjc1s3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wh74w227.mjs +0 -2
- package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +0 -24
- package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +0 -203
- package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +0 -2
- package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +0 -5
- package/dist/chunks/cli-1.1.34-xx555z7d.mjs +0 -25
- package/dist/chunks/cli-1.1.34-yfasvar9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yk56k2na.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yqryw36t.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yqyrt954.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +0 -16
- package/dist/chunks/cli-1.1.34-z14xw89f.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z1htezxg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +0 -17
- package/dist/chunks/client-1.1.34-4exntck8.mjs +0 -1
- package/dist/chunks/color-1.1.34-d4199wch.mjs +0 -1
- package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +0 -2
- package/dist/chunks/config-1.1.34-acewhfv4.mjs +0 -1
- package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +0 -1
- package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +0 -1
- package/dist/chunks/context-1.1.34-wc822wp5.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +0 -1
- package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +0 -1
- package/dist/chunks/copy-1.1.34-efb24nm3.mjs +0 -9
- package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +0 -1
- package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +0 -1
- package/dist/chunks/debug-1.1.34-k568mcye.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +0 -1480
- package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +0 -1
- package/dist/chunks/detection-1.1.34-5xfznq79.mjs +0 -1
- package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +0 -1
- package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +0 -1
- package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +0 -13
- package/dist/chunks/engine-1.1.34-y28mg4na.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +0 -1
- package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +0 -1
- package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +0 -1
- package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +0 -1
- package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +0 -1
- package/dist/chunks/export-1.1.34-1hyv5efm.mjs +0 -2
- package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +0 -1
- package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +0 -16
- package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +0 -1
- package/dist/chunks/goal-1.1.34-m6dge19b.mjs +0 -4
- package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +0 -2
- package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +0 -6
- package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +0 -1
- package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +0 -1
- package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +0 -79
- package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +0 -1
- package/dist/chunks/import-1.1.34-4j35p307.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +0 -1
- package/dist/chunks/index-1.1.34-086aty1n.mjs +0 -1
- package/dist/chunks/index-1.1.34-0q46c1bj.mjs +0 -1
- package/dist/chunks/index-1.1.34-2j48ar1m.mjs +0 -1
- package/dist/chunks/index-1.1.34-427npr7a.mjs +0 -1
- package/dist/chunks/index-1.1.34-50d0rg8h.mjs +0 -5
- package/dist/chunks/index-1.1.34-50j6q6gr.mjs +0 -1
- package/dist/chunks/index-1.1.34-ehvgt047.mjs +0 -1
- package/dist/chunks/index-1.1.34-faq1af2v.mjs +0 -1
- package/dist/chunks/index-1.1.34-fvrswew9.mjs +0 -2
- package/dist/chunks/index-1.1.34-mx39dxjj.mjs +0 -30
- package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +0 -9
- package/dist/chunks/index-1.1.34-nye63dch.mjs +0 -1
- package/dist/chunks/index-1.1.34-qmmg0npy.mjs +0 -2
- package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +0 -1
- package/dist/chunks/index-1.1.34-snehdv50.mjs +0 -1
- package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +0 -1
- package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +0 -1
- package/dist/chunks/index-1.1.34-wz64a3d4.mjs +0 -9
- package/dist/chunks/index-1.1.34-x83gwj6g.mjs +0 -23
- package/dist/chunks/index-1.1.34-xa114b8t.mjs +0 -1
- package/dist/chunks/index-1.1.34-y10pcdv1.mjs +0 -1
- package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +0 -1
- package/dist/chunks/index-1.1.34-yxzywg42.mjs +0 -1
- package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +0 -1
- package/dist/chunks/ink-1.1.34-yb3z87en.mjs +0 -1
- package/dist/chunks/insights-1.1.34-a321wxgf.mjs +0 -870
- package/dist/chunks/install-1.1.34-064wyxwb.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +0 -1
- package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +0 -1
- package/dist/chunks/log-1.1.34-n41t6etn.mjs +0 -1
- package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +0 -1
- package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +0 -17
- package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +0 -4
- package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +0 -1
- package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +0 -1
- package/dist/chunks/memory-1.1.34-sys90hns.mjs +0 -128
- package/dist/chunks/model-1.1.34-v1r14fy7.mjs +0 -1
- package/dist/chunks/model-1.1.34-vks7w05g.mjs +0 -2
- package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +0 -1
- package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +0 -15
- package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +0 -14
- package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +0 -1
- package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +0 -1
- package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +0 -3
- package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +0 -1
- package/dist/chunks/plist-1.1.34-ykta36sg.mjs +0 -1
- package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +0 -1
- package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +0 -2
- package/dist/chunks/print-1.1.34-2gdkw86g.mjs +0 -57
- package/dist/chunks/process-1.1.34-fms89mxv.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +0 -9
- package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +0 -1
- package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +0 -1
- package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +0 -1
- package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +0 -26
- package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +0 -1
- package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +0 -2
- package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +0 -1
- package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +0 -1
- package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +0 -2
- package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +0 -1
- package/dist/chunks/session-1.1.34-h46ywygv.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +0 -1
- package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +0 -1
- package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +0 -12
- package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +0 -1
- package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +0 -1
- package/dist/chunks/state-1.1.34-pymefs1m.mjs +0 -1
- package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +0 -1
- package/dist/chunks/status-1.1.34-r120pa8k.mjs +0 -1
- package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +0 -1
- package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +0 -1
- package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +0 -1
- package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +0 -1
- package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +0 -1
- package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +0 -1
- package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +0 -69
- package/dist/chunks/types-1.1.34-0as4p0wf.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +0 -4
- package/dist/chunks/update-1.1.34-wnetpcv6.mjs +0 -72
- package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +0 -14
- package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +0 -1
- package/dist/chunks/util-1.1.34-7ctz504f.mjs +0 -1
- package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +0 -1
- package/dist/chunks/vim-1.1.34-4y4504z8.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +0 -13
- package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +0 -132
- package/dist/chunks/workflows-1.1.34-zefy425g.mjs +0 -1
- package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +0 -1
- package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +0 -7
- /package/dist/chunks/{cli-1.1.34-1426jsf4.mjs → cli-1.1.35-hnqagxgk.mjs} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Vra as T,Xra as J5,Yra as M}from"./cli-1.1.35-c05841mj.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
+
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
+
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
+
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+F+`.
|
|
7
|
+
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
+
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
+
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
+
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
+
`}if(U+=R+`
|
|
12
|
+
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
+
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
+
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
+
export{T5 as ye,X5 as ze};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ega as X,Eha as p,Fga as K,Yga as G2,Zga as V2,lha as K2,zha as j}from"./cli-1.1.35-dnacc640.mjs";import{Fka as N,Ika as b}from"./cli-1.1.35-a7ygtwdr.mjs";import{fla as W,kla as S}from"./cli-1.1.35-w9wzew2x.mjs";import{sla as Z,yla as T}from"./cli-1.1.35-g74y15na.mjs";import{Xra as V}from"./cli-1.1.35-c05841mj.mjs";function U(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function d(J=process.env){return U(J.KIMI_OAUTH_CLIENT_ID)??"17e5f671-d194-4dfb-9706-5516cb48c098"}function I(J=process.env){return U(J.KIMI_CLI_VERSION)??"0.27.0"}function t(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var b2="https://auth.kimi.com/api/oauth/device_authorization",m="https://auth.kimi.com/api/oauth/token",g2="urn:ietf:params:oauth:grant-type:device_code",n="kimi_code_cli",l="node",u2="k3, kimi-for-coding, kimi-for-coding-highspeed";var A=()=>{};import{arch as N2,hostname as Y2,release as o,type as X2}from"os";import{randomUUID as s}from"crypto";function D2(){return X({allowPlainTextFallback:!0})}async function O2(){if(Y)return Y;if(Z())return Y=s(),Y;let J=D2();try{let L=U((await J.readAsync())?.[a]);if(L)return Y=L,L}catch(L){if(!W(L))j(L)}let P=s();try{let L=J.read()||{};J.update({...L,[a]:P})}catch(L){j(L)}return Y=P,P}function k2(J){return{"X-Msh-Platform":n,"X-Msh-Version":I(),"X-Msh-Device-Name":Y2(),"X-Msh-Device-Model":`${X2()} ${o()} ${N2()}`,"X-Msh-Os-Version":o(),"X-Msh-Device-Id":J}}async function E(){return k2(await O2())}var a="kimiDeviceId",Y;var v=V(()=>{T();S();p();K();A()});function i(){B=null}function M(){return X({allowPlainTextFallback:!0})}function F2(J){if(!J)return;let P=t(J)?.exp;return typeof P==="number"&&Number.isFinite(P)?P*1000:void 0}function z(J){if(!J||typeof J!=="object")return;let P=J,L=U(P.accessToken);if(!L)return;let H=(q)=>typeof q==="number"&&Number.isFinite(q)?q:void 0;return{accessToken:L,refreshToken:U(P.refreshToken),profileId:U(P.profileId),expiresAt:H(P.expiresAt),lastRefreshAt:H(P.lastRefreshAt),lastRefreshFailureAt:H(P.lastRefreshFailureAt)}}function C2(J){let P=J.expiresAt??F2(J.accessToken);if(P===void 0)return!1;return P<=Date.now()+B2}function I2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,x??0);if(!L)return!1;return P-L<z2}function A2(J,P){if(!P.trim())return`Kimi token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=U(L.error_description)??U(L.error)??P.trim();return`Kimi token refresh failed with status ${J}: ${H}`}catch{return`Kimi token refresh failed with status ${J}: ${P.trim()}`}}function q4(){if(Z())return;try{let J=M().read();return z(J?.[D])}catch(J){if(!W(J))j(J);return}}async function g(){if(Z())return;let J=Date.now();if(B&&B.expiresAt>J)return B.blob;try{let P=await M().readAsync(),L=z(P?.[D]);return B={blob:L,expiresAt:J+f2},L}catch(P){if(!W(P))j(P);return}}function r(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=z(J);if(!P)return{success:!1,warning:"Kimi credentials are incomplete."};let L=M(),H=L.read()||{},q=z(H[D]),Q={...H,[D]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if(i(),$.success)x=z(Q[D])?.lastRefreshFailureAt??null;return $}function E2(J,P){if(!r({...J,lastRefreshFailureAt:P}).success)x=P}function Q4(){if(Z())return{success:!0};let J=M(),L={...J.read()||{}};delete L[D];let H=J.update(L);if(i(),H.success)x=null;else{let q=H.warning??"secure storage update failed";return j(`clearKimiCredentials: failed to remove Kimi entry (${q})`),{success:!1,warning:q}}return H}async function e(J){if(Z())return{refreshed:!1};let P=await g();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!C2(P))return{refreshed:!1,credentials:P};if(!J?.force&&I2(P))return{refreshed:!1,credentials:P};if(k)return k;return k=(async()=>{let L=Date.now();try{let H=await fetch(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":l,...await E()},body:new URLSearchParams({client_id:d(),grant_type:"refresh_token",refresh_token:P.refreshToken}),signal:AbortSignal.timeout(15000)});if(!H.ok){let C=await H.text().catch(()=>"");throw Error(A2(H.status,C))}let q=await H.json(),Q=U(q.access_token);if(!Q)throw Error("Kimi token refresh succeeded without a new access token.");let $=typeof q.expires_in==="number"&&Number.isFinite(q.expires_in)&&q.expires_in>0?q.expires_in:900,G={accessToken:Q,refreshToken:U(q.refresh_token)??P.refreshToken,profileId:P.profileId,expiresAt:Date.now()+$*1000,lastRefreshAt:Date.now()},_=r(G);if(!_.success)N(`[kimi] token refresh succeeded but credentials could not be saved: ${_.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:G}}catch(H){throw E2(P,L),H}finally{k=null}})(),k}var D="kimiCode",B2=60000,z2=60000,k=null,x=null,f2=30000,B=null;var P2=V(()=>{b();T();S();v();p();K();A()});function x2(){try{if(typeof MACRO<"u")return"1.1.35"}catch{return}return}function R(){return`claudin/${x2()??"dev"}`}var u=()=>{};function w(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function L2(J=process.env){return w(J.XAI_OAUTH_CLIENT_ID)??"b1a00492-073a-47ea-816f-4c329264a828"}function H2(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var J2="https://auth.x.ai/oauth2/token",U4="https://auth.x.ai/oauth2/device/code",j4="urn:ietf:params:oauth:grant-type:device_code",w4="openid profile email offline_access grok-cli:access api:access";var q2=()=>{};function y(){return X({allowPlainTextFallback:!0})}function Q2(J){if(!J)return;let L=H2(J)?.exp;if(typeof L==="number"&&Number.isFinite(L))return L*1000;return}function F(J){if(!J||typeof J!=="object")return;let P=J,L=w(P.accessToken);if(!L)return;let H=w(P.refreshToken),q=w(P.idToken),Q=w(P.profileId),$=typeof P.lastRefreshAt==="number"&&Number.isFinite(P.lastRefreshAt)?P.lastRefreshAt:void 0,G=typeof P.lastRefreshFailureAt==="number"&&Number.isFinite(P.lastRefreshFailureAt)?P.lastRefreshFailureAt:void 0,_=typeof P.expiresAt==="number"&&Number.isFinite(P.expiresAt)?P.expiresAt:void 0;return{accessToken:L,refreshToken:H,idToken:q,profileId:Q,expiresAt:_,lastRefreshAt:$,lastRefreshFailureAt:G}}function h2(J){let P=J.expiresAt??Q2(J.accessToken)??Q2(J.idToken);if(P===void 0)return!1;return P<=Date.now()+M2}function y2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,h??0);if(!L)return!1;return P-L<R2}function T2(J,P){if(!P.trim())return`xAI token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=L.error&&typeof L.error==="object"?L.error:void 0,q=w(H?.code??L.code),Q=w(H?.message??L.error_description)??P.trim();return q?`xAI token refresh failed (${q}): ${Q}`:`xAI token refresh failed with status ${J}: ${Q}`}catch{return`xAI token refresh failed with status ${J}: ${P.trim()}`}}function O4(){if(Z())return;try{let J=y().read();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}async function c(){if(Z())return;try{let J=await y().readAsync();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}function Z2(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=F(J);if(!P)return{success:!1,warning:"xAI credentials are incomplete."};let L=y(),H=L.read()||{},q=F(H[O]),Q={...H,[O]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if($.success)h=F(Q[O])?.lastRefreshFailureAt??null;return $}function S2(J,P){if(!Z2({...J,lastRefreshFailureAt:P}).success)h=P}function k4(){if(Z())return{success:!0};let J=y(),L={...J.read()||{}};delete L[O];let H=J.update(L);if(H.success)h=null;else{let q=H.warning??"secure storage update failed";return j(`clearXaiCredentials: failed to remove xAI entry (${q})`),{success:!1,warning:q}}return H}async function $2(J){if(Z())return{refreshed:!1};let P=await c();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!h2(P))return{refreshed:!1,credentials:P};if(!J?.force&&y2(P))return{refreshed:!1,credentials:P};if(f)return f;return f=(async()=>{let L=Date.now();try{let H=new URLSearchParams({client_id:L2(),grant_type:"refresh_token",refresh_token:P.refreshToken}),q=await fetch(J2,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":R()},body:H,signal:AbortSignal.timeout(15000)});if(!q.ok){let _2=await q.text().catch(()=>"");throw Error(T2(q.status,_2))}let Q=await q.json(),$=w(Q.access_token);if(!$)throw Error("xAI token refresh succeeded without a new access token.");let G=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600,_={accessToken:$,refreshToken:w(Q.refresh_token)??P.refreshToken,idToken:w(Q.id_token)??P.idToken,profileId:P.profileId,expiresAt:Date.now()+G*1000,lastRefreshAt:Date.now()},C=Z2(_);if(!C.success)N(`[xai] token refresh succeeded but credentials could not be saved: ${C.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:_}}catch(H){throw S2(P,L),H}finally{f=null}})(),f}var O="xai",M2=120000,R2=60000,f=null,h=null;var U2=V(()=>{b();T();S();p();K();u();q2()});function j2(){return`kimi-code-cli/${I()}`}var w2=V(()=>{A()});function W2(J){return p2.find((P)=>P.matches(J))}async function R4(J){let P=W2(J?.baseUrl);if(!P)return{};let L;if(!J?.apiKey)L=(await P.refresh().catch(async(q)=>{return N(`[${P.id}] access token refresh failed before request: ${q instanceof Error?q.message:String(q)}`,{level:"warn"}),{credentials:await P.readCredentials()}})).credentials?.accessToken??void 0;if(L||P.attachHeadersWithoutToken)return{accessToken:L,userAgent:P.userAgent(),deviceHeaders:P.deviceHeaders?await P.deviceHeaders():void 0};return{}}async function h4(J){let P=W2(J);if(!P)return"no-match";return await P.refresh({force:!0}).then(()=>!0,(H)=>{return N(`[${P.id}] force-refresh on 401 failed: ${H instanceof Error?H.message:String(H)}`,{level:"warn"}),!1})?"refreshed":"failed"}var p2;var v2=V(()=>{b();P2();v();w2();U2();u();K2();p2=[{id:"xai",matches:G2,refresh:$2,readCredentials:c,userAgent:R,attachHeadersWithoutToken:!1},{id:"kimi",matches:V2,refresh:e,readCredentials:g,userAgent:j2,deviceHeaders:E,attachHeadersWithoutToken:!0}]});
|
|
2
|
+
export{b2 as TZ,m as UZ,g2 as VZ,l as WZ,u2 as XZ,U as YZ,d as ZZ,A as _Z,E as $Z,v as a0,q4 as b0,g as c0,r as d0,Q4 as e0,e as f0,P2 as g0,j2 as h0,w2 as i0,R as j0,u as k0,J2 as l0,U4 as m0,j4 as n0,w4 as o0,w as p0,L2 as q0,q2 as r0,O4 as s0,c as t0,Z2 as u0,k4 as v0,$2 as w0,U2 as x0,R4 as y0,h4 as z0,v2 as A0};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O6 as S,Q3 as j,T3 as h,h7 as c}from"./cli-1.1.35-s85hd24a.mjs";import{G7 as b,H7 as l}from"./cli-1.1.35-6nhv8vhv.mjs";import{$9 as Y,r_ as D}from"./cli-1.1.35-4g77zek0.mjs";import{I_ as F,J_ as R}from"./cli-1.1.35-tsrq3cxy.mjs";import{Eha as I,zha as y}from"./cli-1.1.35-dnacc640.mjs";import{Kia as $,Lia as E,Mia as _,Nia as T}from"./cli-1.1.35-zf7zq3kb.mjs";import{Eja as v,Fja as m}from"./cli-1.1.35-7p1685r1.mjs";import{Fka as W,Ika as z,ika as M,nka as U}from"./cli-1.1.35-a7ygtwdr.mjs";import{cla as k,dla as q,kla as O}from"./cli-1.1.35-w9wzew2x.mjs";import{Xra as A}from"./cli-1.1.35-c05841mj.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{D();m();h();E();c();z();R();O();T();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
+
export{u as DZ,p as EZ,$J as FZ,C as GZ,BJ as HZ,L as IZ,NJ as JZ,WJ as KZ,GJ as LZ,XJ as MZ,g as NZ};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Qr as H,Rr as p,kC as I,mC as P,po as W,qo as n,rC as t}from"./cli-1.1.35-hy9jtbmb.mjs";import{rW as C,tW as i}from"./cli-1.1.35-389ej7r1.mjs";import{B3 as c,O6 as R,U6 as V,h7 as l,p6 as v,w3 as S}from"./cli-1.1.35-s85hd24a.mjs";import{$9 as Q,r_ as f}from"./cli-1.1.35-4g77zek0.mjs";import{Efa as E,Eha as m,Gfa as u,L$ as $,N$ as X,dga as O,dha as T,fha as Y,lha as y,oha as k,rha as g,zha as D}from"./cli-1.1.35-dnacc640.mjs";import{Kia as G,Lia as h,Mia as q,Nia as A}from"./cli-1.1.35-zf7zq3kb.mjs";import{Eja as _,Fja as M,zja as Z}from"./cli-1.1.35-7p1685r1.mjs";import{Fka as x,Ika as b}from"./cli-1.1.35-a7ygtwdr.mjs";import{Xra as U}from"./cli-1.1.35-c05841mj.mjs";async function s(){if(E())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),$((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{f();n();l();h();M();O();b();p();A();m();c();u();t();i();g();y();d=q(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
+
export{Yj as dc,r as ec};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{A9 as Qc,B9 as Bc,C9 as ra,D9 as Xc,E9 as Yc,F9 as Zc,G9 as Jc,H9 as el,I9 as Hc,J9 as cr,K9 as Cc,L9 as Ts,M9 as gl,m9 as nt,n9 as hl,o9 as bl,p9 as ml,q9 as fn,r9 as $c,s9 as fu,t9 as Al,u9 as ys,v9 as El,w9 as st,x9 as hs,y9 as k,z9 as ur}from"./cli-1.1.35-0feday40.mjs";import{N9 as ie}from"./cli-1.1.35-s05wj44h.mjs";import{Q9 as kc,R9 as Le}from"./cli-1.1.35-2x0m7ewe.mjs";import{Lra as Vc}from"./cli-1.1.35-h262sgvd.mjs";import{Nra as Fe,Ora as ve,Rra as De,Sra as ee}from"./cli-1.1.35-t2vx6b45.mjs";import{Vra as E,Yra as Bs}from"./cli-1.1.35-c05841mj.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
+
${this.getCanonicalPath(e)}
|
|
3
|
+
${er(e)}
|
|
4
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
+
`)}
|
|
6
|
+
|
|
7
|
+
${n.join(";")}
|
|
8
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
+
${e}
|
|
10
|
+
${t}
|
|
11
|
+
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
+
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
+
${this.getCanonicalPath(e)}
|
|
15
|
+
${Xr(e)}
|
|
16
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
+
`)}
|
|
18
|
+
|
|
19
|
+
${n.join(";")}
|
|
20
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
+
${e}
|
|
22
|
+
${t}
|
|
23
|
+
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
+
export{zl as l9};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Ld as c,Od as Eq}from"./cli-1.1.35-46bm9f8q.mjs";import{Ap as Hq,Bp as m,Bq as Jq,Dq as Cq,Ep as jq,Io as t,Ko as Mq,Mo as A,NN as v,No as D,ON as P,Oo as Rq,Po as h,QN as Lq,Qo as S,Ro as Aq,_N as Qq,cp as i,dp as Fq,eO as Xq,ep as b,fO as I,fp as wq,jO as vq,kO as O,lO as Yq,mO as d,nO as $q,no as s,oo as Tq,sO as Dq,sp as l,tp as n,vp as Oq,wp as y,xp as e,yp as qq,zp as Gq}from"./cli-1.1.35-hy9jtbmb.mjs";import{Aea as V,Eha as Bq,Iea as Kq,dfa as F,ffa as L,vfa as _q,zha as a}from"./cli-1.1.35-dnacc640.mjs";import{rka as p,vka as xq}from"./cli-1.1.35-a7ygtwdr.mjs";import{cla as o,fla as N,kla as Wq}from"./cli-1.1.35-w9wzew2x.mjs";import{Jqa as Uq,kma as f}from"./cli-1.1.35-1ceb2tjb.mjs";import{Xra as Zq}from"./cli-1.1.35-c05841mj.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await I(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await Qq();for(let[B,K]of Object.entries($))try{let M=(await Xq(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await n({pluginId:x,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:l(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await m(),Y=[...X,...J],z=bq(q,Y),Z=D(H),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${W} scope, not ${H}. Use --scope ${W} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...x?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),Yq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await P(R);if(j){if(Jq(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(t(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&i(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?x===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await m(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await I(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=d().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Gq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=U.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await Hq(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let U=y(q,$),M=e(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await qq(Q,q,$,G);let _=J.installPath;if($q(q,Y,z,U,$,K),_&&_!==U){let j=d();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await P(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Mq();Wq();xq();Bq();Lq();Aq();Dq();vq();Tq();Rq();Oq();jq();Cq();Fq();Eq();wq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as zd,HG as Ad,JG as Bd,QG as Cd,kq as Dd,XG as Ed,YG as Fd,$G as Gd,zG as Hd,ZG as Id,UG as Jd,hq as Kd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Y$ as G,haa as K}from"./cli-1.1.35-dnacc640.mjs";import{Kia as j,Lia as M,Mia as J,Nia as N}from"./cli-1.1.35-zf7zq3kb.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
|
|
2
|
+
export{q as Z,$ as _};
|