@mcpjam/inspector 3.27.0 → 3.27.1
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/client/assets/{CaniuseCapabilityPage-CXmikV_v.js → CaniuseCapabilityPage-CrC-cTZL.js} +4 -4
- package/dist/client/assets/{CaniuseLoadingScreen-CISUL_K4.js → CaniuseLoadingScreen-DFga82Px.js} +2 -2
- package/dist/client/assets/{PosthogUtils-DE_PkwDN.js → PosthogUtils-BAwbC5iX.js} +2 -2
- package/dist/client/assets/{PosthogUtils-E_cG1Twh.js → PosthogUtils-C6QzDx66.js} +1 -1
- package/dist/client/assets/{access-link-C0MWhbv8.js → access-link-BJMsYDmK.js} +2 -2
- package/dist/client/assets/{app-bootstrap-DfSpCiag.js → app-bootstrap-DzzSTL6f.js} +328 -328
- package/dist/client/assets/{app-navigation-BQGUR9cb.js → app-navigation-CTBnrg26.js} +2 -2
- package/dist/client/assets/{bundle-mjs-DKP7sq7T.js → bundle-mjs-BGe1waGK.js} +2 -2
- package/dist/client/assets/{caniuse-bootstrap-D6d1Susz.js → caniuse-bootstrap-C-sKeXoq.js} +3 -3
- package/dist/client/assets/{chunk-D32TOXHM-D2CUPCH8.js → chunk-D32TOXHM-C-gMffNp.js} +5 -5
- package/dist/client/assets/{dead-clicks-autocapture-DvbdThCp.js → dead-clicks-autocapture-Bf2yz9Zr.js} +2 -2
- package/dist/client/assets/{error-reporting-CJClTLWK.js → error-reporting-C7685g3J.js} +2 -2
- package/dist/client/assets/{error-reporting-B_hxqtsN.js → error-reporting-DmYc69Ih.js} +1 -1
- package/dist/client/assets/{exception-autocapture-CkcPU7XW.js → exception-autocapture-C6yGegF5.js} +2 -2
- package/dist/client/assets/{feature-flags-BUIQpHKT.js → feature-flags-Cbn8gAeC.js} +3 -3
- package/dist/client/assets/{first-run-oauth-return-l9GCZrqg.js → first-run-oauth-return-CFW2tqzu.js} +2 -2
- package/dist/client/assets/{highlighted-body-KQOG7T2V-uT92T9zL.js → highlighted-body-KQOG7T2V-BufAIVu0.js} +2 -2
- package/dist/client/assets/{index-ByP2kceG.js → index-CCQWRMU8.js} +3 -3
- package/dist/client/assets/{jszip.min-C5LLiUXa.js → jszip.min-C6ASC0Lj.js} +2 -2
- package/dist/client/assets/{mcp-init-BIoRq6yl.js → mcp-init-BWmQoGiF.js} +3 -3
- package/dist/client/assets/{mermaid-MCJ5UELQ-BCP5Oj92.js → mermaid-MCJ5UELQ-84PBltPS.js} +1 -1
- package/dist/client/assets/{module-Wq_OenZL.js → module-BA6blRdw.js} +2 -2
- package/dist/client/assets/{module-D3s7YCoh.js → module-DovF9UUB.js} +1 -1
- package/dist/client/assets/posthog-bundled-extensions-Cs4q3GVP.js +3 -0
- package/dist/client/assets/{posthog-bundled-extensions-BIjySVP-.js → posthog-bundled-extensions-_dhL7VQK.js} +1 -1
- package/dist/client/assets/{posthog-recorder-DTh3r-Ko.js → posthog-recorder-BIqCIRJB.js} +2 -2
- package/dist/client/assets/{preload-helper-BN6vHXe1.js → preload-helper-CQSqs-Ur.js} +1 -1
- package/dist/client/assets/{project-route-CjZmQY5n.js → project-route-B8ycjI6Q.js} +2 -2
- package/dist/client/assets/{react-dom-DtL8G3gn.js → react-dom-DXowvrFG.js} +2 -2
- package/dist/client/assets/{rolldown-runtime-KtSMB9jY.js → rolldown-runtime-BlpueFg6.js} +1 -1
- package/dist/client/assets/{server-feature-flags-wgvQSqd5.js → server-feature-flags-CFqtsG2I.js} +2 -2
- package/dist/client/assets/{server-feature-flags-BBH-SYjw.js → server-feature-flags-yy8cq8x7.js} +1 -1
- package/dist/client/assets/{session-revoked-HpzxsCkX.js → session-revoked-BJat-_na.js} +2 -2
- package/dist/client/assets/{surveys-BYfLymeD.js → surveys-DSRAF-TV.js} +2 -2
- package/dist/client/assets/telemetry-files-58cade72c6da8102.js +1 -0
- package/dist/client/assets/{trace-timeline-BFtz0cI8.js → trace-timeline-BdQMiVa6.js} +1 -1
- package/dist/client/assets/{trace-timeline-CRxEZYCU.js → trace-timeline-CLTmhMpA.js} +2 -2
- package/dist/client/assets/{web-vitals-C1IvwuFq.js → web-vitals-BGMXZEXu.js} +2 -2
- package/dist/client/index.html +12 -12
- package/dist/server/harness-install-cli.js +3 -3
- package/dist/server/index.js +2 -2
- package/package.json +2 -2
- package/dist/client/assets/posthog-bundled-extensions-CQjB_Dfr.js +0 -3
- package/dist/client/assets/telemetry-files-5758eea65e761de9.js +0 -1
package/dist/client/assets/{first-run-oauth-return-l9GCZrqg.js → first-run-oauth-return-CFW2tqzu.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as de}from"./rolldown-runtime-KtSMB9jY.js";import{C as pe,E as J,N as he,T as q}from"./project-route-CjZmQY5n.js";import{n as me}from"./react-dom-DtL8G3gn.js";import{r as fe}from"./bundle-mjs-DKP7sq7T.js";import{At as _e,Dt as ge,I as Ie,V as I,j as Ae}from"./app-navigation-BQGUR9cb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.27.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2682405b-f168-4835-87ae-8d89da7ff28c",e._sentryDebugIdIdentifier="sentry-dbid-2682405b-f168-4835-87ae-8d89da7ff28c")}catch{}})();var Ee=["app_load/guest_session_failed","app_load/session_refresh_failed","app_load/guest_session_refused","app_load/auth_pending","app_load/actor_pending","app_load/user_setup_pending"],At=3e4,Et=2e4;function Tt(e){return e.guestRefused?"app_load/guest_session_refused":e.sessionRefreshFailed?e.signedIn?"app_load/session_refresh_failed":"app_load/guest_session_failed":e.authenticated?e.identityKnown?"app_load/user_setup_pending":"app_load/actor_pending":"app_load/auth_pending"}function Nt(e,t,n,r,s){return{level:e,code:t,title:n.slice(0,160),description:r.slice(0,1e3),...s?{details:s}:{}}}var R={SIGN_IN_EXPIRED:"Your sign-in expired before this finished, so it wasn't sent. Retry once your session reconnects, or sign in again.",UNAUTHORIZED:"Your sign-in expired before this finished, so it wasn't sent. Retry once your session reconnects, or sign in again.",RESOURCE_DENIED:"The App asked for a file it wasn't given, or its access to that file has ended. Apps can only read and write the file they were opened with.",RESOURCE_INVALID:"The App's file request was malformed (for example a bad URI, both text and blob in one write, or invalid base64).",RESOURCE_NOT_TEXT:`This file isn't text. Request representation: "blob" or handle both text and blob.`,RESOURCE_OUTCOME_UNKNOWN:"The file write may or may not have been saved (the connection dropped mid-write). Read the file again before retrying.",RESOURCE_READ_REQUIRED:"MCPJam gave this App access to its file again (the server restarted, or its hold on the file lapsed), so this save was refused. The App's unsaved changes are still in the viewer: read the file again (resources/read), then save against the ETag it returns.",RESOURCE_TOO_LARGE:"The file is larger than the host allows for Apps.",RESOURCE_UNSUPPORTED:"This file source doesn't support that operation.",RESOURCE_WRITE_UNAVAILABLE:"This Computer can't save the file safely. Copy your changes, then reconnect the Computer before trying again.",PLUGIN_FILE_TARGETS_NOT_DECLARED:`This client lists no files for this server. Add them under the client's mcpProfile.extensions["mcpjam/plugin-file-targets"] (a root folder and each file's relative path).`,PLUGIN_LOCAL_FILES_NOT_CONFIGURED:"Opening local files is off on this MCPJam install. Set MCPJAM_PLUGIN_LOCAL_FILE_ROOTS to a JSON list of allowed folders, each {actorId, projectId, serverId, root}, then restart MCPJam.",PLUGIN_LOCAL_FILE_ROOTS_INVALID:"MCPJAM_PLUGIN_LOCAL_FILE_ROOTS isn't valid JSON. It must be a list of {actorId, projectId, serverId, root} entries.",PLUGIN_LOCAL_FILE_ROOT_NOT_ALLOWED:"This server's file folder isn't allowed for you. Add an entry with your actor ID, this project, this server and the folder to MCPJAM_PLUGIN_LOCAL_FILE_ROOTS, then restart MCPJam.",PLUGIN_FILES_COMPUTER_REQUIRED:"On the cloud, plugin files live on the project's Computer. Attach the Computer to this client and run the server there to open or save its files.",PLUGIN_COMPUTER_FILE_ROOT_INVALID:`On the Computer, file target roots must be absolute folders under /home/user. Fix the root in the client's "mcpjam/plugin-file-targets".`,PLUGIN_FILES_REMOTE_SERVER:"This server runs remotely over HTTP, so it shares no disk with MCPJam or your Computer. Its local file paths can't be opened or saved here.",PLUGIN_COMPUTER_UNAVAILABLE:"The project's Computer is asleep or unreachable, so its files can't be opened or saved right now. Send a message in chat to wake it, then try again.",PLUGIN_FILE_READ_ONLY:`This file is read-only. Only files listed in the client's "mcpjam/plugin-file-targets" (in an allowed local folder, or on the project's Computer on the cloud) can be saved.`,PLUGIN_LOCAL_FILE_NOT_LISTED:`That path isn't one of the files listed for this server in the client's "mcpjam/plugin-file-targets".`,INSTANCE_UNAVAILABLE:"This App session has ended (it was closed, expired or the server restarted). Reopen the App.",INSTANCE_DENIED:"This App isn't allowed to do that here. It may belong to another chat, client or user, or the request doesn't match how the App was opened.",INSTANCE_LIMIT:"Too many Apps are open. Close some Apps and try again.",INSTANCE_STORE_UNAVAILABLE:"Apps can't be opened because the App session store isn't available on this MCPJam server.",INSTANCE_RENEWAL_UNAVAILABLE:"This MCPJam server can't extend App sessions yet. The App keeps working until its session expires; reopen it afterwards.",INSTANCE_HOST_CHANGED:"The client's settings changed after this App opened. Reopen the App to use the new settings.",INSTANCE_SERVER_CHANGED:"The server's saved setup changed after this App opened. Reopen the App.",INSTANCE_CONNECTION_CHANGED:"The server's connection or credentials changed after this App opened. Reopen the App.",INSTANCE_TOOL_UNAVAILABLE:"The server no longer lists the tool this App needs.",INSTANCE_UI_UNAVAILABLE:"The server didn't return a usable App UI (missing ui:// resource, wrong MIME type, or larger than 5 MB).",INSTANCE_CONTEXT_UNAVAILABLE:"Model context isn't available for this App (the client has it turned off, or the App has closed).",INSTANCE_CONTEXT_SEQUENCE_DENIED:"A model-context update arrived out of order and was ignored. Send updates one at a time.",INSTANCE_CONTEXT_REMOVAL_INVALID:"That context removal didn't match this App's current context, so nothing was removed. Remove it again from the composer.",INSTANCE_CONTEXT_TOO_LARGE:"The App's context is too large to keep, so its last accepted context stays. Send less context.",INVALID_INSTANCE_CONTEXT:"MCPJam couldn't store the App's context, so its last accepted context stays. Send less context and try again.",INSTANCE_CONTEXT_RATE_LIMITED:"The App updated its context too often, so this update wasn't kept and its last accepted context stays. Send updates less often.",PLUGIN_CONTEXT_TOO_LARGE:"This context update is over this client's App context budget (its modelContextPolicy), so the App's last accepted context stays. Send less context.",PLUGIN_CONTEXT_TURN_TOO_LARGE:"The Apps in this chat hold more context than this client's modelContextPolicy sends in one turn. Remove an App's context from the composer, then send again.",PLUGIN_CONTEXT_MEMORY_LIMIT:"MCPJam is holding as much App context for you as it can, so this update wasn't kept. Close Apps you no longer need or remove their context, then try again.",INSTANCE_CONTEXT_HELD:"You removed this App's context from the chat, so context the App sends on its own isn't attached. Use the App (for example its attach button) to attach it again.",INSTANCE_MESSAGE_UNAVAILABLE:"This App can't send chat messages (the client has messages turned off).",INSTANCE_REQUEST_BUSY:"The App is already running another request. Wait for it to finish.",ACTIVATION_SCHEMA_INVALID:"The entrypoint tool's input schema doesn't accept the arguments the host must send to open it.",PLUGIN_ENTRYPOINT_UNOPENABLE:"This client can't open an entry point whose tool name has two underscores or two dots in a row, or a dot next to an underscore. Rename the tool.",ACTIVATION_BINDING_CHANGED:"This App was opened with different settings before. Close it and open it again.",INVOCATION_OUTCOME_UNKNOWN:"MCPJam couldn't confirm the tool call's outcome. It may have run, so it won't be retried automatically. Check the server before trying again.",INVOCATION_DENIED:"The tool call isn't allowed for this App.",INVOCATION_ID_REUSED:"The App reused a request ID for a different tool call.",INVOCATION_LIMIT:"This App made too many tool calls in its session. Reopen the App.",INVOCATION_FAILED:"The tool call failed before it reached the server.",INVOCATION_RESULT_EXPIRED:"This tool call already ran, but its result is no longer held in memory, so it can't be returned again. The call is not repeated.",TOOL_CALL_FAILED:"The server returned an error for this tool call. See the server's message for details.",APPROVAL_DENIED:"The tool call wasn't approved.",APPROVAL_UNAVAILABLE:"Tool approval isn't available right now.",AUTHORIZATION_CHANGED:"Access changed while the tool call was running, so it was stopped.",TOOL_VISIBILITY_DENIED:`This tool isn't visible to Apps. Add "app" to its _meta.ui.visibility.`,TOOL_POLICY_DENIED:"The client's tool policy blocks this tool.",TOOL_MENTION_DECLARATION_DENIED:`This tool isn't declared as a mention search tool (_meta["openai/extensions"]["mentions/search"]).`,PLUGIN_EXTENSION_DISABLED:"This client has that OpenAI plugin extension turned off. Turn it on in the client's Apps settings (OpenAI plugin extensions).",PLUGIN_WORKSPACE_DENIED:"Plugin extensions aren't available for this project or account.",PLUGIN_WORKSPACE_CANCELLED:"The request was cancelled.",PLUGIN_WORKSPACE_UNREACHABLE:"MCPJam couldn't reach its backend to check plugin access (a network problem or timeout). Check your connection and try again.",PLUGIN_WORKSPACE_SIGN_IN_EXPIRED:"Your sign-in lapsed while MCPJam was checking plugin access. Retry once your session reconnects, or sign in again.",PLUGIN_INSTANCE_CANCELLED:"The request was cancelled.",INVALID_PLUGIN_INSTANCE_REQUEST:"The request was malformed.",PLUGIN_DEEP_LINK_INVALID:"This isn't a valid plugin link. Plugin links look like chatgpt://plugins/<plugin>/app/<tool>?path=/page (the path must start with / and have no #fragment).",PLUGIN_DEEP_LINK_SCHEME_UNSUPPORTED:"This client doesn't open links with that scheme. The Codex client uses codex://; the ChatGPT client uses chatgpt:// or https://chatgpt.com.",PLUGIN_DEEP_LINK_PLUGIN_UNKNOWN:"No enabled plugin or server matches the link's plugin ID. Use the plugin's manifest name, its installation ID, or server-<saved server ID> for a plain server.",PLUGIN_DEEP_LINK_MARKETPLACE_MISMATCH:"The link's @marketplace doesn't match the marketplace this plugin was installed from.",PLUGIN_DEEP_LINK_AMBIGUOUS:"More than one installed plugin matches this link. Add @<marketplace> to the plugin ID, or use the installation ID.",PLUGIN_DEEP_LINK_TOOL_UNAVAILABLE:"The plugin has no global App entrypoint with the link's tool name.",PLUGIN_DEEP_LINK_NAMESPACE_UNAVAILABLE:"Deep links can only open a plugin's global App.",PLUGIN_FORM_UNSUPPORTED:"This form uses a schema feature the client doesn't support.",PLUGIN_FORM_UNAVAILABLE:"The form couldn't be loaded.",PLUGIN_FORM_SCHEMA_MISSING:`This form keeps its fields in _meta["openai/elicitation"].requestedSchema, but that schema is missing or isn't an object schema, so MCPJam refused the form rather than show it empty. Send the full form schema there (OpenAI's requestFormInput does).`,PLUGIN_FORM_TOO_LARGE:"The form is too large (too many fields, options or bytes).",PLUGIN_FORM_PATTERN_UNSUPPORTED:"A field's pattern isn't a supported regular expression.",PLUGIN_FORM_WEB_UPLOAD_UNSUPPORTED:"Forms opened from an App can only ask for file uploads when the client's File resources extension is on. Turn it on in the client's plugin extensions, or remove upload options.",PLUGIN_FORM_RESOURCE_SERVICE_UNAVAILABLE:"This form asks for file or folder uploads, which this MCPJam server can't provide (configure a local folder, or use a local install).",PLUGIN_FORM_PREVIEW_SERVICE_UNAVAILABLE:"This client can't render that kind of preview.",PLUGIN_FORM_PREVIEW_INVALID:`An option's _meta["openai/preview"] has no valid target.`,PLUGIN_FORMS_DISABLED:"This client has Forms turned off, so the form takes no answers or uploads. A form that was already open ends as cancelled when it's submitted, and its answer isn't sent to the server. Turn Forms on in the client's OpenAI plugin extensions to answer forms.",FORM_SOURCE_UNAVAILABLE:"This form has expired or was already answered.",FORM_PREVIEW_UNAVAILABLE:"That preview isn't available for this form.",PLUGIN_FORM_PREVIEW_TIMEOUT:"The preview didn't open within 30 seconds, so MCPJam stopped waiting. The form and its answers are unchanged. Try again; if it keeps happening, check that the server answers the preview's resource read or preview tool promptly.",PLUGIN_FORM_PREVIEW_FAILED:"The preview couldn't be opened. The form and its answers are unchanged; try again.",PLUGIN_FORM_SUBMIT_TIMEOUT:"MCPJam didn't confirm the answer within 30 seconds, so it stopped waiting. The answers are still in the form; send them again. A repeat of an answer that did arrive is ignored.",PLUGIN_FORM_SUBMIT_FAILED:"The answer couldn't be sent. The answers are still in the form; send them again.",PLUGIN_FORM_DESTINATION_TIMEOUT:"MCPJam couldn't confirm where this form's files would be uploaded within 30 seconds, so it stopped waiting. Nothing was uploaded and the request is still open. Retry, or cancel the request; if it keeps happening, check that the server is still connected and that you're still signed in.",PLUGIN_FORM_DESTINATION_FAILED:"MCPJam couldn't check where this form's files would be uploaded. Nothing was uploaded and the request is still open; retry, or cancel the request.",PLUGIN_SETTINGS_TOOL_UNAVAILABLE:"The server's openai/settings capability names a read or update tool that tools/list doesn't include.",PLUGIN_SETTINGS_OUTPUT_SCHEMA_REQUIRED:"Both settings tools must declare an outputSchema.",PLUGIN_SETTINGS_READ_ARGUMENTS_INVALID:"The settings read tool must accept an empty arguments object ({}).",PLUGIN_SETTINGS_UNSUPPORTED_SCHEMA:"A settings field uses an unsupported type. Settings support boolean, string (with optional enum), number and integer.",PLUGIN_SETTINGS_INVALID_RESULT:"The settings read tool returned a result that doesn't match its outputSchema, or a field has no value.",PLUGIN_SETTINGS_TOOL_SCHEMA_INVALID:"A settings tool's schema couldn't be parsed.",PLUGIN_SETTINGS_INVALID_CAPABILITY:"The server's openai/settings capability is malformed.",PLUGIN_SETTINGS_AMBIGUOUS_CAPABILITY:"The server declares openai/settings in more than one place with different values.",PLUGIN_SETTINGS_SAVE_FAILED:"The server couldn't save the settings.",PLUGIN_SETTINGS_SCHEMA_CHANGED:"The server's settings changed. Reload settings and try again.",PLUGIN_SETTINGS_REFRESH_REQUIRED:"Settings changed on the server. Reload settings.",PLUGIN_SETTINGS_READ_NOT_READ_ONLY:"The settings read tool should be marked read-only (annotations.readOnlyHint: true).",SETTINGS_UNAVAILABLE:"Settings aren't available for this server right now.",PLUGIN_MENTION_SEARCH_FAILED:"The server's mention search tool returned an error.",PLUGIN_MENTION_RESULT_TOO_LARGE:"The mention search result is too large.",PLUGIN_FILE_READ_TIMEOUT:"The file didn't load within 12 seconds, so MCPJam stopped waiting. Reload the file in the viewer (or reopen it) to try again. If it keeps happening, check that the server answers resources/read promptly, and close Apps you no longer need: each open file viewer keeps a connection to MCPJam.",PLUGIN_FILE_WATCH_TIMEOUT:"MCPJam couldn't start watching this file for changes within 12 seconds, so it stopped waiting. The file can still be read; changes made elsewhere won't refresh the viewer until it subscribes again or the file is reopened.",MODEL_APP_UNAVAILABLE:"This App from the chat is no longer available.",MODEL_FORM_UNAVAILABLE:"This form is no longer available, so your answer wasn't sent. Ask the model to run the tool again.",FORM_NOT_SAVED:"MCPJam couldn't save this form, so it wasn't shown and the tool call ended. Ask the model to run the tool again.",FORM_STORE_UNAVAILABLE:"MCPJam couldn't load this form's saved state, so nothing was sent. Try again in a moment.",CONTINUATION_EXPIRED:"This form expired before it was answered, so the tool call did not finish. Run it again.",CONTINUATION_FAILED:"This form is closed and cannot be submitted. Start the tool call again.",CONTINUATION_CANCELLED:"This form was cancelled, so the tool call did not finish.",CONTINUATION_CONNECTION_UNAVAILABLE:"The server disconnected before the answer could be sent. Reconnect and send it again.",CONTINUATION_DENIED:"This form answer doesn't match the server's current request.",CONTINUATION_PROTOCOL_DENIED:"The server's MCP version doesn't support this form request."},Te=[["PLUGIN_DEEP_LINK_","This plugin link couldn't be opened."],["PLUGIN_SETTINGS_","The server's settings couldn't be used."],["PLUGIN_FORM_","This form couldn't be shown."],["RESOURCE_","The App's file request couldn't be completed."],["INSTANCE_CONTEXT_","The App's model context couldn't be updated."],["INSTANCE_","This App session couldn't complete the request. Reopen the App."],["INVOCATION_","The tool call couldn't be completed."],["CONTINUATION_","The form answer couldn't be delivered to the server."]];function St(e){if(typeof e=="string")return Object.hasOwn(R,e)?R[e]:Te.find(([t])=>e.startsWith(t))?.[1]}var Ne={location:["host_workspace"],operation:["form_response","settings_save","app_message"],host_profile:["chatgpt","codex","unknown"],outcome:["success","failure","declined","cancelled"],deployment:["hosted","self_hosted"],source:["client"]},Se=["none","refused","other",...Object.keys(R)],V=["local","custom"],we=["callback_https_required","callback_auth_required","callback_connection_refused","callback_timeout","callback_tls_error","callback_http_4xx","callback_http_5xx","callback_challenge_failed","callback_error"],H="x-mcpjam-telemetry-policy",P={location:["header"],trigger:["conformance","oauth","xaa"],reason:["completed","return_visit"],has_advice:"boolean"},wt=1e6,Ot={extension_launch_completed:{location:["host_workspace"],launch_kind:["thread","global","file","quick-action","settings"],host_profile:["chatgpt","codex"],outcome:["success","failure"],failure_stage:["none","execution","rendering","timeout","unknown"],deployment:["hosted","self_hosted"],source:["client"]},extension_operation_completed:{...Ne,error_code:Se},app_launched:{location:["app"],is_authenticated:"boolean",platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"],launch_trigger:["immediate","grant","timeout","hidden"],policy_wait_ms:"count"},app_startup_started:{location:["app"],platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"]},app_startup_blocked:{location:["app"],platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"],stage:Ee,trigger:["failure","deadline"],elapsed_ms:"count"},send_message:{location:["chat_tab","ui_playground"],multi_model_enabled:"boolean",multi_model_count:"count"},edit_message:{location:["chat_tab","ui_playground"]},execute_tool:{location:["parameters_panel","tools_sidebar"],as_task:"boolean"},eval_suite_run_started:{location:["ci_evals_tab"],num_test_cases:"count",num_tests:"count",num_models:"count",replay:"boolean"},conformance_run_triggered:{location:["conformance_tab","score_runner","compat_page","compat_detail_modal"],run_source:["ui"]},local_webhook_receiver_selected:{receiver_kind:V},local_webhook_receiver_failed:{receiver_kind:V,failure_category:we},conformance_tab_viewed:{location:["conformance_tab"]},conformance_run_completed:{location:["conformance_tab"],run_source:["ui"],outcome:["passed","failed","incomplete"],has_advice:"boolean",scored:"boolean"},github_star_prompt_shown:P,github_star_prompt_clicked:{...P,cta:["primary","star_button"]},github_star_prompt_dismissed:{...P,close_reason:["not_now","dismiss"]},github_star_button_clicked:{location:["header","settings"]},$pageview:{},$pageleave:{}},_;function Oe(){if(_)return _;const e=a=>{let c;try{c=new URL(a,window.location.href)}catch{return!1}return c.origin===window.location.origin&&/^\/(tlm|relay)(\/|$)/.test(c.pathname)},t=he,n=window.fetch,r=globalThis.fetch,s=(a,c)=>{const x=a instanceof Request?a.url:String(a);if(!e(x))return n.call(window,a,c);const y=new Headers(c?.headers??(a instanceof Request?a.headers:void 0));return y.set(H,t()),n.call(window,a,{...c,headers:y})};window.fetch=s,globalThis.fetch=s;const o=XMLHttpRequest.prototype,i=o.open,f=o.send,p=o.setRequestHeader,O=new WeakMap;return o.open=function(a,c,x=!0,y,ht){return O.set(this,e(String(c))),Reflect.apply(i,this,arguments)},o.setRequestHeader=function(a,c){if(!(O.get(this)&&a.toLowerCase()==="x-mcpjam-telemetry-policy"))return p.call(this,a,c)},o.send=function(a){return O.get(this)&&p.call(this,H,t()),f.call(this,a)},_=()=>{window.fetch=n,globalThis.fetch=r,o.open=i,o.send=f,o.setRequestHeader=p,_=void 0},_}Oe();var T="mcpjam_promo_intent",ye=18e5,l,Pe=/^[a-z0-9-]{1,80}$/;function N(e){return typeof e=="string"&&Pe.test(e)?e:null}function z(e=window.location.search){return N(new URLSearchParams(e).get("campaign"))??"agntcon-2026"}function L(){l=null;try{return sessionStorage.removeItem(T),!0}catch{return console.debug("Promo intent storage unavailable"),!1}}function ve(e,t=Date.now(),n=z()){l={code:e,storedAt:t,campaign:n};try{return sessionStorage.setItem(T,JSON.stringify(l)),!0}catch{return console.debug("Promo intent storage unavailable"),!1}}function Re(e=Date.now(),t=z()){try{if(l===void 0){const n=JSON.parse(sessionStorage.getItem(T)??"null");n&&typeof n=="object"&&"code"in n&&"storedAt"in n&&typeof n.code=="string"&&n.code.length<=64&&typeof n.storedAt=="number"&&(l={code:n.code,storedAt:n.storedAt,campaign:"campaign"in n&&N(n.campaign)||"agntcon-2026"})}}catch{console.debug("Promo intent storage unavailable")}return!l||e<l.storedAt||e-l.storedAt>=ye?(L(),""):l.campaign===t?l.code:""}function C(e,t=!1){const n=new URLSearchParams;t&&n.set("manual","1"),e&&e!=="agntcon-2026"&&n.set("campaign",e);const r=n.toString();return r?`/redeem?${r}`:"/redeem"}function yt(e){const t=Re(Date.now(),e);let n=!1;try{n=sessionStorage.getItem(T)===JSON.stringify(l)}catch{console.debug("Promo intent storage unavailable")}return{promoReturn:!0,promoManualEntry:!t||!n,promoCampaign:e}}function Pt(e){return e?.promoReturn!==!0?null:C(N(e.promoCampaign),e.promoManualEntry===!0)}function Le(){if(window.location.pathname.replace(/\/+$/,"")!=="/redeem")return;const e=new URL(window.location.href),t=N(e.searchParams.get("campaign"));if(e.searchParams.get("manual")==="1"){L()&&window.history.replaceState(window.history.state,"",C(t));return}const n=e.searchParams.get("code")??new URLSearchParams(e.hash.slice(1)).get("code");n!==null&&(n.length<=64?ve(n,Date.now(),t??"agntcon-2026"):L(),window.history.replaceState(window.history.state,"",C(t)))}function vt(){const e=()=>{Le(),window.dispatchEvent(new Event("promo-intent-changed"))};window.addEventListener("hashchange",e),window.addEventListener("popstate",e)}var g="oauth_pending";var Ce="invalid_request",be="The authorization response was no longer available after the page reloaded. Start the connection again.",u=null,F=0;function b(){return F+=1,`inbox:${F}`}function U(e){return e==="/oauth/callback"||e.startsWith("/oauth/callback/")}function W(e){try{return new URLSearchParams(e).get(g)==="1"}catch{return!1}}function $(e){return`${e}?${g}=1`}var Ue=/token|secret|code|key|sig|cred|pass|state|session|auth|ticket|assertion/i,De=/^[A-Za-z][\w-]{0,63}$/;function Me(e){const t=e.startsWith("#")?e.slice(1):e;return t?t.includes("=")?t.split("&").every(n=>{const r=n.split("=",1)[0]??"";try{const s=decodeURIComponent(r);return s!==""&&!Ue.test(s)}catch{return!1}}):De.test(t):!1}function Rt(){if(typeof window>"u")return!1;const{pathname:e,search:t,hash:n}=window.location;if(!U(e))return!1;const r=new URLSearchParams(t),s=r.get(g)==="1";if(r.delete(g),[...r.keys()].length>0)u={pathname:e,params:r.toString(),attempt:b()};else if(s){if(u?.pathname===e)return!0;u={attempt:b(),pathname:e,params:new URLSearchParams({error:Ce,error_description:be}).toString()}}else return!1;const o=n&&Me(n)?n:"";try{history.replaceState(history.state,"",`${$(e)}${o}`)}catch{}return!0}function Lt(e,t="/oauth/callback"){const n=new URLSearchParams(e);return n.delete(g),u={pathname:t,params:n.toString(),attempt:b()},$(t)}function S(){if(typeof window>"u")return null;const{pathname:e,search:t}=window.location;if(!U(e))return null;if(W(t))return u&&u.pathname===e?new URLSearchParams(u.params):null;const n=new URLSearchParams(t);return[...n.keys()].length>0?n:null}function ke(){if(typeof window>"u")return null;const{pathname:e,search:t}=window.location;return U(e)?W(t)?u&&u.pathname===e?u.attempt:null:t&&t!=="?"?`url:${t}`:null:null}function Ct(){const e=S();return!!(e&&(e.has("code")||e.has("error")))}function bt(e){if(e!==void 0&&e!==ke())return null;const t=S();return u=null,t}function Ut(){if(window.isElectron||window.location.pathname!=="/oauth/callback")return null;const e=S();if(!e||!e.get("code")&&!e.get("error")||!e.get("state")?.startsWith("electron_mcp:"))return null;const t=new URL("mcpjam://oauth/callback");t.searchParams.set("flow","mcp");for(const[n,r]of e.entries())t.searchParams.append(n,r);return t.toString()}var Ge=de(me(),1),m=fe(),j=new Set;function xe(e,t=window.location){window.isElectron||t.replace(e)}var Ve={redirect:xe};function Dt({returnToElectronUrl:e}){return(0,Ge.useEffect)(()=>{j.has(e)||(j.add(e),Ve.redirect(e))},[e]),(0,m.jsx)("div",{className:"flex min-h-screen items-center justify-center p-4",children:(0,m.jsxs)("div",{className:"w-full max-w-md rounded-md border bg-secondary p-4",children:[(0,m.jsx)("p",{className:"text-sm font-medium",children:"Continue in MCPJam Desktop"}),(0,m.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"MCPJam Desktop should open automatically. If you are back in the browser, please close this page and continue in MCPJam Desktop."}),(0,m.jsxs)("p",{className:"mt-3 text-xs text-muted-foreground",children:["If nothing happened,"," ",(0,m.jsx)("a",{className:"underline",href:e,children:"click here"}),"."]})]})})}function Y(e){return e==="scenario"||e==="project"||e==="score"}var He="Authorization was cancelled. Try again.",D="mcp-hosted-oauth-resume",Fe=6e4;function Mt(e){try{localStorage.setItem(D,JSON.stringify({...e,serverUrl:e.serverUrl??null,errorMessage:e.errorMessage??null,completedAt:Date.now()}))}catch{}}function kt(e){try{const t=localStorage.getItem(D);if(!t)return null;const n=JSON.parse(t);return!n||typeof n!="object"||!Y(n.surface)||typeof n.serverName!="string"||typeof n.completedAt!="number"||Date.now()-n.completedAt>Fe?(v(),null):e&&n.surface!==e?null:{surface:n.surface,serverName:n.serverName,serverUrl:typeof n.serverUrl=="string"?n.serverUrl:null,completedAt:n.completedAt,errorMessage:typeof n.errorMessage=="string"?n.errorMessage:null}}catch{return v(),null}}function v(){localStorage.removeItem(D)}function Gt(e){return e==="launching"||e==="resuming"||e==="verifying"}function xt(e,t){const n=(typeof e=="string"?e:e instanceof Error?e.message:t).replace(/\s+/g," ").trim();if(!n)return t;const r=n.replace(/^Uncaught Error:\s*/i,"").replace(/\s+at\s+(?:async\s+)?[A-Za-z0-9_$./<>-]+(?:\s+\(|$).*/s,"").trim();return r?/\b(cancelled|canceled)\b|user denied|denied the request|access_denied/i.test(r)?He:/missing its oauth url/i.test(r)?"This server needs additional setup before it can be authorized. Try again or contact the owner.":/could not find the access token/i.test(r)?"We couldn't finish connecting this account. Authorize again.":/could not verify access/i.test(r)?"We couldn't confirm access to this account. Authorize again.":/\b(401|403)\b|unauthorized|forbidden|authentication failed|invalid[_\s-]?token|expired token|token expired|non-200 status code|access denied/i.test(r)?"Your authorization expired or was rejected. Authorize again to continue.":/sse error|failed to fetch|network ?error|timeout|timed out|socket hang up|econn/i.test(r)?"We couldn't reach the authorization service. Try again.":/\boauth\b/i.test(r)&&/\b(error|failed|unable|could not)\b/i.test(r)?"Authorization could not be completed. Try again.":r:t}var X=pe("tester-link"),Q=X.pattern.split("/")[1]??"user-testing",je=X.reserved?.[0]??"edit",Z=q(Q),ee=q(je),Vt=new RegExp(`^/${Z}/[^/]+/(?!${ee}/?$)[^/]+/?$`),te=new RegExp(`^/${Z}/[^/?#]+/(?!${ee}(?:[/?#]|$))([^/?#]+)`);function Ht(e){return e===J}function Ft(e){const t=te.exec(e);if(!t||!t[1])return null;const n=t.index+t[0].length,r=n-t[1].length;return`${e.slice(0,r)}${J}${e.slice(n)}`}function Ke(e){const t=e.match(te);if(!t||!t[1])return null;try{return decodeURIComponent(t[1]).trim()||null}catch{return t[1].trim()||null}}var K="https://app.mcpjam.com";function ne(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"server"}function Be(){return typeof window>"u"?K:window.location.protocol==="http:"||window.location.protocol==="https:"?window.location.origin:K}var M="mcpjam_scenario_session_v2",Je="mcp-oauth-scenario-pending",k="mcpjam_scenario_signin_return_path_v1";function jt(e){return`scenario-enabled-optional:${e}`}function qe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.values(e).every(t=>typeof t=="string")}function ze(e){if(!e||typeof e!="object")return;const t=e.surfaces;if(!t||typeof t!="object")return;const n=t.welcome,r=n&&typeof n=="object"&&typeof n.enabled=="boolean"?{enabled:n.enabled,body:typeof n.body=="string"?n.body:""}:void 0,s=t.perTurnFeedback,o=s&&typeof s=="object"&&typeof s.enabled=="boolean"?{enabled:s.enabled,...s.style==="thumbs"?{style:"thumbs"}:{},...A(s,"prompt"),...A(s,"commentPlaceholder"),...A(s,"thanksMessage")}:void 0,i=t.tasks,f=i&&typeof i=="object"?i.items:void 0,p=Array.isArray(f)?{items:We(f)}:void 0;if(!(!r&&!o&&!p))return{surfaces:{...r?{welcome:r}:{},...o?{perTurnFeedback:o}:{},...p?{tasks:p}:{}}}}function We(e){const t=new Set,n=[];for(const r of e){if(!r||typeof r!="object")continue;const s=r.id,o=r.title;typeof s!="string"||s.length===0||typeof o!="string"||o.trim().length===0||t.has(s)||(t.add(s),n.push({id:s,title:o,...A(r,"hint")}))}return n}function A(e,t){const n=e[t];return typeof n=="string"?{[t]:n}:{}}function $e(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Ye(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Xe(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Qe(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Ze(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function et(e){return e==="project_members"?"project_members":e==="anyone_with_link"||e==="any_signed_in_with_link"?"anyone_with_link":"invited_only"}function tt(e){return Ke(e)}function nt(e){if(!e||typeof e!="object")return null;const t=typeof e.scenarioId=="string"?e.scenarioId.trim():"",n=typeof e.accessVersion=="number"&&Number.isFinite(e.accessVersion)?e.accessVersion:null,r=e.payload,s=ge(r?.hostStyle)??(r?.hostStyle==null?_e.id:null);return!t||n===null||!r||typeof r.projectId!="string"||typeof r.scenarioId!="string"||typeof r.name!="string"||s===null||typeof r.modelId!="string"||typeof r.systemPrompt!="string"||typeof r.temperature!="number"||typeof r.requireToolApproval!="boolean"||typeof r.allowGuestAccess!="boolean"||typeof r.viewerIsProjectMember!="boolean"||!Array.isArray(r.servers)?null:{scenarioId:t,accessVersion:n,payload:{projectId:r.projectId,scenarioId:r.scenarioId,name:r.name,description:typeof r.description=="string"?r.description:void 0,hostStyle:s,mode:et(r.mode),...r.requiresSignIn!==void 0?{requiresSignIn:r.requiresSignIn===!0}:{},allowGuestAccess:r.requiresSignIn?!1:r.allowGuestAccess,viewerIsProjectMember:r.viewerIsProjectMember,systemPrompt:r.systemPrompt,modelId:r.modelId,modelReadiness:r.modelReadiness,temperature:r.temperature,requireToolApproval:r.requireToolApproval,modelVisibleMcpToolResults:Ye(r.modelVisibleMcpToolResults),mcpToolResultImageRendering:Xe(r.mcpToolResultImageRendering),servers:r.servers.filter(o=>!!o&&typeof o=="object"&&typeof o.serverId=="string"&&typeof o.serverName=="string").map(o=>({serverId:o.serverId,serverName:o.serverName,useOAuth:!!o.useOAuth,serverUrl:typeof o.serverUrl=="string"?o.serverUrl:null,clientId:typeof o.clientId=="string"?o.clientId:null,oauthScopes:Array.isArray(o.oauthScopes)?o.oauthScopes:null,...typeof o.oauthProtocolMode=="string"?{oauthProtocolMode:o.oauthProtocolMode}:{},...typeof o.oauthProtocolVersion=="string"?{oauthProtocolVersion:o.oauthProtocolVersion}:{},...typeof o.wireProtocolVersion=="string"?{wireProtocolVersion:o.wireProtocolVersion}:{},...typeof o.oauthResourceUrl=="string"?{oauthResourceUrl:o.oauthResourceUrl}:{},...typeof o.hasClientSecret=="boolean"?{hasClientSecret:o.hasClientSecret}:{},...qe(o.oauthCustomHeaders)?{oauthCustomHeaders:o.oauthCustomHeaders}:{},...typeof o.oauthAllowPathScopedIssuer=="boolean"?{oauthAllowPathScopedIssuer:o.oauthAllowPathScopedIssuer}:{},...typeof o.registrationMode=="string"?{registrationMode:o.registrationMode}:{},optional:!!o.optional})),chatUi:ze(r.chatUi),hostCapabilitiesOverride:$e(r.hostCapabilitiesOverride),chatUiOverride:Qe(r.chatUiOverride),mcpProfile:Ze(r.mcpProfile)},...typeof e.authenticatedUserId=="string"?{authenticatedUserId:e.authenticatedUserId}:{},surface:e.surface==="preview"?"preview":"share_link",shareToken:typeof e.shareToken=="string"&&e.shareToken.trim()?e.shareToken.trim():void 0}}function rt(e){try{const t=sessionStorage.getItem(e);return t?nt(JSON.parse(t)):null}catch{return null}}function re(){return rt(M)}function ot(e,t){sessionStorage.setItem(e,JSON.stringify(t))}function Kt(e){ot(M,e)}function Bt(e){try{const t=new URL(e,window.location.href);return t.searchParams.set("surface","preview"),t.toString()}catch{return e}}function Jt(e){try{return new URLSearchParams(e).get("surface")==="preview"?"preview":"share_link"}catch{return"share_link"}}function qt(){sessionStorage.removeItem(M)}function oe(e){const t=e.trim();if(!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return null;try{const n=new URL(t,window.location.origin);return n.origin!==window.location.origin||!tt(n.pathname)?null:n.pathname+(n.searchParams.get("surface")==="preview"?"?surface=preview":"")}catch{return null}}function zt(e){const t=oe(e);if(t)try{localStorage.setItem(k,t)}catch{}}function Wt(){try{const e=localStorage.getItem(k);if(!e)return null;const t=oe(e);return t||null}catch{return null}}function $t(){localStorage.removeItem(k)}function Yt(e,t){return`${Be()}/${Q}/${ne(t)}/${encodeURIComponent(e)}`}var G="mcp-hosted-oauth-pending",st="mcp-oauth-score-pending",at=6e5;function B(e){return e?.trim().toLowerCase()??""}function w(e,t){const n=e?.trim()??"";if(!n)return null;if(n.startsWith("#")){const r=Ae(n);if(r)return r;if(t==="scenario"){const s=n.replace(/^#\/?/,"");return s?`/${s}`:null}}return t==="scenario"&&n.startsWith("/")&&!n.startsWith("//")||t==="score"&&n.startsWith("/")&&!n.startsWith("//")?n:Ie(n)}function it(e,t){if(e.serverUrl&&t.serverUrl&&e.serverUrl===t.serverUrl)return!0;const n=B(e.serverName),r=B(t.serverName);return!!n&&!!r&&n===r}function Xt(e){try{localStorage.setItem(G,JSON.stringify({...e,organizationId:e.organizationId??null,projectId:e.projectId??null,serverId:e.serverId??null,serverUrl:e.serverUrl??null,sessionId:e.sessionId??null,...e.connectionIntent?{connectionIntent:e.connectionIntent}:{},...e.pluginSignIn?{pluginSignIn:e.pluginSignIn}:{},accessScope:e.accessScope??null,scenarioId:e.scenarioId??null,returnPath:w(e.returnPath,e.surface),startedAt:Date.now()}))}catch{}}function ct(){try{const e=localStorage.getItem(G);if(!e)return null;const t=JSON.parse(e);return!t||typeof t!="object"||!Y(t.surface)||typeof t.serverName!="string"||typeof t.startedAt!="number"||Date.now()-t.startedAt>at?(E(),null):{surface:t.surface,...t.initiatingUserId===null||typeof t.initiatingUserId=="string"?{initiatingUserId:t.initiatingUserId}:{},...t.connectionIntent?.kind==="add"?{connectionIntent:{kind:"add"}}:t.connectionIntent?.kind==="replace"&&typeof t.connectionIntent.credentialId=="string"?{connectionIntent:{kind:"replace",credentialId:t.connectionIntent.credentialId}}:{},...lt(t.pluginSignIn)?{pluginSignIn:{pluginVersionId:t.pluginSignIn.pluginVersionId,componentKey:t.pluginSignIn.componentKey}}:{},organizationId:typeof t.organizationId=="string"?t.organizationId:null,projectId:typeof t.projectId=="string"?t.projectId:null,serverId:typeof t.serverId=="string"?t.serverId:null,serverName:t.serverName,...typeof t.chatAuthContinuationId=="string"?{chatAuthContinuationId:t.chatAuthContinuationId}:{},serverUrl:typeof t.serverUrl=="string"?t.serverUrl:null,sessionId:typeof t.sessionId=="string"?t.sessionId:null,accessScope:t.accessScope==="project_member"||t.accessScope==="chat_v2"?t.accessScope:void 0,scenarioId:typeof t.scenarioId=="string"?t.scenarioId:null,returnPath:w(typeof t.returnPath=="string"?t.returnPath:typeof t.returnHash=="string"?t.returnHash:null,t.surface),suppressErrorToast:t.suppressErrorToast===!0,suppressSuccessToast:t.suppressSuccessToast===!0,startedAt:t.startedAt}}catch{return E(),null}}function lt(e){const t=e;return typeof t?.pluginVersionId=="string"&&t.pluginVersionId.length>0&&typeof t.componentKey=="string"&&t.componentKey.length>0}function Qt(e){return!!(e?.connectionIntent||e?.pluginSignIn)}function E(){localStorage.removeItem(G)}function ut(){localStorage.removeItem(Je),localStorage.removeItem(st)}function Zt(){E(),ut()}function dt(e,t){if(localStorage.getItem("mcp-oauth-scenario-pending"))return"scenario";const n=re();return n&&n.payload.servers.some(r=>it({serverName:r.serverName,serverUrl:r.serverUrl},{serverName:e,serverUrl:t}))?"scenario":null}function pt(){if(typeof window>"u")return null;const e=S();if(!e||!e.get("code")&&!e.get("error"))return null;const t=ct();if(t)return t;const n=localStorage.getItem("mcp-oauth-pending")?.trim()??"";if(!n)return null;const r=localStorage.getItem(`mcp-serverUrl-${n}`),s=dt(n,r);return s?{surface:s,organizationId:null,projectId:null,serverId:null,serverName:n,serverUrl:r,sessionId:null,accessScope:void 0,scenarioId:null,returnPath:w(localStorage.getItem("mcp-oauth-return-hash"),s),startedAt:Date.now()}:null}function en(e){if(e.returnPath)return w(e.returnPath,e.surface)??I.servers;if(e.surface==="scenario"){const t=re();return t?`/${ne(t.payload.name)}`:I.userTesting}return e.surface==="score"?I.embedScore:I.servers}var se="mcp-onboarding-state",ae="mcp-first-run-server-choice-state";function ie(e){try{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t);return n.status==="started"||n.status==="seen"||n.status==="dismissed"||n.status==="completed"?{status:n.status,startedAt:typeof n.startedAt=="number"?n.startedAt:void 0,shownAt:typeof n.shownAt=="number"?n.shownAt:void 0,completedAt:typeof n.completedAt=="number"?n.completedAt:void 0,attemptedServerName:typeof n.attemptedServerName=="string"?n.attemptedServerName:void 0,connectedServerKind:n.connectedServerKind==="demo"||n.connectedServerKind==="personal"?n.connectedServerKind:void 0,connectedToolCount:typeof n.connectedToolCount=="number"||n.connectedToolCount===null?n.connectedToolCount:void 0,playgroundPromptPending:typeof n.playgroundPromptPending=="boolean"?n.playgroundPromptPending:void 0}:null}catch{return null}}function ce(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function le(){return ie(se)}function ue(e){ce(se,e)}function tn(){const e=le();e?.status==="completed"||e?.status==="dismissed"||e?.status==="seen"&&e.shownAt||ue({status:"started",startedAt:Date.now()})}function nn(){const e=le();e?.status==="completed"||e?.status==="dismissed"||ue({status:"seen",shownAt:Date.now()})}function d(){return ie(ae)}function h(e){ce(ae,e)}function rn(e){const t=d();t?.status==="completed"&&t.shownAt||t?.status==="dismissed"||h({status:"started",startedAt:t?.startedAt??Date.now(),shownAt:t?.shownAt,attemptedServerName:e??t?.attemptedServerName,connectedServerKind:void 0,connectedToolCount:void 0,playgroundPromptPending:t?.playgroundPromptPending})}function on(){const e=d();e?.status==="completed"&&e.shownAt||e?.status==="dismissed"||h({status:"started",startedAt:e?.startedAt??Date.now(),shownAt:Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:e?.playgroundPromptPending})}function sn(){const e=d();e?.status==="completed"&&e.shownAt||h({status:"dismissed"})}function an(){const e=d();h({status:"completed",completedAt:Date.now(),shownAt:e?.shownAt??Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:e?.playgroundPromptPending})}function cn(e,t){const n=d();h({status:"started",startedAt:n?.startedAt??Date.now(),shownAt:n?.shownAt??Date.now(),attemptedServerName:n?.attemptedServerName,connectedServerKind:e,connectedToolCount:t,playgroundPromptPending:n?.playgroundPromptPending})}function ln(){const e=d();h({status:"completed",completedAt:e?.completedAt??Date.now(),shownAt:e?.shownAt??Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:!0})}function un(){const e=d();!e||e.status!=="completed"||h({...e,playgroundPromptPending:!1})}function dn(e,t,n,r=!1,s=!1){if(r&&!s)return!1;const[o=""]=t.replace(/^#?\/?/,"").split("?"),i=o.replace(/\/+$/,"");return i!=="servers"&&i!=="connect"&&i!=="clients"&&i!=="hosts"&&i!=="home"&&i!=="playground"&&i||n?.status==="dismissed"||n?.status==="completed"&&n.shownAt?!1:n?.status==="started"&&n.shownAt?!0:!e}var pn="mcpjam:first-run-oauth-overlay-ready",hn="mcpjam:first-run-oauth-cancelled";function mn(){if(window.location.pathname!=="/oauth/callback"&&!window.location.pathname.startsWith("/oauth/callback/"))return null;const e=d();if(e?.status!=="started"||!e.attemptedServerName)return null;const t=pt();return t?.surface==="project"&&t.serverName===e.attemptedServerName?e.attemptedServerName:null}export{bt as $,tt as A,zt as B,ct as C,Yt as D,Je as E,Jt as F,v as G,Ht as H,jt as I,xt as J,Gt as K,ne as L,nt as M,re as N,qt as O,Wt as P,Rt as Q,Bt as R,Qt as S,Xt as T,Ft as U,Vt as V,He as W,Dt as X,Mt as Y,Ut as Z,G as _,St as _t,un as a,Le as at,pt as b,Et as bt,cn as c,yt as ct,on as d,C as dt,Lt as et,nn as f,vt as ft,ue as g,R as gt,le as h,Se as ht,dn as i,S as it,Be as j,$t as k,sn as l,z as lt,d as m,we as mt,pn as n,Ct as nt,ln as o,L as ot,tn as p,wt as pt,kt as q,mn as r,ke as rt,an as s,Pt as st,hn as t,W as tt,rn as u,Re as ut,st as v,Nt as vt,en as w,it as x,Tt as xt,Zt as y,At as yt,Kt as z};
|
|
1
|
+
import{o as de}from"./rolldown-runtime-BlpueFg6.js";import{C as pe,E as J,N as he,T as q}from"./project-route-B8ycjI6Q.js";import{n as me}from"./react-dom-DXowvrFG.js";import{r as fe}from"./bundle-mjs-BGe1waGK.js";import{At as _e,Dt as ge,I as Ie,V as I,j as Ae}from"./app-navigation-CTBnrg26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.27.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2682405b-f168-4835-87ae-8d89da7ff28c",e._sentryDebugIdIdentifier="sentry-dbid-2682405b-f168-4835-87ae-8d89da7ff28c")}catch{}})();var Ee=["app_load/guest_session_failed","app_load/session_refresh_failed","app_load/guest_session_refused","app_load/auth_pending","app_load/actor_pending","app_load/user_setup_pending"],At=3e4,Et=2e4;function Tt(e){return e.guestRefused?"app_load/guest_session_refused":e.sessionRefreshFailed?e.signedIn?"app_load/session_refresh_failed":"app_load/guest_session_failed":e.authenticated?e.identityKnown?"app_load/user_setup_pending":"app_load/actor_pending":"app_load/auth_pending"}function Nt(e,t,n,r,s){return{level:e,code:t,title:n.slice(0,160),description:r.slice(0,1e3),...s?{details:s}:{}}}var R={SIGN_IN_EXPIRED:"Your sign-in expired before this finished, so it wasn't sent. Retry once your session reconnects, or sign in again.",UNAUTHORIZED:"Your sign-in expired before this finished, so it wasn't sent. Retry once your session reconnects, or sign in again.",RESOURCE_DENIED:"The App asked for a file it wasn't given, or its access to that file has ended. Apps can only read and write the file they were opened with.",RESOURCE_INVALID:"The App's file request was malformed (for example a bad URI, both text and blob in one write, or invalid base64).",RESOURCE_NOT_TEXT:`This file isn't text. Request representation: "blob" or handle both text and blob.`,RESOURCE_OUTCOME_UNKNOWN:"The file write may or may not have been saved (the connection dropped mid-write). Read the file again before retrying.",RESOURCE_READ_REQUIRED:"MCPJam gave this App access to its file again (the server restarted, or its hold on the file lapsed), so this save was refused. The App's unsaved changes are still in the viewer: read the file again (resources/read), then save against the ETag it returns.",RESOURCE_TOO_LARGE:"The file is larger than the host allows for Apps.",RESOURCE_UNSUPPORTED:"This file source doesn't support that operation.",RESOURCE_WRITE_UNAVAILABLE:"This Computer can't save the file safely. Copy your changes, then reconnect the Computer before trying again.",PLUGIN_FILE_TARGETS_NOT_DECLARED:`This client lists no files for this server. Add them under the client's mcpProfile.extensions["mcpjam/plugin-file-targets"] (a root folder and each file's relative path).`,PLUGIN_LOCAL_FILES_NOT_CONFIGURED:"Opening local files is off on this MCPJam install. Set MCPJAM_PLUGIN_LOCAL_FILE_ROOTS to a JSON list of allowed folders, each {actorId, projectId, serverId, root}, then restart MCPJam.",PLUGIN_LOCAL_FILE_ROOTS_INVALID:"MCPJAM_PLUGIN_LOCAL_FILE_ROOTS isn't valid JSON. It must be a list of {actorId, projectId, serverId, root} entries.",PLUGIN_LOCAL_FILE_ROOT_NOT_ALLOWED:"This server's file folder isn't allowed for you. Add an entry with your actor ID, this project, this server and the folder to MCPJAM_PLUGIN_LOCAL_FILE_ROOTS, then restart MCPJam.",PLUGIN_FILES_COMPUTER_REQUIRED:"On the cloud, plugin files live on the project's Computer. Attach the Computer to this client and run the server there to open or save its files.",PLUGIN_COMPUTER_FILE_ROOT_INVALID:`On the Computer, file target roots must be absolute folders under /home/user. Fix the root in the client's "mcpjam/plugin-file-targets".`,PLUGIN_FILES_REMOTE_SERVER:"This server runs remotely over HTTP, so it shares no disk with MCPJam or your Computer. Its local file paths can't be opened or saved here.",PLUGIN_COMPUTER_UNAVAILABLE:"The project's Computer is asleep or unreachable, so its files can't be opened or saved right now. Send a message in chat to wake it, then try again.",PLUGIN_FILE_READ_ONLY:`This file is read-only. Only files listed in the client's "mcpjam/plugin-file-targets" (in an allowed local folder, or on the project's Computer on the cloud) can be saved.`,PLUGIN_LOCAL_FILE_NOT_LISTED:`That path isn't one of the files listed for this server in the client's "mcpjam/plugin-file-targets".`,INSTANCE_UNAVAILABLE:"This App session has ended (it was closed, expired or the server restarted). Reopen the App.",INSTANCE_DENIED:"This App isn't allowed to do that here. It may belong to another chat, client or user, or the request doesn't match how the App was opened.",INSTANCE_LIMIT:"Too many Apps are open. Close some Apps and try again.",INSTANCE_STORE_UNAVAILABLE:"Apps can't be opened because the App session store isn't available on this MCPJam server.",INSTANCE_RENEWAL_UNAVAILABLE:"This MCPJam server can't extend App sessions yet. The App keeps working until its session expires; reopen it afterwards.",INSTANCE_HOST_CHANGED:"The client's settings changed after this App opened. Reopen the App to use the new settings.",INSTANCE_SERVER_CHANGED:"The server's saved setup changed after this App opened. Reopen the App.",INSTANCE_CONNECTION_CHANGED:"The server's connection or credentials changed after this App opened. Reopen the App.",INSTANCE_TOOL_UNAVAILABLE:"The server no longer lists the tool this App needs.",INSTANCE_UI_UNAVAILABLE:"The server didn't return a usable App UI (missing ui:// resource, wrong MIME type, or larger than 5 MB).",INSTANCE_CONTEXT_UNAVAILABLE:"Model context isn't available for this App (the client has it turned off, or the App has closed).",INSTANCE_CONTEXT_SEQUENCE_DENIED:"A model-context update arrived out of order and was ignored. Send updates one at a time.",INSTANCE_CONTEXT_REMOVAL_INVALID:"That context removal didn't match this App's current context, so nothing was removed. Remove it again from the composer.",INSTANCE_CONTEXT_TOO_LARGE:"The App's context is too large to keep, so its last accepted context stays. Send less context.",INVALID_INSTANCE_CONTEXT:"MCPJam couldn't store the App's context, so its last accepted context stays. Send less context and try again.",INSTANCE_CONTEXT_RATE_LIMITED:"The App updated its context too often, so this update wasn't kept and its last accepted context stays. Send updates less often.",PLUGIN_CONTEXT_TOO_LARGE:"This context update is over this client's App context budget (its modelContextPolicy), so the App's last accepted context stays. Send less context.",PLUGIN_CONTEXT_TURN_TOO_LARGE:"The Apps in this chat hold more context than this client's modelContextPolicy sends in one turn. Remove an App's context from the composer, then send again.",PLUGIN_CONTEXT_MEMORY_LIMIT:"MCPJam is holding as much App context for you as it can, so this update wasn't kept. Close Apps you no longer need or remove their context, then try again.",INSTANCE_CONTEXT_HELD:"You removed this App's context from the chat, so context the App sends on its own isn't attached. Use the App (for example its attach button) to attach it again.",INSTANCE_MESSAGE_UNAVAILABLE:"This App can't send chat messages (the client has messages turned off).",INSTANCE_REQUEST_BUSY:"The App is already running another request. Wait for it to finish.",ACTIVATION_SCHEMA_INVALID:"The entrypoint tool's input schema doesn't accept the arguments the host must send to open it.",PLUGIN_ENTRYPOINT_UNOPENABLE:"This client can't open an entry point whose tool name has two underscores or two dots in a row, or a dot next to an underscore. Rename the tool.",ACTIVATION_BINDING_CHANGED:"This App was opened with different settings before. Close it and open it again.",INVOCATION_OUTCOME_UNKNOWN:"MCPJam couldn't confirm the tool call's outcome. It may have run, so it won't be retried automatically. Check the server before trying again.",INVOCATION_DENIED:"The tool call isn't allowed for this App.",INVOCATION_ID_REUSED:"The App reused a request ID for a different tool call.",INVOCATION_LIMIT:"This App made too many tool calls in its session. Reopen the App.",INVOCATION_FAILED:"The tool call failed before it reached the server.",INVOCATION_RESULT_EXPIRED:"This tool call already ran, but its result is no longer held in memory, so it can't be returned again. The call is not repeated.",TOOL_CALL_FAILED:"The server returned an error for this tool call. See the server's message for details.",APPROVAL_DENIED:"The tool call wasn't approved.",APPROVAL_UNAVAILABLE:"Tool approval isn't available right now.",AUTHORIZATION_CHANGED:"Access changed while the tool call was running, so it was stopped.",TOOL_VISIBILITY_DENIED:`This tool isn't visible to Apps. Add "app" to its _meta.ui.visibility.`,TOOL_POLICY_DENIED:"The client's tool policy blocks this tool.",TOOL_MENTION_DECLARATION_DENIED:`This tool isn't declared as a mention search tool (_meta["openai/extensions"]["mentions/search"]).`,PLUGIN_EXTENSION_DISABLED:"This client has that OpenAI plugin extension turned off. Turn it on in the client's Apps settings (OpenAI plugin extensions).",PLUGIN_WORKSPACE_DENIED:"Plugin extensions aren't available for this project or account.",PLUGIN_WORKSPACE_CANCELLED:"The request was cancelled.",PLUGIN_WORKSPACE_UNREACHABLE:"MCPJam couldn't reach its backend to check plugin access (a network problem or timeout). Check your connection and try again.",PLUGIN_WORKSPACE_SIGN_IN_EXPIRED:"Your sign-in lapsed while MCPJam was checking plugin access. Retry once your session reconnects, or sign in again.",PLUGIN_INSTANCE_CANCELLED:"The request was cancelled.",INVALID_PLUGIN_INSTANCE_REQUEST:"The request was malformed.",PLUGIN_DEEP_LINK_INVALID:"This isn't a valid plugin link. Plugin links look like chatgpt://plugins/<plugin>/app/<tool>?path=/page (the path must start with / and have no #fragment).",PLUGIN_DEEP_LINK_SCHEME_UNSUPPORTED:"This client doesn't open links with that scheme. The Codex client uses codex://; the ChatGPT client uses chatgpt:// or https://chatgpt.com.",PLUGIN_DEEP_LINK_PLUGIN_UNKNOWN:"No enabled plugin or server matches the link's plugin ID. Use the plugin's manifest name, its installation ID, or server-<saved server ID> for a plain server.",PLUGIN_DEEP_LINK_MARKETPLACE_MISMATCH:"The link's @marketplace doesn't match the marketplace this plugin was installed from.",PLUGIN_DEEP_LINK_AMBIGUOUS:"More than one installed plugin matches this link. Add @<marketplace> to the plugin ID, or use the installation ID.",PLUGIN_DEEP_LINK_TOOL_UNAVAILABLE:"The plugin has no global App entrypoint with the link's tool name.",PLUGIN_DEEP_LINK_NAMESPACE_UNAVAILABLE:"Deep links can only open a plugin's global App.",PLUGIN_FORM_UNSUPPORTED:"This form uses a schema feature the client doesn't support.",PLUGIN_FORM_UNAVAILABLE:"The form couldn't be loaded.",PLUGIN_FORM_SCHEMA_MISSING:`This form keeps its fields in _meta["openai/elicitation"].requestedSchema, but that schema is missing or isn't an object schema, so MCPJam refused the form rather than show it empty. Send the full form schema there (OpenAI's requestFormInput does).`,PLUGIN_FORM_TOO_LARGE:"The form is too large (too many fields, options or bytes).",PLUGIN_FORM_PATTERN_UNSUPPORTED:"A field's pattern isn't a supported regular expression.",PLUGIN_FORM_WEB_UPLOAD_UNSUPPORTED:"Forms opened from an App can only ask for file uploads when the client's File resources extension is on. Turn it on in the client's plugin extensions, or remove upload options.",PLUGIN_FORM_RESOURCE_SERVICE_UNAVAILABLE:"This form asks for file or folder uploads, which this MCPJam server can't provide (configure a local folder, or use a local install).",PLUGIN_FORM_PREVIEW_SERVICE_UNAVAILABLE:"This client can't render that kind of preview.",PLUGIN_FORM_PREVIEW_INVALID:`An option's _meta["openai/preview"] has no valid target.`,PLUGIN_FORMS_DISABLED:"This client has Forms turned off, so the form takes no answers or uploads. A form that was already open ends as cancelled when it's submitted, and its answer isn't sent to the server. Turn Forms on in the client's OpenAI plugin extensions to answer forms.",FORM_SOURCE_UNAVAILABLE:"This form has expired or was already answered.",FORM_PREVIEW_UNAVAILABLE:"That preview isn't available for this form.",PLUGIN_FORM_PREVIEW_TIMEOUT:"The preview didn't open within 30 seconds, so MCPJam stopped waiting. The form and its answers are unchanged. Try again; if it keeps happening, check that the server answers the preview's resource read or preview tool promptly.",PLUGIN_FORM_PREVIEW_FAILED:"The preview couldn't be opened. The form and its answers are unchanged; try again.",PLUGIN_FORM_SUBMIT_TIMEOUT:"MCPJam didn't confirm the answer within 30 seconds, so it stopped waiting. The answers are still in the form; send them again. A repeat of an answer that did arrive is ignored.",PLUGIN_FORM_SUBMIT_FAILED:"The answer couldn't be sent. The answers are still in the form; send them again.",PLUGIN_FORM_DESTINATION_TIMEOUT:"MCPJam couldn't confirm where this form's files would be uploaded within 30 seconds, so it stopped waiting. Nothing was uploaded and the request is still open. Retry, or cancel the request; if it keeps happening, check that the server is still connected and that you're still signed in.",PLUGIN_FORM_DESTINATION_FAILED:"MCPJam couldn't check where this form's files would be uploaded. Nothing was uploaded and the request is still open; retry, or cancel the request.",PLUGIN_SETTINGS_TOOL_UNAVAILABLE:"The server's openai/settings capability names a read or update tool that tools/list doesn't include.",PLUGIN_SETTINGS_OUTPUT_SCHEMA_REQUIRED:"Both settings tools must declare an outputSchema.",PLUGIN_SETTINGS_READ_ARGUMENTS_INVALID:"The settings read tool must accept an empty arguments object ({}).",PLUGIN_SETTINGS_UNSUPPORTED_SCHEMA:"A settings field uses an unsupported type. Settings support boolean, string (with optional enum), number and integer.",PLUGIN_SETTINGS_INVALID_RESULT:"The settings read tool returned a result that doesn't match its outputSchema, or a field has no value.",PLUGIN_SETTINGS_TOOL_SCHEMA_INVALID:"A settings tool's schema couldn't be parsed.",PLUGIN_SETTINGS_INVALID_CAPABILITY:"The server's openai/settings capability is malformed.",PLUGIN_SETTINGS_AMBIGUOUS_CAPABILITY:"The server declares openai/settings in more than one place with different values.",PLUGIN_SETTINGS_SAVE_FAILED:"The server couldn't save the settings.",PLUGIN_SETTINGS_SCHEMA_CHANGED:"The server's settings changed. Reload settings and try again.",PLUGIN_SETTINGS_REFRESH_REQUIRED:"Settings changed on the server. Reload settings.",PLUGIN_SETTINGS_READ_NOT_READ_ONLY:"The settings read tool should be marked read-only (annotations.readOnlyHint: true).",SETTINGS_UNAVAILABLE:"Settings aren't available for this server right now.",PLUGIN_MENTION_SEARCH_FAILED:"The server's mention search tool returned an error.",PLUGIN_MENTION_RESULT_TOO_LARGE:"The mention search result is too large.",PLUGIN_FILE_READ_TIMEOUT:"The file didn't load within 12 seconds, so MCPJam stopped waiting. Reload the file in the viewer (or reopen it) to try again. If it keeps happening, check that the server answers resources/read promptly, and close Apps you no longer need: each open file viewer keeps a connection to MCPJam.",PLUGIN_FILE_WATCH_TIMEOUT:"MCPJam couldn't start watching this file for changes within 12 seconds, so it stopped waiting. The file can still be read; changes made elsewhere won't refresh the viewer until it subscribes again or the file is reopened.",MODEL_APP_UNAVAILABLE:"This App from the chat is no longer available.",MODEL_FORM_UNAVAILABLE:"This form is no longer available, so your answer wasn't sent. Ask the model to run the tool again.",FORM_NOT_SAVED:"MCPJam couldn't save this form, so it wasn't shown and the tool call ended. Ask the model to run the tool again.",FORM_STORE_UNAVAILABLE:"MCPJam couldn't load this form's saved state, so nothing was sent. Try again in a moment.",CONTINUATION_EXPIRED:"This form expired before it was answered, so the tool call did not finish. Run it again.",CONTINUATION_FAILED:"This form is closed and cannot be submitted. Start the tool call again.",CONTINUATION_CANCELLED:"This form was cancelled, so the tool call did not finish.",CONTINUATION_CONNECTION_UNAVAILABLE:"The server disconnected before the answer could be sent. Reconnect and send it again.",CONTINUATION_DENIED:"This form answer doesn't match the server's current request.",CONTINUATION_PROTOCOL_DENIED:"The server's MCP version doesn't support this form request."},Te=[["PLUGIN_DEEP_LINK_","This plugin link couldn't be opened."],["PLUGIN_SETTINGS_","The server's settings couldn't be used."],["PLUGIN_FORM_","This form couldn't be shown."],["RESOURCE_","The App's file request couldn't be completed."],["INSTANCE_CONTEXT_","The App's model context couldn't be updated."],["INSTANCE_","This App session couldn't complete the request. Reopen the App."],["INVOCATION_","The tool call couldn't be completed."],["CONTINUATION_","The form answer couldn't be delivered to the server."]];function St(e){if(typeof e=="string")return Object.hasOwn(R,e)?R[e]:Te.find(([t])=>e.startsWith(t))?.[1]}var Ne={location:["host_workspace"],operation:["form_response","settings_save","app_message"],host_profile:["chatgpt","codex","unknown"],outcome:["success","failure","declined","cancelled"],deployment:["hosted","self_hosted"],source:["client"]},Se=["none","refused","other",...Object.keys(R)],V=["local","custom"],we=["callback_https_required","callback_auth_required","callback_connection_refused","callback_timeout","callback_tls_error","callback_http_4xx","callback_http_5xx","callback_challenge_failed","callback_error"],H="x-mcpjam-telemetry-policy",P={location:["header"],trigger:["conformance","oauth","xaa"],reason:["completed","return_visit"],has_advice:"boolean"},wt=1e6,Ot={extension_launch_completed:{location:["host_workspace"],launch_kind:["thread","global","file","quick-action","settings"],host_profile:["chatgpt","codex"],outcome:["success","failure"],failure_stage:["none","execution","rendering","timeout","unknown"],deployment:["hosted","self_hosted"],source:["client"]},extension_operation_completed:{...Ne,error_code:Se},app_launched:{location:["app"],is_authenticated:"boolean",platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"],launch_trigger:["immediate","grant","timeout","hidden"],policy_wait_ms:"count"},app_startup_started:{location:["app"],platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"]},app_startup_blocked:{location:["app"],platform:["web","npm","docker","mac","win","electron"],deployment:["hosted","self_hosted"],stage:Ee,trigger:["failure","deadline"],elapsed_ms:"count"},send_message:{location:["chat_tab","ui_playground"],multi_model_enabled:"boolean",multi_model_count:"count"},edit_message:{location:["chat_tab","ui_playground"]},execute_tool:{location:["parameters_panel","tools_sidebar"],as_task:"boolean"},eval_suite_run_started:{location:["ci_evals_tab"],num_test_cases:"count",num_tests:"count",num_models:"count",replay:"boolean"},conformance_run_triggered:{location:["conformance_tab","score_runner","compat_page","compat_detail_modal"],run_source:["ui"]},local_webhook_receiver_selected:{receiver_kind:V},local_webhook_receiver_failed:{receiver_kind:V,failure_category:we},conformance_tab_viewed:{location:["conformance_tab"]},conformance_run_completed:{location:["conformance_tab"],run_source:["ui"],outcome:["passed","failed","incomplete"],has_advice:"boolean",scored:"boolean"},github_star_prompt_shown:P,github_star_prompt_clicked:{...P,cta:["primary","star_button"]},github_star_prompt_dismissed:{...P,close_reason:["not_now","dismiss"]},github_star_button_clicked:{location:["header","settings"]},$pageview:{},$pageleave:{}},_;function Oe(){if(_)return _;const e=a=>{let c;try{c=new URL(a,window.location.href)}catch{return!1}return c.origin===window.location.origin&&/^\/(tlm|relay)(\/|$)/.test(c.pathname)},t=he,n=window.fetch,r=globalThis.fetch,s=(a,c)=>{const x=a instanceof Request?a.url:String(a);if(!e(x))return n.call(window,a,c);const y=new Headers(c?.headers??(a instanceof Request?a.headers:void 0));return y.set(H,t()),n.call(window,a,{...c,headers:y})};window.fetch=s,globalThis.fetch=s;const o=XMLHttpRequest.prototype,i=o.open,f=o.send,p=o.setRequestHeader,O=new WeakMap;return o.open=function(a,c,x=!0,y,ht){return O.set(this,e(String(c))),Reflect.apply(i,this,arguments)},o.setRequestHeader=function(a,c){if(!(O.get(this)&&a.toLowerCase()==="x-mcpjam-telemetry-policy"))return p.call(this,a,c)},o.send=function(a){return O.get(this)&&p.call(this,H,t()),f.call(this,a)},_=()=>{window.fetch=n,globalThis.fetch=r,o.open=i,o.send=f,o.setRequestHeader=p,_=void 0},_}Oe();var T="mcpjam_promo_intent",ye=18e5,l,Pe=/^[a-z0-9-]{1,80}$/;function N(e){return typeof e=="string"&&Pe.test(e)?e:null}function z(e=window.location.search){return N(new URLSearchParams(e).get("campaign"))??"agntcon-2026"}function L(){l=null;try{return sessionStorage.removeItem(T),!0}catch{return console.debug("Promo intent storage unavailable"),!1}}function ve(e,t=Date.now(),n=z()){l={code:e,storedAt:t,campaign:n};try{return sessionStorage.setItem(T,JSON.stringify(l)),!0}catch{return console.debug("Promo intent storage unavailable"),!1}}function Re(e=Date.now(),t=z()){try{if(l===void 0){const n=JSON.parse(sessionStorage.getItem(T)??"null");n&&typeof n=="object"&&"code"in n&&"storedAt"in n&&typeof n.code=="string"&&n.code.length<=64&&typeof n.storedAt=="number"&&(l={code:n.code,storedAt:n.storedAt,campaign:"campaign"in n&&N(n.campaign)||"agntcon-2026"})}}catch{console.debug("Promo intent storage unavailable")}return!l||e<l.storedAt||e-l.storedAt>=ye?(L(),""):l.campaign===t?l.code:""}function C(e,t=!1){const n=new URLSearchParams;t&&n.set("manual","1"),e&&e!=="agntcon-2026"&&n.set("campaign",e);const r=n.toString();return r?`/redeem?${r}`:"/redeem"}function yt(e){const t=Re(Date.now(),e);let n=!1;try{n=sessionStorage.getItem(T)===JSON.stringify(l)}catch{console.debug("Promo intent storage unavailable")}return{promoReturn:!0,promoManualEntry:!t||!n,promoCampaign:e}}function Pt(e){return e?.promoReturn!==!0?null:C(N(e.promoCampaign),e.promoManualEntry===!0)}function Le(){if(window.location.pathname.replace(/\/+$/,"")!=="/redeem")return;const e=new URL(window.location.href),t=N(e.searchParams.get("campaign"));if(e.searchParams.get("manual")==="1"){L()&&window.history.replaceState(window.history.state,"",C(t));return}const n=e.searchParams.get("code")??new URLSearchParams(e.hash.slice(1)).get("code");n!==null&&(n.length<=64?ve(n,Date.now(),t??"agntcon-2026"):L(),window.history.replaceState(window.history.state,"",C(t)))}function vt(){const e=()=>{Le(),window.dispatchEvent(new Event("promo-intent-changed"))};window.addEventListener("hashchange",e),window.addEventListener("popstate",e)}var g="oauth_pending";var Ce="invalid_request",be="The authorization response was no longer available after the page reloaded. Start the connection again.",u=null,F=0;function b(){return F+=1,`inbox:${F}`}function U(e){return e==="/oauth/callback"||e.startsWith("/oauth/callback/")}function W(e){try{return new URLSearchParams(e).get(g)==="1"}catch{return!1}}function $(e){return`${e}?${g}=1`}var Ue=/token|secret|code|key|sig|cred|pass|state|session|auth|ticket|assertion/i,De=/^[A-Za-z][\w-]{0,63}$/;function Me(e){const t=e.startsWith("#")?e.slice(1):e;return t?t.includes("=")?t.split("&").every(n=>{const r=n.split("=",1)[0]??"";try{const s=decodeURIComponent(r);return s!==""&&!Ue.test(s)}catch{return!1}}):De.test(t):!1}function Rt(){if(typeof window>"u")return!1;const{pathname:e,search:t,hash:n}=window.location;if(!U(e))return!1;const r=new URLSearchParams(t),s=r.get(g)==="1";if(r.delete(g),[...r.keys()].length>0)u={pathname:e,params:r.toString(),attempt:b()};else if(s){if(u?.pathname===e)return!0;u={attempt:b(),pathname:e,params:new URLSearchParams({error:Ce,error_description:be}).toString()}}else return!1;const o=n&&Me(n)?n:"";try{history.replaceState(history.state,"",`${$(e)}${o}`)}catch{}return!0}function Lt(e,t="/oauth/callback"){const n=new URLSearchParams(e);return n.delete(g),u={pathname:t,params:n.toString(),attempt:b()},$(t)}function S(){if(typeof window>"u")return null;const{pathname:e,search:t}=window.location;if(!U(e))return null;if(W(t))return u&&u.pathname===e?new URLSearchParams(u.params):null;const n=new URLSearchParams(t);return[...n.keys()].length>0?n:null}function ke(){if(typeof window>"u")return null;const{pathname:e,search:t}=window.location;return U(e)?W(t)?u&&u.pathname===e?u.attempt:null:t&&t!=="?"?`url:${t}`:null:null}function Ct(){const e=S();return!!(e&&(e.has("code")||e.has("error")))}function bt(e){if(e!==void 0&&e!==ke())return null;const t=S();return u=null,t}function Ut(){if(window.isElectron||window.location.pathname!=="/oauth/callback")return null;const e=S();if(!e||!e.get("code")&&!e.get("error")||!e.get("state")?.startsWith("electron_mcp:"))return null;const t=new URL("mcpjam://oauth/callback");t.searchParams.set("flow","mcp");for(const[n,r]of e.entries())t.searchParams.append(n,r);return t.toString()}var Ge=de(me(),1),m=fe(),j=new Set;function xe(e,t=window.location){window.isElectron||t.replace(e)}var Ve={redirect:xe};function Dt({returnToElectronUrl:e}){return(0,Ge.useEffect)(()=>{j.has(e)||(j.add(e),Ve.redirect(e))},[e]),(0,m.jsx)("div",{className:"flex min-h-screen items-center justify-center p-4",children:(0,m.jsxs)("div",{className:"w-full max-w-md rounded-md border bg-secondary p-4",children:[(0,m.jsx)("p",{className:"text-sm font-medium",children:"Continue in MCPJam Desktop"}),(0,m.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"MCPJam Desktop should open automatically. If you are back in the browser, please close this page and continue in MCPJam Desktop."}),(0,m.jsxs)("p",{className:"mt-3 text-xs text-muted-foreground",children:["If nothing happened,"," ",(0,m.jsx)("a",{className:"underline",href:e,children:"click here"}),"."]})]})})}function Y(e){return e==="scenario"||e==="project"||e==="score"}var He="Authorization was cancelled. Try again.",D="mcp-hosted-oauth-resume",Fe=6e4;function Mt(e){try{localStorage.setItem(D,JSON.stringify({...e,serverUrl:e.serverUrl??null,errorMessage:e.errorMessage??null,completedAt:Date.now()}))}catch{}}function kt(e){try{const t=localStorage.getItem(D);if(!t)return null;const n=JSON.parse(t);return!n||typeof n!="object"||!Y(n.surface)||typeof n.serverName!="string"||typeof n.completedAt!="number"||Date.now()-n.completedAt>Fe?(v(),null):e&&n.surface!==e?null:{surface:n.surface,serverName:n.serverName,serverUrl:typeof n.serverUrl=="string"?n.serverUrl:null,completedAt:n.completedAt,errorMessage:typeof n.errorMessage=="string"?n.errorMessage:null}}catch{return v(),null}}function v(){localStorage.removeItem(D)}function Gt(e){return e==="launching"||e==="resuming"||e==="verifying"}function xt(e,t){const n=(typeof e=="string"?e:e instanceof Error?e.message:t).replace(/\s+/g," ").trim();if(!n)return t;const r=n.replace(/^Uncaught Error:\s*/i,"").replace(/\s+at\s+(?:async\s+)?[A-Za-z0-9_$./<>-]+(?:\s+\(|$).*/s,"").trim();return r?/\b(cancelled|canceled)\b|user denied|denied the request|access_denied/i.test(r)?He:/missing its oauth url/i.test(r)?"This server needs additional setup before it can be authorized. Try again or contact the owner.":/could not find the access token/i.test(r)?"We couldn't finish connecting this account. Authorize again.":/could not verify access/i.test(r)?"We couldn't confirm access to this account. Authorize again.":/\b(401|403)\b|unauthorized|forbidden|authentication failed|invalid[_\s-]?token|expired token|token expired|non-200 status code|access denied/i.test(r)?"Your authorization expired or was rejected. Authorize again to continue.":/sse error|failed to fetch|network ?error|timeout|timed out|socket hang up|econn/i.test(r)?"We couldn't reach the authorization service. Try again.":/\boauth\b/i.test(r)&&/\b(error|failed|unable|could not)\b/i.test(r)?"Authorization could not be completed. Try again.":r:t}var X=pe("tester-link"),Q=X.pattern.split("/")[1]??"user-testing",je=X.reserved?.[0]??"edit",Z=q(Q),ee=q(je),Vt=new RegExp(`^/${Z}/[^/]+/(?!${ee}/?$)[^/]+/?$`),te=new RegExp(`^/${Z}/[^/?#]+/(?!${ee}(?:[/?#]|$))([^/?#]+)`);function Ht(e){return e===J}function Ft(e){const t=te.exec(e);if(!t||!t[1])return null;const n=t.index+t[0].length,r=n-t[1].length;return`${e.slice(0,r)}${J}${e.slice(n)}`}function Ke(e){const t=e.match(te);if(!t||!t[1])return null;try{return decodeURIComponent(t[1]).trim()||null}catch{return t[1].trim()||null}}var K="https://app.mcpjam.com";function ne(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"server"}function Be(){return typeof window>"u"?K:window.location.protocol==="http:"||window.location.protocol==="https:"?window.location.origin:K}var M="mcpjam_scenario_session_v2",Je="mcp-oauth-scenario-pending",k="mcpjam_scenario_signin_return_path_v1";function jt(e){return`scenario-enabled-optional:${e}`}function qe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.values(e).every(t=>typeof t=="string")}function ze(e){if(!e||typeof e!="object")return;const t=e.surfaces;if(!t||typeof t!="object")return;const n=t.welcome,r=n&&typeof n=="object"&&typeof n.enabled=="boolean"?{enabled:n.enabled,body:typeof n.body=="string"?n.body:""}:void 0,s=t.perTurnFeedback,o=s&&typeof s=="object"&&typeof s.enabled=="boolean"?{enabled:s.enabled,...s.style==="thumbs"?{style:"thumbs"}:{},...A(s,"prompt"),...A(s,"commentPlaceholder"),...A(s,"thanksMessage")}:void 0,i=t.tasks,f=i&&typeof i=="object"?i.items:void 0,p=Array.isArray(f)?{items:We(f)}:void 0;if(!(!r&&!o&&!p))return{surfaces:{...r?{welcome:r}:{},...o?{perTurnFeedback:o}:{},...p?{tasks:p}:{}}}}function We(e){const t=new Set,n=[];for(const r of e){if(!r||typeof r!="object")continue;const s=r.id,o=r.title;typeof s!="string"||s.length===0||typeof o!="string"||o.trim().length===0||t.has(s)||(t.add(s),n.push({id:s,title:o,...A(r,"hint")}))}return n}function A(e,t){const n=e[t];return typeof n=="string"?{[t]:n}:{}}function $e(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Ye(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Xe(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Qe(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function Ze(e){if(!(!e||typeof e!="object"||Array.isArray(e)))return e}function et(e){return e==="project_members"?"project_members":e==="anyone_with_link"||e==="any_signed_in_with_link"?"anyone_with_link":"invited_only"}function tt(e){return Ke(e)}function nt(e){if(!e||typeof e!="object")return null;const t=typeof e.scenarioId=="string"?e.scenarioId.trim():"",n=typeof e.accessVersion=="number"&&Number.isFinite(e.accessVersion)?e.accessVersion:null,r=e.payload,s=ge(r?.hostStyle)??(r?.hostStyle==null?_e.id:null);return!t||n===null||!r||typeof r.projectId!="string"||typeof r.scenarioId!="string"||typeof r.name!="string"||s===null||typeof r.modelId!="string"||typeof r.systemPrompt!="string"||typeof r.temperature!="number"||typeof r.requireToolApproval!="boolean"||typeof r.allowGuestAccess!="boolean"||typeof r.viewerIsProjectMember!="boolean"||!Array.isArray(r.servers)?null:{scenarioId:t,accessVersion:n,payload:{projectId:r.projectId,scenarioId:r.scenarioId,name:r.name,description:typeof r.description=="string"?r.description:void 0,hostStyle:s,mode:et(r.mode),...r.requiresSignIn!==void 0?{requiresSignIn:r.requiresSignIn===!0}:{},allowGuestAccess:r.requiresSignIn?!1:r.allowGuestAccess,viewerIsProjectMember:r.viewerIsProjectMember,systemPrompt:r.systemPrompt,modelId:r.modelId,modelReadiness:r.modelReadiness,temperature:r.temperature,requireToolApproval:r.requireToolApproval,modelVisibleMcpToolResults:Ye(r.modelVisibleMcpToolResults),mcpToolResultImageRendering:Xe(r.mcpToolResultImageRendering),servers:r.servers.filter(o=>!!o&&typeof o=="object"&&typeof o.serverId=="string"&&typeof o.serverName=="string").map(o=>({serverId:o.serverId,serverName:o.serverName,useOAuth:!!o.useOAuth,serverUrl:typeof o.serverUrl=="string"?o.serverUrl:null,clientId:typeof o.clientId=="string"?o.clientId:null,oauthScopes:Array.isArray(o.oauthScopes)?o.oauthScopes:null,...typeof o.oauthProtocolMode=="string"?{oauthProtocolMode:o.oauthProtocolMode}:{},...typeof o.oauthProtocolVersion=="string"?{oauthProtocolVersion:o.oauthProtocolVersion}:{},...typeof o.wireProtocolVersion=="string"?{wireProtocolVersion:o.wireProtocolVersion}:{},...typeof o.oauthResourceUrl=="string"?{oauthResourceUrl:o.oauthResourceUrl}:{},...typeof o.hasClientSecret=="boolean"?{hasClientSecret:o.hasClientSecret}:{},...qe(o.oauthCustomHeaders)?{oauthCustomHeaders:o.oauthCustomHeaders}:{},...typeof o.oauthAllowPathScopedIssuer=="boolean"?{oauthAllowPathScopedIssuer:o.oauthAllowPathScopedIssuer}:{},...typeof o.registrationMode=="string"?{registrationMode:o.registrationMode}:{},optional:!!o.optional})),chatUi:ze(r.chatUi),hostCapabilitiesOverride:$e(r.hostCapabilitiesOverride),chatUiOverride:Qe(r.chatUiOverride),mcpProfile:Ze(r.mcpProfile)},...typeof e.authenticatedUserId=="string"?{authenticatedUserId:e.authenticatedUserId}:{},surface:e.surface==="preview"?"preview":"share_link",shareToken:typeof e.shareToken=="string"&&e.shareToken.trim()?e.shareToken.trim():void 0}}function rt(e){try{const t=sessionStorage.getItem(e);return t?nt(JSON.parse(t)):null}catch{return null}}function re(){return rt(M)}function ot(e,t){sessionStorage.setItem(e,JSON.stringify(t))}function Kt(e){ot(M,e)}function Bt(e){try{const t=new URL(e,window.location.href);return t.searchParams.set("surface","preview"),t.toString()}catch{return e}}function Jt(e){try{return new URLSearchParams(e).get("surface")==="preview"?"preview":"share_link"}catch{return"share_link"}}function qt(){sessionStorage.removeItem(M)}function oe(e){const t=e.trim();if(!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return null;try{const n=new URL(t,window.location.origin);return n.origin!==window.location.origin||!tt(n.pathname)?null:n.pathname+(n.searchParams.get("surface")==="preview"?"?surface=preview":"")}catch{return null}}function zt(e){const t=oe(e);if(t)try{localStorage.setItem(k,t)}catch{}}function Wt(){try{const e=localStorage.getItem(k);if(!e)return null;const t=oe(e);return t||null}catch{return null}}function $t(){localStorage.removeItem(k)}function Yt(e,t){return`${Be()}/${Q}/${ne(t)}/${encodeURIComponent(e)}`}var G="mcp-hosted-oauth-pending",st="mcp-oauth-score-pending",at=6e5;function B(e){return e?.trim().toLowerCase()??""}function w(e,t){const n=e?.trim()??"";if(!n)return null;if(n.startsWith("#")){const r=Ae(n);if(r)return r;if(t==="scenario"){const s=n.replace(/^#\/?/,"");return s?`/${s}`:null}}return t==="scenario"&&n.startsWith("/")&&!n.startsWith("//")||t==="score"&&n.startsWith("/")&&!n.startsWith("//")?n:Ie(n)}function it(e,t){if(e.serverUrl&&t.serverUrl&&e.serverUrl===t.serverUrl)return!0;const n=B(e.serverName),r=B(t.serverName);return!!n&&!!r&&n===r}function Xt(e){try{localStorage.setItem(G,JSON.stringify({...e,organizationId:e.organizationId??null,projectId:e.projectId??null,serverId:e.serverId??null,serverUrl:e.serverUrl??null,sessionId:e.sessionId??null,...e.connectionIntent?{connectionIntent:e.connectionIntent}:{},...e.pluginSignIn?{pluginSignIn:e.pluginSignIn}:{},accessScope:e.accessScope??null,scenarioId:e.scenarioId??null,returnPath:w(e.returnPath,e.surface),startedAt:Date.now()}))}catch{}}function ct(){try{const e=localStorage.getItem(G);if(!e)return null;const t=JSON.parse(e);return!t||typeof t!="object"||!Y(t.surface)||typeof t.serverName!="string"||typeof t.startedAt!="number"||Date.now()-t.startedAt>at?(E(),null):{surface:t.surface,...t.initiatingUserId===null||typeof t.initiatingUserId=="string"?{initiatingUserId:t.initiatingUserId}:{},...t.connectionIntent?.kind==="add"?{connectionIntent:{kind:"add"}}:t.connectionIntent?.kind==="replace"&&typeof t.connectionIntent.credentialId=="string"?{connectionIntent:{kind:"replace",credentialId:t.connectionIntent.credentialId}}:{},...lt(t.pluginSignIn)?{pluginSignIn:{pluginVersionId:t.pluginSignIn.pluginVersionId,componentKey:t.pluginSignIn.componentKey}}:{},organizationId:typeof t.organizationId=="string"?t.organizationId:null,projectId:typeof t.projectId=="string"?t.projectId:null,serverId:typeof t.serverId=="string"?t.serverId:null,serverName:t.serverName,...typeof t.chatAuthContinuationId=="string"?{chatAuthContinuationId:t.chatAuthContinuationId}:{},serverUrl:typeof t.serverUrl=="string"?t.serverUrl:null,sessionId:typeof t.sessionId=="string"?t.sessionId:null,accessScope:t.accessScope==="project_member"||t.accessScope==="chat_v2"?t.accessScope:void 0,scenarioId:typeof t.scenarioId=="string"?t.scenarioId:null,returnPath:w(typeof t.returnPath=="string"?t.returnPath:typeof t.returnHash=="string"?t.returnHash:null,t.surface),suppressErrorToast:t.suppressErrorToast===!0,suppressSuccessToast:t.suppressSuccessToast===!0,startedAt:t.startedAt}}catch{return E(),null}}function lt(e){const t=e;return typeof t?.pluginVersionId=="string"&&t.pluginVersionId.length>0&&typeof t.componentKey=="string"&&t.componentKey.length>0}function Qt(e){return!!(e?.connectionIntent||e?.pluginSignIn)}function E(){localStorage.removeItem(G)}function ut(){localStorage.removeItem(Je),localStorage.removeItem(st)}function Zt(){E(),ut()}function dt(e,t){if(localStorage.getItem("mcp-oauth-scenario-pending"))return"scenario";const n=re();return n&&n.payload.servers.some(r=>it({serverName:r.serverName,serverUrl:r.serverUrl},{serverName:e,serverUrl:t}))?"scenario":null}function pt(){if(typeof window>"u")return null;const e=S();if(!e||!e.get("code")&&!e.get("error"))return null;const t=ct();if(t)return t;const n=localStorage.getItem("mcp-oauth-pending")?.trim()??"";if(!n)return null;const r=localStorage.getItem(`mcp-serverUrl-${n}`),s=dt(n,r);return s?{surface:s,organizationId:null,projectId:null,serverId:null,serverName:n,serverUrl:r,sessionId:null,accessScope:void 0,scenarioId:null,returnPath:w(localStorage.getItem("mcp-oauth-return-hash"),s),startedAt:Date.now()}:null}function en(e){if(e.returnPath)return w(e.returnPath,e.surface)??I.servers;if(e.surface==="scenario"){const t=re();return t?`/${ne(t.payload.name)}`:I.userTesting}return e.surface==="score"?I.embedScore:I.servers}var se="mcp-onboarding-state",ae="mcp-first-run-server-choice-state";function ie(e){try{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t);return n.status==="started"||n.status==="seen"||n.status==="dismissed"||n.status==="completed"?{status:n.status,startedAt:typeof n.startedAt=="number"?n.startedAt:void 0,shownAt:typeof n.shownAt=="number"?n.shownAt:void 0,completedAt:typeof n.completedAt=="number"?n.completedAt:void 0,attemptedServerName:typeof n.attemptedServerName=="string"?n.attemptedServerName:void 0,connectedServerKind:n.connectedServerKind==="demo"||n.connectedServerKind==="personal"?n.connectedServerKind:void 0,connectedToolCount:typeof n.connectedToolCount=="number"||n.connectedToolCount===null?n.connectedToolCount:void 0,playgroundPromptPending:typeof n.playgroundPromptPending=="boolean"?n.playgroundPromptPending:void 0}:null}catch{return null}}function ce(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function le(){return ie(se)}function ue(e){ce(se,e)}function tn(){const e=le();e?.status==="completed"||e?.status==="dismissed"||e?.status==="seen"&&e.shownAt||ue({status:"started",startedAt:Date.now()})}function nn(){const e=le();e?.status==="completed"||e?.status==="dismissed"||ue({status:"seen",shownAt:Date.now()})}function d(){return ie(ae)}function h(e){ce(ae,e)}function rn(e){const t=d();t?.status==="completed"&&t.shownAt||t?.status==="dismissed"||h({status:"started",startedAt:t?.startedAt??Date.now(),shownAt:t?.shownAt,attemptedServerName:e??t?.attemptedServerName,connectedServerKind:void 0,connectedToolCount:void 0,playgroundPromptPending:t?.playgroundPromptPending})}function on(){const e=d();e?.status==="completed"&&e.shownAt||e?.status==="dismissed"||h({status:"started",startedAt:e?.startedAt??Date.now(),shownAt:Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:e?.playgroundPromptPending})}function sn(){const e=d();e?.status==="completed"&&e.shownAt||h({status:"dismissed"})}function an(){const e=d();h({status:"completed",completedAt:Date.now(),shownAt:e?.shownAt??Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:e?.playgroundPromptPending})}function cn(e,t){const n=d();h({status:"started",startedAt:n?.startedAt??Date.now(),shownAt:n?.shownAt??Date.now(),attemptedServerName:n?.attemptedServerName,connectedServerKind:e,connectedToolCount:t,playgroundPromptPending:n?.playgroundPromptPending})}function ln(){const e=d();h({status:"completed",completedAt:e?.completedAt??Date.now(),shownAt:e?.shownAt??Date.now(),attemptedServerName:e?.attemptedServerName,connectedServerKind:e?.connectedServerKind,connectedToolCount:e?.connectedToolCount,playgroundPromptPending:!0})}function un(){const e=d();!e||e.status!=="completed"||h({...e,playgroundPromptPending:!1})}function dn(e,t,n,r=!1,s=!1){if(r&&!s)return!1;const[o=""]=t.replace(/^#?\/?/,"").split("?"),i=o.replace(/\/+$/,"");return i!=="servers"&&i!=="connect"&&i!=="clients"&&i!=="hosts"&&i!=="home"&&i!=="playground"&&i||n?.status==="dismissed"||n?.status==="completed"&&n.shownAt?!1:n?.status==="started"&&n.shownAt?!0:!e}var pn="mcpjam:first-run-oauth-overlay-ready",hn="mcpjam:first-run-oauth-cancelled";function mn(){if(window.location.pathname!=="/oauth/callback"&&!window.location.pathname.startsWith("/oauth/callback/"))return null;const e=d();if(e?.status!=="started"||!e.attemptedServerName)return null;const t=pt();return t?.surface==="project"&&t.serverName===e.attemptedServerName?e.attemptedServerName:null}export{bt as $,tt as A,zt as B,ct as C,Yt as D,Je as E,Jt as F,v as G,Ht as H,jt as I,xt as J,Gt as K,ne as L,nt as M,re as N,qt as O,Wt as P,Rt as Q,Bt as R,Qt as S,Xt as T,Ft as U,Vt as V,He as W,Dt as X,Mt as Y,Ut as Z,G as _,St as _t,un as a,Le as at,pt as b,Et as bt,cn as c,yt as ct,on as d,C as dt,Lt as et,nn as f,vt as ft,ue as g,R as gt,le as h,Se as ht,dn as i,S as it,Be as j,$t as k,sn as l,z as lt,d as m,we as mt,pn as n,Ct as nt,ln as o,L as ot,tn as p,wt as pt,kt as q,mn as r,ke as rt,an as s,Pt as st,hn as t,W as tt,rn as u,Re as ut,st as v,Nt as vt,en as w,it as x,Tt as xt,Zt as y,At as yt,Kt as z};
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=first-run-oauth-return-
|
|
3
|
+
//# sourceMappingURL=first-run-oauth-return-CFW2tqzu.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as p}from"./rolldown-runtime-
|
|
1
|
+
import{o as p}from"./rolldown-runtime-BlpueFg6.js";import{n as _}from"./react-dom-DXowvrFG.js";import{r as y}from"./bundle-mjs-BGe1waGK.js";import{i as x,r as E,t as I}from"./chunk-D32TOXHM-C-gMffNp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.27.1"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7e836607-0ce9-4d60-8eec-e795e62eb668",e._sentryDebugIdIdentifier="sentry-dbid-7e836607-0ce9-4d60-8eec-e795e62eb668")}catch{}})();var n=p(_(),1),w=y(),D=({code:e,isIncomplete:r=!1,language:t,maxHeight:d,raw:i,className:m,startLine:f,lineNumbers:g,...c})=>{let{shikiTheme:o}=(0,n.useContext)(E),s=I(),[b,a]=(0,n.useState)(i);return(0,n.useEffect)(()=>{if(!s){a(i);return}let u=!0,l=s.highlight({code:e,isIncomplete:r,language:t,themes:o},h=>{u&&a(h)});return l&&a(l),()=>{u=!1}},[e,r,t,o,s,i]),(0,w.jsx)(x,{className:m,language:t,lineNumbers:g,maxHeight:d,result:b,startLine:f,...c})};export{D as HighlightedCodeBlockBody};
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=highlighted-body-KQOG7T2V-
|
|
3
|
+
//# sourceMappingURL=highlighted-body-KQOG7T2V-BufAIVu0.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/caniuse-bootstrap-
|
|
2
|
-
import{o as f}from"./rolldown-runtime-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/caniuse-bootstrap-C-sKeXoq.js","assets/rolldown-runtime-BlpueFg6.js","assets/react-dom-DXowvrFG.js","assets/CaniuseLoadingScreen-DFga82Px.js","assets/bundle-mjs-BGe1waGK.js","assets/app-navigation-CTBnrg26.js","assets/project-route-B8ycjI6Q.js","assets/mcp-init-BWmQoGiF.js","assets/feature-flags-Cbn8gAeC.js","assets/PosthogUtils-BAwbC5iX.js","assets/error-reporting-C7685g3J.js","assets/module-BA6blRdw.js","assets/CaniuseCapabilityPage-CrC-cTZL.js","assets/preload-helper-CQSqs-Ur.js","assets/CaniuseCapabilityPage-Bm4ltF0u.css","assets/app-bootstrap-DzzSTL6f.js","assets/first-run-oauth-return-CFW2tqzu.js","assets/first-run-oauth-return-BMVvcEcQ.css","assets/access-link-BJMsYDmK.js","assets/trace-timeline-CLTmhMpA.js","assets/session-revoked-BJat-_na.js","assets/chunk-D32TOXHM-C-gMffNp.js","assets/server-feature-flags-CFqtsG2I.js","assets/posthog-bundled-extensions-Cs4q3GVP.js","assets/app-bootstrap-CcTl3jng.css","assets/error-reporting-DmYc69Ih.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as f}from"./rolldown-runtime-BlpueFg6.js";import{A as p,j as h}from"./project-route-B8ycjI6Q.js";import{Q as g,X as x,Z as b,at as _,ft as y,n as u,r as v}from"./first-run-oauth-return-CFW2tqzu.js";import{a as w,u as j}from"./access-link-BJMsYDmK.js";import{n as E}from"./react-dom-DXowvrFG.js";import{i as N,n as R,r as l,t as C}from"./CaniuseLoadingScreen-DFga82Px.js";import{r as L}from"./bundle-mjs-BGe1waGK.js";import{Cr as O,br as A,xr as P}from"./app-navigation-CTBnrg26.js";import{t as d}from"./preload-helper-CQSqs-Ur.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"3.27.1"};var o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="079ebf5f-b48b-4ac9-918e-910e8c603ef6",n._sentryDebugIdIdentifier="sentry-dbid-079ebf5f-b48b-4ac9-918e-910e8c603ef6")}catch{}})();(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})();var T=f(E(),1),I=N(),t=L();function S({serverName:n}){return(0,t.jsxs)("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-background p-4 text-foreground",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-overlay backdrop-blur-sm","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative z-10 w-full max-w-[408px] rounded-xl border border-border bg-card p-6",role:"status","aria-label":`Connecting to ${n}`,children:[(0,t.jsxs)("h1",{className:"text-[17px] leading-6 font-bold tracking-[-0.02em] text-card-foreground",children:["Connecting to ",n]}),(0,t.jsx)("p",{className:"mt-1 text-[12.5px] leading-[1.55] text-muted-foreground",children:"Checking the connection before MCPJam opens the playground."}),(0,t.jsx)("ol",{className:"mt-5 grid gap-2.5","aria-label":"Connection progress",children:["Connect server","Negotiate MCP compatibility","Load tools"].map((o,s)=>(0,t.jsx)("li",{className:"rounded-md border border-border bg-muted/25 px-3 py-2.5 text-left",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center text-muted-foreground",children:s===0?(0,t.jsx)(A,{className:"size-4 animate-spin text-primary","aria-hidden":!0}):(0,t.jsx)(P,{className:"size-3","aria-hidden":!0})}),(0,t.jsx)("span",{className:s===0?"text-[12px] leading-5 font-medium text-card-foreground":"text-[12px] leading-5 text-muted-foreground",children:o})]})},o))})]})]})}w();_();y();j();g();var m=b();if(m)l.render((0,t.jsx)(T.StrictMode,{children:(0,t.jsx)(x,{returnToElectronUrl:m})}));else{const n=v();let o=null,s=null,a=null,e=null;const r=()=>{a!==null&&(window.clearTimeout(a),a=null),window.removeEventListener(u,r),e?.disconnect(),e=null;const i=o,c=s;o=null,s=null,queueMicrotask(()=>{i?.unmount(),c?.remove()})};if(n){s=document.createElement("div"),s.id="first-run-oauth-boot-overlay",document.body.append(s),o=(0,I.createRoot)(s),o.render((0,t.jsx)(S,{serverName:n})),window.addEventListener(u,r,{once:!0});const i=document.getElementById("root");i&&(e=new MutationObserver(()=>{i.querySelector('[role="alert"]')&&r()}),e.observe(i,{childList:!0,subtree:!0})),a=window.setTimeout(r,2e4)}l.render(p(window.location.hostname)?(0,t.jsx)(C,{}):(0,t.jsx)(R,{})),(h(window.location.hostname,window.location.pathname)?d(()=>import("./caniuse-bootstrap-C-sKeXoq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])):d(()=>import("./app-bootstrap-DzzSTL6f.js"),__vite__mapDeps([15,1,6,9,2,16,4,5,7,17,18,3,8,10,11,12,13,14,19,20,21,22,23,24]))).catch(i=>{console.error("MCPJam app bootstrap failed",i),r(),l.render((0,t.jsxs)("div",{role:"alert",className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-background p-4 text-foreground",children:[(0,t.jsx)("p",{children:"MCPJam couldn't load. Check your connection and try again."}),(0,t.jsx)(O,{onClick:()=>window.location.reload(),children:"Reload MCPJam"})]})),d(async()=>{const{reportCaught:c}=await import("./error-reporting-DmYc69Ih.js");return{reportCaught:c}},__vite__mapDeps([25,10,1,9,6,2,7,11])).then(({reportCaught:c})=>c(i,{source:"app_bootstrap"})).catch(()=>{})})}
|
|
3
3
|
|
|
4
|
-
//# sourceMappingURL=index-
|
|
4
|
+
//# sourceMappingURL=index-CCQWRMU8.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as yt,t as Ct}from"./rolldown-runtime-
|
|
1
|
+
import{i as yt,t as Ct}from"./rolldown-runtime-BlpueFg6.js";(function(){try{var ct=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};ct.SENTRY_RELEASE={id:"3.27.1"};var pt=new ct.Error().stack;pt&&(ct._sentryDebugIds=ct._sentryDebugIds||{},ct._sentryDebugIds[pt]="c11d2975-2522-44a2-a705-b4ba4e7015b7",ct._sentryDebugIdIdentifier="sentry-dbid-c11d2975-2522-44a2-a705-b4ba4e7015b7")}catch{}})();var At=Ct(((ct,pt)=>{(function(b){typeof ct=="object"&&typeof pt<"u"?pt.exports=b():typeof define=="function"&&define.amd?define([],b):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=b()})(function(){return(function b(U,x,l){function h(v,w){if(!x[v]){if(!U[v]){var m=typeof yt=="function"&&yt;if(!w&&m)return m(v,!0);if(n)return n(v,!0);var g=new Error("Cannot find module '"+v+"'");throw g.code="MODULE_NOT_FOUND",g}var i=x[v]={exports:{}};U[v][0].call(i.exports,function(d){var e=U[v][1][d];return h(e||d)},i,i.exports,b,U,x,l)}return x[v].exports}for(var n=typeof yt=="function"&&yt,u=0;u<l.length;u++)h(l[u]);return h})({1:[function(b,U,x){"use strict";var l=b("./utils"),h=b("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";x.encode=function(u){for(var v,w,m,g,i,d,e,o=[],s=0,c=u.length,y=c,p=l.getTypeOf(u)!=="string";s<u.length;)y=c-s,m=p?(v=u[s++],w=s<c?u[s++]:0,s<c?u[s++]:0):(v=u.charCodeAt(s++),w=s<c?u.charCodeAt(s++):0,s<c?u.charCodeAt(s++):0),g=v>>2,i=(3&v)<<4|w>>4,d=1<y?(15&w)<<2|m>>6:64,e=2<y?63&m:64,o.push(n.charAt(g)+n.charAt(i)+n.charAt(d)+n.charAt(e));return o.join("")},x.decode=function(u){var v,w,m,g,i,d,e=0,o=0,s="data:";if(u.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var c,y=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===n.charAt(64)&&y--,u.charAt(u.length-2)===n.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=h.uint8array?new Uint8Array(0|y):new Array(0|y);e<u.length;)v=n.indexOf(u.charAt(e++))<<2|(g=n.indexOf(u.charAt(e++)))>>4,w=(15&g)<<4|(i=n.indexOf(u.charAt(e++)))>>2,m=(3&i)<<6|(d=n.indexOf(u.charAt(e++))),c[o++]=v,i!==64&&(c[o++]=w),d!==64&&(c[o++]=m);return c}},{"./support":30,"./utils":32}],2:[function(b,U,x){"use strict";var l=b("./external"),h=b("./stream/DataWorker"),n=b("./stream/Crc32Probe"),u=b("./stream/DataLengthProbe");function v(w,m,g,i,d){this.compressedSize=w,this.uncompressedSize=m,this.crc32=g,this.compression=i,this.compressedContent=d}v.prototype={getContentWorker:function(){var w=new h(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),m=this;return w.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),w},getCompressedWorker:function(){return new h(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(w,m,g){return w.pipe(new n).pipe(new u("uncompressedSize")).pipe(m.compressWorker(g)).pipe(new u("compressedSize")).withStreamInfo("compression",m)},U.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(b,U,x){"use strict";var l=b("./stream/GenericWorker");x.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},x.DEFLATE=b("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(b,U,x){"use strict";var l=b("./utils"),h=(function(){for(var n,u=[],v=0;v<256;v++){n=v;for(var w=0;w<8;w++)n=1&n?3988292384^n>>>1:n>>>1;u[v]=n}return u})();U.exports=function(n,u){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?(function(v,w,m,g){var i=h,d=g+m;v^=-1;for(var e=g;e<d;e++)v=v>>>8^i[255&(v^w[e])];return-1^v})(0|u,n,n.length,0):(function(v,w,m,g){var i=h,d=g+m;v^=-1;for(var e=g;e<d;e++)v=v>>>8^i[255&(v^w.charCodeAt(e))];return-1^v})(0|u,n,n.length,0):0}},{"./utils":32}],5:[function(b,U,x){"use strict";x.base64=!1,x.binary=!1,x.dir=!1,x.createFolders=!0,x.date=null,x.compression=null,x.compressionOptions=null,x.comment=null,x.unixPermissions=null,x.dosPermissions=null},{}],6:[function(b,U,x){"use strict";var l=null;l=typeof Promise<"u"?Promise:b("lie"),U.exports={Promise:l}},{lie:37}],7:[function(b,U,x){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",h=b("pako"),n=b("./utils"),u=b("./stream/GenericWorker"),v=l?"uint8array":"array";function w(m,g){u.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=g,this.meta={}}x.magic="\b\0",n.inherits(w,u),w.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(v,m.data),!1)},w.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},w.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},w.prototype._createPako=function(){this._pako=new h[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(g){m.push({data:g,meta:m.meta})}},x.compressWorker=function(m){return new w("Deflate",m)},x.uncompressWorker=function(){return new w("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(b,U,x){"use strict";function l(i,d){var e,o="";for(e=0;e<d;e++)o+=String.fromCharCode(255&i),i>>>=8;return o}function h(i,d,e,o,s,c){var y,p,z=i.file,F=i.compression,T=c!==v.utf8encode,W=n.transformTo("string",c(z.name)),C=n.transformTo("string",v.utf8encode(z.name)),K=z.comment,V=n.transformTo("string",c(K)),_=n.transformTo("string",v.utf8encode(K)),O=C.length!==z.name.length,r=_.length!==K.length,R="",q="",P="",$=z.dir,L=z.date,J={crc32:0,compressedSize:0,uncompressedSize:0};d&&!e||(J.crc32=i.crc32,J.compressedSize=i.compressedSize,J.uncompressedSize=i.uncompressedSize);var A=0;d&&(A|=8),T||!O&&!r||(A|=2048);var E=0,X=0;$&&(E|=16),s==="UNIX"?(X=798,E|=(function(M,nt){var ot=M;return M||(ot=nt?16893:33204),(65535&ot)<<16})(z.unixPermissions,$)):(X=20,E|=(function(M){return 63&(M||0)})(z.dosPermissions)),y=L.getUTCHours(),y<<=6,y|=L.getUTCMinutes(),y<<=5,y|=L.getUTCSeconds()/2,p=L.getUTCFullYear()-1980,p<<=4,p|=L.getUTCMonth()+1,p<<=5,p|=L.getUTCDate(),O&&(q=l(1,1)+l(w(W),4)+C,R+="up"+l(q.length,2)+q),r&&(P=l(1,1)+l(w(V),4)+_,R+="uc"+l(P.length,2)+P);var H="";return H+=`
|
|
2
2
|
\0`,H+=l(A,2),H+=F.magic,H+=l(y,2),H+=l(p,2),H+=l(J.crc32,4),H+=l(J.compressedSize,4),H+=l(J.uncompressedSize,4),H+=l(W.length,2),H+=l(R.length,2),{fileRecord:m.LOCAL_FILE_HEADER+H+W+R,dirRecord:m.CENTRAL_FILE_HEADER+l(X,2)+H+l(V.length,2)+"\0\0\0\0"+l(E,4)+l(o,4)+W+R+V}}var n=b("../utils"),u=b("../stream/GenericWorker"),v=b("../utf8"),w=b("../crc32"),m=b("../signature");function g(i,d,e,o){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=e,this.encodeFileName=o,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(g,u),g.prototype.push=function(i){var d=i.meta.percent||0,e=this.entriesCount,o=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:e?(d+100*(e-o-1))/e:100}}))},g.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var e=h(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:e.fileRecord,meta:{percent:0}})}else this.accumulate=!0},g.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,e=h(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),d)this.push({data:(function(o){return m.DATA_DESCRIPTOR+l(o.crc32,4)+l(o.compressedSize,4)+l(o.uncompressedSize,4)})(i),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},g.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var e=this.bytesWritten-i,o=(function(s,c,y,p,z){var F=n.transformTo("string",z(p));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(s,2)+l(s,2)+l(c,4)+l(y,4)+l(F.length,2)+F})(this.dirRecords.length,e,i,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},g.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},g.prototype.registerPrevious=function(i){this._sources.push(i);var d=this;return i.on("data",function(e){d.processChunk(e)}),i.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),i.on("error",function(e){d.error(e)}),this},g.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},g.prototype.error=function(i){var d=this._sources;if(!u.prototype.error.call(this,i))return!1;for(var e=0;e<d.length;e++)try{d[e].error(i)}catch{}return!0},g.prototype.lock=function(){u.prototype.lock.call(this);for(var i=this._sources,d=0;d<i.length;d++)i[d].lock()},U.exports=g},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(b,U,x){"use strict";var l=b("../compressions"),h=b("./ZipFileWorker");x.generateWorker=function(n,u,v){var w=new h(u.streamFiles,v,u.platform,u.encodeFileName),m=0;try{n.forEach(function(g,i){m++;var d=(function(c,y){var p=c||y,z=l[p];if(!z)throw new Error(p+" is not a valid compression method !");return z})(i.options.compression,u.compression),e=i.options.compressionOptions||u.compressionOptions||{},o=i.dir,s=i.date;i._compressWorker(d,e).withStreamInfo("file",{name:g,dir:o,date:s,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(w)}),w.entriesCount=m}catch(g){w.error(g)}return w}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(b,U,x){"use strict";function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var h=new l;for(var n in this)typeof this[n]!="function"&&(h[n]=this[n]);return h}}(l.prototype=b("./object")).loadAsync=b("./load"),l.support=b("./support"),l.defaults=b("./defaults"),l.version="3.10.2",l.loadAsync=function(h,n){return new l().loadAsync(h,n)},l.external=b("./external"),U.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(b,U,x){"use strict";var l=b("./utils"),h=b("./external"),n=b("./utf8"),u=b("./zipEntries"),v=b("./stream/Crc32Probe"),w=b("./nodejsUtils");function m(g){return new h.Promise(function(i,d){var e=g.decompressed.getContentWorker().pipe(new v);e.on("error",function(o){d(o)}).on("end",function(){e.streamInfo.crc32!==g.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}U.exports=function(g,i){var d=this;return i=l.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),w.isNode&&w.isStream(g)?h.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",g,!0,i.optimizedBinaryString,i.base64).then(function(e){var o=new u(i);return o.load(e),o}).then(function(e){var o=[h.Promise.resolve(e)],s=e.files;if(i.checkCRC32)for(var c=0;c<s.length;c++)o.push(m(s[c]));return h.Promise.all(o)}).then(function(e){for(var o=e.shift(),s=o.files,c=0;c<s.length;c++){var y=s[c],p=y.fileNameStr,z=l.resolve(y.fileNameStr);d.file(z,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:i.createFolders}),y.dir||(d.file(z).unsafeOriginalName=p)}return o.zipComment.length&&(d.comment=o.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(b,U,x){"use strict";var l=b("../utils"),h=b("../stream/GenericWorker");function n(u,v){h.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(v)}l.inherits(n,h),n.prototype._bindStream=function(u){var v=this;(this._stream=u).pause(),u.on("data",function(w){v.push({data:w,meta:{percent:0}})}).on("error",function(w){v.isPaused?this.generatedError=w:v.error(w)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},n.prototype.pause=function(){return!!h.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},U.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(b,U,x){"use strict";var l=b("readable-stream").Readable;function h(n,u,v){l.call(this,u),this._helper=n;var w=this;n.on("data",function(m,g){w.push(m)||w._helper.pause(),v&&v(g)}).on("error",function(m){w.emit("error",m)}).on("end",function(){w.push(null)})}b("../utils").inherits(h,l),h.prototype._read=function(){this._helper.resume()},U.exports=h},{"../utils":32,"readable-stream":16}],14:[function(b,U,x){"use strict";U.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,h){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,h);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,h)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var h=new Buffer(l);return h.fill(0),h},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(b,U,x){"use strict";function l(p,z,F){var T,W=n.getTypeOf(z),C=n.extend(F||{},w);C.date=C.date||new Date,C.compression!==null&&(C.compression=C.compression.toUpperCase()),typeof C.unixPermissions=="string"&&(C.unixPermissions=parseInt(C.unixPermissions,8)),C.unixPermissions&&16384&C.unixPermissions&&(C.dir=!0),C.dosPermissions&&16&C.dosPermissions&&(C.dir=!0),C.dir&&(p=s(p)),C.createFolders&&(T=o(p))&&c.call(this,T,!0);var K=W==="string"&&C.binary===!1&&C.base64===!1;F&&F.binary!==void 0||(C.binary=!K),(z instanceof m&&z.uncompressedSize===0||C.dir||!z||z.length===0)&&(C.base64=!1,C.binary=!0,z="",C.compression="STORE",W="string");var V=null;V=z instanceof m||z instanceof u?z:d.isNode&&d.isStream(z)?new e(p,z):n.prepareContent(p,z,C.binary,C.optimizedBinaryString,C.base64);var _=new g(p,V,C);this.files[p]=_}var h=b("./utf8"),n=b("./utils"),u=b("./stream/GenericWorker"),v=b("./stream/StreamHelper"),w=b("./defaults"),m=b("./compressedObject"),g=b("./zipObject"),i=b("./generate"),d=b("./nodejsUtils"),e=b("./nodejs/NodejsStreamInputAdapter"),o=function(p){p.slice(-1)==="/"&&(p=p.substring(0,p.length-1));var z=p.lastIndexOf("/");return 0<z?p.substring(0,z):""},s=function(p){return p.slice(-1)!=="/"&&(p+="/"),p},c=function(p,z){return z=z!==void 0?z:w.createFolders,p=s(p),this.files[p]||l.call(this,p,null,{dir:!0,createFolders:z}),this.files[p]};function y(p){return Object.prototype.toString.call(p)==="[object RegExp]"}U.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(p){var z,F,T;for(z in this.files)T=this.files[z],(F=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&p(F,T)},filter:function(p){var z=[];return this.forEach(function(F,T){p(F,T)&&z.push(T)}),z},file:function(p,z,F){if(arguments.length!==1)return p=this.root+p,l.call(this,p,z,F),this;if(y(p)){var T=p;return this.filter(function(C,K){return!K.dir&&T.test(C)})}var W=this.files[this.root+p];return W&&!W.dir?W:null},folder:function(p){if(!p)return this;if(y(p))return this.filter(function(W,C){return C.dir&&p.test(W)});var z=this.root+p,F=c.call(this,z),T=this.clone();return T.root=F.name,T},remove:function(p){p=this.root+p;var z=this.files[p];if(z||(p.slice(-1)!=="/"&&(p+="/"),z=this.files[p]),z&&!z.dir)delete this.files[p];else for(var F=this.filter(function(W,C){return C.name.slice(0,p.length)===p}),T=0;T<F.length;T++)delete this.files[F[T].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(p){var z,F={};try{if((F=n.extend(p||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:h.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");n.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var T=F.comment||this.comment||"";z=i.generateWorker(this,F,T)}catch(W){(z=new u("error")).error(W)}return new v(z,F.type||"string",F.mimeType)},generateAsync:function(p,z){return this.generateInternalStream(p).accumulate(z)},generateNodeStream:function(p,z){return(p=p||{}).type||(p.type="nodebuffer"),this.generateInternalStream(p).toNodejsStream(z)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(b,U,x){"use strict";U.exports=b("stream")},{stream:void 0}],17:[function(b,U,x){"use strict";var l=b("./DataReader");function h(n){l.call(this,n);for(var u=0;u<this.data.length;u++)n[u]=255&n[u]}b("../utils").inherits(h,l),h.prototype.byteAt=function(n){return this.data[this.zero+n]},h.prototype.lastIndexOfSignature=function(n){for(var u=n.charCodeAt(0),v=n.charCodeAt(1),w=n.charCodeAt(2),m=n.charCodeAt(3),g=this.length-4;0<=g;--g)if(this.data[g]===u&&this.data[g+1]===v&&this.data[g+2]===w&&this.data[g+3]===m)return g-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var u=n.charCodeAt(0),v=n.charCodeAt(1),w=n.charCodeAt(2),m=n.charCodeAt(3),g=this.readData(4);return u===g[0]&&v===g[1]&&w===g[2]&&m===g[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},U.exports=h},{"../utils":32,"./DataReader":18}],18:[function(b,U,x){"use strict";var l=b("../utils");function h(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}h.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var u,v=0;for(this.checkOffset(n),u=this.index+n-1;u>=this.index;u--)v=(v<<8)+this.byteAt(u);return this.index+=n,v},readString:function(n){return l.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},U.exports=h},{"../utils":32}],19:[function(b,U,x){"use strict";var l=b("./Uint8ArrayReader");function h(n){l.call(this,n)}b("../utils").inherits(h,l),h.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},U.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(b,U,x){"use strict";var l=b("./DataReader");function h(n){l.call(this,n)}b("../utils").inherits(h,l),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},h.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},U.exports=h},{"../utils":32,"./DataReader":18}],21:[function(b,U,x){"use strict";var l=b("./ArrayReader");function h(n){l.call(this,n)}b("../utils").inherits(h,l),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},U.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(b,U,x){"use strict";var l=b("../utils"),h=b("../support"),n=b("./ArrayReader"),u=b("./StringReader"),v=b("./NodeBufferReader"),w=b("./Uint8ArrayReader");U.exports=function(m){var g=l.getTypeOf(m);return l.checkSupport(g),g!=="string"||h.uint8array?g==="nodebuffer"?new v(m):h.uint8array?new w(l.transformTo("uint8array",m)):new n(l.transformTo("array",m)):new u(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(b,U,x){"use strict";x.LOCAL_FILE_HEADER="PK",x.CENTRAL_FILE_HEADER="PK",x.CENTRAL_DIRECTORY_END="PK",x.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",x.ZIP64_CENTRAL_DIRECTORY_END="PK",x.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(b,U,x){"use strict";var l=b("./GenericWorker"),h=b("../utils");function n(u){l.call(this,"ConvertWorker to "+u),this.destType=u}h.inherits(n,l),n.prototype.processChunk=function(u){this.push({data:h.transformTo(this.destType,u.data),meta:u.meta})},U.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(b,U,x){"use strict";var l=b("./GenericWorker"),h=b("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}b("../utils").inherits(n,l),n.prototype.processChunk=function(u){this.streamInfo.crc32=h(u.data,this.streamInfo.crc32||0),this.push(u)},U.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(b,U,x){"use strict";var l=b("../utils"),h=b("./GenericWorker");function n(u){h.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}l.inherits(n,h),n.prototype.processChunk=function(u){if(u){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+u.data.length}h.prototype.processChunk.call(this,u)},U.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(b,U,x){"use strict";var l=b("../utils"),h=b("./GenericWorker");function n(u){h.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(w){v.dataIsReady=!0,v.data=w,v.max=w&&w.length||0,v.type=l.getTypeOf(w),v.isPaused||v._tickAndRepeat()},function(w){v.error(w)})}l.inherits(n,h),n.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,v);break;case"uint8array":u=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":u=this.data.slice(this.index,v)}return this.index=v,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},U.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(b,U,x){"use strict";function l(h){this.name=h||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(h){this.emit("data",h)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(h){this.emit("error",h)}return!0},error:function(h){return!this.isFinished&&(this.isPaused?this.generatedError=h:(this.isFinished=!0,this.emit("error",h),this.previous&&this.previous.error(h),this.cleanUp()),!0)},on:function(h,n){return this._listeners[h].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(h,n){if(this._listeners[h])for(var u=0;u<this._listeners[h].length;u++)this._listeners[h][u].call(this,n)},pipe:function(h){return h.registerPrevious(this)},registerPrevious:function(h){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=h.streamInfo,this.mergeStreamInfo(),this.previous=h;var n=this;return h.on("data",function(u){n.processChunk(u)}),h.on("end",function(){n.end()}),h.on("error",function(u){n.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var h=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),h=!0),this.previous&&this.previous.resume(),!h},flush:function(){},processChunk:function(h){this.push(h)},withStreamInfo:function(h,n){return this.extraStreamInfo[h]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var h in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,h)&&(this.streamInfo[h]=this.extraStreamInfo[h])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var h="Worker "+this.name;return this.previous?this.previous+" -> "+h:h}},U.exports=l},{}],29:[function(b,U,x){"use strict";var l=b("../utils"),h=b("./ConvertWorker"),n=b("./GenericWorker"),u=b("../base64"),v=b("../support"),w=b("../external"),m=null;if(v.nodestream)try{m=b("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(d,e){return new w.Promise(function(o,s){var c=[],y=d._internalType,p=d._outputType,z=d._mimeType;d.on("data",function(F,T){c.push(F),e&&e(T)}).on("error",function(F){c=[],s(F)}).on("end",function(){try{o((function(F,T,W){switch(F){case"blob":return l.newBlob(l.transformTo("arraybuffer",T),W);case"base64":return u.encode(T);default:return l.transformTo(F,T)}})(p,(function(F,T){var W,C=0,K=null,V=0;for(W=0;W<T.length;W++)V+=T[W].length;switch(F){case"string":return T.join("");case"array":return Array.prototype.concat.apply([],T);case"uint8array":for(K=new Uint8Array(V),W=0;W<T.length;W++)K.set(T[W],C),C+=T[W].length;return K;case"nodebuffer":return Buffer.concat(T);default:throw new Error("concat : unsupported type '"+F+"'")}})(y,c),z))}catch(F){s(F)}c=[]}).resume()})}function i(d,e,o){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=o,l.checkSupport(s),this._worker=d.pipe(new h(s)),d.lock()}catch(c){this._worker=new n("error"),this._worker.error(c)}}i.prototype={accumulate:function(d){return g(this,d)},on:function(d,e){var o=this;return d==="data"?this._worker.on(d,function(s){e.call(o,s.data,s.meta)}):this._worker.on(d,function(){l.delay(e,arguments,o)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},d)}},U.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(b,U,x){"use strict";if(x.base64=!0,x.array=!0,x.string=!0,x.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",x.nodebuffer=typeof Buffer<"u",x.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")x.blob=!1;else{var l=new ArrayBuffer(0);try{x.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);h.append(l),x.blob=h.getBlob("application/zip").size===0}catch{x.blob=!1}}}try{x.nodestream=!!b("readable-stream").Readable}catch{x.nodestream=!1}},{"readable-stream":16}],31:[function(b,U,x){"use strict";for(var l=b("./utils"),h=b("./support"),n=b("./nodejsUtils"),u=b("./stream/GenericWorker"),v=new Array(256),w=0;w<256;w++)v[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;v[254]=v[254]=1;function m(){u.call(this,"utf-8 decode"),this.leftOver=null}function g(){u.call(this,"utf-8 encode")}x.utf8encode=function(i){return h.nodebuffer?n.newBufferFrom(i,"utf-8"):(function(d){var e,o,s,c,y,p=d.length,z=0;for(c=0;c<p;c++)(64512&(o=d.charCodeAt(c)))==55296&&c+1<p&&(64512&(s=d.charCodeAt(c+1)))==56320&&(o=65536+(o-55296<<10)+(s-56320),c++),z+=o<128?1:o<2048?2:o<65536?3:4;for(e=h.uint8array?new Uint8Array(z):new Array(z),c=y=0;y<z;c++)(64512&(o=d.charCodeAt(c)))==55296&&c+1<p&&(64512&(s=d.charCodeAt(c+1)))==56320&&(o=65536+(o-55296<<10)+(s-56320),c++),o<128?e[y++]=o:(o<2048?e[y++]=192|o>>>6:(o<65536?e[y++]=224|o>>>12:(e[y++]=240|o>>>18,e[y++]=128|o>>>12&63),e[y++]=128|o>>>6&63),e[y++]=128|63&o);return e})(i)},x.utf8decode=function(i){return h.nodebuffer?l.transformTo("nodebuffer",i).toString("utf-8"):(function(d){var e,o,s,c,y=d.length,p=new Array(2*y);for(e=o=0;e<y;)if((s=d[e++])<128)p[o++]=s;else if(4<(c=v[s]))p[o++]=65533,e+=c-1;else{for(s&=c===2?31:c===3?15:7;1<c&&e<y;)s=s<<6|63&d[e++],c--;1<c?p[o++]=65533:s<65536?p[o++]=s:(s-=65536,p[o++]=55296|s>>10&1023,p[o++]=56320|1023&s)}return p.length!==o&&(p.subarray?p=p.subarray(0,o):p.length=o),l.applyFromCharCode(p)})(i=l.transformTo(h.uint8array?"uint8array":"array",i))},l.inherits(m,u),m.prototype.processChunk=function(i){var d=l.transformTo(h.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var e=d;(d=new Uint8Array(e.length+this.leftOver.length)).set(this.leftOver,0),d.set(e,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var o=(function(c,y){var p;for((y=y||c.length)>c.length&&(y=c.length),p=y-1;0<=p&&(192&c[p])==128;)p--;return p<0||p===0?y:p+v[c[p]]>y?p:y})(d),s=d;o!==d.length&&(h.uint8array?(s=d.subarray(0,o),this.leftOver=d.subarray(o,d.length)):(s=d.slice(0,o),this.leftOver=d.slice(o,d.length))),this.push({data:x.utf8decode(s),meta:i.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:x.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},x.Utf8DecodeWorker=m,l.inherits(g,u),g.prototype.processChunk=function(i){this.push({data:x.utf8encode(i.data),meta:i.meta})},x.Utf8EncodeWorker=g},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(b,U,x){"use strict";var l=b("./support"),h=b("./base64"),n=b("./nodejsUtils"),u=b("./external");function v(e){return e}function w(e,o){for(var s=0;s<e.length;++s)o[s]=255&e.charCodeAt(s);return o}b("setimmediate"),x.newBlob=function(e,o){x.checkSupport("blob");try{return new Blob([e],{type:o})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(e),s.getBlob(o)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(e,o,s){var c=[],y=0,p=e.length;if(p<=s)return String.fromCharCode.apply(null,e);for(;y<p;)o==="array"||o==="nodebuffer"?c.push(String.fromCharCode.apply(null,e.slice(y,Math.min(y+s,p)))):c.push(String.fromCharCode.apply(null,e.subarray(y,Math.min(y+s,p)))),y+=s;return c.join("")},stringifyByChar:function(e){for(var o="",s=0;s<e.length;s++)o+=String.fromCharCode(e[s]);return o},applyCanBeUsed:{uint8array:(function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}})()}};function g(e){var o=65536,s=x.getTypeOf(e),c=!0;if(s==="uint8array"?c=m.applyCanBeUsed.uint8array:s==="nodebuffer"&&(c=m.applyCanBeUsed.nodebuffer),c)for(;1<o;)try{return m.stringifyByChunk(e,s,o)}catch{o=Math.floor(o/2)}return m.stringifyByChar(e)}function i(e,o){for(var s=0;s<e.length;s++)o[s]=e[s];return o}x.applyFromCharCode=g;var d={};d.string={string:v,array:function(e){return w(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return w(e,new Uint8Array(e.length))},nodebuffer:function(e){return w(e,n.allocBuffer(e.length))}},d.array={string:g,array:v,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},d.arraybuffer={string:function(e){return g(new Uint8Array(e))},array:function(e){return i(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:v,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:g,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:v,nodebuffer:function(e){return n.newBufferFrom(e)}},d.nodebuffer={string:g,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:v},x.transformTo=function(e,o){return o=o||"",e?(x.checkSupport(e),d[x.getTypeOf(o)][e](o)):o},x.resolve=function(e){for(var o=e.split("/"),s=[],c=0;c<o.length;c++){var y=o[c];y==="."||y===""&&c!==0&&c!==o.length-1||(y===".."?s.pop():s.push(y))}return s.join("/")},x.getTypeOf=function(e){if(typeof e=="string")return"string";var o=Object.prototype.toString.call(e);return o==="[object Array]"?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&o==="[object Uint8Array]"?"uint8array":l.arraybuffer&&o==="[object ArrayBuffer]"?"arraybuffer":void 0},x.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},x.MAX_VALUE_16BITS=65535,x.MAX_VALUE_32BITS=-1,x.pretty=function(e){var o,s,c="";for(s=0;s<(e||"").length;s++)c+="\\x"+((o=e.charCodeAt(s))<16?"0":"")+o.toString(16).toUpperCase();return c},x.delay=function(e,o,s){setImmediate(function(){e.apply(s||null,o||[])})},x.inherits=function(e,o){function s(){}s.prototype=o.prototype,e.prototype=new s},x.extend=function(){var e,o,s={};for(e=0;e<arguments.length;e++)for(o in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],o)&&s[o]===void 0&&(s[o]=arguments[e][o]);return s},x.prepareContent=function(e,o,s,c,y){return u.Promise.resolve(o).then(function(p){return l.blob&&(p instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(p))!==-1)?Blob.prototype.arrayBuffer!==void 0?p.arrayBuffer():typeof FileReader<"u"?new u.Promise(function(z,F){var T=new FileReader;T.onload=function(W){z(W.target.result)},T.onerror=function(W){F(W.target.error)},T.readAsArrayBuffer(p)}):u.Promise.reject(new Error(e+" is a Blob, but we have no way of reading it.")):p}).then(function(p){var z=x.getTypeOf(p);return z?(z==="arraybuffer"?p=x.transformTo("uint8array",p):z==="string"&&(y?p=h.decode(p):s&&c!==!0&&(p=(function(F){return w(F,l.uint8array?new Uint8Array(F.length):new Array(F.length))})(p))),p):u.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(b,U,x){"use strict";var l=b("./reader/readerFor"),h=b("./utils"),n=b("./signature"),u=b("./zipEntry"),v=b("./support");function w(m){this.files=[],this.loadOptions=m}w.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+h.pretty(g)+", expected "+h.pretty(m)+")")}},isSignature:function(m,g){var i=this.reader.index;this.reader.setIndex(m);var d=this.reader.readString(4)===g;return this.reader.setIndex(i),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var m=this.reader.readData(this.zipCommentLength),g=v.uint8array?"uint8array":"array",i=h.transformTo(g,m);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,g,i,d=this.zip64EndOfCentralSize-44;0<d;)m=this.reader.readInt(2),g=this.reader.readInt(4),i=this.reader.readData(g),this.zip64ExtensibleData[m]={id:m,length:g,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var m=0,g;m<this.files.length;m++)g=this.files[m],this.reader.setIndex(g.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(m);var g=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===h.MAX_VALUE_16BITS||this.diskWithCentralDirStart===h.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===h.MAX_VALUE_16BITS||this.centralDirRecords===h.MAX_VALUE_16BITS||this.centralDirSize===h.MAX_VALUE_32BITS||this.centralDirOffset===h.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var d=g-i;if(0<d)this.isSignature(g,n.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(m){this.reader=l(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},U.exports=w},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(b,U,x){"use strict";var l=b("./reader/readerFor"),h=b("./utils"),n=b("./compressedObject"),u=b("./crc32"),v=b("./utf8"),w=b("./compressions"),m=b("./support");function g(i,d){this.options=i,this.loadOptions=d}g.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var d,e;if(i.skip(22),this.fileNameLength=i.readInt(2),e=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(e),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(o){for(var s in w)if(Object.prototype.hasOwnProperty.call(w,s)&&w[s].magic===o)return w[s];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+h.pretty(this.compressionMethod)+" unknown (inner file : "+h.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,d,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var d=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(d),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=l(this.extraFields[1].value);this.uncompressedSize===h.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===h.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===h.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===h.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var d,e,o,s=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<s;)d=i.readInt(2),e=i.readInt(2),o=i.readData(e),this.extraFields[d]={id:d,length:e,value:o};i.setIndex(s)},handleUTF8:function(){var i=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var e=h.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(e)}var o=this.findExtraFieldUnicodeComment();if(o!==null)this.fileCommentStr=o;else{var s=h.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var d=l(i.value);return d.readInt(1)!==1||u(this.fileName)!==d.readInt(4)?null:v.utf8decode(d.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var d=l(i.value);return d.readInt(1)!==1||u(this.fileComment)!==d.readInt(4)?null:v.utf8decode(d.readData(i.length-5))}return null}},U.exports=g},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(b,U,x){"use strict";function l(d,e,o){this.name=d,this.dir=o.dir,this.date=o.date,this.comment=o.comment,this.unixPermissions=o.unixPermissions,this.dosPermissions=o.dosPermissions,this._data=e,this._dataBinary=o.binary,this.options={compression:o.compression,compressionOptions:o.compressionOptions}}var h=b("./stream/StreamHelper"),n=b("./stream/DataWorker"),u=b("./utf8"),v=b("./compressedObject"),w=b("./stream/GenericWorker");l.prototype={internalStream:function(d){var e=null,o="string";try{if(!d)throw new Error("No output type specified.");var s=(o=d.toLowerCase())==="string"||o==="text";o!=="binarystring"&&o!=="text"||(o="string"),e=this._decompressWorker();var c=!this._dataBinary;c&&!s&&(e=e.pipe(new u.Utf8EncodeWorker)),!c&&s&&(e=e.pipe(new u.Utf8DecodeWorker))}catch(y){(e=new w("error")).error(y)}return new h(e,o,"")},async:function(d,e){return this.internalStream(d).accumulate(e)},nodeStream:function(d,e){return this.internalStream(d||"nodebuffer").toNodejsStream(e)},_compressWorker:function(d,e){if(this._data instanceof v&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var o=this._decompressWorker();return this._dataBinary||(o=o.pipe(new u.Utf8EncodeWorker)),v.createWorkerFrom(o,d,e)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof w?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<m.length;i++)l.prototype[m[i]]=g;U.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(b,U,x){(function(l){"use strict";var h,n,u=l.MutationObserver||l.WebKitMutationObserver;if(u){var v=0,w=new u(d),m=l.document.createTextNode("");w.observe(m,{characterData:!0}),h=function(){m.data=v=++v%2}}else if(l.setImmediate||l.MessageChannel===void 0)h="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var e=l.document.createElement("script");e.onreadystatechange=function(){d(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},l.document.documentElement.appendChild(e)}:function(){setTimeout(d,0)};else{var g=new l.MessageChannel;g.port1.onmessage=d,h=function(){g.port2.postMessage(0)}}var i=[];function d(){var e,o;n=!0;for(var s=i.length;s;){for(o=i,i=[],e=-1;++e<s;)o[e]();s=i.length}n=!1}U.exports=function(e){i.push(e)!==1||n||h()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(b,U,x){"use strict";var l=b("immediate");function h(){}var n={},u=["REJECTED"],v=["FULFILLED"],w=["PENDING"];function m(s){if(typeof s!="function")throw new TypeError("resolver must be a function");this.state=w,this.queue=[],this.outcome=void 0,s!==h&&e(this,s)}function g(s,c,y){this.promise=s,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function i(s,c,y){l(function(){var p;try{p=c(y)}catch(z){return n.reject(s,z)}p===s?n.reject(s,new TypeError("Cannot resolve promise with itself")):n.resolve(s,p)})}function d(s){var c=s&&s.then;if(s&&(typeof s=="object"||typeof s=="function")&&typeof c=="function")return function(){c.apply(s,arguments)}}function e(s,c){var y=!1;function p(T){y||(y=!0,n.reject(s,T))}function z(T){y||(y=!0,n.resolve(s,T))}var F=o(function(){c(z,p)});F.status==="error"&&p(F.value)}function o(s,c){var y={};try{y.value=s(c),y.status="success"}catch(p){y.status="error",y.value=p}return y}(U.exports=m).prototype.finally=function(s){if(typeof s!="function")return this;var c=this.constructor;return this.then(function(y){return c.resolve(s()).then(function(){return y})},function(y){return c.resolve(s()).then(function(){throw y})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,c){if(typeof s!="function"&&this.state===v||typeof c!="function"&&this.state===u)return this;var y=new this.constructor(h);return this.state!==w?i(y,this.state===v?s:c,this.outcome):this.queue.push(new g(y,s,c)),y},g.prototype.callFulfilled=function(s){n.resolve(this.promise,s)},g.prototype.otherCallFulfilled=function(s){i(this.promise,this.onFulfilled,s)},g.prototype.callRejected=function(s){n.reject(this.promise,s)},g.prototype.otherCallRejected=function(s){i(this.promise,this.onRejected,s)},n.resolve=function(s,c){var y=o(d,c);if(y.status==="error")return n.reject(s,y.value);var p=y.value;if(p)e(s,p);else{s.state=v,s.outcome=c;for(var z=-1,F=s.queue.length;++z<F;)s.queue[z].callFulfilled(c)}return s},n.reject=function(s,c){s.state=u,s.outcome=c;for(var y=-1,p=s.queue.length;++y<p;)s.queue[y].callRejected(c);return s},m.resolve=function(s){return s instanceof this?s:n.resolve(new this(h),s)},m.reject=function(s){var c=new this(h);return n.reject(c,s)},m.all=function(s){var c=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=s.length,p=!1;if(!y)return this.resolve([]);for(var z=new Array(y),F=0,T=-1,W=new this(h);++T<y;)C(s[T],T);return W;function C(K,V){c.resolve(K).then(function(_){z[V]=_,++F!==y||p||(p=!0,n.resolve(W,z))},function(_){p||(p=!0,n.reject(W,_))})}},m.race=function(s){var c=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=s.length,p=!1;if(!y)return this.resolve([]);for(var z=-1,F=new this(h);++z<y;)T=s[z],c.resolve(T).then(function(W){p||(p=!0,n.resolve(F,W))},function(W){p||(p=!0,n.reject(F,W))});var T;return F}},{immediate:36}],38:[function(b,U,x){"use strict";var l={};(0,b("./lib/utils/common").assign)(l,b("./lib/deflate"),b("./lib/inflate"),b("./lib/zlib/constants")),U.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(b,U,x){"use strict";var l=b("./zlib/deflate"),h=b("./utils/common"),n=b("./utils/strings"),u=b("./zlib/messages"),v=b("./zlib/zstream"),w=Object.prototype.toString,m=0,g=-1,i=0,d=8;function e(s){if(!(this instanceof e))return new e(s);this.options=h.assign({level:g,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},s||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var y=l.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(y!==m)throw new Error(u[y]);if(c.header&&l.deflateSetHeader(this.strm,c.header),c.dictionary){var p=typeof c.dictionary=="string"?n.string2buf(c.dictionary):w.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary;if((y=l.deflateSetDictionary(this.strm,p))!==m)throw new Error(u[y]);this._dict_set=!0}}function o(s,c){var y=new e(c);if(y.push(s,!0),y.err)throw y.msg||u[y.err];return y.result}e.prototype.push=function(s,c){var y,p,z=this.strm,F=this.options.chunkSize;if(this.ended)return!1;p=c===~~c?c:c===!0?4:0,typeof s=="string"?z.input=n.string2buf(s):w.call(s)==="[object ArrayBuffer]"?z.input=new Uint8Array(s):z.input=s,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new h.Buf8(F),z.next_out=0,z.avail_out=F),(y=l.deflate(z,p))!==1&&y!==m)return this.onEnd(y),!(this.ended=!0);z.avail_out!==0&&(z.avail_in!==0||p!==4&&p!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(h.shrinkBuf(z.output,z.next_out))):this.onData(h.shrinkBuf(z.output,z.next_out)))}while((0<z.avail_in||z.avail_out===0)&&y!==1);return p===4?(y=l.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===m):p!==2||(this.onEnd(m),!(z.avail_out=0))},e.prototype.onData=function(s){this.chunks.push(s)},e.prototype.onEnd=function(s){s===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},x.Deflate=e,x.deflate=o,x.deflateRaw=function(s,c){return(c=c||{}).raw=!0,o(s,c)},x.gzip=function(s,c){return(c=c||{}).gzip=!0,o(s,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(b,U,x){"use strict";var l=b("./zlib/inflate"),h=b("./utils/common"),n=b("./utils/strings"),u=b("./zlib/constants"),v=b("./zlib/messages"),w=b("./zlib/zstream"),m=b("./zlib/gzheader"),g=Object.prototype.toString;function i(e){if(!(this instanceof i))return new i(e);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},e||{});var o=this.options;o.raw&&0<=o.windowBits&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),!(0<=o.windowBits&&o.windowBits<16)||e&&e.windowBits||(o.windowBits+=32),15<o.windowBits&&o.windowBits<48&&(15&o.windowBits)==0&&(o.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var s=l.inflateInit2(this.strm,o.windowBits);if(s!==u.Z_OK)throw new Error(v[s]);this.header=new m,l.inflateGetHeader(this.strm,this.header)}function d(e,o){var s=new i(o);if(s.push(e,!0),s.err)throw s.msg||v[s.err];return s.result}i.prototype.push=function(e,o){var s,c,y,p,z,F,T=this.strm,W=this.options.chunkSize,C=this.options.dictionary,K=!1;if(this.ended)return!1;c=o===~~o?o:o===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof e=="string"?T.input=n.binstring2buf(e):g.call(e)==="[object ArrayBuffer]"?T.input=new Uint8Array(e):T.input=e,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new h.Buf8(W),T.next_out=0,T.avail_out=W),(s=l.inflate(T,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&C&&(F=typeof C=="string"?n.string2buf(C):g.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,s=l.inflateSetDictionary(this.strm,F)),s===u.Z_BUF_ERROR&&K===!0&&(s=u.Z_OK,K=!1),s!==u.Z_STREAM_END&&s!==u.Z_OK)return this.onEnd(s),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&s!==u.Z_STREAM_END&&(T.avail_in!==0||c!==u.Z_FINISH&&c!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=n.utf8border(T.output,T.next_out),p=T.next_out-y,z=n.buf2string(T.output,y),T.next_out=p,T.avail_out=W-p,p&&h.arraySet(T.output,T.output,y,p,0),this.onData(z)):this.onData(h.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(K=!0)}while((0<T.avail_in||T.avail_out===0)&&s!==u.Z_STREAM_END);return s===u.Z_STREAM_END&&(c=u.Z_FINISH),c===u.Z_FINISH?(s=l.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===u.Z_OK):c!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(T.avail_out=0))},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},x.Inflate=i,x.inflate=d,x.inflateRaw=function(e,o){return(o=o||{}).raw=!0,d(e,o)},x.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(b,U,x){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";x.assign=function(u){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var w=v.shift();if(w){if(typeof w!="object")throw new TypeError(w+"must be non-object");for(var m in w)w.hasOwnProperty(m)&&(u[m]=w[m])}}return u},x.shrinkBuf=function(u,v){return u.length===v?u:u.subarray?u.subarray(0,v):(u.length=v,u)};var h={arraySet:function(u,v,w,m,g){if(v.subarray&&u.subarray)u.set(v.subarray(w,w+m),g);else for(var i=0;i<m;i++)u[g+i]=v[w+i]},flattenChunks:function(u){for(var v=m=0,w=u.length,m,g,i,d;v<w;v++)m+=u[v].length;for(d=new Uint8Array(m),v=g=0,w=u.length;v<w;v++)i=u[v],d.set(i,g),g+=i.length;return d}},n={arraySet:function(u,v,w,m,g){for(var i=0;i<m;i++)u[g+i]=v[w+i]},flattenChunks:function(u){return[].concat.apply([],u)}};x.setTyped=function(u){u?(x.Buf8=Uint8Array,x.Buf16=Uint16Array,x.Buf32=Int32Array,x.assign(x,h)):(x.Buf8=Array,x.Buf16=Array,x.Buf32=Array,x.assign(x,n))},x.setTyped(l)},{}],42:[function(b,U,x){"use strict";var l=b("./common"),h=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{h=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var u=new l.Buf8(256),v=0;v<256;v++)u[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function w(m,g){if(g<65537&&(m.subarray&&n||!m.subarray&&h))return String.fromCharCode.apply(null,l.shrinkBuf(m,g));for(var i="",d=0;d<g;d++)i+=String.fromCharCode(m[d]);return i}u[254]=u[254]=1,x.string2buf=function(m){var g,i,d,e,o,s=m.length,c=0;for(e=0;e<s;e++)(64512&(i=m.charCodeAt(e)))==55296&&e+1<s&&(64512&(d=m.charCodeAt(e+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),e++),c+=i<128?1:i<2048?2:i<65536?3:4;for(g=new l.Buf8(c),e=o=0;o<c;e++)(64512&(i=m.charCodeAt(e)))==55296&&e+1<s&&(64512&(d=m.charCodeAt(e+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),e++),i<128?g[o++]=i:(i<2048?g[o++]=192|i>>>6:(i<65536?g[o++]=224|i>>>12:(g[o++]=240|i>>>18,g[o++]=128|i>>>12&63),g[o++]=128|i>>>6&63),g[o++]=128|63&i);return g},x.buf2binstring=function(m){return w(m,m.length)},x.binstring2buf=function(m){for(var g=new l.Buf8(m.length),i=0,d=g.length;i<d;i++)g[i]=m.charCodeAt(i);return g},x.buf2string=function(m,g){var i,d,e,o,s=g||m.length,c=new Array(2*s);for(i=d=0;i<s;)if((e=m[i++])<128)c[d++]=e;else if(4<(o=u[e]))c[d++]=65533,i+=o-1;else{for(e&=o===2?31:o===3?15:7;1<o&&i<s;)e=e<<6|63&m[i++],o--;1<o?c[d++]=65533:e<65536?c[d++]=e:(e-=65536,c[d++]=55296|e>>10&1023,c[d++]=56320|1023&e)}return w(c,d)},x.utf8border=function(m,g){var i;for((g=g||m.length)>m.length&&(g=m.length),i=g-1;0<=i&&(192&m[i])==128;)i--;return i<0||i===0?g:i+u[m[i]]>g?i:g}},{"./common":41}],43:[function(b,U,x){"use strict";U.exports=function(l,h,n,u){for(var v=65535&l|0,w=l>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;w=w+(v=v+h[u++]|0)|0,--m;);v%=65521,w%=65521}return v|w<<16|0}},{}],44:[function(b,U,x){"use strict";U.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(b,U,x){"use strict";var l=(function(){for(var h,n=[],u=0;u<256;u++){h=u;for(var v=0;v<8;v++)h=1&h?3988292384^h>>>1:h>>>1;n[u]=h}return n})();U.exports=function(h,n,u,v){var w=l,m=v+u;h^=-1;for(var g=v;g<m;g++)h=h>>>8^w[255&(h^n[g])];return-1^h}},{}],46:[function(b,U,x){"use strict";var l,h=b("../utils/common"),n=b("./trees"),u=b("./adler32"),v=b("./crc32"),w=b("./messages"),m=0,g=4,i=0,d=-2,e=-1,o=4,s=2,c=8,y=9,p=286,z=30,F=19,T=2*p+1,W=15,C=3,K=258,V=K+C+1,_=42,O=113,r=1,R=2,q=3,P=4;function $(t,B){return t.msg=w[B],B}function L(t){return(t<<1)-(4<t?9:0)}function J(t){for(var B=t.length;0<=--B;)t[B]=0}function A(t){var B=t.state,I=B.pending;I>t.avail_out&&(I=t.avail_out),I!==0&&(h.arraySet(t.output,B.pending_buf,B.pending_out,I,t.next_out),t.next_out+=I,B.pending_out+=I,t.total_out+=I,t.avail_out-=I,B.pending-=I,B.pending===0&&(B.pending_out=0))}function E(t,B){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,B),t.block_start=t.strstart,A(t.strm)}function X(t,B){t.pending_buf[t.pending++]=B}function H(t,B){t.pending_buf[t.pending++]=B>>>8&255,t.pending_buf[t.pending++]=255&B}function M(t,B){var I,f,a=t.max_chain_length,k=t.strstart,D=t.prev_length,N=t.nice_match,S=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,j=t.window,G=t.w_mask,Z=t.prev,Y=t.strstart+K,et=j[k+D-1],tt=j[k+D];t.prev_length>=t.good_match&&(a>>=2),N>t.lookahead&&(N=t.lookahead);do if(j[(I=B)+D]===tt&&j[I+D-1]===et&&j[I]===j[k]&&j[++I]===j[k+1]){k+=2,I++;do;while(j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&j[++k]===j[++I]&&k<Y);if(f=K-(Y-k),k=Y-K,D<f){if(t.match_start=B,N<=(D=f))break;et=j[k+D-1],tt=j[k+D]}}while((B=Z[B&G])>S&&--a!=0);return D<=t.lookahead?D:t.lookahead}function nt(t){var B,I,f,a,k,D,N,S,j,G,Z=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=Z+(Z-V)){for(h.arraySet(t.window,t.window,Z,Z,0),t.match_start-=Z,t.strstart-=Z,t.block_start-=Z,B=I=t.hash_size;f=t.head[--B],t.head[B]=Z<=f?f-Z:0,--I;);for(B=I=Z;f=t.prev[--B],t.prev[B]=Z<=f?f-Z:0,--I;);a+=Z}if(t.strm.avail_in===0)break;if(D=t.strm,N=t.window,S=t.strstart+t.lookahead,j=a,G=void 0,G=D.avail_in,j<G&&(G=j),I=G===0?0:(D.avail_in-=G,h.arraySet(N,D.input,D.next_in,G,S),D.state.wrap===1?D.adler=u(D.adler,N,G,S):D.state.wrap===2&&(D.adler=v(D.adler,N,G,S)),D.next_in+=G,D.total_in+=G,G),t.lookahead+=I,t.lookahead+t.insert>=C)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+C-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<V&&t.strm.avail_in!==0)}function ot(t,B){for(var I,f;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&B===m)return r;if(t.lookahead===0)break}if(I=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),I!==0&&t.strstart-I<=t.w_size-V&&(t.match_length=M(t,I)),t.match_length>=C)if(f=n._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(E(t,!1),t.strm.avail_out===0))return r}return t.insert=t.strstart<C-1?t.strstart:C-1,B===g?(E(t,!0),t.strm.avail_out===0?q:P):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?r:R}function Q(t,B){for(var I,f,a;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&B===m)return r;if(t.lookahead===0)break}if(I=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,I!==0&&t.prev_length<t.max_lazy_match&&t.strstart-I<=t.w_size-V&&(t.match_length=M(t,I),t.match_length<=5&&(t.strategy===1||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-C,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=C-1,t.strstart++,f&&(E(t,!1),t.strm.avail_out===0))return r}else if(t.match_available){if((f=n._tr_tally(t,0,t.window[t.strstart-1]))&&E(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return r}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,B===g?(E(t,!0),t.strm.avail_out===0?q:P):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?r:R}function rt(t,B,I,f,a){this.good_length=t,this.max_lazy=B,this.nice_length=I,this.max_chain=f,this.func=a}function at(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new h.Buf16(2*T),this.dyn_dtree=new h.Buf16(2*(2*z+1)),this.bl_tree=new h.Buf16(2*(2*F+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(W+1),this.heap=new h.Buf16(2*p+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*p+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function it(t){var B;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=s,(B=t.state).pending=0,B.pending_out=0,B.wrap<0&&(B.wrap=-B.wrap),B.status=B.wrap?_:O,t.adler=B.wrap===2?0:1,B.last_flush=m,n._tr_init(B),i):$(t,d)}function lt(t){var B=it(t);return B===i&&(function(I){I.window_size=2*I.w_size,J(I.head),I.max_lazy_match=l[I.level].max_lazy,I.good_match=l[I.level].good_length,I.nice_match=l[I.level].nice_length,I.max_chain_length=l[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=C-1,I.match_available=0,I.ins_h=0})(t.state),B}function ut(t,B,I,f,a,k){if(!t)return d;var D=1;if(B===e&&(B=6),f<0?(D=0,f=-f):15<f&&(D=2,f-=16),a<1||y<a||I!==c||f<8||15<f||B<0||9<B||k<0||o<k)return $(t,d);f===8&&(f=9);var N=new at;return(t.state=N).strm=t,N.wrap=D,N.gzhead=null,N.w_bits=f,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=a+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+C-1)/C),N.window=new h.Buf8(2*N.w_size),N.head=new h.Buf16(N.hash_size),N.prev=new h.Buf16(N.w_size),N.lit_bufsize=1<<a+6,N.pending_buf_size=4*N.lit_bufsize,N.pending_buf=new h.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=B,N.strategy=k,N.method=I,lt(t)}l=[new rt(0,0,0,0,function(t,B){var I=65535;for(I>t.pending_buf_size-5&&(I=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&B===m)return r;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+I;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,E(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-V&&(E(t,!1),t.strm.avail_out===0))return r}return t.insert=0,B===g?(E(t,!0),t.strm.avail_out===0?q:P):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),r)}),new rt(4,4,8,4,ot),new rt(4,5,16,8,ot),new rt(4,6,32,32,ot),new rt(4,4,16,16,Q),new rt(8,16,32,32,Q),new rt(8,16,128,128,Q),new rt(8,32,128,256,Q),new rt(32,128,258,1024,Q),new rt(32,258,258,4096,Q)],x.deflateInit=function(t,B){return ut(t,B,c,15,8,0)},x.deflateInit2=ut,x.deflateReset=lt,x.deflateResetKeep=it,x.deflateSetHeader=function(t,B){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=B,i):d},x.deflate=function(t,B){var I,f,a,k;if(!t||!t.state||5<B||B<0)return t?$(t,d):d;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&B!==g)return $(t,t.avail_out===0?-5:d);if(f.strm=t,I=f.last_flush,f.last_flush=B,f.status===_)if(f.wrap===2)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=v(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=O);else{var D=c+(f.w_bits-8<<4)<<8;D|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(D|=32),D+=31-D%31,f.status=O,H(f,D),f.strstart!==0&&(H(f,t.adler>>>16),H(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(a=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),A(t),a=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),A(t),a=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),A(t),a=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>a&&(t.adler=v(t.adler,f.pending_buf,f.pending-a,a)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&A(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=O)):f.status=O),f.pending!==0){if(A(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&L(B)<=L(I)&&B!==g)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||B!==m&&f.status!==666){var N=f.strategy===2?(function(S,j){for(var G;;){if(S.lookahead===0&&(nt(S),S.lookahead===0)){if(j===m)return r;break}if(S.match_length=0,G=n._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++,G&&(E(S,!1),S.strm.avail_out===0))return r}return S.insert=0,j===g?(E(S,!0),S.strm.avail_out===0?q:P):S.last_lit&&(E(S,!1),S.strm.avail_out===0)?r:R})(f,B):f.strategy===3?(function(S,j){for(var G,Z,Y,et,tt=S.window;;){if(S.lookahead<=K){if(nt(S),S.lookahead<=K&&j===m)return r;if(S.lookahead===0)break}if(S.match_length=0,S.lookahead>=C&&0<S.strstart&&(Z=tt[Y=S.strstart-1])===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]){et=S.strstart+K;do;while(Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Z===tt[++Y]&&Y<et);S.match_length=K-(et-Y),S.match_length>S.lookahead&&(S.match_length=S.lookahead)}if(S.match_length>=C?(G=n._tr_tally(S,1,S.match_length-C),S.lookahead-=S.match_length,S.strstart+=S.match_length,S.match_length=0):(G=n._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++),G&&(E(S,!1),S.strm.avail_out===0))return r}return S.insert=0,j===g?(E(S,!0),S.strm.avail_out===0?q:P):S.last_lit&&(E(S,!1),S.strm.avail_out===0)?r:R})(f,B):l[f.level].func(f,B);if(N!==q&&N!==P||(f.status=666),N===r||N===q)return t.avail_out===0&&(f.last_flush=-1),i;if(N===R&&(B===1?n._tr_align(f):B!==5&&(n._tr_stored_block(f,0,0,!1),B===3&&(J(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),A(t),t.avail_out===0))return f.last_flush=-1,i}return B!==g?i:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(H(f,t.adler>>>16),H(f,65535&t.adler)),A(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},x.deflateEnd=function(t){var B;return t&&t.state?(B=t.state.status)!==_&&B!==69&&B!==73&&B!==91&&B!==103&&B!==O&&B!==666?$(t,d):(t.state=null,B===O?$(t,-3):i):d},x.deflateSetDictionary=function(t,B){var I,f,a,k,D,N,S,j,G=B.length;if(!t||!t.state||(k=(I=t.state).wrap)===2||k===1&&I.status!==_||I.lookahead)return d;for(k===1&&(t.adler=u(t.adler,B,G,0)),I.wrap=0,G>=I.w_size&&(k===0&&(J(I.head),I.strstart=0,I.block_start=0,I.insert=0),j=new h.Buf8(I.w_size),h.arraySet(j,B,G-I.w_size,I.w_size,0),B=j,G=I.w_size),D=t.avail_in,N=t.next_in,S=t.input,t.avail_in=G,t.next_in=0,t.input=B,nt(I);I.lookahead>=C;){for(f=I.strstart,a=I.lookahead-(C-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[f+C-1])&I.hash_mask,I.prev[f&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=f,f++,--a;);I.strstart=f,I.lookahead=C-1,nt(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=C-1,I.match_available=0,t.next_in=N,t.input=S,t.avail_in=D,I.wrap=k,i},x.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(b,U,x){"use strict";U.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(b,U,x){"use strict";U.exports=function(l,h){var n=l.state,u=l.next_in,v,w,m,g,i,d,e,o,s,c,y,p,z,F,T,W,C,K,V,_,O,r=l.input,R;v=u+(l.avail_in-5),w=l.next_out,R=l.output,m=w-(h-l.avail_out),g=w+(l.avail_out-257),i=n.dmax,d=n.wsize,e=n.whave,o=n.wnext,s=n.window,c=n.hold,y=n.bits,p=n.lencode,z=n.distcode,F=(1<<n.lenbits)-1,T=(1<<n.distbits)-1;t:do{y<15&&(c+=r[u++]<<y,y+=8,c+=r[u++]<<y,y+=8),W=p[c&F];r:for(;;){if(c>>>=C=W>>>24,y-=C,(C=W>>>16&255)===0)R[w++]=65535&W;else{if(!(16&C)){if((64&C)==0){W=p[(65535&W)+(c&(1<<C)-1)];continue r}if(32&C){n.mode=12;break t}l.msg="invalid literal/length code",n.mode=30;break t}K=65535&W,(C&=15)&&(y<C&&(c+=r[u++]<<y,y+=8),K+=c&(1<<C)-1,c>>>=C,y-=C),y<15&&(c+=r[u++]<<y,y+=8,c+=r[u++]<<y,y+=8),W=z[c&T];e:for(;;){if(c>>>=C=W>>>24,y-=C,!(16&(C=W>>>16&255))){if((64&C)==0){W=z[(65535&W)+(c&(1<<C)-1)];continue e}l.msg="invalid distance code",n.mode=30;break t}if(V=65535&W,y<(C&=15)&&(c+=r[u++]<<y,(y+=8)<C&&(c+=r[u++]<<y,y+=8)),i<(V+=c&(1<<C)-1)){l.msg="invalid distance too far back",n.mode=30;break t}if(c>>>=C,y-=C,(C=w-m)<V){if(e<(C=V-C)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break t}if(O=s,(_=0)===o){if(_+=d-C,C<K){for(K-=C;R[w++]=s[_++],--C;);_=w-V,O=R}}else if(o<C){if(_+=d+o-C,(C-=o)<K){for(K-=C;R[w++]=s[_++],--C;);if(_=0,o<K){for(K-=C=o;R[w++]=s[_++],--C;);_=w-V,O=R}}}else if(_+=o-C,C<K){for(K-=C;R[w++]=s[_++],--C;);_=w-V,O=R}for(;2<K;)R[w++]=O[_++],R[w++]=O[_++],R[w++]=O[_++],K-=3;K&&(R[w++]=O[_++],1<K&&(R[w++]=O[_++]))}else{for(_=w-V;R[w++]=R[_++],R[w++]=R[_++],R[w++]=R[_++],2<(K-=3););K&&(R[w++]=R[_++],1<K&&(R[w++]=R[_++]))}break}}break}}while(u<v&&w<g);u-=K=y>>3,c&=(1<<(y-=K<<3))-1,l.next_in=u,l.next_out=w,l.avail_in=u<v?v-u+5:5-(u-v),l.avail_out=w<g?g-w+257:257-(w-g),n.hold=c,n.bits=y}},{}],49:[function(b,U,x){"use strict";var l=b("../utils/common"),h=b("./adler32"),n=b("./crc32"),u=b("./inffast"),v=b("./inftrees"),w=1,m=2,g=0,i=-2,d=1,e=852,o=592;function s(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(_){var O;return _&&_.state?(O=_.state,_.total_in=_.total_out=O.total=0,_.msg="",O.wrap&&(_.adler=1&O.wrap),O.mode=d,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new l.Buf32(e),O.distcode=O.distdyn=new l.Buf32(o),O.sane=1,O.back=-1,g):i}function p(_){var O;return _&&_.state?((O=_.state).wsize=0,O.whave=0,O.wnext=0,y(_)):i}function z(_,O){var r,R;return _&&_.state?(R=_.state,O<0?(r=0,O=-O):(r=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?i:(R.window!==null&&R.wbits!==O&&(R.window=null),R.wrap=r,R.wbits=O,p(_))):i}function F(_,O){var r,R;return _?(R=new c,(_.state=R).window=null,(r=z(_,O))!==g&&(_.state=null),r):i}var T,W,C=!0;function K(_){if(C){var O;for(T=new l.Buf32(512),W=new l.Buf32(32),O=0;O<144;)_.lens[O++]=8;for(;O<256;)_.lens[O++]=9;for(;O<280;)_.lens[O++]=7;for(;O<288;)_.lens[O++]=8;for(v(w,_.lens,0,288,T,0,_.work,{bits:9}),O=0;O<32;)_.lens[O++]=5;v(m,_.lens,0,32,W,0,_.work,{bits:5}),C=!1}_.lencode=T,_.lenbits=9,_.distcode=W,_.distbits=5}function V(_,O,r,R){var q,P=_.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new l.Buf8(P.wsize)),R>=P.wsize?(l.arraySet(P.window,O,r-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(R<(q=P.wsize-P.wnext)&&(q=R),l.arraySet(P.window,O,r-R,q,P.wnext),(R-=q)?(l.arraySet(P.window,O,r-R,R,0),P.wnext=R,P.whave=P.wsize):(P.wnext+=q,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=q))),0}x.inflateReset=p,x.inflateReset2=z,x.inflateResetKeep=y,x.inflateInit=function(_){return F(_,15)},x.inflateInit2=F,x.inflate=function(_,O){var r,R,q,P,$,L,J,A,E,X,H,M,nt,ot,Q,rt,at,it,lt,ut,t,B,I,f,a=0,k=new l.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return i;(r=_.state).mode===12&&(r.mode=13),$=_.next_out,q=_.output,J=_.avail_out,P=_.next_in,R=_.input,L=_.avail_in,A=r.hold,E=r.bits,X=L,H=J,B=g;t:for(;;)switch(r.mode){case d:if(r.wrap===0){r.mode=13;break}for(;E<16;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(2&r.wrap&&A===35615){k[r.check=0]=255&A,k[1]=A>>>8&255,r.check=n(r.check,k,2,0),E=A=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&A)<<8)+(A>>8))%31){_.msg="incorrect header check",r.mode=30;break}if((15&A)!=8){_.msg="unknown compression method",r.mode=30;break}if(E-=4,t=8+(15&(A>>>=4)),r.wbits===0)r.wbits=t;else if(t>r.wbits){_.msg="invalid window size",r.mode=30;break}r.dmax=1<<t,_.adler=r.check=1,r.mode=512&A?10:12,E=A=0;break;case 2:for(;E<16;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(r.flags=A,(255&r.flags)!=8){_.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){_.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=A>>8&1),512&r.flags&&(k[0]=255&A,k[1]=A>>>8&255,r.check=n(r.check,k,2,0)),E=A=0,r.mode=3;case 3:for(;E<32;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.head&&(r.head.time=A),512&r.flags&&(k[0]=255&A,k[1]=A>>>8&255,k[2]=A>>>16&255,k[3]=A>>>24&255,r.check=n(r.check,k,4,0)),E=A=0,r.mode=4;case 4:for(;E<16;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.head&&(r.head.xflags=255&A,r.head.os=A>>8),512&r.flags&&(k[0]=255&A,k[1]=A>>>8&255,r.check=n(r.check,k,2,0)),E=A=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.length=A,r.head&&(r.head.extra_len=A),512&r.flags&&(k[0]=255&A,k[1]=A>>>8&255,r.check=n(r.check,k,2,0)),E=A=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(L<(M=r.length)&&(M=L),M&&(r.head&&(t=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),l.arraySet(r.head.extra,R,P,M,t)),512&r.flags&&(r.check=n(r.check,R,M,P)),L-=M,P+=M,r.length-=M),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(L===0)break t;for(M=0;t=R[P+M++],r.head&&t&&r.length<65536&&(r.head.name+=String.fromCharCode(t)),t&&M<L;);if(512&r.flags&&(r.check=n(r.check,R,M,P)),L-=M,P+=M,t)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(L===0)break t;for(M=0;t=R[P+M++],r.head&&t&&r.length<65536&&(r.head.comment+=String.fromCharCode(t)),t&&M<L;);if(512&r.flags&&(r.check=n(r.check,R,M,P)),L-=M,P+=M,t)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;E<16;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(A!==(65535&r.check)){_.msg="header crc mismatch",r.mode=30;break}E=A=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),_.adler=r.check=0,r.mode=12;break;case 10:for(;E<32;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}_.adler=r.check=s(A),E=A=0,r.mode=11;case 11:if(r.havedict===0)return _.next_out=$,_.avail_out=J,_.next_in=P,_.avail_in=L,r.hold=A,r.bits=E,2;_.adler=r.check=1,r.mode=12;case 12:if(O===5||O===6)break t;case 13:if(r.last){A>>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}switch(r.last=1&A,E-=1,3&(A>>>=1)){case 0:r.mode=14;break;case 1:if(K(r),r.mode=20,O!==6)break;A>>>=2,E-=2;break t;case 2:r.mode=17;break;case 3:_.msg="invalid block type",r.mode=30}A>>>=2,E-=2;break;case 14:for(A>>>=7&E,E-=7&E;E<32;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if((65535&A)!=(A>>>16^65535)){_.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&A,E=A=0,r.mode=15,O===6)break t;case 15:r.mode=16;case 16:if(M=r.length){if(L<M&&(M=L),J<M&&(M=J),M===0)break t;l.arraySet(q,R,P,M,$),L-=M,P+=M,J-=M,$+=M,r.length-=M;break}r.mode=12;break;case 17:for(;E<14;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(r.nlen=257+(31&A),A>>>=5,E-=5,r.ndist=1+(31&A),A>>>=5,E-=5,r.ncode=4+(15&A),A>>>=4,E-=4,286<r.nlen||30<r.ndist){_.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;E<3;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.lens[D[r.have++]]=7&A,A>>>=3,E-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,I={bits:r.lenbits},B=v(0,r.lens,0,19,r.lencode,0,r.work,I),r.lenbits=I.bits,B){_.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;rt=(a=r.lencode[A&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=E);){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(at<16)A>>>=Q,E-=Q,r.lens[r.have++]=at;else{if(at===16){for(f=Q+2;E<f;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(A>>>=Q,E-=Q,r.have===0){_.msg="invalid bit length repeat",r.mode=30;break}t=r.lens[r.have-1],M=3+(3&A),A>>>=2,E-=2}else if(at===17){for(f=Q+3;E<f;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}E-=Q,t=0,M=3+(7&(A>>>=Q)),A>>>=3,E-=3}else{for(f=Q+7;E<f;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}E-=Q,t=0,M=11+(127&(A>>>=Q)),A>>>=7,E-=7}if(r.have+M>r.nlen+r.ndist){_.msg="invalid bit length repeat",r.mode=30;break}for(;M--;)r.lens[r.have++]=t}}if(r.mode===30)break;if(r.lens[256]===0){_.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,I={bits:r.lenbits},B=v(w,r.lens,0,r.nlen,r.lencode,0,r.work,I),r.lenbits=I.bits,B){_.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,I={bits:r.distbits},B=v(m,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,I),r.distbits=I.bits,B){_.msg="invalid distances set",r.mode=30;break}if(r.mode=20,O===6)break t;case 20:r.mode=21;case 21:if(6<=L&&258<=J){_.next_out=$,_.avail_out=J,_.next_in=P,_.avail_in=L,r.hold=A,r.bits=E,u(_,H),$=_.next_out,q=_.output,J=_.avail_out,P=_.next_in,R=_.input,L=_.avail_in,A=r.hold,E=r.bits,r.mode===12&&(r.back=-1);break}for(r.back=0;rt=(a=r.lencode[A&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=E);){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(rt&&(240&rt)==0){for(it=Q,lt=rt,ut=at;rt=(a=r.lencode[ut+((A&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=E);){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}A>>>=it,E-=it,r.back+=it}if(A>>>=Q,E-=Q,r.back+=Q,r.length=at,rt===0){r.mode=26;break}if(32&rt){r.back=-1,r.mode=12;break}if(64&rt){_.msg="invalid literal/length code",r.mode=30;break}r.extra=15&rt,r.mode=22;case 22:if(r.extra){for(f=r.extra;E<f;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.length+=A&(1<<r.extra)-1,A>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;rt=(a=r.distcode[A&(1<<r.distbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=E);){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if((240&rt)==0){for(it=Q,lt=rt,ut=at;rt=(a=r.distcode[ut+((A&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=E);){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}A>>>=it,E-=it,r.back+=it}if(A>>>=Q,E-=Q,r.back+=Q,64&rt){_.msg="invalid distance code",r.mode=30;break}r.offset=at,r.extra=15&rt,r.mode=24;case 24:if(r.extra){for(f=r.extra;E<f;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}r.offset+=A&(1<<r.extra)-1,A>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){_.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(J===0)break t;if(M=H-J,r.offset>M){if((M=r.offset-M)>r.whave&&r.sane){_.msg="invalid distance too far back",r.mode=30;break}nt=M>r.wnext?(M-=r.wnext,r.wsize-M):r.wnext-M,M>r.length&&(M=r.length),ot=r.window}else ot=q,nt=$-r.offset,M=r.length;for(J<M&&(M=J),J-=M,r.length-=M;q[$++]=ot[nt++],--M;);r.length===0&&(r.mode=21);break;case 26:if(J===0)break t;q[$++]=r.length,J--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(L===0)break t;L--,A|=R[P++]<<E,E+=8}if(H-=J,_.total_out+=H,r.total+=H,H&&(_.adler=r.check=r.flags?n(r.check,q,H,$-H):h(r.check,q,H,$-H)),H=J,(r.flags?A:s(A))!==r.check){_.msg="incorrect data check",r.mode=30;break}E=A=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;E<32;){if(L===0)break t;L--,A+=R[P++]<<E,E+=8}if(A!==(4294967295&r.total)){_.msg="incorrect length check",r.mode=30;break}E=A=0}r.mode=29;case 29:B=1;break t;case 30:B=-3;break t;case 31:return-4;default:return i}return _.next_out=$,_.avail_out=J,_.next_in=P,_.avail_in=L,r.hold=A,r.bits=E,(r.wsize||H!==_.avail_out&&r.mode<30&&(r.mode<27||O!==4))&&V(_,_.output,_.next_out,H-_.avail_out)?(r.mode=31,-4):(X-=_.avail_in,H-=_.avail_out,_.total_in+=X,_.total_out+=H,r.total+=H,r.wrap&&H&&(_.adler=r.check=r.flags?n(r.check,q,H,_.next_out-H):h(r.check,q,H,_.next_out-H)),_.data_type=r.bits+(r.last?64:0)+(r.mode===12?128:0)+(r.mode===20||r.mode===15?256:0),(X==0&&H===0||O===4)&&B===g&&(B=-5),B)},x.inflateEnd=function(_){if(!_||!_.state)return i;var O=_.state;return O.window&&(O.window=null),_.state=null,g},x.inflateGetHeader=function(_,O){var r;return _&&_.state?(2&(r=_.state).wrap)==0?i:((r.head=O).done=!1,g):i},x.inflateSetDictionary=function(_,O){var r,R=O.length;return _&&_.state?(r=_.state).wrap!==0&&r.mode!==11?i:r.mode===11&&h(1,O,R,0)!==r.check?-3:V(_,O,R,R)?(r.mode=31,-4):(r.havedict=1,g):i},x.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(b,U,x){"use strict";var l=b("../utils/common"),h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];U.exports=function(w,m,g,i,d,e,o,s){var c,y,p,z,F,T,W,C,K,V=s.bits,_=0,O=0,r=0,R=0,q=0,P=0,$=0,L=0,J=0,A=0,E=null,X=0,H=new l.Buf16(16),M=new l.Buf16(16),nt=null,ot=0;for(_=0;_<=15;_++)H[_]=0;for(O=0;O<i;O++)H[m[g+O]]++;for(q=V,R=15;1<=R&&H[R]===0;R--);if(R<q&&(q=R),R===0)return d[e++]=20971520,d[e++]=20971520,s.bits=1,0;for(r=1;r<R&&H[r]===0;r++);for(q<r&&(q=r),_=L=1;_<=15;_++)if(L<<=1,(L-=H[_])<0)return-1;if(0<L&&(w===0||R!==1))return-1;for(M[1]=0,_=1;_<15;_++)M[_+1]=M[_]+H[_];for(O=0;O<i;O++)m[g+O]!==0&&(o[M[m[g+O]]++]=O);if(T=w===0?(E=nt=o,19):w===1?(E=h,X-=257,nt=n,ot-=257,256):(E=u,nt=v,-1),_=r,F=e,$=O=A=0,p=-1,z=(J=1<<(P=q))-1,w===1&&852<J||w===2&&592<J)return 1;for(;;){for(W=_-$,K=o[O]<T?(C=0,o[O]):o[O]>T?(C=nt[ot+o[O]],E[X+o[O]]):(C=96,0),c=1<<_-$,r=y=1<<P;d[F+(A>>$)+(y-=c)]=W<<24|C<<16|K|0,y!==0;);for(c=1<<_-1;A&c;)c>>=1;if(c!==0?(A&=c-1,A+=c):A=0,O++,--H[_]==0){if(_===R)break;_=m[g+o[O]]}if(q<_&&(A&z)!==p){for($===0&&($=q),F+=r,L=1<<(P=_-$);P+$<R&&!((L-=H[P+$])<=0);)P++,L<<=1;if(J+=1<<P,w===1&&852<J||w===2&&592<J)return 1;d[p=A&z]=q<<24|P<<16|F-e|0}}return A!==0&&(d[F+A]=_-$<<24|4194304),s.bits=q,0}},{"../utils/common":41}],51:[function(b,U,x){"use strict";U.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(b,U,x){"use strict";var l=b("../utils/common"),h=0,n=1;function u(a){for(var k=a.length;0<=--k;)a[k]=0}var v=0,w=29,m=256,g=m+1+w,i=30,d=19,e=2*g+1,o=15,s=16,c=7,y=256,p=16,z=17,F=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],W=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(g+2));u(V);var _=new Array(2*i);u(_);var O=new Array(512);u(O);var r=new Array(256);u(r);var R=new Array(w);u(R);var q,P,$,L=new Array(i);function J(a,k,D,N,S){this.static_tree=a,this.extra_bits=k,this.extra_base=D,this.elems=N,this.max_length=S,this.has_stree=a&&a.length}function A(a,k){this.dyn_tree=a,this.max_code=0,this.stat_desc=k}function E(a){return a<256?O[a]:O[256+(a>>>7)]}function X(a,k){a.pending_buf[a.pending++]=255&k,a.pending_buf[a.pending++]=k>>>8&255}function H(a,k,D){a.bi_valid>s-D?(a.bi_buf|=k<<a.bi_valid&65535,X(a,a.bi_buf),a.bi_buf=k>>s-a.bi_valid,a.bi_valid+=D-s):(a.bi_buf|=k<<a.bi_valid&65535,a.bi_valid+=D)}function M(a,k,D){H(a,D[2*k],D[2*k+1])}function nt(a,k){for(var D=0;D|=1&a,a>>>=1,D<<=1,0<--k;);return D>>>1}function ot(a,k,D){var N,S,j=new Array(o+1),G=0;for(N=1;N<=o;N++)j[N]=G=G+D[N-1]<<1;for(S=0;S<=k;S++){var Z=a[2*S+1];Z!==0&&(a[2*S]=nt(j[Z]++,Z))}}function Q(a){for(var k=0;k<g;k++)a.dyn_ltree[2*k]=0;for(k=0;k<i;k++)a.dyn_dtree[2*k]=0;for(k=0;k<d;k++)a.bl_tree[2*k]=0;a.dyn_ltree[2*y]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function rt(a){8<a.bi_valid?X(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function at(a,k,D,N){var S=2*k,j=2*D;return a[S]<a[j]||a[S]===a[j]&&N[k]<=N[D]}function it(a,k,D){for(var N=a.heap[D],S=D<<1;S<=a.heap_len&&(S<a.heap_len&&at(k,a.heap[S+1],a.heap[S],a.depth)&&S++,!at(k,N,a.heap[S],a.depth));)a.heap[D]=a.heap[S],D=S,S<<=1;a.heap[D]=N}function lt(a,k,D){var N,S,j,G,Z=0;if(a.last_lit!==0)for(;N=a.pending_buf[a.d_buf+2*Z]<<8|a.pending_buf[a.d_buf+2*Z+1],S=a.pending_buf[a.l_buf+Z],Z++,N===0?M(a,S,k):(M(a,(j=r[S])+m+1,k),(G=T[j])!==0&&H(a,S-=R[j],G),M(a,j=E(--N),D),(G=W[j])!==0&&H(a,N-=L[j],G)),Z<a.last_lit;);M(a,y,k)}function ut(a,k){var D,N,S,j=k.dyn_tree,G=k.stat_desc.static_tree,Z=k.stat_desc.has_stree,Y=k.stat_desc.elems,et=-1;for(a.heap_len=0,a.heap_max=e,D=0;D<Y;D++)j[2*D]!==0?(a.heap[++a.heap_len]=et=D,a.depth[D]=0):j[2*D+1]=0;for(;a.heap_len<2;)j[2*(S=a.heap[++a.heap_len]=et<2?++et:0)]=1,a.depth[S]=0,a.opt_len--,Z&&(a.static_len-=G[2*S+1]);for(k.max_code=et,D=a.heap_len>>1;1<=D;D--)it(a,j,D);for(S=Y;D=a.heap[1],a.heap[1]=a.heap[a.heap_len--],it(a,j,1),N=a.heap[1],a.heap[--a.heap_max]=D,a.heap[--a.heap_max]=N,j[2*S]=j[2*D]+j[2*N],a.depth[S]=(a.depth[D]>=a.depth[N]?a.depth[D]:a.depth[N])+1,j[2*D+1]=j[2*N+1]=S,a.heap[1]=S++,it(a,j,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],(function(tt,ht){var mt,ft,_t,st,bt,wt,dt=ht.dyn_tree,kt=ht.max_code,St=ht.stat_desc.static_tree,zt=ht.stat_desc.has_stree,Et=ht.stat_desc.extra_bits,xt=ht.stat_desc.extra_base,gt=ht.stat_desc.max_length,vt=0;for(st=0;st<=o;st++)tt.bl_count[st]=0;for(dt[2*tt.heap[tt.heap_max]+1]=0,mt=tt.heap_max+1;mt<e;mt++)gt<(st=dt[2*dt[2*(ft=tt.heap[mt])+1]+1]+1)&&(st=gt,vt++),dt[2*ft+1]=st,kt<ft||(tt.bl_count[st]++,bt=0,xt<=ft&&(bt=Et[ft-xt]),wt=dt[2*ft],tt.opt_len+=wt*(st+bt),zt&&(tt.static_len+=wt*(St[2*ft+1]+bt)));if(vt!==0){do{for(st=gt-1;tt.bl_count[st]===0;)st--;tt.bl_count[st]--,tt.bl_count[st+1]+=2,tt.bl_count[gt]--,vt-=2}while(0<vt);for(st=gt;st!==0;st--)for(ft=tt.bl_count[st];ft!==0;)kt<(_t=tt.heap[--mt])||(dt[2*_t+1]!==st&&(tt.opt_len+=(st-dt[2*_t+1])*dt[2*_t],dt[2*_t+1]=st),ft--)}})(a,k),ot(j,et,a.bl_count)}function t(a,k,D){var N,S,j=-1,G=k[1],Z=0,Y=7,et=4;for(G===0&&(Y=138,et=3),k[2*(D+1)+1]=65535,N=0;N<=D;N++)S=G,G=k[2*(N+1)+1],++Z<Y&&S===G||(Z<et?a.bl_tree[2*S]+=Z:S!==0?(S!==j&&a.bl_tree[2*S]++,a.bl_tree[2*p]++):Z<=10?a.bl_tree[2*z]++:a.bl_tree[2*F]++,j=S,et=(Z=0)===G?(Y=138,3):S===G?(Y=6,3):(Y=7,4))}function B(a,k,D){var N,S,j=-1,G=k[1],Z=0,Y=7,et=4;for(G===0&&(Y=138,et=3),N=0;N<=D;N++)if(S=G,G=k[2*(N+1)+1],!(++Z<Y&&S===G)){if(Z<et)for(;M(a,S,a.bl_tree),--Z!=0;);else S!==0?(S!==j&&(M(a,S,a.bl_tree),Z--),M(a,p,a.bl_tree),H(a,Z-3,2)):Z<=10?(M(a,z,a.bl_tree),H(a,Z-3,3)):(M(a,F,a.bl_tree),H(a,Z-11,7));j=S,et=(Z=0)===G?(Y=138,3):S===G?(Y=6,3):(Y=7,4)}}u(L);var I=!1;function f(a,k,D,N){H(a,(v<<1)+(N?1:0),3),(function(S,j,G,Z){rt(S),Z&&(X(S,G),X(S,~G)),l.arraySet(S.pending_buf,S.window,j,G,S.pending),S.pending+=G})(a,k,D,!0)}x._tr_init=function(a){I||((function(){var k,D,N,S,j,G=new Array(o+1);for(S=N=0;S<w-1;S++)for(R[S]=N,k=0;k<1<<T[S];k++)r[N++]=S;for(r[N-1]=S,S=j=0;S<16;S++)for(L[S]=j,k=0;k<1<<W[S];k++)O[j++]=S;for(j>>=7;S<i;S++)for(L[S]=j<<7,k=0;k<1<<W[S]-7;k++)O[256+j++]=S;for(D=0;D<=o;D++)G[D]=0;for(k=0;k<=143;)V[2*k+1]=8,k++,G[8]++;for(;k<=255;)V[2*k+1]=9,k++,G[9]++;for(;k<=279;)V[2*k+1]=7,k++,G[7]++;for(;k<=287;)V[2*k+1]=8,k++,G[8]++;for(ot(V,g+1,G),k=0;k<i;k++)_[2*k+1]=5,_[2*k]=nt(k,5);q=new J(V,T,m+1,g,o),P=new J(_,W,0,i,o),$=new J(new Array(0),C,0,d,c)})(),I=!0),a.l_desc=new A(a.dyn_ltree,q),a.d_desc=new A(a.dyn_dtree,P),a.bl_desc=new A(a.bl_tree,$),a.bi_buf=0,a.bi_valid=0,Q(a)},x._tr_stored_block=f,x._tr_flush_block=function(a,k,D,N){var S,j,G=0;0<a.level?(a.strm.data_type===2&&(a.strm.data_type=(function(Z){var Y,et=4093624447;for(Y=0;Y<=31;Y++,et>>>=1)if(1&et&&Z.dyn_ltree[2*Y]!==0)return h;if(Z.dyn_ltree[18]!==0||Z.dyn_ltree[20]!==0||Z.dyn_ltree[26]!==0)return n;for(Y=32;Y<m;Y++)if(Z.dyn_ltree[2*Y]!==0)return n;return h})(a)),ut(a,a.l_desc),ut(a,a.d_desc),G=(function(Z){var Y;for(t(Z,Z.dyn_ltree,Z.l_desc.max_code),t(Z,Z.dyn_dtree,Z.d_desc.max_code),ut(Z,Z.bl_desc),Y=d-1;3<=Y&&Z.bl_tree[2*K[Y]+1]===0;Y--);return Z.opt_len+=3*(Y+1)+5+5+4,Y})(a),S=a.opt_len+3+7>>>3,(j=a.static_len+3+7>>>3)<=S&&(S=j)):S=j=D+5,D+4<=S&&k!==-1?f(a,k,D,N):a.strategy===4||j===S?(H(a,2+(N?1:0),3),lt(a,V,_)):(H(a,4+(N?1:0),3),(function(Z,Y,et,tt){var ht;for(H(Z,Y-257,5),H(Z,et-1,5),H(Z,tt-4,4),ht=0;ht<tt;ht++)H(Z,Z.bl_tree[2*K[ht]+1],3);B(Z,Z.dyn_ltree,Y-1),B(Z,Z.dyn_dtree,et-1)})(a,a.l_desc.max_code+1,a.d_desc.max_code+1,G+1),lt(a,a.dyn_ltree,a.dyn_dtree)),Q(a),N&&rt(a)},x._tr_tally=function(a,k,D){return a.pending_buf[a.d_buf+2*a.last_lit]=k>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&k,a.pending_buf[a.l_buf+a.last_lit]=255&D,a.last_lit++,k===0?a.dyn_ltree[2*D]++:(a.matches++,k--,a.dyn_ltree[2*(r[D]+m+1)]++,a.dyn_dtree[2*E(k)]++),a.last_lit===a.lit_bufsize-1},x._tr_align=function(a){H(a,2,3),M(a,y,V),(function(k){k.bi_valid===16?(X(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)})(a)}},{"../utils/common":41}],53:[function(b,U,x){"use strict";U.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(b,U,x){(function(l){(function(h,n){"use strict";if(!h.setImmediate){var u,v,w,m,g=1,i={},d=!1,e=h.document,o=Object.getPrototypeOf&&Object.getPrototypeOf(h);o=o&&o.setTimeout?o:h,u={}.toString.call(h.process)==="[object process]"?function(p){process.nextTick(function(){c(p)})}:(function(){if(h.postMessage&&!h.importScripts){var p=!0,z=h.onmessage;return h.onmessage=function(){p=!1},h.postMessage("","*"),h.onmessage=z,p}})()?(m="setImmediate$"+Math.random()+"$",h.addEventListener?h.addEventListener("message",y,!1):h.attachEvent("onmessage",y),function(p){h.postMessage(m+p,"*")}):h.MessageChannel?((w=new MessageChannel).port1.onmessage=function(p){c(p.data)},function(p){w.port2.postMessage(p)}):e&&"onreadystatechange"in e.createElement("script")?(v=e.documentElement,function(p){var z=e.createElement("script");z.onreadystatechange=function(){c(p),z.onreadystatechange=null,v.removeChild(z),z=null},v.appendChild(z)}):function(p){setTimeout(c,0,p)},o.setImmediate=function(p){typeof p!="function"&&(p=new Function(""+p));for(var z=new Array(arguments.length-1),F=0;F<z.length;F++)z[F]=arguments[F+1];return i[g]={callback:p,args:z},u(g),g++},o.clearImmediate=s}function s(p){delete i[p]}function c(p){if(d)setTimeout(c,0,p);else{var z=i[p];if(z){d=!0;try{(function(F){var T=F.callback,W=F.args;switch(W.length){case 0:T();break;case 1:T(W[0]);break;case 2:T(W[0],W[1]);break;case 3:T(W[0],W[1],W[2]);break;default:T.apply(n,W)}})(z)}finally{s(p),d=!1}}}}function y(p){p.source===h&&typeof p.data=="string"&&p.data.indexOf(m)===0&&c(+p.data.slice(m.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})),Ot=At();export{Ot as default};
|
|
3
3
|
|
|
4
|
-
//# sourceMappingURL=jszip.min-
|
|
4
|
+
//# sourceMappingURL=jszip.min-C6ASC0Lj.js.map
|