claude-code-best 2.5.0 → 2.6.0
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/AddWorkspaceDirectory-Cj5bvJgD.js +1 -0
- package/dist/chunks/App-2tgSv9lb.js +1 -0
- package/dist/chunks/ApproveApiKey-DWa-XTLb.js +1 -0
- package/dist/chunks/ApproveApiKey-SIUwkD8j.js +1 -0
- package/dist/chunks/AssistantSessionChooser-DF9eeJZS.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-DXJdube9.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-BOSW4Zdy.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-BW4XHmkw.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-B8oAAHSI.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-Bz0JyaOG.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-DYhmGSkx.js +1 -0
- package/dist/chunks/DesktopHandoff-CcsM_OAS.js +1 -0
- package/dist/chunks/DevChannelsDialog-DXRgY00D.js +1 -0
- package/dist/chunks/Dialog-DYFGqyDs.js +1 -0
- package/dist/chunks/DiffDialog-PvNZfZby.js +3 -0
- package/dist/chunks/Doctor--B1HUENo.js +1 -0
- package/dist/chunks/Doctor-CE_jL9jC.js +3 -0
- package/dist/chunks/ExitFlow-C4ybxKPn.js +2 -0
- package/dist/chunks/Feedback-B5rPGl_C.js +2 -0
- package/dist/chunks/Grove-C2YjB3zL.js +1 -0
- package/dist/chunks/Grove-CKVpREDU.js +11 -0
- package/dist/chunks/HybridTransport-Byjvz-DL.js +4 -0
- package/dist/chunks/ITermBackend-Co9XpeS4.js +1 -0
- package/dist/chunks/InProcessTransport-DB52dh4f.js +1 -0
- package/dist/chunks/InvalidConfigDialog-CNsqbNU3.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-ClnZaN6b.js +1 -0
- package/dist/chunks/ListItem-OFARanN7.js +1 -0
- package/dist/chunks/MCPConnectionManager-CDsa79pu.js +1 -0
- package/dist/chunks/McpParsingWarnings-DZkzoeZf.js +1 -0
- package/dist/chunks/MessageSelector-CkeGQPNM.js +3 -0
- package/dist/chunks/Messages-PfbzLYOU.js +11 -0
- package/dist/chunks/Onboarding-BwoGQB4g.js +1 -0
- package/dist/chunks/OverageCreditUpsell-Q5g2YjQw.js +1 -0
- package/dist/chunks/PermissionDialog-5MlJf7ew.js +1 -0
- package/dist/chunks/PluginSettings-B2ASJ0Rx.js +17 -0
- package/dist/chunks/PressEnterToContinue-BdA9zDGs.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-D4lMVCqj.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-BvLtS6an.js +1 -0
- package/dist/chunks/QueryEngine-Av0G5fze.js +1 -0
- package/dist/chunks/REPL-DCwqua0C.js +1 -0
- package/dist/chunks/REPL-Dh8vzGmF.js +97 -0
- package/dist/chunks/RemoteCallout-BV_hoz98.js +1 -0
- package/dist/chunks/RemoteSessionManager-Cxoy1ud2.js +2 -0
- package/dist/chunks/ResumeConversation-B3WuB8rs.js +1 -0
- package/dist/chunks/SSETransport-pIm26VJq.js +4 -0
- package/dist/chunks/SearchBox-DfOmUoaI.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-D70C-cmA.js +1 -0
- package/dist/chunks/SentryErrorBoundary-B6EWoJml.js +2 -0
- package/dist/chunks/SentryErrorBoundary-oJUBarGg.js +1 -0
- package/dist/chunks/Settings-CreAhCsb.js +2 -0
- package/dist/chunks/TeleportProgress-DPzGpyyM.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-DqWQX6j8.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-DPSO0S49.js +1 -0
- package/dist/chunks/ThemePicker-DueihHcy.js +1 -0
- package/dist/chunks/TmuxBackend-BNaZNAeP.js +9 -0
- package/dist/chunks/TrustDialog-CIzAlGn9.js +1 -0
- package/dist/chunks/TungstenTool-C5IqKVr0.js +1 -0
- package/dist/chunks/TungstenTool-V-Bwqlx3.js +1 -0
- package/dist/chunks/ValidationErrorsList-1k1qbsRo.js +2 -0
- package/dist/chunks/WelcomeV2-CR6TtXXM.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-C5SeTXqC.js +2 -0
- package/dist/chunks/add-dir-DAMizKzF.js +1 -0
- package/dist/chunks/agentDisplay-B9z7i8b_.js +1 -0
- package/dist/chunks/agents-D5u0p1UC.js +103 -0
- package/dist/chunks/agents-DCh_gEvJ.js +2 -0
- package/dist/chunks/ajv-B_OpU_Uh.js +8 -0
- package/dist/chunks/analytics-DqMQntaB.js +1 -0
- package/dist/chunks/ant-DRJq-cEg.js +1 -0
- package/dist/chunks/api-B6URs6nc.js +1 -0
- package/dist/chunks/api-Dz_3z1kl.js +1 -0
- package/dist/chunks/asciicast-aoKFhc7C.js +1 -0
- package/dist/chunks/asciicast-o5Zg4dJt.js +4 -0
- package/dist/chunks/assistant-BRGDWkKB.js +1 -0
- package/dist/chunks/assistant-tPxOUa-Z.js +1 -0
- package/dist/chunks/assistant-zVegFdAO.js +1 -0
- package/dist/chunks/attributionHooks-PygdohOh.js +1 -0
- package/dist/chunks/attributionTrailer-BpvhXgRP.js +1 -0
- package/dist/chunks/auth-CqURlg4d.js +1 -0
- package/dist/chunks/auth-D4isgfuK.js +1 -0
- package/dist/chunks/autoMode-DVt4K4I2.js +45 -0
- package/dist/chunks/autoModeDenials-Cp6VFdsm.js +1 -0
- package/dist/chunks/autonomy-BZzW8QJZ.js +1 -0
- package/dist/chunks/autonomy-Ffv0QIyl.js +19 -0
- package/dist/chunks/autonomyPanel-MwuzDvv_.js +1 -0
- package/dist/chunks/axios-DLnc2dVy.js +1 -0
- package/dist/chunks/axios-DhfaybwJ.js +12 -0
- package/dist/chunks/backgroundHousekeeping-CYnAG60-.js +17 -0
- package/dist/chunks/backgroundHousekeeping-DUmxC6h0.js +1 -0
- package/dist/chunks/banner-CVXH2xts.js +2 -0
- package/dist/chunks/base64-js-DIVSFswY.js +1 -0
- package/dist/chunks/bedrockClient-qi1-JCOK.js +15 -0
- package/dist/chunks/bg-DK0E4ZtW.js +9 -0
- package/dist/chunks/bg-Dbh5z3Y8.js +1 -0
- package/dist/chunks/branch-DXefFdDE.js +3 -0
- package/dist/chunks/break-cache-ByJ7U2Ts.js +8 -0
- package/dist/chunks/bridge-qr4GQW_c.js +2 -0
- package/dist/chunks/bridgeConfig-CJ-KznTS.js +1 -0
- package/dist/chunks/bridgeConfig-CNbOKpAg.js +1 -0
- package/dist/chunks/bridgeEnabled-5vsPrjuq.js +1 -0
- package/dist/chunks/bridgeEnabled-BUJTCUHY.js +1 -0
- package/dist/chunks/bridgeMain-BimZwc2P.js +68 -0
- package/dist/chunks/bridgeMain-DYL4fl6A.js +1 -0
- package/dist/chunks/bridgeMessaging-BiE0CTqq.js +1 -0
- package/dist/chunks/bridgePointer-FvAMj3re.js +1 -0
- package/dist/chunks/browser-fLRXxIsQ.js +1 -0
- package/dist/chunks/btw-FpimqEqk.js +1 -0
- package/dist/chunks/buddy-BA3Cr067.js +3 -0
- package/dist/chunks/bundledMode-kSQejuY4.js +1 -0
- package/dist/chunks/bypassPermissionsKillswitch-CSC9p8mO.js +1 -0
- package/dist/chunks/caches-BUBkfP2Q.js +3 -0
- package/dist/chunks/caches-CTfNpKhW.js +1 -0
- package/dist/chunks/capacityWake-BXlUpptF.js +1 -0
- package/dist/chunks/ccrClient-BOxUn9EJ.js +1 -0
- package/dist/chunks/ccshareResume-DWLjTF22.js +1 -0
- package/dist/chunks/changeDetector-Y9KV5LgG.js +1 -0
- package/dist/chunks/channelNotification-CC7Xb06W.js +1 -0
- package/dist/chunks/channelNotification-l3EXKDNB.js +1 -0
- package/dist/chunks/chokidar-BcI3rIKm.js +1 -0
- package/dist/chunks/chokidar-SzksMqYp.js +1 -0
- package/dist/chunks/chrome-BnKyWWQL.js +1 -0
- package/dist/chunks/chromeNativeHost-4U39yLtd.js +1 -0
- package/dist/chunks/chunk-DR8-3Aex.js +1 -0
- package/dist/chunks/classPrivateFieldSet2-EAQNhHs8.js +1 -0
- package/dist/chunks/claudeDesktop-D0S1eq1F.js +1 -0
- package/dist/chunks/cleanup-Bg_gFgcj.js +1 -0
- package/dist/chunks/clear-OUVFUt8Z.js +1 -0
- package/dist/chunks/cliLaunch-BQa48gsr.js +1 -0
- package/dist/chunks/client-B47ZvTMo.js +1 -0
- package/dist/chunks/client-CPn1wQyc.js +7 -0
- package/dist/chunks/client-_sjL0I7A.js +35 -0
- package/dist/chunks/color-D5MCzz9h.js +1 -0
- package/dist/chunks/color-convert-ULbeSgNC.js +1 -0
- package/dist/chunks/commands-FJGWgQsa.js +1 -0
- package/dist/chunks/commitAttribution-BFshsh2H.js +2 -0
- package/dist/chunks/commitAttribution-DSv9FggK.js +1 -0
- package/dist/chunks/common-B379wT22.js +1 -0
- package/dist/chunks/common-B_BC3eMY.js +1 -0
- package/dist/chunks/common-CMCv4N_v.js +1 -0
- package/dist/chunks/compact-DWNaf1wR.js +3 -0
- package/dist/chunks/companion-CyK_Dr1U.js +1 -0
- package/dist/chunks/completionCache-DHfUBBMH.js +1 -0
- package/dist/chunks/completionCache-DORrtxkS.js +4 -0
- package/dist/chunks/computerUseLock-BjoDJH2h.js +1 -0
- package/dist/chunks/config-BdCuh6eA.js +1 -0
- package/dist/chunks/config-DNz6Eitr.js +1 -0
- package/dist/chunks/connectHeadless-CwsFt-Mh.js +1 -0
- package/dist/chunks/constants-41VpZw2G.js +1 -0
- package/dist/chunks/context-BOjdTj0i.js +1 -0
- package/dist/chunks/context-noninteractive-Bd2HO-vU.js +1 -0
- package/dist/chunks/context-noninteractive-k2ibficU.js +54 -0
- package/dist/chunks/controlMessageCompat-BJhFiS7u.js +1 -0
- package/dist/chunks/conversation-BP0phkOY.js +1 -0
- package/dist/chunks/conversation-Ci8O_eZ-.js +1 -0
- package/dist/chunks/copy-B0VUJ2rH.js +7 -0
- package/dist/chunks/createSSHSession-DqmkCS_k.js +6 -0
- package/dist/chunks/createSession-B9MhWusY.js +1 -0
- package/dist/chunks/createSession-CJEsHz58.js +1 -0
- package/dist/chunks/cron-DiW7eIPP.js +1 -0
- package/dist/chunks/cronJitterConfig-BzPaa52I.js +6 -0
- package/dist/chunks/crossProjectResume-tWsqBUHc.js +40 -0
- package/dist/chunks/cwd--iizewsn.js +1 -0
- package/dist/chunks/cwd-BgpSJxd7.js +1 -0
- package/dist/chunks/daemon-VYRit6Aq.js +2 -0
- package/dist/chunks/dangerousBackend-BU_PHGR2.js +1 -0
- package/dist/chunks/datadog-Bd1s_VFj.js +1 -0
- package/dist/chunks/datadog-DJowkWhh.js +1 -0
- package/dist/chunks/debug-DM5ezCBS.js +1 -0
- package/dist/chunks/debug-UI3T040K.js +5 -0
- package/dist/chunks/debugUtils-BBMFODKH.js +1 -0
- package/dist/chunks/defineProperty-80gRi2ZW.js +1 -0
- package/dist/chunks/desktop-BDowrzvG.js +1 -0
- package/dist/chunks/detached-D300jlhj.js +5 -0
- package/dist/chunks/detect-libc-DNuQfUvI.js +1 -0
- package/dist/chunks/detectRepository-CBk3S2zv.js +1 -0
- package/dist/chunks/detectRepository-DCTvg4p0.js +1 -0
- package/dist/chunks/detection-CQsNad64.js +1 -0
- package/dist/chunks/detection-DJ-vTbBf.js +1 -0
- package/dist/chunks/diff-auU5sUOw.js +1 -0
- package/dist/chunks/directoryCompletion-DP_4B1GL.js +1 -0
- package/dist/chunks/dist-CanSxOZ1.js +5 -0
- package/dist/chunks/dist-Cg1a1Exw.js +29 -0
- package/dist/chunks/dist-Q7YNoZ0H.js +20 -0
- package/dist/chunks/dist-es-4z5T3Jzm.js +1 -0
- package/dist/chunks/dist-es-B2jg52tM2.js +1 -0
- package/dist/chunks/dist-es-B6OXHQ1S.js +1 -0
- package/dist/chunks/dist-es-B8NEy5hc.js +1 -0
- package/dist/chunks/dist-es-BVGppqE4.js +1 -0
- package/dist/chunks/dist-es-Bcw5GZko.js +1 -0
- package/dist/chunks/dist-es-BoIJpncb.js +9 -0
- package/dist/chunks/dist-es-Bu_Fshi1.js +1 -0
- package/dist/chunks/dist-es-C-1vn4OP2.js +1 -0
- package/dist/chunks/dist-es-C41b_0B5.js +1 -0
- package/dist/chunks/dist-es-CCZYybbG2.js +1 -0
- package/dist/chunks/dist-es-CLK1mey-.js +1 -0
- package/dist/chunks/dist-es-CQz2aNf72.js +1 -0
- package/dist/chunks/dist-es-CSfI8B8l.js +1 -0
- package/dist/chunks/dist-es-CUZBYppo.js +1 -0
- package/dist/chunks/dist-es-CZkzHpjF.js +1 -0
- package/dist/chunks/dist-es-Cbf0_D8d.js +5 -0
- package/dist/chunks/dist-es-ChHe-SVL.js +1 -0
- package/dist/chunks/dist-es-ClYOf0My.js +1 -0
- package/dist/chunks/dist-es-D-kJbj4A2.js +1 -0
- package/dist/chunks/dist-es-D1LN6CJd.js +1 -0
- package/dist/chunks/dist-es-DC1sC3ph.js +1 -0
- package/dist/chunks/dist-es-DGn8uOwQ2.js +1 -0
- package/dist/chunks/dist-es-DK5fTeKM2.js +1 -0
- package/dist/chunks/dist-es-DN7otr6F.js +1 -0
- package/dist/chunks/dist-es-DPM0mPK5.js +1 -0
- package/dist/chunks/dist-es-DqZAh3nG.js +1 -0
- package/dist/chunks/dist-es-DuAZyxJ02.js +5 -0
- package/dist/chunks/dist-es-HVQrM0oE.js +1 -0
- package/dist/chunks/dist-es-OVleIB54.js +1 -0
- package/dist/chunks/dist-es-UAs0rdXg.js +1 -0
- package/dist/chunks/dist-es-WvMMuHmx2.js +1 -0
- package/dist/chunks/dist-es-fjXft-jH.js +1 -0
- package/dist/chunks/dist-es-hdN_ShpZ.js +3 -0
- package/dist/chunks/dist-es-neiUvMJb.js +1 -0
- package/dist/chunks/dist-es-yMYpDtui2.js +1 -0
- package/dist/chunks/dist-es-zjcbuB72.js +1 -0
- package/dist/chunks/distRoot-CcxmnzqQ.js +1 -0
- package/dist/chunks/doctor-bKPp6AeL.js +1 -0
- package/dist/chunks/earlyInput-JGJo1zcC.js +1 -0
- package/dist/chunks/earlyInput-tRkbxFv2.js +2 -0
- package/dist/chunks/effort-BQj2QnnA.js +9 -0
- package/dist/chunks/entry-CUu6-QhT.js +14 -0
- package/dist/chunks/env-chR0gV31.js +1 -0
- package/dist/chunks/envLessBridgeConfig-CixkwbRF.js +1 -0
- package/dist/chunks/envLessBridgeConfig-Ju4W58xf.js +1 -0
- package/dist/chunks/envUtils-BWeoiL4Y.js +1 -0
- package/dist/chunks/escHotkey-Cyz0yyh1.js +259 -0
- package/dist/chunks/esm--xjzB1hI.js +1 -0
- package/dist/chunks/esm-B2HIF0XY.js +1 -0
- package/dist/chunks/esm-BGQPWnJy.js +1 -0
- package/dist/chunks/esm-C-1qL9Mn.js +1 -0
- package/dist/chunks/esm-C3jcs1DH.js +1 -0
- package/dist/chunks/esm-C97WL9nC.js +1 -0
- package/dist/chunks/esm-CIL-SKM8.js +1 -0
- package/dist/chunks/esm-CJlBxjtx.js +1 -0
- package/dist/chunks/esm-CsGLyWmS.js +56 -0
- package/dist/chunks/esm-DQHmDm-H.js +1 -0
- package/dist/chunks/esm-DcdOXSzi.js +1 -0
- package/dist/chunks/esm-DhNYgGTV.js +1 -0
- package/dist/chunks/esm-DxPW7qPs.js +1 -0
- package/dist/chunks/esm-FBUWr3vI.js +1 -0
- package/dist/chunks/esm-QgL6y---.js +10 -0
- package/dist/chunks/esm-v0kPjgVS.js +1 -0
- package/dist/chunks/esm-vIn-YV_h.js +1 -0
- package/dist/chunks/event-streams-BV7ngMXu.js +1 -0
- package/dist/chunks/eventLoopStallDetector-Dnh1fc31.js +1 -0
- package/dist/chunks/execAsync-BkA6ogic.js +1 -0
- package/dist/chunks/execFileNoThrow-CuQN1sz8.js +1 -0
- package/dist/chunks/execSyncWrapper-C2XQnFVo.js +1 -0
- package/dist/chunks/execa-CGue6Z3n.js +34 -0
- package/dist/chunks/executor-4EeD8GNm.js +1561 -0
- package/dist/chunks/executor-BHEuNh5F.js +1 -0
- package/dist/chunks/exit-DijkO8eo.js +1 -0
- package/dist/chunks/exit-_obETqBv.js +2 -0
- package/dist/chunks/export-DA-bBZkX.js +2 -0
- package/dist/chunks/exportRenderer-3y4tGdSB.js +1 -0
- package/dist/chunks/extra-usage-CS6VwKJt.js +1 -0
- package/dist/chunks/extra-usage-DGHEQOrY.js +1 -0
- package/dist/chunks/extra-usage-core-DOgT4u4i.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-DYnfiRlV.js +1 -0
- package/dist/chunks/extraUsage-CfxgfpX_.js +1 -0
- package/dist/chunks/extractMemories-jvjCvtpC.js +1 -0
- package/dist/chunks/fast-Bbtx_Bs1.js +1 -0
- package/dist/chunks/fast-CzRUJBTK.js +1 -0
- package/dist/chunks/featureCheck-Cm0YNDXO.js +1 -0
- package/dist/chunks/featureCheck-p7OeCYzj.js +1 -0
- package/dist/chunks/feedback-FoXtdHAV.js +1 -0
- package/dist/chunks/figures-gfT9mM8P.js +1 -0
- package/dist/chunks/fileStateCache-C7-TxF8G.js +1 -0
- package/dist/chunks/files-DYvAZGxp.js +2 -0
- package/dist/chunks/firstPartyEventLogger-KIwaBY-E.js +1 -0
- package/dist/chunks/flushGate-C2Icy43G.js +1 -0
- package/dist/chunks/foundry-sdk-BFN5VDFQ.js +1 -0
- package/dist/chunks/fpsMetrics-DeezdcwV.js +1 -0
- package/dist/chunks/fuse-Ch_OAlm3.js +1 -0
- package/dist/chunks/gates-CbQLZHtm.js +1 -0
- package/dist/chunks/gates-DSI3vpwO.js +1 -0
- package/dist/chunks/gemini-BrNJGX4k.js +1 -0
- package/dist/chunks/generateRecap-B0fvSCjo.js +1 -0
- package/dist/chunks/generateSessionName-DvRYa39O.js +1 -0
- package/dist/chunks/genericProcessUtils-BGvcwuPt.js +23 -0
- package/dist/chunks/getMachineId-bsd-BMtYGBUL.js +1 -0
- package/dist/chunks/getMachineId-darwin-CiLdFH7z.js +2 -0
- package/dist/chunks/getMachineId-linux-Cr27rIeY.js +1 -0
- package/dist/chunks/getMachineId-unsupported-ceiBLwAN.js +1 -0
- package/dist/chunks/getMachineId-win-DFTmsQHq.js +1 -0
- package/dist/chunks/git-CN3qtTb_.js +6 -0
- package/dist/chunks/git-D23Mzu_K.js +1 -0
- package/dist/chunks/githubRepoPathMapping-Dut3d6nn.js +1 -0
- package/dist/chunks/graceful-fs-Cgc0rjGF.js +2 -0
- package/dist/chunks/grok-Ftoheab3.js +1 -0
- package/dist/chunks/growthbook-BynnuVTn.js +1 -0
- package/dist/chunks/hash-BRmOQc3c.js +1 -0
- package/dist/chunks/heapdump-hQ_w0LPC.js +5 -0
- package/dist/chunks/help-DQsHHv6r.js +1 -0
- package/dist/chunks/hooks-BLLL4iPv.js +1 -0
- package/dist/chunks/hooks-BhVDc8yb.js +79 -0
- package/dist/chunks/hostAdapter-D1eWmmhu.js +1 -0
- package/dist/chunks/hostGuard-zim_4F9V.js +1 -0
- package/dist/chunks/httpAuthSchemes-Wq4XWeLL.js +13 -0
- package/dist/chunks/ide-CPmMXLL-.js +2 -0
- package/dist/chunks/inboundAttachments-Bmf6vYsE.js +1 -0
- package/dist/chunks/inboundAttachments-D-p91z3w.js +1 -0
- package/dist/chunks/index.min-BJnb9GQI.js +1 -0
- package/dist/chunks/initReplBridge-BiHXpDEY.js +1 -0
- package/dist/chunks/insights-CTlTyvjj.js +822 -0
- package/dist/chunks/install-IPuD3Lq8.js +1 -0
- package/dist/chunks/install-github-app-Bmu_sA9e.js +147 -0
- package/dist/chunks/install-slack-app-Rfl81Jqo.js +1 -0
- package/dist/chunks/instinctParser-DHMa8xa0.js +1 -0
- package/dist/chunks/instrumentation-DWwmOmr0.js +12 -0
- package/dist/chunks/intl-Pse97ORk.js +1 -0
- package/dist/chunks/isObject-DaxDnPKm.js +1 -0
- package/dist/chunks/isSymbol-Dp3irZaY.js +1 -0
- package/dist/chunks/job-BXEt0izn.js +2 -0
- package/dist/chunks/json-bigint-OxRwRvup.js +8 -0
- package/dist/chunks/jsx-runtime-D-D469L8.js +1 -0
- package/dist/chunks/jws-2vqRyZtR.js +3 -0
- package/dist/chunks/jwtUtils-CpXwh_du.js +1 -0
- package/dist/chunks/keybindings-DRDgVvqz.js +2 -0
- package/dist/chunks/lang-D3ZHlfT6.js +1 -0
- package/dist/chunks/language-B_-BfBT4.js +1 -0
- package/dist/chunks/language-DcSjogBx.js +1 -0
- package/dist/chunks/launchAgentsPlatform-BPm_VMln.js +1 -0
- package/dist/chunks/launchAutofixPr-D2qac07g.js +2 -0
- package/dist/chunks/launchCommand-Du91jxMC.js +1 -0
- package/dist/chunks/launchLocalMemory-D_hBbXKE.js +3 -0
- package/dist/chunks/launchLocalVault-CPzNWvQ9.js +3 -0
- package/dist/chunks/launchMemoryStores-Djq2KhKb.js +1 -0
- package/dist/chunks/launchOnboarding-Bh6E7vdc.js +8 -0
- package/dist/chunks/launchSchedule-C988bQ-5.js +1 -0
- package/dist/chunks/launchSkillStore-DqrP6Gme.js +1 -0
- package/dist/chunks/launchTeleport-DFhybaq_.js +3 -0
- package/dist/chunks/launchVault-p_CSK4ZQ.js +1 -0
- package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
- package/dist/chunks/lib-B4Q0Nrpb.js +14 -0
- package/dist/chunks/lib-Ca3QWJjN.js +2 -0
- package/dist/chunks/lib-inCisXen.js +8 -0
- package/dist/chunks/loadAgentsDir-Ci5mr0vm.js +4601 -0
- package/dist/chunks/loadAgentsDir-vB1QEZ7H.js +1 -0
- package/dist/chunks/loadPluginHooks-xYCEZ6t5.js +1 -0
- package/dist/chunks/loadSso-sDs471GC.js +1 -0
- package/dist/chunks/localSearch-DtVqtfvk.js +1 -0
- package/dist/chunks/localSearch-Vpn6W5aY.js +1 -0
- package/dist/chunks/lockfile-DBwdlC3K.js +1 -0
- package/dist/chunks/log-CzsijfHZ.js +1 -0
- package/dist/chunks/login-D-N78G6r.js +1 -0
- package/dist/chunks/login-D9IWjvza.js +1 -0
- package/dist/chunks/logoV2Utils-SAulcC5x.js +1 -0
- package/dist/chunks/logout-CFggVS-9.js +1 -0
- package/dist/chunks/magicDocs-BfoeYhin.js +57 -0
- package/dist/chunks/main-C6be1KFk.js +31 -0
- package/dist/chunks/main-DhMlhVj3.js +1108 -0
- package/dist/chunks/mappers-uIrAj-Wd.js +1 -0
- package/dist/chunks/mcp-CAYGNxCb.js +1 -0
- package/dist/chunks/mcp-COQap0SM.js +6 -0
- package/dist/chunks/mcp-DlM0OC6R.js +2 -0
- package/dist/chunks/mcpServer-1SnOWb8_.js +1 -0
- package/dist/chunks/mcpServer-DXvS3v4x.js +1 -0
- package/dist/chunks/memoize-DNnuA2aU.js +1 -0
- package/dist/chunks/memoize-DxwLawI2.js +1 -0
- package/dist/chunks/memory-XccPLQLt.js +1 -0
- package/dist/chunks/mobile-umu5P0cM.js +2 -0
- package/dist/chunks/modalContext-CmSKRyea.js +1 -0
- package/dist/chunks/model-CbiDGGJU.js +1 -0
- package/dist/chunks/model-DdbcxKub.js +1 -0
- package/dist/chunks/normalization-Cox8C0dP.js +1 -0
- package/dist/chunks/oauth-CdZEzMww.js +1 -0
- package/dist/chunks/oauth-CmensepG.js +1 -0
- package/dist/chunks/observationStore-tvkldXUo.js +4 -0
- package/dist/chunks/onChangeAppState-Dp0JIXd8.js +1 -0
- package/dist/chunks/open-CDditBQ-.js +1 -0
- package/dist/chunks/openai-6KcHd4Hw.js +10 -0
- package/dist/chunks/openaiShared-D5lOejS1.js +16 -0
- package/dist/chunks/output-style-XDb9-2Kk.js +1 -0
- package/dist/chunks/overageCreditGrant-DYiB4sr-.js +1 -0
- package/dist/chunks/p-map-9Ud1LOrJ.js +1 -0
- package/dist/chunks/p-map-D7WEmnBE.js +1 -0
- package/dist/chunks/package-BhL7chzt.js +1 -0
- package/dist/chunks/panel-ByW1omJn.js +1 -0
- package/dist/chunks/panel-Bz_8td5D.js +1 -0
- package/dist/chunks/parseConnectUrl-BS6i9JPo.js +1 -0
- package/dist/chunks/parser-CmngCwjB.js +1 -0
- package/dist/chunks/parser-SWIZo39J.js +1 -0
- package/dist/chunks/passes-Cbc6T_Tj.js +1 -0
- package/dist/chunks/path-C4kbwvSH.js +1 -0
- package/dist/chunks/paths-Q2255dD7.js +39 -0
- package/dist/chunks/permissions-BLzPHh_3.js +3 -0
- package/dist/chunks/permissions-DXLfdE7b.js +1 -0
- package/dist/chunks/permissions-Ps_D01ZB.js +1 -0
- package/dist/chunks/pipeTransport-D7NIp3aA.js +1 -0
- package/dist/chunks/plan-DloFVJK7.js +1 -0
- package/dist/chunks/platform-CuyedWpe.js +2 -0
- package/dist/chunks/plist-BO4ZqMZc.js +6 -0
- package/dist/chunks/plugin-XR9IBPMM.js +1 -0
- package/dist/chunks/pluginAutoupdate-Cr9hP0zG.js +1 -0
- package/dist/chunks/pluginBlocklist-CM9uP8CY.js +1 -0
- package/dist/chunks/pluginCliCommands-BQkrvES5.js +1 -0
- package/dist/chunks/pluginFlagging-CJ1--2Kw.js +1 -0
- package/dist/chunks/pluginOperations-B0rLuSvo.js +2 -0
- package/dist/chunks/pluginStartupCheck-Bjdc8zhz.js +1 -0
- package/dist/chunks/pluginStartupCheck-Cu2ezD51.js +1 -0
- package/dist/chunks/plugins-BgOP_8TX.js +4 -0
- package/dist/chunks/policyLimits-CKy_gTEt.js +1 -0
- package/dist/chunks/pollConfig-DhptuhFw.js +1 -0
- package/dist/chunks/poller-Ds0Y6Cir.js +1 -0
- package/dist/chunks/poor-DF0aqXDx.js +1 -0
- package/dist/chunks/poorMode-C5Frra4j.js +1 -0
- package/dist/chunks/poorMode-DJvjO2nW.js +1 -0
- package/dist/chunks/postCommitAttribution-Ehmwzzuq.js +1 -0
- package/dist/chunks/print-CPtR0KTa.js +39 -0
- package/dist/chunks/privacy-settings-e-7lc7Un.js +1 -0
- package/dist/chunks/process-CWupreF6.js +1 -0
- package/dist/chunks/process-DMKLUQIO.js +1 -0
- package/dist/chunks/processBashCommand-D5dC6Mya.js +1 -0
- package/dist/chunks/processSlashCommand-DHRUtZ-C.js +6 -0
- package/dist/chunks/projectContext-0fpRKUeH.js +1 -0
- package/dist/chunks/projectContext-eXMSfgdZ.js +1 -0
- package/dist/chunks/prompt-4tea6NJQ.js +54 -0
- package/dist/chunks/prompt-CQC-mh6u.js +1 -0
- package/dist/chunks/prompt-DEPUnJdB.js +222 -0
- package/dist/chunks/prompt-DawxLANl.js +1 -0
- package/dist/chunks/promptEditor-Ci-h04-5.js +4 -0
- package/dist/chunks/protocolHandler-DhqM32qE.js +13 -0
- package/dist/chunks/protocols-CAyQOlkr.js +7 -0
- package/dist/chunks/proxy-CfZp-wce.js +99 -0
- package/dist/chunks/rate-limit-options-B0l29Zx8.js +1 -0
- package/dist/chunks/rcDebugLog-BbPkkigY.js +11 -0
- package/dist/chunks/referral-ByevBJrE.js +1 -0
- package/dist/chunks/refresh-B_CwwIRX.js +1 -0
- package/dist/chunks/registerProtocol-DzhaQH02.js +36 -0
- package/dist/chunks/registry-DkHA4cRu.js +1 -0
- package/dist/chunks/release-notes-CZthYkei.js +4 -0
- package/dist/chunks/releaseNotes-CwKpIsyd.js +2 -0
- package/dist/chunks/reload-plugins-DxWfXvrN.js +1 -0
- package/dist/chunks/remote-env-BiRLWIrh.js +1 -0
- package/dist/chunks/remoteBridgeCore-nz1fPY1U.js +1 -0
- package/dist/chunks/remoteControlServer-FzLUxh2B.js +3 -0
- package/dist/chunks/rename-DmGuyncE.js +1 -0
- package/dist/chunks/renderOptions-BiyC2rj1.js +1 -0
- package/dist/chunks/resume-7GeU7RMS.js +2 -0
- package/dist/chunks/rewind-CXplHgh_.js +1 -0
- package/dist/chunks/rollback-DbSpxmJE.js +11 -0
- package/dist/chunks/runtimeObserver-Duod-ign.js +10 -0
- package/dist/chunks/runtimeObserver-OgM9ZYxZ.js +1 -0
- package/dist/chunks/sandbox-adapter-CxkhKgaa.js +1 -0
- package/dist/chunks/sandbox-toggle-Cc96R6Ox.js +1 -0
- package/dist/chunks/sanitization-CYp-9DbE.js +1 -0
- package/dist/chunks/satisfies-BaHgd_ie.js +1 -0
- package/dist/chunks/schemas-BGAvj1T4.js +40 -0
- package/dist/chunks/sdk-DEtgRZvI.js +1 -0
- package/dist/chunks/sdkHeapDumpMonitor--fevrC5z.js +1 -0
- package/dist/chunks/searchExtraTools-DQ6e601b.js +1 -0
- package/dist/chunks/semver-Cq33BYay.js +1 -0
- package/dist/chunks/semver-Tw0AFar5.js +1 -0
- package/dist/chunks/sentry-BUHYuYGj.js +13 -0
- package/dist/chunks/server-C5XZSlto.js +1 -0
- package/dist/chunks/server-DzOdtq8A.js +1 -0
- package/dist/chunks/serverBanner-WlSYP-f8.js +1 -0
- package/dist/chunks/serverLog-DtsUvDiY.js +1 -0
- package/dist/chunks/session-DgLqm7ZI.js +2 -0
- package/dist/chunks/sessionDataUploader-Ctjo1bgR.js +1 -0
- package/dist/chunks/sessionDiscovery-DgNea6qa.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-7Svz-7S-.js +1 -0
- package/dist/chunks/sessionManager-Dw72ZUTg.js +1 -0
- package/dist/chunks/sessionMemory-DIrR3zvb.js +1 -0
- package/dist/chunks/sessionMemory-_dmj8lcH.js +1 -0
- package/dist/chunks/sessionMemoryUtils-BdQtSkRx.js +1 -0
- package/dist/chunks/sessionObserver-CuWMVPlT.js +20 -0
- package/dist/chunks/sessionObserver-_adufOGQ.js +1 -0
- package/dist/chunks/sessionStorage-W7okgAlQ.js +1 -0
- package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +3 -0
- package/dist/chunks/sessionTitle-DzkMzHer.js +14 -0
- package/dist/chunks/sessionTracing-DTjmc0EF.js +11 -0
- package/dist/chunks/settingsSync-CfYDkakY.js +1 -0
- package/dist/chunks/setup-BKUG46jQ.js +9 -0
- package/dist/chunks/setup-CmLngvpJ.js +1 -0
- package/dist/chunks/setup-TqJ7-Nxh.js +2 -0
- package/dist/chunks/shadowedRuleDetection-DesT0yKM.js +1 -0
- package/dist/chunks/shellQuote-DgjT8KBA.js +1 -0
- package/dist/chunks/sideQuestion-BAq0YyKY.js +20 -0
- package/dist/chunks/signin-QEeYpJZw.js +1 -0
- package/dist/chunks/sink-B3uP8Cf8.js +1 -0
- package/dist/chunks/sink-CaWMZBw_.js +1 -0
- package/dist/chunks/sinks-COcy5GnB.js +2 -0
- package/dist/chunks/sinks-oFfsKySL.js +1 -0
- package/dist/chunks/skill-learning-DOIMPtWE.js +5 -0
- package/dist/chunks/skillChangeDetector-CA_Tdx8N.js +1 -0
- package/dist/chunks/skillGapStore-CWuw1dYh.js +1 -0
- package/dist/chunks/skillGapStore-DpEoKhn-.js +5 -0
- package/dist/chunks/skillGenerator-9y3Q4YoO.js +8 -0
- package/dist/chunks/skillLearning-BhM09bQD.js +1 -0
- package/dist/chunks/skillLearning-_o2D06yM.js +1 -0
- package/dist/chunks/skillPanel-Dt24mZTZ.js +28 -0
- package/dist/chunks/skillSearchPanel-gaXN64Fu.js +21 -0
- package/dist/chunks/skills-Dx3dMHYk.js +1 -0
- package/dist/chunks/slashCommandParsing-Cari0pNg.js +1 -0
- package/dist/chunks/sleep-8Eb9j_Ly.js +1 -0
- package/dist/chunks/sprites-5OAB-Ui2.js +1 -0
- package/dist/chunks/src-BIPP3_mo.js +26 -0
- package/dist/chunks/src-BJz1KAd_.js +6 -0
- package/dist/chunks/src-BRAdBA8A.js +1 -0
- package/dist/chunks/src-BRC_BuUP.js +1 -0
- package/dist/chunks/src-BaB-bpCj.js +5 -0
- package/dist/chunks/src-BlLavFUS.js +7 -0
- package/dist/chunks/src-C5yhFG0C.js +19 -0
- package/dist/chunks/src-CI_jaaBj.js +2 -0
- package/dist/chunks/src-CRsA-Z4y.js +1 -0
- package/dist/chunks/src-CYLfL70h.js +1 -0
- package/dist/chunks/src-DJXCzwyJ.js +1 -0
- package/dist/chunks/src-DJXKJavk.js +1 -0
- package/dist/chunks/src-Di342QoJ.js +53 -0
- package/dist/chunks/src-DsMd9Q9e.js +2 -0
- package/dist/chunks/src-DzH9IdOo.js +1 -0
- package/dist/chunks/src-hdbPEvzO.js +9 -0
- package/dist/chunks/src-poaoYkuc.js +1 -0
- package/dist/chunks/src-x7u_sB6m.js +1 -0
- package/dist/chunks/sso-oidc-BX1MlBX0.js +1 -0
- package/dist/chunks/startupProfiler-DnXZaX4A.js +3 -0
- package/dist/chunks/startupProfiler-SOE--nM9.js +1 -0
- package/dist/chunks/state-B2GIOsTB.js +1 -0
- package/dist/chunks/state-Ce1HlR-H.js +1 -0
- package/dist/chunks/state-sIHsFpDu.js +1 -0
- package/dist/chunks/staticRender-Br64h1E1.js +1 -0
- package/dist/chunks/stats-TUExo9iU.js +1 -0
- package/dist/chunks/status-Dghaz1my.js +1 -0
- package/dist/chunks/statusNoticeHelpers-DVZSSXeK.js +1 -0
- package/dist/chunks/stdio-BEEzuxaZ.js +1 -0
- package/dist/chunks/stdio-D4cT86R0.js +3 -0
- package/dist/chunks/stickers-2K05wjSp.js +1 -0
- package/dist/chunks/store-DhI7Lcan.js +1 -0
- package/dist/chunks/sts-BDFJ-6QE.js +1 -0
- package/dist/chunks/subprocessEnv-CggQWZCx.js +1 -0
- package/dist/chunks/subprocessEnv-DV6q6o6w.js +1 -0
- package/dist/chunks/supports-color-lkzOMQ6u.js +1 -0
- package/dist/chunks/systemPromptSections-BcN_XBTx.js +1 -0
- package/dist/chunks/systemPromptSections-DB93ZNWP.js +1 -0
- package/dist/chunks/systemTheme-dDbitcxB.js +1 -0
- package/dist/chunks/tag-ZcVkzFjz.js +11 -0
- package/dist/chunks/tasks-DbB33ekt.js +1 -0
- package/dist/chunks/teamHelpers-BmN9nKz-.js +1 -0
- package/dist/chunks/teamHelpers-yeTNtZbb.js +1 -0
- package/dist/chunks/teammate-DMYOtLTK.js +1 -0
- package/dist/chunks/teammateModeSnapshot-CPjJJDL1.js +1 -0
- package/dist/chunks/teammateModeSnapshot-CsNIJTKi.js +1 -0
- package/dist/chunks/teleport-JHgpwZIh.js +1 -0
- package/dist/chunks/templateJobs-Db630FZD.js +12 -0
- package/dist/chunks/terminalSetup-DJqWE8fc.js +33 -0
- package/dist/chunks/terminalSetup-ygKHrVKR.js +1 -0
- package/dist/chunks/theme-MmfFhdTD.js +1 -0
- package/dist/chunks/thinkback-CrNirB0V.js +1 -0
- package/dist/chunks/thinkback-Quc7KPmi.js +1 -0
- package/dist/chunks/thinkback-play-CQ1s7oqg.js +1 -0
- package/dist/chunks/tmux-CvbhsfwG.js +1 -0
- package/dist/chunks/toolEventObserver-BqMplcIk.js +1 -0
- package/dist/chunks/toolEventObserver-DBq2XBYY.js +1 -0
- package/dist/chunks/toolPool-BkCtTKXz.js +1 -0
- package/dist/chunks/toolPool-C7bOwJfR.js +1 -0
- package/dist/chunks/trustedDevice-C9Zevohz.js +1 -0
- package/dist/chunks/trustedDevice-DEuQUTbz.js +1 -0
- package/dist/chunks/tui-BVc2q4Xv.js +6 -0
- package/dist/chunks/turndown.es-Bv06VjMb.js +69 -0
- package/dist/chunks/types-CQ1wrnQ0.js +1 -0
- package/dist/chunks/types-Csi32ZXh.js +17 -0
- package/dist/chunks/types-RJTEOuIt.js +3 -0
- package/dist/chunks/udsClient-BvG_Jip0.js +1 -0
- package/dist/chunks/ultrareviewCommand-DrlfRrXq.js +3 -0
- package/dist/chunks/undercover-CBeHiWUd.js +1 -0
- package/dist/chunks/undercover-DKn95mh9.js +31 -0
- package/dist/chunks/up-D-U4wUCe.js +12 -0
- package/dist/chunks/updateCCB-CJ7dCUan.js +11 -0
- package/dist/chunks/upgrade-Degqbu8S.js +1 -0
- package/dist/chunks/upgrade-ucJ-lnlY.js +1 -0
- package/dist/chunks/upload-pTZQCPLt.js +1 -0
- package/dist/chunks/upstreamproxy-DcLeL2XX.js +11 -0
- package/dist/chunks/usage-D96a7Cke.js +1 -0
- package/dist/chunks/usage-DVQMUMcC.js +1 -0
- package/dist/chunks/useKeybinding-FsOnjW6T.js +1 -0
- package/dist/chunks/useMainLoopModel-B7ch2o9K.js +1 -0
- package/dist/chunks/useManagePlugins-BfGzHMvO.js +1 -0
- package/dist/chunks/useMergedTools-TemEvCrX.js +1 -0
- package/dist/chunks/useSearchInput-B-V4kIa-.js +1 -0
- package/dist/chunks/useSettingsErrors-B2JGz1s8.js +1 -0
- package/dist/chunks/useVoice-BuwYDm2U.js +1 -0
- package/dist/chunks/util-CeIKZmj9.js +1 -0
- package/dist/chunks/utils-CwhszpkT.js +1 -0
- package/dist/chunks/v4-f1i_CNUT.js +1 -0
- package/dist/chunks/validatePlugin-BlVho93x.js +1 -0
- package/dist/chunks/vertex-sdk-CSGw3fvU.js +9 -0
- package/dist/chunks/vim-DUZQCWUP.js +1 -0
- package/dist/chunks/voice-BkRIHZiM.js +2 -0
- package/dist/chunks/voice-DXiiy8HX.js +8 -0
- package/dist/chunks/voiceModeEnabled-CPQUE3PU.js +1 -0
- package/dist/chunks/voiceModeEnabled-DB8GCzAF.js +1 -0
- package/dist/chunks/voiceStreamSTT-DgoDscHn.js +1 -0
- package/dist/chunks/voiceStreamSTT-Dr_wH1Kh.js +1 -0
- package/dist/chunks/which-DqSAIvp2.js +1 -0
- package/dist/chunks/windowsPaths-C9CigqoF.js +1 -0
- package/dist/chunks/windowsPaths-swxCp7bX.js +2 -0
- package/dist/chunks/workSecret-mS2OrpxF.js +1 -0
- package/dist/chunks/workerRegistry-CT7_kjvY.js +1 -0
- package/dist/chunks/worktree-DU3xtwKW.js +1 -0
- package/dist/chunks/worktreeModeEnabled-Db6b_Iy_.js +1 -0
- package/dist/chunks/worktreeModeEnabled-THQb19xR.js +1 -0
- package/dist/chunks/wrapper-BSK0MCQH.js +1 -0
- package/dist/chunks/wrapper-D5qL1aQL.js +6 -0
- package/dist/chunks/xdg-CBxMmQux.js +1 -0
- package/dist/chunks/xml-DD_ldd3X.js +1 -0
- package/dist/chunks/zod-DT6hytkp.js +1 -0
- package/dist/cli.js +1 -10978
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-DR8-3Aex.js";import{i as o,s,t as c}from"./satisfies-BaHgd_ie.js";import{n as l,t as u}from"./color-convert-ULbeSgNC.js";import{t as d}from"./detect-libc-DNuQfUvI.js";import"node:fs";var f=a(((e,t)=>{var n=function(e){return e!=null};t.exports={defined:n,object:function(e){return typeof e==`object`},plainObject:function(e){return Object.prototype.toString.call(e)===`[object Object]`},fn:function(e){return typeof e==`function`},bool:function(e){return typeof e==`boolean`},buffer:function(e){return e instanceof Buffer},typedArray:function(e){if(n(e))switch(e.constructor){case Uint8Array:case Uint8ClampedArray:case Int8Array:case Uint16Array:case Int16Array:case Uint32Array:case Int32Array:case Float32Array:case Float64Array:return!0}return!1},arrayBuffer:function(e){return e instanceof ArrayBuffer},string:function(e){return typeof e==`string`&&e.length>0},number:function(e){return typeof e==`number`&&!Number.isNaN(e)},integer:function(e){return Number.isInteger(e)},inRange:function(e,t,n){return e>=t&&e<=n},inArray:function(e,t){return t.includes(e)},invalidParameterError:function(e,t,n){return Error(`Expected ${t} for ${e} but received ${n} of type ${typeof n}`)},nativeError:function(e,t){return t.message=e.message,t}}})),p=i({author:()=>_,binary:()=>P,cc:()=>I,config:()=>M,contributors:()=>y,default:()=>z,dependencies:()=>D,description:()=>h,devDependencies:()=>k,engines:()=>j,files:()=>w,funding:()=>N,homepage:()=>v,keywords:()=>E,license:()=>A,main:()=>S,name:()=>m,nyc:()=>L,optionalDependencies:()=>O,repository:()=>T,scripts:()=>b,semistandard:()=>F,tsd:()=>R,type:()=>x,types:()=>C,version:()=>g}),m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B=n((()=>{m=`sharp`,h=`High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images`,g=`0.33.5`,_=`Lovell Fuller <npm@lovell.info>`,v=`https://sharp.pixelplumbing.com`,y=`Pierre Inglebert <pierre.inglebert@gmail.com>,Jonathan Ong <jonathanrichardong@gmail.com>,Chanon Sajjamanochai <chanon.s@gmail.com>,Juliano Julio <julianojulio@gmail.com>,Daniel Gasienica <daniel@gasienica.ch>,Julian Walker <julian@fiftythree.com>,Amit Pitaru <pitaru.amit@gmail.com>,Brandon Aaron <hello.brandon@aaron.sh>,Andreas Lind <andreas@one.com>,Maurus Cuelenaere <mcuelenaere@gmail.com>,Linus Unnebäck <linus@folkdatorn.se>,Victor Mateevitsi <mvictoras@gmail.com>,Alaric Holloway <alaric.holloway@gmail.com>,Bernhard K. Weisshuhn <bkw@codingforce.com>,Chris Riley <criley@primedia.com>,David Carley <dacarley@gmail.com>,John Tobin <john@limelightmobileinc.com>,Kenton Gray <kentongray@gmail.com>,Felix Bünemann <Felix.Buenemann@gmail.com>,Samy Al Zahrani <samyalzahrany@gmail.com>,Chintan Thakkar <lemnisk8@gmail.com>,F. Orlando Galashan <frulo@gmx.de>,Kleis Auke Wolthuizen <info@kleisauke.nl>,Matt Hirsch <mhirsch@media.mit.edu>,Matthias Thoemmes <thoemmes@gmail.com>,Patrick Paskaris <patrick@paskaris.gr>,Jérémy Lal <kapouer@melix.org>,Rahul Nanwani <r.nanwani@gmail.com>,Alice Monday <alice0meta@gmail.com>,Kristo Jorgenson <kristo.jorgenson@gmail.com>,YvesBos <yves_bos@outlook.com>,Guy Maliar <guy@tailorbrands.com>,Nicolas Coden <nicolas@ncoden.fr>,Matt Parrish <matt.r.parrish@gmail.com>,Marcel Bretschneider <marcel.bretschneider@gmail.com>,Matthew McEachen <matthew+github@mceachen.org>,Jarda Kotěšovec <jarda.kotesovec@gmail.com>,Kenric D'Souza <kenric.dsouza@gmail.com>,Oleh Aleinyk <oleg.aleynik@gmail.com>,Marcel Bretschneider <marcel.bretschneider@gmail.com>,Andrea Bianco <andrea.bianco@unibas.ch>,Rik Heywood <rik@rik.org>,Thomas Parisot <hi@oncletom.io>,Nathan Graves <nathanrgraves+github@gmail.com>,Tom Lokhorst <tom@lokhorst.eu>,Espen Hovlandsdal <espen@hovlandsdal.com>,Sylvain Dumont <sylvain.dumont35@gmail.com>,Alun Davies <alun.owain.davies@googlemail.com>,Aidan Hoolachan <ajhoolachan21@gmail.com>,Axel Eirola <axel.eirola@iki.fi>,Freezy <freezy@xbmc.org>,Daiz <taneli.vatanen@gmail.com>,Julian Aubourg <j@ubourg.net>,Keith Belovay <keith@picthrive.com>,Michael B. Klein <mbklein@gmail.com>,Jordan Prudhomme <jordan@raboland.fr>,Ilya Ovdin <iovdin@gmail.com>,Andargor <andargor@yahoo.com>,Paul Neave <paul.neave@gmail.com>,Brendan Kennedy <brenwken@gmail.com>,Brychan Bennett-Odlum <git@brychan.io>,Edward Silverton <e.silverton@gmail.com>,Roman Malieiev <aromaleev@gmail.com>,Tomas Szabo <tomas.szabo@deftomat.com>,Robert O'Rourke <robert@o-rourke.org>,Guillermo Alfonso Varela Chouciño <guillevch@gmail.com>,Christian Flintrup <chr@gigahost.dk>,Manan Jadhav <manan@motionden.com>,Leon Radley <leon@radley.se>,alza54 <alza54@thiocod.in>,Jacob Smith <jacob@frende.me>,Michael Nutt <michael@nutt.im>,Brad Parham <baparham@gmail.com>,Taneli Vatanen <taneli.vatanen@gmail.com>,Joris Dugué <zaruike10@gmail.com>,Chris Banks <christopher.bradley.banks@gmail.com>,Ompal Singh <ompal.hitm09@gmail.com>,Brodan <christopher.hranj@gmail.com>,Ankur Parihar <ankur.github@gmail.com>,Brahim Ait elhaj <brahima@gmail.com>,Mart Jansink <m.jansink@gmail.com>,Lachlan Newman <lachnewman007@gmail.com>,Dennis Beatty <dennis@dcbeatty.com>,Ingvar Stepanyan <me@rreverser.com>,Don Denton <don@happycollision.com>`.split(`,`),b={install:`node install/check`,clean:`rm -rf src/build/ .nyc_output/ coverage/ test/fixtures/output.*`,test:`npm run test-lint && npm run test-unit && npm run test-licensing && npm run test-types`,"test-lint":`semistandard && cpplint`,"test-unit":`nyc --reporter=lcov --reporter=text --check-coverage --branches=100 mocha`,"test-licensing":`license-checker --production --summary --onlyAllow="Apache-2.0;BSD;ISC;LGPL-3.0-or-later;MIT"`,"test-leak":`./test/leak/leak.sh`,"test-types":`tsd`,"package-from-local-build":`node npm/from-local-build`,"package-from-github-release":`node npm/from-github-release`,"docs-build":`node docs/build && node docs/search-index/build`,"docs-serve":`cd docs && npx serve`,"docs-publish":`cd docs && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp`},x=`commonjs`,S=`lib/index.js`,C=`lib/index.d.ts`,w=[`install`,`lib`,`src/*.{cc,h,gyp}`],T={type:`git`,url:`git://github.com/lovell/sharp.git`},E=[`jpeg`,`png`,`webp`,`avif`,`tiff`,`gif`,`svg`,`jp2`,`dzi`,`image`,`resize`,`thumbnail`,`crop`,`embed`,`libvips`,`vips`],D={color:`^4.2.3`,"detect-libc":`^2.0.3`,semver:`^7.6.3`},O={"@img/sharp-darwin-arm64":`0.33.5`,"@img/sharp-darwin-x64":`0.33.5`,"@img/sharp-libvips-darwin-arm64":`1.0.4`,"@img/sharp-libvips-darwin-x64":`1.0.4`,"@img/sharp-libvips-linux-arm":`1.0.5`,"@img/sharp-libvips-linux-arm64":`1.0.4`,"@img/sharp-libvips-linux-s390x":`1.0.4`,"@img/sharp-libvips-linux-x64":`1.0.4`,"@img/sharp-libvips-linuxmusl-arm64":`1.0.4`,"@img/sharp-libvips-linuxmusl-x64":`1.0.4`,"@img/sharp-linux-arm":`0.33.5`,"@img/sharp-linux-arm64":`0.33.5`,"@img/sharp-linux-s390x":`0.33.5`,"@img/sharp-linux-x64":`0.33.5`,"@img/sharp-linuxmusl-arm64":`0.33.5`,"@img/sharp-linuxmusl-x64":`0.33.5`,"@img/sharp-wasm32":`0.33.5`,"@img/sharp-win32-ia32":`0.33.5`,"@img/sharp-win32-x64":`0.33.5`},k={"@emnapi/runtime":`^1.2.0`,"@img/sharp-libvips-dev":`1.0.4`,"@img/sharp-libvips-dev-wasm32":`1.0.5`,"@img/sharp-libvips-win32-ia32":`1.0.4`,"@img/sharp-libvips-win32-x64":`1.0.4`,"@types/node":`*`,async:`^3.2.5`,cc:`^3.0.1`,emnapi:`^1.2.0`,"exif-reader":`^2.0.1`,"extract-zip":`^2.0.1`,icc:`^3.0.0`,"jsdoc-to-markdown":`^8.0.3`,"license-checker":`^25.0.1`,mocha:`^10.7.3`,"node-addon-api":`^8.1.0`,nyc:`^17.0.0`,prebuild:`^13.0.1`,semistandard:`^17.0.0`,"tar-fs":`^3.0.6`,tsd:`^0.31.1`},A=`Apache-2.0`,j={node:`^18.17.0 || ^20.3.0 || >=21.0.0`},M={libvips:`>=8.15.3`},N={url:`https://opencollective.com/libvips`},P={napi_versions:[9]},F={env:[`mocha`]},I={linelength:`120`,filter:[`build/include`]},L={include:[`lib`]},R={directory:`test/types/`},z={name:m,description:h,version:g,author:_,homepage:v,contributors:y,scripts:b,type:x,main:S,types:C,files:w,repository:T,keywords:E,dependencies:D,optionalDependencies:O,devDependencies:k,license:A,engines:j,config:M,funding:N,binary:P,semistandard:F,cc:I,nyc:L,tsd:R}})),V=a(((n,r)=>{var{spawnSync:i}=t(`node:child_process`),{createHash:a}=t(`node:crypto`),l=o(),u=s(),f=c(),m=d(),{config:h,engines:g,optionalDependencies:_}=(B(),e(p).default),v=l(process.env.npm_package_config_libvips||h.libvips).version,y=[`darwin-arm64`,`darwin-x64`,`linux-arm`,`linux-arm64`,`linux-s390x`,`linux-x64`,`linuxmusl-arm64`,`linuxmusl-x64`,`win32-ia32`,`win32-x64`],b={encoding:`utf8`,shell:!0},x=e=>{e instanceof Error?console.error(`sharp: Installation error: ${e.message}`):console.log(`sharp: ${e}`)},S=()=>m.isNonGlibcLinuxSync()?m.familySync():``,C=()=>`${process.platform}${S()}-${process.arch}`,w=()=>{if(k())return`wasm32`;let{npm_config_arch:e,npm_config_platform:t,npm_config_libc:n}=process.env,r=typeof n==`string`?n:S();return`${t||process.platform}${r}-${e||process.arch}`},T=()=>{try{return t(`@img/sharp-libvips-dev-${w()}/include`)}catch{try{return t(`@img/sharp-libvips-dev/include`)}catch{}}return``},E=()=>{try{return t(`@img/sharp-libvips-dev/cplusplus`)}catch{}return``},D=()=>{try{return t(`@img/sharp-libvips-dev-${w()}/lib`)}catch{try{return t(`@img/sharp-libvips-${w()}/lib`)}catch{}}return``},O=()=>{if(process.release?.name===`node`&&process.versions&&!f(process.versions.node,g.node))return{found:process.versions.node,expected:g.node}},k=()=>{let{CC:e}=process.env;return!!(e&&e.endsWith(`/emcc`))},A=()=>process.platform===`darwin`&&process.arch===`x64`?(i(`sysctl sysctl.proc_translated`,b).stdout||``).trim()===`sysctl.proc_translated: 1`:!1,j=e=>a(`sha512`).update(e).digest(`hex`),M=()=>{try{let e=j(`imgsharp-libvips-${w()}`),t=l(_[`@img/sharp-libvips-${w()}`]).version;return j(`${e}npm:${t}`).slice(0,10)}catch{}return``},N=()=>i(`node-gyp rebuild --directory=src ${k()?`--nodedir=emscripten`:``}`,{...b,stdio:`inherit`}).status,P=()=>process.platform===`win32`?``:(i(`pkg-config --modversion vips-cpp`,{...b,env:{...process.env,PKG_CONFIG_PATH:F()}}).stdout||``).trim(),F=()=>process.platform===`win32`?``:[(i(`which brew >/dev/null 2>&1 && brew environment --plain | grep PKG_CONFIG_LIBDIR | cut -d" " -f2`,b).stdout||``).trim(),process.env.PKG_CONFIG_PATH,`/usr/local/lib/pkgconfig`,`/usr/lib/pkgconfig`,`/usr/local/libdata/pkgconfig`,`/usr/libdata/pkgconfig`].filter(Boolean).join(`:`),I=(e,t,n)=>(n&&n(`Detected ${t}, skipping search for globally-installed libvips`),e);r.exports={minimumLibvipsVersion:v,prebuiltPlatforms:y,buildPlatformArch:w,buildSharpLibvipsIncludeDir:T,buildSharpLibvipsCPlusPlusDir:E,buildSharpLibvipsLibDir:D,isUnsupportedNodeRuntime:O,runtimePlatformArch:C,log:x,yarnLocator:M,spawnRebuild:N,globalLibvipsVersion:P,pkgConfigPath:F,useGlobalLibvips:e=>{if(process.env.SHARP_IGNORE_GLOBAL_LIBVIPS)return I(!1,`SHARP_IGNORE_GLOBAL_LIBVIPS`,e);if(process.env.SHARP_FORCE_GLOBAL_LIBVIPS)return I(!0,`SHARP_FORCE_GLOBAL_LIBVIPS`,e);if(A())return I(!1,`Rosetta`,e);let t=P();return!!t&&u(t,v)}}})),H=a(((e,n)=>{var{familySync:r,versionSync:i}=d(),{runtimePlatformArch:a,isUnsupportedNodeRuntime:o,prebuiltPlatforms:s,minimumLibvipsVersion:c}=V(),l=a(),u=[`../src/build/Release/sharp-${l}.node`,`../src/build/Release/sharp-wasm32.node`,`@img/sharp-${l}/sharp.node`,`@img/sharp-wasm32/sharp.node`],f,p=[];for(let e of u)try{f=t(e);break}catch(e){p.push(e)}if(f)n.exports=f;else{let[e,n,a]=[`linux`,`darwin`,`win32`].map(e=>l.startsWith(e)),u=[`Could not load the "sharp" module using the ${l} runtime`];p.forEach(e=>{e.code!==`MODULE_NOT_FOUND`&&u.push(`${e.code}: ${e.message}`)});let d=p.map(e=>e.message).join(` `);if(u.push(`Possible solutions:`),o()){let{found:e,expected:t}=o();u.push(`- Please upgrade Node.js:`,` Found ${e}`,` Requires ${t}`)}else if(s.includes(l)){let[e,t]=l.split(`-`),n=e.endsWith(`musl`)?` --libc=musl`:``;u.push(`- Ensure optional dependencies can be installed:`,` npm install --include=optional sharp`,`- Ensure your package manager supports multi-platform installation:`,` See https://sharp.pixelplumbing.com/install#cross-platform`,`- Add platform-specific dependencies:`,` npm install --os=${e.replace(`musl`,``)}${n} --cpu=${t} sharp`)}else u.push(`- Manually install libvips >= ${c}`,`- Add experimental WebAssembly-based dependencies:`,` npm install --cpu=wasm32 sharp`,` npm install @img/sharp-wasm32`);if(e&&/(symbol not found|CXXABI_)/i.test(d))try{let{config:e}=t(`@img/sharp-libvips-${l}/package`),n=`${r()} ${i()}`,a=`${e.musl?`musl`:`glibc`} ${e.musl||e.glibc}`;u.push(`- Update your OS:`,` Found ${n}`,` Requires ${a}`)}catch{}throw e&&/\/snap\/core[0-9]{2}/.test(d)&&u.push(`- Remove the Node.js Snap, which does not support native modules`,` snap remove node`),n&&/Incompatible library version/.test(d)&&u.push(`- Update Homebrew:`,` brew update && brew upgrade vips`),p.some(e=>e.code===`ERR_DLOPEN_DISABLED`)&&u.push(`- Run Node.js without using the --no-addons flag`),a&&/The specified procedure could not be found/.test(d)&&u.push(`- Using the canvas package on Windows?`,` See https://sharp.pixelplumbing.com/install#canvas-and-windows`,`- Check for outdated versions of sharp in the dependency tree:`,` npm ls sharp`),u.push(`- Consult the installation documentation:`,` See https://sharp.pixelplumbing.com/install`),Error(u.join(`
|
|
2
|
+
`))}})),U=a(((e,n)=>{var r=t(`node:util`),i=t(`node:stream`),a=f();H();var o=r.debuglog(`sharp`),s=function(e,t){if(arguments.length===1&&!a.defined(e))throw Error(`Invalid input`);return this instanceof s?(i.Duplex.call(this),this.options={topOffsetPre:-1,leftOffsetPre:-1,widthPre:-1,heightPre:-1,topOffsetPost:-1,leftOffsetPost:-1,widthPost:-1,heightPost:-1,width:-1,height:-1,canvas:`crop`,position:0,resizeBackground:[0,0,0,255],useExifOrientation:!1,angle:0,rotationAngle:0,rotationBackground:[0,0,0,255],rotateBeforePreExtract:!1,flip:!1,flop:!1,extendTop:0,extendBottom:0,extendLeft:0,extendRight:0,extendBackground:[0,0,0,255],extendWith:`background`,withoutEnlargement:!1,withoutReduction:!1,affineMatrix:[],affineBackground:[0,0,0,255],affineIdx:0,affineIdy:0,affineOdx:0,affineOdy:0,affineInterpolator:this.constructor.interpolators.bilinear,kernel:`lanczos3`,fastShrinkOnLoad:!0,tint:[-1,0,0,0],flatten:!1,flattenBackground:[0,0,0],unflatten:!1,negate:!1,negateAlpha:!0,medianSize:0,blurSigma:0,precision:`integer`,minAmpl:.2,sharpenSigma:0,sharpenM1:1,sharpenM2:2,sharpenX1:2,sharpenY2:10,sharpenY3:20,threshold:0,thresholdGrayscale:!0,trimBackground:[],trimThreshold:-1,trimLineArt:!1,gamma:0,gammaOut:0,greyscale:!1,normalise:!1,normaliseLower:1,normaliseUpper:99,claheWidth:0,claheHeight:0,claheMaxSlope:3,brightness:1,saturation:1,hue:0,lightness:0,booleanBufferIn:null,booleanFileIn:``,joinChannelIn:[],extractChannel:-1,removeAlpha:!1,ensureAlpha:-1,colourspace:`srgb`,colourspacePipeline:`last`,composite:[],fileOut:``,formatOut:`input`,streamOut:!1,keepMetadata:0,withMetadataOrientation:-1,withMetadataDensity:0,withIccProfile:``,withExif:{},withExifMerge:!0,resolveWithObject:!1,jpegQuality:80,jpegProgressive:!1,jpegChromaSubsampling:`4:2:0`,jpegTrellisQuantisation:!1,jpegOvershootDeringing:!1,jpegOptimiseScans:!1,jpegOptimiseCoding:!0,jpegQuantisationTable:0,pngProgressive:!1,pngCompressionLevel:6,pngAdaptiveFiltering:!1,pngPalette:!1,pngQuality:100,pngEffort:7,pngBitdepth:8,pngDither:1,jp2Quality:80,jp2TileHeight:512,jp2TileWidth:512,jp2Lossless:!1,jp2ChromaSubsampling:`4:4:4`,webpQuality:80,webpAlphaQuality:100,webpLossless:!1,webpNearLossless:!1,webpSmartSubsample:!1,webpPreset:`default`,webpEffort:4,webpMinSize:!1,webpMixed:!1,gifBitdepth:8,gifEffort:7,gifDither:1,gifInterFrameMaxError:0,gifInterPaletteMaxError:3,gifReuse:!0,gifProgressive:!1,tiffQuality:80,tiffCompression:`jpeg`,tiffPredictor:`horizontal`,tiffPyramid:!1,tiffMiniswhite:!1,tiffBitdepth:8,tiffTile:!1,tiffTileHeight:256,tiffTileWidth:256,tiffXres:1,tiffYres:1,tiffResolutionUnit:`inch`,heifQuality:50,heifLossless:!1,heifCompression:`av1`,heifEffort:4,heifChromaSubsampling:`4:4:4`,heifBitdepth:8,jxlDistance:1,jxlDecodingTier:0,jxlEffort:7,jxlLossless:!1,rawDepth:`uchar`,tileSize:256,tileOverlap:0,tileContainer:`fs`,tileLayout:`dz`,tileFormat:`last`,tileDepth:`last`,tileAngle:0,tileSkipBlanks:-1,tileBackground:[255,255,255,255],tileCentre:!1,tileId:`https://example.com/iiif`,tileBasename:``,timeoutSeconds:0,linearA:[],linearB:[],debuglog:e=>{this.emit(`warning`,e),o(e)},queueListener:function(e){s.queue.emit(`change`,e)}},this.options.input=this._createInputDescriptor(e,t,{allowStream:!0}),this):new s(e,t)};Object.setPrototypeOf(s.prototype,i.Duplex.prototype),Object.setPrototypeOf(s,i.Duplex);function c(){let e=this.constructor.call(),{debuglog:t,queueListener:n,...r}=this.options;return e.options=structuredClone(r),e.options.debuglog=t,e.options.queueListener=n,this._isStreamInput()&&this.on(`finish`,()=>{this._flattenBufferIn(),e.options.input.buffer=this.options.input.buffer,e.emit(`finish`)}),e}Object.assign(s.prototype,{clone:c}),n.exports=s})),W=a(((e,t)=>{t.exports=function(e){return!e||typeof e==`string`?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!==`String`)}})),G=a(((e,t)=>{var n=W(),r=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(e){for(var t=[],a=0,o=e.length;a<o;a++){var s=e[a];n(s)?t=r.call(t,i.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}})),K=a(((e,t)=>{var n=l(),r=G(),i=Object.hasOwnProperty,a=Object.create(null);for(var o in n)i.call(n,o)&&(a[n[o]]=o);var s=t.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`;break}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,l=[0,0,0,1],u,d,f;if(u=e.match(r)){for(f=u[2],u=u[1],d=0;d<3;d++){var p=d*2;l[d]=parseInt(u.slice(p,p+2),16)}f&&(l[3]=parseInt(f,16)/255)}else if(u=e.match(t)){for(u=u[1],f=u[3],d=0;d<3;d++)l[d]=parseInt(u[d]+u[d],16);f&&(l[3]=parseInt(f+f,16)/255)}else if(u=e.match(a)){for(d=0;d<3;d++)l[d]=parseInt(u[d+1],0);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(o)){for(d=0;d<3;d++)l[d]=Math.round(parseFloat(u[d+1])*2.55);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(s))return u[1]===`transparent`?[0,0,0,0]:i.call(n,u[1])?(l=n[u[1]],l[3]=1,l):null;else return null;for(d=0;d<3;d++)l[d]=c(l[d],0,255);return l[3]=c(l[3],0,1),l},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=r(arguments);return`#`+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=r(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+i+`%)`:`rgba(`+t+`%, `+n+`%, `+i+`%, `+e[3]+`)`},s.to.hsl=function(){var e=r(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=r(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?`0`+t:t}})),q=a(((e,t)=>{var n=K(),r=u(),i=[`keyword`,`gray`,`hex`],a={};for(let e of Object.keys(r))a[[...r[e].labels].sort().join(``)]=e;var o={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in i&&(t=null),t&&!(t in r))throw Error(`Unknown model: `+t);let c,l;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e==`string`){let t=n.get(e);if(t===null)throw Error(`Unable to parse color from string: `+e);this.model=t.model,l=r[this.model].channels,this.color=t.value.slice(0,l),this.valpha=typeof t.value[l]==`number`?t.value[l]:1}else if(e.length>0)this.model=t||`rgb`,l=r[this.model].channels,this.color=m(Array.prototype.slice.call(e,0,l),l),this.valpha=typeof e[l]==`number`?e[l]:1;else if(typeof e==`number`)this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);`alpha`in e&&(t.splice(t.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);let n=t.sort().join(``);if(!(n in a))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=a[n];let{labels:i}=r[this.model],o=[];for(c=0;c<i.length;c++)o.push(e[i[c]]);this.color=m(o)}if(o[this.model])for(l=r[this.model].channels,c=0;c<l;c++){let e=o[this.model][c];e&&(this.color[c]=e(this.color[c]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}s.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);let r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to[t.model](r)},percentString(e){let t=this.rgb().round(typeof e==`number`?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=r[this.model],{labels:n}=r[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new s([...this.color.map(l(e)),this.valpha],this.model)},alpha(e){return e===void 0?this.valpha:new s([...this.color,Math.max(0,Math.min(1,e))],this.model)},red:d(`rgb`,0,f(255)),green:d(`rgb`,1,f(255)),blue:d(`rgb`,2,f(255)),hue:d([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,e=>(e%360+360)%360),saturationl:d(`hsl`,1,f(100)),lightness:d(`hsl`,2,f(100)),saturationv:d(`hsv`,1,f(100)),value:d(`hsv`,2,f(100)),chroma:d(`hcg`,1,f(100)),gray:d(`hcg`,2,f(100)),white:d(`hwb`,1,f(100)),wblack:d(`hwb`,2,f(100)),cyan:d(`cmyk`,0,f(100)),magenta:d(`cmyk`,1,f(100)),yellow:d(`cmyk`,2,f(100)),black:d(`cmyk`,3,f(100)),x:d(`xyz`,0,f(95.047)),y:d(`xyz`,1,f(100)),z:d(`xyz`,2,f(108.833)),l:d(`lab`,0,f(100)),a:d(`lab`,1),b:d(`lab`,2),keyword(e){return e===void 0?r[this.model].keyword(this.color):new s(e)},hex(e){return e===void 0?n.to.hex(this.rgb().round().color):new s(e)},hexa(e){if(e!==void 0)return new s(e);let t=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r=`0`+r),n.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?`AAA`:t>=4.5?`AA`:``},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);let n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),c=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-c;return s.rgb(c*n.red()+l*r.red(),c*n.green()+l*r.green(),c*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(let e of Object.keys(r)){if(i.includes(e))continue;let{channels:t}=r[e];s.prototype[e]=function(...t){return this.model===e?new s(this):t.length>0?new s(t,e):new s([...p(r[this.model][e].raw(this.color)),this.valpha],e)},s[e]=function(...n){let r=n[0];return typeof r==`number`&&(r=m(n,t)),new s(r,e)}}function c(e,t){return Number(e.toFixed(t))}function l(e){return function(t){return c(t,e)}}function d(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(o[r]||(o[r]=[]))[t]=n;return e=e[0],function(r){let i;return r===void 0?(i=this[e]().color[t],n&&(i=n(i)),i):(n&&(r=n(r)),i=this[e](),i.color[t]=r,i)}}function f(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function m(e,t){for(let n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}t.exports=s})),J=a(((e,t)=>{var n=q(),r=f(),i=H(),a={left:`low`,center:`centre`,centre:`centre`,right:`high`};function o(e){let{raw:t,density:n,limitInputPixels:i,ignoreIcc:a,unlimited:o,sequentialRead:s,failOn:c,failOnError:l,animated:u,page:d,pages:f,subifd:p}=e;return[t,n,i,a,o,s,c,l,u,d,f,p].some(r.defined)?{raw:t,density:n,limitInputPixels:i,ignoreIcc:a,unlimited:o,sequentialRead:s,failOn:c,failOnError:l,animated:u,page:d,pages:f,subifd:p}:void 0}function s(e,t,i){let a={failOn:`warning`,limitInputPixels:16383**2,ignoreIcc:!1,unlimited:!1,sequentialRead:!0};if(r.string(e))a.file=e;else if(r.buffer(e)){if(e.length===0)throw Error(`Input Buffer is empty`);a.buffer=e}else if(r.arrayBuffer(e)){if(e.byteLength===0)throw Error(`Input bit Array is empty`);a.buffer=Buffer.from(e,0,e.byteLength)}else if(r.typedArray(e)){if(e.length===0)throw Error(`Input Bit Array is empty`);a.buffer=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(r.plainObject(e)&&!r.defined(t))t=e,o(t)&&(a.buffer=[]);else if(!r.defined(e)&&!r.defined(t)&&r.object(i)&&i.allowStream)a.buffer=[];else throw Error(`Unsupported input '${e}' of type ${typeof e}${r.defined(t)?` when also providing options of type ${typeof t}`:``}`);if(r.object(t)){if(r.defined(t.failOnError))if(r.bool(t.failOnError))a.failOn=t.failOnError?`warning`:`none`;else throw r.invalidParameterError(`failOnError`,`boolean`,t.failOnError);if(r.defined(t.failOn))if(r.string(t.failOn)&&r.inArray(t.failOn,[`none`,`truncated`,`error`,`warning`]))a.failOn=t.failOn;else throw r.invalidParameterError(`failOn`,`one of: none, truncated, error, warning`,t.failOn);if(r.defined(t.density))if(r.inRange(t.density,1,1e5))a.density=t.density;else throw r.invalidParameterError(`density`,`number between 1 and 100000`,t.density);if(r.defined(t.ignoreIcc))if(r.bool(t.ignoreIcc))a.ignoreIcc=t.ignoreIcc;else throw r.invalidParameterError(`ignoreIcc`,`boolean`,t.ignoreIcc);if(r.defined(t.limitInputPixels))if(r.bool(t.limitInputPixels))a.limitInputPixels=t.limitInputPixels?16383**2:0;else if(r.integer(t.limitInputPixels)&&r.inRange(t.limitInputPixels,0,2**53-1))a.limitInputPixels=t.limitInputPixels;else throw r.invalidParameterError(`limitInputPixels`,`positive integer`,t.limitInputPixels);if(r.defined(t.unlimited))if(r.bool(t.unlimited))a.unlimited=t.unlimited;else throw r.invalidParameterError(`unlimited`,`boolean`,t.unlimited);if(r.defined(t.sequentialRead))if(r.bool(t.sequentialRead))a.sequentialRead=t.sequentialRead;else throw r.invalidParameterError(`sequentialRead`,`boolean`,t.sequentialRead);if(r.defined(t.raw))if(r.object(t.raw)&&r.integer(t.raw.width)&&t.raw.width>0&&r.integer(t.raw.height)&&t.raw.height>0&&r.integer(t.raw.channels)&&r.inRange(t.raw.channels,1,4))switch(a.rawWidth=t.raw.width,a.rawHeight=t.raw.height,a.rawChannels=t.raw.channels,a.rawPremultiplied=!!t.raw.premultiplied,e.constructor){case Uint8Array:case Uint8ClampedArray:a.rawDepth=`uchar`;break;case Int8Array:a.rawDepth=`char`;break;case Uint16Array:a.rawDepth=`ushort`;break;case Int16Array:a.rawDepth=`short`;break;case Uint32Array:a.rawDepth=`uint`;break;case Int32Array:a.rawDepth=`int`;break;case Float32Array:a.rawDepth=`float`;break;case Float64Array:a.rawDepth=`double`;break;default:a.rawDepth=`uchar`;break}else throw Error(`Expected width, height and channels for raw pixel input`);if(r.defined(t.animated))if(r.bool(t.animated))a.pages=t.animated?-1:1;else throw r.invalidParameterError(`animated`,`boolean`,t.animated);if(r.defined(t.pages))if(r.integer(t.pages)&&r.inRange(t.pages,-1,1e5))a.pages=t.pages;else throw r.invalidParameterError(`pages`,`integer between -1 and 100000`,t.pages);if(r.defined(t.page))if(r.integer(t.page)&&r.inRange(t.page,0,1e5))a.page=t.page;else throw r.invalidParameterError(`page`,`integer between 0 and 100000`,t.page);if(r.defined(t.level))if(r.integer(t.level)&&r.inRange(t.level,0,256))a.level=t.level;else throw r.invalidParameterError(`level`,`integer between 0 and 256`,t.level);if(r.defined(t.subifd))if(r.integer(t.subifd)&&r.inRange(t.subifd,-1,1e5))a.subifd=t.subifd;else throw r.invalidParameterError(`subifd`,`integer between -1 and 100000`,t.subifd);if(r.defined(t.create))if(r.object(t.create)&&r.integer(t.create.width)&&t.create.width>0&&r.integer(t.create.height)&&t.create.height>0&&r.integer(t.create.channels)){if(a.createWidth=t.create.width,a.createHeight=t.create.height,a.createChannels=t.create.channels,r.defined(t.create.noise)){if(!r.object(t.create.noise))throw Error(`Expected noise to be an object`);if(!r.inArray(t.create.noise.type,[`gaussian`]))throw Error(`Only gaussian noise is supported at the moment`);if(!r.inRange(t.create.channels,1,4))throw r.invalidParameterError(`create.channels`,`number between 1 and 4`,t.create.channels);if(a.createNoiseType=t.create.noise.type,r.number(t.create.noise.mean)&&r.inRange(t.create.noise.mean,0,1e4))a.createNoiseMean=t.create.noise.mean;else throw r.invalidParameterError(`create.noise.mean`,`number between 0 and 10000`,t.create.noise.mean);if(r.number(t.create.noise.sigma)&&r.inRange(t.create.noise.sigma,0,1e4))a.createNoiseSigma=t.create.noise.sigma;else throw r.invalidParameterError(`create.noise.sigma`,`number between 0 and 10000`,t.create.noise.sigma)}else if(r.defined(t.create.background)){if(!r.inRange(t.create.channels,3,4))throw r.invalidParameterError(`create.channels`,`number between 3 and 4`,t.create.channels);let e=n(t.create.background);a.createBackground=[e.red(),e.green(),e.blue(),Math.round(e.alpha()*255)]}else throw Error(`Expected valid noise or background to create a new input image`);delete a.buffer}else throw Error(`Expected valid width, height and channels to create a new input image`);if(r.defined(t.text))if(r.object(t.text)&&r.string(t.text.text)){if(a.textValue=t.text.text,r.defined(t.text.height)&&r.defined(t.text.dpi))throw Error(`Expected only one of dpi or height`);if(r.defined(t.text.font))if(r.string(t.text.font))a.textFont=t.text.font;else throw r.invalidParameterError(`text.font`,`string`,t.text.font);if(r.defined(t.text.fontfile))if(r.string(t.text.fontfile))a.textFontfile=t.text.fontfile;else throw r.invalidParameterError(`text.fontfile`,`string`,t.text.fontfile);if(r.defined(t.text.width))if(r.integer(t.text.width)&&t.text.width>0)a.textWidth=t.text.width;else throw r.invalidParameterError(`text.width`,`positive integer`,t.text.width);if(r.defined(t.text.height))if(r.integer(t.text.height)&&t.text.height>0)a.textHeight=t.text.height;else throw r.invalidParameterError(`text.height`,`positive integer`,t.text.height);if(r.defined(t.text.align))if(r.string(t.text.align)&&r.string(this.constructor.align[t.text.align]))a.textAlign=this.constructor.align[t.text.align];else throw r.invalidParameterError(`text.align`,`valid alignment`,t.text.align);if(r.defined(t.text.justify))if(r.bool(t.text.justify))a.textJustify=t.text.justify;else throw r.invalidParameterError(`text.justify`,`boolean`,t.text.justify);if(r.defined(t.text.dpi))if(r.integer(t.text.dpi)&&r.inRange(t.text.dpi,1,1e6))a.textDpi=t.text.dpi;else throw r.invalidParameterError(`text.dpi`,`integer between 1 and 1000000`,t.text.dpi);if(r.defined(t.text.rgba))if(r.bool(t.text.rgba))a.textRgba=t.text.rgba;else throw r.invalidParameterError(`text.rgba`,`bool`,t.text.rgba);if(r.defined(t.text.spacing))if(r.integer(t.text.spacing)&&r.inRange(t.text.spacing,-1e6,1e6))a.textSpacing=t.text.spacing;else throw r.invalidParameterError(`text.spacing`,`integer between -1000000 and 1000000`,t.text.spacing);if(r.defined(t.text.wrap))if(r.string(t.text.wrap)&&r.inArray(t.text.wrap,[`word`,`char`,`word-char`,`none`]))a.textWrap=t.text.wrap;else throw r.invalidParameterError(`text.wrap`,`one of: word, char, word-char, none`,t.text.wrap);delete a.buffer}else throw Error(`Expected a valid string to create an image with text.`)}else if(r.defined(t))throw Error(`Invalid input options `+t);return a}function c(e,t,n){Array.isArray(this.options.input.buffer)?r.buffer(e)?(this.options.input.buffer.length===0&&this.on(`finish`,()=>{this.streamInFinished=!0}),this.options.input.buffer.push(e),n()):n(Error(`Non-Buffer data on Writable Stream`)):n(Error(`Unexpected data on Writable Stream`))}function l(){this._isStreamInput()&&(this.options.input.buffer=Buffer.concat(this.options.input.buffer))}function u(){return Array.isArray(this.options.input.buffer)}function d(e){let t=Error();return r.fn(e)?(this._isStreamInput()?this.on(`finish`,()=>{this._flattenBufferIn(),i.metadata(this.options,(n,i)=>{n?e(r.nativeError(n,t)):e(null,i)})}):i.metadata(this.options,(n,i)=>{n?e(r.nativeError(n,t)):e(null,i)}),this):this._isStreamInput()?new Promise((e,n)=>{let a=()=>{this._flattenBufferIn(),i.metadata(this.options,(i,a)=>{i?n(r.nativeError(i,t)):e(a)})};this.writableFinished?a():this.once(`finish`,a)}):new Promise((e,n)=>{i.metadata(this.options,(i,a)=>{i?n(r.nativeError(i,t)):e(a)})})}function p(e){let t=Error();return r.fn(e)?(this._isStreamInput()?this.on(`finish`,()=>{this._flattenBufferIn(),i.stats(this.options,(n,i)=>{n?e(r.nativeError(n,t)):e(null,i)})}):i.stats(this.options,(n,i)=>{n?e(r.nativeError(n,t)):e(null,i)}),this):this._isStreamInput()?new Promise((e,n)=>{this.on(`finish`,function(){this._flattenBufferIn(),i.stats(this.options,(i,a)=>{i?n(r.nativeError(i,t)):e(a)})})}):new Promise((e,n)=>{i.stats(this.options,(i,a)=>{i?n(r.nativeError(i,t)):e(a)})})}t.exports=function(e){Object.assign(e.prototype,{_inputOptionsFromObject:o,_createInputDescriptor:s,_write:c,_flattenBufferIn:l,_isStreamInput:u,metadata:d,stats:p}),e.align=a}})),Y=a(((e,t)=>{var n=f(),r={center:0,centre:0,north:1,east:2,south:3,west:4,northeast:5,southeast:6,southwest:7,northwest:8},i={top:1,right:2,bottom:3,left:4,"right top":5,"right bottom":6,"left bottom":7,"left top":8},a={background:`background`,copy:`copy`,repeat:`repeat`,mirror:`mirror`},o={entropy:16,attention:17},s={nearest:`nearest`,linear:`linear`,cubic:`cubic`,mitchell:`mitchell`,lanczos2:`lanczos2`,lanczos3:`lanczos3`},c={contain:`contain`,cover:`cover`,fill:`fill`,inside:`inside`,outside:`outside`},l={contain:`embed`,cover:`crop`,fill:`ignore_aspect`,inside:`max`,outside:`min`};function u(e){return e.angle%360!=0||e.useExifOrientation===!0||e.rotationAngle!==0}function d(e){return e.width!==-1||e.height!==-1}function p(e,t,a){if(d(this.options)&&this.options.debuglog(`ignoring previous resize options`),this.options.widthPost!==-1&&this.options.debuglog(`operation order will be: extract, resize, extract`),n.defined(e))if(n.object(e)&&!n.defined(a))a=e;else if(n.integer(e)&&e>0)this.options.width=e;else throw n.invalidParameterError(`width`,`positive integer`,e);else this.options.width=-1;if(n.defined(t))if(n.integer(t)&&t>0)this.options.height=t;else throw n.invalidParameterError(`height`,`positive integer`,t);else this.options.height=-1;if(n.object(a)){if(n.defined(a.width))if(n.integer(a.width)&&a.width>0)this.options.width=a.width;else throw n.invalidParameterError(`width`,`positive integer`,a.width);if(n.defined(a.height))if(n.integer(a.height)&&a.height>0)this.options.height=a.height;else throw n.invalidParameterError(`height`,`positive integer`,a.height);if(n.defined(a.fit)){let e=l[a.fit];if(n.string(e))this.options.canvas=e;else throw n.invalidParameterError(`fit`,`valid fit`,a.fit)}if(n.defined(a.position)){let e=n.integer(a.position)?a.position:o[a.position]||i[a.position]||r[a.position];if(n.integer(e)&&(n.inRange(e,0,8)||n.inRange(e,16,17)))this.options.position=e;else throw n.invalidParameterError(`position`,`valid position/gravity/strategy`,a.position)}if(this._setBackgroundColourOption(`resizeBackground`,a.background),n.defined(a.kernel))if(n.string(s[a.kernel]))this.options.kernel=s[a.kernel];else throw n.invalidParameterError(`kernel`,`valid kernel name`,a.kernel);n.defined(a.withoutEnlargement)&&this._setBooleanOption(`withoutEnlargement`,a.withoutEnlargement),n.defined(a.withoutReduction)&&this._setBooleanOption(`withoutReduction`,a.withoutReduction),n.defined(a.fastShrinkOnLoad)&&this._setBooleanOption(`fastShrinkOnLoad`,a.fastShrinkOnLoad)}return u(this.options)&&d(this.options)&&(this.options.rotateBeforePreExtract=!0),this}function m(e){if(n.integer(e)&&e>0)this.options.extendTop=e,this.options.extendBottom=e,this.options.extendLeft=e,this.options.extendRight=e;else if(n.object(e)){if(n.defined(e.top))if(n.integer(e.top)&&e.top>=0)this.options.extendTop=e.top;else throw n.invalidParameterError(`top`,`positive integer`,e.top);if(n.defined(e.bottom))if(n.integer(e.bottom)&&e.bottom>=0)this.options.extendBottom=e.bottom;else throw n.invalidParameterError(`bottom`,`positive integer`,e.bottom);if(n.defined(e.left))if(n.integer(e.left)&&e.left>=0)this.options.extendLeft=e.left;else throw n.invalidParameterError(`left`,`positive integer`,e.left);if(n.defined(e.right))if(n.integer(e.right)&&e.right>=0)this.options.extendRight=e.right;else throw n.invalidParameterError(`right`,`positive integer`,e.right);if(this._setBackgroundColourOption(`extendBackground`,e.background),n.defined(e.extendWith))if(n.string(a[e.extendWith]))this.options.extendWith=a[e.extendWith];else throw n.invalidParameterError(`extendWith`,`one of: background, copy, repeat, mirror`,e.extendWith)}else throw n.invalidParameterError(`extend`,`integer or object`,e);return this}function h(e){let t=d(this.options)||this.options.widthPre!==-1?`Post`:`Pre`;return this.options[`width${t}`]!==-1&&this.options.debuglog(`ignoring previous extract options`),[`left`,`top`,`width`,`height`].forEach(function(r){let i=e[r];if(n.integer(i)&&i>=0)this.options[r+(r===`left`||r===`top`?`Offset`:``)+t]=i;else throw n.invalidParameterError(r,`integer`,i)},this),u(this.options)&&!d(this.options)&&(this.options.widthPre===-1||this.options.widthPost===-1)&&(this.options.rotateBeforePreExtract=!0),this}function g(e){if(this.options.trimThreshold=10,n.defined(e))if(n.object(e)){if(n.defined(e.background)&&this._setBackgroundColourOption(`trimBackground`,e.background),n.defined(e.threshold))if(n.number(e.threshold)&&e.threshold>=0)this.options.trimThreshold=e.threshold;else throw n.invalidParameterError(`threshold`,`positive number`,e.threshold);n.defined(e.lineArt)&&this._setBooleanOption(`trimLineArt`,e.lineArt)}else throw n.invalidParameterError(`trim`,`object`,e);return u(this.options)&&(this.options.rotateBeforePreExtract=!0),this}t.exports=function(e){Object.assign(e.prototype,{resize:p,extend:m,extract:h,trim:g}),e.gravity=r,e.strategy=o,e.kernel=s,e.fit=c,e.position=i}})),X=a(((e,t)=>{var n=f(),r={clear:`clear`,source:`source`,over:`over`,in:`in`,out:`out`,atop:`atop`,dest:`dest`,"dest-over":`dest-over`,"dest-in":`dest-in`,"dest-out":`dest-out`,"dest-atop":`dest-atop`,xor:`xor`,add:`add`,saturate:`saturate`,multiply:`multiply`,screen:`screen`,overlay:`overlay`,darken:`darken`,lighten:`lighten`,"colour-dodge":`colour-dodge`,"color-dodge":`colour-dodge`,"colour-burn":`colour-burn`,"color-burn":`colour-burn`,"hard-light":`hard-light`,"soft-light":`soft-light`,difference:`difference`,exclusion:`exclusion`};function i(e){if(!Array.isArray(e))throw n.invalidParameterError(`images to composite`,`array`,e);return this.options.composite=e.map(e=>{if(!n.object(e))throw n.invalidParameterError(`image to composite`,`object`,e);let t=this._inputOptionsFromObject(e),i={input:this._createInputDescriptor(e.input,t,{allowStream:!1}),blend:`over`,tile:!1,left:0,top:0,hasOffset:!1,gravity:0,premultiplied:!1};if(n.defined(e.blend))if(n.string(r[e.blend]))i.blend=r[e.blend];else throw n.invalidParameterError(`blend`,`valid blend name`,e.blend);if(n.defined(e.tile))if(n.bool(e.tile))i.tile=e.tile;else throw n.invalidParameterError(`tile`,`boolean`,e.tile);if(n.defined(e.left))if(n.integer(e.left))i.left=e.left;else throw n.invalidParameterError(`left`,`integer`,e.left);if(n.defined(e.top))if(n.integer(e.top))i.top=e.top;else throw n.invalidParameterError(`top`,`integer`,e.top);if(n.defined(e.top)!==n.defined(e.left))throw Error(`Expected both left and top to be set`);if(i.hasOffset=n.integer(e.top)&&n.integer(e.left),n.defined(e.gravity))if(n.integer(e.gravity)&&n.inRange(e.gravity,0,8))i.gravity=e.gravity;else if(n.string(e.gravity)&&n.integer(this.constructor.gravity[e.gravity]))i.gravity=this.constructor.gravity[e.gravity];else throw n.invalidParameterError(`gravity`,`valid gravity`,e.gravity);if(n.defined(e.premultiplied))if(n.bool(e.premultiplied))i.premultiplied=e.premultiplied;else throw n.invalidParameterError(`premultiplied`,`boolean`,e.premultiplied);return i}),this}t.exports=function(e){e.prototype.composite=i,e.blend=r}})),Z=a(((e,t)=>{var n=q(),r=f(),i={integer:`integer`,float:`float`,approximate:`approximate`};function a(e,t){if((this.options.useExifOrientation||this.options.angle||this.options.rotationAngle)&&this.options.debuglog(`ignoring previous rotate options`),!r.defined(e))this.options.useExifOrientation=!0;else if(r.integer(e)&&!(e%90))this.options.angle=e;else if(r.number(e)){if(this.options.rotationAngle=e,r.object(t)&&t.background){let e=n(t.background);this.options.rotationBackground=[e.red(),e.green(),e.blue(),Math.round(e.alpha()*255)]}}else throw r.invalidParameterError(`angle`,`numeric`,e);return this}function o(e){return this.options.flip=r.bool(e)?e:!0,this}function s(e){return this.options.flop=r.bool(e)?e:!0,this}function c(e,t){let n=[].concat(...e);if(n.length===4&&n.every(r.number))this.options.affineMatrix=n;else throw r.invalidParameterError(`matrix`,`1x4 or 2x2 array`,e);if(r.defined(t))if(r.object(t)){if(this._setBackgroundColourOption(`affineBackground`,t.background),r.defined(t.idx))if(r.number(t.idx))this.options.affineIdx=t.idx;else throw r.invalidParameterError(`options.idx`,`number`,t.idx);if(r.defined(t.idy))if(r.number(t.idy))this.options.affineIdy=t.idy;else throw r.invalidParameterError(`options.idy`,`number`,t.idy);if(r.defined(t.odx))if(r.number(t.odx))this.options.affineOdx=t.odx;else throw r.invalidParameterError(`options.odx`,`number`,t.odx);if(r.defined(t.ody))if(r.number(t.ody))this.options.affineOdy=t.ody;else throw r.invalidParameterError(`options.ody`,`number`,t.ody);if(r.defined(t.interpolator))if(r.inArray(t.interpolator,Object.values(this.constructor.interpolators)))this.options.affineInterpolator=t.interpolator;else throw r.invalidParameterError(`options.interpolator`,`valid interpolator name`,t.interpolator)}else throw r.invalidParameterError(`options`,`object`,t);return this}function l(e,t,n){if(!r.defined(e))this.options.sharpenSigma=-1;else if(r.bool(e))this.options.sharpenSigma=e?-1:0;else if(r.number(e)&&r.inRange(e,.01,1e4)){if(this.options.sharpenSigma=e,r.defined(t))if(r.number(t)&&r.inRange(t,0,1e4))this.options.sharpenM1=t;else throw r.invalidParameterError(`flat`,`number between 0 and 10000`,t);if(r.defined(n))if(r.number(n)&&r.inRange(n,0,1e4))this.options.sharpenM2=n;else throw r.invalidParameterError(`jagged`,`number between 0 and 10000`,n)}else if(r.plainObject(e)){if(r.number(e.sigma)&&r.inRange(e.sigma,1e-6,10))this.options.sharpenSigma=e.sigma;else throw r.invalidParameterError(`options.sigma`,`number between 0.000001 and 10`,e.sigma);if(r.defined(e.m1))if(r.number(e.m1)&&r.inRange(e.m1,0,1e6))this.options.sharpenM1=e.m1;else throw r.invalidParameterError(`options.m1`,`number between 0 and 1000000`,e.m1);if(r.defined(e.m2))if(r.number(e.m2)&&r.inRange(e.m2,0,1e6))this.options.sharpenM2=e.m2;else throw r.invalidParameterError(`options.m2`,`number between 0 and 1000000`,e.m2);if(r.defined(e.x1))if(r.number(e.x1)&&r.inRange(e.x1,0,1e6))this.options.sharpenX1=e.x1;else throw r.invalidParameterError(`options.x1`,`number between 0 and 1000000`,e.x1);if(r.defined(e.y2))if(r.number(e.y2)&&r.inRange(e.y2,0,1e6))this.options.sharpenY2=e.y2;else throw r.invalidParameterError(`options.y2`,`number between 0 and 1000000`,e.y2);if(r.defined(e.y3))if(r.number(e.y3)&&r.inRange(e.y3,0,1e6))this.options.sharpenY3=e.y3;else throw r.invalidParameterError(`options.y3`,`number between 0 and 1000000`,e.y3)}else throw r.invalidParameterError(`sigma`,`number between 0.01 and 10000`,e);return this}function u(e){if(!r.defined(e))this.options.medianSize=3;else if(r.integer(e)&&r.inRange(e,1,1e3))this.options.medianSize=e;else throw r.invalidParameterError(`size`,`integer between 1 and 1000`,e);return this}function d(e){let t;if(r.number(e))t=e;else if(r.plainObject(e)){if(!r.number(e.sigma))throw r.invalidParameterError(`options.sigma`,`number between 0.3 and 1000`,t);if(t=e.sigma,`precision`in e)if(r.string(i[e.precision]))this.options.precision=i[e.precision];else throw r.invalidParameterError(`precision`,`one of: integer, float, approximate`,e.precision);if(`minAmplitude`in e)if(r.number(e.minAmplitude)&&r.inRange(e.minAmplitude,.001,1))this.options.minAmpl=e.minAmplitude;else throw r.invalidParameterError(`minAmplitude`,`number between 0.001 and 1`,e.minAmplitude)}if(!r.defined(e))this.options.blurSigma=-1;else if(r.bool(e))this.options.blurSigma=e?-1:0;else if(r.number(t)&&r.inRange(t,.3,1e3))this.options.blurSigma=t;else throw r.invalidParameterError(`sigma`,`number between 0.3 and 1000`,t);return this}function p(e){return this.options.flatten=r.bool(e)?e:!0,r.object(e)&&this._setBackgroundColourOption(`flattenBackground`,e.background),this}function m(){return this.options.unflatten=!0,this}function h(e,t){if(!r.defined(e))this.options.gamma=2.2;else if(r.number(e)&&r.inRange(e,1,3))this.options.gamma=e;else throw r.invalidParameterError(`gamma`,`number between 1.0 and 3.0`,e);if(!r.defined(t))this.options.gammaOut=this.options.gamma;else if(r.number(t)&&r.inRange(t,1,3))this.options.gammaOut=t;else throw r.invalidParameterError(`gammaOut`,`number between 1.0 and 3.0`,t);return this}function g(e){if(this.options.negate=r.bool(e)?e:!0,r.plainObject(e)&&`alpha`in e)if(r.bool(e.alpha))this.options.negateAlpha=e.alpha;else throw r.invalidParameterError(`alpha`,`should be boolean value`,e.alpha);return this}function _(e){if(r.plainObject(e)){if(r.defined(e.lower))if(r.number(e.lower)&&r.inRange(e.lower,0,99))this.options.normaliseLower=e.lower;else throw r.invalidParameterError(`lower`,`number between 0 and 99`,e.lower);if(r.defined(e.upper))if(r.number(e.upper)&&r.inRange(e.upper,1,100))this.options.normaliseUpper=e.upper;else throw r.invalidParameterError(`upper`,`number between 1 and 100`,e.upper)}if(this.options.normaliseLower>=this.options.normaliseUpper)throw r.invalidParameterError(`range`,`lower to be less than upper`,`${this.options.normaliseLower} >= ${this.options.normaliseUpper}`);return this.options.normalise=!0,this}function v(e){return this.normalise(e)}function y(e){if(r.plainObject(e)){if(r.integer(e.width)&&e.width>0)this.options.claheWidth=e.width;else throw r.invalidParameterError(`width`,`integer greater than zero`,e.width);if(r.integer(e.height)&&e.height>0)this.options.claheHeight=e.height;else throw r.invalidParameterError(`height`,`integer greater than zero`,e.height);if(r.defined(e.maxSlope))if(r.integer(e.maxSlope)&&r.inRange(e.maxSlope,0,100))this.options.claheMaxSlope=e.maxSlope;else throw r.invalidParameterError(`maxSlope`,`integer between 0 and 100`,e.maxSlope)}else throw r.invalidParameterError(`options`,`plain object`,e);return this}function b(e){if(!r.object(e)||!Array.isArray(e.kernel)||!r.integer(e.width)||!r.integer(e.height)||!r.inRange(e.width,3,1001)||!r.inRange(e.height,3,1001)||e.height*e.width!==e.kernel.length)throw Error(`Invalid convolution kernel`);return r.integer(e.scale)||(e.scale=e.kernel.reduce(function(e,t){return e+t},0)),e.scale<1&&(e.scale=1),r.integer(e.offset)||(e.offset=0),this.options.convKernel=e,this}function x(e,t){if(!r.defined(e))this.options.threshold=128;else if(r.bool(e))this.options.threshold=e?128:0;else if(r.integer(e)&&r.inRange(e,0,255))this.options.threshold=e;else throw r.invalidParameterError(`threshold`,`integer between 0 and 255`,e);return!r.object(t)||t.greyscale===!0||t.grayscale===!0?this.options.thresholdGrayscale=!0:this.options.thresholdGrayscale=!1,this}function S(e,t,n){if(this.options.boolean=this._createInputDescriptor(e,n),r.string(t)&&r.inArray(t,[`and`,`or`,`eor`]))this.options.booleanOp=t;else throw r.invalidParameterError(`operator`,`one of: and, or, eor`,t);return this}function C(e,t){if(!r.defined(e)&&r.number(t)?e=1:r.number(e)&&!r.defined(t)&&(t=0),!r.defined(e))this.options.linearA=[];else if(r.number(e))this.options.linearA=[e];else if(Array.isArray(e)&&e.length&&e.every(r.number))this.options.linearA=e;else throw r.invalidParameterError(`a`,`number or array of numbers`,e);if(!r.defined(t))this.options.linearB=[];else if(r.number(t))this.options.linearB=[t];else if(Array.isArray(t)&&t.length&&t.every(r.number))this.options.linearB=t;else throw r.invalidParameterError(`b`,`number or array of numbers`,t);if(this.options.linearA.length!==this.options.linearB.length)throw Error(`Expected a and b to be arrays of the same length`);return this}function w(e){if(!Array.isArray(e))throw r.invalidParameterError(`inputMatrix`,`array`,e);if(e.length!==3&&e.length!==4)throw r.invalidParameterError(`inputMatrix`,`3x3 or 4x4 array`,e.length);let t=e.flat().map(Number);if(t.length!==9&&t.length!==16)throw r.invalidParameterError(`inputMatrix`,`cardinality of 9 or 16`,t.length);return this.options.recombMatrix=t,this}function T(e){if(!r.plainObject(e))throw r.invalidParameterError(`options`,`plain object`,e);if(`brightness`in e)if(r.number(e.brightness)&&e.brightness>=0)this.options.brightness=e.brightness;else throw r.invalidParameterError(`brightness`,`number above zero`,e.brightness);if(`saturation`in e)if(r.number(e.saturation)&&e.saturation>=0)this.options.saturation=e.saturation;else throw r.invalidParameterError(`saturation`,`number above zero`,e.saturation);if(`hue`in e)if(r.integer(e.hue))this.options.hue=e.hue%360;else throw r.invalidParameterError(`hue`,`number`,e.hue);if(`lightness`in e)if(r.number(e.lightness))this.options.lightness=e.lightness;else throw r.invalidParameterError(`lightness`,`number`,e.lightness);return this}t.exports=function(e){Object.assign(e.prototype,{rotate:a,flip:o,flop:s,affine:c,sharpen:l,median:u,blur:d,flatten:p,unflatten:m,gamma:h,negate:g,normalise:_,normalize:v,clahe:y,convolve:b,threshold:x,boolean:S,linear:C,recomb:w,modulate:T})}})),ee=a(((e,t)=>{var n=q(),r=f(),i={multiband:`multiband`,"b-w":`b-w`,bw:`b-w`,cmyk:`cmyk`,srgb:`srgb`};function a(e){return this._setBackgroundColourOption(`tint`,e),this}function o(e){return this.options.greyscale=r.bool(e)?e:!0,this}function s(e){return this.greyscale(e)}function c(e){if(!r.string(e))throw r.invalidParameterError(`colourspace`,`string`,e);return this.options.colourspacePipeline=e,this}function l(e){return this.pipelineColourspace(e)}function u(e){if(!r.string(e))throw r.invalidParameterError(`colourspace`,`string`,e);return this.options.colourspace=e,this}function d(e){return this.toColourspace(e)}function p(e,t){if(r.defined(t))if(r.object(t)||r.string(t)){let r=n(t);this.options[e]=[r.red(),r.green(),r.blue(),Math.round(r.alpha()*255)]}else throw r.invalidParameterError(`background`,`object or string`,t)}t.exports=function(e){Object.assign(e.prototype,{tint:a,greyscale:o,grayscale:s,pipelineColourspace:c,pipelineColorspace:l,toColourspace:u,toColorspace:d,_setBackgroundColourOption:p}),e.colourspace=i,e.colorspace=i}})),te=a(((e,t)=>{var n=f(),r={and:`and`,or:`or`,eor:`eor`};function i(){return this.options.removeAlpha=!0,this}function a(e){if(n.defined(e))if(n.number(e)&&n.inRange(e,0,1))this.options.ensureAlpha=e;else throw n.invalidParameterError(`alpha`,`number between 0 and 1`,e);else this.options.ensureAlpha=1;return this}function o(e){let t={red:0,green:1,blue:2,alpha:3};if(Object.keys(t).includes(e)&&(e=t[e]),n.integer(e)&&n.inRange(e,0,4))this.options.extractChannel=e;else throw n.invalidParameterError(`channel`,`integer or one of: red, green, blue, alpha`,e);return this}function s(e,t){return Array.isArray(e)?e.forEach(function(e){this.options.joinChannelIn.push(this._createInputDescriptor(e,t))},this):this.options.joinChannelIn.push(this._createInputDescriptor(e,t)),this}function c(e){if(n.string(e)&&n.inArray(e,[`and`,`or`,`eor`]))this.options.bandBoolOp=e;else throw n.invalidParameterError(`boolOp`,`one of: and, or, eor`,e);return this}t.exports=function(e){Object.assign(e.prototype,{removeAlpha:i,ensureAlpha:a,extractChannel:o,joinChannel:s,bandbool:c}),e.bool=r}})),ne=a(((e,n)=>{var r=t(`node:path`),i=f(),a=H(),o=new Map([[`heic`,`heif`],[`heif`,`heif`],[`avif`,`avif`],[`jpeg`,`jpeg`],[`jpg`,`jpeg`],[`jpe`,`jpeg`],[`tile`,`tile`],[`dz`,`tile`],[`png`,`png`],[`raw`,`raw`],[`tiff`,`tiff`],[`tif`,`tiff`],[`webp`,`webp`],[`gif`,`gif`],[`jp2`,`jp2`],[`jpx`,`jp2`],[`j2k`,`jp2`],[`j2c`,`jp2`],[`jxl`,`jxl`]]),s=/\.(jp[2x]|j2[kc])$/i,c=()=>Error(`JP2 output requires libvips with support for OpenJPEG`),l=e=>1<<31-Math.clz32(Math.ceil(Math.log2(e)));function u(e,t){let n;if(i.string(e)?i.string(this.options.input.file)&&r.resolve(this.options.input.file)===r.resolve(e)?n=Error(`Cannot use same file for input and output`):s.test(r.extname(e))&&!this.constructor.format.jp2k.output.file&&(n=c()):n=Error(`Missing output file path`),n)if(i.fn(t))t(n);else return Promise.reject(n);else{this.options.fileOut=e;let n=Error();return this._pipeline(t,n)}return this}function d(e,t){i.object(e)?this._setBooleanOption(`resolveWithObject`,e.resolveWithObject):this.options.resolveWithObject&&(this.options.resolveWithObject=!1),this.options.fileOut=``;let n=Error();return this._pipeline(i.fn(e)?e:t,n)}function p(){return this.options.keepMetadata|=1,this}function m(e){if(i.object(e))for(let[t,n]of Object.entries(e))if(i.object(n))for(let[e,r]of Object.entries(n))if(i.string(r))this.options.withExif[`exif-${t.toLowerCase()}-${e}`]=r;else throw i.invalidParameterError(`${t}.${e}`,`string`,r);else throw i.invalidParameterError(t,`object`,n);else throw i.invalidParameterError(`exif`,`object`,e);return this.options.withExifMerge=!1,this.keepExif()}function h(e){return this.withExif(e),this.options.withExifMerge=!0,this}function g(){return this.options.keepMetadata|=8,this}function _(e,t){if(i.string(e))this.options.withIccProfile=e;else throw i.invalidParameterError(`icc`,`string`,e);if(this.keepIccProfile(),i.object(t)&&i.defined(t.attach))if(i.bool(t.attach))t.attach||(this.options.keepMetadata&=-9);else throw i.invalidParameterError(`attach`,`boolean`,t.attach);return this}function v(){return this.options.keepMetadata=31,this}function y(e){if(this.keepMetadata(),this.withIccProfile(`srgb`),i.object(e)){if(i.defined(e.orientation))if(i.integer(e.orientation)&&i.inRange(e.orientation,1,8))this.options.withMetadataOrientation=e.orientation;else throw i.invalidParameterError(`orientation`,`integer between 1 and 8`,e.orientation);if(i.defined(e.density))if(i.number(e.density)&&e.density>0)this.options.withMetadataDensity=e.density;else throw i.invalidParameterError(`density`,`positive number`,e.density);i.defined(e.icc)&&this.withIccProfile(e.icc),i.defined(e.exif)&&this.withExifMerge(e.exif)}return this}function b(e,t){let n=o.get((i.object(e)&&i.string(e.id)?e.id:e).toLowerCase());if(!n)throw i.invalidParameterError(`format`,`one of: ${[...o.keys()].join(`, `)}`,e);return this[n](t)}function x(e){if(i.object(e)){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.jpegQuality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);if(i.defined(e.progressive)&&this._setBooleanOption(`jpegProgressive`,e.progressive),i.defined(e.chromaSubsampling))if(i.string(e.chromaSubsampling)&&i.inArray(e.chromaSubsampling,[`4:2:0`,`4:4:4`]))this.options.jpegChromaSubsampling=e.chromaSubsampling;else throw i.invalidParameterError(`chromaSubsampling`,`one of: 4:2:0, 4:4:4`,e.chromaSubsampling);let t=i.bool(e.optimizeCoding)?e.optimizeCoding:e.optimiseCoding;if(i.defined(t)&&this._setBooleanOption(`jpegOptimiseCoding`,t),i.defined(e.mozjpeg))if(i.bool(e.mozjpeg))e.mozjpeg&&(this.options.jpegTrellisQuantisation=!0,this.options.jpegOvershootDeringing=!0,this.options.jpegOptimiseScans=!0,this.options.jpegProgressive=!0,this.options.jpegQuantisationTable=3);else throw i.invalidParameterError(`mozjpeg`,`boolean`,e.mozjpeg);let n=i.bool(e.trellisQuantization)?e.trellisQuantization:e.trellisQuantisation;i.defined(n)&&this._setBooleanOption(`jpegTrellisQuantisation`,n),i.defined(e.overshootDeringing)&&this._setBooleanOption(`jpegOvershootDeringing`,e.overshootDeringing);let r=i.bool(e.optimizeScans)?e.optimizeScans:e.optimiseScans;i.defined(r)&&(this._setBooleanOption(`jpegOptimiseScans`,r),r&&(this.options.jpegProgressive=!0));let a=i.number(e.quantizationTable)?e.quantizationTable:e.quantisationTable;if(i.defined(a))if(i.integer(a)&&i.inRange(a,0,8))this.options.jpegQuantisationTable=a;else throw i.invalidParameterError(`quantisationTable`,`integer between 0 and 8`,a)}return this._updateFormatOut(`jpeg`,e)}function S(e){if(i.object(e)){if(i.defined(e.progressive)&&this._setBooleanOption(`pngProgressive`,e.progressive),i.defined(e.compressionLevel))if(i.integer(e.compressionLevel)&&i.inRange(e.compressionLevel,0,9))this.options.pngCompressionLevel=e.compressionLevel;else throw i.invalidParameterError(`compressionLevel`,`integer between 0 and 9`,e.compressionLevel);i.defined(e.adaptiveFiltering)&&this._setBooleanOption(`pngAdaptiveFiltering`,e.adaptiveFiltering);let t=e.colours||e.colors;if(i.defined(t))if(i.integer(t)&&i.inRange(t,2,256))this.options.pngBitdepth=l(t);else throw i.invalidParameterError(`colours`,`integer between 2 and 256`,t);if(i.defined(e.palette)?this._setBooleanOption(`pngPalette`,e.palette):[e.quality,e.effort,e.colours,e.colors,e.dither].some(i.defined)&&this._setBooleanOption(`pngPalette`,!0),this.options.pngPalette){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,0,100))this.options.pngQuality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 0 and 100`,e.quality);if(i.defined(e.effort))if(i.integer(e.effort)&&i.inRange(e.effort,1,10))this.options.pngEffort=e.effort;else throw i.invalidParameterError(`effort`,`integer between 1 and 10`,e.effort);if(i.defined(e.dither))if(i.number(e.dither)&&i.inRange(e.dither,0,1))this.options.pngDither=e.dither;else throw i.invalidParameterError(`dither`,`number between 0.0 and 1.0`,e.dither)}}return this._updateFormatOut(`png`,e)}function C(e){if(i.object(e)){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.webpQuality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);if(i.defined(e.alphaQuality))if(i.integer(e.alphaQuality)&&i.inRange(e.alphaQuality,0,100))this.options.webpAlphaQuality=e.alphaQuality;else throw i.invalidParameterError(`alphaQuality`,`integer between 0 and 100`,e.alphaQuality);if(i.defined(e.lossless)&&this._setBooleanOption(`webpLossless`,e.lossless),i.defined(e.nearLossless)&&this._setBooleanOption(`webpNearLossless`,e.nearLossless),i.defined(e.smartSubsample)&&this._setBooleanOption(`webpSmartSubsample`,e.smartSubsample),i.defined(e.preset))if(i.string(e.preset)&&i.inArray(e.preset,[`default`,`photo`,`picture`,`drawing`,`icon`,`text`]))this.options.webpPreset=e.preset;else throw i.invalidParameterError(`preset`,`one of: default, photo, picture, drawing, icon, text`,e.preset);if(i.defined(e.effort))if(i.integer(e.effort)&&i.inRange(e.effort,0,6))this.options.webpEffort=e.effort;else throw i.invalidParameterError(`effort`,`integer between 0 and 6`,e.effort);i.defined(e.minSize)&&this._setBooleanOption(`webpMinSize`,e.minSize),i.defined(e.mixed)&&this._setBooleanOption(`webpMixed`,e.mixed)}return E(e,this.options),this._updateFormatOut(`webp`,e)}function w(e){if(i.object(e)){i.defined(e.reuse)&&this._setBooleanOption(`gifReuse`,e.reuse),i.defined(e.progressive)&&this._setBooleanOption(`gifProgressive`,e.progressive);let t=e.colours||e.colors;if(i.defined(t))if(i.integer(t)&&i.inRange(t,2,256))this.options.gifBitdepth=l(t);else throw i.invalidParameterError(`colours`,`integer between 2 and 256`,t);if(i.defined(e.effort))if(i.number(e.effort)&&i.inRange(e.effort,1,10))this.options.gifEffort=e.effort;else throw i.invalidParameterError(`effort`,`integer between 1 and 10`,e.effort);if(i.defined(e.dither))if(i.number(e.dither)&&i.inRange(e.dither,0,1))this.options.gifDither=e.dither;else throw i.invalidParameterError(`dither`,`number between 0.0 and 1.0`,e.dither);if(i.defined(e.interFrameMaxError))if(i.number(e.interFrameMaxError)&&i.inRange(e.interFrameMaxError,0,32))this.options.gifInterFrameMaxError=e.interFrameMaxError;else throw i.invalidParameterError(`interFrameMaxError`,`number between 0.0 and 32.0`,e.interFrameMaxError);if(i.defined(e.interPaletteMaxError))if(i.number(e.interPaletteMaxError)&&i.inRange(e.interPaletteMaxError,0,256))this.options.gifInterPaletteMaxError=e.interPaletteMaxError;else throw i.invalidParameterError(`interPaletteMaxError`,`number between 0.0 and 256.0`,e.interPaletteMaxError)}return E(e,this.options),this._updateFormatOut(`gif`,e)}function T(e){if(!this.constructor.format.jp2k.output.buffer)throw c();if(i.object(e)){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.jp2Quality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);if(i.defined(e.lossless))if(i.bool(e.lossless))this.options.jp2Lossless=e.lossless;else throw i.invalidParameterError(`lossless`,`boolean`,e.lossless);if(i.defined(e.tileWidth))if(i.integer(e.tileWidth)&&i.inRange(e.tileWidth,1,32768))this.options.jp2TileWidth=e.tileWidth;else throw i.invalidParameterError(`tileWidth`,`integer between 1 and 32768`,e.tileWidth);if(i.defined(e.tileHeight))if(i.integer(e.tileHeight)&&i.inRange(e.tileHeight,1,32768))this.options.jp2TileHeight=e.tileHeight;else throw i.invalidParameterError(`tileHeight`,`integer between 1 and 32768`,e.tileHeight);if(i.defined(e.chromaSubsampling))if(i.string(e.chromaSubsampling)&&i.inArray(e.chromaSubsampling,[`4:2:0`,`4:4:4`]))this.options.jp2ChromaSubsampling=e.chromaSubsampling;else throw i.invalidParameterError(`chromaSubsampling`,`one of: 4:2:0, 4:4:4`,e.chromaSubsampling)}return this._updateFormatOut(`jp2`,e)}function E(e,t){if(i.object(e)&&i.defined(e.loop))if(i.integer(e.loop)&&i.inRange(e.loop,0,65535))t.loop=e.loop;else throw i.invalidParameterError(`loop`,`integer between 0 and 65535`,e.loop);if(i.object(e)&&i.defined(e.delay))if(i.integer(e.delay)&&i.inRange(e.delay,0,65535))t.delay=[e.delay];else if(Array.isArray(e.delay)&&e.delay.every(i.integer)&&e.delay.every(e=>i.inRange(e,0,65535)))t.delay=e.delay;else throw i.invalidParameterError(`delay`,`integer or an array of integers between 0 and 65535`,e.delay)}function D(e){if(i.object(e)){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.tiffQuality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);if(i.defined(e.bitdepth))if(i.integer(e.bitdepth)&&i.inArray(e.bitdepth,[1,2,4,8]))this.options.tiffBitdepth=e.bitdepth;else throw i.invalidParameterError(`bitdepth`,`1, 2, 4 or 8`,e.bitdepth);if(i.defined(e.tile)&&this._setBooleanOption(`tiffTile`,e.tile),i.defined(e.tileWidth))if(i.integer(e.tileWidth)&&e.tileWidth>0)this.options.tiffTileWidth=e.tileWidth;else throw i.invalidParameterError(`tileWidth`,`integer greater than zero`,e.tileWidth);if(i.defined(e.tileHeight))if(i.integer(e.tileHeight)&&e.tileHeight>0)this.options.tiffTileHeight=e.tileHeight;else throw i.invalidParameterError(`tileHeight`,`integer greater than zero`,e.tileHeight);if(i.defined(e.miniswhite)&&this._setBooleanOption(`tiffMiniswhite`,e.miniswhite),i.defined(e.pyramid)&&this._setBooleanOption(`tiffPyramid`,e.pyramid),i.defined(e.xres))if(i.number(e.xres)&&e.xres>0)this.options.tiffXres=e.xres;else throw i.invalidParameterError(`xres`,`number greater than zero`,e.xres);if(i.defined(e.yres))if(i.number(e.yres)&&e.yres>0)this.options.tiffYres=e.yres;else throw i.invalidParameterError(`yres`,`number greater than zero`,e.yres);if(i.defined(e.compression))if(i.string(e.compression)&&i.inArray(e.compression,[`none`,`jpeg`,`deflate`,`packbits`,`ccittfax4`,`lzw`,`webp`,`zstd`,`jp2k`]))this.options.tiffCompression=e.compression;else throw i.invalidParameterError(`compression`,`one of: none, jpeg, deflate, packbits, ccittfax4, lzw, webp, zstd, jp2k`,e.compression);if(i.defined(e.predictor))if(i.string(e.predictor)&&i.inArray(e.predictor,[`none`,`horizontal`,`float`]))this.options.tiffPredictor=e.predictor;else throw i.invalidParameterError(`predictor`,`one of: none, horizontal, float`,e.predictor);if(i.defined(e.resolutionUnit))if(i.string(e.resolutionUnit)&&i.inArray(e.resolutionUnit,[`inch`,`cm`]))this.options.tiffResolutionUnit=e.resolutionUnit;else throw i.invalidParameterError(`resolutionUnit`,`one of: inch, cm`,e.resolutionUnit)}return this._updateFormatOut(`tiff`,e)}function O(e){return this.heif({...e,compression:`av1`})}function k(e){if(i.object(e)){if(i.string(e.compression)&&i.inArray(e.compression,[`av1`,`hevc`]))this.options.heifCompression=e.compression;else throw i.invalidParameterError(`compression`,`one of: av1, hevc`,e.compression);if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.heifQuality=e.quality;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);if(i.defined(e.lossless))if(i.bool(e.lossless))this.options.heifLossless=e.lossless;else throw i.invalidParameterError(`lossless`,`boolean`,e.lossless);if(i.defined(e.effort))if(i.integer(e.effort)&&i.inRange(e.effort,0,9))this.options.heifEffort=e.effort;else throw i.invalidParameterError(`effort`,`integer between 0 and 9`,e.effort);if(i.defined(e.chromaSubsampling))if(i.string(e.chromaSubsampling)&&i.inArray(e.chromaSubsampling,[`4:2:0`,`4:4:4`]))this.options.heifChromaSubsampling=e.chromaSubsampling;else throw i.invalidParameterError(`chromaSubsampling`,`one of: 4:2:0, 4:4:4`,e.chromaSubsampling);if(i.defined(e.bitdepth))if(i.integer(e.bitdepth)&&i.inArray(e.bitdepth,[8,10,12])){if(e.bitdepth!==8&&this.constructor.versions.heif)throw i.invalidParameterError(`bitdepth when using prebuilt binaries`,8,e.bitdepth);this.options.heifBitdepth=e.bitdepth}else throw i.invalidParameterError(`bitdepth`,`8, 10 or 12`,e.bitdepth)}else throw i.invalidParameterError(`options`,`Object`,e);return this._updateFormatOut(`heif`,e)}function A(e){if(i.object(e)){if(i.defined(e.quality))if(i.integer(e.quality)&&i.inRange(e.quality,1,100))this.options.jxlDistance=e.quality>=30?.1+(100-e.quality)*.09:53/3e3*e.quality*e.quality-23/20*e.quality+25;else throw i.invalidParameterError(`quality`,`integer between 1 and 100`,e.quality);else if(i.defined(e.distance))if(i.number(e.distance)&&i.inRange(e.distance,0,15))this.options.jxlDistance=e.distance;else throw i.invalidParameterError(`distance`,`number between 0.0 and 15.0`,e.distance);if(i.defined(e.decodingTier))if(i.integer(e.decodingTier)&&i.inRange(e.decodingTier,0,4))this.options.jxlDecodingTier=e.decodingTier;else throw i.invalidParameterError(`decodingTier`,`integer between 0 and 4`,e.decodingTier);if(i.defined(e.lossless))if(i.bool(e.lossless))this.options.jxlLossless=e.lossless;else throw i.invalidParameterError(`lossless`,`boolean`,e.lossless);if(i.defined(e.effort))if(i.integer(e.effort)&&i.inRange(e.effort,3,9))this.options.jxlEffort=e.effort;else throw i.invalidParameterError(`effort`,`integer between 3 and 9`,e.effort)}return this._updateFormatOut(`jxl`,e)}function j(e){if(i.object(e)&&i.defined(e.depth))if(i.string(e.depth)&&i.inArray(e.depth,[`char`,`uchar`,`short`,`ushort`,`int`,`uint`,`float`,`complex`,`double`,`dpcomplex`]))this.options.rawDepth=e.depth;else throw i.invalidParameterError(`depth`,`one of: char, uchar, short, ushort, int, uint, float, complex, double, dpcomplex`,e.depth);return this._updateFormatOut(`raw`)}function M(e){if(i.object(e)){if(i.defined(e.size))if(i.integer(e.size)&&i.inRange(e.size,1,8192))this.options.tileSize=e.size;else throw i.invalidParameterError(`size`,`integer between 1 and 8192`,e.size);if(i.defined(e.overlap))if(i.integer(e.overlap)&&i.inRange(e.overlap,0,8192)){if(e.overlap>this.options.tileSize)throw i.invalidParameterError(`overlap`,`<= size (${this.options.tileSize})`,e.overlap);this.options.tileOverlap=e.overlap}else throw i.invalidParameterError(`overlap`,`integer between 0 and 8192`,e.overlap);if(i.defined(e.container))if(i.string(e.container)&&i.inArray(e.container,[`fs`,`zip`]))this.options.tileContainer=e.container;else throw i.invalidParameterError(`container`,`one of: fs, zip`,e.container);if(i.defined(e.layout))if(i.string(e.layout)&&i.inArray(e.layout,[`dz`,`google`,`iiif`,`iiif3`,`zoomify`]))this.options.tileLayout=e.layout;else throw i.invalidParameterError(`layout`,`one of: dz, google, iiif, iiif3, zoomify`,e.layout);if(i.defined(e.angle))if(i.integer(e.angle)&&!(e.angle%90))this.options.tileAngle=e.angle;else throw i.invalidParameterError(`angle`,`positive/negative multiple of 90`,e.angle);if(this._setBackgroundColourOption(`tileBackground`,e.background),i.defined(e.depth))if(i.string(e.depth)&&i.inArray(e.depth,[`onepixel`,`onetile`,`one`]))this.options.tileDepth=e.depth;else throw i.invalidParameterError(`depth`,`one of: onepixel, onetile, one`,e.depth);if(i.defined(e.skipBlanks))if(i.integer(e.skipBlanks)&&i.inRange(e.skipBlanks,-1,65535))this.options.tileSkipBlanks=e.skipBlanks;else throw i.invalidParameterError(`skipBlanks`,`integer between -1 and 255/65535`,e.skipBlanks);else i.defined(e.layout)&&e.layout===`google`&&(this.options.tileSkipBlanks=5);let t=i.bool(e.center)?e.center:e.centre;if(i.defined(t)&&this._setBooleanOption(`tileCentre`,t),i.defined(e.id))if(i.string(e.id))this.options.tileId=e.id;else throw i.invalidParameterError(`id`,`string`,e.id);if(i.defined(e.basename))if(i.string(e.basename))this.options.tileBasename=e.basename;else throw i.invalidParameterError(`basename`,`string`,e.basename)}if(i.inArray(this.options.formatOut,[`jpeg`,`png`,`webp`]))this.options.tileFormat=this.options.formatOut;else if(this.options.formatOut!==`input`)throw i.invalidParameterError(`format`,`one of: jpeg, png, webp`,this.options.formatOut);return this._updateFormatOut(`dz`)}function N(e){if(!i.plainObject(e))throw i.invalidParameterError(`options`,`object`,e);if(i.integer(e.seconds)&&i.inRange(e.seconds,0,3600))this.options.timeoutSeconds=e.seconds;else throw i.invalidParameterError(`seconds`,`integer between 0 and 3600`,e.seconds);return this}function P(e,t){return i.object(t)&&t.force===!1||(this.options.formatOut=e),this}function F(e,t){if(i.bool(t))this.options[e]=t;else throw i.invalidParameterError(e,`boolean`,t)}function I(){if(!this.options.streamOut){this.options.streamOut=!0;let e=Error();this._pipeline(void 0,e)}}function L(e,t){return typeof e==`function`?(this._isStreamInput()?this.on(`finish`,()=>{this._flattenBufferIn(),a.pipeline(this.options,(n,r,a)=>{n?e(i.nativeError(n,t)):e(null,r,a)})}):a.pipeline(this.options,(n,r,a)=>{n?e(i.nativeError(n,t)):e(null,r,a)}),this):this.options.streamOut?(this._isStreamInput()?(this.once(`finish`,()=>{this._flattenBufferIn(),a.pipeline(this.options,(e,n,r)=>{e?this.emit(`error`,i.nativeError(e,t)):(this.emit(`info`,r),this.push(n)),this.push(null),this.on(`end`,()=>this.emit(`close`))})}),this.streamInFinished&&this.emit(`finish`)):a.pipeline(this.options,(e,n,r)=>{e?this.emit(`error`,i.nativeError(e,t)):(this.emit(`info`,r),this.push(n)),this.push(null),this.on(`end`,()=>this.emit(`close`))}),this):this._isStreamInput()?new Promise((e,n)=>{this.once(`finish`,()=>{this._flattenBufferIn(),a.pipeline(this.options,(r,a,o)=>{r?n(i.nativeError(r,t)):this.options.resolveWithObject?e({data:a,info:o}):e(a)})})}):new Promise((e,n)=>{a.pipeline(this.options,(r,a,o)=>{r?n(i.nativeError(r,t)):this.options.resolveWithObject?e({data:a,info:o}):e(a)})})}n.exports=function(e){Object.assign(e.prototype,{toFile:u,toBuffer:d,keepExif:p,withExif:m,withExifMerge:h,keepIccProfile:g,withIccProfile:_,keepMetadata:v,withMetadata:y,toFormat:b,jpeg:x,jp2:T,png:S,webp:C,tiff:D,avif:O,heif:k,jxl:A,gif:w,raw:j,tile:M,timeout:N,_updateFormatOut:P,_setBooleanOption:F,_read:I,_pipeline:L})}})),re=a(((n,r)=>{var i=t(`node:events`),a=d(),o=f(),{runtimePlatformArch:s}=V(),c=H(),l=s(),u=c.libvipsVersion(),m=c.format();m.heif.output.alias=[`avif`,`heic`],m.jpeg.output.alias=[`jpe`,`jpg`],m.tiff.output.alias=[`tif`],m.jp2k.output.alias=[`j2c`,`j2k`,`jp2`,`jpx`];var h={nearest:`nearest`,bilinear:`bilinear`,bicubic:`bicubic`,locallyBoundedBicubic:`lbb`,nohalo:`nohalo`,vertexSplitQuadraticBasisSpline:`vsqbs`},g={vips:u.semver};if(!u.isGlobal)if(u.isWasm)try{g=t(`@img/sharp-wasm32/versions`)}catch{}else try{g=t(`@img/sharp-${l}/versions`)}catch{try{g=t(`@img/sharp-libvips-${l}/versions`)}catch{}}g.sharp=(B(),e(p).default).version,g.heif&&m.heif&&(m.heif.input.fileSuffix=[`.avif`],m.heif.output.alias=[`avif`]);function _(e){return o.bool(e)?e?c.cache(50,20,100):c.cache(0,0,0):o.object(e)?c.cache(e.memory,e.files,e.items):c.cache()}_(!0);function v(e){return c.concurrency(o.integer(e)?e:null)}a.familySync()===a.GLIBC&&!c._isUsingJemalloc()?c.concurrency(1):a.familySync()===a.MUSL&&c.concurrency()===1024&&c.concurrency(t(`node:os`).availableParallelism());var y=new i.EventEmitter;function b(){return c.counters()}function x(e){return c.simd(o.bool(e)?e:null)}function S(e){if(o.object(e))if(Array.isArray(e.operation)&&e.operation.every(o.string))c.block(e.operation,!0);else throw o.invalidParameterError(`operation`,`Array<string>`,e.operation);else throw o.invalidParameterError(`options`,`object`,e)}function C(e){if(o.object(e))if(Array.isArray(e.operation)&&e.operation.every(o.string))c.block(e.operation,!1);else throw o.invalidParameterError(`operation`,`Array<string>`,e.operation);else throw o.invalidParameterError(`options`,`object`,e)}r.exports=function(e){e.cache=_,e.concurrency=v,e.counters=b,e.simd=x,e.format=m,e.interpolators=h,e.versions=g,e.queue=y,e.block=S,e.unblock=C}})),ie=a(((e,t)=>{var n=U();J()(n),Y()(n),X()(n),Z()(n),ee()(n),te()(n),ne()(n),re()(n),t.exports=n})),Q,$;n((()=>{Q=r(ie(),1),$=Q.default}))();export{$ as default,$ as sharp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,t}from"./src-BJz1KAd_.js";t();export{e as createClaudeForChromeMcpServer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-DR8-3Aex.js";import{b as n,n as r,t as i,x as a}from"./esm-vIn-YV_h.js";import{t as o}from"./src-C5yhFG0C.js";var s=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.OTLPLogExporter=void 0;var s=o(),c=(r(),e(i)),l=(a(),e(n));t.OTLPLogExporter=class extends l.OTLPExporterBase{constructor(e={}){super((0,s.createOtlpGrpcExportDelegate)((0,s.convertLegacyOtlpGrpcOptions)(e,`LOGS`),c.ProtobufLogsSerializer,`LogsExportService`,`/opentelemetry.proto.collector.logs.v1.LogsService/Export`))}}})),c=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.OTLPLogExporter=void 0;var t=s();Object.defineProperty(e,`OTLPLogExporter`,{enumerable:!0,get:function(){return t.OTLPLogExporter}})}));export default c();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-DR8-3Aex.js";import{b as n,n as r,t as i,x as a}from"./esm-vIn-YV_h.js";import{t as o}from"./src-C5yhFG0C.js";var s=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.OTLPTraceExporter=void 0;var s=o(),c=(r(),e(i)),l=(a(),e(n));t.OTLPTraceExporter=class extends l.OTLPExporterBase{constructor(e={}){super((0,s.createOtlpGrpcExportDelegate)((0,s.convertLegacyOtlpGrpcOptions)(e,`TRACES`),c.ProtobufTraceSerializer,`TraceExportService`,`/opentelemetry.proto.collector.trace.v1.TraceService/Export`))}}})),c=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.OTLPTraceExporter=void 0;var t=s();Object.defineProperty(e,`OTLPTraceExporter`,{enumerable:!0,get:function(){return t.OTLPTraceExporter}})}));export default c();export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,t}from"./src-x7u_sB6m.js";t();export{e as prewarm};
|