@tencent-ai/agent-sdk 0.3.113 → 0.3.116

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.
Files changed (48) hide show
  1. package/cli/CHANGELOG.md +52 -0
  2. package/cli/bin/codebuddy +5 -1
  3. package/cli/dist/codebuddy-headless.js +129 -125
  4. package/cli/dist/web-ui/assets/index-C7MTLJe8.css +32 -0
  5. package/cli/dist/web-ui/assets/index-KUgjjYF4.js +591 -0
  6. package/cli/dist/web-ui/docs/cn/cli/acp.md +69 -0
  7. package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +11 -0
  8. package/cli/dist/web-ui/docs/cn/cli/daemon.md +232 -0
  9. package/cli/dist/web-ui/docs/cn/cli/env-vars.md +1 -0
  10. package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +1 -1
  11. package/cli/dist/web-ui/docs/cn/cli/http-api.md +27 -6
  12. package/cli/dist/web-ui/docs/cn/cli/quickstart.md +1 -1
  13. package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +6 -1
  14. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.77.0.md +38 -0
  15. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.77.1.md +10 -0
  16. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.78.0.md +26 -0
  17. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.78.1.md +10 -0
  18. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.79.0.md +38 -0
  19. package/cli/dist/web-ui/docs/cn/cli/settings.md +1 -1
  20. package/cli/dist/web-ui/docs/cn/cli/web-ui.md +3 -1
  21. package/cli/dist/web-ui/docs/en/cli/acp.md +98 -3
  22. package/cli/dist/web-ui/docs/en/cli/cli-reference.md +11 -0
  23. package/cli/dist/web-ui/docs/en/cli/daemon.md +232 -0
  24. package/cli/dist/web-ui/docs/en/cli/env-vars.md +3 -0
  25. package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +1 -1
  26. package/cli/dist/web-ui/docs/en/cli/http-api.md +144 -8
  27. package/cli/dist/web-ui/docs/en/cli/quickstart.md +1 -1
  28. package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +6 -1
  29. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.77.0.md +38 -0
  30. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.77.1.md +10 -0
  31. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.78.0.md +26 -0
  32. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.78.1.md +10 -0
  33. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.79.0.md +38 -0
  34. package/cli/dist/web-ui/docs/en/cli/web-ui.md +5 -3
  35. package/cli/dist/web-ui/docs/search-index-en.json +1 -1
  36. package/cli/dist/web-ui/docs/search-index-zh.json +1 -1
  37. package/cli/dist/web-ui/docs/sidebar-en.json +1 -1
  38. package/cli/dist/web-ui/docs/sidebar-zh.json +1 -1
  39. package/cli/dist/web-ui/index.html +2 -2
  40. package/cli/package.json +1 -1
  41. package/cli/product.cloudhosted.json +2 -2
  42. package/cli/product.internal.json +2 -2
  43. package/cli/product.ioa.json +2 -2
  44. package/cli/product.json +2 -2
  45. package/cli/product.selfhosted.json +2 -2
  46. package/package.json +1 -1
  47. package/cli/dist/web-ui/assets/index-4R_-ZdN-.css +0 -32
  48. package/cli/dist/web-ui/assets/index-DOt3FCeP.js +0 -499
@@ -1,499 +0,0 @@
1
- var sp=Object.defineProperty;var ap=(e,t,r)=>t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>ap(e,typeof t!="symbol"?t+"":t,r);import{R as ke,a as A,j as i,f as op,p as Jl,b as Ql,n as ec,h as lp,s as cp,d as tc,M as er,c as tr}from"./markdown-Ce2Umeb2.js";import{r as dp}from"./vendor-DpYitQz5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(a){if(a.ep)return;a.ep=!0;const c=r(a);fetch(a.href,c)}})();const rc=e=>{let t;const r=new Set,n=(l,m)=>{const h=typeof l=="function"?l(t):l;if(!Object.is(h,t)){const b=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(y=>y(t,b))}},a=()=>t,s={setState:n,getState:a,getInitialState:()=>o,subscribe:l=>(r.add(l),()=>r.delete(l))},o=t=e(n,a,s);return s},up=(e=>e?rc(e):rc),pp=e=>e;function hp(e,t=pp){const r=ke.useSyncExternalStore(e.subscribe,ke.useCallback(()=>t(e.getState()),[e,t]),ke.useCallback(()=>t(e.getInitialState()),[e,t]));return ke.useDebugValue(r),r}const nc=e=>{const t=up(e),r=n=>hp(t,n);return Object.assign(r,t),r},Fe=(e=>e?nc(e):nc),ic="codebuddy-theme";function bd(){var e;return typeof window<"u"&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}function sc(e){return e==="system"?bd():e}function Wr(e){document.documentElement.setAttribute("data-theme",e)}const dt=Fe((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(ic):null,n=r&&["light","dark","system"].includes(r)?r:"light",a=sc(n);return Wr(a),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{if(t().mode==="system"){const u=bd();Wr(u),e({resolved:u})}}),{mode:n,resolved:a,setMode:c=>{const u=sc(c);localStorage.setItem(ic,c),Wr(u),e({mode:c,resolved:u})},toggle:()=>{const c=t().mode,u=c==="light"?"dark":c==="dark"?"system":"light";t().setMode(u)}}});var ur={},ac;function mp(){if(ac)return ur;ac=1;var e=dp();return ur.createRoot=e.createRoot,ur.hydrateRoot=e.hydrateRoot,ur}var gp=mp();let ft=0;function dn(e){const t=e[e.length-1];return t&&t.type==="message"&&t.role==="assistant"&&t.streaming?e.length-1:-1}function wt(e){const t=dn(e);if(t===-1)return e;const r=[...e],n=r[t],a={streaming:!1};return n.thinking&&n.thinkingStartTime&&!n.thinkingDuration&&(a.thinkingDuration=Math.round((Date.now()-n.thinkingStartTime)/1e3)),r[t]={...n,...a},r}const ze=Fe((e,t)=>({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,historyLoading:!1,hasPendingInterruption:!1,addUserMessage:(r,n,a)=>{e(c=>({timeline:[...wt(c.timeline),{type:"message",id:`msg-${++ft}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},...a&&a.length>0?{files:a}:{},timestamp:Date.now()}],isAgentRunning:!0,stopReason:null,errorMessage:null}))},addQueuedUserMessage:(r,n,a)=>{e(c=>({timeline:[...c.timeline,{type:"message",id:`msg-${++ft}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},...a&&a.length>0?{files:a}:{},timestamp:Date.now()}]}))},addChunk:(r,n,a)=>{e(c=>{if(n){const o=c.timeline.findIndex(l=>l.type==="tool_call"&&l.id===n);if(o!==-1){const l=c.timeline[o],m=[...l.subagentTimeline||[]],h=m[m.length-1];h&&h.type==="message"&&h.streaming?m[m.length-1]={...h,content:h.content+r}:m.push({type:"message",id:`sub-msg-${++ft}`,content:r,streaming:!0});const b=[...c.timeline];return b[o]={...l,subagentTimeline:m},{timeline:b}}}const u=[...c.timeline],s=dn(u);if(s!==-1){const o=u[s],l={content:o.content+r};a&&!o.isCompactInternal&&(l.isCompactInternal=!0),o.thinking&&o.thinkingStartTime&&!o.thinkingDuration&&!o.content&&(l.thinkingDuration=Math.round((Date.now()-o.thinkingStartTime)/1e3)),u[s]={...o,...l}}else u.push({type:"message",id:`msg-${++ft}`,role:"assistant",content:r,timestamp:Date.now(),streaming:!0,...a?{isCompactInternal:a}:{}});return{timeline:u}})},addThinkingChunk:(r,n)=>{e(a=>{if(n){const s=a.timeline.findIndex(o=>o.type==="tool_call"&&o.id===n);if(s!==-1){const o=a.timeline[s],l=[...o.subagentTimeline||[]],m=l[l.length-1];m&&m.type==="message"&&m.streaming?l[l.length-1]={...m,content:m.content+r}:l.push({type:"message",id:`sub-msg-${++ft}`,content:r,streaming:!0});const h=[...a.timeline];return h[s]={...o,subagentTimeline:l},{timeline:h}}}const c=[...a.timeline],u=dn(c);if(u!==-1){const s=c[u];c[u]={...s,thinking:(s.thinking||"")+r,thinkingStartTime:s.thinkingStartTime||Date.now()}}else c.push({type:"message",id:`msg-${++ft}`,role:"assistant",content:"",thinking:r,thinkingStartTime:Date.now(),timestamp:Date.now(),streaming:!0});return{timeline:c}})},finalizeAssistantMessage:()=>{e(r=>({timeline:wt(r.timeline)}))},addToolCall:r=>{e(n=>{const a=wt(n.timeline);if(r.parentToolCallId){const c=new Map(n.childToolCalls);return c.set(r.id,{...r,type:"tool_call"}),{timeline:a.map(u=>{if(u.type==="tool_call"&&u.id===r.parentToolCallId){const s=(u.subagentTimeline||[]).map(o=>o.type==="message"&&o.streaming?{...o,streaming:!1}:o);return{...u,children:[...u.children||[],r.id],subagentTimeline:[...s,{type:"tool_call_ref",toolCallId:r.id}]}}return u}),childToolCalls:c}}return{timeline:[...a,{...r,type:"tool_call"}]}})},updateToolCall:(r,n)=>{e(a=>{const c=l=>!l||!Array.isArray(l)?!1:l.some(m=>m.type==="diff"),u=l=>{let m=n;if(c(l.content)&&n.content!==void 0&&!c(n.content)){const{content:h,...b}=n;m=b}return{...l,...m,type:"tool_call"}};if(a.timeline.some(l=>l.type==="tool_call"&&l.id===r))return{timeline:a.timeline.map(l=>l.type==="tool_call"&&l.id===r?u(l):l)};const o=a.childToolCalls.get(r);if(o){const l=new Map(a.childToolCalls);return l.set(r,u(o)),{childToolCalls:l}}return{}})},getChildToolCall:r=>t().childToolCalls.get(r),addQuestion:r=>{e(n=>n.timeline.some(c=>c.type==="question"&&c.toolCallId===r.toolCallId&&c.status==="pending")?n:{timeline:[...wt(n.timeline),{...r,type:"question",status:"pending"}],hasPendingInterruption:!0})},submitQuestion:(r,n)=>{e(a=>{const c=a.timeline.map(s=>s.type==="question"&&s.id===r?{...s,status:"answered",answers:n}:s),u=c.some(s=>s.type==="interruption"&&!s.resolved||s.type==="question"&&s.status==="pending");return{timeline:c,hasPendingInterruption:u}})},cancelQuestion:r=>{e(n=>{const a=n.timeline.map(u=>u.type==="question"&&u.id===r?{...u,status:"cancelled"}:u),c=a.some(u=>u.type==="interruption"&&!u.resolved||u.type==="question"&&u.status==="pending");return{timeline:a,hasPendingInterruption:c}})},resolveQuestionByToolCallId:r=>{e(n=>{const a=n.timeline.map(u=>u.type==="question"&&u.toolCallId===r&&u.status==="pending"&&u.source==="interruption"?{...u,status:"cancelled"}:u),c=a.some(u=>u.type==="interruption"&&!u.resolved||u.type==="question"&&u.status==="pending");return{timeline:a,hasPendingInterruption:c}})},addInterruption:r=>{e(n=>r.toolCallId&&n.timeline.some(c=>c.type==="interruption"&&c.toolCallId===r.toolCallId&&!c.resolved)?n:{timeline:[...wt(n.timeline),{...r,type:"interruption"}],hasPendingInterruption:!0})},resolveInterruption:(r,n)=>{e(a=>{const c=a.timeline.map(s=>s.type==="interruption"&&s.id===r?{...s,resolved:!0,decision:n}:s),u=c.some(s=>s.type==="interruption"&&!s.resolved||s.type==="question"&&s.status==="pending");return{timeline:c,hasPendingInterruption:u}})},resolveInterruptionByToolCallId:(r,n)=>{e(a=>{const c=a.timeline.map(s=>s.type==="interruption"&&s.toolCallId===r&&!s.resolved?{...s,resolved:!0,decision:n}:s),u=c.some(s=>s.type==="interruption"&&!s.resolved||s.type==="question"&&s.status==="pending");return{timeline:c,hasPendingInterruption:u}})},setHistoryLoading:r=>e({historyLoading:r}),addHistoryUserMessage:(r,n,a,c)=>{e(u=>({timeline:[...wt(u.timeline),{type:"message",id:`msg-${++ft}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},timestamp:Date.now(),...a?{isCompactInternal:a}:{},...c?{channel:c}:{}}]}))},setAgentRunning:r=>e({isAgentRunning:r}),setSessionEnd:(r,n)=>{t().finalizeAssistantMessage();const a=r==="end_turn";e(c=>{const u=c.timeline.map(o=>o.type==="tool_call"&&o.status==="running"?{...o,status:"completed"}:o.type==="interruption"&&!o.resolved?{...o,resolved:!0,decision:"deny"}:o.type==="question"&&o.status==="pending"?{...o,status:"cancelled"}:o),s=new Map(c.childToolCalls);for(const[o,l]of s)l.status==="running"&&s.set(o,{...l,status:"completed"});return{isAgentRunning:!1,hasPendingInterruption:!1,stopReason:a?null:r,errorMessage:a?null:n||null,timeline:u,childToolCalls:s}})},clearMessages:()=>e({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,historyLoading:!1,hasPendingInterruption:!1}),clearChat:()=>{t().clearMessages()}})),fp=Object.freeze(Object.defineProperty({__proto__:null,useChatStore:ze},Symbol.toStringTag,{value:"Module"})),bp="modulepreload",yp=function(e){return"/"+e},oc={},wr=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let u=function(l){return Promise.all(l.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=u(r.map(l=>{if(l=yp(l),l in oc)return;oc[l]=!0;const m=l.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":bp,m||(b.as="script"),b.crossOrigin="",b.href=l,o&&b.setAttribute("nonce",o),document.head.appendChild(b),m)return new Promise((y,w)=>{b.addEventListener("load",y),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${l}`)))})}))}function c(u){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=u,window.dispatchEvent(s),!s.defaultPrevented)throw u}return a.then(u=>{for(const s of u||[])s.status==="rejected"&&c(s.reason);return t().catch(c)})},tt=Fe((e,t)=>({status:"disconnected",sessionId:null,models:[],currentModel:"",modes:[],currentMode:"default",commands:[],error:null,topic:null,thinkingEnabled:!1,promptSuggestion:null,externalInput:null,setStatus:r=>e({status:r}),setSessionId:r=>e({sessionId:r}),setModels:r=>e({models:r}),setCurrentModel:r=>e({currentModel:r}),setModes:r=>e({modes:r}),setCurrentMode:r=>e({currentMode:r}),setCommands:r=>e({commands:r}),setTopic:r=>e({topic:r}),setThinkingEnabled:r=>e({thinkingEnabled:r}),setPromptSuggestion:r=>e({promptSuggestion:r}),setExternalInput:r=>e({externalInput:r}),connect:async r=>{const n=ve();try{if(e({status:"connecting",error:null}),r){const{AcpClient:a}=await wr(async()=>{const{AcpClient:s}=await Promise.resolve().then(()=>_p);return{AcpClient:s}},void 0),c=new a(void 0,r);c.on("status_change",s=>e({status:s})),c.on("model_update",s=>{e({models:s.availableModels||[],currentModel:s.currentModelId||""})});const{sessionId:u}=await c.initializeSession({continue:!0});e({status:"connected",sessionId:u})}else{const{sessionId:a}=await n.initializeSession({continue:!0});e({status:"connected",sessionId:a})}}catch(a){e({status:"error",error:a.message})}},disconnect:async()=>{await ve().disconnect(),e({status:"disconnected",sessionId:null})}}));async function ye(e,t,r){const n=(r==null?void 0:r.maxRetries)??3,a=(r==null?void 0:r.baseDelay)??500;for(let c=0;c<=n;c++)try{const u=await fetch(e,t);if(u.status>=500&&c<n){console.warn(`Request failed with ${u.status}, retrying (${c+1}/${n})...`),await new Promise(s=>setTimeout(s,a*Math.pow(2,c)));continue}return u}catch(u){if(c<n){console.warn(`Request failed with network error, retrying (${c+1}/${n})...`,u),await new Promise(s=>setTimeout(s,a*Math.pow(2,c)));continue}throw u}throw new Error("fetchWithRetry: max retries exceeded")}class On{constructor(t,r){Ae(this,"baseUrl");Ae(this,"token");Ae(this,"connectionId",null);Ae(this,"sessionToken",null);Ae(this,"nextId",1);Ae(this,"sseAbortController",null);Ae(this,"sseReconnectTimer",null);Ae(this,"reconnecting",null);Ae(this,"listeners",new Map);Ae(this,"_status","disconnected");Ae(this,"pendingRequests",new Map);Ae(this,"permissionRequestIds",new Map);Ae(this,"permissionRequestToolCallIds",new Map);Ae(this,"extMethodRequestIds",new Map);Ae(this,"cancelling",!1);this.baseUrl=t||window.location.origin,this.token=r}get status(){return this._status}async connect(){var t,r;(t=this.sseAbortController)==null||t.abort(),this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.setStatus("connecting");try{const n={};this.token&&(n.Authorization=`Bearer ${this.token}`);const a=await ye(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:n});if(!a.ok){let s="";try{const o=await a.json();(r=o==null?void 0:o.error)!=null&&r.message&&(s=o.error.message)}catch{}throw new Error(s||`ACP connect failed: ${a.status} ${a.statusText}`)}const{connectionId:c,sessionToken:u}=await a.json();this.connectionId=c,this.sessionToken=u,this.setStatus("connected"),this.sseAbortController=new AbortController,this.tryEstablishGetSse().catch(()=>{})}catch(n){throw this.setStatus("error"),n}}async tryEstablishGetSse(t=0){var u;const a={Accept:"text/event-stream"};this.connectionId&&(a["acp-connection-id"]=this.connectionId),this.token&&(a.Authorization=`Bearer ${this.token}`);const c=s=>{if(this._status==="connected"&&s<10){const o=Math.min(2e3*Math.pow(2,s),6e4);this.sseReconnectTimer=setTimeout(()=>{this.sseReconnectTimer=null,this.tryEstablishGetSse(s+1).catch(()=>{})},o)}};try{const s=await fetch(`${this.baseUrl}/api/v1/acp`,{headers:a,signal:(u=this.sseAbortController)==null?void 0:u.signal});s.ok?this.readSseStream(s).catch(o=>{o.name!=="AbortError"&&console.error("GET SSE stream error:",o)}).finally(()=>{c(0)}):c(t)}catch(s){s.name!=="AbortError"&&(console.warn("GET SSE connection failed (notifications will use POST stream):",s.message),c(t))}}async reconnect(){return this.reconnecting?this.reconnecting:(this.reconnecting=(async()=>{var t;try{(t=this.sseAbortController)==null||t.abort(),this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null);const r={};this.token&&(r.Authorization=`Bearer ${this.token}`);const n=await ye(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:r});if(!n.ok)throw new Error(`Reconnect failed: ${n.status}`);const{connectionId:a,sessionToken:c}=await n.json();this.connectionId=a,this.sessionToken=c,await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});let u=null;typeof window<"u"&&(u=new URLSearchParams(window.location.search).get("sessionId")),!u&&typeof sessionStorage<"u"&&(u=sessionStorage.getItem("acp-session-id")),u&&await this.request("session/load",{sessionId:u,cwd:window.location.origin,mcpServers:[]}),this.sseAbortController=new AbortController,this.tryEstablishGetSse().catch(()=>{}),console.info("ACP connection re-established successfully")}finally{this.reconnecting=null}})(),this.reconnecting)}async disconnect(){var t;if((t=this.sseAbortController)==null||t.abort(),this.sseAbortController=null,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.connectionId)try{const r={"acp-connection-id":this.connectionId};this.sessionToken&&(r["acp-session-token"]=this.sessionToken),this.token&&(r.Authorization=`Bearer ${this.token}`),await fetch(`${this.baseUrl}/api/v1/acp`,{method:"DELETE",headers:r})}catch{}this.connectionId=null,this.sessionToken=null,this.setStatus("disconnected")}syncSessionIdToUrl(t){if(typeof window<"u"&&window.history&&window.location){const r=new URL(window.location.href);r.searchParams.get("sessionId")!==t&&(r.searchParams.set("sessionId",t),window.history.replaceState({},"",r.toString()))}}async initializeSession(t){var u,s;const r=(t==null?void 0:t.continue)??!1;await this.connect();const n=await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});n.connectionId&&(this.connectionId=n.connectionId);let a=null;if(typeof window<"u"&&(a=new URLSearchParams(window.location.search).get("sessionId")),!a&&typeof sessionStorage<"u"&&(a=sessionStorage.getItem("acp-session-id")),a&&r)try{const o=await this.request("session/load",{sessionId:a,cwd:window.location.origin,mcpServers:[]});return this.syncSessionIdToUrl(a),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",a),(u=n.agentCapabilities)!=null&&u.delegateToolsSupport&&await this.registerUIControlDelegateTool(a),{connectionId:this.connectionId||"",sessionId:a,models:o.models,modes:o.modes,configOptions:o.configOptions}}catch{typeof sessionStorage<"u"&&sessionStorage.removeItem("acp-session-id")}const c=await this.request("session/new",{cwd:window.location.origin,mcpServers:[],...r&&{_meta:{"codebuddy.ai/continue":!0}}});return this.syncSessionIdToUrl(c.sessionId),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",c.sessionId),(s=n.agentCapabilities)!=null&&s.delegateToolsSupport&&await this.registerUIControlDelegateTool(c.sessionId),{connectionId:this.connectionId||"",sessionId:c.sessionId,models:c.models,modes:c.modes,configOptions:c.configOptions}}async registerUIControlDelegateTool(t){await this.request("_codebuddy.ai/delegateToolsChanged",{sessionId:t,changeType:"added",tools:[{id:"ui-query",name:"UI Query",description:"Query the current page to discover interactive elements (buttons, links, inputs, etc.). Returns a list of elements with their roles, labels, and states. Use this FIRST to understand what elements are available before performing actions with ui-control.",inputSchema:{type:"object",properties:{selector:{type:"string",description:"CSS selector to narrow search scope (optional)"},role:{type:"string",description:"Filter by element role: button, link, textbox, combobox, checkbox, radio, tab, menuitem, etc."},includeHidden:{type:"boolean",description:"Include hidden elements (default: false)"},limit:{type:"number",description:"Max number of elements to return (default: 50)"}}},provider:"web-ui",category:"ui",requiresApproval:!1},{id:"ui-control",name:"UI Control",description:"Perform actions on Web UI elements: click buttons, fill forms, scroll, focus. Use ui-query first to discover available elements, then use this tool to interact with them.",inputSchema:{type:"object",properties:{action:{type:"string",enum:["click","fill","scroll","focus","select"],description:"The action to perform"},target:{type:"object",properties:{selector:{type:"string",description:"CSS selector"},text:{type:"string",description:"Match element by text content"},label:{type:"string",description:"Match element by aria-label or label text"},role:{type:"string",description:"Match element by ARIA role (button, textbox, etc.)"},index:{type:"number",description:"Index of matching element (0-based)"}},description:"Target element specification"},value:{type:"string",description:"Value for fill action"}},required:["action","target"]},provider:"web-ui",category:"ui",requiresApproval:!1}],timestamp:Date.now()})}async prompt(t,r,n,a){const c=[];if(n)for(const u of n)c.push({type:"image",data:u.data,mimeType:u.mimeType});if(a)for(const u of a)c.push({type:"resource",resource:{uri:`file://${u.name}`,text:u.text,mimeType:u.mimeType}});return r&&c.push({type:"text",text:r}),this.request("session/prompt",{sessionId:t,prompt:c})}async loadSession(t){return this.request("session/load",{sessionId:t,cwd:window.location.origin,mcpServers:[]})}async cancel(t){this.cancelling=!0,await this.notify("session/cancel",{sessionId:t})}clearPermissionRequestByToolCallId(t){const r=this.permissionRequestToolCallIds.get(t);r&&(this.permissionRequestToolCallIds.delete(t),this.permissionRequestIds.delete(r))}async respondToInterruption(t,r,n,a){const c=a?this.permissionRequestToolCallIds.get(a):void 0,u=[];if(c)try{await this.approveInterruption(t,c,n)}catch(s){u.push(s instanceof Error?s:new Error(String(s)))}if(a){try{await this.resolveInterruption(t,a,n)}catch(s){u.push(s instanceof Error?s:new Error(String(s)))}if(u.length>0&&u.length===(c?2:1))throw u[0];return}if(!c){await this.approveInterruption(t,r,n);return}if(u.length>0)throw u[0]}async approveInterruption(t,r,n){const a=this.permissionRequestIds.get(r);if(a===void 0){console.error(`No pending permission request for interruption: ${r}`);return}this.permissionRequestIds.delete(r);for(const[u,s]of this.permissionRequestToolCallIds.entries())s===r&&this.permissionRequestToolCallIds.delete(u);const c=this.mapPermissionDecisionToOptionId(n);await this.sendJsonRpcResult(a,{outcome:{outcome:"selected",optionId:c}})}async resolveInterruption(t,r,n,a){await this.request("_codebuddy.ai/resolveInterruption",{sessionId:t,toolCallId:r,decision:n,...a?{answers:a}:{}})}async submitQuestionAnswers(t,r,n){const a=this.extMethodRequestIds.get(r);if(a===void 0)throw new Error(`No pending question request for toolCallId: ${r}`);await this.sendJsonRpcResult(a,{outcome:"submitted",answers:n}),this.extMethodRequestIds.delete(r)}async cancelQuestionAnswers(t,r){const n=this.extMethodRequestIds.get(r);if(n===void 0)throw new Error(`No pending question request for toolCallId: ${r}`);await this.sendJsonRpcResult(n,{outcome:"cancelled"}),this.extMethodRequestIds.delete(r)}async setModel(t,r){await this.request("session/set_model",{sessionId:t,modelId:r})}async setMode(t,r){await this.request("session/set_mode",{sessionId:t,modeId:r})}async setConfigOption(t,r,n){return this.request("session/set_config_option",{sessionId:t,configId:r,value:n})}async getUserInfo(){return this.request("_codebuddy.ai/getUserInfo",{})}on(t,r){return this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push(r),()=>{const n=this.listeners.get(t);if(n){const a=n.indexOf(r);a!==-1&&n.splice(a,1)}}}request(t,r){const n=this.nextId++,a={jsonrpc:"2.0",id:n,method:t,params:r},c=this.buildAcpHeaders();return new Promise((u,s)=>{this.pendingRequests.set(n,{resolve:u,reject:s});const o=new XMLHttpRequest;o.open("POST",`${this.baseUrl}/api/v1/acp`,!0);for(const[b,y]of Object.entries(c))o.setRequestHeader(b,y);let l=0,m="";const h=()=>{const b=o.responseText;if(b.length<=l)return;const y=b.substring(l);l=b.length,m+=y;const w=m.split(`
2
-
3
- `);m=w.pop()||"";for(const v of w){const p=v.split(`
4
- `);let f="";for(const d of p)d.startsWith("data: ")&&(f+=d.substring(6));if(f)try{const d=JSON.parse(f);this.handleMessage(d)}catch{}}};o.onprogress=h,o.onload=()=>{var y;if(h(),o.status<200||o.status>=300){const w=this.pendingRequests.get(n);if(w){if(this.pendingRequests.delete(n),o.status===409&&t!=="initialize"){console.warn(`ACP connection lost (409), reconnecting and retrying ${t}...`),this.reconnect().then(()=>this.request(t,r)).then(p=>w.resolve(p),p=>w.reject(p));return}let v="";try{const p=JSON.parse(o.responseText);(y=p==null?void 0:p.error)!=null&&y.message&&(v=p.error.message)}catch{}w.reject(new Error(v||`ACP request failed: ${o.status} ${o.statusText}`))}return}if(m.trim()){const w=m.split(`
5
- `);let v="";for(const p of w)p.startsWith("data: ")&&(v+=p.substring(6));if(v)try{const p=JSON.parse(v);this.handleMessage(p)}catch{}}const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),this.cancelling&&t==="session/prompt"?(this.cancelling=!1,b.resolve({stopReason:"cancelled"})):b.reject(new Error(`No response received for request: ${t}`)))},o.onerror=()=>{const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),b.reject(new Error(`Network error during ACP request: ${t}`)))},o.ontimeout=()=>{const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),b.reject(new Error(`Request timeout: ${t}`)))},o.timeout=t==="session/prompt"?0:600*1e3,o.send(JSON.stringify(a))})}async notify(t,r){const n={jsonrpc:"2.0",method:t,params:r};await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(n)})}async readSseStream(t){var c;const r=(c=t.body)==null?void 0:c.getReader();if(!r)return;const n=new TextDecoder;let a="";try{for(;;){const{done:u,value:s}=await r.read();if(u)break;a+=n.decode(s,{stream:!0});const o=a.split(`
6
-
7
- `);a=o.pop()||"";for(const l of o){const m=l.split(`
8
- `);let h="";for(const b of m)b.startsWith("data: ")&&(h+=b.substring(6));if(h)try{const b=JSON.parse(h);this.handleMessage(b)}catch{}}}}finally{r.releaseLock()}}handleMessage(t){if("method"in t&&"id"in t&&t.id!==void 0&&t.id!==null){if(t.method==="session/request_permission"){this.handlePermissionRequest(t.id,t.params);return}if(t.method==="_codebuddy.ai/question"){this.handleExtMethodQuestion(t.id,t.params);return}if(t.method==="_codebuddy.ai/delegateTool"){this.handleExtMethodDelegateTool(t.id,t.params);return}return}if("id"in t&&t.id!==void 0&&t.id!==null&&!("method"in t)){const r=this.pendingRequests.get(t.id);r&&(this.pendingRequests.delete(t.id),"error"in t&&t.error?r.reject(new Error(t.error.message)):r.resolve(t.result))}if("method"in t&&t.method==="session/update"){const r=t.params;if(r!=null&&r.update){const n=r.update,c=((n==null?void 0:n._meta)||{})["codebuddy.ai/interruptionRequest"];c&&this.emit("interruption_request",{sessionUpdate:"interruption_request",sessionId:r.sessionId,interruptionId:c.interruptionId||`ir-${c.toolCallId}`,reason:"Tool requires approval",options:c.options||[],toolName:c.toolName,toolTitle:c.toolTitle,toolInput:c.toolInput,toolCallId:c.toolCallId});const u=r.update.sessionUpdate;this.emit(u,r.update)}}else if("method"in t&&t.method!=="session/update"&&!("id"in t&&t.id!==void 0&&t.id!==null)&&t.method==="_codebuddy.ai/checkpoint"){const n=t.params;(n==null?void 0:n.event)==="created"?this.emit("checkpointCreated",n.checkpoint):(n==null?void 0:n.event)==="updated"?this.emit("checkpointUpdated",n.checkpoint):(n==null?void 0:n.event)==="reverted"&&this.emit("checkpointReverted",n.checkpoint)}}mapPermissionDecisionToOptionId(t){return t==="allowAll"?"allow_always":t==="allow"?"allow":t==="rejectAndExitPlan"?"reject_and_exit_plan":"reject"}async sendJsonRpcResult(t,r){var c;const n={jsonrpc:"2.0",id:t,result:r},a=await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(n)});if(!a.ok){let u="";try{const s=await a.json();(c=s==null?void 0:s.error)!=null&&c.message&&(u=s.error.message)}catch{}throw new Error(u||`ACP response failed: ${a.status} ${a.statusText}`)}}buildAcpHeaders(){const t={"Content-Type":"application/json",Accept:"application/json, text/event-stream"};return this.connectionId&&(t["acp-connection-id"]=this.connectionId),this.sessionToken&&(t["acp-session-token"]=this.sessionToken),this.token&&(t.Authorization=`Bearer ${this.token}`),t}handlePermissionRequest(t,r){var l;const n=r==null?void 0:r.toolCall,a=`perm-${t}`,c=((l=n==null?void 0:n._meta)==null?void 0:l["codebuddy.ai/toolName"])||(n==null?void 0:n.toolName)||"tool",u=(n==null?void 0:n.title)||c,s=n==null?void 0:n.rawInput,o=n==null?void 0:n.toolCallId;this.permissionRequestIds.set(a,t),o&&this.permissionRequestToolCallIds.set(o,a),this.emit("interruption_request",{sessionUpdate:"interruption_request",interruptionId:a,reason:"Tool requires approval",options:((r==null?void 0:r.options)||[]).map(m=>m.optionId||m.name),toolName:c,toolTitle:u,toolInput:s,toolCallId:o})}handleExtMethodQuestion(t,r){const{sessionId:n,toolCallId:a,schema:c}=r||{},u=((c==null?void 0:c.questions)||[]).map(s=>({id:s.id,question:s.question,header:s.header||"",options:(s.options||[]).map(o=>({label:o.label||"",description:o.description||""})),multiSelect:!!s.multiSelect}));this.extMethodRequestIds.set(a,t),this.emit("question_request",{toolCallId:a,sessionId:n,questions:u})}async handleExtMethodDelegateTool(t,r){const{toolId:n,input:a}=r||{};try{if(n==="ui-control"){const{uiController:c}=await wr(async()=>{const{uiController:s}=await import("./index-DixJ0kqk.js");return{uiController:s}},[]),u=await c.execute({sessionId:r.sessionId,action:a.action,target:a.target,value:a.value});await this.sendJsonRpcResult(t,{status:"success",output:u})}else if(n==="ui-query"){const{uiController:c}=await wr(async()=>{const{uiController:s}=await import("./index-DixJ0kqk.js");return{uiController:s}},[]),u=await c.queryElements({selector:a==null?void 0:a.selector,role:a==null?void 0:a.role,includeHidden:a==null?void 0:a.includeHidden,limit:a==null?void 0:a.limit});await this.sendJsonRpcResult(t,{status:"success",output:u})}else await this.sendJsonRpcResult(t,{status:"error",error:{message:`Unknown delegate tool: ${n}`}})}catch(c){await this.sendJsonRpcResult(t,{status:"error",error:{message:c instanceof Error?c.message:String(c)}})}}emit(t,r){const n=this.listeners.get(t);if(n)for(const a of n)try{a(r)}catch(c){console.error(`Event handler error for ${t}:`,c)}}setStatus(t){this._status=t,this.emit("status_change",t)}}const _p=Object.freeze(Object.defineProperty({__proto__:null,AcpClient:On,fetchWithRetry:ye},Symbol.toStringTag,{value:"Module"})),yd="codebuddy.auth.token";function Rt(){try{return sessionStorage.getItem(yd)}catch{return null}}function _d(e){try{sessionStorage.setItem(yd,e)}catch{}}function ge(e){const t={...e},r=Rt();return r&&(t.Authorization=`Bearer ${r}`),t}const vd=Fe(e=>({viewState:"loading",error:null,isSubmitting:!1,checkAuth:async()=>{try{e({viewState:"loading",error:null});const t=await ye("/api/v1/auth/status",{headers:ge()});if(!t.ok){e({viewState:"authenticated"});return}const r=await t.json();!r.authEnabled||r.authenticated?e({viewState:"authenticated"}):e({viewState:"login"})}catch(t){console.warn("[auth] Failed to check auth status, falling back to authenticated:",t),e({viewState:"authenticated"})}},login:async t=>{try{e({isSubmitting:!0,error:null});const n=await(await fetch("/api/v1/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})).json();if(n.success){const a=n.token||t;return _d(a),e({viewState:"authenticated",isSubmitting:!1,error:null}),!0}return e({error:n.error||"login.error.incorrect",isSubmitting:!1}),!1}catch(r){return console.warn("[auth] Login request failed:",r),e({error:"app.connectFailed",isSubmitting:!1}),!1}},clearError:()=>e({error:null})})),qt=Fe((e,t)=>({fileChanges:[],selectedFile:null,selectedDiff:null,diffLoading:!1,isCollapsed:!0,checkpoints:[],showCheckpoints:!1,reverting:!1,onCheckpoint:r=>{const{fileChanges:n}=t(),a=new Map;for(const c of n)a.set(c.uri,c);for(const c of r.fileChanges.files)a.set(c.uri,c);e({fileChanges:Array.from(a.values())})},selectFile:async r=>{const{selectedFile:n}=t();if(n===r){e({selectedFile:null,selectedDiff:null});return}e({selectedFile:r,selectedDiff:null,diffLoading:!0});try{const a=await ye(`/api/v1/file-changes/diff?path=${encodeURIComponent(r)}`,{headers:ge()});a.ok?e({selectedDiff:await a.json(),diffLoading:!1}):e({diffLoading:!1})}catch{e({diffLoading:!1})}},setCollapsed:r=>e({isCollapsed:r}),setShowCheckpoints:r=>e({showCheckpoints:r}),loadCheckpoints:async()=>{try{const r=await ye("/api/v1/file-changes/checkpoints",{headers:ge()});if(r.ok){const a=((await r.json()).checkpoints||[]).sort((c,u)=>u.createdAt-c.createdAt);e({checkpoints:a})}}catch{}},revertFiles:async r=>{e({reverting:!0});try{const n=await ye("/api/v1/file-changes/revert",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({paths:r})});if(n.ok){const a=await n.json(),c=new Set(a.revertedFiles||[]);e(u=>({fileChanges:u.fileChanges.filter(s=>!c.has(s.uri)),selectedFile:c.has(u.selectedFile||"")?null:u.selectedFile,selectedDiff:c.has(u.selectedFile||"")?null:u.selectedDiff}))}}finally{e({reverting:!1})}},revertAll:async()=>{e({reverting:!0});try{(await ye("/api/v1/file-changes/revert",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({})})).ok&&e({fileChanges:[],selectedFile:null,selectedDiff:null})}finally{e({reverting:!1})}},revertToCheckpoint:async(r,n="CodeAndConversation")=>{e({reverting:!0});try{if((await ye("/api/v1/file-changes/revert",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({checkpointId:r,scope:n})})).ok){if((n==="Code"||n==="CodeAndConversation")&&e({fileChanges:[],selectedFile:null,selectedDiff:null}),n==="Conversation"||n==="CodeAndConversation")try{const{useChatStore:c}=await wr(async()=>{const{useChatStore:o}=await Promise.resolve().then(()=>fp);return{useChatStore:o}},void 0);c.getState().clearChat();const u=ve(),s=sessionStorage.getItem("acp-session-id");u&&s&&await u.loadSession(s)}catch(c){console.error("Failed to reload session after revert:",c)}t().loadCheckpoints()}}finally{e({reverting:!1})}},reset:()=>e({fileChanges:[],selectedFile:null,selectedDiff:null,diffLoading:!1,isCollapsed:!0,checkpoints:[],showCheckpoints:!1,reverting:!1})})),$e=Fe(e=>({isInTeam:!1,teamName:null,isAutoTeam:!1,members:[],focusedMemberName:null,memberHistories:{},setTeamStatus:t=>e({isInTeam:t.isInTeam,teamName:t.teamName||null,isAutoTeam:t.isAutoTeam||!1,members:t.members}),updateMembers:t=>e({members:t}),setFocusedMember:t=>e({focusedMemberName:t}),setMemberHistory:(t,r)=>e(n=>({memberHistories:{...n.memberHistories,[t]:r}})),clearTeam:()=>e({isInTeam:!1,teamName:null,isAutoTeam:!1,members:[],focusedMemberName:null,memberHistories:{}})})),Sd=Fe(e=>({userInfo:null,loading:!1,error:null,fetchUserInfo:async t=>{e({loading:!0,error:null});try{const r=await t.getUserInfo();r.userInfo?e({userInfo:r.userInfo,loading:!1}):e({loading:!1})}catch(r){console.warn("[user] Failed to fetch user info:",r),e({error:r.message,loading:!1})}},clearUserInfo:()=>{e({userInfo:null,error:null})}}));let yt=null;function ve(){return yt||(yt=new On),yt}function vp(){const e=A.useRef(ve()),[t,r]=A.useState(0),{sessionId:n,setStatus:a,setSessionId:c,setModels:u,setCurrentModel:s,setModes:o,setCurrentMode:l,setCommands:m,setTopic:h,setThinkingEnabled:b,setPromptSuggestion:y}=tt(),{addChunk:w,addThinkingChunk:v,addToolCall:p,updateToolCall:f,addInterruption:d,addQuestion:g,setSessionEnd:_,resolveInterruptionByToolCallId:k,resolveQuestionByToolCallId:S,setHistoryLoading:E,addHistoryUserMessage:x,finalizeAssistantMessage:C,clearChat:I}=ze();A.useEffect(()=>{const N=e.current,B=[],P=(j,U)=>{if(!U)return!1;try{const T=(U._meta||{})["codebuddy.ai/memberEvent"];if(!T)return!1;const D=$e.getState(),M=D.memberHistories[T]||[];return D.setMemberHistory(T,[...M,{sessionUpdate:j,...U}]),!0}catch{return!1}};return B.push(N.on("user_message_chunk",j=>{if(P("user_message_chunk",j))return;const U=j.content,H=j._meta||{},T=!!H["codebuddy.ai/isCompactInternal"];let D;const M=H["codebuddy.ai/images"];Array.isArray(M)&&M.length>0&&(D=M.filter(V=>V.blobPath&&V.mimeType).map(V=>({url:`/api/v1/files/download?path=${encodeURIComponent(V.blobPath)}`,mimeType:V.mimeType})),D.length===0&&(D=void 0));let L;const W=H["codebuddy.ai/channelSource"];W&&(L={source:W,sender:H["codebuddy.ai/channelSender"]||"",senderName:H["codebuddy.ai/channelSenderName"],chatId:H["codebuddy.ai/channelChatId"],chatType:H["codebuddy.ai/channelChatType"]}),U&&typeof U.text=="string"&&x(U.text,D,T,L)})),B.push(N.on("agent_message_chunk",j=>{if(P("agent_message_chunk",j))return;const U=j.content,H=j._meta||{},T=H["codebuddy.ai/parentToolCallId"],D=!!H["codebuddy.ai/isCompactInternal"];typeof U=="string"?w(U,T,D):U&&U.type==="thinking"&&typeof U.text=="string"?v(U.text,T):U&&typeof U.text=="string"&&w(U.text,T,D)})),B.push(N.on("tool_call",j=>{if(P("tool_call",j))return;const U=j._meta||{},H=U["codebuddy.ai/parentToolCallId"],T=!!U["codebuddy.ai/isSubagent"],D=j.toolName||U["codebuddy.ai/toolName"]||"",M=U["codebuddy.ai/planContent"];p({id:j.toolCallId,name:j.title||D||j.kind||"tool",kind:j.kind||"other",toolName:D,input:j.rawInput||j.input,status:"running",locations:j.locations,content:j.content,parentToolCallId:H,subagent:T?{type:U["codebuddy.ai/subagentType"]||"general-purpose",description:U["codebuddy.ai/description"]||"",isBackground:!!U["codebuddy.ai/isBackground"],memberName:U["codebuddy.ai/memberName"]||void 0}:void 0,planContent:M})})),B.push(N.on("tool_call_update",j=>{if(P("tool_call_update",j))return;const H={status:j.status==="completed"?"completed":j.status==="failed"?"failed":j.toolStatus==="completed"?"completed":j.toolStatus==="failed"?"failed":"running",result:j.rawOutput||j.toolResult};j.content!==void 0&&(H.content=j.content),f(j.toolCallId,H)})),B.push(N.on("interruption_request",j=>{var U;if(j.toolName==="AskUserQuestion"){const H=Array.isArray((U=j.toolInput)==null?void 0:U.questions)?j.toolInput.questions:[];g({id:j.toolCallId,toolCallId:j.toolCallId,sessionId:j.sessionId||n||"",source:"interruption",questions:H.map((T,D)=>({id:T.id||`q_${D}`,question:T.question||"",header:T.header||"",options:Array.isArray(T.options)?T.options.map(M=>({label:String((M==null?void 0:M.label)||""),description:String((M==null?void 0:M.description)||"")})):[],multiSelect:!!T.multiSelect}))});return}d({id:j.interruptionId,sessionId:j.sessionId,reason:j.reason,options:j.options,toolName:j.toolName,toolTitle:j.toolTitle,toolInput:j.toolInput,toolCallId:j.toolCallId})})),B.push(N.on("question_request",j=>{g({id:j.toolCallId,toolCallId:j.toolCallId,sessionId:j.sessionId,source:"extMethod",questions:j.questions||[]})})),B.push(N.on("session_end",j=>{_(j.stopReason,j.errorMessage)})),B.push(N.on("session_info_update",j=>{j.title&&h(j.title);const U=j._meta||{};if(U["codebuddy.ai/historyReplay"]==="start"?E(!0):U["codebuddy.ai/historyReplay"]==="end"&&(E(!1),C()),U["codebuddy.ai/sessionReset"]){const T=U["codebuddy.ai/newSessionId"];if(T){if(I(),h(null),y(null),c(T),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",T),typeof window<"u"&&window.history&&window.location){const D=new URL(window.location.href);D.searchParams.get("sessionId")!==T&&(D.searchParams.set("sessionId",T),window.history.replaceState({},"",D.toString()))}N.loadSession(T).then(R).catch(D=>console.error("Failed to load new session after reset:",D))}}if(U["codebuddy.ai/permissionResolved"]){const T=U["codebuddy.ai/toolCallId"],D=U["codebuddy.ai/decision"];T&&D&&(ve().clearPermissionRequestByToolCallId(T),k(T,D),S(T))}if("codebuddy.ai/promptSuggestion"in U){const T=U["codebuddy.ai/promptSuggestion"];y(T||null)}const H=U["codebuddy.ai/teamUpdate"];if(H)switch(H.type){case"member_status_change":H.members&&(H.teamName?$e.getState().setTeamStatus({isInTeam:!0,teamName:H.teamName,isAutoTeam:H.isAutoTeam,members:H.members}):$e.getState().updateMembers(H.members));break;case"team_created":$e.getState().setTeamStatus({isInTeam:!0,teamName:H.teamName,members:[]});break;case"team_deleted":$e.getState().clearTeam();break}})),B.push(N.on("model_update",j=>{u(j.availableModels||[]),s(j.currentModelId||"")})),B.push(N.on("mode_update",j=>{j.availableModes&&o(j.availableModes),j.currentModeId&&l(j.currentModeId)})),B.push(N.on("current_mode_update",j=>{j.currentModeId&&l(j.currentModeId)})),B.push(N.on("config_option_update",j=>{const U=j.configOptions||[];for(const H of U)H.id==="thought_level"?b(H.currentValue==="enabled"):H.id==="mode"&&H.currentValue?l(H.currentValue):H.id==="model"&&H.currentValue&&(s(H.currentValue),H.options&&u(H.options.map(T=>({id:T.value,name:T.name||T.value}))))})),B.push(N.on("status_change",j=>{a(j)})),B.push(N.on("available_commands_update",j=>{j.availableCommands&&m(j.availableCommands.map(U=>{var H;return{name:U.name,description:U.description||"",...((H=U._meta)==null?void 0:H.type)==="skill"?{type:"skill"}:{}}}))})),B.push(N.on("checkpointCreated",j=>{qt.getState().onCheckpoint(j)})),B.push(N.on("checkpointUpdated",j=>{qt.getState().onCheckpoint(j)})),B.push(N.on("checkpointReverted",()=>{qt.getState().reset()})),()=>{B.forEach(j=>j())}},[t,n,w,v,p,f,d,g,_,k,S,u,s,o,l,m,h,b,a,E,x,C,I,c,y]);const R=A.useCallback(N=>{if(N.models&&(u(N.models.availableModels.map(B=>({id:B.modelId,name:B.name}))),s(N.models.currentModelId)),N.modes&&(o(N.modes.availableModes),l(N.modes.currentModeId)),N.configOptions)for(const B of N.configOptions)B.id==="thought_level"&&b(B.currentValue==="enabled")},[u,s,o,l,b]),F=A.useCallback(async N=>{const B=typeof N=="string"?N:N==null?void 0:N.token,P=typeof N=="object"?N==null?void 0:N.continue:!1;if(B){if(yt)try{await yt.disconnect()}catch{}yt=new On(void 0,B),e.current=yt,r(j=>j+1)}try{a("connecting"),y(null);const j=await e.current.initializeSession({continue:P});c(j.sessionId),R(j),a("connected"),Sd.getState().fetchUserInfo(e.current)}catch(j){console.error("Connection failed:",j),a("error")}},[a,c,R,y]);return{client:e.current,connect:F}}const xd="/assets/dark-claw-cat-D_ew_BKV.png",wd="/assets/light-claw-cat-BgBWmnmi.png",kd="/assets/red-claw-cat--t2EuBIB.png",Ed={small:{container:"w-20 h-20",text:"text-[12px]"},medium:{container:"w-32 h-32",text:"text-[14px]"},large:{container:"w-40 h-40",text:"text-[16px]"}};function Cd({size:e="medium",className:t=""}){const n=dt(c=>c.resolved)==="dark"?xd:wd,a=Ed[e];return i.jsxs("div",{className:`relative ${a.container} ${t}`,children:[i.jsx("img",{src:n,alt:"",className:"cat-loading-layer cat-loading-layer-base absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"}),i.jsx("img",{src:kd,alt:"",className:"cat-loading-layer cat-loading-layer-color absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"})]})}function et({size:e="medium",text:t="Loading...",className:r=""}){const n=Ed[e];return i.jsxs("div",{className:`flex flex-col items-center justify-center gap-4 ${r}`,children:[i.jsx(Cd,{size:e}),t&&i.jsx("div",{className:`text-text-secondary ${n.text} font-medium animate-pulse`,children:t})]})}function Sp({size:e="medium",className:t=""}){return i.jsx(Cd,{size:e,className:t})}/**
9
- * @license lucide-react v0.468.0 - ISC
10
- *
11
- * This source code is licensed under the ISC license.
12
- * See the LICENSE file in the root directory of this source tree.
13
- */const xp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Td=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
14
- * @license lucide-react v0.468.0 - ISC
15
- *
16
- * This source code is licensed under the ISC license.
17
- * See the LICENSE file in the root directory of this source tree.
18
- */var wp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
19
- * @license lucide-react v0.468.0 - ISC
20
- *
21
- * This source code is licensed under the ISC license.
22
- * See the LICENSE file in the root directory of this source tree.
23
- */const kp=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:c,iconNode:u,...s},o)=>A.createElement("svg",{ref:o,...wp,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Td("lucide",a),...s},[...u.map(([l,m])=>A.createElement(l,m)),...Array.isArray(c)?c:[c]]));/**
24
- * @license lucide-react v0.468.0 - ISC
25
- *
26
- * This source code is licensed under the ISC license.
27
- * See the LICENSE file in the root directory of this source tree.
28
- */const te=(e,t)=>{const r=A.forwardRef(({className:n,...a},c)=>A.createElement(kp,{ref:c,iconNode:t,className:Td(`lucide-${xp(e)}`,n),...a}));return r.displayName=`${e}`,r};/**
29
- * @license lucide-react v0.468.0 - ISC
30
- *
31
- * This source code is licensed under the ISC license.
32
- * See the LICENSE file in the root directory of this source tree.
33
- */const Lt=te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
34
- * @license lucide-react v0.468.0 - ISC
35
- *
36
- * This source code is licensed under the ISC license.
37
- * See the LICENSE file in the root directory of this source tree.
38
- */const Ep=te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
39
- * @license lucide-react v0.468.0 - ISC
40
- *
41
- * This source code is licensed under the ISC license.
42
- * See the LICENSE file in the root directory of this source tree.
43
- */const lc=te("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
44
- * @license lucide-react v0.468.0 - ISC
45
- *
46
- * This source code is licensed under the ISC license.
47
- * See the LICENSE file in the root directory of this source tree.
48
- */const Nt=te("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/**
49
- * @license lucide-react v0.468.0 - ISC
50
- *
51
- * This source code is licensed under the ISC license.
52
- * See the LICENSE file in the root directory of this source tree.
53
- */const Cp=te("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
54
- * @license lucide-react v0.468.0 - ISC
55
- *
56
- * This source code is licensed under the ISC license.
57
- * See the LICENSE file in the root directory of this source tree.
58
- */const vt=te("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
59
- * @license lucide-react v0.468.0 - ISC
60
- *
61
- * This source code is licensed under the ISC license.
62
- * See the LICENSE file in the root directory of this source tree.
63
- */const lt=te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
64
- * @license lucide-react v0.468.0 - ISC
65
- *
66
- * This source code is licensed under the ISC license.
67
- * See the LICENSE file in the root directory of this source tree.
68
- */const Xe=te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
69
- * @license lucide-react v0.468.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */const He=te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
74
- * @license lucide-react v0.468.0 - ISC
75
- *
76
- * This source code is licensed under the ISC license.
77
- * See the LICENSE file in the root directory of this source tree.
78
- */const Tp=te("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
79
- * @license lucide-react v0.468.0 - ISC
80
- *
81
- * This source code is licensed under the ISC license.
82
- * See the LICENSE file in the root directory of this source tree.
83
- */const Ad=te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
84
- * @license lucide-react v0.468.0 - ISC
85
- *
86
- * This source code is licensed under the ISC license.
87
- * See the LICENSE file in the root directory of this source tree.
88
- */const Ap=te("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
89
- * @license lucide-react v0.468.0 - ISC
90
- *
91
- * This source code is licensed under the ISC license.
92
- * See the LICENSE file in the root directory of this source tree.
93
- */const un=te("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
94
- * @license lucide-react v0.468.0 - ISC
95
- *
96
- * This source code is licensed under the ISC license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */const Np=te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
99
- * @license lucide-react v0.468.0 - ISC
100
- *
101
- * This source code is licensed under the ISC license.
102
- * See the LICENSE file in the root directory of this source tree.
103
- */const Ip=te("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
104
- * @license lucide-react v0.468.0 - ISC
105
- *
106
- * This source code is licensed under the ISC license.
107
- * See the LICENSE file in the root directory of this source tree.
108
- */const cc=te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
109
- * @license lucide-react v0.468.0 - ISC
110
- *
111
- * This source code is licensed under the ISC license.
112
- * See the LICENSE file in the root directory of this source tree.
113
- */const Rp=te("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
114
- * @license lucide-react v0.468.0 - ISC
115
- *
116
- * This source code is licensed under the ISC license.
117
- * See the LICENSE file in the root directory of this source tree.
118
- */const dc=te("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
119
- * @license lucide-react v0.468.0 - ISC
120
- *
121
- * This source code is licensed under the ISC license.
122
- * See the LICENSE file in the root directory of this source tree.
123
- */const Lp=te("CopyMinus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
124
- * @license lucide-react v0.468.0 - ISC
125
- *
126
- * This source code is licensed under the ISC license.
127
- * See the LICENSE file in the root directory of this source tree.
128
- */const pn=te("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
129
- * @license lucide-react v0.468.0 - ISC
130
- *
131
- * This source code is licensed under the ISC license.
132
- * See the LICENSE file in the root directory of this source tree.
133
- */const uc=te("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/**
134
- * @license lucide-react v0.468.0 - ISC
135
- *
136
- * This source code is licensed under the ISC license.
137
- * See the LICENSE file in the root directory of this source tree.
138
- */const Op=te("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]);/**
139
- * @license lucide-react v0.468.0 - ISC
140
- *
141
- * This source code is licensed under the ISC license.
142
- * See the LICENSE file in the root directory of this source tree.
143
- */const Dp=te("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
144
- * @license lucide-react v0.468.0 - ISC
145
- *
146
- * This source code is licensed under the ISC license.
147
- * See the LICENSE file in the root directory of this source tree.
148
- */const zt=te("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
149
- * @license lucide-react v0.468.0 - ISC
150
- *
151
- * This source code is licensed under the ISC license.
152
- * See the LICENSE file in the root directory of this source tree.
153
- */const $p=te("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
154
- * @license lucide-react v0.468.0 - ISC
155
- *
156
- * This source code is licensed under the ISC license.
157
- * See the LICENSE file in the root directory of this source tree.
158
- */const Nd=te("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
159
- * @license lucide-react v0.468.0 - ISC
160
- *
161
- * This source code is licensed under the ISC license.
162
- * See the LICENSE file in the root directory of this source tree.
163
- */const Mp=te("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
164
- * @license lucide-react v0.468.0 - ISC
165
- *
166
- * This source code is licensed under the ISC license.
167
- * See the LICENSE file in the root directory of this source tree.
168
- */const ct=te("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
169
- * @license lucide-react v0.468.0 - ISC
170
- *
171
- * This source code is licensed under the ISC license.
172
- * See the LICENSE file in the root directory of this source tree.
173
- */const jp=te("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
174
- * @license lucide-react v0.468.0 - ISC
175
- *
176
- * This source code is licensed under the ISC license.
177
- * See the LICENSE file in the root directory of this source tree.
178
- */const Fp=te("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/**
179
- * @license lucide-react v0.468.0 - ISC
180
- *
181
- * This source code is licensed under the ISC license.
182
- * See the LICENSE file in the root directory of this source tree.
183
- */const Pp=te("FolderClosed",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]]);/**
184
- * @license lucide-react v0.468.0 - ISC
185
- *
186
- * This source code is licensed under the ISC license.
187
- * See the LICENSE file in the root directory of this source tree.
188
- */const Dn=te("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
189
- * @license lucide-react v0.468.0 - ISC
190
- *
191
- * This source code is licensed under the ISC license.
192
- * See the LICENSE file in the root directory of this source tree.
193
- */const Bp=te("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
194
- * @license lucide-react v0.468.0 - ISC
195
- *
196
- * This source code is licensed under the ISC license.
197
- * See the LICENSE file in the root directory of this source tree.
198
- */const Up=te("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
199
- * @license lucide-react v0.468.0 - ISC
200
- *
201
- * This source code is licensed under the ISC license.
202
- * See the LICENSE file in the root directory of this source tree.
203
- */const $n=te("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
204
- * @license lucide-react v0.468.0 - ISC
205
- *
206
- * This source code is licensed under the ISC license.
207
- * See the LICENSE file in the root directory of this source tree.
208
- */const Mn=te("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
209
- * @license lucide-react v0.468.0 - ISC
210
- *
211
- * This source code is licensed under the ISC license.
212
- * See the LICENSE file in the root directory of this source tree.
213
- */const zp=te("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
214
- * @license lucide-react v0.468.0 - ISC
215
- *
216
- * This source code is licensed under the ISC license.
217
- * See the LICENSE file in the root directory of this source tree.
218
- */const Id=te("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
219
- * @license lucide-react v0.468.0 - ISC
220
- *
221
- * This source code is licensed under the ISC license.
222
- * See the LICENSE file in the root directory of this source tree.
223
- */const Rd=te("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
224
- * @license lucide-react v0.468.0 - ISC
225
- *
226
- * This source code is licensed under the ISC license.
227
- * See the LICENSE file in the root directory of this source tree.
228
- */const Hp=te("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
229
- * @license lucide-react v0.468.0 - ISC
230
- *
231
- * This source code is licensed under the ISC license.
232
- * See the LICENSE file in the root directory of this source tree.
233
- */const Gp=te("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
234
- * @license lucide-react v0.468.0 - ISC
235
- *
236
- * This source code is licensed under the ISC license.
237
- * See the LICENSE file in the root directory of this source tree.
238
- */const pc=te("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
239
- * @license lucide-react v0.468.0 - ISC
240
- *
241
- * This source code is licensed under the ISC license.
242
- * See the LICENSE file in the root directory of this source tree.
243
- */const Wp=te("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
244
- * @license lucide-react v0.468.0 - ISC
245
- *
246
- * This source code is licensed under the ISC license.
247
- * See the LICENSE file in the root directory of this source tree.
248
- */const Ld=te("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
249
- * @license lucide-react v0.468.0 - ISC
250
- *
251
- * This source code is licensed under the ISC license.
252
- * See the LICENSE file in the root directory of this source tree.
253
- */const Od=te("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
254
- * @license lucide-react v0.468.0 - ISC
255
- *
256
- * This source code is licensed under the ISC license.
257
- * See the LICENSE file in the root directory of this source tree.
258
- */const fe=te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
259
- * @license lucide-react v0.468.0 - ISC
260
- *
261
- * This source code is licensed under the ISC license.
262
- * See the LICENSE file in the root directory of this source tree.
263
- */const qp=te("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
264
- * @license lucide-react v0.468.0 - ISC
265
- *
266
- * This source code is licensed under the ISC license.
267
- * See the LICENSE file in the root directory of this source tree.
268
- */const Vp=te("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
269
- * @license lucide-react v0.468.0 - ISC
270
- *
271
- * This source code is licensed under the ISC license.
272
- * See the LICENSE file in the root directory of this source tree.
273
- */const Kp=te("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
274
- * @license lucide-react v0.468.0 - ISC
275
- *
276
- * This source code is licensed under the ISC license.
277
- * See the LICENSE file in the root directory of this source tree.
278
- */const qr=te("MessageCircleQuestion",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
279
- * @license lucide-react v0.468.0 - ISC
280
- *
281
- * This source code is licensed under the ISC license.
282
- * See the LICENSE file in the root directory of this source tree.
283
- */const Dd=te("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
284
- * @license lucide-react v0.468.0 - ISC
285
- *
286
- * This source code is licensed under the ISC license.
287
- * See the LICENSE file in the root directory of this source tree.
288
- */const jn=te("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
289
- * @license lucide-react v0.468.0 - ISC
290
- *
291
- * This source code is licensed under the ISC license.
292
- * See the LICENSE file in the root directory of this source tree.
293
- */const Yp=te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
294
- * @license lucide-react v0.468.0 - ISC
295
- *
296
- * This source code is licensed under the ISC license.
297
- * See the LICENSE file in the root directory of this source tree.
298
- */const hc=te("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
299
- * @license lucide-react v0.468.0 - ISC
300
- *
301
- * This source code is licensed under the ISC license.
302
- * See the LICENSE file in the root directory of this source tree.
303
- */const Xp=te("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
304
- * @license lucide-react v0.468.0 - ISC
305
- *
306
- * This source code is licensed under the ISC license.
307
- * See the LICENSE file in the root directory of this source tree.
308
- */const Fn=te("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
309
- * @license lucide-react v0.468.0 - ISC
310
- *
311
- * This source code is licensed under the ISC license.
312
- * See the LICENSE file in the root directory of this source tree.
313
- */const Zp=te("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
314
- * @license lucide-react v0.468.0 - ISC
315
- *
316
- * This source code is licensed under the ISC license.
317
- * See the LICENSE file in the root directory of this source tree.
318
- */const Jp=te("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
319
- * @license lucide-react v0.468.0 - ISC
320
- *
321
- * This source code is licensed under the ISC license.
322
- * See the LICENSE file in the root directory of this source tree.
323
- */const Qe=te("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
324
- * @license lucide-react v0.468.0 - ISC
325
- *
326
- * This source code is licensed under the ISC license.
327
- * See the LICENSE file in the root directory of this source tree.
328
- */const Qp=te("PowerOff",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
329
- * @license lucide-react v0.468.0 - ISC
330
- *
331
- * This source code is licensed under the ISC license.
332
- * See the LICENSE file in the root directory of this source tree.
333
- */const eh=te("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
334
- * @license lucide-react v0.468.0 - ISC
335
- *
336
- * This source code is licensed under the ISC license.
337
- * See the LICENSE file in the root directory of this source tree.
338
- */const hn=te("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
339
- * @license lucide-react v0.468.0 - ISC
340
- *
341
- * This source code is licensed under the ISC license.
342
- * See the LICENSE file in the root directory of this source tree.
343
- */const Ot=te("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
344
- * @license lucide-react v0.468.0 - ISC
345
- *
346
- * This source code is licensed under the ISC license.
347
- * See the LICENSE file in the root directory of this source tree.
348
- */const th=te("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
349
- * @license lucide-react v0.468.0 - ISC
350
- *
351
- * This source code is licensed under the ISC license.
352
- * See the LICENSE file in the root directory of this source tree.
353
- */const rh=te("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
354
- * @license lucide-react v0.468.0 - ISC
355
- *
356
- * This source code is licensed under the ISC license.
357
- * See the LICENSE file in the root directory of this source tree.
358
- */const nh=te("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
359
- * @license lucide-react v0.468.0 - ISC
360
- *
361
- * This source code is licensed under the ISC license.
362
- * See the LICENSE file in the root directory of this source tree.
363
- */const _t=te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
364
- * @license lucide-react v0.468.0 - ISC
365
- *
366
- * This source code is licensed under the ISC license.
367
- * See the LICENSE file in the root directory of this source tree.
368
- */const ih=te("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
369
- * @license lucide-react v0.468.0 - ISC
370
- *
371
- * This source code is licensed under the ISC license.
372
- * See the LICENSE file in the root directory of this source tree.
373
- */const $d=te("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
374
- * @license lucide-react v0.468.0 - ISC
375
- *
376
- * This source code is licensed under the ISC license.
377
- * See the LICENSE file in the root directory of this source tree.
378
- */const sh=te("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
379
- * @license lucide-react v0.468.0 - ISC
380
- *
381
- * This source code is licensed under the ISC license.
382
- * See the LICENSE file in the root directory of this source tree.
383
- */const Md=te("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
384
- * @license lucide-react v0.468.0 - ISC
385
- *
386
- * This source code is licensed under the ISC license.
387
- * See the LICENSE file in the root directory of this source tree.
388
- */const ah=te("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
389
- * @license lucide-react v0.468.0 - ISC
390
- *
391
- * This source code is licensed under the ISC license.
392
- * See the LICENSE file in the root directory of this source tree.
393
- */const Vt=te("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
394
- * @license lucide-react v0.468.0 - ISC
395
- *
396
- * This source code is licensed under the ISC license.
397
- * See the LICENSE file in the root directory of this source tree.
398
- */const oh=te("SunMoon",[["path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4",key:"1fu5g2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.9 4.9 1.4 1.4",key:"b9915j"}],["path",{d:"m17.7 17.7 1.4 1.4",key:"qc3ed3"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.3 17.7-1.4 1.4",key:"5gca6"}],["path",{d:"m19.1 4.9-1.4 1.4",key:"wpu9u6"}]]);/**
399
- * @license lucide-react v0.468.0 - ISC
400
- *
401
- * This source code is licensed under the ISC license.
402
- * See the LICENSE file in the root directory of this source tree.
403
- */const lh=te("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
404
- * @license lucide-react v0.468.0 - ISC
405
- *
406
- * This source code is licensed under the ISC license.
407
- * See the LICENSE file in the root directory of this source tree.
408
- */const jd=te("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
409
- * @license lucide-react v0.468.0 - ISC
410
- *
411
- * This source code is licensed under the ISC license.
412
- * See the LICENSE file in the root directory of this source tree.
413
- */const rr=te("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
414
- * @license lucide-react v0.468.0 - ISC
415
- *
416
- * This source code is licensed under the ISC license.
417
- * See the LICENSE file in the root directory of this source tree.
418
- */const Vr=te("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
419
- * @license lucide-react v0.468.0 - ISC
420
- *
421
- * This source code is licensed under the ISC license.
422
- * See the LICENSE file in the root directory of this source tree.
423
- */const kr=te("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
424
- * @license lucide-react v0.468.0 - ISC
425
- *
426
- * This source code is licensed under the ISC license.
427
- * See the LICENSE file in the root directory of this source tree.
428
- */const Fd=te("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
429
- * @license lucide-react v0.468.0 - ISC
430
- *
431
- * This source code is licensed under the ISC license.
432
- * See the LICENSE file in the root directory of this source tree.
433
- */const Me=te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
434
- * @license lucide-react v0.468.0 - ISC
435
- *
436
- * This source code is licensed under the ISC license.
437
- * See the LICENSE file in the root directory of this source tree.
438
- */const ch=te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),mc="codebuddy-locale";function Pd(){if(typeof navigator>"u")return"en";const e=[];Array.isArray(navigator.languages)&&navigator.languages.length>0&&e.push(...navigator.languages),navigator.language&&e.push(navigator.language);try{const t=Intl.DateTimeFormat().resolvedOptions().locale;t&&e.push(t)}catch{}for(const t of e)if(t.toLowerCase().startsWith("zh"))return"zh";return"en"}function gc(e){return e==="system"?Pd():e}const mn=Fe((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(mc):null,n=r&&["zh","en","system"].includes(r)?r:"system",a=gc(n);return typeof window<"u"&&window.addEventListener("languagechange",()=>{const c=mn.getState();if(c.mode==="system"){const u=Pd();u!==c.resolved&&mn.setState({resolved:u})}}),{mode:n,resolved:a,setLocale:c=>{const u=gc(c);localStorage.setItem(mc,c),e({mode:c,resolved:u})},toggle:()=>{const c=t().mode,u=c==="zh"?"en":c==="en"?"system":"zh";t().setLocale(u)}}}),fc={zh:{"app.connecting":"正在连接 CodeBuddy Code...","app.connectFailed":"连接失败","app.retry":"重试","chat.empty.title":"CodeBuddy Code","chat.empty.subtitle":"今天有什么可以帮到你?","chat.empty.slogan":"Claw Your Ideas . Into Reality","chat.empty.tag.slides":"幻灯片生成","chat.empty.tag.research":"深度研究","chat.empty.tag.docs":"文档处理","chat.empty.tag.data":"数据分析","chat.thinking":"思考中","chat.error":"错误","chat.sessionEnded":"会话已结束","chat.stopped":"已停止","chat.newChat":"新对话","chat.disclaimer":"回答由 AI 生成,仅供参考","chat.compacted":"已精简历史对话","chat.compacting":"正在精简历史对话...","input.placeholder":"从一个想法开始...","input.placeholderRunning":"消息将排队等待处理...","input.placeholderPending":"请先处理权限请求...","input.send":"发送 (Enter)","input.stop":"停止","input.thinking":"思考中","input.deepThinking":"深度思考","input.promptFailed":"发送失败","input.sendQueued":"发送排队消息 (Enter)","input.dropHint":"拖拽文件到这里","input.addImage":"添加图片","input.addFile":"添加文件","input.imageTooLarge":"图片不能超过 10MB","input.tooManyImages":"最多添加 5 张图片","input.fileTooLarge":"文件不能超过 1MB","input.tooManyFiles":"最多添加 10 个文件","input.menu.image":"图片","input.menu.file":"文件","input.newline":"换行","input.contextMenu.newline":"换行","input.contextMenu.send":"发送","queue.more":" 条消息排队中","status.running":"运行中","tool.writeFile":"写入文件","tool.readFile":"读取文件","tool.execute":"执行指令","tool.searchFiles":"搜索文件","tool.searchContent":"搜索内容","tool.fetchWeb":"获取网页","tool.searchWeb":"搜索网络","tool.defaultName":"工具","tool.moreItems":"... 还有 {count} 项","interruption.title":"需要授权","interruption.tool":"工具","interruption.allow":"允许","interruption.allowAll":"全部允许","interruption.deny":"拒绝","interruption.approved":"已允许","interruption.denied":"已拒绝","interruption.edits":"{count} 处编辑","interruption.yes":"是","interruption.keepPlanning":"继续规划","interruption.exitPlanMode":"退出计划模式","interruption.readyToCode":"准备好开始编码了吗?","theme.light":"浅色","theme.dark":"深色","theme.system":"跟随系统","locale.zh":"中文","locale.en":"English","locale.system":"跟随系统","sidebar.nav.plugins":"插件","sidebar.nav.tasks":"任务","sidebar.search.placeholder":"搜索...","sidebar.chatHistory":"对话历史","sidebar.workspace":"工作区","sidebar.connectionStatus":"连接状态","sidebar.status":"状态","sidebar.sessionId":"会话ID","sidebar.notConnected":"未连接","sidebar.modelSelection":"模型选择","sidebar.noModels":"暂无可用模型","sidebar.environment":"环境信息","sidebar.cwd":"工作目录","sidebar.os":"操作系统","sidebar.nodeVersion":"Node.js","sidebar.gatewayMode":"网关模式","sidebar.tunnelUrl":"Tunnel 地址","sidebar.clickToCopy":"点击复制","sidebar.copied":"已复制","sidebar.permissionMode":"权限模式","sidebar.noModes":"暂无可用模式","sidebar.preferences":"设置","bottomSheet.attachments":"添加","bottomSheet.navigation":"导航","sidebar.theme":"界面主题","sidebar.language":"界面语言","sidebar.user":"用户","sidebar.authMethod":"密码认证","sidebar.noAuth":"无认证","sidebar.version":"Remote UI v1.0","connection.connected":"已连接","connection.connecting":"连接中","connection.disconnected":"未连接","connection.error":"连接错误","message.copyToClipboard":"复制到剪贴板","message.copied":"已复制","message.copy":"复制","message.assistantName":"CodeBuddy Code","thinking.title":"思考过程","thinking.thinking":"思考中","thinking.done":"已思考","thinking.seconds":"(用时 {n} 秒)","thinking.expand":"展开","thinking.collapse":"收起","diff.noChanges":"无变更","login.title":"CodeBuddy Remote Control","login.subtitle":"请输入终端中显示的密码","login.placeholder":"密码","login.submit":"登录","login.error.incorrect":"密码错误","login.error.rateLimit":"登录尝试次数过多,请稍后再试","login.error.required":"请输入密码","login.hint.password":"提示:密码在服务启动时显示在终端中。","login.hint.urlAuth":"也可以使用 <code>?password=xxx</code> 自动登录。","login.hint.disable":'或在 <code>~/.codebuddy/settings.json</code> 中设置 <code>gateway.auth: "none"</code> 来禁用认证。',"login.slogan":"Claw Your Ideas . Into Reality","login.tagline":"Triggered Anywhere, Completed Locally.","login.privacy":"隐私政策","login.terms":"服务条款","sidebar.interactionMode":"交互模式","sidebar.chatMode":"对话","sidebar.terminalMode":"终端","terminal.connecting":"终端连接中...","terminal.title":"终端","terminal.disconnected":"终端已断开","terminal.error":"终端连接失败","terminal.reconnect":"重新连接","terminal.splitHorizontal":"左右分屏","terminal.splitVertical":"上下分屏","terminal.closePane":"关闭终端","terminal.maxPanes":"已达最大面板数","sidebar.instances":"实例","sidebar.activeInstances":"个活跃实例","sidebar.manageInstances":"管理实例","sidebar.remoteControl":"远程控制","instance.title":"实例列表","instance.switch":"实例","instance.switchTitle":"切换实例","instance.current":"当前实例","instance.manual":"手动添加","instance.switchTo":"切换到此实例","instance.manage":"管理实例","instance.managerTitle":"实例管理","instance.addInstance":"添加实例","instance.name":"实例名称","instance.namePlaceholder":"自定义实例名称(可选,默认为目录名)","instance.url":"实例地址","instance.urlPlaceholder":"https://example.trycloudflare.com","instance.password":"密码","instance.optional":"可选","instance.passwordPlaceholder":"访问密码","instance.cancel":"取消","instance.add":"添加","instance.remove":"删除此实例","instance.noInstances":"暂无其他实例","instance.noInstancesHint":"启动更多 CodeBuddy Code 实例,或手动添加远程实例","instance.cwd":"工作目录","instance.topic":"当前话题","instance.startedAt":"启动于","instance.local":"本地","instance.tunnel":"隧道","instance.uptime.days":"天前","instance.uptime.hours":"小时前","instance.uptime.minutes":"分钟前","instance.uptime.justNow":"刚刚","instance.addError":"添加实例失败","instance.removeError":"删除实例失败","instance.copyUrl":"复制链接","instance.copied":"已复制","instance.subtitle":"管理和切换工作实例","instance.refresh":"刷新","instance.refreshed":"已刷新","instance.loading":"加载实例中...","instance.error":"加载实例列表失败","instance.retry":"重试","question.multiple":"多选","question.customAnswer":"或输入自定义答案...","question.reviewAnswers":"审核答案","question.singleTitle":"问题","question.titleWithCount":"问题({count})","question.reviewTab":"审核","question.next":"下一步","question.submit":"提交","question.cancel":"取消","question.answered":"已回答","question.cancelled":"问题已取消","todo.title":"任务清单","todo.executing":"任务{n}正在执行中","todo.untitled":"未命名","history.title":"会话历史","history.description":"点击会话可切换到该对话","history.noData":"暂无会话历史","history.noDataHint":"开始一段新对话吧","history.backToChat":"返回对话","history.loading":"加载中...","history.loadError":"加载失败","history.retry":"重试","history.current":"当前","history.messages":"{count} 条消息","history.delete":"删除","history.deleteConfirm":"确定要删除这个会话吗?","history.deleteCancel":"取消","history.deleteOk":"删除","history.rename":"重命名","history.renameTitle":"重命名会话","history.renamePlaceholder":"输入新名称","history.renameCancel":"取消","history.renameOk":"确定","history.cannotDeleteCurrent":"无法删除当前会话","settings.title":"设置","settings.appearance":"外观","settings.model":"模型选择","settings.mode":"权限模式","settings.systemInfo":"系统信息","settings.backToChat":"返回对话","page.title":"CodeBuddy Code","tool.processExited":"[进程已退出]","tool.itemsCount":"{count} 项","tool.showAllItems":"显示全部 {count} 项","tool.moreLinesCount":"... 还有 {count} 行","tool.generatedImage":"生成的图片","tool.editedImage":"编辑后的图片","tool.imageGen":"图片生成","tool.imageEdit":"图片编辑","tool.toolSearch":"工具搜索","tool.teamCreate":"创建团队","tool.teamDelete":"删除团队","tool.taskCreate":"创建任务","tool.taskUpdate":"更新任务","tool.taskList":"任务列表","tool.taskGet":"获取任务","tool.sendMessage":"发送消息","tool.shutdown":"关闭","tool.taskCompleted":"任务完成","tool.shutdownRejected":"关闭被拒绝","tool.planResponse":"计划回复","tool.approved":"已批准","tool.rejected":"已拒绝","tool.webSearch":"网络搜索","tool.webFetch":"网页获取","tool.saveMemory":"保存记忆","tool.askUserQuestion":"询问用户","tool.enterPlanMode":"进入计划模式","tool.exitPlanMode":"退出计划模式","tool.allowedActions":"允许的操作:","tool.skill":"技能","tool.agent":"代理","tool.failed":"失败","tool.completed":"完成","tool.toolsCount":"{count} 个工具","tool.background":"后台","tool.permissionsCount":"{count} 项权限","terminal.unknownError":"未知错误","terminal.processExited":"[进程已退出]","terminal.connectionLost":"连接已断开","terminal.wsConnectionFailed":"WebSocket 连接失败","terminal.createSessionFailed":"创建终端会话失败","terminal.reconnectFailed":"重连失败","team.title":"团队","team.activeCount":"{count} 个活跃","team.doneCount":"{count} 个完成","team.waitingForTeammates":"等待 {count} 个成员完成…","team.backToMain":"返回主对话","team.loadingHistory":"加载对话历史…","team.noHistory":"暂无对话历史","team.agentRunning":"正在运行…","team.delivered":"已送达","team.showLess":"收起","team.moreLines":"… ({count} 更多行)","team.tools":"{count} 工具","team.tokens":"{count} tokens","instance.tunnelMode":"隧道","instance.localMode":"本地","workspace.searchPlaceholder":"搜索目录...","workspace.switch":"切换","workspace.switchHere":"切换到此目录","workspace.switching":"切换中...","workspace.noResults":"没有匹配的目录","workspace.emptyDir":"此目录为空","workspace.pathPlaceholder":"输入路径或目录名...","workspace.selectDir":"在此目录创建机器人","workspace.filterPlaceholder":"过滤子目录...","workspace.recent.title":"最近工作区","workspace.recent.daysAgo":"天前","workspace.recent.hoursAgo":"小时前","workspace.recent.minutesAgo":"分钟前","workspace.recent.justNow":"刚刚","workspace.recent.remove":"移除","workspace.browseTitle":"浏览工作区","workspace.recentWorkspaces":"最近工作区","workspace.createNew":"创建新机器人","workspace.browseDir":"浏览目录","workspace.instanceLocal":"本地","workspace.instanceTunnel":"隧道","workspace.instanceCurrent":"当前","workspace.switchInstance":"切换","workspace.switchingInstance":"切换中...","workspace.switchingWithGateway":"正在准备切换...","workspace.instanceStarted":"启动于","workspace.noWorkspaces":"暂无活跃的工作区","workspace.noWorkspacesHint":"浏览目录创建新机器人","workspace.instanceCount":"{count} 个机器人","question.multiLabel":"多选","tasks.title":"任务模版","tasks.subtitle":"选择一个模版快速创建定时任务","tasks.loading":"正在获取推荐模版...","tasks.error":"获取模版失败","tasks.retry":"重试","tasks.refresh":"刷新推荐","tasks.refreshed":"已刷新","tasks.empty":"暂无推荐模版","tasks.interval":"每 {value}","tasks.interval.1d":"每天","tasks.interval.2d":"每 2 天","tasks.interval.3d":"每 3 天","tasks.interval.1w":"每周","tasks.interval.2w":"每 2 周","tasks.interval.1m":"每月","plugins.title":"插件管理","plugins.installedPlugins":"已安装插件","plugins.browseMarketplace":"浏览市场","plugins.marketplaces":"插件市场","plugins.enabled":"已启用","plugins.disabled":"已禁用","plugins.enable":"启用","plugins.disable":"禁用","plugins.uninstall":"卸载","plugins.install":"安装","plugins.confirmUninstall":"确定要卸载此插件吗?","plugins.marketplace":"市场","plugins.addMarketplace":"添加市场","plugins.removeMarketplace":"移除","plugins.confirmRemoveMarketplace":"确定要移除此市场吗?","plugins.noPlugins":"暂无已安装的插件","plugins.noPluginsHint":"通过插件市场安装插件来扩展功能","plugins.noMarketplaces":"暂无配置的市场","plugins.noMarketplacesHint":"添加一个插件市场来浏览和安装插件","plugins.selectMarketplace":"选择市场","plugins.selectMarketplaceHint":"选择一个市场来浏览可用插件","plugins.marketplaceNotFound":"市场不存在","plugins.noAvailablePlugins":"该市场暂无可用插件","plugins.noAvailablePluginsHint":"请尝试添加其他市场或稍后再试","plugins.installed":"已安装","plugins.browsingMarketplace":"浏览中...","plugins.loading":"加载中...","plugins.error":"加载插件失败","plugins.retry":"重试","plugins.sourcePlaceholder":"市场地址(Git URL 或本地路径)","plugins.namePlaceholder":"市场名称(可选)","plugins.cancel":"取消","plugins.add":"添加","plugins.version":"版本","plugins.operationFailed":"操作失败","plugins.searchPlaceholder":"搜索插件...","plugins.allMarketplaces":"全部市场","plugins.noSearchResults":"没有找到匹配的插件","plugins.totalCount":"个插件","plugins.refresh":"刷新","plugins.installedLabel":"已安装","plugins.category":"分类","plugins.author":"作者","plugins.license":"许可证","plugins.homepage":"主页","plugins.repository":"仓库","plugins.source":"来源","plugins.keywords":"关键词","plugins.features":"功能","channel.from":"来自","channel.group":"群聊","channel.replyTo":"回复来自 {source}","channel.wechat":"微信","channel.wecom":"企业微信","channel.wecomBot":"企微机器人","remoteControl.title":"远程控制","remoteControl.subtitle":"管理渠道连接","remoteControl.connectedChannels":"已连接渠道","remoteControl.noChannels":"暂无已连接渠道","remoteControl.noChannelsHint":"添加微信或企业微信渠道,或从插件市场安装更多","remoteControl.addWeChat":"添加微信机器人","remoteControl.addWeCom":"添加企微机器人","remoteControl.connect":"连接","remoteControl.disconnect":"断开","remoteControl.delete":"删除","remoteControl.add":"添加","remoteControl.connected":"已连接","remoteControl.disconnected":"未连接","remoteControl.connecting":"连接中...","remoteControl.installMore":"安装更多渠道","remoteControl.installMoreHint":"浏览插件市场,安装第三方渠道插件","remoteControl.browseMarketplace":"浏览插件市场","remoteControl.builtIn":"内置","remoteControl.plugin":"插件","remoteControl.rebind":"重新绑定","remoteControl.unbind":"解绑","remoteControl.bot":"机器人","remoteControl.default":"默认","remoteControl.next":"下一步","remoteControl.cancel":"取消","remoteControl.wecomBotIdHint":"从企业微信管理后台 → 应用管理 → AI 助手获取","remoteControl.wecomSecretHint":"输入 Secret 后按回车或点“连接”","remoteControl.fetchingQr":"正在获取二维码...","remoteControl.scanQr":"请用微信扫描二维码","sidebar.docs":"文档","docs.title":"文档中心","docs.search.placeholder":"搜索文档...","docs.search.noResults":"未找到相关文档","docs.search.resultsCount":"{count} 个结果","docs.loading":"加载中...","docs.loadError":"文档加载失败","docs.notFound":"未找到该文档","docs.apiReference":"API 文档","docs.toc":"目录","docs.retry":"重试","docs.backToList":"返回文档列表","docs.expandAll":"展开全部","docs.collapseAll":"收起全部","docs.openStandalone":"独立窗口打开","sidebar.editor":"文件","editor.title":"代码编辑器","editor.loading":"加载中...","editor.loadError":"加载失败","editor.noFile":"选择一个文件开始编辑","editor.unsaved":"未保存","editor.save":"保存","editor.saveAll":"全部保存","editor.close":"关闭","editor.closeOthers":"关闭其他","editor.closeAll":"关闭全部","editor.newFile":"新建文件","editor.newFolder":"新建文件夹","editor.rename":"重命名","editor.delete":"删除","editor.refresh":"刷新","editor.emptyFolder":"空文件夹","editor.explorer":"资源管理器","editor.toggleSidebar":"切换侧边栏","editor.collapseAll":"全部折叠","command.btw.description":"快速提问,不打断主要 Agent 工作","command.clear.description":"开始新的对话(之前的对话仍可通过 /resume 访问)","command.context.description":"计算并显示上下文 Token 分布","command.cost.description":"显示当前会话的总费用和持续时间","command.doctor.description":"诊断和验证 CodeBuddy 的安装和设置","command.feedback.description":"打开反馈页面以报告问题或提出建议","command.gateway.description":'管理远程控制网关。子命令: "status" 查看状态, "stop" 停止网关, "token" 重新生成访问令牌, "tunnel" 启动隧道',"command.remote-control.description":"管理远程控制长连接客户端(start, stop, status, list)","command.login.description":"切换腾讯云 CodeBuddy 账号","command.logout.description":"退出 CodeBuddy Code 账号","command.plan.description":"预览当前计划文件内容","command.pr-comments.description":"获取 GitHub Pull Request 的评论","command.release-notes.description":"查看更新日志","command.review.description":"审查 Pull Request","command.skills.description":"列出可用的技能","command.todos.description":"显示当前会话的任务清单","command.reload-plugins.description":"重新加载所有插件、技能、代理、钩子和 MCP/LSP 服务器(无需重启)","command.plugin-validate.description":"验证插件目录结构和清单文件","command.init.description":"正在分析你的代码库…","command.compact.description":"清除对话历史但保留摘要在上下文中。可选: /compact [摘要指令]","command.upgrade.description":"在浏览器中打开升级页面","command.statusline.description":"设置 CodeBuddy Code 的状态栏 UI","command.security-review.description":"对当前分支的待提交变更进行安全审查","command.insights.description":"生成 AI 驱动的 CodeBuddy Code 使用模式和活动洞察","command.loop.description":"按固定间隔运行提示或斜杠命令(例如 /loop 5m /foo,默认 10m)","command.task-manager.description":"团队任务管理 - 智能任务录入、分配、追踪和分析","sidebar.changes":"变更","fileChanges.title":"变更","fileChanges.changesSection":"文件变更","fileChanges.empty":"暂无文件变更","fileChanges.showChanges":"显示文件变更","fileChanges.hideChanges":"隐藏文件变更","fileChanges.revertAll":"撤回全部","fileChanges.revertCode":"回退代码","fileChanges.revertChat":"回退对话","fileChanges.revertCodeAndChat":"回退全部","fileChanges.checkpoints":"回退点","fileChanges.noCheckpoints":"暂无回退点"},en:{"app.connecting":"Connecting to CodeBuddy Code...","app.connectFailed":"Connection failed","app.retry":"Retry","chat.empty.title":"CodeBuddy Code","chat.empty.subtitle":"How can I help you today?","chat.empty.slogan":"Claw Your Ideas . Into Reality","chat.empty.tag.slides":"Slide Generation","chat.empty.tag.research":"Deep Research","chat.empty.tag.docs":"Document Processing","chat.empty.tag.data":"Data Analysis","chat.thinking":"Thinking","chat.error":"Error","chat.sessionEnded":"Session ended","chat.stopped":"Stopped","chat.newChat":"New Chat","chat.disclaimer":"Answers generated by AI are for reference only","chat.compacted":"Conversation compacted","chat.compacting":"Compacting conversation...","input.placeholder":"Start from an idea...","input.placeholderRunning":"Messages will be queued...","input.placeholderPending":"Please handle the permission request first...","input.send":"Send (Enter)","input.stop":"Stop","input.thinking":"Thinking","input.deepThinking":"Deep Thinking","input.promptFailed":"Prompt failed","input.sendQueued":"Send queued (Enter)","input.dropHint":"Drop files here","input.addImage":"Add image","input.addFile":"Add file","input.imageTooLarge":"Image must be under 10MB","input.tooManyImages":"Up to 5 images allowed","input.fileTooLarge":"File must be under 1MB","input.tooManyFiles":"Up to 10 files allowed","input.menu.image":"Image","input.menu.file":"File","input.newline":"New line","input.contextMenu.newline":"New line","input.contextMenu.send":"Send","queue.more":" more queued","status.running":"Running","tool.writeFile":"Write file","tool.readFile":"Read file","tool.execute":"Execute","tool.searchFiles":"Search files","tool.searchContent":"Search content","tool.fetchWeb":"Fetch web","tool.searchWeb":"Search web","tool.defaultName":"Tool","tool.moreItems":"... {count} more","interruption.title":"Permission Required","interruption.tool":"Tool","interruption.allow":"Allow","interruption.allowAll":"Allow All","interruption.deny":"Deny","interruption.approved":"Approved","interruption.denied":"Denied","interruption.edits":"{count} edits","interruption.yes":"Yes","interruption.keepPlanning":"No, keep planning","interruption.exitPlanMode":"Exit plan mode","interruption.readyToCode":"Ready to code?","theme.light":"Light","theme.dark":"Dark","theme.system":"System","locale.zh":"Chinese","locale.en":"English","locale.system":"System","sidebar.nav.plugins":"Plugins","sidebar.nav.tasks":"Tasks","sidebar.search.placeholder":"Search...","sidebar.chatHistory":"Chat History","sidebar.workspace":"Workspace","sidebar.connectionStatus":"Connection Status","sidebar.status":"Status","sidebar.sessionId":"Session ID","sidebar.notConnected":"Not connected","sidebar.modelSelection":"Model Selection","sidebar.noModels":"No models available","sidebar.environment":"Environment","sidebar.cwd":"Working Directory","sidebar.os":"OS","sidebar.nodeVersion":"Node.js","sidebar.gatewayMode":"Gateway Mode","sidebar.tunnelUrl":"Tunnel URL","sidebar.clickToCopy":"Click to copy","sidebar.copied":"Copied","sidebar.permissionMode":"Permission Mode","sidebar.noModes":"No modes available","sidebar.preferences":"Preferences","bottomSheet.attachments":"Attach","bottomSheet.navigation":"Navigate","sidebar.theme":"Theme","sidebar.language":"Language","sidebar.user":"User","sidebar.authMethod":"Password","sidebar.noAuth":"No Auth","sidebar.version":"Remote UI v1.0","connection.connected":"Connected","connection.connecting":"Connecting","connection.disconnected":"Disconnected","connection.error":"Error","message.copyToClipboard":"Copy to clipboard","message.copied":"Copied","message.copy":"Copy","message.assistantName":"CodeBuddy Code","thinking.title":"Thinking Process","thinking.thinking":"Thinking","thinking.done":"Thought for","thinking.seconds":" {n}s","thinking.expand":"Expand","thinking.collapse":"Collapse","diff.noChanges":"No changes","login.title":"CodeBuddy Remote Control","login.subtitle":"Enter the password shown in your terminal","login.placeholder":"Password","login.submit":"Login","login.error.incorrect":"Incorrect password","login.error.rateLimit":"Too many login attempts. Please try again later.","login.error.required":"Password is required","login.hint.password":"Tip: The password is displayed when the server starts.","login.hint.urlAuth":"You can also use <code>?password=xxx</code> to login automatically.","login.hint.disable":'Or set <code>gateway.auth: "none"</code> in <code>~/.codebuddy/settings.json</code> to disable.',"login.slogan":"Claw Your Ideas . Into Reality","login.tagline":"Triggered Anywhere, Completed Locally.","login.privacy":"Privacy Policy","login.terms":"Terms of Service","sidebar.interactionMode":"Interaction Mode","sidebar.chatMode":"Chat","sidebar.terminalMode":"Terminal","terminal.connecting":"Connecting terminal...","terminal.title":"Terminal","terminal.disconnected":"Terminal disconnected","terminal.error":"Terminal connection failed","terminal.reconnect":"Reconnect","terminal.splitHorizontal":"Split Right","terminal.splitVertical":"Split Down","terminal.closePane":"Close Terminal","terminal.maxPanes":"Max panes reached","sidebar.instances":"Instances","sidebar.activeInstances":"active instances","sidebar.manageInstances":"Manage Instances","sidebar.remoteControl":"Channels","instance.title":"Instance List","instance.switch":"Instance","instance.switchTitle":"Switch Instance","instance.current":"Current","instance.manual":"Manual","instance.switchTo":"Switch to this instance","instance.manage":"Manage Instances","instance.managerTitle":"Instance Manager","instance.addInstance":"Add Instance","instance.name":"Instance Name","instance.namePlaceholder":"Custom instance name (optional, defaults to directory name)","instance.url":"Instance URL","instance.urlPlaceholder":"https://example.trycloudflare.com","instance.password":"Password","instance.optional":"Optional","instance.passwordPlaceholder":"Access password","instance.cancel":"Cancel","instance.add":"Add","instance.remove":"Remove this instance","instance.noInstances":"No other instances","instance.noInstancesHint":"Start more CodeBuddy Code instances or add remote instances manually","instance.cwd":"Working Directory","instance.topic":"Topic","instance.startedAt":"Started at","instance.local":"Local","instance.tunnel":"Tunnel","instance.uptime.days":"d ago","instance.uptime.hours":"h ago","instance.uptime.minutes":"m ago","instance.uptime.justNow":"Just now","instance.addError":"Failed to add instance","instance.removeError":"Failed to remove instance","instance.copyUrl":"Copy URL","instance.copied":"Copied","instance.subtitle":"Manage and switch between instances","instance.refresh":"Refresh","instance.refreshed":"Refreshed","instance.loading":"Loading instances...","instance.error":"Failed to load instances","instance.retry":"Retry","question.multiple":"multiple","question.customAnswer":"Or type a custom answer...","question.reviewAnswers":"Review answers","question.singleTitle":"Question","question.titleWithCount":"Questions ({count})","question.reviewTab":"Review","question.next":"Next","question.submit":"Submit","question.cancel":"Cancel","question.answered":"Answered","question.cancelled":"Question cancelled","todo.title":"Tasks","todo.executing":"Task {n} executing","todo.untitled":"Untitled","history.title":"Sessions","history.description":"Click a session to switch to that conversation","history.noData":"No sessions","history.noDataHint":"Start a new conversation","history.backToChat":"Back to Chat","history.loading":"Loading...","history.loadError":"Failed to load","history.retry":"Retry","history.current":"Current","history.messages":"{count} messages","history.delete":"Delete","history.deleteConfirm":"Are you sure you want to delete this session?","history.deleteCancel":"Cancel","history.deleteOk":"Delete","history.rename":"Rename","history.renameTitle":"Rename Session","history.renamePlaceholder":"Enter new name","history.renameCancel":"Cancel","history.renameOk":"OK","history.cannotDeleteCurrent":"Cannot delete current session","settings.title":"Preferences","settings.appearance":"Appearance","settings.model":"Model Selection","settings.mode":"Permission Mode","settings.systemInfo":"System Info","settings.backToChat":"Back to Chat","page.title":"CodeBuddy Code","tool.processExited":"[Process exited]","tool.itemsCount":"{count} items","tool.showAllItems":"Show all {count} items","tool.moreLinesCount":"... {count} more lines","tool.generatedImage":"Generated image","tool.editedImage":"Edited image","tool.imageGen":"ImageGen","tool.imageEdit":"ImageEdit","tool.toolSearch":"ToolSearch","tool.teamCreate":"TeamCreate","tool.teamDelete":"TeamDelete","tool.taskCreate":"TaskCreate","tool.taskUpdate":"TaskUpdate","tool.taskList":"TaskList","tool.taskGet":"TaskGet","tool.sendMessage":"SendMessage","tool.shutdown":"Shutdown","tool.taskCompleted":"Task completed","tool.shutdownRejected":"Shutdown rejected","tool.planResponse":"Plan response","tool.approved":"approved","tool.rejected":"rejected","tool.webSearch":"WebSearch","tool.webFetch":"WebFetch","tool.saveMemory":"SaveMemory","tool.askUserQuestion":"AskUserQuestion","tool.enterPlanMode":"Enter Plan Mode","tool.exitPlanMode":"Exit Plan Mode","tool.allowedActions":"Allowed actions:","tool.skill":"Skill","tool.agent":"Agent","tool.failed":"failed","tool.completed":"completed","tool.toolsCount":"{count} tools","tool.background":"background","tool.permissionsCount":"{count} permissions","terminal.unknownError":"Unknown error","terminal.processExited":"[Process exited]","terminal.connectionLost":"Connection lost","terminal.wsConnectionFailed":"WebSocket connection failed","terminal.createSessionFailed":"Failed to create terminal session","terminal.reconnectFailed":"Reconnect failed","team.title":"Team","team.activeCount":"{count} active","team.doneCount":"{count} done","team.waitingForTeammates":"Waiting for {count} teammate{s}…","team.backToMain":"Back to main chat","team.loadingHistory":"Loading conversation…","team.noHistory":"No conversation history yet","team.agentRunning":"Agent is running…","team.delivered":"Delivered","team.showLess":"Show less","team.moreLines":"… ({count} more lines)","team.tools":"{count} tools","team.tokens":"{count} tokens","instance.tunnelMode":"Tunnel","instance.localMode":"Local","workspace.searchPlaceholder":"Search directories...","workspace.switch":"Switch","workspace.switchHere":"Switch to this directory","workspace.switching":"Switching...","workspace.noResults":"No matching directories","workspace.emptyDir":"This directory is empty","workspace.pathPlaceholder":"Enter path or directory name...","workspace.selectDir":"Create bot in this directory","workspace.filterPlaceholder":"Filter subdirectories...","workspace.recent.title":"Recent Workspaces","workspace.recent.daysAgo":"d ago","workspace.recent.hoursAgo":"h ago","workspace.recent.minutesAgo":"m ago","workspace.recent.justNow":"Just now","workspace.recent.remove":"Remove","workspace.browseTitle":"Browse Workspaces","workspace.recentWorkspaces":"Recent Workspaces","workspace.createNew":"Create New Bot","workspace.browseDir":"Browse Directory","workspace.instanceLocal":"Local","workspace.instanceTunnel":"Tunnel","workspace.instanceCurrent":"Current","workspace.switchInstance":"Switch","workspace.switchingInstance":"Switching...","workspace.switchingWithGateway":"Preparing to switch...","workspace.instanceStarted":"Started","workspace.noWorkspaces":"No active workspaces","workspace.noWorkspacesHint":"Browse directories to create a new bot","workspace.instanceCount":"{count} bots","question.multiLabel":"multi","tasks.title":"Task Templates","tasks.subtitle":"Select a template to create a scheduled task","tasks.loading":"Loading recommended templates...","tasks.error":"Failed to load templates","tasks.retry":"Retry","tasks.refresh":"Refresh","tasks.refreshed":"Refreshed","tasks.empty":"No templates available","tasks.interval":"Every {value}","tasks.interval.1d":"Daily","tasks.interval.2d":"Every 2 days","tasks.interval.3d":"Every 3 days","tasks.interval.1w":"Weekly","tasks.interval.2w":"Every 2 weeks","tasks.interval.1m":"Monthly","plugins.title":"Plugins","plugins.installedPlugins":"Installed Plugins","plugins.browseMarketplace":"Browse Marketplace","plugins.marketplaces":"Marketplaces","plugins.enabled":"Enabled","plugins.disabled":"Disabled","plugins.enable":"Enable","plugins.disable":"Disable","plugins.uninstall":"Uninstall","plugins.install":"Install","plugins.confirmUninstall":"Are you sure you want to uninstall this plugin?","plugins.marketplace":"Marketplace","plugins.addMarketplace":"Add Marketplace","plugins.removeMarketplace":"Remove","plugins.confirmRemoveMarketplace":"Are you sure you want to remove this marketplace?","plugins.noPlugins":"No plugins installed","plugins.noPluginsHint":"Install plugins from a marketplace to extend functionality","plugins.noMarketplaces":"No marketplaces configured","plugins.noMarketplacesHint":"Add a plugin marketplace to browse and install plugins","plugins.selectMarketplace":"Select Marketplace","plugins.selectMarketplaceHint":"Select a marketplace to browse available plugins","plugins.marketplaceNotFound":"Marketplace not found","plugins.noAvailablePlugins":"No available plugins in this marketplace","plugins.noAvailablePluginsHint":"Try adding other marketplaces or check back later","plugins.installed":"Installed","plugins.browsingMarketplace":"Loading...","plugins.loading":"Loading...","plugins.error":"Failed to load plugins","plugins.retry":"Retry","plugins.sourcePlaceholder":"Marketplace URL (Git URL or local path)","plugins.namePlaceholder":"Marketplace name (optional)","plugins.cancel":"Cancel","plugins.add":"Add","plugins.version":"Version","plugins.operationFailed":"Operation failed","plugins.searchPlaceholder":"Search plugins...","plugins.allMarketplaces":"All Marketplaces","plugins.noSearchResults":"No matching plugins found","plugins.totalCount":"plugins","plugins.refresh":"Refresh","plugins.installedLabel":"Installed","plugins.category":"Category","plugins.author":"Author","plugins.license":"License","plugins.homepage":"Homepage","plugins.repository":"Repository","plugins.source":"Source","plugins.keywords":"Keywords","plugins.features":"Features","channel.from":"From","channel.group":"Group","channel.replyTo":"Reply to {source}","channel.wechat":"WeChat","channel.wecom":"WeCom","channel.wecomBot":"WeCom Bot","remoteControl.title":"Remote Control","remoteControl.subtitle":"Manage channel connections","remoteControl.connectedChannels":"Connected Channels","remoteControl.noChannels":"No channels connected","remoteControl.noChannelsHint":"Add a WeChat or WeCom channel, or install more from the marketplace","remoteControl.addWeChat":"Add WeChat Bot","remoteControl.addWeCom":"Add WeCom Bot","remoteControl.connect":"Connect","remoteControl.disconnect":"Disconnect","remoteControl.delete":"Delete","remoteControl.add":"Add","remoteControl.connected":"Connected","remoteControl.disconnected":"Disconnected","remoteControl.connecting":"Connecting...","remoteControl.installMore":"Install More Channels","remoteControl.installMoreHint":"Browse the plugin marketplace for third-party channel plugins","remoteControl.browseMarketplace":"Browse Marketplace","remoteControl.builtIn":"Built-in","remoteControl.plugin":"Plugin","remoteControl.rebind":"Rebind","remoteControl.unbind":"Unbind","remoteControl.bot":" Bot","remoteControl.default":"Default ","remoteControl.next":"Next","remoteControl.cancel":"Cancel","remoteControl.wecomBotIdHint":"From: WeCom Admin → Apps → AI Assistant","remoteControl.wecomSecretHint":"Enter Secret and press Enter or click Connect","remoteControl.fetchingQr":"Fetching QR code...","remoteControl.scanQr":"Scan QR code with WeChat","sidebar.docs":"Docs","docs.title":"Documentation","docs.search.placeholder":"Search docs...","docs.search.noResults":"No matching documents found","docs.search.resultsCount":"{count} results","docs.loading":"Loading...","docs.loadError":"Failed to load document","docs.notFound":"Document not found","docs.apiReference":"API Reference","docs.toc":"On this page","docs.retry":"Retry","docs.backToList":"Back to docs","docs.expandAll":"Expand all","docs.collapseAll":"Collapse all","docs.openStandalone":"Open in new window","sidebar.editor":"Files","editor.title":"Code Editor","editor.loading":"Loading...","editor.loadError":"Failed to load","editor.noFile":"Select a file to start editing","editor.unsaved":"Unsaved","editor.save":"Save","editor.saveAll":"Save All","editor.close":"Close","editor.closeOthers":"Close Others","editor.closeAll":"Close All","editor.newFile":"New File","editor.newFolder":"New Folder","editor.rename":"Rename","editor.delete":"Delete","editor.refresh":"Refresh","editor.emptyFolder":"Empty folder","editor.explorer":"EXPLORER","editor.toggleSidebar":"Toggle Sidebar","editor.collapseAll":"Collapse All","command.btw.description":"Ask a quick side question without interrupting the main Agent work","command.clear.description":"Start a fresh conversation (previous chats remain accessible via /resume)","command.context.description":"Calculate and display context token distribution","command.cost.description":"Show the total cost and duration of the current session","command.doctor.description":"Diagnose and verify your CodeBuddy installation and settings","command.feedback.description":"Open the issue feedback page to report bugs or suggest features","command.gateway.description":'Manage the remote control gateway. Subcommands: "status" to show current status, "stop" to stop the gateway, "token" to regenerate access token, "tunnel" to start with tunnel',"command.remote-control.description":"Manage remote control long connection clients (start, stop, status, list)","command.login.description":"Switch Tencent Cloud CodeBuddy accounts","command.logout.description":"Sign out from your CodeBuddy Code account","command.plan.description":"Preview the current plan file content","command.pr-comments.description":"Get comments from a GitHub pull request","command.release-notes.description":"View release notes","command.review.description":"Review a pull request","command.skills.description":"List available skills","command.todos.description":"Display the current session's todo list","command.reload-plugins.description":"Reload all plugins, skills, agents, hooks, and MCP/LSP servers without restarting","command.plugin-validate.description":"Validate a plugin directory structure and manifest","command.init.description":"Analyzing your codebase…","command.compact.description":"Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization]","command.upgrade.description":"Open upgrade page in browser","command.statusline.description":"Set up Codebuddy Code's status line UI","command.security-review.description":"Complete a security review of the pending changes on the current branch","command.insights.description":"Generate AI-powered insights about your CodeBuddy Code usage patterns and activity","command.loop.description":"Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo, defaults to 10m)","command.task-manager.description":"Team task management - Smart task entry, assignment, tracking and analysis","sidebar.changes":"Changes","fileChanges.title":"Changes","fileChanges.changesSection":"FILE CHANGES","fileChanges.empty":"No file changes","fileChanges.showChanges":"Show file changes","fileChanges.hideChanges":"Hide file changes","fileChanges.revertAll":"Revert all","fileChanges.revertCode":"Revert code","fileChanges.revertChat":"Revert chat","fileChanges.revertCodeAndChat":"Revert all","fileChanges.checkpoints":"Checkpoints","fileChanges.noCheckpoints":"No checkpoints"}};function le(){const{mode:e,resolved:t,setLocale:r,toggle:n}=mn();function a(u){return fc[t][u]??u}function c(u){return fc[t][u]}return{t:a,tryT:c,locale:e,resolved:t,setLocale:r,toggleLocale:n}}function bc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dh(e){if(Array.isArray(e))return e}function uh(e,t,r){return(t=yh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ph(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,c,u,s=[],o=!0,l=!1;try{if(c=(r=r.call(e)).next,t!==0)for(;!(o=(n=c.call(r)).done)&&(s.push(n.value),s.length!==t);o=!0);}catch(m){l=!0,a=m}finally{try{if(!o&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw a}}return s}}function hh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
439
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yc(Object(r),!0).forEach(function(n){uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mh(e,t){if(e==null)return{};var r,n,a=gh(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function gh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fh(e,t){return dh(e)||ph(e,t)||_h(e,t)||hh()}function bh(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yh(e){var t=bh(e,"string");return typeof t=="symbol"?t:t+""}function _h(e,t){if(e){if(typeof e=="string")return bc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bc(e,t):void 0}}function vh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vc(Object(r),!0).forEach(function(n){vh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(a,c){return c(a)},n)}}function Ht(e){return function t(){for(var r=this,n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var u=arguments.length,s=new Array(u),o=0;o<u;o++)s[o]=arguments[o];return t.apply(r,[].concat(a,s))}}}function Er(e){return{}.toString.call(e).includes("Object")}function xh(e){return!Object.keys(e).length}function Zt(e){return typeof e=="function"}function wh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kh(e,t){return Er(t)||ot("changeType"),Object.keys(t).some(function(r){return!wh(e,r)})&&ot("changeField"),t}function Eh(e){Zt(e)||ot("selectorType")}function Ch(e){Zt(e)||Er(e)||ot("handlerType"),Er(e)&&Object.values(e).some(function(t){return!Zt(t)})&&ot("handlersType")}function Th(e){e||ot("initialIsRequired"),Er(e)||ot("initialType"),xh(e)&&ot("initialContent")}function Ah(e,t){throw new Error(e[t]||e.default)}var Nh={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ot=Ht(Ah)(Nh),pr={changes:kh,selector:Eh,handler:Ch,initial:Th};function Ih(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pr.initial(e),pr.handler(t);var r={current:e},n=Ht(Oh)(r,t),a=Ht(Lh)(r),c=Ht(pr.changes)(e),u=Ht(Rh)(r);function s(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return pr.selector(l),l(r.current)}function o(l){Sh(n,a,c,u)(l)}return[s,o]}function Rh(e,t){return Zt(t)?t(e.current):t}function Lh(e,t){return e.current=Sc(Sc({},e.current),t),t}function Oh(e,t,r){return Zt(t)?t(e.current):Object.keys(r).forEach(function(n){var a;return(a=t[n])===null||a===void 0?void 0:a.call(t,e.current[n])}),r}var Dh={create:Ih},$h={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Mh(e){return function t(){for(var r=this,n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var u=arguments.length,s=new Array(u),o=0;o<u;o++)s[o]=arguments[o];return t.apply(r,[].concat(a,s))}}}function jh(e){return{}.toString.call(e).includes("Object")}function Fh(e){return e||xc("configIsRequired"),jh(e)||xc("configType"),e.urls?(Ph(),{paths:{vs:e.urls.monacoBase}}):e}function Ph(){console.warn(Bd.deprecation)}function Bh(e,t){throw new Error(e[t]||e.default)}var Bd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
440
- You are using deprecated way of configuration.
441
-
442
- Instead of using
443
- monaco.config({ urls: { monacoBase: '...' } })
444
- use
445
- monaco.config({ paths: { vs: '...' } })
446
-
447
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
448
- `},xc=Mh(Bh)(Bd),Uh={config:Fh},zh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(a){return r.reduceRight(function(c,u){return u(c)},a)}};function Ud(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ud(e[r],t[r]))}),_c(_c({},e),t)}var Hh={type:"cancelation",msg:"operation is manually canceled"};function Kr(e){var t=!1,r=new Promise(function(n,a){e.then(function(c){return t?a(Hh):n(c)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var Gh=["monaco"],Wh=Dh.create({config:$h,isInitialized:!1,resolve:null,reject:null,monaco:null}),zd=fh(Wh,2),nr=zd[0],Lr=zd[1];function qh(e){var t=Uh.config(e),r=t.monaco,n=mh(t,Gh);Lr(function(a){return{config:Ud(a.config,n),monaco:r}})}function Vh(){var e=nr(function(t){var r=t.monaco,n=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:n,resolve:a}});if(!e.isInitialized){if(Lr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Kr(Yr);if(window.monaco&&window.monaco.editor)return Hd(window.monaco),e.resolve(window.monaco),Kr(Yr);zh(Kh,Xh)(Zh)}return Kr(Yr)}function Kh(e){return document.body.appendChild(e)}function Yh(e){var t=document.createElement("script");return e&&(t.src=e),t}function Xh(e){var t=nr(function(n){var a=n.config,c=n.reject;return{config:a,reject:c}}),r=Yh("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Zh(){var e=nr(function(r){var n=r.config,a=r.resolve,c=r.reject;return{config:n,resolve:a,reject:c}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;Hd(n),e.resolve(n)},function(r){e.reject(r)})}function Hd(e){nr().monaco||Lr({monaco:e})}function Jh(){return nr(function(e){var t=e.monaco;return t})}var Yr=new Promise(function(e,t){return Lr({resolve:e,reject:t})}),Gd={config:qh,init:Vh,__getMonacoInstance:Jh},Qh={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Xr=Qh,em={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},tm=em;function rm({children:e}){return ke.createElement("div",{style:tm.container},e)}var nm=rm,im=nm;function sm({width:e,height:t,isEditorReady:r,loading:n,_ref:a,className:c,wrapperProps:u}){return ke.createElement("section",{style:{...Xr.wrapper,width:e,height:t},...u},!r&&ke.createElement(im,null,n),ke.createElement("div",{ref:a,style:{...Xr.fullWidth,...!r&&Xr.hide},className:c}))}var am=sm,Wd=A.memo(am);function om(e){A.useEffect(e,[])}var qd=om;function lm(e,t,r=!0){let n=A.useRef(!0);A.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Pe=lm;function Kt(){}function Ct(e,t,r,n){return cm(e,n)||dm(e,t,r,n)}function cm(e,t){return e.editor.getModel(Vd(e,t))}function dm(e,t,r,n){return e.editor.createModel(t,r,n?Vd(e,n):void 0)}function Vd(e,t){return e.Uri.parse(t)}function um({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:a,originalModelPath:c,modifiedModelPath:u,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:o=!1,theme:l="light",loading:m="Loading...",options:h={},height:b="100%",width:y="100%",className:w,wrapperProps:v={},beforeMount:p=Kt,onMount:f=Kt}){let[d,g]=A.useState(!1),[_,k]=A.useState(!0),S=A.useRef(null),E=A.useRef(null),x=A.useRef(null),C=A.useRef(f),I=A.useRef(p),R=A.useRef(!1);qd(()=>{let P=Gd.init();return P.then(j=>(E.current=j)&&k(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>S.current?B():P.cancel()}),Pe(()=>{if(S.current&&E.current){let P=S.current.getOriginalEditor(),j=Ct(E.current,e||"",n||r||"text",c||"");j!==P.getModel()&&P.setModel(j)}},[c],d),Pe(()=>{if(S.current&&E.current){let P=S.current.getModifiedEditor(),j=Ct(E.current,t||"",a||r||"text",u||"");j!==P.getModel()&&P.setModel(j)}},[u],d),Pe(()=>{let P=S.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],d),Pe(()=>{var P,j;(j=(P=S.current)==null?void 0:P.getModel())==null||j.original.setValue(e||"")},[e],d),Pe(()=>{let{original:P,modified:j}=S.current.getModel();E.current.editor.setModelLanguage(P,n||r||"text"),E.current.editor.setModelLanguage(j,a||r||"text")},[r,n,a],d),Pe(()=>{var P;(P=E.current)==null||P.editor.setTheme(l)},[l],d),Pe(()=>{var P;(P=S.current)==null||P.updateOptions(h)},[h],d);let F=A.useCallback(()=>{var U;if(!E.current)return;I.current(E.current);let P=Ct(E.current,e||"",n||r||"text",c||""),j=Ct(E.current,t||"",a||r||"text",u||"");(U=S.current)==null||U.setModel({original:P,modified:j})},[r,t,a,e,n,c,u]),N=A.useCallback(()=>{var P;!R.current&&x.current&&(S.current=E.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...h}),F(),(P=E.current)==null||P.editor.setTheme(l),g(!0),R.current=!0)},[h,l,F]);A.useEffect(()=>{d&&C.current(S.current,E.current)},[d]),A.useEffect(()=>{!_&&!d&&N()},[_,d,N]);function B(){var j,U,H,T;let P=(j=S.current)==null?void 0:j.getModel();s||((U=P==null?void 0:P.original)==null||U.dispose()),o||((H=P==null?void 0:P.modified)==null||H.dispose()),(T=S.current)==null||T.dispose()}return ke.createElement(Wd,{width:y,height:b,isEditorReady:d,loading:m,_ref:x,className:w,wrapperProps:v})}var pm=um,hm=A.memo(pm);function mm(e){let t=A.useRef();return A.useEffect(()=>{t.current=e},[e]),t.current}var gm=mm,hr=new Map;function fm({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:a,path:c,theme:u="light",line:s,loading:o="Loading...",options:l={},overrideServices:m={},saveViewState:h=!0,keepCurrentModel:b=!1,width:y="100%",height:w="100%",className:v,wrapperProps:p={},beforeMount:f=Kt,onMount:d=Kt,onChange:g,onValidate:_=Kt}){let[k,S]=A.useState(!1),[E,x]=A.useState(!0),C=A.useRef(null),I=A.useRef(null),R=A.useRef(null),F=A.useRef(d),N=A.useRef(f),B=A.useRef(),P=A.useRef(n),j=gm(c),U=A.useRef(!1),H=A.useRef(!1);qd(()=>{let M=Gd.init();return M.then(L=>(C.current=L)&&x(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>I.current?D():M.cancel()}),Pe(()=>{var L,W,V,Q;let M=Ct(C.current,e||n||"",t||a||"",c||r||"");M!==((L=I.current)==null?void 0:L.getModel())&&(h&&hr.set(j,(W=I.current)==null?void 0:W.saveViewState()),(V=I.current)==null||V.setModel(M),h&&((Q=I.current)==null||Q.restoreViewState(hr.get(c))))},[c],k),Pe(()=>{var M;(M=I.current)==null||M.updateOptions(l)},[l],k),Pe(()=>{!I.current||n===void 0||(I.current.getOption(C.current.editor.EditorOption.readOnly)?I.current.setValue(n):n!==I.current.getValue()&&(H.current=!0,I.current.executeEdits("",[{range:I.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),I.current.pushUndoStop(),H.current=!1))},[n],k),Pe(()=>{var L,W;let M=(L=I.current)==null?void 0:L.getModel();M&&a&&((W=C.current)==null||W.editor.setModelLanguage(M,a))},[a],k),Pe(()=>{var M;s!==void 0&&((M=I.current)==null||M.revealLine(s))},[s],k),Pe(()=>{var M;(M=C.current)==null||M.editor.setTheme(u)},[u],k);let T=A.useCallback(()=>{var M;if(!(!R.current||!C.current)&&!U.current){N.current(C.current);let L=c||r,W=Ct(C.current,n||e||"",t||a||"",L||"");I.current=(M=C.current)==null?void 0:M.editor.create(R.current,{model:W,automaticLayout:!0,...l},m),h&&I.current.restoreViewState(hr.get(L)),C.current.editor.setTheme(u),s!==void 0&&I.current.revealLine(s),S(!0),U.current=!0}},[e,t,r,n,a,c,l,m,h,u,s]);A.useEffect(()=>{k&&F.current(I.current,C.current)},[k]),A.useEffect(()=>{!E&&!k&&T()},[E,k,T]),P.current=n,A.useEffect(()=>{var M,L;k&&g&&((M=B.current)==null||M.dispose(),B.current=(L=I.current)==null?void 0:L.onDidChangeModelContent(W=>{H.current||g(I.current.getValue(),W)}))},[k,g]),A.useEffect(()=>{if(k){let M=C.current.editor.onDidChangeMarkers(L=>{var V;let W=(V=I.current.getModel())==null?void 0:V.uri;if(W&&L.find(Q=>Q.path===W.path)){let Q=C.current.editor.getModelMarkers({resource:W});_==null||_(Q)}});return()=>{M==null||M.dispose()}}return()=>{}},[k,_]);function D(){var M,L;(M=B.current)==null||M.dispose(),b?h&&hr.set(c,I.current.saveViewState()):(L=I.current.getModel())==null||L.dispose(),I.current.dispose()}return ke.createElement(Wd,{width:y,height:w,isEditorReady:k,loading:o,_ref:R,className:v,wrapperProps:p})}var bm=fm,ym=A.memo(bm),_m=ym;const vm={fontSize:13,fontFamily:"'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace",lineHeight:20,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"off",tabSize:4,insertSpaces:!0,renderWhitespace:"selection",padding:{top:0,bottom:0},smoothScrolling:!0,fixedOverflowWidgets:!0,readOnly:!0,renderSideBySide:!1,ignoreTrimWhitespace:!1,enableSplitViewResizing:!0,originalEditable:!1};function Yt({path:e,oldText:t,newText:r,maxHeight:n="100%"}){const{t:a}=le(),{resolved:c}=dt(),u=A.useRef(null),s=c==="dark"?"vs-dark":"vs",o=Sm(e),l=A.useCallback(m=>{u.current=m},[]);return i.jsx("div",{style:{height:n},className:"overflow-hidden",children:i.jsx(hm,{original:t??"",modified:r,language:o,theme:s,height:"100%",onMount:l,loading:i.jsxs("div",{className:"flex items-center justify-center h-full gap-2",style:{color:"var(--color-text-tertiary)"},children:[i.jsx(fe,{size:16,className:"animate-spin"}),i.jsx("span",{style:{fontSize:13},children:a("editor.loading")})]}),options:vm})})}function Sm(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",go:"go",java:"java",rs:"rust",rb:"ruby",php:"php",cpp:"cpp",c:"c",cs:"csharp",swift:"swift",kt:"kotlin",scala:"scala",sh:"shell",bash:"shell",zsh:"shell",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",less:"less",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",dockerfile:"dockerfile"}[t]||"text"}const xm=[[[["arttext-icon",["dark-purple","dark-purple"],/\.artx$/i],["atom-icon",["dark-green","dark-green"],/^\.atom$/],["bower-icon",["medium-yellow","medium-orange"],/^bower[-_]components$/],["dropbox-icon",["medium-blue","medium-blue"],/^(?:Dropbox|\.dropbox\.cache)$/],["emacs-icon",["medium-purple","medium-purple"],/^\.emacs\.d$/],["dylib-icon",[null,null],/\.framework$/i],["git-icon",["medium-red","medium-red"],/\.git$/],["github-icon",[null,null],/^\.github$/],["meteor-icon",["dark-orange","dark-orange"],/^\.meteor$/],["node-icon",["medium-green","medium-green"],/^node_modules$/],["package-icon",[null,null],/^\.bundle$/i],["svn-icon",[null,null],/^\.svn$/i],["textmate-icon",[null,null],/\.tmBundle$/i],["vagrant-icon",["medium-cyan","medium-cyan"],/\.vagrant$/i],["appstore-icon",[null,null],/\.xcodeproj$/i]],[[],[],[],[],[]]],[[["binary-icon",["dark-green","dark-green"],/\.swp$/i,4],["link-icon",["medium-blue","medium-blue"],/\.lnk$/i,3],["angular-icon",["medium-red","medium-red"],/^angular[^.]*\.js$/i,2],["ant-icon",["dark-pink","dark-pink"],/^ant\.xml$|\.ant$/i,2],["apache-icon",["medium-red","medium-red"],/^(?:apache2?|httpd).conf$/i,2],["apache-icon",["dark-green","dark-green"],/\.vhost$/i,2],["apache-icon",["medium-green","medium-green"],/\.thrift$/i,2],["appcelerator-icon",["medium-red","medium-red"],/^appcelerator\.js$/i,2],["appveyor-icon",["medium-blue","medium-blue"],/^appveyor\.yml$/i,2],["archlinux-icon",["dark-purple","dark-purple"],/^\.install$/,2],["archlinux-icon",["dark-maroon","dark-maroon"],/^\.SRCINFO$/,2],["archlinux-icon",["dark-yellow","dark-yellow"],/^pacman\.conf$/,2],["archlinux-icon",["light-yellow","light-yellow"],/^pamac\.conf$/,2],["archlinux-icon",["dark-cyan","dark-cyan"],/^PKGBUILD$/,2],["archlinux-icon",["light-yellow","light-yellow"],/yaourtrc$/i,2],["backbone-icon",["dark-blue","dark-blue"],/^backbone(?:[-.]min|dev)?\.js$/i,2],["boot-icon",["medium-green","dark-green"],/^Makefile\.boot$/i,2],["bootstrap-icon",["medium-yellow","dark-yellow"],/^(?:custom\.)?bootstrap\S*\.js$/i,2],["bootstrap-icon",["medium-blue","medium-blue"],/^(?:custom\.)?bootstrap\S*\.css$/i,2],["bootstrap-icon",["dark-blue","dark-blue"],/^(?:custom\.)?bootstrap\S*\.less$/i,2],["bootstrap-icon",["light-pink","light-pink"],/^(?:custom\.)?bootstrap\S*\.scss$/i,2],["bootstrap-icon",["medium-green","medium-green"],/^(?:custom\.)?bootstrap\S*\.styl$/i,2],["bower-icon",["medium-yellow","medium-orange"],/^(?:\.bowerrc|bower\.json|Bowerfile)$/i,2],["brakeman-icon",["medium-red","medium-red"],/brakeman\.yml$/i,2],["brakeman-icon",["dark-red","dark-red"],/^brakeman\.ignore$/i,2],["broccoli-icon",["medium-green","medium-green"],/^Brocfile\./i,2],["package-icon",["light-orange","light-orange"],/Cargo\.toml$/i,2],["package-icon",["dark-orange","dark-orange"],/Cargo\.lock$/i,2],["chai-icon",["medium-red","dark-red"],/^chai\.(?:[jt]sx?|es6?|coffee)$/i,2],["chartjs-icon",["dark-pink","dark-pink"],/^Chart\.js$/i,2],["circleci-icon",["medium-green","medium-green"],/^circle\.yml$/i,2],["cc-icon",["medium-green","medium-green"],/\.codeclimate\.yml$/i,2],["codecov-icon",["dark-pink","dark-pink"],/^codecov\.ya?ml$/i,2],["coffee-icon",["medium-cyan","medium-cyan"],/\.coffee\.ecr$/i,2],["coffee-icon",["medium-red","medium-red"],/\.coffee\.erb$/i,2],["compass-icon",["medium-red","medium-red"],/^_?(?:compass|lemonade)\.scss$/i,2],["composer-icon",["medium-yellow","medium-yellow"],/^composer\.(?:json|lock)$/i,2],["composer-icon",["dark-blue","dark-blue"],/^composer\.phar$/i,2],["cordova-icon",["light-blue","light-blue"],/^cordova(?:[^.]*\.|-(?:\d\.)+)js$/i,2],["d3-icon",["medium-orange","medium-orange"],/^d3(?:\.v\d+)?[^.]*\.js$/i,2],["database-icon",["medium-red","medium-red"],/^METADATA\.pb$/,2],["database-icon",["medium-red","medium-red"],/\.git[\/\\](?:.*[\/\\])?(?:HEAD|ORIG_HEAD|packed-refs|logs[\/\\](?:.+[\/\\])?[^\/\\]+)$/,2,!0],["docker-icon",["dark-blue","dark-blue"],/^(?:Dockerfile(\.\w+$|)|docker-compose)|\.docker(?:file|ignore)$/i,2,!1,,/\.dockerfile$/i,/^Docker$/i],["docker-icon",["dark-orange","dark-orange"],/^docker-sync\.yml$/i,2],["dojo-icon",["light-red","light-red"],/^dojo\.js$/i,2],["ember-icon",["medium-red","medium-red"],/^ember(?:\.|(?:-[^.]+)?-(?:\d+\.)+(?:debug\.)?)js$/i,2],["eslint-icon",["medium-purple","medium-purple"],/\.eslint(?:cache|ignore)$/i,2],["eslint-icon",["light-purple","light-purple"],/\.eslintrc(?:\.(?:js|json|ya?ml))?$/i,2],["extjs-icon",["light-green","light-green"],/\bExtjs(?:-ext)?\.js$/i,2],["fabfile-icon",["medium-blue","medium-blue"],/^fabfile\.py$/i,2],["fuelux-icon",["medium-orange","dark-orange"],/^fuelux(?:\.min)?\.(?:css|js)$/i,2],["gear-icon",["medium-blue","medium-blue"],/\.indent\.pro$/i,2],["grunt-icon",["medium-yellow","medium-yellow"],/gruntfile\.js$/i,2],["grunt-icon",["medium-maroon","medium-maroon"],/gruntfile\.coffee$/i,2],["gulp-icon",["medium-red","medium-red"],/gulpfile\.((babel\.)?js|ts)$/i,2],["gulp-icon",["medium-maroon","medium-maroon"],/gulpfile\.coffee$/i,2],["html5-icon",["medium-cyan","medium-cyan"],/\.html?\.ecr$/i,2],["html5-icon",["medium-red","medium-red"],/\.(?:html?\.erb|rhtml)$/i,2,!1,,/\.html\.erb$/i,/^HTML$/i],["ionic-icon",["medium-blue","medium-blue"],/^ionic\.project$/,2],["js-icon",["medium-cyan","medium-cyan"],/\.js\.ecr$/i,2],["js-icon",["medium-red","medium-red"],/\.js\.erb$/i,2],["jquery-icon",["dark-blue","dark-blue"],/^jquery(?:[-.](?:min|latest|\d\.\d+(?:\.\d+)?))*\.(?:[jt]sx?|es6?|coffee|map)$/i,2],["jqueryui-icon",["dark-blue","dark-blue"],/^jquery(?:[-_.](?:ui[-_.](?:custom|dialog-?\w*)|effects)(?:\.[^.]*)?|[-.]?ui(?:-\d\.\d+(?:\.\d+)?)?(?:\.\w+)?)(?:[-_.]?min|dev)?\.(?:[jt]sx?|es6?|coffee|map|s?css|less|styl)$/i,2],["karma-icon",["medium-cyan","medium-cyan"],/^karma\.conf\.js$/i,2],["karma-icon",["medium-maroon","medium-maroon"],/^karma\.conf\.coffee$/i,2],["knockout-icon",["medium-red","medium-red"],/^knockout[-.](?:\d+\.){3}(?:debug\.)?js$/i,2],["leaflet-icon",["medium-green","medium-green"],/^leaflet\.(?:draw-src|draw|spin|coordinates-(?:\d+\.)\d+\.\d+\.src)\.(?:js|css)$|^wicket-leaflet\.js$/i,2],["lein-icon",[null,null],/project\.clj$/i,2],["manpage-icon",["dark-green","dark-green"],/^tmac\.|^(?:mmn|mmt)$/i,2],["marko-icon",["medium-blue","medium-blue"],/\.marko$/i,2,!1,/^marko$/,/\.marko$/i,/^mark[0o]$/i],["marko-icon",["medium-maroon","medium-maroon"],/\.marko\.js$/i,2],["materialize-icon",["light-red","light-red"],/^materialize(?:\.min)?\.(?:js|css)$/i,2],["mathjax-icon",["dark-green","dark-green"],/^MathJax[^.]*\.js$/i,2],["mocha-icon",["medium-maroon","medium-maroon"],/^mocha\.(?:[jt]sx?|es6?|coffee)$/i,2],["mocha-icon",["medium-red","medium-red"],/^mocha\.(?:s?css|less|styl)$/i,2],["mocha-icon",["light-maroon","light-maroon"],/mocha\.opts$/i,2],["modernizr-icon",["medium-red","medium-red"],/^modernizr(?:[-\.]custom|-\d\.\d+)(?:\.\d+)?\.js$/i,2],["mootools-icon",["medium-purple","medium-purple"],/^mootools[^.]*\d+\.\d+(?:.\d+)?[^.]*\.js$/i,2],["neko-icon",["dark-orange","dark-orange"],/^run\.n$/,2],["newrelic-icon",["medium-cyan","medium-cyan"],/^newrelic\.yml/i,2],["nginx-icon",["dark-green","dark-green"],/^nginx\.conf$/i,2],["shuriken-icon",["dark-cyan","dark-cyan"],/\.ninja\.d$/i,2],["nodemon-icon",["medium-green","medium-green"],/^nodemon\.json$|^\.nodemonignore$/i,2],["normalize-icon",["medium-red","medium-red"],/^normalize\.(?:css|less|scss|styl)$/i,2],["npm-icon",["medium-red","medium-red"],/^(?:package\.json|\.npmignore|\.?npmrc|npm-debug\.log|npm-shrinkwrap\.json)$/i,2],["postcss-icon",["medium-yellow","dark-yellow"],/\bpostcss\.config\.js$/i,2],["protractor-icon",["medium-red","medium-red"],/^protractor\.conf\./i,2],["pug-icon",["medium-orange","medium-orange"],/^\.pug-lintrc/i,2],["raphael-icon",["medium-orange","medium-orange"],/^raphael(?:\.min|\.no-deps)*\.js$/i,2],["react-icon",["dark-blue","dark-blue"],/^react(?:-[^.]*)?\.js$/i,2],["react-icon",["medium-blue","dark-blue"],/\.react\.js$/i,2],["book-icon",["medium-blue","medium-blue"],/^README(?:\b|_)|^(?:licen[sc]es?|(?:read|readme|click|delete|keep|test)\.me)$|\.(?:readme|1st)$/i,2],["book-icon",["dark-blue","dark-blue"],/^(?:notice|bugs|changes|change[-_]?log(?:[-._]?\d+)?|contribute|contributing|contributors|copying|hacking|history|install|maintainers|manifest|more\.stuff|projects|revision|terms|thanks)$/i,2],["requirejs-icon",["medium-blue","medium-blue"],/^require(?:[-.]min|dev)?\.js$/i,2],["clojure-icon",["medium-maroon","dark-maroon"],/^riemann\.config$/i,2],["rollup-icon",["medium-red","medium-red"],/^rollup\.config\./i,2],["ruby-icon",["light-green","light-green"],/_spec\.rb$/i,2],["scrutinizer-icon",["dark-blue","dark-blue"],/\.scrutinizer\.yml$/i,2],["sencha-icon",["light-green","light-green"],/^sencha(?:\.min)?\.js$/i,2],["snapsvg-icon",["medium-cyan","medium-cyan"],/^snap\.svg(?:[-.]min)?\.js$/i,2],["sourcemap-icon",["medium-blue","medium-blue"],/\.css\.map$/i,2],["sourcemap-icon",["medium-yellow","dark-yellow"],/\.js\.map$/i,2],["stylelint-icon",["medium-purple","medium-purple"],/^\.stylelintrc(?:\.|$)/i,2],["stylelint-icon",["medium-yellow","dark-yellow"],/^stylelint\.config\.js$/i,2],["stylelint-icon",["dark-blue","dark-blue"],/\.stylelintignore$/i,2],["toc-icon",["medium-cyan","dark-cyan"],/\.toc$/i,2,!1,,/\.toc$/i,/^Table of Contents$/i],["calc-icon",["medium-maroon","medium-maroon"],/\.8x[pk](?:\.txt)?$/i,2,!1,,,,/^\*\*TI[789]\d\*\*/],["travis-icon",["medium-red","medium-red"],/^\.travis/i,2],["typedoc-icon",["dark-purple","dark-purple"],/^typedoc\.json$/i,2],["typings-icon",["medium-maroon","medium-maroon"],/^typings\.json$/i,2],["uikit-icon",["medium-blue","medium-blue"],/^uikit(?:\.min)?\.js$/i,2],["webpack-icon",["medium-blue","medium-blue"],/webpack\.config\.|^webpackfile\.js$/i,2],["wercker-icon",["medium-purple","medium-purple"],/^wercker\.ya?ml$/i,2],["yarn-icon",["medium-blue","medium-blue"],/^yarn\.lock$/i,2],["yeoman-icon",["medium-cyan","medium-cyan"],/\.yo-rc\.json$/i,2],["yui-icon",["dark-blue","dark-blue"],/^(?:yahoo-|yui)[^.]*\.js$/i,2],["emacs-icon",["medium-red","medium-red"],/\.gnus$/i,1.5],["emacs-icon",["dark-green","dark-green"],/\.viper$/i,1.5],["emacs-icon",["dark-blue","dark-blue"],/^Cask$/,1.5],["emacs-icon",["medium-blue","medium-blue"],/^Project\.ede$/i,1.5],["_1c-icon",["medium-red","medium-red"],/\.bsl$/i,,!1,,/\.bsl$/i,/^1C$|^1[\W_ \t]?C[\W_ \t]?Enterprise$/i],["_1c-icon",["dark-orange","dark-orange"],/\.sdbl$/i,,!1,,/\.sdbl$/i,/^1C$|^1[\W_ \t]?C[\W_ \t]?Query$/i],["_1c-icon",["dark-red","dark-red"],/\.os$/i],["_1c-alt-icon",["medium-red","dark-red"],/\.mdo$/i],["abap-icon",["medium-orange","medium-orange"],/\.abap$/i,,!1,,/\.abp$/i,/^ABAP$/i],["as-icon",["medium-blue","medium-blue"],/\.swf$/i],["as-icon",["medium-red","medium-red"],/\.as$/i,,!1,,/\.(?:flex-config|actionscript(?:\.\d+)?)$/i,/^ActionScript$|^(?:ActionScript\s*3|as3)$/i],["as-icon",["medium-yellow","dark-yellow"],/\.jsfl$/i],["as-icon",["dark-red","dark-red"],/\.swc$/i],["ada-icon",["medium-blue","medium-blue"],/\.(?:ada|adb|ads)$/i,,!1,,/\.ada$/i,/^Ada$|^(?:ada95|ada2005)$/i],["ae-icon",["dark-pink","dark-pink"],/\.aep$/i],["ae-icon",["dark-purple","dark-purple"],/\.aet$/i],["ai-icon",["medium-orange","medium-orange"],/\.ai$/i],["ai-icon",["dark-orange","dark-orange"],/\.ait$/i],["indesign-icon",["dark-pink","dark-pink"],/\.indd$|\.idml$/i],["indesign-icon",["medium-purple","medium-purple"],/\.indl$/i],["indesign-icon",["dark-purple","dark-purple"],/\.indt$|\.inx$/i],["indesign-icon",["dark-blue","dark-blue"],/\.indb$/i],["psd-icon",["medium-blue","medium-blue"],/\.psd$/i,,!1,,,,/^8BPS/],["psd-icon",["dark-purple","dark-purple"],/\.psb$/i],["premiere-icon",["dark-purple","dark-purple"],/\.prproj$/i],["premiere-icon",["medium-maroon","medium-maroon"],/\.prel$/i],["premiere-icon",["medium-purple","medium-purple"],/\.psq$/i],["alloy-icon",["medium-red","medium-red"],/\.als$/i,,!1,,/\.alloy$/i,/^Alloy$/i],["alpine-icon",["dark-blue","dark-blue"],/(?:\.|^)APKBUILD$/],["ampl-icon",["dark-maroon","dark-maroon"],/\.ampl$/i,,!1,,/\.ampl$/i,/^AMPL$/i],["sun-icon",["medium-yellow","dark-yellow"],/\.ansiweatherrc$/i],["antlr-icon",["medium-red","medium-red"],/\.g$/i,,!1,/^antlr$/,/\.antlr$/i,/^antlr$/i],["antlr-icon",["medium-orange","medium-orange"],/\.g4$/i],["apache-icon",["dark-red","dark-red"],/\.apacheconf$/i,,!1,,/\.apache-config$/i,/^Apache$|^(?:aconf|ApacheConf)$/i],["apache-icon",["medium-purple","medium-purple"],/apache2[\\\/]magic$/i,,!0],["api-icon",["medium-blue","medium-blue"],/\.apib$/i,,!1,,/\.apib$/i,/^API Blueprint$/i],["apl-icon",["dark-cyan","dark-cyan"],/\.apl$/i,,!1,/^apl$/,/\.apl$/i,/^apl$/i],["apl-icon",["medium-maroon","medium-maroon"],/\.apl\.history$/i],["apple-icon",["medium-purple","medium-purple"],/\.(?:applescript|scpt)$/i,,!1,/^osascript$/,/\.applescript$/i,/^Apple$|^[0o]sascript$/i],["arc-icon",["medium-blue","medium-blue"],/\.arc$/i],["arduino-icon",["dark-cyan","dark-cyan"],/\.ino$/i,,!1,,/\.arduino$/i,/^Arduino$/i],["asciidoc-icon",["medium-blue","medium-blue"],/\.(?:ad|adoc|asc|asciidoc)$/i,,!1,,/\.asciidoc$/i,/^AsciiDoc$/i],["asp-icon",["dark-blue","dark-blue"],/\.asp$/i,,!1,,/\.asp$/i,/^[Aa][Ss][Pp][\W_ \t]?[Nn][Ee][Tt]$|^aspx(?:-vb)?$/],["asp-icon",["medium-maroon","medium-maroon"],/\.asax$/i],["asp-icon",["dark-green","dark-green"],/\.ascx$/i],["asp-icon",["medium-green","medium-green"],/\.ashx$/i],["asp-icon",["dark-cyan","dark-cyan"],/\.asmx$/i],["asp-icon",["medium-purple","medium-purple"],/\.aspx$/i],["asp-icon",["medium-cyan","medium-cyan"],/\.axd$/i],["eclipse-icon",["medium-maroon","medium-maroon"],/\.aj$/i],["binary-icon",["medium-red","medium-red"],/\.(?:l?a|[ls]?o|out|s|a51|n?asm|axf|elf|prx|puff|was[mt]|z80)$|\.rpy[bc]$/i,,!1,,/(?:^|\.)(?:a[rs]m|x86|z80|lc-?3|cpu12|x86asm|m68k|assembly|avr(?:dis)?asm|dasm)(?:\.|$)/i,/^Assembly$|^n?asm$/i],["binary-icon",["dark-blue","dark-blue"],/\.agc$|\.d-objdump$/i,,!1,,/\.source\.agc$/i,/^Assembly$|^(?:Virtual\s*)?AGC$|^Apollo(?:[-_\s]*11)?\s*Guidance\s*Computer$/i],["binary-icon",["dark-green","dark-green"],/\.ko$/i],["binary-icon",["medium-blue","medium-blue"],/\.lst$/i,,!1,/^lst-cpu12$/,/\.lst-cpu12$/i,/^Assembly$|^lst[\W_ \t]?cpu12$/i],["binary-icon",["dark-orange","dark-orange"],/\.(?:(?:c(?:[+px]{2}?)?-?)?objdump|bsdiff|bin|dat|pak|pdb)$/i],["binary-icon",["medium-orange","medium-orange"],/\.gcode|\.gco/i],["binary-icon",["dark-purple","dark-purple"],/\.py[co]$/i],["binary-icon",[null,null],/\.DS_Store$/i],["ats-icon",["medium-red","medium-red"],/\.dats$/i,,!1,,/\.ats$/i,/^ATS$|^ats2$/i],["ats-icon",["medium-blue","medium-blue"],/\.hats$/i],["ats-icon",["dark-yellow","dark-yellow"],/\.sats$/i],["audacity-icon",["medium-yellow","medium-yellow"],/\.aup$/i],["audio-icon",["medium-red","medium-red"],/\.mp3$/i,,!1,,,,/^\xFF\xFB|^ID3/],["audio-icon",["dark-yellow","dark-yellow"],/\.wav$/i,,!1,,,,/^RIFF(?!.+WEBP)/],["audio-icon",["dark-cyan","dark-cyan"],/\.(?:aac|ac3|m4p)$/i,,!1,,,,/^\x0Bw/],["audio-icon",["medium-purple","medium-purple"],/\.aif[fc]?$/i,,!1,,,,/^FORM.{4}AIFF/],["audio-icon",["medium-cyan","medium-cyan"],/\.au$/i,,!1,,,,/^\.snd|^dns\./],["audio-icon",["dark-red","dark-red"],/\.flac$/i,,!1,,,,/^fLaC/],["audio-icon",["medium-red","medium-red"],/\.f4[ab]$/i,,!1,,,,/^FLV\x01\x04/],["audio-icon",["medium-cyan","medium-cyan"],/\.m4a$/i,,!1,,,,/^.{4}ftypM4A/],["audio-icon",["dark-green","dark-green"],/\.(?:mpc|mp\+)$/i,,!1,,,,/^MPCK/],["audio-icon",["dark-orange","dark-orange"],/\.oga$/i],["audio-icon",["dark-maroon","dark-maroon"],/\.opus$/i,,!1,,,,/OpusHead/],["audio-icon",["dark-blue","dark-blue"],/\.r[am]$/i,,!1,,,,/^\.RMF/],["audio-icon",["medium-blue","medium-blue"],/\.wma$/i],["augeas-icon",["dark-orange","dark-orange"],/\.aug$/i],["ahk-icon",["dark-blue","dark-blue"],/\.ahk$/i,,!1,/^ahk$/,/\.ahk$/i,/^AutoHotkey$|^ahk$/i],["ahk-icon",["dark-purple","dark-purple"],/\.ahkl$/i],["autoit-icon",["medium-purple","medium-purple"],/\.au3$/i,,!1,,/(?:^|\.)autoit(?:\.|$)/i,/^AutoIt$|^(?:AutoIt3|AutoItScript|au3)$/i],["terminal-icon",["medium-blue","medium-blue"],/\.awk$/i,,!1,/^awk$/,/\.awk$/i,/^awk$/i],["terminal-icon",["medium-red","medium-red"],/\.gawk$/i,,!1,/^gawk$/,/\.gawk$/i,/^AWK$|^gawk$/i],["terminal-icon",["medium-maroon","medium-maroon"],/\.mawk$/i,,!1,/^mawk$/,/\.mawk$/i,/^AWK$|^mawk$/i],["terminal-icon",["dark-green","dark-green"],/\.nawk$/i,,!1,/^nawk$/,/\.nawk$/i,/^AWK$|^nawk$/i],["terminal-icon",["dark-cyan","dark-cyan"],/\.auk$/i],["babel-icon",["medium-yellow","medium-yellow"],/\.(?:babelrc|languagebabel|babel)$/i],["babel-icon",["dark-yellow","dark-yellow"],/\.babelignore$/i],["bibtex-icon",["medium-red","dark-red"],/\.cbx$/i],["bibtex-icon",["medium-orange","dark-orange"],/\.bbx$/i],["bibtex-icon",["medium-yellow","dark-yellow"],/\.bib$/i,,!1,/^bibtex$/,/\.bibtex$/i,/^bibtex$/i],["bibtex-icon",["medium-green","dark-green"],/\.bst$/i],["gnu-icon",["medium-red","medium-red"],/\.bison$/i,,!1,,/\.bison$/i,/^Bison$/i],["blender-icon",["medium-orange","medium-orange"],/\.blend$/i],["blender-icon",["dark-orange","dark-orange"],/\.blend\d+$/i],["blender-icon",["dark-blue","dark-blue"],/\.bphys$/i],["bluespec-icon",["dark-blue","dark-blue"],/\.bsv$/i,,!1,,/\.bsv$/i,/^Bluespec$/i],["boo-icon",["medium-green","medium-green"],/\.boo$/i,,!1,,/\.boo(?:\.unity)?$/i,/^Boo$/i],["boot-icon",[null,null],/\.boot$/i],["brain-icon",["dark-pink","dark-pink"],/\.bf?$/i,,!1,,/\.(?:bf|brainfuck)$/i,/^Brainfuck$|^(?:bf|Brainf\**ck)$/i],["brew-icon",["medium-orange","medium-orange"],/^Brewfile$/],["bro-icon",["dark-cyan","dark-cyan"],/\.bro$/i,,!1,,/\.bro$/i,/^Bro$/i],["byond-icon",["medium-blue","medium-blue"],/\.dm$/i,,!1,,/\.dm$/i,/^BYOND$|^(?:DM|Dream\s*Maker(?:\s*Script)?)$/i],["c-icon",["medium-blue","medium-blue"],/\.c$/i,,!1,/^tcc$/,/\.c$/i,/^C$/i],["c-icon",["medium-purple","medium-purple"],/\.h$|\.cats$/i],["c-icon",["medium-green","medium-green"],/\.idc$/i],["c-icon",["medium-maroon","medium-maroon"],/\.w$/i],["c-icon",["dark-blue","dark-blue"],/\.nc$/i],["c-icon",["medium-cyan","medium-cyan"],/\.upc$/i],["csharp-icon",["medium-blue","dark-blue"],/\.cs$/i,,!1,,/\.cs$/i,/^C#$|^c\s*sharp$/i],["csscript-icon",["dark-green","dark-green"],/\.csx$/i,,!1,,/\.csx$/i,/^C#-Script$/i],["cpp-icon",["medium-blue","dark-blue"],/\.c[+px]{2}$|\.cc$/i,,!1,,/\.cpp$/i,/^C\+\+$|c[-_]?pp|cplusplus/i],["cpp-icon",["medium-purple","dark-purple"],/\.h[+px]{2}$/i],["cpp-icon",["medium-orange","dark-orange"],/\.[it]pp$/i],["cpp-icon",["medium-red","dark-red"],/\.(?:tcc|inl)$/i],["cabal-icon",["medium-cyan","medium-cyan"],/\.cabal$/i,,!1,,/\.cabal$/i,/^Cabal$/i],["cake-icon",["medium-yellow","medium-yellow"],/\.cake$/i,,!1,,/\.cake$/i,/^Cake$/i],["cakefile-icon",["medium-red","medium-red"],/^Cakefile$/],["cakephp-icon",["medium-red","medium-red"],/\.ctp$/i],["ceylon-icon",["medium-orange","medium-orange"],/\.ceylon$/i],["chapel-icon",["medium-green","medium-green"],/\.chpl$/i,,!1,,/\.chapel$/i,/^Chapel$|^chpl$/i],["chrome-icon",["medium-red","medium-red"],/\.crx$/i,,!1,,,,/^Cr24/],["chuck-icon",["medium-green","medium-green"],/\.ck$/i,,!1,,/\.chuck$/i,/^ChucK$/i],["cirru-icon",["medium-pink","dark-pink"],/\.cirru$/i,,!1,,/\.cirru$/i,/^Cirru$/i],["clarion-icon",["medium-orange","medium-orange"],/\.clw$/i,,!1,,/\.clarion$/i,/^Clarion$/i],["clean-icon",["dark-cyan","dark-cyan"],/\.icl$/i,,!1,/^clean$/,/\.clean$/i,/^clean$/i],["clean-icon",["medium-cyan","medium-cyan"],/\.dcl$/i],["clean-icon",["medium-blue","medium-blue"],/\.abc$/i],["click-icon",["medium-yellow","medium-yellow"],/\.click$/i,,!1,,/\.click$/i,/^Click$|^Click!$/i],["clips-icon",["dark-green","dark-green"],/\.clp$/i,,!1,,/\.clips$/i,/^CLIPS$/i],["clojure-icon",["medium-blue","dark-blue"],/\.clj$/i,,!1,/^clojure$/,/\.clojure$/i,/^cl[0o]jure$/i],["clojure-icon",["medium-purple","dark-purple"],/\.cl2$/i],["clojure-icon",["medium-green","dark-green"],/\.cljc$/i],["clojure-icon",["medium-red","dark-red"],/\.cljx$|\.hic$/i],["cljs-icon",["medium-blue","dark-blue"],/\.cljs(?:\.hl|cm)?$/i],["cmake-icon",["medium-green","medium-green"],/\.cmake$/i,,!1,/^cmake$/,/\.cmake$/i,/^cmake$/i],["cmake-icon",["medium-red","medium-red"],/^CMakeLists\.txt$/],["coffee-icon",["medium-maroon","medium-maroon"],/\.coffee$/i,,!1,/^coffee$/,/\.coffee$/i,/^CoffeeScript$|^Coffee(?:-Script)?$/i],["coffee-icon",["dark-maroon","dark-maroon"],/\.cjsx$/i],["coffee-icon",["light-maroon","light-maroon"],/\.litcoffee$/i,,!1,/^litcoffee$/,/\.litcoffee$/i,/^CoffeeScript$|^litc[0o]ffee$/i],["coffee-icon",["medium-blue","medium-blue"],/\.iced$/i],["cf-icon",["light-cyan","light-cyan"],/\.cfc$/i,,!1,,/\.cfscript$/i,/^ColdFusion$|^(?:CFC|CFScript)$/i],["cf-icon",["medium-cyan","medium-cyan"],/\.cfml?$/i,,!1,,/\.cfml?$/i,/^ColdFusion$|^(?:cfml?|ColdFusion\s*HTML)$/i],["khronos-icon",["medium-orange","medium-orange"],/\.dae$/i],["cl-icon",["medium-orange","medium-orange"],/\.cl$/i,,!1,/^(?:c?lisp|sbcl|[ec]cl)$/,/\.common-lisp$/i,/^Common Lisp$|^c?lisp$/i],["cp-icon",["medium-maroon","medium-maroon"],/\.cp$/i],["cp-icon",["dark-red","dark-red"],/\.cps$/i],["zip-icon",[null,null],/\.(?:zip|z|xz)$/i,,!1,,,,/^(?:\x50\x4B(?:\x03\x04|\x05\x06|\x07|\x08)|\x1F[\x9D\xA0]|BZh|RNC[\x01\x02]|\xD0\xCF\x11\xE0)/],["zip-icon",["medium-blue","medium-blue"],/\.rar$/i,,!1,,,,/^Rar!\x1A\x07\x01?\0/],["zip-icon",["dark-blue","dark-blue"],/\.t?gz$|\.tar$|\.whl$/i,,!1,,,,/^\x1F\x8B/],["zip-icon",["medium-maroon","medium-maroon"],/\.(?:lzo?|lzma|tlz|tar\.lzma)$/i,,!1,,,,/^LZIP/],["zip-icon",["medium-maroon","medium-maroon"],/\.7z$/i,,!1,,,,/^7z\xBC\xAF\x27\x1C/],["zip-icon",["medium-red","medium-red"],/\.apk$|\.gem$/i],["zip-icon",["dark-cyan","dark-cyan"],/\.bz2$/i],["zip-icon",["medium-blue","medium-blue"],/\.iso$/i,,!1,,,,/^\x45\x52\x02\0{3}|^\x8B\x45\x52\x02/],["zip-icon",["medium-orange","medium-orange"],/\.xpi$/i],["zip-icon",["medium-green","medium-green"],/\.epub$/i],["zip-icon",["dark-pink","dark-pink"],/\.jar$/i],["zip-icon",["medium-purple","medium-purple"],/\.war$/i],["zip-icon",["dark-orange","dark-orange"],/\.xar$/i,,!1,,,,/^xar!/],["zip-icon",["light-orange","light-orange"],/\.egg$/i],["config-icon",["medium-yellow","medium-yellow"],/\.(?:ini|desktop|directory|cfg|conf|prefs)$/i,,!1,,/\.ini$/i,/^d[0o]sini$/i],["config-icon",["medium-purple","medium-purple"],/\.properties$/i,,!1,,/\.java-properties$/i],["config-icon",["medium-green","medium-green"],/\.toml$|\.opts$/i],["config-icon",["dark-red","dark-red"],/\.ld$/i],["config-icon",["medium-red","medium-red"],/\.lds$|\.reek$/i],["config-icon",["dark-blue","dark-blue"],/\.terminal$/i],["config-icon",["medium-orange","medium-orange"],/^ld\.script$/i],["config-icon",["dark-red","dark-red"],/\.git[\/\\](?:config|info[\/\\]\w+)$/,,!0],["config-icon",["dark-orange","dark-orange"],/^\/(?:private\/)?etc\/(?:[^\/]+\/)*[^\/]*\.(?:cf|conf|ini)(?:\.default)?$/i,,!0],["config-icon",["medium-maroon","medium-maroon"],/^\/(?:private\/)?etc\/(?:aliases|auto_(?:home|master)|ftpusers|group|gettytab|hosts(?:\.equiv)?|manpaths|networks|paths|protocols|services|shells|sudoers|ttys)$/i,,!0],["coq-icon",["medium-maroon","medium-maroon"],/\.coq$/i,,!1,,/\.coq$/i,/^Coq$/i],["creole-icon",["medium-blue","medium-blue"],/\.creole$/i,,!1,,/\.creole$/i,/^Creole$/i],["crystal-icon",["medium-cyan","medium-cyan"],/\.e?cr$/i,,!1,/^crystal$/,/\.crystal$/i,/^Crystal$/i],["csound-icon",["medium-maroon","medium-maroon"],/\.orc$/i,,!1,,/\.csound$/i,/^Csound$|^cs[0o]und[\W_ \t]?[0o]rc$/i],["csound-icon",["dark-orange","dark-orange"],/\.udo$/i],["csound-icon",["dark-maroon","dark-maroon"],/\.csd$/i,,!1,,/\.csound-document$/i,/^Csound$|^cs[0o]und[\W_ \t]?csd$/i],["csound-icon",["dark-blue","dark-blue"],/\.sco$/i,,!1,,/\.csound-score$/i,/^Csound$|^cs[0o]und[\W_ \t]?sc[0o]$/i],["css3-icon",["medium-blue","medium-blue"],/\.css$/i,,!1,/^css$/,/\.css$/i,/^css$/i],["css3-icon",["dark-blue","dark-blue"],/\.less$/i,,!1,/^less$/,/\.less$/i,/^CSS$|^less$/i],["cucumber-icon",["medium-green","medium-green"],/\.feature$/i,,!1,,/(?:^|\.)(?:gherkin\.feature|cucumber\.steps)(?:\.|$)/i,/^Cucumber$|^gherkin$/i],["nvidia-icon",["medium-green","medium-green"],/\.cu$/i,,!1,,/\.cuda(?:-c\+\+)?$/i,/^CUDA$/i],["nvidia-icon",["dark-green","dark-green"],/\.cuh$/i],["cython-icon",["medium-orange","medium-orange"],/\.pyx$/i,,!1,,/\.cython$/i,/^Cython$|^pyrex$/i],["cython-icon",["medium-blue","medium-blue"],/\.pxd$/i],["cython-icon",["dark-blue","dark-blue"],/\.pxi$/i],["dlang-icon",["medium-red","medium-red"],/\.di?$/i,,!1,,/\.d$/i,/^D$/i],["yang-icon",["medium-red","medium-red"],/\.dnh$/i,,!1,,/\.danmakufu$/i,/^Danmakufu$/i],["darcs-icon",["medium-green","medium-green"],/\.d(?:arcs)?patch$/i],["dart-icon",["medium-cyan","medium-cyan"],/\.dart$/i,,!1,/^dart$/,/\.dart$/i,/^Dart$/i],["dashboard-icon",["medium-orange","medium-orange"],/\.s[kl]im$/i,,!1,/^slim$/,/\.slim$/i,/^slim$/i],["dashboard-icon",["medium-green","medium-green"],/\.cpuprofile$/i],["database-icon",["medium-yellow","medium-yellow"],/\.(?:h|geo|topo)?json$/i],["database-icon",["light-red","light-red"],/\.ya?ml$/i],["database-icon",["medium-maroon","medium-maroon"],/\.cson$|\.ston$|^mime\.types$/i],["database-icon",["dark-yellow","dark-yellow"],/\.json5$/i,,!1,/^json5$/,/\.json5$/i,/^js[0o]n5$/i],["database-icon",["medium-red","medium-red"],/\.http$|\.pot?$/i],["database-icon",["medium-orange","medium-orange"],/\.ndjson$|\.pytb$/i,,!1,,/\.python\.traceback$/i],["database-icon",["light-blue","light-blue"],/\.fea$/i,,!1,,/\.opentype$/i,/^afdk[0o]$/i],["database-icon",["medium-purple","medium-purple"],/\.json\.eex$|\.edn$/i],["database-icon",["dark-cyan","dark-cyan"],/\.proto$/i,,!1,,/\.protobuf$/i,/^(?:protobuf|Protocol\s*Buffers?)$/i],["database-icon",["dark-blue","dark-blue"],/\.pydeps$|\.rviz$/i],["database-icon",["dark-purple","dark-purple"],/\.eam\.fs$/i],["database-icon",["medium-pink","medium-pink"],/\.qml$/i],["database-icon",["dark-pink","dark-pink"],/\.qbs$/i],["database-icon",["medium-cyan","medium-cyan"],/\.ttl$/i,,!1,,/\.turtle$/i],["database-icon",["medium-blue","medium-blue"],/\.syntax$/i],["database-icon",["dark-red","dark-red"],/[\/\\](?:magic[\/\\]Magdir|file[\/\\]magic)[\/\\][-.\w]+$|lib[\\\/]icons[\\\/]\.icondb\.js$/i,,!0],["dbase-icon",["medium-red","medium-red"],/\.dbf$/i],["debian-icon",["medium-red","medium-red"],/\.deb$/i],["debian-icon",["dark-cyan","dark-cyan"],/^control$/],["debian-icon",["medium-cyan","medium-cyan"],/^rules$/],["diff-icon",["medium-orange","medium-orange"],/\.diff$/i,,!1,,/\.diff$/i,/^Diff$|^udiff$/i],["earth-icon",["medium-blue","medium-blue"],/\.zone$/i],["earth-icon",["medium-green","medium-green"],/\.arpa$/i],["earth-icon",["dark-blue","dark-blue"],/^CNAME$/],["doxygen-icon",["medium-blue","medium-blue"],/^Doxyfile$/,,!1,,/\.doxygen$/i,/^Doxyfile$/i],["dyalog-icon",["medium-orange","medium-orange"],/\.dyalog$/i,,!1,/^dyalog$/],["dylib-icon",["medium-cyan","medium-cyan"],/\.(?:dylib|bundle)$/i],["e-icon",["medium-green","medium-green"],/\.E$/,,!1,/^rune$/],["eagle-icon",["medium-red","medium-red"],/\.sch$/i],["eagle-icon",["dark-red","dark-red"],/\.brd$/i],["ec-icon",["dark-blue","dark-blue"],/\.ec$/i,,!1,/^ec$/,/\.ec$/i,/^ec$/i],["ec-icon",["dark-purple","dark-purple"],/\.eh$/i],["ecere-icon",["medium-blue","medium-blue"],/\.epj$/i],["eclipse-icon",["dark-blue","dark-blue"],/\.c?project$/],["eclipse-icon",["medium-red","medium-red"],/\.classpath$/i],["editorconfig-icon",["medium-orange","medium-orange"],/\.editorconfig$/i,,!1,,/\.editorconfig$/i,/^EditorConfig$/i],["eiffel-icon",["medium-cyan","medium-cyan"],/\.e$/,,!1,,/\.eiffel$/i,/^Eiffel$/i],["elixir-icon",["dark-purple","dark-purple"],/\.ex$/i,,!1,/^elixir$/,/\.elixir$/i,/^elixir$/i],["elixir-icon",["medium-purple","medium-purple"],/\.(?:exs|eex)$/i],["elixir-icon",["light-purple","light-purple"],/mix\.exs?$/i],["elm-icon",["medium-blue","medium-blue"],/\.elm$/i,,!1,,/\.elm$/i,/^Elm$/i],["emacs-icon",["medium-purple","medium-purple"],/(?:^|\.)(?:el|_?emacs|spacemacs|emacs\.desktop|abbrev[-_]defs)$/i,,!1,/^emacs$/,/\.emacs\.lisp$/i,/^Emacs Lisp$|^elisp$/i],["emacs-icon",["dark-purple","dark-purple"],/(?:^|\.)(?:elc|eld)$/i,,!1,,,,/^;ELC\x17\0{3}/],["at-icon",["medium-red","dark-red"],/^(?:authors|owners)$/i],["em-icon",["medium-red","medium-red"],/\.emberscript$/i,,!1,,/\.ember(?:script)?$/i,/^EmberScript$/i],["mustache-icon",["medium-blue","medium-blue"],/\.em(?:blem)?$/i,,!1,,/\.emblem$/i,/^Emblem$/i],["eq-icon",["medium-orange","medium-orange"],/\.eq$/i,,!1,,/\.eq$/i,/^EQ$/i],["erlang-icon",["medium-red","medium-red"],/\.erl$/i,,!1,/^escript$/,/\.erlang$/i,/^Erlang$/i],["erlang-icon",["dark-red","dark-red"],/\.beam$/i],["erlang-icon",["medium-maroon","medium-maroon"],/\.hrl$/i],["erlang-icon",["medium-green","medium-green"],/\.xrl$/i],["erlang-icon",["dark-green","dark-green"],/\.yrl$/i],["erlang-icon",["dark-maroon","dark-maroon"],/\.app\.src$/i],["factor-icon",["medium-orange","medium-orange"],/\.factor$/i,,!1,,/\.factor$/i,/^Factor$/i],["factor-icon",["dark-orange","dark-orange"],/\.factor-rc$/i],["factor-icon",["medium-red","medium-red"],/\.factor-boot-rc$/i],["fancy-icon",["dark-blue","dark-blue"],/\.fy$/i,,!1,/^fancy$/,/\.fancy$/i,/^fancy$/i],["fancy-icon",["medium-blue","medium-blue"],/\.fancypack$/i],["fancy-icon",["medium-green","medium-green"],/^Fakefile$/],["fantom-icon",["medium-blue","medium-blue"],/\.fan$/i,,!1,,/\.fan(?:tom)?$/i,/^Fantom$/i],["fbx-icon",["medium-maroon","medium-maroon"],/\.fbx$/i],["finder-icon",["medium-blue","medium-blue"],/^Icon\r$/],["finder-icon",["dark-blue","dark-blue"],/\.rsrc$/i],["flow-icon",["medium-orange","medium-orange"],/\.(?:flowconfig|js\.flow)$/i],["flux-icon",["medium-blue","medium-blue"],/\.fx$/i],["flux-icon",["dark-blue","dark-blue"],/\.flux$/i],["font-icon",["dark-blue","dark-blue"],/\.woff2$/i,,!1,,,,/^wOF2/],["font-icon",["medium-blue","medium-blue"],/\.woff$/i,,!1,,,,/^wOFF/],["font-icon",["light-green","light-green"],/\.eot$/i,,!1,,,,/^.{34}LP/],["font-icon",["dark-green","dark-green"],/\.ttc$/i,,!1,,,,/^ttcf/],["font-icon",["medium-green","medium-green"],/\.ttf$/i,,!1,,,,/^\0\x01\0{3}/],["font-icon",["dark-yellow","dark-yellow"],/\.otf$/i,,!1,,,,/^OTTO.*\0/],["font-icon",["dark-red","dark-red"],/\.pfb$/i],["font-icon",["medium-red","medium-red"],/\.pfm$/i],["ff-icon",["medium-orange","medium-orange"],/\.pe$/i,,!1,/^fontforge$/,/\.source\.fontforge$/i,/^FontForge$|^pfaedit$/i],["ff-icon",["dark-blue","dark-blue"],/\.sfd$/i,,!1,,/\.text\.sfd$/i,/^FontForge$/i],["fortran-icon",["medium-maroon","medium-maroon"],/\.f$/i,,!1,,/\.fortran\.?(?:modern|punchcard)?$/i,/^Fortran$/i],["fortran-icon",["medium-green","medium-green"],/\.f90$/i,,!1,,/\.fortran\.free$/i,/^Fortran$/i],["fortran-icon",["medium-red","medium-red"],/\.f03$/i],["fortran-icon",["medium-blue","medium-blue"],/\.f08$/i],["fortran-icon",["medium-maroon","medium-maroon"],/\.f77$/i,,!1,,/\.fortran\.fixed$/i,/^Fortran$/i],["fortran-icon",["dark-pink","dark-pink"],/\.f95$/i],["fortran-icon",["dark-cyan","dark-cyan"],/\.for$/i],["fortran-icon",["dark-yellow","dark-yellow"],/\.fpp$/i],["freemarker-icon",["medium-blue","medium-blue"],/\.ftl$/i,,!1,,/\.ftl$/i,/^FreeMarker$|^ftl$/i],["frege-icon",["dark-red","dark-red"],/\.fr$/i],["fsharp-icon",["medium-blue","medium-blue"],/\.fs[xi]?$/i,,!1,,/\.fsharp$/i,/^FSharp$|^f#$/i],["gml-icon",["medium-green","medium-green"],/\.gml$/i],["gams-icon",["dark-red","dark-red"],/\.gms$/i,,!1,,/\.gams(?:-lst)?$/i,/^GAMS$/i],["gap-icon",["medium-yellow","dark-yellow"],/\.gap$/i,,!1,/^gap$/,/\.gap$/i,/^gap$/i],["gap-icon",["dark-blue","dark-blue"],/\.gi$/i],["gap-icon",["medium-orange","medium-orange"],/\.tst$/i],["gdb-icon",["medium-green","dark-green"],/\.gdb$/i,,!1,/^gdb$/,/\.gdb$/i,/^gdb$/i],["gdb-icon",["medium-cyan","dark-cyan"],/gdbinit$/i],["godot-icon",["medium-blue","medium-blue"],/\.gd$/i,,!1,,/\.gdscript$/i,/^GDScript$/i],["gear-icon",["medium-red","medium-red"],/^\.htaccess$|\.yardopts$/i],["gear-icon",["medium-orange","medium-orange"],/^\.htpasswd$/i],["gear-icon",["dark-green","dark-green"],/^\.env\.|\.pairs$/i],["gear-icon",["dark-yellow","dark-yellow"],/^\.lesshintrc$/i],["gear-icon",["medium-yellow","medium-yellow"],/^\.csscomb\.json$|\.csslintrc$|\.jsbeautifyrc$|\.jshintrc$|\.jscsrc$/i],["gear-icon",["medium-maroon","medium-maroon"],/\.coffeelintignore$|\.codoopts$/i],["gear-icon",["medium-blue","medium-blue"],/\.module$/i],["gear-icon",["dark-blue","dark-blue"],/\.arcconfig$|\.python-version$/i],["gear-icon",["dark-orange","dark-orange"],/\.lintstagedrc$/i],["gears-icon",["dark-orange","dark-orange"],/\.dll$/i,,!1,,,,/^PMOCCMOC/],["code-icon",["medium-blue","medium-blue"],/\.xml$|\.config$|\.4th$|\.cocci$|\.dyl$|\.dylan$|\.ecl$|\.forth$|\.launch$|\.manifest$|\.menu$|\.srdf$|\.st$|\.ui$|\.wsf$|\.x3d$|\.xaml$/i,,!1,,,,/^<\?xml /],["code-icon",["dark-red","dark-red"],/\.rdf$|\.capnp$|\.dotsettings$|\.flex$|\.fsh$|\.fsproj$|\.prw$|\.xproj$/i,,!1,,/\.capnp$/i],["code-icon",["medium-blue","medium-blue"],/^_service$/],["code-icon",["medium-red","medium-red"],/^configure\.ac$|\.ML$/],["code-icon",["medium-green","medium-green"],/^Settings\.StyleCop$/],["code-icon",["medium-green","medium-green"],/\.abnf$|\.ditaval$|\.storyboard$|\.xmi$|\.yacc$/i,,!1,/^abnf$/,/\.abnf$/i,/^abnf$/i],["code-icon",["medium-purple","medium-purple"],/\.aepx$|\.dita$|\.grace$|\.lid$|\.nproj$/i],["code-icon",["dark-cyan","dark-cyan"],/\.agda$|\.plist$|\.wisp$|\.xlf$|\.xslt$/i,,!1,,/\.plist$/i],["code-icon",["medium-orange","medium-orange"],/\.appxmanifest$|\.befunge$|\.fun$|\.muf$|\.xul$/i],["code-icon",["medium-cyan","medium-cyan"],/\.ash$|\.asn1?$|\.lagda$|\.lex$|\.props$|\.resx$|\.smt2$|\.vsh$|\.xsl$|\.yy$/i,,!1,/^xsl$/,/\.xsl$/i],["code-icon",["dark-blue","dark-blue"],/\.axml$|\.bmx$|\.brs$|\.ccxml$|\.clixml$|\.fth$|\.intr$|\.mdpolicy$|\.mtml$|\.myt$|\.xsd$/i,,!1,/^brightscript$/,/\.brightscript$/i],["code-icon",["medium-maroon","medium-maroon"],/\.bnf$|\.cbl$|\.cob$|\.cobol$|\.fxml$/i,,!1,/^bnf$/,/\.bnf$/i,/^bnf$/i],["code-icon",["dark-maroon","dark-maroon"],/\.ccp$|\.cpy$|\.mxml$/i],["code-icon",["medium-red","medium-red"],/\.ch$|\.cw$|\.ebnf$|\.iml$|\.jflex$|\.m4$|\.mask$|\.mumps$|\.prg$|\.pt$|\.rl$|\.sml$|\.targets$|\.webidl$|\.wsdl$|\.xacro$|\.xliff$/i,,!1,/^ebnf$/,/\.ebnf$/i],["code-icon",["dark-pink","dark-pink"],/\.ct$|\.zcml$/i],["code-icon",["dark-green","dark-green"],/\.cy$|\.eclxml$|\.ivy$|\.sed$|\.tml$|\.y$/i],["code-icon",["dark-purple","dark-purple"],/\.ditamap$|\.frt$|\.lp$|\.omgrofl$|\.osm$|\.wxs$|\.xib$/i],["code-icon",["medium-pink","medium-pink"],/\.filters$|\.lol$|\.pig$/i],["code-icon",["dark-orange","dark-orange"],/\.grxml$|\.urdf$/i],["code-icon",["medium-yellow","medium-yellow"],/\.jelly$/i],["code-icon",["dark-yellow","dark-yellow"],/\.jsproj$|\.ohm$|\.sgml?$/i,,!1,/^ohm$/,/\.ohm$/i],["code-icon",["dark-blue","dark-blue"],/\.mq[45h]$/i,,!1,,/(?:^|\.)mq[45](?=\.|$)/i],["code-icon",["light-green","light-green"],/\.odd$/i],["code-icon",["light-blue","light-blue"],/\.psc1$|\.smt$/i,,!1,/boolector|cvc4|mathsat5|opensmt|smtinterpol|smt-rat|stp|verit|yices2|z3/,/\.smt$/i],["code-icon",["light-cyan","light-cyan"],/\.scxml$/i],["code-icon",["light-maroon","light-maroon"],/\.sig$|\.wxl$/i],["code-icon",["light-orange","light-orange"],/\.ux$|\.wxi$/i],["code-icon",["light-purple","light-purple"],/\.vxml$/i],["genshi-icon",["medium-red","medium-red"],/\.kid$/i,,!1,,/\.genshi$/i,/^Genshi$|^xml\+(?:genshi|kid)$/i],["gentoo-icon",["dark-cyan","dark-cyan"],/\.ebuild$/i,,!1,,/\.ebuild$/i,/^Gentoo$/i],["gentoo-icon",["medium-blue","medium-blue"],/\.eclass$/i],["git-icon",["medium-red","medium-red"],/^\.git|^\.keep$|\.mailmap$/i,,!1,,/\.git-(?:commit|config|rebase)$/i,/^Git$/i],["git-commit-icon",["medium-red","medium-red"],/^COMMIT_EDITMSG$/],["git-merge-icon",["medium-red","medium-red"],/^MERGE_(?:HEAD|MODE|MSG)$/],["glade-icon",["medium-green","medium-green"],/\.glade$/i],["pointwise-icon",["medium-blue","medium-blue"],/\.glf$/i],["glyphs-icon",["medium-green","medium-green"],/\.glyphs$/i],["gn-icon",["dark-blue","dark-blue"],/\.gn$/i,,!1,/^gn$/,/\.gn$/i,/^gn$/i],["gn-icon",["medium-blue","medium-blue"],/\.gni$/i],["gnu-icon",["medium-red","dark-red"],/\.(?:gnu|gplv[23])$/i],["graph-icon",["medium-red","medium-red"],/\.(?:gp|plo?t|gnuplot)$/i,,!1,/^gnuplot$/,/\.gnuplot$/i,/^Gnuplot$/i],["go-icon",["medium-blue","medium-blue"],/\.go$/i,,!1,,/\.go(?:template)?$/i,/^Go$/i],["golo-icon",["medium-orange","medium-orange"],/\.golo$/i,,!1,,/\.golo$/i,/^Golo$/i],["gosu-icon",["medium-blue","medium-blue"],/\.gs$/i,,!1,,/\.gosu(?:\.\d+)?$/i,/^Gosu$/i],["gosu-icon",["medium-green","medium-green"],/\.gst$/i],["gosu-icon",["dark-green","dark-green"],/\.gsx$/i],["gosu-icon",["dark-blue","dark-blue"],/\.vark$/i],["gradle-icon",["medium-blue","medium-blue"],/\.gradle$/i,,!1,,/\.gradle$/i,/^Gradle$/i],["gradle-icon",["dark-purple","dark-purple"],/gradlew$/i],["gf-icon",["medium-red","medium-red"],/\.gf$/i],["graphql-icon",["medium-pink","medium-pink"],/\.graphql$/i,,!1,,/\.graphql$/i,/^GraphQL$/i],["graphql-icon",["medium-purple","medium-purple"],/\.gql$/i],["graphviz-icon",["medium-blue","medium-blue"],/\.gv$/i,,!1,,/\.dot$/i,/^Graphviz$/i],["graphviz-icon",["dark-cyan","dark-cyan"],/\.dot$/i],["groovy-icon",["light-blue","light-blue"],/\.(?:groovy|grt|gtpl|gsp|gvy)$/i,,!1,/^groovy$/,/\.groovy$/i,/^Groovy$|^gsp$/i],["hack-icon",["medium-orange","medium-orange"],/\.hh$/i,,!1,,/\.hack$/i,/^Hack$/i],["haml-icon",["medium-yellow","medium-yellow"],/\.haml$/i,,!1,/^haml$/,/\.haml$/i,/^haml$/i],["haml-icon",["medium-maroon","medium-maroon"],/\.hamlc$/i,,!1,/^hamlc$/,/\.hamlc$/i,/^Haml$|^hamlc$/i],["harbour-icon",["dark-blue","dark-blue"],/\.hb$/i,,!1,,/\.harbour$/i,/^Harbour$/i],["hashicorp-icon",["dark-purple","dark-purple"],/\.hcl$/i,,!1,,/(?:^|\.)(?:hcl|hashicorp)(?:\.|$)/i,/^Hashicorp Configuration Language$/i],["haskell-icon",["medium-purple","medium-purple"],/\.hs$/i,,!1,/^runhaskell$/,/\.source\.haskell$/i,/^Haskell$/i],["haskell-icon",["medium-blue","medium-blue"],/\.hsc$/i,,!1,,/\.hsc2hs$/i,/^Haskell$/i],["haskell-icon",["dark-purple","dark-purple"],/\.c2hs$/i,,!1,,/\.c2hs$/i,/^Haskell$|^C2hs(?:\s*Haskell)?$/i],["haskell-icon",["dark-blue","dark-blue"],/\.lhs$/i,,!1,,/\.latex\.haskell$/i,/^Haskell$|^(?:lhaskell|lhs|Literate\s*Haskell)$/i],["haxe-icon",["medium-orange","medium-orange"],/\.hx(?:[sm]l|)?$/,,!1,,/(?:^|\.)haxe(?:\.\d+)?$/i,/^Haxe$/i],["heroku-icon",["medium-purple","medium-purple"],/^Procfile$/],["heroku-icon",["light-purple","light-purple"],/\.buildpacks$/i],["heroku-icon",["dark-purple","dark-purple"],/^\.vendor_urls$/],["html5-icon",["medium-orange","medium-orange"],/\.x?html?$/i,,!1,,/\.html\.basic$/i,/^HTML$|^(?:xhtml|htm)$/i],["html5-icon",["medium-red","medium-red"],/\.cshtml$|\.latte$/i,,!1,/^latte$/,/\.latte$/i],["html5-icon",["medium-green","medium-green"],/\.ejs$|\.kit$|\.swig$/i,,!1,/^swig$/,/\.swig$/i],["html5-icon",["dark-blue","dark-blue"],/\.gohtml$|\.phtml$/i,,!1,/^gohtml$/,/\.gohtml$/i,/^HTML$|^g[0o]html$/i],["html5-icon",["medium-purple","medium-purple"],/\.html\.eex$|\.jsp$/i,,!1,,/\.jsp$/i],["html5-icon",["medium-cyan","medium-cyan"],/\.shtml$/i],["html5-icon",["dark-red","dark-red"],/\.scaml$/i,,!1,/^scaml$/,/\.scaml$/i,/^HTML$|^scaml$/i],["html5-icon",["medium-red","medium-red"],/\.vash$/i,,!1,/^vash$/,/\.vash$/i,/^HTML$|^vash$/i],["html5-icon",["medium-blue","medium-blue"],/\.dtml$/i,,!1,/^dtml$/,/\.dtml$/i,/^HTML$|^dtml$/i],["hy-icon",["dark-blue","dark-blue"],/\.hy$/i,,!1,,/\.hy$/i,/^Hy$|^hylang$/i],["idl-icon",["medium-blue","medium-blue"],/\.dlm$/i,,!1,,/\.idl$/i,/^IDL$/i],["idris-icon",["dark-red","dark-red"],/\.idr$/i,,!1,,/\.(?:idris|ipkg)$/i,/^Idris$/i],["idris-icon",["medium-maroon","medium-maroon"],/\.lidr$/i],["igorpro-icon",["dark-red","dark-red"],/\.ipf$/i],["image-icon",["medium-orange","medium-orange"],/\.a?png$|\.svgz$/i,,!1,,,,/^.PNG\r\n\x1A\n/],["image-icon",["medium-yellow","medium-yellow"],/\.gif$|\.ora$|\.sgi$/i,,!1,,,,/^GIF8[97]a/],["image-icon",["medium-green","medium-green"],/\.je?pg$/i,,!1,,,,/^\xFF\xD8\xFF[\xDB\xE0\xE1]|(?:JFIF|Exif)\0|^\xCF\x84\x01|^\xFF\xD8.+\xFF\xD9$/],["image-icon",["medium-blue","medium-blue"],/\.ico$/i,,!1,,,,/^\0{2}\x01\0/],["image-icon",["dark-blue","dark-blue"],/\.webp$|\.iff$|\.lbm$|\.liff$|\.nrrd$|\.pcx$|\.vsdx?$/i,,!1,,,,/^RIFF.{4}WEBPVP8/],["image-icon",["medium-red","medium-red"],/\.bmp$/i,,!1,,,,/^BM/],["image-icon",["medium-red","medium-red"],/\.bpg$/i,,!1,,,,/^BPG\xFB/],["image-icon",["medium-orange","medium-orange"],/\.cin$/i,,!1,,,,/^\x80\x2A\x5F\xD7/],["image-icon",["dark-green","dark-green"],/\.cd5$/i,,!1,,,,/^_CD5\x10\0/],["image-icon",["light-yellow","light-yellow"],/\.cpc$/i],["image-icon",["medium-orange","medium-orange"],/\.cr2$/i,,!1,,,,/^II\*\0\x10\0{3}CR/],["image-icon",["medium-pink","medium-pink"],/\.dcm$|\.mpo$|\.pbm$/i,,!1,,,,/^.{128}DICM/],["image-icon",["dark-green","dark-green"],/\.dds$/i,,!1,,,,/^DDS \|\0{3}/],["image-icon",["medium-purple","medium-purple"],/\.djvu?$|\.pxr$/i,,!1,,,,/^AT&TFORM/],["image-icon",["dark-orange","dark-orange"],/\.dpx$|\.raw$/i,,!1,,,,/^(?:SDPX|XPDS)/],["image-icon",["light-blue","light-blue"],/\.ecw$|\.sct$/i],["image-icon",["dark-yellow","dark-yellow"],/\.exr$/i,,!1,,,,/^v\/1\x01/],["image-icon",["medium-cyan","medium-cyan"],/\.fits?$|\.fts$/i,,!1,,,,/^SIMPLE =/],["image-icon",["dark-red","dark-red"],/\.flif$|\.hdp$|\.heic$|\.heif$|\.jxr$|\.wdp$/i,,!1,,,,/^FLIF/],["image-icon",["medium-blue","medium-blue"],/\.hdr$/i,,!1,,,,/^#\?RADIANCE\n/],["image-icon",["medium-pink","medium-pink"],/\.icns$/i,,!1,,,,/^icns/],["image-icon",["dark-green","dark-green"],/\.(?:jp[f2xm]|j2c|mj2)$/i,,!1,,,,/^\0{3}\fjP {2}/],["image-icon",["dark-cyan","dark-cyan"],/\.jps$/i],["image-icon",["medium-orange","medium-orange"],/\.mng$/i,,!1,,,,/^.MNG\r\n\x1A\n/],["image-icon",["light-red","light-red"],/\.pgf$/i],["image-icon",["light-purple","light-purple"],/\.pict$/i],["image-icon",["dark-orange","dark-orange"],/\.tga$/i,,!1,,,,/TRUEVISION-XFILE\.\0$/],["image-icon",["medium-red","medium-red"],/\.tiff?$/i,,!1,,,,/^II\x2A\0|^MM\0\x2A/],["image-icon",["dark-maroon","dark-maroon"],/\.wbm$/i],["inform7-icon",["medium-blue","medium-blue"],/\.ni$/i,,!1,,/\.inform-?7?$/i,/^Inform 7$|^i7$/i],["inform7-icon",["dark-blue","dark-blue"],/\.i7x$/i],["inno-icon",["dark-blue","dark-blue"],/\.iss$/i,,!1,,/\.inno$/i,/^Inno Setup$/i],["io-icon",["dark-purple","dark-purple"],/\.io$/i,,!1,/^io$/,/^source\.io$/i,/^Io$/i],["ioke-icon",["medium-red","medium-red"],/\.ik$/i,,!1,/^ioke$/],["isabelle-icon",["dark-red","dark-red"],/\.thy$/i,,!1,,/\.isabelle\.theory$/i,/^Isabelle$/i],["isabelle-icon",["dark-blue","dark-blue"],/^ROOT$/],["j-icon",["light-blue","light-blue"],/\.ijs$/i,,!1,/^jconsole$/,/\.j$/i,/^J$/i],["jade-icon",["medium-red","medium-red"],/\.jade$/i,,!1,,/\.jade$/i,/^Jade$/i],["jake-icon",["medium-maroon","dark-maroon"],/^Jakefile$/],["jake-icon",["medium-yellow","dark-yellow"],/\.jake$/i],["java-icon",["medium-purple","medium-purple"],/\.java$/i,,!1,,/\.java$/i,/^Java$/i],["js-icon",["medium-yellow","dark-yellow"],/\.js$|\.es6$|\.es$/i,,!1,/^(?:node|iojs)$/,/\.js$/i,/^JavaScript$|^(?:js|node)$/i],["js-icon",["medium-orange","dark-orange"],/\._js$/i],["js-icon",["medium-maroon","dark-maroon"],/\.jsb$|\.dust$/i],["js-icon",["medium-blue","dark-blue"],/\.jsm$|\.mjs$|\.xsjslib$/i],["js-icon",["medium-green","dark-green"],/\.jss$/i],["js-icon",["medium-pink","dark-pink"],/\.sjs$/i],["js-icon",["medium-red","dark-red"],/\.ssjs$/i],["js-icon",["medium-purple","dark-purple"],/\.xsjs$/i],["jenkins-icon",["medium-red","dark-red"],/^Jenkinsfile$/],["jinja-icon",["dark-red","dark-red"],/\.jinja$/i,,!1,,/\.jinja$/i,/^Jinja$|^(?:django|htmldjango|html\+django\/jinja|html\+jinja)$/i],["jinja-icon",["medium-red","medium-red"],/\.jinja2$/i],["jsonld-icon",["medium-blue","medium-blue"],/\.jsonld$/i],["sql-icon",["medium-blue","medium-blue"],/\.jq$/i,,!1,,/\.jq$/i,/^JSONiq$/i],["jsx-icon",["medium-blue","dark-blue"],/\.jsx$/i,,!1,,/\.jsx$/i,/^JSX$/i],["julia-icon",["medium-purple","medium-purple"],/\.jl$/i,,!1,,/\.julia$/i,/^Julia$/i],["jupyter-icon",["dark-orange","dark-orange"],/\.ipynb$/i,,!1,,/\.ipynb$/i,/^(?:ipynb|(?:Jupyter|IPython)\s*Notebook)$/i],["jupyter-icon",["dark-cyan","dark-cyan"],/^Notebook$/],["keynote-icon",["medium-blue","medium-blue"],/\.keynote$/i],["keynote-icon",["dark-blue","dark-blue"],/\.knt$/i],["kivy-icon",["dark-maroon","dark-maroon"],/\.kv$/i,,!1,,/\.kv$/i,/^Kivy$/i],["earth-icon",["medium-green","medium-green"],/\.kml$/i],["kotlin-icon",["dark-blue","dark-blue"],/\.kt$/i,,!1,/^kotlin$/,/\.kotlin$/i,/^k[0o]tlin$/i],["kotlin-icon",["medium-blue","medium-blue"],/\.ktm$/i],["kotlin-icon",["medium-orange","medium-orange"],/\.kts$/i],["krl-icon",["medium-blue","medium-blue"],/\.krl$/i,,!1,,/\.krl$/i,/^KRL$/i],["labview-icon",["dark-blue","dark-blue"],/\.lvproj$/i],["laravel-icon",["medium-orange","medium-orange"],/\.blade\.php$/i,,!1,,/\.php\.blade$/i,/^Laravel$/i],["lasso-icon",["dark-blue","dark-blue"],/\.lasso$|\.las$/i,,!1,,/\.lasso$/i,/^Lasso$|^lass[0o]script$/i],["lasso-icon",["medium-blue","medium-blue"],/\.lasso8$/i],["lasso-icon",["medium-purple","medium-purple"],/\.lasso9$/i],["lasso-icon",["medium-red","medium-red"],/\.ldml$/i],["lean-icon",["dark-purple","dark-purple"],/\.lean$/i,,!1,/^lean$/,/\.lean$/i,/^lean$/i],["lean-icon",["dark-red","dark-red"],/\.hlean$/i],["lfe-icon",["dark-red","dark-red"],/\.lfe$/i],["lightwave-icon",["medium-red","medium-red"],/\.lwo$/i],["lightwave-icon",["medium-blue","medium-blue"],/\.lws$/i],["lisp-icon",["medium-red","medium-red"],/\.lsp$/i,,!1,/^newlisp$/,/\.newlisp$/i,/^Lisp$|^newlisp$/i],["lisp-icon",["dark-red","dark-red"],/\.lisp$/i,,!1,/^lisp$/,/\.lisp$/i,/^lisp$/i],["lisp-icon",["medium-maroon","medium-maroon"],/\.l$|\.nl$/i,,!1,/picolisp|pil/],["lisp-icon",["medium-blue","medium-blue"],/\.ny$|\.sexp$/i],["lisp-icon",["medium-purple","medium-purple"],/\.podsl$/i],["ls-icon",["medium-blue","medium-blue"],/\.ls$/i,,!1,,/\.livescript$/i,/^LiveScript$|^(?:ls|live-script)$/i],["ls-icon",["dark-blue","dark-blue"],/\._ls$/i],["ls-icon",["medium-green","medium-green"],/^Slakefile$/],["llvm-icon",["dark-green","dark-green"],/\.ll$/i,,!1,/^llvm$/,/\.llvm$/i,/^llvm$/i],["llvm-icon",["medium-yellow","dark-yellow"],/\.clang-format$/i],["mobile-icon",["dark-blue","dark-blue"],/\.xm$/i,,!1,/^logos$/,/\.logos$/i,/^l[0o]g[0o]s$/i],["mobile-icon",["dark-red","dark-red"],/\.xi$/i],["logtalk-icon",["medium-red","medium-red"],/\.(?:logtalk|lgt)$/i,,!1,,/\.logtalk$/i,/^Logtalk$/i],["lookml-icon",["medium-purple","medium-purple"],/\.lookml$/i],["lsl-icon",["medium-cyan","medium-cyan"],/\.lsl$/i,,!1,/^lsl$/,/\.lsl$/i,/^lsl$/i],["lsl-icon",["dark-cyan","dark-cyan"],/\.lslp$/i],["lua-icon",["medium-blue","medium-blue"],/\.lua$/i,,!1,/^lua$/,/\.lua$/i,/^lua$/i],["lua-icon",["dark-blue","dark-blue"],/\.pd_lua$/i],["lua-icon",["dark-purple","dark-purple"],/\.rbxs$/i],["lua-icon",["dark-red","dark-red"],/\.wlua$/i],["checklist-icon",["medium-yellow","medium-yellow"],/^Makefile|^makefile$/,,!1,/^make$/,/\.makefile$/i,/^Makefile$|^(?:bsdmake|make|mf)$/i],["checklist-icon",["medium-yellow","medium-yellow"],/\.(?:mk|mak|make)$|^mkfile$/i],["checklist-icon",["medium-red","medium-red"],/^BSDmakefile$|\.am$/i],["checklist-icon",["medium-green","medium-green"],/^GNUmakefile$/i],["checklist-icon",["medium-blue","medium-blue"],/^Kbuild$/],["checklist-icon",["dark-blue","dark-blue"],/\.bb$/i],["checklist-icon",["dark-blue","dark-blue"],/^DEPS$/],["checklist-icon",["medium-blue","medium-blue"],/\.mms$/i],["checklist-icon",["light-blue","light-blue"],/\.mmk$/i],["checklist-icon",["dark-purple","dark-purple"],/\.pri$/i],["mako-icon",["dark-blue","dark-blue"],/\.mak?o$/i,,!1,,/\.mako$/i,/^Mako$/i],["manpage-icon",["dark-green","dark-green"],/\.(?:1(?:[bcmsx]|has|in)?|[24568]|3(?:avl|bsm|3c|in|m|qt|x)?|7(?:d|fs|i|ipp|m|p)?|9[efps]?|chem|eqn|groff|man|mandoc|mdoc|me|mom|n|nroff|pic|tmac|tmac-u|tr|troff)$/i,,!1,/man|mandoc|(?:[gnt]|dit)roff/i,/\.[gt]?roff$/i,/^Manual Page$|^(?:[gtn]?roff|manpage)$/i,/^\.TH[ \t]+(?:\S+)|^'\\" [tre]+(?=\s|$)/],["manpage-icon",["dark-maroon","dark-maroon"],/\.(?:rnh|rno|roff|run|runoff)$/i,,!1,/^runoff$/,/\.runoff$/i,/^Manual Page$|^run[0o]ff$/i],["mapbox-icon",["medium-cyan","medium-cyan"],/\.mss$/i,,!1,,/\.mss$/i,/^Mapbox$|^Carto(?:CSS)?$/i],["markdown-icon",["medium-blue","medium-blue"],/\.(?:md|mdown|markdown|mkd|mkdown|mkdn|rmd|ron)$/i,,!1,,/\.gfm$/i,/^Markdown$/i],["mathematica-icon",["dark-red","dark-red"],/\.mathematica$|\.nbp$/i,,!1,,/\.mathematica$/i,/^Mathematica$|^mma$/i],["mathematica-icon",["medium-red","medium-red"],/\.cdf$/i],["mathematica-icon",["medium-orange","medium-orange"],/\.ma$/i],["mathematica-icon",["medium-maroon","medium-maroon"],/\.mt$/i],["mathematica-icon",["dark-orange","dark-orange"],/\.nb$/i],["mathematica-icon",["medium-yellow","medium-yellow"],/\.wl$/i],["mathematica-icon",["dark-yellow","dark-yellow"],/\.wlt$/i],["matlab-icon",["medium-yellow","medium-yellow"],/\.matlab$/i,,!1,,/\.(?:matlab|octave)$/i,/^MATLAB$|^[0o]ctave$/i],["max-icon",["dark-purple","dark-purple"],/\.maxpat$/i],["max-icon",["medium-red","medium-red"],/\.maxhelp$/i],["max-icon",["medium-blue","medium-blue"],/\.maxproj$/i],["max-icon",["medium-purple","medium-purple"],/\.mxt$/i],["max-icon",["medium-green","medium-green"],/\.pat$/i],["maxscript-icon",["dark-blue","dark-blue"],/\.ms$/i,,!1,,/\.maxscript$/i,/^MAXScript$/i],["maxscript-icon",["dark-purple","dark-purple"],/\.mcr$/i],["maxscript-icon",["medium-red","medium-red"],/\.mce$/i],["maxscript-icon",["dark-cyan","dark-cyan"],/\.max$/i],["maxscript-icon",["medium-cyan","medium-cyan"],/\.3ds$/i],["maya-icon",["dark-cyan","dark-cyan"],/\.mb$/i],["maya-icon",["dark-blue","dark-blue"],/\.mel$/i],["maya-icon",["dark-purple","dark-purple"],/\.mcf[ip]$/i],["mediawiki-icon",["medium-yellow","medium-yellow"],/\.mediawiki$/i,,!1,/^mediawiki$/,/\.mediawiki$/i,/^mediawiki$/i],["mediawiki-icon",["medium-orange","medium-orange"],/\.wiki$/i],["bullhorn-icon",["medium-orange","medium-orange"],/^\.mention-bot$/i],["mercury-icon",["medium-cyan","medium-cyan"],/\.moo$/i,,!1,/^mmi$/,/\.mercury$/i,/^Mercury$/i],["metal-icon",["dark-cyan","dark-cyan"],/\.metal$/i],["access-icon",["dark-maroon","dark-maroon"],/\.accda$/i],["access-icon",["medium-maroon","medium-maroon"],/\.accdb$/i],["access-icon",["medium-green","medium-green"],/\.accde$/i],["access-icon",["medium-red","medium-red"],/\.accdr$/i],["access-icon",["dark-red","dark-red"],/\.accdt$/i],["access-icon",["light-maroon","light-maroon"],/\.adn$|\.laccdb$/i],["access-icon",["dark-purple","dark-purple"],/\.mdw$/i],["excel-icon",["dark-orange","dark-orange"],/\.xls$/i],["excel-icon",["dark-green","dark-green"],/\.xlsx$/i],["excel-icon",["medium-green","medium-green"],/\.xlsm$/i],["excel-icon",["medium-red","medium-red"],/\.xlsb$/i],["excel-icon",["dark-cyan","dark-cyan"],/\.xlt$/i],["onenote-icon",["dark-purple","dark-purple"],/\.one$/i],["powerpoint-icon",["dark-red","dark-red"],/\.pps$/i],["powerpoint-icon",["medium-orange","medium-orange"],/\.ppsx$/i],["powerpoint-icon",["dark-orange","dark-orange"],/\.ppt$/i],["powerpoint-icon",["medium-red","medium-red"],/\.pptx$/i],["powerpoint-icon",["medium-maroon","medium-maroon"],/\.potm$/i],["powerpoint-icon",["dark-green","dark-green"],/\.mpp$/i],["word-icon",["medium-blue","medium-blue"],/\.doc$/i],["word-icon",["dark-blue","dark-blue"],/\.docx$/i],["word-icon",["medium-maroon","medium-maroon"],/\.docm$/i],["word-icon",["dark-cyan","dark-cyan"],/\.docxml$/i],["word-icon",["dark-maroon","dark-maroon"],/\.dotm$/i],["word-icon",["medium-cyan","medium-cyan"],/\.dotx$/i],["word-icon",["medium-orange","medium-orange"],/\.wri$/i],["minecraft-icon",["dark-green","dark-green"],/^mcmod\.info$/i,,!1,,/\.forge-config$/i,/^Minecraft$/i],["mirah-icon",["medium-blue","medium-blue"],/\.dr?uby$/g,,!1,/^mirah$/,/\.mirah$/i,/^mirah$/i],["mirah-icon",["light-blue","light-blue"],/\.mir(?:ah)?$/g],["model-icon",["medium-red","medium-red"],/\.obj$/i,,!1,,/\.wavefront\.obj$/i],["model-icon",["dark-blue","dark-blue"],/\.mtl$/i,,!1,,/\.wavefront\.mtl$/i],["model-icon",["dark-green","dark-green"],/\.stl$/i],["model-icon",["medium-orange","medium-orange"],/\.u3d$/i],["circle-icon",["light-red","light-red"],/\.mo$/i,,!1,,/\.modelica(?:script)?$/i,/^Modelica$/i],["modula2-icon",["medium-blue","medium-blue"],/\.mod$/i,,!1,,/(?:^|\.)modula-?2(?:\.|$)/i,/^Modula-2$/i],["modula2-icon",["medium-green","medium-green"],/\.def$/i],["modula2-icon",["medium-red","medium-red"],/\.m2$/i],["monkey-icon",["medium-maroon","medium-maroon"],/\.monkey$/i,,!1,,/\.monkey$/i,/^Monkey$/i],["moon-icon",["medium-yellow","medium-yellow"],/\.moon$/i,,!1,/^moon$/,/\.moon$/i,/^MoonScript$/i],["mruby-icon",["medium-red","medium-red"],/\.mrb$/i,,!1,/^mruby$/],["msql-icon",["medium-purple","medium-purple"],/\.dsql$/i],["mupad-icon",["medium-red","medium-red"],/\.mu$/i],["music-icon",["medium-orange","medium-orange"],/\.chord$/i],["music-icon",["dark-blue","dark-blue"],/\.midi?$/i,,!1,,,,/^MThd/],["music-icon",["medium-green","medium-green"],/\.ly$/i,,!1,,/\.(?:At)?lilypond-/i,/^Lily\s*Pond$/i],["music-icon",["dark-green","dark-green"],/\.ily$/i],["music-icon",["dark-red","dark-red"],/\.pd$/i],["mustache-icon",["medium-orange","medium-orange"],/\.(?:hbs|handlebars|mustache)$/i,,!1,,/(?:^|\.)(?:mustache|handlebars)(?:\.|$)/i,/^Mustache$|^(?:hbs|htmlbars|handlebars)$/i],["nant-icon",["medium-orange","medium-orange"],/\.build$/i,,!1,,/\.nant-build$/i,/^NAnt$/i],["earth-icon",["medium-green","medium-green"],/\.ncl$/i,,!1,,/\.ncl$/i,/^NCAR Command Language \(NCL\)$/i],["neko-icon",["medium-orange","medium-orange"],/\.neko$/i,,!1,/^neko$/,/\.neko$/i,/^nek[0o]$/i],["amx-icon",["medium-blue","medium-blue"],/\.axs$/i],["amx-icon",["dark-blue","dark-blue"],/\.axi$/i],["netlogo-icon",["medium-red","medium-red"],/\.nlogo$/i],["nginx-icon",["medium-green","medium-green"],/\.nginxconf$/i,,!1,,/\.nginx$/i,/^NGINX$|^nginx[\W_ \t]?c[0o]nfigurati[0o]n[\W_ \t]?file$/i],["nib-icon",["dark-orange","dark-orange"],/\.nib$/i],["nimrod-icon",["medium-green","medium-green"],/\.nim(?:rod)?$/i,,!1,,/\.nim$/i,/^Nimrod$/i],["shuriken-icon",["medium-blue","medium-blue"],/\.ninja$/i,,!1,/^ninja$/,/\.ninja$/i,/^ninja$/i],["nit-icon",["dark-green","dark-green"],/\.nit$/i,,!1,,/\.nit$/i,/^Nit$/i],["nix-icon",["medium-cyan","medium-cyan"],/\.nix$/i,,!1,,/\.nix$/i,/^Nix$|^nix[0o]s$/i],["nmap-icon",["dark-blue","dark-blue"],/\.nse$/i,,!1,,/\.nmap$/i,/^Nmap$/i],["node-icon",["medium-green","medium-green"],/\.njs$|\.nvmrc$/i],["node-icon",["dark-green","dark-green"],/\.node-version$/i],["nsis-icon",["medium-purple","medium-purple"],/\.nsi$/i,,!1,/^nsis$/,/\.nsis$/i,/^nsis$/i],["nsis-icon",["dark-cyan","dark-cyan"],/\.nsh$/i],["recycle-icon",["light-green","light-green"],/\.nu$/i,,!1,/^nush$/,/\.nu$/i,/^Nu$|^nush$/i],["recycle-icon",["dark-green","dark-green"],/^Nukefile$/],["nuget-icon",["medium-blue","medium-blue"],/\.nuspec$/i],["nuget-icon",["dark-purple","dark-purple"],/\.pkgproj$/i],["numpy-icon",["dark-blue","dark-blue"],/\.numpy$/i],["numpy-icon",["medium-blue","medium-blue"],/\.numpyw$/i],["numpy-icon",["medium-orange","medium-orange"],/\.numsc$/i],["nunjucks-icon",["dark-green","dark-green"],/\.(?:nunjucks|njk)$/i],["objc-icon",["medium-blue","medium-blue"],/\.mm?$/i,,!1,,/\.objc(?:pp)?$/i,/^Objective-C$|^(?:Obj-?C|ObjectiveC)(?:\+\+)?$/i],["objc-icon",["dark-red","dark-red"],/\.pch$/i],["objc-icon",["dark-green","dark-green"],/\.x$/i],["objj-icon",["dark-orange","dark-orange"],/\.j$/i,,!1,,/\.objj$/i,/^Objective-J$|^(?:Obj-?J|ObjectiveJ)$/i],["objj-icon",["dark-red","dark-red"],/\.sj$/i],["ocaml-icon",["medium-orange","medium-orange"],/\.ml$/i,,!1,/ocaml(?:run|script)?/,/\.ocaml$/i,/^OCaml$/i],["ocaml-icon",["dark-orange","dark-orange"],/\.mli$/i],["ocaml-icon",["medium-red","medium-red"],/\.eliom$/i],["ocaml-icon",["dark-red","dark-red"],/\.eliomi$/i],["ocaml-icon",["medium-green","medium-green"],/\.ml4$/i],["ocaml-icon",["dark-green","dark-green"],/\.mll$/i,,!1,/^ocamllex$/,/\.ocamllex$/i,/^OCaml$|^[0o]camllex$/i],["ocaml-icon",["dark-yellow","dark-yellow"],/\.mly$/i,,!1,/^menhir$/,/\.menhir$/i,/^OCaml$|^menhir$/i],["ooc-icon",["medium-green","medium-green"],/\.ooc$/i,,!1,,/\.ooc$/i,/^OOC$/i],["opa-icon",["medium-blue","medium-blue"],/\.opa$/i,,!1,,/\.opa$/i,/^Opa$/i],["opencl-icon",["medium-red","medium-red"],/\.opencl$/i,,!1,,/\.opencl$/i,/^OpenCL$/i],["progress-icon",["medium-red","medium-red"],/\.p$/i,,!1,,/\.abl$/i,/^OpenEdge ABL$|^(?:progress|openedge|abl)$/i],["openoffice-icon",["medium-blue","medium-blue"],/\.odt$/i],["openoffice-icon",["dark-blue","dark-blue"],/\.ott$/i],["openoffice-icon",["dark-purple","dark-purple"],/\.fodt$/i],["openoffice-icon",["medium-green","medium-green"],/\.ods$/i],["openoffice-icon",["dark-green","dark-green"],/\.ots$/i],["openoffice-icon",["dark-cyan","dark-cyan"],/\.fods$/i],["openoffice-icon",["medium-purple","medium-purple"],/\.odp$/i],["openoffice-icon",["dark-pink","dark-pink"],/\.otp$/i],["openoffice-icon",["medium-pink","medium-pink"],/\.fodp$/i],["openoffice-icon",["medium-red","medium-red"],/\.odg$/i],["openoffice-icon",["dark-red","dark-red"],/\.otg$/i],["openoffice-icon",["dark-orange","dark-orange"],/\.fodg$/i],["openoffice-icon",["medium-maroon","medium-maroon"],/\.odf$/i],["openoffice-icon",["light-pink","light-pink"],/\.odb$/i],["scad-icon",["medium-orange","medium-orange"],/\.scad$/i,,!1,,/\.scad$/i,/^OpenSCAD$/i],["scad-icon",["medium-yellow","medium-yellow"],/\.jscad$/i],["org-icon",["dark-green","dark-green"],/\.org$/i],["osx-icon",["medium-red","medium-red"],/\.dmg$/i,,!1,,,,/^\x78\x01\x73\x0D\x62\x62\x60/],["ox-icon",["medium-cyan","dark-cyan"],/\.ox$/i,,!1,,/\.ox$/i,/^Ox$/i],["ox-icon",["medium-green","dark-green"],/\.oxh$/i],["ox-icon",["medium-blue","dark-blue"],/\.oxo$/i],["oxygene-icon",["medium-cyan","dark-cyan"],/\.oxygene$/i,,!1,,/\.oxygene$/i,/^Oxygene$/i],["oz-icon",["medium-yellow","medium-yellow"],/\.oz$/i,,!1,,/\.oz$/i,/^Oz$/i],["pan-icon",["medium-red","medium-red"],/\.pan$/i],["papyrus-icon",["medium-green","medium-green"],/\.psc$/i,,!1,,/(?:^|\.)(?:papyrus\.skyrim|compiled-?papyrus|papyrus-assembly)(?:\.|$)/i,/^Papyrus$/i],["parrot-icon",["medium-green","medium-green"],/\.parrot$/i,,!1,/^parrot$/],["parrot-icon",["dark-green","dark-green"],/\.pasm$/i,,!1,,/\.parrot\.pasm$/i,/^Parrot$|^pasm$/i],["parrot-icon",["dark-blue","dark-blue"],/\.pir$/i,,!1,,/\.parrot\.pir$/i,/^Parrot$|^pir$/i],["pascal-icon",["medium-purple","medium-purple"],/\.pas(?:cal)?$/i,,!1,/pascal|instantfpc/,/\.pascal$/i,/^Pascal$/i],["pascal-icon",["medium-blue","medium-blue"],/\.dfm$/i],["pascal-icon",["dark-blue","dark-blue"],/\.dpr$/i],["pascal-icon",["dark-purple","dark-purple"],/\.lpr$/i],["patch-icon",["medium-green","medium-green"],/\.patch$/i],["pawn-icon",["medium-orange","medium-orange"],/\.pwn$/i,,!1,,/\.pwn$/i,/^PAWN$/i],["pdf-icon",["medium-red","medium-red"],/\.pdf$/i,,!1,,,,/^%PDF/],["perl-icon",["medium-blue","medium-blue"],/\.p(?:er)?l$|\.t$/i,,!1,/^perl$/,/\.perl$/i,/^perl$/i],["perl-icon",["dark-purple","dark-purple"],/\.ph$/i],["perl-icon",["medium-purple","medium-purple"],/\.plx$/i],["perl-icon",["dark-blue","dark-blue"],/\.pm$/i],["perl-icon",["medium-red","medium-red"],/\.(?:psgi|xs)$/i],["perl6-icon",["medium-purple","medium-purple"],/\.pl6$/i,,!1,/^perl6$/,/(?:^|\.)perl6(?:fe)?(?=\.|$)/,/^(?:pl6|Perl\s*6)$/i],["perl6-icon",["light-blue","light-blue"],/\.[tp]6$|\.6pl$/i],["perl6-icon",["dark-pink","dark-pink"],/\.(?:pm6|p6m)$/i],["perl6-icon",["dark-cyan","dark-cyan"],/\.6pm$/i],["perl6-icon",["dark-purple","dark-purple"],/\.nqp$/i],["perl6-icon",["medium-blue","medium-blue"],/\.p6l$/i],["perl6-icon",["dark-green","dark-green"],/\.pod6$/i],["perl6-icon",["medium-green","medium-green"],/^Rexfile$/],["phalcon-icon",["medium-cyan","medium-cyan"],/\.volt$/i,,!1,,/\.volt$/i,/^Phalcon$/i],["php-icon",["dark-blue","dark-blue"],/\.php(?:[st\d]|_cs)?$/i,,!1,/^php$/,/\.php$/i,/^PHP$/i,/^<\?php/],["php-icon",["dark-green","dark-green"],/^Phakefile/],["pickle-icon",["dark-cyan","dark-cyan"],/\.pkl$/i],["pike-icon",["dark-cyan","dark-cyan"],/\.pike$/i,,!1,/^pike$/],["pike-icon",["medium-blue","medium-blue"],/\.pmod$/i],["sql-icon",["medium-red","medium-red"],/\.(?:pls|pck|pks|plb|plsql|pkb)$/i,,!1,,/\.plsql(?:\.oracle)?(?:\.|$)/i,/^PLSQL$/i],["pod-icon",["dark-blue","dark-blue"],/\.pod$/i],["pogo-icon",["medium-orange","dark-orange"],/\.pogo$/i,,!1,,/\.pogoscript$/i,/^PogoScript$/i],["pony-icon",["light-maroon","light-maroon"],/\.pony$/i,,!1,,/\.pony$/i,/^Pony$/i],["postcss-icon",["dark-red","dark-red"],/\.p(?:ost)?css$/i,,!1,/^postcss$/,/\.postcss$/i,/^p[0o]stcss$/i],["postcss-icon",["dark-pink","dark-pink"],/\.sss$/i,,!1,/^sugarss$/,/\.sugarss$/i,/^PostCSS$|^sugarss$/i],["postcss-icon",["medium-orange","dark-orange"],/\.postcssrc$/i],["postscript-icon",["medium-red","medium-red"],/\.ps$/i,,!1,,/\.postscript$/i,/^PostScript$|^p[0o]stscr$/i,/^%!PS/],["postscript-icon",["medium-orange","medium-orange"],/\.eps$/i],["postscript-icon",["dark-blue","dark-blue"],/\.pfa$/i],["postscript-icon",["medium-green","medium-green"],/\.afm$/i],["povray-icon",["dark-blue","dark-blue"],/\.pov$/i],["powerbuilder-icon",["medium-blue","medium-blue"],/\.pbl$|\.sra$/i],["powerbuilder-icon",["dark-blue","dark-blue"],/\.pbt$/i],["powerbuilder-icon",["medium-red","medium-red"],/\.srw$/i],["powerbuilder-icon",["medium-orange","medium-orange"],/\.sru$/i],["powerbuilder-icon",["medium-maroon","medium-maroon"],/\.srp$/i],["powerbuilder-icon",["medium-purple","medium-purple"],/\.srj$/i],["powershell-icon",["medium-blue","medium-blue"],/\.ps1$/i,,!1,,/\.powershell$/i,/^PowerShell$|^p[0o]sh$/i],["powershell-icon",["dark-blue","dark-blue"],/\.psd1$/i],["powershell-icon",["medium-purple","medium-purple"],/\.psm1$/i],["powershell-icon",["dark-purple","dark-purple"],/\.ps1xml$/i],["print-icon",["dark-cyan","dark-cyan"],/\.ppd$/i],["processing-icon",["dark-blue","dark-blue"],/\.pde$/i,,!1,,/\.processing$/i,/^Processing$/i],["prolog-icon",["medium-blue","medium-blue"],/\.pro$/i,,!1,/^swipl$/,/\.prolog$/i,/^Prolog$/i],["prolog-icon",["medium-cyan","medium-cyan"],/\.prolog$/i],["prolog-icon",["medium-purple","medium-purple"],/\.yap$/i,,!1,/^yap$/],["propeller-icon",["medium-orange","medium-orange"],/\.spin$/i,,!1,,/\.spin$/i,/^Propeller Spin$/i],["pug-icon",["medium-red","medium-red"],/\.pug$/i,,!1,,/\.pug$/i,/^Pug$/i],["puppet-icon",["medium-purple","medium-purple"],/\.pp$/i,,!1,/^puppet$/,/\.puppet$/i,/^puppet$/i],["puppet-icon",["dark-blue","dark-blue"],/Modulefile$/i],["purebasic-icon",["medium-red","medium-red"],/\.pb$/i,,!1,/^purebasic$/,/\.purebasic$/i,/^purebasic$/i],["purebasic-icon",["dark-orange","dark-orange"],/\.pbi$/i],["purescript-icon",["dark-purple","dark-purple"],/\.purs$/i,,!1,,/\.purescript$/i,/^PureScript$/i],["python-icon",["dark-blue","dark-blue"],/\.py$|\.bzl$|\.py3$|\.?(?:pypirc|pythonrc|python-venv)$/i,,!1,/python[\d.]*/,/\.python$/i,/^Python$|^rusth[0o]n$/i],["python-icon",["medium-blue","medium-blue"],/\.ipy$/i],["python-icon",["dark-green","dark-green"],/\.isolate$|\.gypi$|\.pyt$/i],["python-icon",["medium-orange","medium-orange"],/\.pep$|\.pyde$/i,,!1,/^pep8$/,/\.pep8$/i,/^Python$|^pep8$/i],["python-icon",["medium-green","medium-green"],/\.gyp$/i],["python-icon",["dark-purple","dark-purple"],/\.pyp$/i],["python-icon",["medium-maroon","medium-maroon"],/\.pyw$/i],["python-icon",["dark-pink","dark-pink"],/\.tac$/i],["python-icon",["dark-red","dark-red"],/\.wsgi$/i],["python-icon",["medium-yellow","dark-yellow"],/\.xpy$/i],["python-icon",["medium-pink","medium-pink"],/\.rpy$/i,,!1,,/\.renpy$/i,/^Python$|^Ren'?Py$/i],["python-icon",["dark-green","dark-green"],/^(?:BUCK|BUILD|SConstruct|SConscript)$/],["python-icon",["medium-green","medium-green"],/^(?:Snakefile|WATCHLISTS)$/],["python-icon",["dark-maroon","dark-maroon"],/^wscript$/],["r-icon",["medium-blue","medium-blue"],/\.(?:r|Rprofile|rsx|rd)$/i,,!1,/^Rscript$/,/\.r$/i,/^R$|^(?:Rscript|splus|Rlang)$/i],["racket-icon",["medium-red","medium-red"],/\.rkt$/i,,!1,/^racket$/,/\.racket$/i,/^racket$/i],["racket-icon",["medium-blue","medium-blue"],/\.rktd$/i],["racket-icon",["light-red","light-red"],/\.rktl$/i],["racket-icon",["dark-blue","dark-blue"],/\.scrbl$/i,,!1,/^scribble$/,/\.scribble$/i,/^Racket$|^scribble$/i],["raml-icon",["medium-cyan","medium-cyan"],/\.raml$/i,,!1,,/\.raml$/i,/^RAML$/i],["rascal-icon",["medium-yellow","medium-yellow"],/\.rsc$/i,,!1,,/\.rascal$/i,/^Rascal$/i],["rdoc-icon",["medium-red","medium-red"],/\.rdoc$/i,,!1,,/\.rdoc$/i,/^RDoc$/i],["xojo-icon",["medium-green","medium-green"],/\.rbbas$/i],["xojo-icon",["dark-green","dark-green"],/\.rbfrm$/i],["xojo-icon",["dark-cyan","dark-cyan"],/\.rbmnu$/i],["xojo-icon",["medium-cyan","medium-cyan"],/\.rbres$/i],["xojo-icon",["medium-blue","medium-blue"],/\.rbtbar$/i],["xojo-icon",["dark-blue","dark-blue"],/\.rbuistate$/i],["reason-icon",["medium-red","medium-red"],/\.re$/i,,!1,/^reason$/,/\.reason$/i,/^reas[0o]n$/i],["reason-icon",["medium-orange","medium-orange"],/\.rei$/i],["rebol-icon",["dark-green","dark-green"],/\.reb(?:ol)?$/i,,!1,/^rebol$/,/\.rebol$/i,/^reb[0o]l$/i],["rebol-icon",["dark-red","dark-red"],/\.r2$/i],["rebol-icon",["dark-blue","dark-blue"],/\.r3$/i],["red-icon",["medium-red","medium-red"],/\.red$/i,,!1,,/\.red$/i,/^Red$|^red\/?system$/i],["red-icon",["light-red","light-red"],/\.reds$/i],["red-hat-icon",["medium-red","medium-red"],/\.rpm$/i],["red-hat-icon",["dark-red","dark-red"],/\.spec$/i],["regex-icon",["medium-green","medium-green"],/\.regexp?$/i,,!1,,/(?:\.|^)regexp?(?:\.|$)/i,/^RegExp$/i],["android-icon",["dark-maroon","dark-maroon"],/\.rsh$/i],["rst-icon",["dark-blue","dark-blue"],/\.re?st(?:\.txt)?$/i,,!1,,/\.restructuredtext$/i,/^reStructuredText$|^re?st$/i],["rexx-icon",["medium-red","medium-red"],/\.rexx?$/i,,!1,/rexx|regina/i,/\.rexx$/i,/^REXX$/i],["rexx-icon",["medium-blue","medium-blue"],/\.pprx$/i],["riot-icon",["medium-red","medium-red"],/\.tag$/i,,!1,,/\.riot$/i,/^RiotJS$/i],["robot-icon",["medium-purple","medium-purple"],/\.robot$/i],["clojure-icon",["medium-red","medium-red"],/\.rg$/i],["rss-icon",["medium-orange","medium-orange"],/\.rss$/i],["ruby-icon",["medium-red","medium-red"],/\.(?:rb|ru|ruby|erb|gemspec|god|mspec|pluginspec|podspec|rabl|rake|opal)$|^\.?(?:irbrc|gemrc|pryrc|rspec|ruby-(?:gemset|version))$/i,,!1,/(?:mac|j)?ruby|rake|rbx/,/\.ruby$/i,/^Ruby$|^(?:rbx?|rake|jruby|macruby)$/i],["ruby-icon",["medium-red","medium-red"],/^(?:Appraisals|(?:Rake|Gem|[bB]uild|Berks|Cap|Danger|Deliver|Fast|Guard|Jar|Maven|Pod|Puppet|Snap)file(?:\.lock)?)$|^rails$/],["ruby-icon",["dark-red","dark-red"],/\.(?:jbuilder|rbuild|rb[wx]|builder)$/i],["ruby-icon",["dark-yellow","dark-yellow"],/\.watchr$/i],["rust-icon",["medium-maroon","medium-maroon"],/\.rs$/i,,!1,/^rust$/,/\.rust$/i,/^rust$/i],["rust-icon",["light-maroon","light-maroon"],/\.rlib$/i],["sage-icon",["medium-blue","medium-blue"],/\.sage$/i,,!1,/^sage$/,/\.sage$/i,/^sage$/i],["sage-icon",["dark-blue","dark-blue"],/\.sagews$/i],["saltstack-icon",["medium-blue","dark-blue"],/\.sls$/i,,!1,,/\.salt$/i,/^SaltStack$|^Salt(?:State)?$/i],["sas-icon",["medium-blue","medium-blue"],/\.sas$/i,,!1,,/\.sas$/i,/^SAS$/i],["sass-icon",["light-pink","light-pink"],/\.scss$/i,,!1,/^scss$/,/\.scss$/i,/^Sass$|^scss$/i],["sass-icon",["dark-pink","dark-pink"],/\.sass$/i,,!1,/^sass$/,/\.sass$/i,/^sass$/i],["sbt-icon",["dark-purple","dark-purple"],/\.sbt$/i],["scala-icon",["medium-red","medium-red"],/\.(?:sc|scala)$/i,,!1,/^scala$/,/\.scala$/i,/^Scala$/i],["scheme-icon",["medium-red","medium-red"],/\.scm$/i,,!1,/guile|bigloo|chicken/,/\.scheme$/i,/^Scheme$/i],["scheme-icon",["medium-blue","medium-blue"],/\.sld$/i],["scheme-icon",["medium-purple","medium-purple"],/\.sps$/i],["scilab-icon",["dark-purple","dark-purple"],/\.sci$/i,,!1,/^scilab$/,/\.scilab$/i,/^scilab$/i],["scilab-icon",["dark-blue","dark-blue"],/\.sce$/i],["scilab-icon",["dark-cyan","dark-cyan"],/\.tst$/i],["secret-icon",[null,null],/\.secret$/i],["self-icon",["dark-blue","dark-blue"],/\.self$/i,,!1,,/\.self$/i,/^Self$/i],["graph-icon",["light-red","light-red"],/\.csv$/i,,!1,,/(?:^|\.)csv(?:\.semicolon)?(?:\.|$)/i],["graph-icon",["light-green","light-green"],/\.(?:tab|tsv)$/i],["graph-icon",["medium-green","medium-green"],/\.dif$/i],["graph-icon",["medium-cyan","medium-cyan"],/\.slk$/i],["sf-icon",["light-orange","light-orange"],/\.sfproj$/i],["terminal-icon",["medium-purple","medium-purple"],/\.(?:sh|rc|bats|bash|tool|install|command)$/i,,!1,/bash|sh|zsh|rc/,/\.shell$/i,/^(?:sh|shell|Shell-?Script|Bash)$/i],["terminal-icon",["dark-purple","dark-purple"],/^(?:\.?bash(?:rc|[-_]?(?:profile|login|logout|history|prompt))|_osc|config|install-sh|PKGBUILD)$/i],["terminal-icon",["dark-yellow","dark-yellow"],/\.ksh$/i],["terminal-icon",["medium-yellow","dark-yellow"],/\.sh-session$/i,,!1,,/\.shell-session$/i,/^(?:Bash|Shell|Sh)[-\s]*(?:Session|Console)$/i],["terminal-icon",["medium-blue","medium-blue"],/\.zsh(?:-theme|_history)?$|^\.?(?:antigen|zpreztorc|zlogin|zlogout|zprofile|zshenv|zshrc)$|\.tmux$/i],["terminal-icon",["medium-green","medium-green"],/\.fish$|^\.fishrc$|\.tcsh$/i,,!1,/^fish$/,/\.fish$/i,/^fish$/i],["terminal-icon",["medium-red","medium-red"],/\.inputrc$/i],["terminal-icon",["medium-red","medium-red"],/^(?:configure|config\.(?:guess|rpath|status|sub)|depcomp|libtool|compile)$/],["terminal-icon",["dark-purple","dark-purple"],/^\/(?:private\/)?etc\/(?:[^\/]+\/)*(?:profile$|nanorc$|rc\.|csh\.)/i,,!0],["terminal-icon",["medium-yellow","medium-yellow"],/\.csh$/i],["shen-icon",["dark-cyan","dark-cyan"],/\.shen$/i],["shopify-icon",["medium-green","medium-green"],/\.liquid$/i],["sigils-icon",["dark-red","dark-red"],/\.sigils$/i],["silverstripe-icon",["medium-blue","medium-blue"],/\.ss$/i,,!1,,/(?:^|\.)ss(?:template)?(?:\.|$)/i,/^SilverStripe$/i],["sketch-icon",["medium-orange","medium-orange"],/\.sketch$/i],["slash-icon",["dark-blue","dark-blue"],/\.sl$/i,,!1,,/\.slash$/i,/^Slash$/i],["android-icon",["medium-green","medium-green"],/\.smali$/i,,!1,,/\.smali$/i,/^Smali$/i],["smarty-icon",["medium-yellow","dark-yellow"],/\.tpl$/i,,!1,,/\.smarty$/i,/^Smarty$/i],["snyk-icon",["dark-purple","dark-purple"],/\.snyk$/i],["clojure-icon",["medium-yellow","dark-yellow"],/\.(?:sma|sp)$/i,,!1,,/\.sp$/i,/^SourcePawn$|^s[0o]urcem[0o]d$/i],["sparql-icon",["medium-blue","medium-blue"],/\.sparql$/i,,!1,,/\.rq$/i,/^SPARQL$/i],["sparql-icon",["dark-blue","dark-blue"],/\.rq$/i],["sqf-icon",["dark-maroon","dark-maroon"],/\.sqf$/i,,!1,/^sqf$/,/\.sqf$/i,/^sqf$/i],["sqf-icon",["dark-red","dark-red"],/\.hqf$/i],["sql-icon",["medium-orange","medium-orange"],/\.(?:my)?sql$/i,,!1,/^sql$/,/\.sql$/i,/^sql$/i],["sql-icon",["medium-blue","medium-blue"],/\.ddl$/i],["sql-icon",["medium-green","medium-green"],/\.udf$/i],["sql-icon",["dark-cyan","dark-cyan"],/\.viw$/i],["sql-icon",["dark-blue","dark-blue"],/\.prc$/i],["sql-icon",["medium-purple","medium-purple"],/\.db2$/i],["sqlite-icon",["medium-blue","medium-blue"],/\.sqlite$/i],["sqlite-icon",["dark-blue","dark-blue"],/\.sqlite3$/i],["sqlite-icon",["medium-purple","medium-purple"],/\.db$/i],["sqlite-icon",["dark-purple","dark-purple"],/\.db3$/i],["squirrel-icon",["medium-maroon","medium-maroon"],/\.nut$/i,,!1,,/\.nut$/i,/^Squirrel$/i],["key-icon",["medium-yellow","medium-yellow"],/\.pub$/i],["key-icon",["medium-orange","medium-orange"],/\.pem$/i],["key-icon",["medium-blue","medium-blue"],/\.key$|\.crt$/i],["key-icon",["medium-purple","medium-purple"],/\.der$/i],["key-icon",["medium-red","medium-red"],/^id_rsa/],["key-icon",["medium-green","medium-green"],/\.glyphs\d*License$|^git-credential-osxkeychain$/i],["key-icon",["dark-green","dark-green"],/^(?:master\.)?passwd$/i],["stan-icon",["medium-red","medium-red"],/\.stan$/i,,!1,,/\.stan$/i,/^Stan$/i],["stata-icon",["medium-blue","medium-blue"],/\.do$/i,,!1,/^stata$/,/\.stata$/i,/^stata$/i],["stata-icon",["dark-blue","dark-blue"],/\.ado$/i],["stata-icon",["light-blue","light-blue"],/\.doh$/i],["stata-icon",["medium-cyan","medium-cyan"],/\.ihlp$/i],["stata-icon",["dark-cyan","dark-cyan"],/\.mata$/i,,!1,/^mata$/,/\.mata$/i,/^Stata$|^mata$/i],["stata-icon",["light-cyan","light-cyan"],/\.matah$/i],["stata-icon",["medium-purple","medium-purple"],/\.sthlp$/i],["storyist-icon",["medium-blue","medium-blue"],/\.story$/i],["strings-icon",["medium-red","medium-red"],/\.strings$/i,,!1,,/\.strings$/i,/^Strings$/i],["stylus-icon",["medium-green","medium-green"],/\.styl$/i,,!1,,/\.stylus$/i,/^Stylus$/i],["sublime-icon",["medium-orange","medium-orange"],/\.(?:stTheme|sublime[-_](?:build|commands|completions|keymap|macro|menu|mousemap|project|settings|theme|workspace|metrics|session|snippet))$/i],["sublime-icon",["dark-orange","dark-orange"],/\.sublime-syntax$/i],["scd-icon",["medium-red","medium-red"],/\.scd$/i,,!1,/sclang|scsynth/,/\.supercollider$/i,/^SuperCollider$/i],["svg-icon",["dark-yellow","dark-yellow"],/\.svg$/i,,!1,,/\.svg$/i,/^SVG$/i],["swift-icon",["light-orange","light-orange"],/\.swift$/i,,!1,,/\.swift$/i,/^Swift$/i],["sysverilog-icon",["medium-blue","dark-blue"],/\.sv$/i],["sysverilog-icon",["medium-green","dark-green"],/\.svh$/i],["sysverilog-icon",["medium-cyan","dark-cyan"],/\.vh$/i],["tag-icon",["medium-blue","medium-blue"],/\.?c?tags$/i],["tag-icon",["medium-red","medium-red"],/\.gemtags/i],["tcl-icon",["dark-orange","dark-orange"],/\.tcl$/i,,!1,/tclsh|wish/,/\.tcl$/i,/^Tcl$/i],["tcl-icon",["medium-orange","medium-orange"],/\.adp$/i],["tcl-icon",["medium-red","medium-red"],/\.tm$/i],["coffee-icon",["medium-orange","medium-orange"],/\.tea$/i,,!1,,/\.tea$/i,/^Tea$/i],["tt-icon",["medium-blue","medium-blue"],/\.tt2?$/i],["tt-icon",["medium-purple","medium-purple"],/\.tt3$/i],["tern-icon",["medium-blue","medium-blue"],/\.tern-project$/i],["terraform-icon",["dark-purple","dark-purple"],/\.tf(?:vars)?$/i,,!1,,/\.terra(?:form)?$/i,/^Terraform$/i],["tex-icon",["medium-blue","dark-blue"],/\.tex$|\.ltx$|\.lbx$/i,,!1,,/(?:^|\.)latex(?:\.|$)/i,/^TeX$|^latex$/i],["tex-icon",["medium-green","dark-green"],/\.aux$|\.ins$/i],["tex-icon",["medium-red","dark-red"],/\.sty$|\.texi$/i,,!1,,/(?:^|\.)tex(?:\.|$)/i,/^TeX$/i],["tex-icon",["medium-maroon","dark-maroon"],/\.dtx$/i],["tex-icon",["medium-orange","dark-orange"],/\.cls$|\.mkiv$|\.mkvi$|\.mkii$/i],["text-icon",["medium-blue","medium-blue"],/\.te?xt$|\.irclog$|\.uot$/i,,!1,,,,/^\xEF\xBB\xBF|^\xFF\xFE/],["text-icon",["medium-maroon","medium-maroon"],/\.log$|^Terminal[-_\s]Saved[-_\s]Output$|\.brf$/i],["text-icon",["dark-red","dark-red"],/\.git[\/\\]description$/,,!0],["text-icon",["medium-red","medium-red"],/\.err$|\.no$|^(?:bug-report|fdl|for-release|tests)$/i],["text-icon",["dark-red","dark-red"],/\.rtf$|\.uof$/i],["text-icon",["dark-blue","dark-blue"],/\.i?nfo$/i],["text-icon",["dark-purple","dark-purple"],/\.abt$|\.sub$/i],["text-icon",["dark-orange","dark-orange"],/\.ans$/i],["text-icon",["medium-yellow","medium-yellow"],/\.etx$/i],["text-icon",["medium-orange","medium-orange"],/\.msg$/i],["text-icon",["medium-purple","medium-purple"],/\.srt$|\.uop$/i],["text-icon",["medium-cyan","medium-cyan"],/\.(?:utxt|utf8)$/i],["text-icon",["medium-green","medium-green"],/\.weechatlog$|\.uos$/i],["textile-icon",["medium-orange","medium-orange"],/\.textile$/i,,!1,,/\.textile$/i,/^Textile$/i],["textmate-icon",["dark-green","dark-green"],/\.tmcg$/i],["textmate-icon",["dark-purple","dark-purple"],/\.tmLanguage$/i],["textmate-icon",["medium-blue","medium-blue"],/\.tmCommand$/i],["textmate-icon",["dark-blue","dark-blue"],/\.tmPreferences$/i],["textmate-icon",["dark-orange","dark-orange"],/\.tmSnippet$/i],["textmate-icon",["medium-pink","medium-pink"],/\.tmTheme$/i],["textmate-icon",["medium-maroon","medium-maroon"],/\.tmMacro$/i],["textmate-icon",["medium-orange","medium-orange"],/\.yaml-tmlanguage$/i],["textmate-icon",["medium-purple","medium-purple"],/\.JSON-tmLanguage$/i],["thor-icon",["medium-orange","medium-orange"],/\.thor$/i],["thor-icon",["dark-orange","dark-orange"],/^Thorfile$/i],["tsx-icon",["light-blue","light-blue"],/\.tsx$/i,,!1,,/\.tsx$/i,/^TSX$/i],["turing-icon",["medium-red","medium-red"],/\.tu$/i,,!1,,/\.turing$/i,/^Turing$/i],["twig-icon",["medium-green","medium-green"],/\.twig$/i,,!1,,/\.twig$/i,/^Twig$/i],["txl-icon",["medium-orange","medium-orange"],/\.txl$/i,,!1,,/\.txl$/i,/^TXL$/i],["ts-icon",["medium-blue","medium-blue"],/\.ts$/i,,!1,,/\.ts$/i,/^(?:ts|Type[-\s]*Script)$/i],["unity3d-icon",["dark-blue","dark-blue"],/\.anim$/i,,!1,/^shaderlab$/,/\.shaderlab$/i,/^Unity3D$|^shaderlab$/i],["unity3d-icon",["dark-green","dark-green"],/\.asset$/i],["unity3d-icon",["medium-red","medium-red"],/\.mat$/i],["unity3d-icon",["dark-red","dark-red"],/\.meta$/i],["unity3d-icon",["dark-cyan","dark-cyan"],/\.prefab$/i],["unity3d-icon",["medium-blue","medium-blue"],/\.unity$/i],["unity3d-icon",["medium-maroon","medium-maroon"],/\.unityproj$/i],["uno-icon",["dark-blue","dark-blue"],/\.uno$/i],["unreal-icon",[null,null],/\.uc$/i,,!1,,/\.uc$/i,/^UnrealScript$/i],["link-icon",["dark-blue","dark-blue"],/\.url$/i],["urweb-icon",["medium-maroon","medium-maroon"],/\.ur$/i,,!1,,/\.ur$/i,/^UrWeb$|^Ur(?:\/Web)?$/i],["urweb-icon",["dark-blue","dark-blue"],/\.urs$/i],["vagrant-icon",["medium-cyan","medium-cyan"],/^Vagrantfile$/i],["gnome-icon",["medium-purple","medium-purple"],/\.vala$/i,,!1,/^vala$/,/\.vala$/i,/^vala$/i],["gnome-icon",["dark-purple","dark-purple"],/\.vapi$/i],["varnish-icon",["dark-blue","dark-blue"],/\.vcl$/i,,!1,,/(?:^|\.)(?:varnish|vcl)(?:\.|$)/i,/^VCL$/i],["verilog-icon",["dark-green","dark-green"],/\.v$/i,,!1,/^verilog$/,/\.verilog$/i,/^veril[0o]g$/i],["verilog-icon",["medium-red","medium-red"],/\.veo$/i],["vhdl-icon",["dark-green","dark-green"],/\.vhdl$/i,,!1,/^vhdl$/,/\.vhdl$/i,/^vhdl$/i],["vhdl-icon",["medium-green","medium-green"],/\.vhd$/i],["vhdl-icon",["dark-blue","dark-blue"],/\.vhf$/i],["vhdl-icon",["medium-blue","medium-blue"],/\.vhi$/i],["vhdl-icon",["dark-purple","dark-purple"],/\.vho$/i],["vhdl-icon",["medium-purple","medium-purple"],/\.vhs$/i],["vhdl-icon",["dark-red","dark-red"],/\.vht$/i],["vhdl-icon",["dark-orange","dark-orange"],/\.vhw$/i],["video-icon",["medium-blue","medium-blue"],/\.3gpp?$/i,,!1,,,,/^.{4}ftyp3g/],["video-icon",["dark-blue","dark-blue"],/\.(?:mp4|m4v|h264)$/i,,!1,,,,/^.{4}ftyp/],["video-icon",["medium-blue","medium-blue"],/\.avi$/i,,!1,,,,/^MLVI/],["video-icon",["medium-cyan","medium-cyan"],/\.mov$/i,,!1,,,,/^.{4}moov/],["video-icon",["medium-purple","medium-purple"],/\.mkv$/i,,!1,,,,/^\x1AEߣ\x93B\x82\x88matroska/],["video-icon",["medium-red","medium-red"],/\.flv$/i,,!1,,,,/^FLV\x01/],["video-icon",["dark-blue","dark-blue"],/\.webm$/i,,!1,,,,/^\x1A\x45\xDF\xA3/],["video-icon",["medium-red","medium-red"],/\.mpe?g$/i,,!1,,,,/^\0{2}\x01[\xB3\xBA]/],["video-icon",["dark-purple","dark-purple"],/\.(?:asf|wmv)$/i,,!1,,,,/^0&²u\x8EfÏ\x11¦Ù\0ª\0bÎl/],["video-icon",["medium-orange","medium-orange"],/\.(?:ogm|og[gv])$/i,,!1,,,,/^OggS/],["vim-icon",["medium-green","medium-green"],/\.(?:vim|n?vimrc)$/i,,!1,/Vim?/i,/\.viml$/i,/^(?:VimL?|NVim|Vim\s*Script)$/i],["vim-icon",["dark-green","dark-green"],/^[gn_]?vim(?:rc|info)$/i],["vs-icon",["medium-blue","medium-blue"],/\.(?:vba?|fr[mx]|bas)$/i,,!1,,/\.vbnet$/i,/^Visual Studio$|^vb\.?net$/i],["vs-icon",["medium-red","medium-red"],/\.vbhtml$/i],["vs-icon",["medium-green","medium-green"],/\.vbs$/i],["vs-icon",["dark-blue","dark-blue"],/\.csproj$/i],["vs-icon",["dark-red","dark-red"],/\.vbproj$/i],["vs-icon",["dark-purple","dark-purple"],/\.vcx?proj$/i],["vs-icon",["dark-green","dark-green"],/\.vssettings$/i],["vs-icon",["medium-maroon","medium-maroon"],/\.builds$/i],["vs-icon",["medium-orange","medium-orange"],/\.sln$/i],["vue-icon",["light-green","light-green"],/\.vue$/i,,!1,,/\.vue$/i,/^Vue$/i],["owl-icon",["dark-blue","dark-blue"],/\.owl$/i],["windows-icon",["medium-purple","medium-purple"],/\.bat$|\.cmd$/i,,!1,,/(?:^|\.)(?:bat|dosbatch)(?:\.|$)/i,/^(?:bat|(?:DOS|Win)?Batch)$/i],["windows-icon",[null,null],/\.(?:exe|com|msi)$/i],["windows-icon",["medium-blue","medium-blue"],/\.reg$/i],["x10-icon",["light-maroon","light-maroon"],/\.x10$/i,,!1,,/\.x10$/i,/^X10$|^xten$/i],["x11-icon",["medium-orange","medium-orange"],/\.X(?:authority|clients|initrc|profile|resources|session-errors|screensaver)$/i],["xmos-icon",["medium-orange","medium-orange"],/\.xc$/i],["appstore-icon",["medium-blue","medium-blue"],/\.(?:pbxproj|pbxuser|mode\dv\3|xcplugindata|xcrequiredplugins)$/i],["xojo-icon",["medium-green","medium-green"],/\.xojo_code$/i],["xojo-icon",["medium-blue","medium-blue"],/\.xojo_menu$/i],["xojo-icon",["medium-red","medium-red"],/\.xojo_report$/i],["xojo-icon",["dark-green","dark-green"],/\.xojo_script$/i],["xojo-icon",["dark-purple","dark-purple"],/\.xojo_toolbar$/i],["xojo-icon",["dark-cyan","dark-cyan"],/\.xojo_window$/i],["xpages-icon",["medium-blue","medium-blue"],/\.xsp-config$/i],["xpages-icon",["dark-blue","dark-blue"],/\.xsp\.metadata$/i],["xmos-icon",["dark-blue","dark-blue"],/\.xpl$/i],["xmos-icon",["medium-purple","medium-purple"],/\.xproc$/i],["sql-icon",["dark-red","dark-red"],/\.(?:xquery|xq|xql|xqm|xqy)$/i,,!1,,/\.xq$/i,/^XQuery$/i],["xtend-icon",["dark-purple","dark-purple"],/\.xtend$/i,,!1,,/\.xtend$/i,/^Xtend$/i],["yang-icon",["medium-yellow","medium-yellow"],/\.yang$/i,,!1,,/\.yang$/i,/^YANG$/i],["zbrush-icon",["dark-purple","dark-purple"],/\.zpr$/i],["zephir-icon",["medium-pink","medium-pink"],/\.zep$/i],["zimpl-icon",["medium-orange","medium-orange"],/\.(?:zimpl|zmpl|zpl)$/i],["apple-icon",["medium-blue","medium-blue"],/^com\.apple\./,.5],["apache-icon",["medium-red","medium-red"],/^httpd\.conf/i,0],["checklist-icon",["medium-yellow","medium-yellow"],/TODO/,0],["config-icon",[null,null],/config|settings|option|pref/i,0],["doge-icon",["medium-yellow","medium-yellow"],/\.djs$/i,0,!1,,/\.dogescript$/i,/^Dogescript$/i],["gear-icon",[null,null],/^\./,0],["book-icon",["medium-blue","medium-blue"],/\b(?:changelog|copying(?:v?\d)?|install|read[-_]?me)\b|^licen[sc]es?[-._]/i,0],["book-icon",["dark-blue","dark-blue"],/^news(?:[-_.]?[-\d]+)?$/i,0],["v8-icon",["medium-blue","medium-blue"],/^(?:[dv]8|v8[-_.][^.]*|mksnapshot|mkpeephole)$/i,0]],[[69,147,152,154,169,192,195,196,197,198,204,217,239,244,249,251,253,258,287,292,293,303,304,309,331,333,336,343,347,353,362,380,395,398,416,420,421,422,424,431,434,448,451,465,467,468,471,480,481,482,485,486,487,525,526,529,534,555,565,570,571,572,578,580,584,586,590,601,602,626,629,658,669,670,681,688,694,696,709,714,715,745,748,755,760,769,772,778,779,798,800,803,805,808,811,822,823,826,836,838,848,854,858,860,864,865,867,868,871,881,886,903,905,924,928,936,944,987,1e3,1003,1005,1023],[42,57,69,105,120,121,124,126,129,143,145,147,149,151,152,154,156,157,158,166,167,169,174,192,194,195,196,197,198,204,206,210,211,213,215,216,217,223,224,225,229,230,234,236,237,238,239,242,243,244,249,251,253,255,256,258,275,285,286,287,288,290,291,292,293,294,295,297,300,301,303,304,309,312,314,326,330,336,341,342,343,346,347,350,351,352,353,359,362,365,380,381,382,383,386,390,392,394,395,398,400,416,422,439,440,442,448,451,452,453,454,458,461,463,465,466,467,468,469,470,471,472,473,474,475,479,482,485,486,487,488,489,490,522,524,525,527,529,530,533,534,543,546,547,548,549,553,555,558,560,561,565,570,571,575,578,580,582,584,586,590,600,601,602,603,604,605,612,618,626,629,657,658,664,665,668,669,675,678,679,680,681,685,687,688,689,690,691,694,696,704,707,709,714,715,716,717,718,719,734,738,741,742,744,746,747,748,753,755,760,768,769,774,776,777,778,779,781,792,797,798,801,802,803,805,807,808,811,818,822,823,826,827,828,829,836,838,841,845,847,848,850,854,858,860,862,863,864,865,867,868,871,875,881,884,886,894,896,897,898,900,901,903,905,915,923,924,928,932,933,936,937,938,944,947,951,952,954,970,982,983,984,985,986,987,995,997,1e3,1002,1003,1005,1023,1025,1034,1036,1039,1053,1054,1055,1063],[41,150,282,283,284,321,889,959],[42,57,69,105,120,121,124,126,129,143,145,147,149,151,152,154,156,157,158,166,167,169,174,192,194,195,196,197,198,204,206,210,211,213,215,216,217,223,224,225,229,230,234,236,237,238,239,242,243,244,249,251,253,255,256,258,275,276,285,286,287,288,290,291,292,293,294,295,297,300,301,303,304,309,311,312,314,319,326,330,336,341,342,343,346,347,350,351,352,353,359,362,365,380,381,382,383,386,390,392,394,395,398,400,412,416,418,420,421,422,424,431,432,434,439,440,442,448,451,452,453,454,458,461,463,465,466,467,468,469,470,471,472,473,474,475,479,480,481,482,483,485,486,487,488,489,490,522,524,525,527,529,530,533,534,543,546,547,548,549,553,555,558,560,561,565,570,571,575,578,580,582,584,586,590,600,601,602,603,604,605,612,618,626,629,657,658,660,661,664,665,668,669,675,678,679,680,681,685,687,688,689,690,691,694,696,704,707,709,714,715,716,717,718,719,734,738,741,742,744,746,747,748,753,755,760,768,769,774,776,777,778,779,781,792,797,798,801,802,803,805,807,808,811,818,822,823,826,827,828,829,836,838,841,845,847,848,850,854,858,860,862,863,864,865,867,868,871,875,876,881,884,886,894,896,897,898,900,901,903,905,915,923,924,928,932,933,936,937,938,944,947,951,952,954,970,982,983,984,985,986,987,995,997,1e3,1002,1003,1005,1023,1025,1034,1036,1039,1053,1054,1055,1063],[106,138,178,179,180,181,182,183,184,185,186,188,189,235,261,262,263,264,265,268,273,348,372,373,374,375,376,377,410,411,493,494,495,496,497,498,499,500,501,503,504,505,506,507,509,510,511,512,513,514,516,519,520,601,674,737,754,769,781,957,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022]]]];var Ue={directoryName:{},fileName:{},interpreter:{},scope:{},language:{}};class wm{constructor(t,r){this.index=t,this.icon=r[0],this.colour=r[1],this.match=r[2],this.priority=r[3]||1,this.matchPath=r[4]||!1,this.interpreter=r[5]||null,this.scope=r[6]||null,this.lang=r[7]||null,this.signature=r[8]||null}getClass(t,r){return t=t!==void 0?t:null,r=r!==void 0?r:!1,t===null||this.colour[0]===null?r?[this.icon]:this.icon:r?[this.icon,this.colour[t]]:this.icon+" "+this.colour[t]}}class km{constructor(t){this.directoryIcons=this.read(t[0]),this.fileIcons=this.read(t[1]),this.binaryIcon=this.matchScope("source.asm"),this.executableIcon=this.matchInterpreter("bash")}read(t){var r=t[0],n=t[1];return r=r.map((a,c)=>new wm(c,a)),n=n.map(a=>a.map(c=>r[c])),{byName:r,byInterpreter:n[0],byLanguage:n[1],byPath:n[2],byScope:n[3],bySignature:n[4]}}matchName(t,r){r=r!==void 0?r:!1;var n=r?this.cache.directoryName:Ue.fileName,a=r?this.directoryIcons.byName:this.fileIcons.byName;if(n[t])return n[t];for(var c in a){var u=a[c];if(u.match.test(t))return n[t]=u}return null}matchPath(t,r){r=r!==void 0?r:!1;var n=r?Ue.directoryName:Ue.fileName,a=r?this.directoryIcons.byPath:this.fileIcons.byPath;if(n[name])return n[name];for(var c in a){var u=a[c];if(u.match.test(t))return n[t]=u}return null}matchLanguage(t){if(Ue.language[t])return Ue.language[t];for(var r in this.fileIcons.byLanguage){var n=this.fileIcons.byLanguage[r];if(n.lang.test(t))return Ue.language[t]=n}return null}matchScope(t){if(Ue.scope[t])return Ue.scope[t];for(var r in this.fileIcons.byScope){var n=this.fileIcons.byScope[r];if(n.scope.test(t))return Ue.scope[t]=n}return null}matchInterpreter(t){if(Ue.interpreter[t])return Ue.interpreter[t];for(var r in this.fileIcons.byInterpreter){var n=this.fileIcons.byInterpreter[r];if(n.interpreter.test(t))return Ue.interpreter[t]=n}return null}matchSignature(t){}}const Em=new km(xm),Cm=(e,t=Em.matchName(e))=>t?t.getClass(0):null;function Pn({name:e,type:t,isExpanded:r,size:n=16}){if(t==="directory"){const c=r?Dn:Pp;return i.jsx(c,{size:n,style:{color:"#dcb67a",flexShrink:0}})}const a=Cm(e);return a?i.jsx("i",{className:a,style:{fontSize:n,width:n,height:n,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontStyle:"normal"}}):i.jsx(jp,{size:n,style:{flexShrink:0,color:"var(--color-text-tertiary)"}})}const Kd=12,Yd=12;function Tm(e){const t={children:[]},r=e.map(o=>o.uri);let n="";if(r.length>0){const o=r[0].split("/");let l=0;for(let m=0;m<o.length;m++){const h=o.slice(0,m+1).join("/");if(r.every(b=>b.startsWith(h+"/")))l=m+1;else break}n=o.slice(0,l).join("/")}for(const o of e){let l=o.uri;n&&l.startsWith(n)&&(l=l.slice(n.length).replace(/^\//,""));const m=l.split("/");let h=t;for(let b=0;b<m.length;b++){const y=b===m.length-1;let w=h.children.find(v=>v.name===m[b]);w||(w={name:m[b],path:m.slice(0,b+1).join("/"),type:y?"file":"directory",children:[],fileInfo:y?o:void 0},h.children.push(w)),h=w}}function a(o){return o.type==="file"?o:(o.children=o.children.map(a),o.children.length===1&&o.children[0].type==="directory"?{...o.children[0],name:`${o.name}/${o.children[0].name}`}:o)}function c(o){return o.type==="file"&&o.fileInfo?[o.fileInfo.uri]:o.children.flatMap(c)}function u(o){return o.type==="directory"&&(o.allFilePaths=c(o),o.children.forEach(u)),o}function s(o){return o.sort((l,m)=>l.type!==m.type?l.type==="directory"?-1:1:l.name.localeCompare(m.name)).map(l=>(l.type==="directory"&&(l.children=s(l.children)),l))}return s(t.children.map(a).map(u))}function Am({changeType:e}){const t={created:{letter:"U",cls:"changes-badge-created"},modified:{letter:"M",cls:"changes-badge-modified"},deleted:{letter:"D",cls:"changes-badge-deleted"}},{letter:r,cls:n}=t[e]||t.modified;return i.jsx("span",{className:`changes-type-badge ${n}`,children:r})}function wc({depth:e}){return i.jsx(i.Fragment,{children:Array.from({length:e},(t,r)=>i.jsx("span",{className:"file-tree-indent-guide",style:{left:Yd+r*Kd+6}},r))})}function Xd({node:e,depth:t,selectedFile:r,onSelectFile:n,onRevert:a}){var h,b;const[c,u]=A.useState(!0),[s,o]=A.useState(!1),l=Yd+t*Kd,m=A.useCallback(y=>{y.stopPropagation(),a&&(e.type==="file"&&e.fileInfo?a([e.fileInfo.uri]):e.allFilePaths&&a(e.allFilePaths))},[e,a]);if(e.type==="file"){const y=e.name;return i.jsxs("div",{className:`file-tree-item ${r===((h=e.fileInfo)==null?void 0:h.uri)?"selected":""}`,onClick:()=>e.fileInfo&&n(e.fileInfo.uri),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),title:(b=e.fileInfo)==null?void 0:b.uri,children:[i.jsx(wc,{depth:t}),i.jsx("span",{style:{width:l,flexShrink:0}}),i.jsx(Pn,{name:y,type:"file",size:16}),i.jsx("span",{className:"file-tree-item-name",children:y}),s&&a&&i.jsx("button",{className:"changes-tree-revert-btn",onClick:m,title:"Revert",children:i.jsx(kr,{size:12})}),i.jsx(Am,{changeType:e.fileInfo.changeType})]})}return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"file-tree-item",onClick:()=>u(!c),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[i.jsx(wc,{depth:t}),i.jsx("span",{style:{width:l,flexShrink:0}}),i.jsx(He,{size:16,className:`file-tree-chevron ${c?"expanded":""}`}),i.jsx("span",{className:"file-tree-item-name",children:e.name}),s&&a&&e.allFilePaths&&e.allFilePaths.length>0&&i.jsx("button",{className:"changes-tree-revert-btn",onClick:m,title:"Revert directory",children:i.jsx(kr,{size:12})})]}),c&&e.children.map(y=>i.jsx(Xd,{node:y,depth:t+1,selectedFile:r,onSelectFile:n,onRevert:a},y.path))]})}function Nm({fileChanges:e,selectedFile:t,onSelectFile:r,onRevertFiles:n}){const a=A.useMemo(()=>Tm(e),[e]);return i.jsx("div",{className:"file-tree changes-tree",children:i.jsx("div",{className:"file-tree-content",children:a.map(c=>i.jsx(Xd,{node:c,depth:0,selectedFile:t,onSelectFile:r,onRevert:n},c.path))})})}function Bn({direction:e,ratio:t,onRatioChange:r,children:n}){const a=A.useRef(null),[c,u]=A.useState(!1),s=A.useCallback(h=>{h.preventDefault(),h.stopPropagation(),u(!0);const b=a.current;if(!b)return;const y=b.getBoundingClientRect(),w=p=>{let f;e==="horizontal"?f=(p.clientX-y.left)/y.width:f=(p.clientY-y.top)/y.height,f=Math.max(.1,Math.min(.9,f)),r(f)},v=()=>{u(!1),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",w),document.addEventListener("mouseup",v),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"},[e,r]),o=e==="horizontal",l=`${t*100}%`,m=`${(1-t)*100}%`;return i.jsxs("div",{ref:a,className:"flex h-full w-full",style:{flexDirection:o?"row":"column"},children:[i.jsx("div",{style:{[o?"width":"height"]:l,overflow:"hidden",display:"flex"},children:n[0]}),i.jsx("div",{className:`split-sash ${o?"split-sash-horizontal":"split-sash-vertical"} ${c?"dragging":""}`,onMouseDown:s}),i.jsx("div",{style:{[o?"width":"height"]:m,overflow:"hidden",display:"flex"},children:n[1]})]})}function Zd({onMenuClick:e}){const{t}=le(),{fileChanges:r,selectedFile:n,selectedDiff:a,diffLoading:c,checkpoints:u,reverting:s,selectFile:o,revertFiles:l,revertAll:m,revertToCheckpoint:h,loadCheckpoints:b}=qt(),[y,w]=A.useState(.28),[v,p]=A.useState(!0),[f,d]=A.useState(!0),[g,_]=A.useState(()=>window.innerWidth<768),[k,S]=A.useState(!1);A.useEffect(()=>{b()},[b]),A.useEffect(()=>{const F=window.matchMedia("(min-width: 768px)"),N=B=>{_(!B.matches),B.matches?S(!1):n&&S(!0)};return F.addEventListener("change",N),()=>F.removeEventListener("change",N)},[n]),A.useEffect(()=>{g&&n&&S(!0)},[g,n]);const E=A.useCallback(F=>{o(F),g&&S(!0)},[g,o]),x=A.useCallback(()=>{S(!1)},[]),C=A.useCallback((F,N)=>{h(F,N)},[h]),I=()=>c?i.jsx("div",{className:"changes-empty-state",children:i.jsx(fe,{size:20,className:"animate-spin",style:{opacity:.4}})}):n&&a?i.jsx("div",{className:"changes-diff-scroll",children:i.jsx(Yt,{path:n,oldText:a.oldText??null,newText:a.newText,maxHeight:"100%"})}):i.jsxs("div",{className:"changes-empty-state",children:[i.jsx($n,{size:48,strokeWidth:1,style:{opacity:.12}}),i.jsx("span",{className:"changes-empty-text",children:t("fileChanges.empty")})]}),R=i.jsxs("div",{className:"changes-left changes-left-mobile-safe",children:[i.jsxs("div",{className:"changes-title-bar",children:[e&&i.jsx("button",{className:"changes-title-menu",onClick:e,title:t("editor.toggleSidebar"),children:i.jsx(Fn,{size:16})}),i.jsx("span",{className:"changes-title-text",children:t("fileChanges.title")})]}),i.jsxs("div",{className:"changes-accordion",children:[i.jsxs("div",{className:`changes-section ${v&&f?"half":v?"full":"collapsed"}`,children:[i.jsxs("div",{className:"changes-section-header changes-section-first",onClick:()=>p(!v),children:[v?i.jsx(Xe,{size:12}):i.jsx(He,{size:12}),i.jsx("span",{className:"changes-section-name",children:t("fileChanges.changesSection")}),r.length>0&&i.jsx("div",{className:"changes-section-actions",onClick:F=>F.stopPropagation(),children:i.jsx("button",{className:"changes-section-action",onClick:m,disabled:s,title:t("fileChanges.revertAll"),children:i.jsx(kr,{size:14})})}),r.length>0&&i.jsx("span",{className:"changes-section-badge",children:r.length})]}),v&&i.jsx("div",{className:"changes-section-content",children:i.jsx(Nm,{fileChanges:r,selectedFile:n,onSelectFile:E,onRevertFiles:l})})]}),i.jsxs("div",{className:`changes-section ${f&&v?"half":f?"full":"collapsed"}`,children:[i.jsxs("div",{className:"changes-section-header",onClick:()=>{d(!f),f||b()},children:[f?i.jsx(Xe,{size:12}):i.jsx(He,{size:12}),i.jsx("span",{className:"changes-section-name",children:t("fileChanges.checkpoints").toUpperCase()})]}),f&&i.jsx("div",{className:"changes-section-content",children:i.jsx(Im,{checkpoints:u,reverting:s,onRevert:C})})]})]})]});return g?i.jsxs("div",{className:"changes-fullview changes-fullview-mobile",children:[R,i.jsxs("div",{className:`changes-mobile-panel ${k?"open":""}`,children:[i.jsxs("div",{className:"changes-mobile-header",children:[i.jsx("button",{className:"changes-mobile-back",onClick:x,children:i.jsx(Lt,{size:18})}),i.jsx("div",{className:"changes-mobile-title",children:n?n.split("/").pop():t("fileChanges.empty")})]}),i.jsx("div",{className:"changes-right",children:I()})]})]}):i.jsx("div",{className:"changes-fullview",children:i.jsxs(Bn,{direction:"horizontal",ratio:y,onRatioChange:w,children:[R,i.jsx("div",{className:"changes-right",children:I()})]})})}function Im({checkpoints:e,reverting:t,onRevert:r}){const{t:n}=le();return e.length===0?i.jsx("div",{className:"changes-empty-state changes-timeline-empty",children:i.jsx("span",{className:"changes-empty-text",children:n("fileChanges.noCheckpoints")})}):i.jsx("div",{className:"changes-timeline",children:e.map((a,c)=>{const u=new Date(a.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),s=a.files.length>0||a.additions>0||a.deletions>0,o=c===0,l=c===e.length-1,m=o?"latest":"historical";return i.jsxs("div",{className:"changes-timeline-item",children:[i.jsxs("div",{className:"changes-timeline-line",children:[i.jsx("div",{className:`changes-timeline-dot ${m}`}),!l&&i.jsx("div",{className:`changes-timeline-connector ${o?"latest":"historical"}`})]}),i.jsx("div",{className:"changes-timeline-content",children:i.jsxs("div",{className:"changes-timeline-header",children:[i.jsx("span",{className:"changes-timeline-time",children:u}),i.jsx("span",{className:"changes-timeline-label",children:a.label||`${a.files.length} file${a.files.length!==1?"s":""}`}),i.jsxs("div",{className:"changes-timeline-actions",children:[i.jsx("button",{className:"changes-timeline-action",onClick:()=>r(a.id,"Conversation"),disabled:t,title:n("fileChanges.revertChat"),children:i.jsx(jn,{size:13})}),s&&i.jsx("button",{className:"changes-timeline-action",onClick:()=>r(a.id,"Code"),disabled:t,title:n("fileChanges.revertCode"),children:i.jsx(Rp,{size:13})}),i.jsx("button",{className:"changes-timeline-action danger",onClick:()=>r(a.id,"CodeAndConversation"),disabled:t,title:n("fileChanges.revertCodeAndChat"),children:i.jsx(kr,{size:13})})]})]})})]},a.id||c)})})}const Rm={blue:{text:"text-blue-400",bg:"bg-blue-400/10",border:"border-blue-400/30"},green:{text:"text-emerald-400",bg:"bg-emerald-400/10",border:"border-emerald-400/30"},yellow:{text:"text-amber-400",bg:"bg-amber-400/10",border:"border-amber-400/30"},magenta:{text:"text-fuchsia-400",bg:"bg-fuchsia-400/10",border:"border-fuchsia-400/30"},cyan:{text:"text-cyan-400",bg:"bg-cyan-400/10",border:"border-cyan-400/30"},red:{text:"text-rose-400",bg:"bg-rose-400/10",border:"border-rose-400/30"}},kc={text:"text-accent-purple",bg:"bg-accent-purple/10",border:"border-accent-purple/30"};function Lm(e){return e&&Rm[e]||kc}function Un(e){return e&&{blue:"#60a5fa",green:"#34d399",yellow:"#fbbf24",magenta:"#e879f9",cyan:"#22d3ee",red:"#fb7185"}[e]||"#a78bfa"}const Jd={wechat:{labelKey:"channel.wechat",color:"#07c160"},"wechat-kf":{labelKey:"channel.wechat",color:"#07c160"},wecom:{labelKey:"channel.wecom",color:"var(--color-channel-accent)"},"wecom-bot":{labelKey:"channel.wecomBot",color:"var(--color-channel-accent)"}},Qd="var(--color-text-primary)";function Om(e){const t=e.chatId||"";if(!t)return"";const r=t.split("_");return r.length>=2?r[1].slice(0,8):t.slice(0,8)}function Dm(e){if(e.senderName)return e.senderName;const t=e.sender||"";return!t||t.includes("@")||t.length>20?"":t}function $m({content:e,channel:t}){const{t:r}=le(),n=Jd[t.source],a=n?r(n.labelKey):t.source,c=(n==null?void 0:n.color)||Qd,u=Dm(t),s=Om(t);return i.jsxs("div",{className:"channel-item mb-4",style:{borderLeftColor:c},children:[i.jsxs("div",{className:"channel-label",style:{color:c},children:[a,u&&i.jsxs("span",{className:"channel-sender",children:[" · ",u]}),s&&i.jsxs("span",{className:"channel-bot-id",children:["#",s]})]}),i.jsx("div",{className:"channel-content",children:e})]})}function Mm({channel:e}){const{t}=le(),r=Jd[e.source],n=r?t(r.labelKey):e.source,a=(r==null?void 0:r.color)||Qd;return i.jsxs("div",{className:"channel-response-indicator",children:[i.jsx(Op,{size:12,style:{color:a}}),i.jsx("span",{children:t("channel.replyTo").replace("{source}",n)})]})}function jm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Fm(e,t){if(e==null)return{};var r,n,a=jm(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function gn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pm(e){if(Array.isArray(e))return gn(e)}function Bm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Um(e,t){if(e){if(typeof e=="string")return gn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gn(e,t):void 0}}function zm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
449
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(e){return Pm(e)||Bm(e)||Um(e)||zm()}function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function Hm(e,t){if(Jt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gm(e){var t=Hm(e,"string");return Jt(t)=="symbol"?t:t+""}function eu(e,t,r){return(t=Gm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bn.apply(null,arguments)}function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ec(Object(r),!0).forEach(function(n){eu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wm(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Zr={};function qm(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Zr[t]||(Zr[t]=Wm(e)),Zr[t]}function Vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(c){return c!=="token"}),a=qm(n);return a.reduce(function(c,u){return Tt(Tt({},c),r[u])},t)}function Cc(e){return e.join(" ")}function Km(e,t){var r=0;return function(n){return r+=1,n.map(function(a,c){return tu({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(c)})})}}function tu(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,c=e.useInlineStyles,u=e.key,s=t.properties,o=t.type,l=t.tagName,m=t.value;if(o==="text")return m;if(l){var h=Km(r,c),b;if(!c)b=Tt(Tt({},s),{},{className:Cc(s.className)});else{var y=Object.keys(r).reduce(function(f,d){return d.split(".").forEach(function(g){f.includes(g)||f.push(g)}),f},[]),w=s.className&&s.className.includes("token")?["token"]:[],v=s.className&&w.concat(s.className.filter(function(f){return!y.includes(f)}));b=Tt(Tt({},s),{},{className:Cc(v)||void 0,style:Vm(s.className,Object.assign({},s.style,a),r)})}var p=h(t.children);return ke.createElement(l,bn({key:u},b),p)}}const Ym=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var Xm=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Tc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tc(Object(r),!0).forEach(function(n){eu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Zm=/\n/g;function Jm(e){return e.match(Zm)}function Qm(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(a,c){var u=c+r;return ke.createElement("span",{key:"line-".concat(c),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(u):n},"".concat(u,`
450
- `))})}function eg(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,a=n===void 0?{float:"left",paddingRight:"10px"}:n,c=e.numberStyle,u=c===void 0?{}:c,s=e.startingLineNumber;return ke.createElement("code",{style:Object.assign({},r,a)},Qm({lines:t.replace(/\n$/,"").split(`
451
- `),style:u,startingLineNumber:s}))}function tg(e){return"".concat(e.toString().length,".25em")}function ru(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function nu(e,t,r){var n={display:"inline-block",minWidth:tg(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,c=it(it({},n),a);return c}function Sr(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,c=e.showInlineLineNumbers,u=e.lineProps,s=u===void 0?{}:u,o=e.className,l=o===void 0?[]:o,m=e.showLineNumbers,h=e.wrapLongLines,b=e.wrapLines,y=b===void 0?!1:b,w=y?it({},typeof s=="function"?s(r):s):{};if(w.className=w.className?[].concat(fn(w.className.trim().split(/\s+/)),fn(l)):l,r&&c){var v=nu(n,r,a);t.unshift(ru(r,v))}return h&m&&(w.style=it({display:"flex"},w.style)),{type:"element",tagName:"span",properties:w,children:t}}function iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var n=0;n<e.length;n++){var a=e[n];if(a.type==="text")r.push(Sr({children:[a],className:fn(new Set(t))}));else if(a.children){var c,u=t.concat(((c=a.properties)===null||c===void 0?void 0:c.className)||[]);iu(a.children,u).forEach(function(s){return r.push(s)})}}return r}function rg(e,t,r,n,a,c,u,s,o){var l,m=iu(e.value),h=[],b=-1,y=0;function w(k,S){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Sr({children:k,lineNumber:S,lineNumberStyle:s,largestLineNumber:u,showInlineLineNumbers:a,lineProps:r,className:E,showLineNumbers:n,wrapLongLines:o,wrapLines:t})}function v(k,S){if(n&&S&&a){var E=nu(s,S,u);k.unshift(ru(S,E))}return k}function p(k,S){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||E.length>0?w(k,S,E):v(k,S)}for(var f=function(){var S=m[y],E=S.children[0].value,x=Jm(E);if(x){var C=E.split(`
452
- `);C.forEach(function(I,R){var F=n&&h.length+c,N={type:"text",value:"".concat(I,`
453
- `)};if(R===0){var B=m.slice(b+1,y).concat(Sr({children:[N],className:S.properties.className})),P=p(B,F);h.push(P)}else if(R===C.length-1){var j=m[y+1]&&m[y+1].children&&m[y+1].children[0],U={type:"text",value:"".concat(I)};if(j){var H=Sr({children:[U],className:S.properties.className});m.splice(y+1,0,H)}else{var T=[U],D=p(T,F,S.properties.className);h.push(D)}}else{var M=[N],L=p(M,F,S.properties.className);h.push(L)}}),b=y}y++};y<m.length;)f();if(b!==m.length-1){var d=m.slice(b+1,m.length);if(d&&d.length){var g=n&&h.length+c,_=p(d,g);h.push(_)}}return t?h:(l=[]).concat.apply(l,h)}function ng(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(a,c){return tu({node:a,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(c)})})}function su(e){return e&&typeof e.highlightAuto<"u"}function ig(e){var t=e.astGenerator,r=e.language,n=e.code,a=e.defaultCodeValue;if(su(t)){var c=Ym(t,r);return r==="text"?{value:a,language:"text"}:c?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:a}}catch{return{value:a}}}function sg(e,t){return function(n){var a,c,u=n.language,s=n.children,o=n.style,l=o===void 0?t:o,m=n.customStyle,h=m===void 0?{}:m,b=n.codeTagProps,y=b===void 0?{className:u?"language-".concat(u):void 0,style:it(it({},l['code[class*="language-"]']),l['code[class*="language-'.concat(u,'"]')])}:b,w=n.useInlineStyles,v=w===void 0?!0:w,p=n.showLineNumbers,f=p===void 0?!1:p,d=n.showInlineLineNumbers,g=d===void 0?!0:d,_=n.startingLineNumber,k=_===void 0?1:_,S=n.lineNumberContainerStyle,E=n.lineNumberStyle,x=E===void 0?{}:E,C=n.wrapLines,I=n.wrapLongLines,R=I===void 0?!1:I,F=n.lineProps,N=F===void 0?{}:F,B=n.renderer,P=n.PreTag,j=P===void 0?"pre":P,U=n.CodeTag,H=U===void 0?"code":U,T=n.code,D=T===void 0?(Array.isArray(s)?s[0]:s)||"":T,M=n.astGenerator,L=Fm(n,Xm);M=M||e;var W=f?ke.createElement(eg,{containerStyle:S,codeStyle:y.style||{},numberStyle:x,startingLineNumber:k,codeString:D}):null,V=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},Q=su(M)?"hljs":"prismjs",re=v?Object.assign({},L,{style:Object.assign({},V,h)}):Object.assign({},L,{className:L.className?"".concat(Q," ").concat(L.className):Q,style:Object.assign({},h)});if(R?y.style=it({whiteSpace:"pre-wrap"},y.style):y.style=it({whiteSpace:"pre"},y.style),!M)return ke.createElement(j,re,W,ke.createElement(H,y,D));(C===void 0&&B||R)&&(C=!0),B=B||ng;var z=[{type:"text",value:D}],O=ig({astGenerator:M,language:u,code:D,defaultCodeValue:z});O.language===null&&(O.value=z);var K=(a=(c=D.match(/\n/g))===null||c===void 0?void 0:c.length)!==null&&a!==void 0?a:0,q=k+K,ee=rg(O,C,N,f,g,k,q,x,R);return ke.createElement(j,re,ke.createElement(H,y,!g&&W,B({rows:ee,stylesheet:l,useInlineStyles:v})))}}const ag=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Ac=/[#.]/g;function og(e,t){const r=e||"",n={};let a=0,c,u;for(;a<r.length;){Ac.lastIndex=a;const s=Ac.exec(r),o=r.slice(a,s?s.index:r.length);o&&(c?c==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:u=o,a+=o.length),s&&(c=s[0],a++)}return{type:"element",tagName:u||t||"div",properties:n,children:[]}}function au(e,t,r){const n=r?ug(r):void 0;function a(c,u,...s){let o;if(c==null){o={type:"root",children:[]};const l=u;s.unshift(l)}else{o=og(c,t);const l=o.tagName.toLowerCase(),m=n?n.get(l):void 0;if(o.tagName=m||l,lg(u))s.unshift(u);else for(const[h,b]of Object.entries(u))cg(e,o.properties,h,b)}for(const l of s)yn(o.children,l);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return a}function lg(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const c=a;for(const u of c)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function cg(e,t,r,n){const a=op(e,r);let c;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;c=n}else typeof n=="boolean"?c=n:typeof n=="string"?a.spaceSeparated?c=Jl(n):a.commaSeparated?c=Ql(n):a.commaOrSpaceSeparated?c=Jl(Ql(n).join(" ")):c=Nc(a,a.property,n):Array.isArray(n)?c=[...n]:c=a.property==="style"?dg(n):String(n);if(Array.isArray(c)){const u=[];for(const s of c)u.push(Nc(a,a.property,s));c=u}a.property==="className"&&Array.isArray(t.className)&&(c=t.className.concat(c)),t[a.property]=c}}function yn(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)yn(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?yn(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Nc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||ec(r)===ec(t)))return!0}return r}function dg(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function ug(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const pg=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],hg=au(lp,"div");au(cp,"g",pg);const mg=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ic={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ou(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function gg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function fg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Rc(e){return fg(e)||ou(e)}const bg=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function yg(e,t){const r={},n=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,a=[];let c=0,u=-1,s="",o,l;r.position&&("start"in r.position||"indent"in r.position?(l=r.position.indent,o=r.position.start):o=r.position);let m=(o?o.line:0)||1,h=(o?o.column:0)||1,b=w(),y;for(c--;++c<=e.length;)if(y===10&&(h=(l?l[u]:0)||1),y=e.charCodeAt(c),y===38){const f=e.charCodeAt(c+1);if(f===9||f===10||f===12||f===32||f===38||f===60||Number.isNaN(f)||n&&f===n){s+=String.fromCharCode(y),h++;continue}const d=c+1;let g=d,_=d,k;if(f===35){_=++g;const N=e.charCodeAt(_);N===88||N===120?(k="hexadecimal",_=++g):k="decimal"}else k="named";let S="",E="",x="";const C=k==="named"?Rc:k==="decimal"?ou:gg;for(_--;++_<=e.length;){const N=e.charCodeAt(_);if(!C(N))break;x+=String.fromCharCode(N),k==="named"&&mg.includes(x)&&(S=x,E=tc(x))}let I=e.charCodeAt(_)===59;if(I){_++;const N=k==="named"?tc(x):!1;N&&(S=x,E=N)}let R=1+_-d,F="";if(!(!I&&r.nonTerminated===!1))if(!x)k!=="named"&&v(4,R);else if(k==="named"){if(I&&!E)v(5,1);else if(S!==x&&(_=g+S.length,R=1+_-g,I=!1),!I){const N=S?1:3;if(r.attribute){const B=e.charCodeAt(_);B===61?(v(N,R),E=""):Rc(B)?E="":v(N,R)}else v(N,R)}F=E}else{I||v(2,R);let N=Number.parseInt(x,k==="hexadecimal"?16:10);if(_g(N))v(7,R),F="�";else if(N in Ic)v(6,R),F=Ic[N];else{let B="";vg(N)&&v(6,R),N>65535&&(N-=65536,B+=String.fromCharCode(N>>>10|55296),N=56320|N&1023),F=B+String.fromCharCode(N)}}if(F){p(),b=w(),c=_-1,h+=_-d+1,a.push(F);const N=w();N.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,F,{start:b,end:N},e.slice(d-1,_)),b=N}else x=e.slice(d-1,_),s+=x,h+=x.length,c=_-1}else y===10&&(m++,u++,h=0),Number.isNaN(y)?p():(s+=String.fromCharCode(y),h++);return a.join("");function w(){return{line:m,column:h,offset:c+((o?o.offset:0)||0)}}function v(f,d){let g;r.warning&&(g=w(),g.column+=d,g.offset+=d,r.warning.call(r.warningContext||void 0,bg[f],g,f))}function p(){s&&(a.push(s),r.text&&r.text.call(r.textContext||void 0,s,{start:b,end:w()}),s="")}}function _g(e){return e>=55296&&e<=57343||e>1114111}function vg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Sg=0,mr={},we={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Sg}),e.__id},clone:function e(t,r){r=r||{};var n,a;switch(we.util.type(t)){case"Object":if(a=we.util.objId(t),r[a])return r[a];n={},r[a]=n;for(var c in t)t.hasOwnProperty(c)&&(n[c]=e(t[c],r));return n;case"Array":return a=we.util.objId(t),r[a]?r[a]:(n=[],r[a]=n,t.forEach(function(u,s){n[s]=e(u,r)}),n);default:return t}}},languages:{plain:mr,plaintext:mr,text:mr,txt:mr,extend:function(e,t){var r=we.util.clone(we.languages[e]);for(var n in t)r[n]=t[n];return r},insertBefore:function(e,t,r,n){n=n||we.languages;var a=n[e],c={};for(var u in a)if(a.hasOwnProperty(u)){if(u==t)for(var s in r)r.hasOwnProperty(s)&&(c[s]=r[s]);r.hasOwnProperty(u)||(c[u]=a[u])}var o=n[e];return n[e]=c,we.languages.DFS(we.languages,function(l,m){m===o&&l!=e&&(this[l]=c)}),c},DFS:function e(t,r,n,a){a=a||{};var c=we.util.objId;for(var u in t)if(t.hasOwnProperty(u)){r.call(t,u,t[u],n||u);var s=t[u],o=we.util.type(s);o==="Object"&&!a[c(s)]?(a[c(s)]=!0,e(s,r,null,a)):o==="Array"&&!a[c(s)]&&(a[c(s)]=!0,e(s,r,u,a))}}},plugins:{},highlight:function(e,t,r){var n={code:e,grammar:t,language:r};if(we.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=we.tokenize(n.code,n.grammar),we.hooks.run("after-tokenize",n),Xt.stringify(we.util.encode(n.tokens),n.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var n in r)t[n]=r[n];delete t.rest}var a=new xg;return xr(a,a.head,e),lu(e,a,t,a.head,0),kg(a)},hooks:{all:{},add:function(e,t){var r=we.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=we.hooks.all[e];if(!(!r||!r.length))for(var n=0,a;a=r[n++];)a(t)}},Token:Xt};function Xt(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0}function Lc(e,t,r,n){e.lastIndex=t;var a=e.exec(r);if(a&&n&&a[1]){var c=a[1].length;a.index+=c,a[0]=a[0].slice(c)}return a}function lu(e,t,r,n,a,c){for(var u in r)if(!(!r.hasOwnProperty(u)||!r[u])){var s=r[u];s=Array.isArray(s)?s:[s];for(var o=0;o<s.length;++o){if(c&&c.cause==u+","+o)return;var l=s[o],m=l.inside,h=!!l.lookbehind,b=!!l.greedy,y=l.alias;if(b&&!l.pattern.global){var w=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,w+"g")}for(var v=l.pattern||l,p=n.next,f=a;p!==t.tail&&!(c&&f>=c.reach);f+=p.value.length,p=p.next){var d=p.value;if(t.length>e.length)return;if(!(d instanceof Xt)){var g=1,_;if(b){if(_=Lc(v,f,e,h),!_||_.index>=e.length)break;var x=_.index,k=_.index+_[0].length,S=f;for(S+=p.value.length;x>=S;)p=p.next,S+=p.value.length;if(S-=p.value.length,f=S,p.value instanceof Xt)continue;for(var E=p;E!==t.tail&&(S<k||typeof E.value=="string");E=E.next)g++,S+=E.value.length;g--,d=e.slice(f,S),_.index-=f}else if(_=Lc(v,0,d,h),!_)continue;var x=_.index,C=_[0],I=d.slice(0,x),R=d.slice(x+C.length),F=f+d.length;c&&F>c.reach&&(c.reach=F);var N=p.prev;I&&(N=xr(t,N,I),f+=I.length),wg(t,N,g);var B=new Xt(u,m?we.tokenize(C,m):C,y,C);if(p=xr(t,N,B),R&&xr(t,p,R),g>1){var P={cause:u+","+o,reach:F};lu(e,t,r,p.prev,f,P),c&&P.reach>c.reach&&(c.reach=P.reach)}}}}}}function xg(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function xr(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function wg(e,t,r){for(var n=t.next,a=0;a<r&&n!==e.tail;a++)n=n.next;t.next=n,n.prev=t,e.length-=a}function kg(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}const cu=we;function du(){}du.prototype=cu;const $=new du;$.highlight=Eg;$.register=Cg;$.alias=Tg;$.registered=Ag;$.listLanguages=Ng;$.util.encode=Ig;$.Token.stringify=_n;function Eg(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let r,n;if(t&&typeof t=="object")r=t;else{if(n=t,typeof n!="string")throw new TypeError("Expected `string` for `name`, got `"+n+"`");if(Object.hasOwn($.languages,n))r=$.languages[n];else throw new Error("Unknown language: `"+n+"` is not registered")}return{type:"root",children:cu.highlight.call($,e,r,n)}}function Cg(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn($.languages,e.displayName)||e($)}function Tg(e,t){const r=$.languages;let n={};typeof e=="string"?t&&(n[e]=t):n=e;let a;for(a in n)if(Object.hasOwn(n,a)){const c=n[a],u=typeof c=="string"?[c]:c;let s=-1;for(;++s<u.length;)r[u[s]]=r[a]}}function Ag(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn($.languages,e)}function Ng(){const e=$.languages,t=[];let r;for(r in e)Object.hasOwn(e,r)&&typeof e[r]=="object"&&t.push(r);return t}function _n(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const n=[];let a=-1;for(;++a<e.length;)e[a]!==null&&e[a]!==void 0&&e[a]!==""&&n.push(_n(e[a],t));return n}const r={attributes:{},classes:["token",e.type],content:_n(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&r.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),$.hooks.run("wrap",r),hg(r.tag+"."+r.classes.join("."),Rg(r.attributes),r.content)}function Ig(e){return e}function Rg(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=yg(e[t]));return e}const Lg={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};Ce.displayName="markup";Ce.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ce(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};c["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var u={};u[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:c},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}St.displayName="css";St.aliases=[];function St(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}de.displayName="clike";de.aliases=[];function de(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}zn.displayName="regex";zn.aliases=[];function zn(e){(function(t){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},c={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},u="(?:[^\\\\-]|"+n.source+")",s=RegExp(u+"-"+u),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":c,escape:n}},"special-escape":r,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}Ne.displayName="javascript";Ne.aliases=["js"];function Ne(e){e.register(de),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Hn.displayName="abap";Hn.aliases=[];function Hn(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}Gn.displayName="abnf";Gn.aliases=[];function Gn(e){(function(t){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Wn.displayName="actionscript";Wn.aliases=[];function Wn(e){e.register(Ne),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}qn.displayName="ada";qn.aliases=[];function qn(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Vn.displayName="agda";Vn.aliases=[];function Vn(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Kn.displayName="al";Kn.aliases=[];function Kn(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}Yn.displayName="antlr4";Yn.aliases=["g4"];function Yn(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}Xn.displayName="apacheconf";Xn.aliases=[];function Xn(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}ir.displayName="sql";ir.aliases=[];function ir(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Zn.displayName="apex";Zn.aliases=[];function Zn(e){e.register(de),e.register(ir),(function(t){var r=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return r.source});function a(u){return RegExp(u.replace(/<CLASS-NAME>/g,function(){return n}),"i")}var c={keyword:r,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:c},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:c},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:c}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:r,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(e)}Jn.displayName="apl";Jn.aliases=[];function Jn(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}Qn.displayName="applescript";Qn.aliases=[];function Qn(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}ei.displayName="aql";ei.aliases=[];function ei(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}Ze.displayName="c";Ze.aliases=[];function Ze(e){e.register(de),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Dt.displayName="cpp";Dt.aliases=[];function Dt(e){e.register(Ze),(function(t){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}ti.displayName="arduino";ti.aliases=["ino"];function ti(e){e.register(Dt),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}ri.displayName="arff";ri.aliases=[];function ri(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}ni.displayName="armasm";ni.aliases=["arm-asm"];function ni(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Or.displayName="bash";Or.aliases=["sh","shell"];function Or(e){(function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=a.variable[1].inside,s=0;s<c.length;s++)u[c[s]]=t.languages.bash[c[s]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Dr.displayName="yaml";Dr.aliases=["yml"];function Dr(e){(function(t){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+n.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+n.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(o,l){l=(l||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return o});return RegExp(m,l)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(u),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}ii.displayName="markdown";ii.aliases=["md"];function ii(e){e.register(Ce),(function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(s){return s=s.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+c+u+"(?:"+c+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+c+u+")(?:"+c+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+c+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+c+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(o){s!==o&&(t.languages.markdown[s].inside.content.inside[o]=t.languages.markdown[o])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function o(l){if(!(!l||typeof l=="string"))for(var m=0,h=l.length;m<h;m++){var b=l[m];if(b.type!=="code"){o(b.content);continue}var y=b.content[1],w=b.content[3];if(y&&w&&y.type==="code-language"&&w.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var p="language-"+v;w.alias?typeof w.alias=="string"?w.alias=[w.alias,p]:w.alias.push(p):w.alias=[p]}}}o(s.tokens)}),t.hooks.add("wrap",function(s){if(s.type==="code-block"){for(var o="",l=0,m=s.classes.length;l<m;l++){var h=s.classes[l],b=/language-(.+)/.exec(h);if(b){o=b[1];break}}var y=t.languages[o];if(y)s.content=t.highlight(s.content.value,y,o);else if(o&&o!=="none"&&t.plugins.autoloader){var w="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);s.attributes.id=w,t.plugins.autoloader.loadLanguages(o,function(){var v=document.getElementById(w);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[o],o))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}si.displayName="arturo";si.aliases=["art"];function si(e){(function(t){var r=function(n,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||n)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+n,inside:t.languages[n]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":r("html"),"css-string":r("css"),"js-string":r("js"),"md-string":r("md"),"sql-string":r("sql"),"sh-string":r("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}ai.displayName="asciidoc";ai.aliases=["adoc"];function ai(e){(function(t){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(c){c=c.split(" ");for(var u={},s=0,o=c.length;s<o;s++)u[c[s]]=n[c[s]];return u}r.inside.interpreted.inside.rest=a("macro inline replacement entity"),n["passthrough-block"].inside.rest=a("macro"),n["literal-block"].inside.rest=a("callout"),n.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=a("macro inline replacement entity"),t.hooks.add("wrap",function(c){c.type==="entity"&&(c.attributes.title=c.content.value.replace(/&amp;/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}$t.displayName="csharp";$t.aliases=["cs","dotnet"];function $t(e){e.register(de),(function(t){function r(D,M){return D.replace(/<<(\d+)>>/g,function(L,W){return"(?:"+M[+W]+")"})}function n(D,M,L){return RegExp(r(D,M),"")}function a(D,M){for(var L=0;L<M;L++)D=D.replace(/<<self>>/g,function(){return"(?:"+D+")"});return D.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function u(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var s=u(c.typeDeclaration),o=RegExp(u(c.type+" "+c.typeDeclaration+" "+c.contextual+" "+c.other)),l=u(c.typeDeclaration+" "+c.contextual+" "+c.other),m=u(c.type+" "+c.typeDeclaration+" "+c.other),h=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=a(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,w=r(/<<0>>(?:\s*<<1>>)?/.source,[y,h]),v=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,w]),p=/\[\s*(?:,\s*)*\]/.source,f=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,p]),d=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,b,p]),g=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[d]),_=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[g,v,p]),k={keyword:o,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,_]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[s,w]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[f]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,m,y]),inside:k}],keyword:o,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,v]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,h]),inside:{function:n(/^<<0>>/.source,[y]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,w,y,_,o.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[w,b]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:o,"class-name":{pattern:RegExp(_),greedy:!0,inside:k},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var C=E+"|"+S,I=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),R=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,R]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[R]),inside:t.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var B=/:[^}\r\n]+/.source,P=a(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),j=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,B]),U=a(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[C]),2),H=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,B]);function T(D,M){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[M,B]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:T(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[H]),lookbehind:!0,greedy:!0,inside:T(H,U)}],char:{pattern:RegExp(S),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}oi.displayName="aspnet";oi.aliases=[];function oi(e){e.register($t),e.register(Ce),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}li.displayName="asm6502";li.aliases=[];function li(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}ci.displayName="asmatmel";ci.aliases=[];function ci(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}di.displayName="autohotkey";di.aliases=[];function di(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}ui.displayName="autoit";ui.aliases=[];function ui(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}pi.displayName="avisynth";pi.aliases=["avs"];function pi(e){(function(t){function r(l,m){return l.replace(/<<(\d+)>>/g,function(h,b){return m[+b]})}function n(l,m,h){return RegExp(r(l,m),h)}var a=/bool|clip|float|int|string|val/.source,c=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),u=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),o=[c,u,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:n(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:n(/\b(?:<<0>>)\b/.source,[o],"i"),alias:"function"},"type-cast":{pattern:n(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}hi.displayName="avro-idl";hi.aliases=["avdl"];function hi(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}mi.displayName="awk";mi.aliases=["gawk"];function mi(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}$r.displayName="basic";$r.aliases=[];function $r(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}gi.displayName="batch";gi.aliases=[];function gi(e){(function(t){var r=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,c=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:n,variable:r,number:c,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:n,variable:r,number:c,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:n,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:c,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:c,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}fi.displayName="bbcode";fi.aliases=["shortcode"];function fi(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}bi.displayName="bbj";bi.aliases=[];function bi(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}yi.displayName="bicep";yi.aliases=[];function yi(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}_i.displayName="birb";_i.aliases=[];function _i(e){e.register(de),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}vi.displayName="bison";vi.aliases=[];function vi(e){e.register(Ze),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Si.displayName="bnf";Si.aliases=["rbnf"];function Si(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}xi.displayName="bqn";xi.aliases=[];function xi(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}wi.displayName="brainfuck";wi.aliases=[];function wi(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}ki.displayName="brightscript";ki.aliases=[];function ki(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Ei.displayName="bro";Ei.aliases=[];function Ei(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Ci.displayName="bsl";Ci.aliases=["oscript"];function Ci(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Ti.displayName="cfscript";Ti.aliases=["cfc"];function Ti(e){e.register(de),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Ai.displayName="chaiscript";Ai.aliases=[];function Ai(e){e.register(de),e.register(Dt),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Ni.displayName="cil";Ni.aliases=[];function Ni(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ii.displayName="cilkc";Ii.aliases=["cilk-c"];function Ii(e){e.register(Ze),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Ri.displayName="cilkcpp";Ri.aliases=["cilk","cilk-cpp"];function Ri(e){e.register(Dt),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Li.displayName="clojure";Li.aliases=[];function Li(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Oi.displayName="cmake";Oi.aliases=[];function Oi(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Di.displayName="cobol";Di.aliases=[];function Di(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}$i.displayName="coffeescript";$i.aliases=["coffee"];function $i(e){e.register(Ne),(function(t){var r=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:n}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}Mi.displayName="concurnas";Mi.aliases=["conc"];function Mi(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}ji.displayName="csp";ji.aliases=[];function ji(e){(function(t){function r(n){return RegExp(/([ \t])/.source+"(?:"+n+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Fi.displayName="cooklang";Fi.aliases=[];function Fi(e){(function(t){var r=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,n=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,c=n+a,u=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+c+"|"+r+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+n+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+n),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+c+"|"+r+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+n+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+u+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Pi.displayName="coq";Pi.aliases=[];function Pi(e){(function(t){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Mt.displayName="ruby";Mt.aliases=["rb"];function Mt(e){e.register(de),(function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby})(e)}Bi.displayName="crystal";Bi.aliases=[];function Bi(e){e.register(Mt),(function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(e)}Ui.displayName="css-extras";Ui.aliases=[];function Ui(e){e.register(St),(function(t){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:n={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=n,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},c={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:c,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:c})})(e)}zi.displayName="csv";zi.aliases=[];function zi(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Hi.displayName="cue";Hi.aliases=[];function Hi(e){(function(t){var r=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,n=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,a="(?:"+n.replace(/<esc>/g,r)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Gi.displayName="cypher";Gi.aliases=[];function Gi(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}Wi.displayName="d";Wi.aliases=[];function Wi(e){e.register(de),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}qi.displayName="dart";qi.aliases=[];function qi(e){e.register(de),(function(t){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}Vi.displayName="dataweave";Vi.aliases=[];function Vi(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Ki.displayName="dax";Ki.aliases=[];function Ki(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Yi.displayName="dhall";Yi.aliases=[];function Yi(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}Xi.displayName="diff";Xi.aliases=[];function Xi(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(n){var a=r[n],c=[];/^\w+$/.test(n)||c.push(/\w+/.exec(n)[0]),n==="diff"&&c.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+a+`].*(?:\r
454
- ?|
455
- |(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}Ie.displayName="markup-templating";Ie.aliases=[];function Ie(e){e.register(Ce),(function(t){function r(n,a){return"___"+n.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,c,u){if(n.language===a){var s=n.tokenStack=[];n.code=n.code.replace(c,function(o){if(typeof u=="function"&&!u(o))return o;for(var l=s.length,m;n.code.indexOf(m=r(a,l))!==-1;)++l;return s[l]=o,m}),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language!==a||!n.tokenStack)return;n.grammar=t.languages[a];var c=0,u=Object.keys(n.tokenStack);function s(o){for(var l=0;l<o.length&&!(c>=u.length);l++){var m=o[l];if(typeof m=="string"||m.content&&typeof m.content=="string"){var h=u[c],b=n.tokenStack[h],y=typeof m=="string"?m:m.content,w=r(a,h),v=y.indexOf(w);if(v>-1){++c;var p=y.substring(0,v),f=new t.Token(a,t.tokenize(b,n.grammar),"language-"+a,b),d=y.substring(v+w.length),g=[];p&&g.push.apply(g,s([p])),g.push(f),d&&g.push.apply(g,s([d])),typeof m=="string"?o.splice.apply(o,[l,1].concat(g)):m.content=g}}else m.content&&s(m.content)}return o}s(n.tokens)}}})})(e)}Zi.displayName="django";Zi.aliases=["jinja2"];function Zi(e){e.register(Ie),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var r=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){n.buildPlaceholders(a,"django",r)}),t.hooks.add("after-tokenize",function(a){n.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){n.buildPlaceholders(a,"jinja2",r)}),t.hooks.add("after-tokenize",function(a){n.tokenizePlaceholders(a,"jinja2")})})(e)}Ji.displayName="dns-zone-file";Ji.aliases=["dns-zone"];function Ji(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}Qi.displayName="docker";Qi.aliases=["dockerfile"];function Qi(e){(function(t){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,c=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),u={pattern:RegExp(a),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(l,m){return l=l.replace(/<OPT>/g,function(){return c}).replace(/<SP>/g,function(){return n}),RegExp(l,m)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:o(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:o(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}es.displayName="dot";es.aliases=["gv"];function es(e){(function(t){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(c,u){return RegExp(c.replace(/<ID>/g,function(){return r}),u)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}ts.displayName="ebnf";ts.aliases=[];function ts(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}rs.displayName="editorconfig";rs.aliases=[];function rs(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}ns.displayName="eiffel";ns.aliases=[];function ns(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}is.displayName="ejs";is.aliases=["eta"];function is(e){e.register(Ne),e.register(Ie),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(r){var n=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"ejs",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"ejs")}),t.languages.eta=t.languages.ejs})(e)}ss.displayName="elixir";ss.aliases=[];function ss(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}as.displayName="elm";as.aliases=[];function as(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}Mr.displayName="lua";Mr.aliases=[];function Mr(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}os.displayName="etlua";os.aliases=[];function os(e){e.register(Mr),e.register(Ie),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(r){var n=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"etlua",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"etlua")})})(e)}ls.displayName="erb";ls.aliases=[];function ls(e){e.register(Ie),e.register(Mt),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(r){var n=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"erb",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"erb")})})(e)}cs.displayName="erlang";cs.aliases=[];function cs(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}ds.displayName="excel-formula";ds.aliases=["xls","xlsx"];function ds(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}us.displayName="fsharp";us.aliases=[];function us(e){e.register(de),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}ps.displayName="factor";ps.aliases=[];function ps(e){(function(t){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},n={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:n.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},c=function(l){return(l+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},u=function(l){return new RegExp("(^|\\s)(?:"+l.map(c).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(l){a[l].pattern=u(s[l])});var o=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];a.combinators.pattern=u(o),t.languages.factor=a})(e)}hs.displayName="false";hs.aliases=[];function hs(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}ms.displayName="firestore-security-rules";ms.aliases=[];function ms(e){e.register(de),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}gs.displayName="flow";gs.aliases=[];function gs(e){e.register(Ne),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}fs.displayName="fortran";fs.aliases=[];function fs(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}bs.displayName="ftl";bs.aliases=[];function bs(e){e.register(Ie),(function(t){for(var r=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return r})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return r})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(c){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return r}),"gi");t.languages["markup-templating"].buildPlaceholders(c,"ftl",u)}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"ftl")})})(e)}ys.displayName="gml";ys.aliases=["gamemakerlanguage"];function ys(e){e.register(de),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}_s.displayName="gap";_s.aliases=[];function _s(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}vs.displayName="gcode";vs.aliases=[];function vs(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Ss.displayName="gdscript";Ss.aliases=[];function Ss(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}xs.displayName="gedcom";xs.aliases=[];function xs(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}ws.displayName="gettext";ws.aliases=["po"];function ws(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}ks.displayName="gherkin";ks.aliases=[];function ks(e){(function(t){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Es.displayName="git";Es.aliases=[];function Es(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}Cs.displayName="glsl";Cs.aliases=[];function Cs(e){e.register(Ze),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Ts.displayName="gn";Ts.aliases=["gni"];function Ts(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}As.displayName="linker-script";As.aliases=["ld"];function As(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Ns.displayName="go";Ns.aliases=[];function Ns(e){e.register(de),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}Is.displayName="go-module";Is.aliases=["go-mod"];function Is(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Rs.displayName="gradle";Rs.aliases=[];function Rs(e){e.register(de),(function(t){var r={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),r.inside.expression.inside=t.languages.gradle})(e)}Ls.displayName="graphql";Ls.aliases=[];function Ls(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var n=r.tokens.filter(function(p){return typeof p!="string"&&p.type!=="comment"&&p.type!=="scalar"}),a=0;function c(p){return n[a+p]}function u(p,f){f=f||0;for(var d=0;d<p.length;d++){var g=c(d+f);if(!g||g.type!==p[d])return!1}return!0}function s(p,f){for(var d=1,g=a;g<n.length;g++){var _=n[g],k=_.content;if(_.type==="punctuation"&&typeof k=="string"){if(p.test(k))d++;else if(f.test(k)&&(d--,d===0))return g}}return-1}function o(p,f){var d=p.alias;d?Array.isArray(d)||(p.alias=d=[d]):p.alias=d=[],d.push(f)}for(;a<n.length;){var l=n[a++];if(l.type==="keyword"&&l.content==="mutation"){var m=[];if(u(["definition-mutation","punctuation"])&&c(1).content==="("){a+=2;var h=s(/^\($/,/^\)$/);if(h===-1)continue;for(;a<h;a++){var b=c(0);b.type==="variable"&&(o(b,"variable-input"),m.push(b.content))}a=h+1}if(u(["punctuation","property-query"])&&c(0).content==="{"&&(a++,o(c(0),"property-mutation"),m.length>0)){var y=s(/^\{$/,/^\}$/);if(y===-1)continue;for(var w=a;w<y;w++){var v=n[w];v.type==="variable"&&m.indexOf(v.content)>=0&&o(v,"variable-input")}}}}})}Os.displayName="groovy";Os.aliases=[];function Os(e){e.register(de),(function(t){var r={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),r.inside.expression.inside=t.languages.groovy})(e)}Ds.displayName="less";Ds.aliases=[];function Ds(e){e.register(St),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}$s.displayName="scss";$s.aliases=[];function $s(e){e.register(St),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Ms.displayName="textile";Ms.aliases=[];function Ms(e){e.register(Ce),(function(t){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function a(h,b){return RegExp(h.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+n+")"}),b||"")}var c={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},u=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:c},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:c},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:c},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:c},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:c},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:c},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=u.phrase.inside,o={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};u.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=s.inline.inside;l.bold.inside=o,l.italic.inside=o,l.inserted.inside=o,l.deleted.inside=o,l.span.inside=o;var m=s.table.inside;m.inline=o.inline,m.link=o.link,m.image=o.image,m.footnote=o.footnote,m.acronym=o.acronym,m.mark=o.mark})(e)}js.displayName="haml";js.aliases=[];function js(e){e.register(Mt),(function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var r="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",n=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},c=0,u=n.length;c<u;c++){var s=n[c];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(r.replace("{{filter_name}}",function(){return s.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("haml","filter",a)})(e)}Fs.displayName="handlebars";Fs.aliases=["hbs","mustache"];function Fs(e){e.register(Ie),(function(t){t.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(r){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(r,"handlebars",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}sr.displayName="haskell";sr.aliases=["hs"];function sr(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Ps.displayName="haxe";Ps.aliases=[];function Ps(e){e.register(de),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Bs.displayName="hcl";Bs.aliases=[];function Bs(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Us.displayName="hlsl";Us.aliases=[];function Us(e){e.register(Ze),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}zs.displayName="hoon";zs.aliases=[];function zs(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Hs.displayName="hpkp";Hs.aliases=[];function Hs(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Gs.displayName="hsts";Gs.aliases=[];function Gs(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ar.displayName="json";ar.aliases=["webmanifest"];function ar(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}Ws.displayName="uri";Ws.aliases=["url"];function Ws(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}qs.displayName="http";qs.aliases=[];function qs(e){(function(t){function r(m){return RegExp("(^(?:"+m+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n=t.languages,a={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},c={"application/json":!0,"application/xml":!0};function u(m){var h=m.replace(/^[a-z]+\//,""),b="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+m+"|"+b+")"}var s;for(var o in a)if(a[o]){s=s||{};var l=c[o]?u(o):o;s[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[o]}}s&&t.languages.insertBefore("http","header",s)})(e)}Vs.displayName="ichigojam";Vs.aliases=[];function Vs(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}Ks.displayName="icon";Ks.aliases=[];function Ks(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}Ys.displayName="icu-message-format";Ys.aliases=[];function Ys(e){(function(t){function r(o,l){return l<=0?/[]/.source:o.replace(/<SELF>/g,function(){return r(o,l-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},c={pattern:n,greedy:!0,inside:{escape:a}},u=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return n.source}),8),s={pattern:RegExp(u),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(u),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:c},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}Xs.displayName="idris";Xs.aliases=["idr"];function Xs(e){e.register(sr),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Zs.displayName="ignore";Zs.aliases=["gitignore","hgignore","npmignore"];function Zs(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}Js.displayName="inform7";Js.aliases=[];function Js(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Qs.displayName="ini";Qs.aliases=[];function Qs(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}ea.displayName="io";ea.aliases=[];function ea(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}ta.displayName="j";ta.aliases=[];function ta(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}jt.displayName="java";jt.aliases=[];function jt(e){e.register(de),(function(t){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:r,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}Ft.displayName="php";Ft.aliases=[];function Ft(e){e.register(Ie),(function(t){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,c=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:c,punctuation:u};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:a,operator:c,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(l){if(/<\?/.test(l.code)){var m=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(l,"php",m)}}),t.hooks.add("after-tokenize",function(l){t.languages["markup-templating"].tokenizePlaceholders(l,"php")})})(e)}Pt.displayName="javadoclike";Pt.aliases=[];function Pt(e){(function(t){var r=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function n(c,u){var s="doc-comment",o=t.languages[c];if(o){var l=o[s];if(!l){var m={};m[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=t.languages.insertBefore(c,"comment",m),l=o[s]}if(l instanceof RegExp&&(l=o[s]={pattern:l}),Array.isArray(l))for(var h=0,b=l.length;h<b;h++)l[h]instanceof RegExp&&(l[h]={pattern:l[h]}),u(l[h]);else u(l)}}function a(c,u){typeof c=="string"&&(c=[c]),c.forEach(function(s){n(s,function(o){o.inside||(o.inside={}),o.inside.rest=u})})}Object.defineProperty(r,"addSupport",{value:a}),r.addSupport(["java","javascript","php"],r)})(e)}ra.displayName="scala";ra.aliases=[];function ra(e){e.register(jt),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}na.displayName="javadoc";na.aliases=[];function na(e){e.register(jt),e.register(Pt),e.register(Ce),(function(t){var r=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return n});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:r,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:r,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}ia.displayName="javastacktrace";ia.aliases=[];function ia(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}sa.displayName="jexl";sa.aliases=[];function sa(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}aa.displayName="jolie";aa.aliases=[];function aa(e){e.register(de),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}oa.displayName="jq";oa.aliases=[];function oa(e){(function(t){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},c=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:n,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=c})(e)}la.displayName="js-templates";la.aliases=[];function la(e){e.register(Ne),(function(t){var r=t.languages.javascript["template-string"],n=r.pattern.source,a=r.inside.interpolation,c=a.inside["interpolation-punctuation"],u=a.pattern.source;function s(w,v){if(t.languages[w])return{pattern:RegExp("((?:"+v+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:w}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),r].filter(Boolean);function o(w,v){return"___"+v.toUpperCase()+"_"+w+"___"}function l(w,v,p){var f={code:w,grammar:v,language:p};return t.hooks.run("before-tokenize",f),f.tokens=t.tokenize(f.code,f.grammar),t.hooks.run("after-tokenize",f),f.tokens}function m(w){var v={};v["interpolation-punctuation"]=c;var p=t.tokenize(w,v);if(p.length===3){var f=[1,1];f.push.apply(f,l(p[1],t.languages.javascript,"javascript")),p.splice.apply(p,f)}return new t.Token("interpolation",p,a.alias,w)}function h(w,v,p){var f=t.tokenize(w,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),d=0,g={},_=f.map(function(x){if(typeof x=="string")return x;for(var C=x.content,I;w.indexOf(I=o(d++,p))!==-1;);return g[I]=C,I}).join(""),k=l(_,v,p),S=Object.keys(g);d=0;function E(x){for(var C=0;C<x.length;C++){if(d>=S.length)return;var I=x[C];if(typeof I=="string"||typeof I.content=="string"){var R=S[d],F=typeof I=="string"?I:I.content,N=F.indexOf(R);if(N!==-1){++d;var B=F.substring(0,N),P=m(g[R]),j=F.substring(N+R.length),U=[];if(B&&U.push(B),U.push(P),j){var H=[j];E(H),U.push.apply(U,H)}typeof I=="string"?(x.splice.apply(x,[C,1].concat(U)),C+=U.length-1):I.content=U}}else{var T=I.content;Array.isArray(T)?E(T):E([T])}}}return E(k),new t.Token(p,k,"language-"+p,w)}var b={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(w){if(!(w.language in b))return;function v(p){for(var f=0,d=p.length;f<d;f++){var g=p[f];if(typeof g!="string"){var _=g.content;if(!Array.isArray(_)){typeof _!="string"&&v([_]);continue}if(g.type==="template-string"){var k=_[1];if(_.length===3&&typeof k!="string"&&k.type==="embedded-code"){var S=y(k),E=k.alias,x=Array.isArray(E)?E[0]:E,C=t.languages[x];if(!C)continue;_[1]=h(S,C,x)}}else v(_)}}}v(w.tokens)});function y(w){return typeof w=="string"?w:Array.isArray(w)?w.map(y).join(""):y(w.content)}})(e)}or.displayName="typescript";or.aliases=["ts"];function or(e){e.register(Ne),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript})(e)}ca.displayName="jsdoc";ca.aliases=[];function ca(e){e.register(Pt),e.register(Ne),e.register(or),(function(t){var r=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}da.displayName="n4js";da.aliases=["n4jsd"];function da(e){e.register(Ne),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}ua.displayName="js-extras";ua.aliases=[];function ua(e){e.register(Ne),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(o,l){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],a=0;a<n.length;a++){var c=n[a],u=t.languages.javascript[c];t.util.type(u)==="RegExp"&&(u=t.languages.javascript[c]={pattern:u});var s=u.inside||{};u.inside=s,s["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}pa.displayName="json5";pa.aliases=[];function pa(e){e.register(ar),(function(t){var r=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(r.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:r,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}ha.displayName="jsonp";ha.aliases=[];function ha(e){e.register(ar),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}ma.displayName="jsstacktrace";ma.aliases=[];function ma(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}ga.displayName="julia";ga.aliases=[];function ga(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}fa.displayName="keepalived";fa.aliases=[];function fa(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}ba.displayName="keyman";ba.aliases=[];function ba(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}ya.displayName="kotlin";ya.aliases=["kt","kts"];function ya(e){e.register(de),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}_a.displayName="kumir";_a.aliases=["kum"];function _a(e){(function(t){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(a,c){return RegExp(a.replace(/<nonId>/g,r),c)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}va.displayName="kusto";va.aliases=[];function va(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}Sa.displayName="latex";Sa.aliases=["context","tex"];function Sa(e){(function(t){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:r,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}xa.displayName="latte";xa.aliases=[];function xa(e){e.register(de),e.register(Ie),e.register(Ft),(function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var r=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},r.tag),t.hooks.add("before-tokenize",function(n){if(n.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(n,"latte",a),n.grammar=r}}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"latte")})})(e)}lr.displayName="scheme";lr.aliases=[];function lr(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(n){for(var a in n)n[a]=n[a].replace(/<[\w\s]+>/g,function(c){return"(?:"+n[c].trim()+")"});return n[a]}})(e)}wa.displayName="lilypond";wa.aliases=["ly"];function wa(e){e.register(lr),(function(t){for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=5,a=0;a<n;a++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var c=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};c["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=c,t.languages.ly=c})(e)}ka.displayName="liquid";ka.aliases=[];function ka(e){e.register(Ie),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var r=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",r,function(a){var c=/^\{%-?\s*(\w+)/.exec(a);if(c){var u=c[1];if(u==="raw"&&!n)return n=!0,!0;if(u==="endraw")return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Ea.displayName="lisp";Ea.aliases=["elisp","emacs","emacs-lisp"];function Ea(e){(function(t){function r(w){return RegExp(/(\()/.source+"(?:"+w+")"+/(?=[\s\)])/.source)}function n(w){return RegExp(/([\s([])/.source+"(?:"+w+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,c="&"+a,u="(\\()",s="(?=\\))",o="(?=\\s)",l=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,m={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(u+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(u+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(u+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(u+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+l+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(u+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(u+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(c),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+l+/\)/.source),inside:m},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:m},b="\\S+(?:\\s+\\S+)*",y={pattern:RegExp(u+l+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+b),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+b),inside:h},keys:{pattern:RegExp("&key\\s+"+b+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};m.lambda.inside.arguments=y,m.defun.inside.arguments=t.util.clone(y),m.defun.inside.arguments.inside.sublist=y,t.languages.lisp=m,t.languages.elisp=m,t.languages.emacs=m,t.languages["emacs-lisp"]=m})(e)}Ca.displayName="livescript";Ca.aliases=[];function Ca(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Ta.displayName="llvm";Ta.aliases=[];function Ta(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}Aa.displayName="log";Aa.aliases=[];function Aa(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Na.displayName="lolcode";Na.aliases=[];function Na(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}Ia.displayName="magma";Ia.aliases=[];function Ia(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}Ra.displayName="makefile";Ra.aliases=[];function Ra(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}jr.displayName="mata";jr.aliases=[];function jr(e){(function(t){var r=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,n=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,r);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(n),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}La.displayName="matlab";La.aliases=[];function La(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Oa.displayName="maxscript";Oa.aliases=[];function Oa(e){(function(t){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Da.displayName="mel";Da.aliases=[];function Da(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}$a.displayName="mermaid";$a.aliases=[];function $a(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}Ma.displayName="metafont";Ma.aliases=[];function Ma(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}ja.displayName="mizar";ja.aliases=[];function ja(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}Fa.displayName="mongodb";Fa.aliases=[];function Fa(e){e.register(Ne),(function(t){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(c){return c.replace("$","\\$")});var a="(?:"+r.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+n.join("|")+")\\b"),alias:"keyword"}})})(e)}Pa.displayName="monkey";Pa.aliases=[];function Pa(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}Ba.displayName="moonscript";Ba.aliases=["moon"];function Ba(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Ua.displayName="n1ql";Ua.aliases=[];function Ua(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}za.displayName="nand2tetris-hdl";za.aliases=[];function za(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Ha.displayName="naniscript";Ha.aliases=["nani"];function Ha(e){(function(t){var r=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(u){var s=u.tokens;s.forEach(function(o){if(typeof o!="string"&&o.type==="generic-text"){var l=c(o);a(l)||(o.type="bad-line",o.content=l)}})});function a(u){for(var s="[]{}",o=[],l=0;l<u.length;l++){var m=u[l],h=s.indexOf(m);if(h!==-1){if(h%2===0)o.push(h+1);else if(o.pop()!==h)return!1}}return o.length===0}function c(u){return typeof u=="string"?u:Array.isArray(u)?u.map(c).join(""):c(u.content)}})(e)}Ga.displayName="nasm";Ga.aliases=[];function Ga(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}Wa.displayName="neon";Wa.aliases=[];function Wa(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}qa.displayName="nevod";qa.aliases=[];function qa(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}Va.displayName="nginx";Va.aliases=[];function Va(e){(function(t){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(e)}Ka.displayName="nim";Ka.aliases=[];function Ka(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Ya.displayName="nix";Ya.aliases=[];function Ya(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}Xa.displayName="nsis";Xa.aliases=[];function Xa(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}Za.displayName="objectivec";Za.aliases=["objc"];function Za(e){e.register(Ze),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Ja.displayName="ocaml";Ja.aliases=[];function Ja(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}Qa.displayName="odin";Qa.aliases=[];function Qa(e){(function(t){var r=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:r}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:r}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}eo.displayName="opencl";eo.aliases=[];function eo(e){e.register(Ze),(function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var r={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",r),t.languages.cpp&&(r["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",r))})(e)}to.displayName="openqasm";to.aliases=["qasm"];function to(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}ro.displayName="oz";ro.aliases=[];function ro(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}no.displayName="parigp";no.aliases=[];function no(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}io.displayName="parser";io.aliases=[];function io(e){e.register(Ce),(function(t){var r=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(e)}so.displayName="pascal";so.aliases=["objectpascal"];function so(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}ao.displayName="pascaligo";ao.aliases=[];function ao(e){(function(t){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),a=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},c=["comment","keyword","builtin","operator","punctuation"].reduce(function(u,s){return u[s]=a[s],u},{});a["class-name"].forEach(function(u){u.inside=c})})(e)}oo.displayName="psl";oo.aliases=[];function oo(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}lo.displayName="pcaxis";lo.aliases=["px"];function lo(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}co.displayName="peoplecode";co.aliases=["pcode"];function co(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}uo.displayName="perl";uo.aliases=[];function uo(e){(function(t){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}po.displayName="phpdoc";po.aliases=[];function po(e){e.register(Pt),e.register(Ft),(function(t){var r=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+r+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+r),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}ho.displayName="php-extras";ho.aliases=[];function ho(e){e.register(Ft),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}mo.displayName="plant-uml";mo.aliases=["plantuml"];function mo(e){(function(t){var r=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,c="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",u=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,o=/[[?]?[ox]?/.source,l=/[ox]?[\]?]?/.source,m=o+"(?:"+c+s+"|"+u+c+"(?:"+s+")?)"+l;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:r}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+m+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:r,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}go.displayName="plsql";go.aliases=[];function go(e){e.register(ir),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}fo.displayName="powerquery";fo.aliases=["mscript","pq"];function fo(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}bo.displayName="powershell";bo.aliases=[];function bo(e){(function(t){var r=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(e)}yo.displayName="processing";yo.aliases=[];function yo(e){e.register(de),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}_o.displayName="prolog";_o.aliases=[];function _o(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}vo.displayName="promql";vo.aliases=[];function vo(e){(function(t){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],n=["on","ignoring","group_right","group_left","by","without"],a=["offset"],c=r.concat(n,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+n.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+c.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}So.displayName="properties";So.aliases=[];function So(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}xo.displayName="protobuf";xo.aliases=[];function xo(e){e.register(de),(function(t){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}wo.displayName="stylus";wo.aliases=[];function wo(e){(function(t){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}ko.displayName="twig";ko.aliases=[];function ko(e){e.register(Ie),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var r=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",r)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}Eo.displayName="pug";Eo.aliases=[];function Eo(e){e.register(Ne),e.register(Ce),(function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},c=0,u=n.length;c<u;c++){var s=n[c];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",a)})(e)}Co.displayName="puppet";Co.aliases=[];function Co(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=r,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(e)}To.displayName="pure";To.aliases=[];function To(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],n=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(a){var c=a;if(typeof a!="string"&&(c=a.alias,a=a.lang),t.languages[c]){var u={};u["inline-lang-"+c]={pattern:RegExp(n.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},u["inline-lang-"+c].inside.rest=t.util.clone(t.languages[c]),t.languages.insertBefore("pure","inline-lang",u)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}Ao.displayName="purebasic";Ao.aliases=["pbfasm"];function Ao(e){e.register(de),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}No.displayName="purescript";No.aliases=["purs"];function No(e){e.register(sr),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}Fr.displayName="python";Fr.aliases=["py"];function Fr(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Io.displayName="qsharp";Io.aliases=["qs"];function Io(e){e.register(de),(function(t){function r(y,w){return y.replace(/<<(\d+)>>/g,function(v,p){return"(?:"+w[+p]+")"})}function n(y,w,v){return RegExp(r(y,w),"")}function a(y,w){for(var v=0;v<w;v++)y=y.replace(/<<self>>/g,function(){return"(?:"+y+")"});return y.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function u(y){return"\\b(?:"+y.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(u(c.type+" "+c.other)),o=/\b[A-Za-z_]\w*\b/.source,l=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[o]),m={keyword:s,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[l]),lookbehind:!0,inside:m},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[l]),lookbehind:!0,inside:m}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var b=a(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[h]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[b]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[b]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}Ro.displayName="q";Ro.aliases=[];function Ro(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}Lo.displayName="qml";Lo.aliases=[];function Lo(e){e.register(Ne),(function(t){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return n}),c=0;c<2;c++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}Oo.displayName="qore";Oo.aliases=[];function Oo(e){e.register(de),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}Do.displayName="r";Do.aliases=[];function Do(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}$o.displayName="racket";$o.aliases=["rkt"];function $o(e){e.register(lr),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}Mo.displayName="cshtml";Mo.aliases=["razor"];function Mo(e){e.register($t),e.register(Ce),(function(t){var r=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(d,g){for(var _=0;_<g;_++)d=d.replace(/<self>/g,function(){return"(?:"+d+")"});return d.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+r+")")}var c=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),u=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),s=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),o=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),l=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+c+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+o+")?"+c+"|"+u+")*"+/(?![?!\.(\[]|<(?!\/))/.source,m=/@(?![\w()])/.source+"|"+l,h="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+m+`)[^"'@]*)+["'])`,b=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,h),y=/(?!\d)[^\s>\/=$<%]+/.source+b+/\s*\/?>/.source,w=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+a(/<\1/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+y+")";t.languages.cshtml=t.languages.extend("markup",{});var v=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(w),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),p={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:v},f={pattern:RegExp(/(^|[^@])/.source+l),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:p}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+y),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+h),t.languages.insertBefore("inside","punctuation",{value:f},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[s,/(?:code|functions)\s*/.source+s,/(?:for|foreach|lock|switch|using|while)\s*/.source+c+/\s*/.source+s,/do\s*/.source+s+/\s*while\s*/.source+c+/(?:\s*;)?/.source,/try\s*/.source+s+/\s*catch\s*/.source+c+/\s*/.source+s+/\s*finally\s*/.source+s,/if\s*/.source+c+/\s*/.source+s+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+c+")?"+/\s*/.source+s+")*",/helper\s+\w+\s*/.source+c+/\s*/.source+s].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:p}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:p}},value:f,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}Pr.displayName="jsx";Pr.aliases=[];function Pr(e){e.register(Ne),e.register(Ce),(function(t){var r=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(l,m){return l=l.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return c}),RegExp(l,m)}c=u(c).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(s).join(""):""},o=function(l){for(var m=[],h=0;h<l.length;h++){var b=l[h],y=!1;if(typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===s(b.content[0].content[1])&&m.pop():b.content[b.content.length-1].content==="/>"||m.push({tagName:s(b.content[0].content[1]),openedBraces:0}):m.length>0&&b.type==="punctuation"&&b.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&b.type==="punctuation"&&b.content==="}"?m[m.length-1].openedBraces--:y=!0),(y||typeof b=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var w=s(b);h<l.length-1&&(typeof l[h+1]=="string"||l[h+1].type==="plain-text")&&(w+=s(l[h+1]),l.splice(h+1,1)),h>0&&(typeof l[h-1]=="string"||l[h-1].type==="plain-text")&&(w=s(l[h-1])+w,l.splice(h-1,1),h--),l[h]=new t.Token("plain-text",w,null,w)}b.content&&typeof b.content!="string"&&o(b.content)}};t.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||o(l.tokens)})})(e)}jo.displayName="tsx";jo.aliases=[];function jo(e){e.register(Pr),e.register(or),(function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(e)}Fo.displayName="reason";Fo.aliases=[];function Fo(e){e.register(de),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}Po.displayName="rego";Po.aliases=[];function Po(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}Bo.displayName="renpy";Bo.aliases=["rpy"];function Bo(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}Uo.displayName="rescript";Uo.aliases=["res"];function Uo(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}zo.displayName="rest";zo.aliases=[];function zo(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}Ho.displayName="rip";Ho.aliases=[];function Ho(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}Go.displayName="roboconf";Go.aliases=[];function Go(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}Wo.displayName="robotframework";Wo.aliases=["robot"];function Wo(e){(function(t){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(o,l){var m={};m["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in l)m[h]=l[h];return m.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},m.variable=n,m.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return o}),"im"),alias:"section",inside:m}}var c={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},u={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":u,documentation:c,property:s}),keywords:a("Keywords",{"keyword-name":u,documentation:c,property:s}),tasks:a("Tasks",{"task-name":u,documentation:c,property:s}),comment:r},t.languages.robot=t.languages.robotframework})(e)}qo.displayName="rust";qo.aliases=[];function qo(e){(function(t){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}Vo.displayName="sas";Vo.aliases=[];function Vo(e){(function(t){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(r+"[bx]"),alias:"number"},c={pattern:/&[a-z_]\w*/i},u={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={pattern:RegExp(r),greedy:!0},m=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},b={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":c,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":a,punctuation:m,string:l},y={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},w={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},p={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},f=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,d={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return f}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return f}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:h,"arg-value":b["arg-value"],operator:b.operator,argument:b.arg,number:n,"numeric-constant":a,punctuation:m,string:l}},g={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":v,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":a,punctuation:m,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:g,"submit-statement":p,"global-statements":v,number:n,"numeric-constant":a,punctuation:m,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:g,"submit-statement":p,"global-statements":v,number:n,"numeric-constant":a,punctuation:m,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:b}},"cas-actions":d,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:b},step:s,keyword:g,function:h,format:y,altformat:w,"global-statements":v,number:n,"numeric-constant":a,punctuation:m,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:b},"macro-keyword":u,"macro-variable":c,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":u,"macro-variable":c,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:m}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:o,number:n,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:b},"cas-actions":d,comment:o,function:h,format:y,altformat:w,"numeric-constant":a,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:l,step:s,keyword:g,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:m}})(e)}Ko.displayName="sass";Ko.aliases=[];function Ko(e){e.register(St),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}Yo.displayName="shell-session";Yo.aliases=["sh-session","shellsession"];function Yo(e){e.register(Or),(function(t){var r=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return r}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}Xo.displayName="smali";Xo.aliases=[];function Xo(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Zo.displayName="smalltalk";Zo.aliases=[];function Zo(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Jo.displayName="smarty";Jo.aliases=[];function Jo(e){e.register(Ie),(function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var r=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return r.source}),"g");t.hooks.add("before-tokenize",function(a){var c="{literal}",u="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",n,function(o){return o===u&&(s=!1),s?!1:(o===c&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})})(e)}Qo.displayName="sml";Qo.aliases=["smlnj"];function Qo(e){(function(t){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}el.displayName="solidity";el.aliases=["sol"];function el(e){e.register(de),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}tl.displayName="solution-file";tl.aliases=["sln"];function tl(e){(function(t){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}rl.displayName="soy";rl.aliases=[];function rl(e){e.register(Ie),(function(t){var r=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:r,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:r,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var c=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",c,function(l){return l===s&&(o=!1),o?!1:(l===u&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})})(e)}Br.displayName="turtle";Br.aliases=["trig"];function Br(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}nl.displayName="sparql";nl.aliases=["rq"];function nl(e){e.register(Br),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}il.displayName="splunk-spl";il.aliases=[];function il(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}sl.displayName="sqf";sl.aliases=[];function sl(e){e.register(de),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}al.displayName="squirrel";al.aliases=[];function al(e){e.register(de),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}ol.displayName="stan";ol.aliases=[];function ol(e){(function(t){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}ll.displayName="stata";ll.aliases=[];function ll(e){e.register(jt),e.register(jr),e.register(Fr),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}cl.displayName="iecst";cl.aliases=[];function cl(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}dl.displayName="supercollider";dl.aliases=["sclang"];function dl(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}ul.displayName="swift";ul.aliases=[];function ul(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}pl.displayName="systemd";pl.aliases=[];function pl(e){(function(t){var r={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+`|(?=[^"\r
456
- ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}cr.displayName="t4-templating";cr.aliases=[];function cr(e){(function(t){function r(a,c,u){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:c,alias:u}}}}function n(a){var c=t.languages[a],u="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",c,u),"class-feature":r("\\+",c,u),standard:r("",c,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:n})})(e)}hl.displayName="t4-cs";hl.aliases=["t4"];function hl(e){e.register($t),e.register(cr),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Ur.displayName="vbnet";Ur.aliases=[];function Ur(e){e.register($r),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}ml.displayName="t4-vb";ml.aliases=[];function ml(e){e.register(cr),e.register(Ur),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}gl.displayName="tap";gl.aliases=[];function gl(e){e.register(Dr),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}fl.displayName="tcl";fl.aliases=[];function fl(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}bl.displayName="tt2";bl.aliases=[];function bl(e){e.register(de),e.register(Ie),(function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(r){var n=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(r,"tt2",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"tt2")})})(e)}yl.displayName="toml";yl.aliases=[];function yl(e){(function(t){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(a){return a.replace(/__/g,function(){return r})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}_l.displayName="tremor";_l.aliases=["trickle","troy"];function _l(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}vl.displayName="typoscript";vl.aliases=["tsconfig"];function vl(e){(function(t){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}Sl.displayName="unrealscript";Sl.aliases=["uc","uscript"];function Sl(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}xl.displayName="uorazor";xl.aliases=[];function xl(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}wl.displayName="v";wl.aliases=[];function wl(e){e.register(de),(function(t){var r={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}kl.displayName="vala";kl.aliases=[];function kl(e){e.register(de),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}El.displayName="velocity";El.aliases=[];function El(e){e.register(Ce),(function(t){t.languages.velocity=t.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}Cl.displayName="verilog";Cl.aliases=[];function Cl(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}Tl.displayName="vhdl";Tl.aliases=[];function Tl(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}Al.displayName="vim";Al.aliases=[];function Al(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}Nl.displayName="visual-basic";Nl.aliases=["vb","vba"];function Nl(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}Il.displayName="warpscript";Il.aliases=[];function Il(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Rl.displayName="wasm";Rl.aliases=[];function Rl(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}Ll.displayName="web-idl";Ll.aliases=["webidl"];function Ll(e){(function(t){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var c in t.languages["web-idl"])c!=="class-name"&&(a[c]=t.languages["web-idl"][c]);t.languages.webidl=t.languages["web-idl"]})(e)}Ol.displayName="wgsl";Ol.aliases=[];function Ol(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}Dl.displayName="wiki";Dl.aliases=[];function Dl(e){e.register(Ce),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}$l.displayName="wolfram";$l.aliases=["mathematica","nb","wl"];function $l(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}Ml.displayName="wren";Ml.aliases=[];function Ml(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}jl.displayName="xeora";jl.aliases=["xeoracube"];function jl(e){e.register(Ce),(function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}Fl.displayName="xml-doc";Fl.aliases=[];function Fl(e){e.register(Ce),(function(t){function r(u,s){t.languages[u]&&t.languages.insertBefore(u,"comment",{"doc-comment":s})}var n=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};r("csharp",a),r("fsharp",a),r("vbnet",c)})(e)}Pl.displayName="xojo";Pl.aliases=[];function Pl(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}Bl.displayName="xquery";Bl.aliases=[];function Bl(e){e.register(Ce),(function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var r=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(r).join("")},n=function(a){for(var c=[],u=0;u<a.length;u++){var s=a[u],o=!1;if(typeof s!="string"&&(s.type==="tag"&&s.content[0]&&s.content[0].type==="tag"?s.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===r(s.content[0].content[1])&&c.pop():s.content[s.content.length-1].content==="/>"||c.push({tagName:r(s.content[0].content[1]),openedBraces:0}):c.length>0&&s.type==="punctuation"&&s.content==="{"&&(!a[u+1]||a[u+1].type!=="punctuation"||a[u+1].content!=="{")&&(!a[u-1]||a[u-1].type!=="plain-text"||a[u-1].content!=="{")?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?c[c.length-1].openedBraces--:s.type!=="comment"&&(o=!0)),(o||typeof s=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var l=r(s);u<a.length-1&&(typeof a[u+1]=="string"||a[u+1].type==="plain-text")&&(l+=r(a[u+1]),a.splice(u+1,1)),u>0&&(typeof a[u-1]=="string"||a[u-1].type==="plain-text")&&(l=r(a[u-1])+l,a.splice(u-1,1),u--),/^\s+$/.test(l)?a[u]=l:a[u]=new t.Token("plain-text",l,null,l)}s.content&&typeof s.content!="string"&&n(s.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&n(a.tokens)})})(e)}Ul.displayName="yang";Ul.aliases=[];function Ul(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}zl.displayName="zig";zl.aliases=[];function zl(e){(function(t){function r(l){return function(){return l}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+n.source+")(?!\\d)\\w+\\b",c=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,u=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(c)),s=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(a)),o="(?!\\s)(?:!?\\s*(?:"+u+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(o)).replace(/<ALIGN>/g,r(c))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(o)).replace(/<ALIGN>/g,r(c))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(l){l.inside===null&&(l.inside=t.languages.zig)})})(e)}$.register(Ce);$.register(St);$.register(de);$.register(zn);$.register(Ne);$.register(Hn);$.register(Gn);$.register(Wn);$.register(qn);$.register(Vn);$.register(Kn);$.register(Yn);$.register(Xn);$.register(ir);$.register(Zn);$.register(Jn);$.register(Qn);$.register(ei);$.register(Ze);$.register(Dt);$.register(ti);$.register(ri);$.register(ni);$.register(Or);$.register(Dr);$.register(ii);$.register(si);$.register(ai);$.register($t);$.register(oi);$.register(li);$.register(ci);$.register(di);$.register(ui);$.register(pi);$.register(hi);$.register(mi);$.register($r);$.register(gi);$.register(fi);$.register(bi);$.register(yi);$.register(_i);$.register(vi);$.register(Si);$.register(xi);$.register(wi);$.register(ki);$.register(Ei);$.register(Ci);$.register(Ti);$.register(Ai);$.register(Ni);$.register(Ii);$.register(Ri);$.register(Li);$.register(Oi);$.register(Di);$.register($i);$.register(Mi);$.register(ji);$.register(Fi);$.register(Pi);$.register(Mt);$.register(Bi);$.register(Ui);$.register(zi);$.register(Hi);$.register(Gi);$.register(Wi);$.register(qi);$.register(Vi);$.register(Ki);$.register(Yi);$.register(Xi);$.register(Ie);$.register(Zi);$.register(Ji);$.register(Qi);$.register(es);$.register(ts);$.register(rs);$.register(ns);$.register(is);$.register(ss);$.register(as);$.register(Mr);$.register(os);$.register(ls);$.register(cs);$.register(ds);$.register(us);$.register(ps);$.register(hs);$.register(ms);$.register(gs);$.register(fs);$.register(bs);$.register(ys);$.register(_s);$.register(vs);$.register(Ss);$.register(xs);$.register(ws);$.register(ks);$.register(Es);$.register(Cs);$.register(Ts);$.register(As);$.register(Ns);$.register(Is);$.register(Rs);$.register(Ls);$.register(Os);$.register(Ds);$.register($s);$.register(Ms);$.register(js);$.register(Fs);$.register(sr);$.register(Ps);$.register(Bs);$.register(Us);$.register(zs);$.register(Hs);$.register(Gs);$.register(ar);$.register(Ws);$.register(qs);$.register(Vs);$.register(Ks);$.register(Ys);$.register(Xs);$.register(Zs);$.register(Js);$.register(Qs);$.register(ea);$.register(ta);$.register(jt);$.register(Ft);$.register(Pt);$.register(ra);$.register(na);$.register(ia);$.register(sa);$.register(aa);$.register(oa);$.register(la);$.register(or);$.register(ca);$.register(da);$.register(ua);$.register(pa);$.register(ha);$.register(ma);$.register(ga);$.register(fa);$.register(ba);$.register(ya);$.register(_a);$.register(va);$.register(Sa);$.register(xa);$.register(lr);$.register(wa);$.register(ka);$.register(Ea);$.register(Ca);$.register(Ta);$.register(Aa);$.register(Na);$.register(Ia);$.register(Ra);$.register(jr);$.register(La);$.register(Oa);$.register(Da);$.register($a);$.register(Ma);$.register(ja);$.register(Fa);$.register(Pa);$.register(Ba);$.register(Ua);$.register(za);$.register(Ha);$.register(Ga);$.register(Wa);$.register(qa);$.register(Va);$.register(Ka);$.register(Ya);$.register(Xa);$.register(Za);$.register(Ja);$.register(Qa);$.register(eo);$.register(to);$.register(ro);$.register(no);$.register(io);$.register(so);$.register(ao);$.register(oo);$.register(lo);$.register(co);$.register(uo);$.register(po);$.register(ho);$.register(mo);$.register(go);$.register(fo);$.register(bo);$.register(yo);$.register(_o);$.register(vo);$.register(So);$.register(xo);$.register(wo);$.register(ko);$.register(Eo);$.register(Co);$.register(To);$.register(Ao);$.register(No);$.register(Fr);$.register(Io);$.register(Ro);$.register(Lo);$.register(Oo);$.register(Do);$.register($o);$.register(Mo);$.register(Pr);$.register(jo);$.register(Fo);$.register(Po);$.register(Bo);$.register(Uo);$.register(zo);$.register(Ho);$.register(Go);$.register(Wo);$.register(qo);$.register(Vo);$.register(Ko);$.register(Yo);$.register(Xo);$.register(Zo);$.register(Jo);$.register(Qo);$.register(el);$.register(tl);$.register(rl);$.register(Br);$.register(nl);$.register(il);$.register(sl);$.register(al);$.register(ol);$.register(ll);$.register(cl);$.register(dl);$.register(ul);$.register(pl);$.register(cr);$.register(hl);$.register(Ur);$.register(ml);$.register(gl);$.register(fl);$.register(bl);$.register(yl);$.register(_l);$.register(vl);$.register(Sl);$.register(xl);$.register(wl);$.register(kl);$.register(El);$.register(Cl);$.register(Tl);$.register(Al);$.register(Nl);$.register(Il);$.register(Rl);$.register(Ll);$.register(Ol);$.register(Dl);$.register($l);$.register(Ml);$.register(jl);$.register(Fl);$.register(Pl);$.register(Bl);$.register(Ul);$.register(zl);var Hl=sg($,Lg);Hl.supportedLanguages=ag;const uu={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},pu={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},Og=Hl;let Cr=null;function Oc({text:e}){const[t,r]=A.useState(!1),{t:n}=le(),a=A.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(c=>{console.error("Failed to copy!",c)})},[e]);return i.jsxs("button",{onClick:a,className:"flex items-center gap-1 px-2 py-1 text-[13px] rounded-md text-text-tertiary hover:text-text-primary transition-colors",title:n("message.copyToClipboard"),children:[t?i.jsx(lt,{size:14,className:"text-accent-green"}):i.jsx(pn,{size:14}),i.jsx("span",{children:n(t?"message.copied":"message.copy")})]})}function Dg({src:e,alt:t}){const r=A.useCallback(n=>{n.preventDefault(),e&&Cr&&Cr(e)},[e]);return i.jsx("img",{src:e,alt:t,className:"markdown-image cursor-pointer hover:opacity-90 transition-opacity",onClick:r,title:"点击放大"})}function $g({className:e,children:t,...r}){const n=dt(s=>s.resolved),a=/language-(\w+)/.exec(e||""),c=String(t).replace(/\n$/,"");if(a){const s=a[1];return i.jsxs("div",{className:"my-3 rounded-xl overflow-hidden bg-bg-code",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-1 bg-transparent text-[13px] text-text-secondary",children:[i.jsx("span",{children:s}),i.jsx(Oc,{text:c})]}),i.jsx("div",{className:"px-3 pb-1 overflow-x-auto",children:i.jsx(Og,{style:n==="dark"?uu:pu,language:s,PreTag:"div",customStyle:{margin:0,padding:0,border:"none",background:"transparent",fontSize:"14px",lineHeight:"1.5"},children:c})})]})}return c.includes(`
457
- `)?i.jsxs("div",{className:"my-3 rounded-xl overflow-hidden bg-bg-code",children:[i.jsx("div",{className:"flex items-center justify-end px-3 py-1 bg-transparent",children:i.jsx(Oc,{text:c})}),i.jsx("pre",{className:"px-3 pb-2 overflow-x-auto text-text-primary font-mono",style:{margin:0,background:"transparent",fontSize:"14px",lineHeight:"1.2",whiteSpace:"pre"},children:c})]}):i.jsx("code",{className:e,...r,children:t})}function Mg({thinking:e,streaming:t,duration:r}){const[n,a]=A.useState(null),c=A.useRef(null),[u,s]=A.useState(0),o=A.useRef(Date.now()),{t:l}=le(),m=n!==null?n:t;A.useEffect(()=>{if(!t)return;o.current=Date.now();const y=setInterval(()=>{s(Math.round((Date.now()-o.current)/1e3))},1e3);return()=>clearInterval(y)},[t]),A.useEffect(()=>{t&&m&&c.current&&(c.current.scrollTop=c.current.scrollHeight)},[e,t,m]);const h=t?u:r||0,b=t?l("thinking.thinking"):`${l("thinking.done")}${l("thinking.seconds").replace("{n}",String(h))}`;return i.jsxs("div",{className:`thinking-block ${t?"thinking-block-streaming":""}`,children:[i.jsxs("div",{className:"thinking-block-header",onClick:()=>a(y=>y!==null?!y:!t),children:[i.jsx("span",{className:"thinking-block-header-text",children:b}),t&&i.jsx("span",{className:"thinking-dot"}),i.jsx(Xe,{size:14,className:`thinking-block-toggle ${m?"expanded":""}`})]}),m&&i.jsx("div",{ref:c,className:"thinking-block-content",children:e})]})}function Gl({message:e}){const t=!!e.streaming&&!!e.thinking&&!e.thinkingDuration,r=!!e.thinking,n=!!e.content,[a,c]=A.useState(null);return A.useEffect(()=>(Cr=c,()=>{Cr=null}),[]),!r&&!n?null:i.jsxs("div",{className:"mb-2",children:[r&&i.jsx(Mg,{thinking:e.thinking,streaming:t,duration:e.thinkingDuration}),n&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"markdown-body text-chat text-text-primary",children:i.jsx(er,{remarkPlugins:[tr],components:{code:$g,img:({src:u,alt:s})=>i.jsx(Dg,{src:u,alt:s}),table:({children:u,...s})=>i.jsx("div",{className:"markdown-table-wrapper",children:i.jsx("table",{...s,children:u})})},children:e.content})}),a&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>c(null),children:i.jsx("img",{src:a,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:u=>u.stopPropagation()})})]})]})}function jg(e){return e.replace(/<\/?[a-zA-Z][a-zA-Z0-9_-]*(?:\s[^>]*)?>/g,"").trim()}function Fg({entries:e}){const[t,r]=A.useState(!1),{t:n}=le(),a=e.find(s=>s.role==="assistant"),c=!a||!!a.streaming,u=A.useMemo(()=>{if(a!=null&&a.content)return{...a,content:jg(a.content)}},[a]);return c?i.jsx("div",{className:"flex flex-col w-full my-4",children:i.jsxs("div",{className:"flex items-center w-full gap-3",children:[i.jsx("div",{className:"flex-1 h-px bg-border-muted"}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full border border-border-muted bg-bg-primary text-xs text-text-tertiary font-medium",children:[i.jsx(fe,{size:12,className:"animate-spin opacity-70"}),i.jsx("span",{children:n("chat.compacting")})]}),i.jsx("div",{className:"flex-1 h-px bg-border-muted"})]})}):i.jsxs("div",{className:"flex flex-col w-full my-4",children:[i.jsxs("div",{className:"flex items-center w-full gap-3",children:[i.jsx("div",{className:"flex-1 h-px bg-border-muted"}),i.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full border border-border-muted bg-bg-primary hover:bg-bg-hover transition-colors text-xs text-text-tertiary font-medium cursor-pointer",onClick:()=>r(!t),"aria-expanded":t,children:[i.jsx(rh,{size:12,className:"opacity-70"}),i.jsx("span",{children:n("chat.compacted")}),u&&i.jsx(He,{size:14,className:`transition-transform duration-200 opacity-60 ${t?"rotate-90":""}`})]}),i.jsx("div",{className:"flex-1 h-px bg-border-muted"})]}),t&&u&&i.jsx("div",{className:"mt-3 w-full bg-bg-secondary/50 rounded-lg p-4 border border-border-subtle text-sm text-text-secondary max-h-80 overflow-y-auto",children:i.jsx(Gl,{message:u})})]})}function hu(e,t){const r=new Date(e),n=new Date,a=new Date(n.getFullYear(),n.getMonth(),n.getDate()),c=new Date(a.getTime()-864e5),u=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=String(r.getHours()).padStart(2,"0"),o=String(r.getMinutes()).padStart(2,"0"),l=`${s}:${o}`;return u.getTime()===a.getTime()?l:u.getTime()===c.getTime()?t==="zh"?`昨天 ${l}`:`Yesterday ${l}`:r.getFullYear()===n.getFullYear()?t==="zh"?`${r.getMonth()+1}月${r.getDate()}日 ${l}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()} ${l}`:t==="zh"?`${r.getFullYear()}年${r.getMonth()+1}月${r.getDate()}日 ${l}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()}, ${r.getFullYear()} ${l}`}function Tr(e){const t=new Date(e),r=new Date,n=new Date(r.getFullYear(),r.getMonth(),r.getDate()),a=new Date(n.getTime()-864e5),c=new Date(t.getFullYear(),t.getMonth(),t.getDate());return c.getTime()===n.getTime()?`today-${t.getHours()}`:c.getTime()===a.getTime()?`yesterday-${t.getHours()}`:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}function Et({label:e}){return i.jsx("div",{className:"date-separator",children:i.jsx("span",{className:"date-separator-label",children:e})})}const Pg={Bash:e=>{if(!e)return null;const t=e.description?String(e.description):void 0,r=e.command?String(e.command):"";return{subtitle:t,content:r?i.jsx("div",{className:"rounded-lg bg-bg-secondary/50 px-3.5 py-2.5 font-mono text-xs",children:i.jsx("span",{className:"text-text-primary",children:r})}):null}},Write:e=>{if(!e)return null;const t=String(e.file_path||""),r=String(e.content||"");return{subtitle:t||void 0,content:t&&r?i.jsx(Yt,{path:t,oldText:null,newText:r,maxHeight:"max-h-40"}):null}},Edit:e=>{if(!e)return null;const t=String(e.file_path||""),r=e.old_string!=null?String(e.old_string):"",n=e.new_string!=null?String(e.new_string):"";return{subtitle:t||void 0,content:t&&(r||n)?i.jsx(Yt,{path:t,oldText:r,newText:n,maxHeight:"max-h-40"}):null}},MultiEdit:e=>{if(!e)return null;const t=String(e.file_path||""),r=e.edits;if(!t||!r||r.length===0)return{subtitle:t||void 0,content:null};const n=r[0];return{subtitle:`${t} (${r.length})`,content:i.jsx(Yt,{path:t,oldText:String(n.old_string||""),newText:String(n.new_string||""),maxHeight:"max-h-40"})}},Read:e=>e!=null&&e.file_path?{content:i.jsx("div",{className:"text-xs font-mono text-text-secondary truncate",children:String(e.file_path)})}:null,Glob:e=>{if(!e)return null;const t=[e.pattern,e.path].filter(Boolean).map(String);return{content:i.jsx("div",{className:"text-xs font-mono text-text-secondary truncate",children:t.join(" in ")})}},Grep:e=>e?{content:i.jsxs("div",{className:"text-xs font-mono text-text-secondary truncate",children:['grep "',String(e.pattern||""),'" ',String(e.path||"")]})}:null,WebFetch:e=>e?{subtitle:e.prompt?String(e.prompt):void 0,content:e.url?i.jsx("div",{className:"text-xs font-mono text-accent-blue truncate",children:String(e.url)}):null}:null,WebSearch:e=>e?{content:i.jsxs("div",{className:"text-xs font-mono text-text-secondary",children:['"',String(e.query||""),'"']})}:null,AskUserQuestion:e=>{if(!e)return null;const t=e.questions;return!t||t.length===0?null:{subtitle:t.length===1?t[0].question||t[0].header||void 0:`${t.length} questions`,content:i.jsx("div",{className:"space-y-2",children:t.map((n,a)=>i.jsxs("div",{className:"rounded-lg bg-bg-secondary/50 overflow-hidden",children:[i.jsxs("div",{className:"px-3 py-2 text-xs",children:[n.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:n.header}),i.jsx("span",{className:"text-text-primary font-medium",children:n.question}),n.multiSelect&&i.jsx("span",{className:"text-[10px] text-text-tertiary ml-1",children:"(multi)"})]}),n.options&&n.options.length>0&&i.jsx("div",{className:"border-t border-border-muted/30 px-3 py-1.5",children:n.options.map((c,u)=>i.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[i.jsx("span",{className:"text-text-secondary font-medium",children:c.label}),c.description&&i.jsxs("span",{className:"text-text-tertiary",children:["— ",c.description]})]},u))})]},a))})}},ExitPlanMode:e=>{const t=e==null?void 0:e._planContent,r=e==null?void 0:e.allowedPrompts;return t?{content:i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"max-h-60 overflow-y-auto prose prose-sm prose-invert max-w-none text-text-primary",children:i.jsx(er,{remarkPlugins:[tr],children:t})}),r&&r.length>0&&i.jsxs("div",{className:"space-y-1 text-xs border-t border-border-muted/30 pt-2",children:[i.jsxs("div",{className:"text-text-tertiary",children:[r.length," permission(s) requested:"]}),r.map((n,a)=>i.jsxs("div",{className:"font-mono text-text-secondary",children:[i.jsx("span",{className:"text-accent-brand",children:n.tool}),": ",n.prompt]},a))]})]})}:!r||r.length===0?{subtitle:"Ready to implement the plan",content:null}:{subtitle:`${r.length} permission(s) requested`,content:i.jsx("div",{className:"space-y-1 text-xs",children:r.map((n,a)=>i.jsxs("div",{className:"font-mono text-text-secondary",children:[i.jsx("span",{className:"text-accent-brand",children:n.tool}),": ",n.prompt]},a))})}}};function Bg(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e)}catch{return""}return String(e)}function Dc(e){if(!e)return null;const t=e.description?String(e.description):void 0,n=Object.keys(e).filter(a=>a!=="description").slice(0,3).map(a=>{const c=Bg(e[a]);return c?`${a}: ${c}`:""}).filter(a=>a.length>0).map(a=>a.length>120?a.slice(0,120)+"...":a);return{subtitle:t,content:n.length>0?i.jsx("div",{className:"text-xs font-mono text-text-secondary whitespace-pre-wrap",children:n.join(`
458
- `)}):null}}function Ug({interruption:e}){const{sessionId:t}=tt(),r=e.sessionId||t,{resolveInterruption:n,timeline:a}=ze(),{t:c}=le(),[u,s]=A.useState(!1),o=A.useMemo(()=>{if(e.toolName!=="ExitPlanMode"||!e.toolCallId)return;const f=a.find(d=>d.type==="tool_call"&&d.id===e.toolCallId);return(f==null?void 0:f.type)==="tool_call"?f.planContent:void 0},[e.toolName,e.toolCallId,a]),l=A.useCallback(async f=>{if(!(!r||u)){s(!0);try{await ve().respondToInterruption(r,e.id,f,e.toolCallId),n(e.id,f)}catch(d){console.error("Approval failed:",d),s(!1)}}},[r,e.id,e.toolCallId,n,u]);if(e.resolved)return i.jsx(i.Fragment,{});let m=typeof e.toolInput=="string"?{default:e.toolInput}:e.toolInput;e.toolName==="ExitPlanMode"&&o&&(m={...m||{},_planContent:o});const b=(e.toolName&&Pg[e.toolName]||Dc)(m),y=e.toolTitle||e.toolName||c("tool.defaultName"),w=e.toolName==="ExitPlanMode",v=()=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>l("allow"),disabled:u,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
459
- disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:c("interruption.yes")}),i.jsx("button",{onClick:()=>l("deny"),disabled:u,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
460
- disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:c("interruption.keepPlanning")}),i.jsx("button",{onClick:()=>l("rejectAndExitPlan"),disabled:u,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
461
- disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:c("interruption.exitPlanMode")})]}),p=()=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>l("allow"),disabled:u,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
462
- disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:c("interruption.allow")}),i.jsx("button",{onClick:()=>l("allowAll"),disabled:u,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
463
- disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:c("interruption.allowAll")}),i.jsx("button",{onClick:()=>l("deny"),disabled:u,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
464
- disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:c("interruption.deny")})]});return i.jsxs("div",{className:"my-1.5 rounded-xl border border-border-muted bg-bg-card shadow-sm overflow-hidden",children:[i.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[w&&i.jsx(nh,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:w?c("interruption.readyToCode"):y})]}),(b==null?void 0:b.subtitle)&&!w&&i.jsx("p",{className:"text-xs text-text-tertiary mt-1.5 leading-relaxed",children:b.subtitle}),(b==null?void 0:b.content)&&i.jsx("div",{className:"mt-2",children:b.content})]}),i.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:w?v():p()})]})}function zg({q:e,value:t,customText:r,onChangeValue:n,onChangeCustomText:a}){const{t:c}=le(),u=e.options.length>0,s=A.useCallback(m=>{if(e.multiSelect){const h=Array.isArray(t)?t:[];h.includes(m)?n(h.filter(b=>b!==m)):n([...h,m])}else n(m),a("")},[e.multiSelect,t,n,a]),o=A.useCallback(m=>{a(m),e.multiSelect||n(m)},[e.multiSelect,n,a]),l=A.useCallback(m=>e.multiSelect?Array.isArray(t)&&t.includes(m):t===m&&!r,[e.multiSelect,t,r]);return i.jsxs("div",{className:"space-y-2",children:[i.jsxs("p",{className:"text-[13px] text-text-primary font-medium leading-relaxed",children:[e.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:e.header}),e.question,e.multiSelect&&i.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",c("question.multiple"),")"]})]}),u&&i.jsx("div",{className:"space-y-1",children:e.options.map(m=>{const h=l(m.label);return i.jsx("button",{type:"button",onClick:()=>s(m.label),className:`w-full text-left px-3 py-2 rounded-lg border text-xs transition-colors ${h?"border-accent-brand bg-accent-brand/10 text-text-primary":"border-border-default bg-bg-card hover:bg-bg-hover text-text-secondary"}`,children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`flex-shrink-0 w-3.5 h-3.5 rounded-${e.multiSelect?"sm":"full"} border ${h?"border-accent-brand bg-accent-brand":"border-border-muted"} flex items-center justify-center`,children:h&&i.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:i.jsx("path",{d:"M1.5 4L3 5.5L6.5 2",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsxs("span",{className:"flex-1",children:[i.jsx("span",{className:"font-medium",children:m.label}),m.description&&i.jsxs("span",{className:"text-text-tertiary ml-1",children:["— ",m.description]})]})]})},m.label)})}),i.jsx("div",{className:"mt-1.5",children:i.jsx("input",{type:"text",placeholder:c("question.customAnswer"),value:r,onChange:m=>o(m.target.value),className:"w-full px-3 py-2 rounded-lg border border-border-default bg-bg-card text-text-primary text-xs placeholder:text-text-tertiary focus:outline-none focus:border-accent-brand transition-colors"})})]})}function Hg({questions:e,answers:t,customTexts:r}){const{t:n}=le();return i.jsxs("div",{className:"space-y-2",children:[i.jsx("p",{className:"text-[13px] text-text-primary font-medium",children:n("question.reviewAnswers")}),i.jsx("div",{className:"space-y-1.5",children:e.map(a=>{const c=t[a.id],u=r[a.id]||"";let s;if(a.multiSelect){const o=Array.isArray(c)?[...c]:[];u.trim()&&o.push(u.trim()),s=o.length>0?o.join(", "):"—"}else s=u.trim()||(typeof c=="string"?c:"")||"—";return i.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[a.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[10px] font-medium flex-shrink-0 mt-0.5",children:a.header}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-text-secondary",children:a.question}),i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[s!=="—"&&i.jsx(lt,{size:12,className:"text-accent-green flex-shrink-0"}),i.jsx("span",{className:`font-medium ${s==="—"?"text-text-tertiary":"text-text-primary"}`,children:s})]})]})]},a.id)})})]})}function Gg(e,t,r){const n={};for(const a of e){const c=t[a.id],u=r[a.id]||"",s=a.question;if(a.multiSelect){const o=Array.isArray(c)?[...c]:[];u.trim()&&o.push(u.trim()),n[s]=o}else n[s]=u.trim()||(typeof c=="string"?c:"")||""}return n}function Wg({question:e}){const{t}=le(),{sessionId:r}=tt(),n=e.sessionId||r,{submitQuestion:a,cancelQuestion:c}=ze(),[u,s]=A.useState(!1),[o,l]=A.useState(()=>{const S={};for(const E of e.questions)S[E.id]=E.multiSelect?[]:"";return S}),[m,h]=A.useState(()=>{const S={};for(const E of e.questions)S[E.id]="";return S}),b=e.questions.length>1,[y,w]=A.useState(0),v=e.questions.length,p=A.useCallback((S,E)=>{l(x=>({...x,[S]:E}))},[]),f=A.useCallback((S,E)=>{h(x=>({...x,[S]:E}))},[]),d=A.useCallback(async()=>{if(!(!n||u)){s(!0);try{const S=Gg(e.questions,o,m);e.source==="interruption"?await ve().resolveInterruption(n,e.toolCallId,"allow",S):await ve().submitQuestionAnswers(n,e.toolCallId,S),a(e.id,S)}catch(S){console.error("Question submit failed:",S),s(!1)}}},[n,e.source,e.toolCallId,e.id,e.questions,o,m,a,u]),g=A.useCallback(async()=>{if(!(!n||u)){s(!0);try{e.source==="interruption"?await ve().resolveInterruption(n,e.toolCallId,"deny"):await ve().cancelQuestionAnswers(n,e.toolCallId),c(e.id)}catch(S){console.error("Question cancel failed:",S),s(!1)}}},[n,e.source,e.toolCallId,e.id,c,u]);if(e.status!=="pending")return e.status==="answered"&&e.answers?i.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:i.jsxs("div",{className:"px-3.5 py-2.5",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx(qr,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-xs font-medium text-text-tertiary",children:b?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")}),i.jsx("span",{className:"text-[10px] text-accent-green font-medium",children:t("question.answered")})]}),i.jsx("div",{className:"space-y-1",children:e.questions.map(S=>{const E=e.answers[S.question]??e.answers[S.id],x=Array.isArray(E)?E.join(", "):E||"—";return i.jsxs("div",{className:"flex items-baseline gap-1.5 text-xs",children:[S.header&&i.jsx("span",{className:"inline-block px-1 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[10px] font-medium",children:S.header}),i.jsx("span",{className:"text-text-primary font-medium",children:x})]},S.id)})})]})}):i.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:i.jsxs("div",{className:"px-3.5 py-2.5 flex items-center gap-2",children:[i.jsx(qr,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-xs text-text-tertiary",children:t("question.cancelled")})]})});const _=e.questions[b?Math.min(y,e.questions.length-1):0],k=b&&y===v;return i.jsxs("div",{className:"my-1.5 rounded-xl border border-accent-brand/50 bg-bg-card shadow-sm overflow-hidden animate-[borderGlow_2s_ease-in-out_infinite]",children:[i.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(qr,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:b?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")})]}),b&&i.jsxs("div",{className:"flex items-center gap-1 mt-2.5 mb-2 overflow-x-auto",children:[e.questions.map((S,E)=>i.jsx("button",{type:"button",onClick:()=>w(E),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${y===E?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:S.header||`Q${E+1}`},S.id)),i.jsx("button",{type:"button",onClick:()=>w(v),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${k?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:t("question.reviewTab")})]}),i.jsx("div",{className:"mt-2",children:k?i.jsx(Hg,{questions:e.questions,answers:o,customTexts:m}):i.jsx(zg,{q:_,value:o[_.id]??"",customText:m[_.id]??"",onChangeValue:S=>p(_.id,S),onChangeCustomText:S=>f(_.id,S)})})]}),i.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:i.jsxs("div",{className:"flex items-center gap-2",children:[b&&!k?i.jsx("button",{type:"button",onClick:()=>w(S=>Math.min(S+1,v)),className:"px-4 py-[6px] bg-accent-brand hover:brightness-110 text-white text-xs font-medium rounded-lg transition-all",children:t("question.next")}):i.jsx("button",{type:"button",onClick:d,disabled:u,className:"px-4 py-[6px] bg-accent-brand hover:brightness-110 disabled:opacity-50 disabled:cursor-not-allowed text-white text-xs font-medium rounded-lg transition-all",children:t("question.submit")}),i.jsx("button",{type:"button",onClick:g,disabled:u,className:"px-4 py-[6px] border border-border-default bg-bg-card hover:bg-bg-hover disabled:opacity-50 disabled:cursor-not-allowed text-text-tertiary text-xs font-medium rounded-lg transition-colors",children:t("question.cancel")})]})})]})}function $c(e){try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.text=="string")return t.text;if(Array.isArray(t)){const r=t.filter(n=>n&&typeof n.text=="string").map(n=>n.text);if(r.length>0)return r.join(`
465
- `)}}catch{}return e}function gr(e){return e.replace(/\\r\\n/g,`
466
- `).replace(/\\n/g,`
467
- `)}function We(e){if(typeof e=="string"){const t=$c(e);return gr(t)}if(!e)return"";try{if(typeof e=="object"&&e!==null){const t=e,r=Object.keys(t);if(r.length===1&&typeof t[r[0]]=="string"){const n=t[r[0]],a=$c(n);return gr(a)}if(typeof t.text=="string"&&t.type==="text")return gr(t.text)}if(Array.isArray(e)){const t=e.filter(r=>r&&typeof r.text=="string").map(r=>r.text);if(t.length>0)return gr(t.join(`
468
- `))}return JSON.stringify(e,null,2)}catch{return String(e)}}const Re={size:14,strokeWidth:1.5},Le="text-text-tertiary flex-shrink-0";function qg(){return i.jsx(ct,{...Re,className:Le})}function Vg(){return i.jsx(Jp,{...Re,className:Le})}function Kg(){return i.jsx(jd,{...Re,className:Le})}function mu(){return i.jsx(_t,{...Re,className:Le})}function vn(){return i.jsx(Mn,{...Re,className:Le})}function gu(){return i.jsx(sh,{...Re,className:Le})}function Mc(){return i.jsx(Fd,{...Re,className:Le})}function jc(){return i.jsx(Od,{...Re,className:Le})}function Yg(){return i.jsx(ih,{...Re,className:Le})}function Xg(){return i.jsx(Ip,{...Re,className:Le})}function Zg(){return i.jsx(zp,{...Re,className:Le})}function Jg(){return i.jsx(Dd,{...Re,className:Le})}function Qg(){return i.jsx(Ap,{...Re,className:Le})}function ef(){return i.jsx(qp,{...Re,className:Le})}function tf(){return i.jsx(Nd,{...Re,className:Le})}function Fc(){return i.jsx(Rd,{...Re,className:Le})}function fu({status:e}){return e==="running"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-text-tertiary animate-pulse"}):e==="failed"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-red"}):e==="completed"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-green"}):null}function rf(e){if(!e||!Array.isArray(e))return null;const t=e.find(r=>r.type==="diff");return!t||!t.path?null:{path:t.path,oldText:t.oldText??null,newText:t.newText??""}}function st(e){return`/api/v1/files/download?path=${encodeURIComponent(e)}`}function Sn(e){const t=[],r=n=>{if(n){if(typeof n=="object"&&n.type==="image_blob_ref"&&n.blob_path){t.push(n);return}if(Array.isArray(n)){for(const a of n)r(a);return}if(typeof n=="string"&&n.includes("image_blob_ref"))try{r(JSON.parse(n))}catch{}}};return r(e),t}function xn(e){var t,r,n,a,c;if(e.content&&Array.isArray(e.content)){for(const u of e.content){const s=u;if(s.type==="content"&&((t=s.content)==null?void 0:t.type)==="image"&&((r=s.content)!=null&&r.data))return`data:${s.content.mimeType||"image/png"};base64,${s.content.data}`;if(s.type==="image"&&s.data)return`data:${s.mimeType||s.mediaType||"image/png"};base64,${s.data}`;if(s.type==="image_url"&&((n=s.image_url)!=null&&n.url))return s.image_url.url;if(s.type==="image_blob_ref"&&s.blob_path)return st(s.blob_path)}for(const u of e.content){const s=u,o=s.type==="content"&&((a=s.content)==null?void 0:a.type)==="text"?s.content.text:null;if(o){const l=Sn(o);if(l.length>0)return st(l[0].blob_path)}}}if(e.result&&typeof e.result=="object"){const u=e.result;if(u.type==="image"&&u.data)return`data:${u.mimeType||u.mediaType||"image/png"};base64,${u.data}`;if(u.type==="image_url"&&((c=u.image_url)!=null&&c.url))return u.image_url.url;if(u.type==="image_blob_ref"&&u.blob_path)return st(u.blob_path)}if(e.result){const u=Sn(e.result);if(u.length>0)return st(u[0].blob_path)}return null}function Pc(e){const t=We(e);if(!t)return null;const r=t.match(/Full path:\s*(.+)/);if(r)return r[1].trim();const n=t.match(/file:\/\/([^\s\n]+)/);if(n)return n[1];const a=Sn(e);return a.length>0?a[0].blob_path:null}function nf(e){const t=e.input;if(t!=null&&t.description&&typeof t.description=="string")return t.description}function me(e){return e.input||{}}function je(e,t){return e.length<=t?e:e.slice(0,t)+"..."}function sf(e,t=[]){const r=new Set(["description","activeForm",...t]),n=[];for(const[a,c]of Object.entries(e))r.has(a)||c===void 0||c===null||typeof c=="string"&&c.length>0&&n.push(c);return n.length>0?je(n.join(" · "),80):""}function af(e){if(e==null)return[];const t=We(e);if(!t)return[];try{const r=JSON.parse(t);if(Array.isArray(r))return r.map(n=>typeof n=="string"?n:JSON.stringify(n)).filter(Boolean)}catch{}return t.split(`
469
- `).filter(Boolean)}function of(e){const t=We(e);if(!t)return"";const r=t.split(`
470
- `),n=[];let a=!1,c="";for(const u of r){if(u.startsWith("Command: ")){a=!1,c="command";continue}if(u.startsWith("Stdout: ")||u==="Stdout:"){a=!0,c="stdout";const s=u.slice(8);s&&s!=="(empty)"&&n.push(s);continue}if(u.startsWith("Stderr: ")||u==="Stderr:"){a=!0,c="stderr";const s=u.slice(8);s&&s!=="(empty)"&&n.push(s);continue}if(u.startsWith("Exit Code: ")||u.startsWith("Signal: ")){a=!1,c="";continue}a&&(c==="stdout"||c==="stderr")&&n.push(u)}return n.length===0&&t.length>0&&!t.startsWith("Command: ")?t:n.join(`
471
- `).trim()}function lf({result:e}){const{t}=le(),[r,n]=A.useState(!1),a=af(e);if(a.length===0)return null;const c=10,u=r?a:a.slice(0,c),s=a.length>c;return i.jsxs("div",{className:"rounded-md bg-bg-secondary overflow-hidden",children:[i.jsx("div",{className:"px-2.5 py-1 text-[11px] text-text-tertiary border-b border-border-muted/30",children:t("tool.itemsCount").replace("{count}",String(a.length))}),i.jsx("div",{className:"max-h-64 overflow-y-auto",children:u.map((o,l)=>i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-0.5 text-xs font-mono text-text-secondary hover:bg-bg-hover/50",children:[i.jsx(ct,{size:10,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"truncate",title:o,children:o})]},l))}),s&&!r&&i.jsx("button",{onClick:()=>n(!0),className:"w-full px-2.5 py-1 text-[11px] text-accent-brand hover:bg-bg-hover/30 border-t border-border-muted/30 cursor-pointer",children:t("tool.showAllItems").replace("{count}",String(a.length))})]})}function Ye({result:e,maxLines:t=8}){const{t:r}=le(),n=We(e);if(!n)return null;const a=n.split(`
472
- `),c=a.length>t,u=c?a.slice(0,t).join(`
473
- `):n;return i.jsxs("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words max-h-60 overflow-y-auto bg-bg-secondary/40 rounded-md",children:[u,c&&i.jsx("span",{className:"text-text-tertiary",children:`
474
- ${r("tool.moreLinesCount").replace("{count}",String(a.length-t))}`})]})}function Gt({src:e,alt:t}){const r=e.startsWith("file://")?st(e.replace("file://","")):e.startsWith("/")&&!e.startsWith("/api/")?st(e):e;return i.jsx("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40 p-2",children:i.jsx("img",{src:r,alt:t||"Image",className:"max-w-full max-h-64 rounded object-contain",loading:"lazy"})})}const Bc={read:{Icon:qg,render:e=>{const t=xn(e);if(t){const n=me(e),a=n.file_path?String(n.file_path).split("/").pop():void 0;return i.jsx(Gt,{src:t,alt:a})}if(e.result===void 0)return null;const r=We(e.result);return r?i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre overflow-x-auto max-h-64 overflow-y-auto bg-bg-secondary/40 rounded-md",children:r}):null}},edit:{Icon:Vg,render:e=>{const t=rf(e.content);if(t){const r=e.status==="failed";return i.jsx("div",{className:r?"opacity-40":"",children:i.jsx(Yt,{path:t.path,oldText:t.oldText,newText:t.newText,maxHeight:"max-h-64"})})}return e.result!==void 0?i.jsx(Ye,{result:e.result}):null}},execute:{Icon:Kg,render:e=>{const t=me(e),n=(e.result!==void 0?of(e.result):"")||(e.result!==void 0?We(e.result):"");return i.jsxs("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40",children:[!!t.command&&i.jsxs("pre",{className:"px-2.5 py-1.5 font-mono text-xs whitespace-pre overflow-x-auto text-text-primary",children:[i.jsx("span",{className:"text-text-tertiary select-none",children:"$ "}),String(t.command)]}),n&&i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words max-h-60 overflow-y-auto border-t border-border-muted/30",children:n})]})}},search:{Icon:mu,render:e=>i.jsx(lf,{result:e.result})},fetch:{Icon:vn,render:e=>{const t=me(e);return!t.url&&!t.query?null:i.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&i.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&i.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)}),!!t.query&&i.jsx("div",{className:"text-text-secondary",children:String(t.query)})]})}}},Uc={ImageGen:{Icon:Fc,getTitle:(e,t)=>t("tool.imageGen"),getSummary:e=>{const t=me(e);return t.prompt?je(String(t.prompt),60):void 0},render:(e,t)=>{const r=xn(e);if(r)return i.jsx(Gt,{src:r,alt:t("tool.generatedImage")});const n=Pc(e.result);return n?i.jsx(Gt,{src:st(n),alt:t("tool.generatedImage")}):e.result!==void 0?i.jsx(Ye,{result:e.result,maxLines:6}):null}},ImageEdit:{Icon:Fc,getTitle:(e,t)=>t("tool.imageEdit"),getSummary:e=>{const t=me(e);return t.prompt?je(String(t.prompt),60):void 0},render:(e,t)=>{const r=xn(e);if(r)return i.jsx(Gt,{src:r,alt:t("tool.editedImage")});const n=Pc(e.result);return n?i.jsx(Gt,{src:st(n),alt:t("tool.editedImage")}):e.result!==void 0?i.jsx(Ye,{result:e.result,maxLines:6}):null}},ToolSearch:{Icon:mu,getTitle:(e,t)=>t("tool.toolSearch"),getSummary:e=>{const t=me(e);if(t.query)return String(t.query);if(t.tool_names)return`[${String(t.tool_names)}]`},render:e=>e.result===void 0?null:i.jsx(Ye,{result:e.result,maxLines:12})},TeamCreate:{Icon:Mc,getTitle:(e,t)=>t("tool.teamCreate"),getSummary:e=>{const t=me(e),r=t.name?String(t.name):void 0,n=t.description?String(t.description):void 0;return r&&n?`${r} · ${n}`:r||n},render:e=>{if(e.result===void 0)return null;const t=We(e.result);return t?i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-bg-secondary/40 rounded-md text-xs",children:[i.jsx(Ad,{size:12,className:"text-accent-green flex-shrink-0"}),i.jsx("span",{className:"text-text-secondary",children:je(t,120)})]}):null}},TeamDelete:{Icon:Mc,getTitle:(e,t)=>t("tool.teamDelete"),getSummary:e=>{const t=me(e);return t.team_name?String(t.team_name):void 0}},TaskCreate:{Icon:jc,getTitle:(e,t)=>t("tool.taskCreate"),getSummary:e=>{const t=me(e);return t.subject?je(String(t.subject),80):void 0}},TaskUpdate:{Icon:Xg,getTitle:(e,t)=>t("tool.taskUpdate"),getSummary:e=>{const t=me(e),r=[];return t.taskId&&r.push(`#${t.taskId}`),t.status&&r.push(String(t.status)),t.subject&&r.push(je(String(t.subject),40)),r.join(" · ")||void 0}},TaskList:{Icon:jc,getTitle:(e,t)=>t("tool.taskList")},TaskGet:{Icon:Zg,getTitle:(e,t)=>t("tool.taskGet"),getSummary:e=>{const t=me(e);return t.taskId?`#${t.taskId}`:void 0},render:e=>e.result===void 0?null:i.jsx(Ye,{result:e.result,maxLines:8})},SendMessage:{Icon:Yg,getTitle:(e,t)=>{const r=me(e),n=String(r.type||"message"),a=r.recipient?String(r.recipient):void 0;switch(n){case"message":return a?`@${a}`:t("tool.sendMessage");case"broadcast":return"@team";case"shutdown_request":return a?`@${a} · shutdown`:t("tool.shutdown");case"shutdown_response":return r.approve!==!1?t("tool.taskCompleted"):t("tool.shutdownRejected");case"plan_approval_response":return a?`@${a} · ${r.approve!==!1?t("tool.approved"):t("tool.rejected")}`:t("tool.planResponse");default:return a?`@${a}`:n}},getSummary:e=>{const t=me(e);return t.summary?je(String(t.summary),80):void 0},render:(e,t)=>{if(e.result===void 0)return null;let r;try{const a=e.result,c=typeof a=="string"?a:String(a&&typeof a=="object"?a.text??a.output??JSON.stringify(a):a);r=JSON.parse(c)}catch{try{r=typeof e.result=="object"?e.result:void 0}catch{}}if(r!=null&&r.success||r!=null&&r.routing)return i.jsx("div",{className:"text-xs text-text-tertiary pl-2.5 py-0.5",children:t("team.delivered")});const n=We(e.result);return n?i.jsx("div",{className:"text-xs text-text-secondary px-2.5 py-1.5 bg-bg-secondary/40 rounded-md",children:je(n,200)}):null}},WebSearch:{Icon:vn,getTitle:(e,t)=>t("tool.webSearch"),getSummary:e=>{const t=me(e);return t.query?je(String(t.query),80):void 0},render:e=>e.result===void 0?null:i.jsx(Ye,{result:e.result,maxLines:10})},WebFetch:{Icon:vn,getTitle:(e,t)=>t("tool.webFetch"),getSummary:e=>{const t=me(e);return t.url?je(String(t.url),60):void 0},render:e=>{const t=me(e);return i.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&i.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&i.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)})]})}},SaveMemory:{Icon:Jg,getTitle:(e,t)=>t("tool.saveMemory"),getSummary:e=>{const t=me(e);return t.content?je(String(t.content),60):void 0}},AskUserQuestion:{Icon:Qg,getTitle:(e,t)=>t("tool.askUserQuestion"),getSummary:e=>{const r=me(e).questions;if(!r||r.length===0)return;if(r.length===1)return r[0].question?je(String(r[0].question),80):r[0].header;const n=r.map(a=>a.header||"?").join(", ");return`${r.length} questions: ${n}`},render:(e,t)=>{const n=me(e).questions;return!n||n.length===0?e.result!==void 0?i.jsx(Ye,{result:e.result,maxLines:6}):null:i.jsxs("div",{className:"space-y-2",children:[n.map((a,c)=>i.jsxs("div",{className:"rounded-md bg-bg-secondary/40 overflow-hidden",children:[i.jsxs("div",{className:"px-2.5 py-1.5 text-xs",children:[a.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:a.header}),i.jsx("span",{className:"text-text-primary font-medium",children:a.question}),a.multiSelect&&i.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",t("question.multiLabel"),")"]})]}),a.options&&a.options.length>0&&i.jsx("div",{className:"border-t border-border-muted/30 px-2.5 py-1",children:a.options.map((u,s)=>i.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[i.jsx("span",{className:"text-text-secondary font-medium",children:u.label}),u.description&&i.jsxs("span",{className:"text-text-tertiary",children:["— ",je(String(u.description),60)]})]},s))})]},c)),e.result!==void 0&&i.jsx(Ye,{result:e.result,maxLines:4})]})}},EnterPlanMode:{Icon:ef,getTitle:(e,t)=>t("tool.enterPlanMode"),render:e=>{if(e.result===void 0)return null;const t=We(e.result);if(!t)return null;const r=e.result,n=r!=null&&r.planFilePath?String(r.planFilePath):void 0;return i.jsxs("div",{className:"text-xs px-2.5 py-1.5 bg-bg-secondary/40 rounded-md space-y-1",children:[n&&i.jsxs("div",{className:"flex items-center gap-1.5 text-text-tertiary",children:[i.jsx(Nd,{size:10,className:"flex-shrink-0"}),i.jsx("span",{className:"font-mono truncate",children:n})]}),!n&&t&&i.jsx("div",{className:"text-text-secondary",children:je(t,200)})]})}},ExitPlanMode:{Icon:tf,getTitle:(e,t)=>t("tool.exitPlanMode"),getSummary:(e,t)=>{const n=me(e).allowedPrompts;if(n&&n.length>0)return t("tool.permissionsCount").replace("{count}",String(n.length))},render:(e,t)=>{const n=me(e).allowedPrompts,a=n&&n.length>0,c=e.result!==void 0;return!a&&!c?null:i.jsxs("div",{className:"space-y-1",children:[a&&i.jsxs("div",{className:"rounded-md bg-bg-secondary/40 px-2.5 py-1.5",children:[i.jsx("div",{className:"text-[11px] text-text-tertiary mb-1",children:t("tool.allowedActions")}),n.map((u,s)=>i.jsxs("div",{className:"flex items-center gap-1.5 text-xs py-0.5",children:[i.jsx(jd,{size:10,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-text-secondary",children:u.prompt})]},s))]}),c&&i.jsx(Ye,{result:e.result,maxLines:6})]})}},Skill:{Icon:gu,getTitle:(e,t)=>t("tool.skill"),getSummary:e=>{const t=me(e);return t.skill?String(t.skill):t.command?String(t.command):void 0}}};function cf(e){return e.toolName&&Uc[e.toolName]?Uc[e.toolName]:e.kind&&Bc[e.kind]?Bc[e.kind]:bu}function df(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0)}const bu={Icon:gu,getSummary:e=>{const t=me(e),r=sf(t);return r||void 0},render:e=>{const t=me(e),r=Object.keys(t).length>0,n=e.result,a=n!==void 0&&!df(n)&&We(n).length>0;return!r&&!a?null:i.jsxs("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:[r&&i.jsx("pre",{className:"text-text-tertiary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words bg-bg-secondary/40 rounded-md",children:JSON.stringify(t,null,2)}),a&&i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words bg-bg-secondary/40 rounded-md",children:We(n)})]})}},yu="subagent-collapse-pref";function zc(){try{return localStorage.getItem(yu)==="true"}catch{return!1}}function uf(e){try{localStorage.setItem(yu,String(e))}catch{}}function pf(){return i.jsxs("span",{className:"inline-flex items-center gap-0.5 ml-1 align-middle",children:[i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0s_infinite]"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.2s_infinite]"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.4s_infinite]"})]})}function Hc({entry:e,isActive:t}){const r=e.streaming&&t,n=e.content&&e.content.trim().length>0;return!n&&!r?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"markdown-body text-chat text-text-primary py-0.5",children:[n&&i.jsx(er,{remarkPlugins:[tr],children:e.content}),r&&i.jsx(pf,{})]})}function hf(e){return A.useMemo(()=>{const t=e.subagentTimeline||[];let r=0,n=0;for(const a of t)a.type==="tool_call_ref"?r++:a.type==="message"&&n++;return{toolCount:r,messageCount:n}},[e.subagentTimeline])}function mf({toolCall:e}){var f,d,g,_,k;const{t}=le(),r=ze(S=>S.childToolCalls),n=e.subagentTimeline||[],a=e.status==="running",c=e.status==="failed",u=!!((f=e.subagent)!=null&&f.memberName),s=hf(e),[o,l]=A.useState(()=>!a&&zc());A.useEffect(()=>{l(a?!1:zc())},[a]);const m=A.useCallback(()=>{a||l(S=>{const E=!S;return uf(E),E})},[a]),h=(d=e.subagent)!=null&&d.memberName?`@${e.subagent.memberName}`:((g=e.subagent)==null?void 0:g.type)||t("tool.agent"),b=((_=e.subagent)==null?void 0:_.description)||"",y=(k=e.subagent)==null?void 0:k.isBackground,w=n.length>0,v=w&&!o,p=A.useMemo(()=>{if(a)return null;const S=[];return c?S.push(t("tool.failed")):e.status==="completed"&&S.push(t("tool.completed")),s.toolCount>0&&S.push(t("tool.toolsCount").replace("{count}",String(s.toolCount))),S.length>0?S.join(" · "):null},[a,c,e.status,s.toolCount,t]);return u?i.jsxs("div",{className:`mb-1 rounded-lg border transition-colors ${a?"border-accent-purple/30 bg-accent-purple/5":c?"border-accent-red/20 bg-accent-red/5":"border-border-muted/50 bg-bg-secondary/30"}`,children:[i.jsxs("div",{className:`flex items-center gap-1.5 px-3 py-2 ${w?"cursor-pointer":""}`,onClick:w?m:void 0,children:[i.jsx("div",{className:`w-5 h-5 rounded-full bg-accent-purple/20 flex items-center justify-center flex-shrink-0 ${a?"animate-pulse":""}`,children:i.jsx(vt,{size:12,className:"text-accent-purple"})}),i.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:h}),b&&i.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),i.jsx("span",{className:"flex-1"}),p&&i.jsx("span",{className:"text-[11px] text-text-tertiary",children:p}),a&&i.jsx(fe,{size:12,className:"text-accent-purple animate-spin"}),c&&i.jsx(un,{size:12,className:"text-accent-red"}),!a&&!c&&e.status==="completed"&&i.jsx(lt,{size:12,className:"text-accent-green"}),w&&!a&&(o?i.jsx(He,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):i.jsx(Xe,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),v&&i.jsx("div",{className:"px-3 pb-2 pt-0 ml-2.5 pl-3 border-l border-accent-purple/20",children:n.map(S=>{if(S.type==="message")return i.jsx(Hc,{entry:S,isActive:a},S.id);const E=r.get(S.toolCallId);return E?E.toolName==="SendMessage"?i.jsx(Gc,{toolCall:E},E.id):i.jsx(wn,{toolCall:E},E.id):null})})]}):i.jsxs("div",{className:"mb-0.5",children:[i.jsxs("div",{className:`flex items-center gap-1.5 py-0.5 ${w?"cursor-pointer hover:bg-bg-hover/30 rounded-md -mx-1 px-1":""}`,onClick:w?m:void 0,children:[i.jsx("div",{className:`w-5 h-5 rounded-full bg-accent-purple/20 flex items-center justify-center flex-shrink-0 ${a?"animate-pulse":""}`,children:i.jsx(vt,{size:12,className:"text-accent-purple"})}),i.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:h}),b&&i.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),y&&i.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-bg-secondary text-text-tertiary",children:t("tool.background")}),i.jsx("span",{className:"flex-1"}),p&&i.jsx("span",{className:"text-[11px] text-text-tertiary",children:p}),a&&i.jsx(fe,{size:12,className:"text-accent-purple animate-spin"}),c&&i.jsx(un,{size:12,className:"text-accent-red"}),w&&!a&&(o?i.jsx(He,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):i.jsx(Xe,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),v&&i.jsx("div",{className:"ml-2.5 pl-3 border-l border-accent-purple/25",children:n.map(S=>{if(S.type==="message")return i.jsx(Hc,{entry:S,isActive:a},S.id);const E=r.get(S.toolCallId);return E?E.toolName==="SendMessage"?i.jsx(Gc,{toolCall:E},E.id):i.jsx(wn,{toolCall:E},E.id):null})})]})}function Gc({toolCall:e}){const{t}=le(),r=me(e),n=String(r.type||"message"),a=r.recipient?String(r.recipient):void 0,c=r.summary?String(r.summary):void 0,u=e.status==="completed";let s="";switch(n){case"message":s=a?`@${a}`:"message";break;case"broadcast":s="@team";break;case"shutdown_request":s=a?`@${a} · shutdown`:"shutdown";break;case"shutdown_response":s=r.approve!==!1?t("tool.taskCompleted"):t("tool.shutdownRejected");break;case"plan_approval_response":s=a?`@${a} · ${r.approve!==!1?t("tool.approved"):t("tool.rejected")}`:t("tool.planResponse");break;default:s=a?`@${a}`:n}return i.jsxs("div",{className:"flex items-center gap-1.5 py-0.5 text-xs text-text-tertiary",children:[i.jsx("span",{className:"font-medium text-accent-purple",children:s}),c&&i.jsxs("span",{className:"truncate",children:["· ",c]}),u&&i.jsxs("span",{className:"text-text-tertiary/60",children:["· ",t("team.delivered")]}),!u&&i.jsx(fu,{status:e.status})]})}function wn({toolCall:e}){var y,w;const{t}=le(),r=cf(e),[n,a]=A.useState(()=>e.status==="failed");if(A.useEffect(()=>{e.status==="failed"&&a(!0)},[e.status]),e.subagent)return i.jsx(mf,{toolCall:e});const c=r.Icon,u=e.status==="completed"||e.status==="failed",s=!!r.render||e.result!==void 0&&r===bu,o=(y=r.getTitle)==null?void 0:y.call(r,e,t),l=nf(e),m=o||(e.kind==="execute"&&l?l:void 0)||e.name||e.toolName||t("tool.defaultName"),b=((w=r.getSummary)==null?void 0:w.call(r,e,t))||(e.kind!=="execute"?l:void 0);return i.jsxs("div",{className:"mb-0.5",children:[i.jsxs("button",{onClick:()=>s&&a(!n),className:"flex items-center gap-1.5 py-0.5 text-left w-full rounded-md transition-colors hover:bg-bg-hover/50 cursor-pointer",children:[i.jsx(c,{}),i.jsx("span",{className:"text-[13px] text-text-secondary font-medium truncate",children:m}),b&&i.jsx("span",{className:"text-xs text-text-tertiary truncate flex-1",children:b}),!b&&i.jsx("span",{className:"flex-1"}),i.jsx(fu,{status:e.status}),s&&i.jsx(He,{size:12,strokeWidth:2,className:`text-text-tertiary flex-shrink-0 transition-transform duration-200 ${n?"rotate-90":""}`})]}),s&&n&&i.jsx(gf,{renderer:r,toolCall:e,t,isFinished:u})]})}function gf({renderer:e,toolCall:t,t:r,isFinished:n}){const a=e.render?e.render(t,r):i.jsx(Ye,{result:t.result});return i.jsx("div",{className:"mt-0.5 mb-1",children:i.jsx("div",{className:n?"empty-result-container":"",children:a})})}const ff=new Set(["TaskCreate","TaskUpdate","TaskList","TaskGet","AskUserQuestion"]);function _u({entries:e}){const t=e.filter(r=>r.type==="tool_call"?!ff.has(r.toolName):r.type==="interruption"||r.type==="question");return t.length===0?null:i.jsx("div",{className:"flex flex-col gap-1 mb-2 w-full",children:t.map(r=>r.type==="tool_call"?i.jsx(wn,{toolCall:r},r.id):r.type==="interruption"?i.jsx(Ug,{interruption:r},r.id):r.type==="question"?i.jsx(Wg,{question:r},r.id):null)})}function vu(e){const t=e.match(/<teammate-message\s+teammate_id="([^"]+)"(?:\s+summary="([^"]*)")?[^>]*>\n?([\s\S]*?)\n?<\/teammate-message>/);if(t)return{from:t[1],summary:t[2],content:t[3].trim()}}function bf(e){try{const t=JSON.parse(e);if(t&&typeof t=="object"&&t.type)return t.type==="shutdown_response"?t.reason||`Shutdown ${t.approve!==!1?"accepted":"rejected"}`:t.type==="shutdown_request"?t.reason||"Shutdown requested":t.reason||t.summary||e}catch{}return e}function Su({msg:e}){var b;const[t,r]=A.useState(!1),{t:n}=le(),c=(b=$e(y=>y.members).find(y=>y.name===e.from))==null?void 0:b.color,u=Un(c),s=bf(e.content),o=s.split(`
475
- `),l=8,m=o.length>l,h=m&&!t?o.slice(0,l).join(`
476
- `):s;return i.jsxs("div",{className:"mb-4",children:[i.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[i.jsx("span",{className:"text-[13px] font-semibold",style:{color:u},children:e.from}),e.summary&&i.jsxs("span",{className:"text-[12px] text-text-tertiary",children:["· ",e.summary]})]}),i.jsxs("div",{className:"ml-2 pl-3 border-l-2",style:{borderColor:`${u}33`},children:[i.jsx("div",{className:"prose prose-sm prose-invert max-w-none text-text-secondary text-[13px] [&_p]:my-1 [&_pre]:my-2 [&_code]:text-[12px] [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0.5",children:i.jsx(er,{remarkPlugins:[tr],children:h})}),m&&i.jsx("button",{type:"button",onClick:()=>r(!t),className:"text-[11px] text-text-tertiary hover:text-text-secondary mt-1 transition-colors",children:t?n("team.showLess"):n("team.moreLines").replace("{count}",String(o.length-l))})]})]})}function yf(e){if(!e)return!0;const t=e.trimStart();return!!/^\/clear\b/.test(t)}function xu(e){const t=[];for(const r of e)if(r.type==="message"){const n=r;if(n.isCompactInternal){const a=t[t.length-1];a&&a.kind==="compact_group"?a.entries.push(n):t.push({kind:"compact_group",entries:[n]})}else if(n.role==="user"&&n.channel)t.push({kind:"channel_incoming",entry:n});else if(n.role==="user"){if(yf(n.content))continue;t.push({kind:"user",entry:n})}else t.push({kind:"assistant_message",entry:n})}else{const n=t[t.length-1];n&&n.kind==="assistant_tools"?n.entries.push(r):t.push({kind:"assistant_tools",entries:[r]})}return t}function Wc(e){var t;switch(e.kind){case"user":case"assistant_message":case"channel_incoming":return e.entry.timestamp;case"compact_group":return(t=e.entries[0])==null?void 0:t.timestamp;case"assistant_tools":return}}function _f(e,t=150){return e.scrollHeight-e.scrollTop-e.clientHeight<t}function qc(){const{t:e}=le(),r=dt(n=>n.resolved)==="dark"?xd:wd;return i.jsxs("div",{className:"empty-state",children:[i.jsx("div",{className:"empty-state-logo",children:i.jsx("img",{src:r,alt:"CodeBuddy"})}),i.jsx("h1",{className:"empty-state-slogan",children:e("chat.empty.slogan")})]})}function vf({onClickCloseBottomSheet:e}={}){const{timeline:t,isAgentRunning:r,stopReason:n,errorMessage:a,historyLoading:c}=ze(),u=A.useRef(null),s=A.useRef(null),{t:o,resolved:l}=le(),[m,h]=A.useState(null);A.useEffect(()=>{if(!m)return;const I=R=>{R.key==="Escape"&&h(null)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[m]);const b=A.useRef(!0),y=A.useRef(0),w=A.useRef(!1),v=A.useMemo(()=>xu(t),[t]),p=v.length===0,[f,d]=A.useState(!0),[g,_]=A.useState(!1),k=A.useRef(!1);A.useEffect(()=>{if(!p&&!k.current){_(!0);const I=setTimeout(()=>{d(!1),k.current=!0},600);return()=>clearTimeout(I)}},[p]);const S=A.useCallback(()=>{if(w.current)return;const I=s.current;I&&(b.current=_f(I))},[]);A.useEffect(()=>{const I=t.length;if(I>y.current){const R=t[y.current];(R==null?void 0:R.type)==="message"&&R.role==="user"&&(b.current=!0)}y.current=I},[t]),A.useEffect(()=>{if(!b.current)return;const I=s.current;I&&(w.current=!0,I.scrollTop=I.scrollHeight,requestAnimationFrame(()=>{w.current=!1}))},[t,r]);const E=t[t.length-1],x=(E==null?void 0:E.type)==="message"&&E.streaming,C=x&&!!E.thinking&&!E.content;return i.jsxs("div",{ref:s,onScroll:S,onClick:()=>e==null?void 0:e(),className:"absolute inset-0 overflow-y-auto overflow-x-hidden",children:[f&&i.jsx("div",{className:`empty-state-wrapper${g?" empty-state-fadeout":""}`,children:i.jsx(qc,{})}),!f&&c&&t.length===0&&i.jsx("div",{className:"flex items-center justify-center min-h-[60vh] h-full pb-20",children:i.jsx(Sp,{size:"large"})}),!f&&p&&!r&&!c&&i.jsx(qc,{}),!p&&i.jsx("div",{className:"px-4 sm:px-6 pt-6 pb-4 animate-fadeIn",children:i.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col",children:[i.jsx("div",{className:"text-center mb-8",children:i.jsx("span",{className:"text-[13px] text-text-tertiary",children:o("chat.disclaimer")})}),v.map((I,R)=>{var P,j;const F=Wc(I);let N=!1,B="";if(F!==void 0){const U=Tr(F);let H=null;for(let T=R-1;T>=0;T--){const D=Wc(v[T]);if(D!==void 0){H=Tr(D);break}}U!==H&&(N=!0,B=hu(F,l))}if(I.kind==="user"){const U=I.entry.content?vu(I.entry.content):void 0;return U?U.from==="system"?null:i.jsxs("div",{children:[N&&i.jsx(Et,{label:B}),i.jsx(Su,{msg:U})]},I.entry.id):i.jsxs("div",{children:[N&&i.jsx(Et,{label:B}),i.jsx("div",{className:"flex justify-end mb-6",children:i.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] px-5 py-3 rounded-2xl rounded-tr-sm bg-bg-user border border-transparent",children:[I.entry.images&&I.entry.images.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:I.entry.images.map((H,T)=>{const D="url"in H?H.url:`data:${H.mimeType};base64,${H.data}`;return i.jsx("img",{src:D,alt:"",className:"max-w-full h-auto rounded-lg cursor-pointer hover:opacity-80 transition-opacity",style:{maxHeight:360},onClick:()=>h(D)},T)})}),I.entry.files&&I.entry.files.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:I.entry.files.map((H,T)=>i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-bg-primary/50 border border-border-muted/30 max-w-[180px]",children:[i.jsx(ct,{size:14,className:"shrink-0 text-text-tertiary"}),i.jsx("span",{className:"text-[12px] text-text-primary truncate",title:H.name,children:H.name})]},T))}),I.entry.content&&i.jsx("p",{className:"whitespace-pre-wrap break-words text-text-primary text-chat",children:I.entry.content})]})})]},I.entry.id)}if(I.kind==="channel_incoming")return i.jsxs("div",{children:[N&&i.jsx(Et,{label:B}),i.jsx($m,{content:I.entry.content,channel:I.entry.channel})]},I.entry.id);if(I.kind==="assistant_message"){if(!I.entry.content&&!I.entry.thinking)return null;const U=R>0?v[R-1]:void 0,H=(U==null?void 0:U.kind)==="channel_incoming";return i.jsxs("div",{children:[N&&i.jsx(Et,{label:B}),H&&U.kind==="channel_incoming"&&i.jsx(Mm,{channel:U.entry.channel}),i.jsx("div",{className:"mb-2 w-full",children:i.jsx("div",{className:"flex-1 min-w-0",children:i.jsx(Gl,{message:I.entry})})})]},I.entry.id)}if(I.kind==="assistant_tools"){const U=((P=I.entries[0])==null?void 0:P.id)||`tools-${R}`;return i.jsx(_u,{entries:I.entries},U)}if(I.kind==="compact_group"){const U=((j=I.entries[0])==null?void 0:j.id)||`compact-${R}`;return i.jsxs("div",{children:[N&&i.jsx(Et,{label:B}),i.jsx(Fg,{entries:I.entries})]},U)}return null}),r&&t.length>0&&!x&&!C&&i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-flex items-center gap-1.5 text-text-tertiary text-xs",children:[i.jsx(fe,{size:12,className:"text-accent-brand animate-spin"}),i.jsx("span",{children:o("chat.thinking")})]})}),n&&!r&&i.jsx("div",{className:"py-2",children:i.jsx("span",{className:"text-xs text-text-tertiary",children:a?`${o("chat.error")}: ${a}`:o("chat.stopped")})})]})}),i.jsx("div",{ref:u,className:"h-6"}),m&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>h(null),children:i.jsx("img",{src:m,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:I=>I.stopPropagation()})})]})}const Sf="ENTRIES",wu="KEYS",ku="VALUES",Ee="";class Jr{constructor(t,r){const n=t._tree,a=Array.from(n.keys());this.set=t,this._type=r,this._path=a.length>0?[{node:n,keys:a}]:[]}next(){const t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:t,keys:r}=kt(this._path);if(kt(r)===Ee)return{done:!1,value:this.result()};const n=t.get(kt(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const t=kt(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>kt(t)).filter(t=>t!==Ee).join("")}value(){return kt(this._path).node.get(Ee)}result(){switch(this._type){case ku:return this.value();case wu:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const kt=e=>e[e.length-1],xf=(e,t,r)=>{const n=new Map;if(t===void 0)return n;const a=t.length+1,c=a+r,u=new Uint8Array(c*a).fill(r+1);for(let s=0;s<a;++s)u[s]=s;for(let s=1;s<c;++s)u[s*a]=s;return Eu(e,t,r,n,u,1,a,""),n},Eu=(e,t,r,n,a,c,u,s)=>{const o=c*u;e:for(const l of e.keys())if(l===Ee){const m=a[o-1];m<=r&&n.set(s,[e.get(l),m])}else{let m=c;for(let h=0;h<l.length;++h,++m){const b=l[h],y=u*m,w=y-u;let v=a[y];const p=Math.max(0,m-r-1),f=Math.min(u-1,m+r);for(let d=p;d<f;++d){const g=b!==t[d],_=a[w+d]+ +g,k=a[w+d+1]+1,S=a[y+d]+1,E=a[y+d+1]=Math.min(_,k,S);E<v&&(v=E)}if(v>r)continue e}Eu(e.get(l),t,r,n,a,m,u,s+l)}};class at{constructor(t=new Map,r=""){this._size=void 0,this._tree=t,this._prefix=r}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");const[r,n]=Ar(this._tree,t.slice(this._prefix.length));if(r===void 0){const[a,c]=Wl(n);for(const u of a.keys())if(u!==Ee&&u.startsWith(c)){const s=new Map;return s.set(u.slice(c.length),a.get(u)),new at(s,t)}}return new at(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,wf(this._tree,t)}entries(){return new Jr(this,Sf)}forEach(t){for(const[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return xf(this._tree,t,r)}get(t){const r=kn(this._tree,t);return r!==void 0?r.get(Ee):void 0}has(t){const r=kn(this._tree,t);return r!==void 0&&r.has(Ee)}keys(){return new Jr(this,wu)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,Qr(this._tree,t).set(Ee,r),this}get size(){if(this._size)return this._size;this._size=0;const t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=Qr(this._tree,t);return n.set(Ee,r(n.get(Ee))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=Qr(this._tree,t);let a=n.get(Ee);return a===void 0&&n.set(Ee,a=r()),a}values(){return new Jr(this,ku)}[Symbol.iterator](){return this.entries()}static from(t){const r=new at;for(const[n,a]of t)r.set(n,a);return r}static fromObject(t){return at.from(Object.entries(t))}}const Ar=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(const n of e.keys())if(n!==Ee&&t.startsWith(n))return r.push([e,n]),Ar(e.get(n),t.slice(n.length),r);return r.push([e,t]),Ar(void 0,"",r)},kn=(e,t)=>{if(t.length===0||e==null)return e;for(const r of e.keys())if(r!==Ee&&t.startsWith(r))return kn(e.get(r),t.slice(r.length))},Qr=(e,t)=>{const r=t.length;e:for(let n=0;e&&n<r;){for(const c of e.keys())if(c!==Ee&&t[n]===c[0]){const u=Math.min(r-n,c.length);let s=1;for(;s<u&&t[n+s]===c[s];)++s;const o=e.get(c);if(s===c.length)e=o;else{const l=new Map;l.set(c.slice(s),o),e.set(t.slice(n,n+s),l),e.delete(c),e=l}n+=s;continue e}const a=new Map;return e.set(t.slice(n),a),a}return e},wf=(e,t)=>{const[r,n]=Ar(e,t);if(r!==void 0){if(r.delete(Ee),r.size===0)Cu(n);else if(r.size===1){const[a,c]=r.entries().next().value;Tu(n,a,c)}}},Cu=e=>{if(e.length===0)return;const[t,r]=Wl(e);if(t.delete(r),t.size===0)Cu(e.slice(0,-1));else if(t.size===1){const[n,a]=t.entries().next().value;n!==Ee&&Tu(e.slice(0,-1),n,a)}},Tu=(e,t,r)=>{if(e.length===0)return;const[n,a]=Wl(e);n.set(a+t,r),n.delete(a)},Wl=e=>e[e.length-1],ql="or",Au="and",kf="and_not";class At{constructor(t){if((t==null?void 0:t.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const r=t.autoVacuum==null||t.autoVacuum===!0?rn:t.autoVacuum;this._options={...tn,...t,autoVacuum:r,searchOptions:{...Vc,...t.searchOptions||{}},autoSuggestOptions:{...Nf,...t.autoSuggestOptions||{}}},this._index=new at,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Cn,this.addFields(this._options.fields)}add(t){const{extractField:r,stringifyField:n,tokenize:a,processTerm:c,fields:u,idField:s}=this._options,o=r(t,s);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${s}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,t);for(const m of u){const h=r(t,m);if(h==null)continue;const b=a(n(h,m),m),y=this._fieldIds[m],w=new Set(b).size;this.addFieldLength(l,y,this._documentCount-1,w);for(const v of b){const p=c(v,m);if(Array.isArray(p))for(const f of p)this.addTerm(y,l,f);else p&&this.addTerm(y,l,p)}}}addAll(t){for(const r of t)this.add(r)}addAllAsync(t,r={}){const{chunkSize:n=10}=r,a={chunk:[],promise:Promise.resolve()},{chunk:c,promise:u}=t.reduce(({chunk:s,promise:o},l,m)=>(s.push(l),(m+1)%n===0?{chunk:[],promise:o.then(()=>new Promise(h=>setTimeout(h,0))).then(()=>this.addAll(s))}:{chunk:s,promise:o}),a);return u.then(()=>this.addAll(c))}remove(t){const{tokenize:r,processTerm:n,extractField:a,stringifyField:c,fields:u,idField:s}=this._options,o=a(t,s);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${s}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const m of u){const h=a(t,m);if(h==null)continue;const b=r(c(h,m),m),y=this._fieldIds[m],w=new Set(b).size;this.removeFieldLength(l,y,this._documentCount,w);for(const v of b){const p=n(v,m);if(Array.isArray(p))for(const f of p)this.removeTerm(y,l,f);else p&&this.removeTerm(y,l,p)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),this._documentCount-=1}removeAll(t){if(t)for(const r of t)this.remove(r);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new at,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){const r=this._idToShortId.get(t);if(r==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach((n,a)=>{this.removeFieldLength(r,a,this._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:t,minDirtCount:r,batchSize:n,batchWait:a}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:a},{minDirtCount:r,minDirtFactor:t})}discardAll(t){const r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of t)this.discard(n)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){const{idField:r,extractField:n}=this._options,a=n(t,r);this.discard(a),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,r){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&r,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Cn,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){const n=this._dirtCount;if(this.vacuumConditionsMet(r)){const a=t.batchSize||En.batchSize,c=t.batchWait||En.batchWait;let u=1;for(const[s,o]of this._index){for(const[l,m]of o)for(const[h]of m)this._documentIds.has(h)||(m.size<=1?o.delete(l):m.delete(h));this._index.get(s).size===0&&this._index.delete(s),u%a===0&&await new Promise(l=>setTimeout(l,c)),u+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||rn.minDirtCount,n=n||rn.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){const r=this._idToShortId.get(t);if(r!=null)return this._storedFields.get(r)}search(t,r={}){const{searchOptions:n}=this._options,a={...n,...r},c=this.executeQuery(t,r),u=[];for(const[s,{score:o,terms:l,match:m}]of c){const h=l.length||1,b={id:this._documentIds.get(s),score:o*h,terms:Object.keys(m),queryTerms:l,match:m};Object.assign(b,this._storedFields.get(s)),(a.filter==null||a.filter(b))&&u.push(b)}return t===At.wildcard&&a.boostDocument==null||u.sort(Yc),u}autoSuggest(t,r={}){r={...this._options.autoSuggestOptions,...r};const n=new Map;for(const{score:c,terms:u}of this.search(t,r)){const s=u.join(" "),o=n.get(s);o!=null?(o.score+=c,o.count+=1):n.set(s,{score:c,terms:u,count:1})}const a=[];for(const[c,{score:u,terms:s,count:o}]of n)a.push({suggestion:c,terms:s,score:u/o});return a.sort(Yc),a}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),r)}static async loadJSONAsync(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),r)}static getDefault(t){if(tn.hasOwnProperty(t))return en(tn,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){const{index:n,documentIds:a,fieldLength:c,storedFields:u,serializationVersion:s}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=fr(a),o._fieldLength=fr(c),o._storedFields=fr(u);for(const[l,m]of o._documentIds)o._idToShortId.set(m,l);for(const[l,m]of n){const h=new Map;for(const b of Object.keys(m)){let y=m[b];s===1&&(y=y.ds),h.set(parseInt(b,10),fr(y))}o._index.set(l,h)}return o}static async loadJSAsync(t,r){const{index:n,documentIds:a,fieldLength:c,storedFields:u,serializationVersion:s}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await br(a),o._fieldLength=await br(c),o._storedFields=await br(u);for(const[m,h]of o._documentIds)o._idToShortId.set(h,m);let l=0;for(const[m,h]of n){const b=new Map;for(const y of Object.keys(h)){let w=h[y];s===1&&(w=w.ds),b.set(parseInt(y,10),await br(w))}++l%1e3===0&&await Nu(0),o._index.set(m,b)}return o}static instantiateMiniSearch(t,r){const{documentCount:n,nextId:a,fieldIds:c,averageFieldLength:u,dirtCount:s,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new At(r);return l._documentCount=n,l._nextId=a,l._idToShortId=new Map,l._fieldIds=c,l._avgFieldLength=u,l._dirtCount=s||0,l._index=new at,l}executeQuery(t,r={}){if(t===At.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){const b={...r,...t,queries:void 0},y=t.queries.map(w=>this.executeQuery(w,b));return this.combineResults(y,b.combineWith)}const{tokenize:n,processTerm:a,searchOptions:c}=this._options,u={tokenize:n,processTerm:a,...c,...r},{tokenize:s,processTerm:o}=u,h=s(t).flatMap(b=>o(b)).filter(b=>!!b).map(Af(u)).map(b=>this.executeQuerySpec(b,u));return this.combineResults(h,u.combineWith)}executeQuerySpec(t,r){const n={...this._options.searchOptions,...r},a=(n.fields||this._options.fields).reduce((v,p)=>({...v,[p]:en(n.boost,p)||1}),{}),{boostDocument:c,weights:u,maxFuzzy:s,bm25:o}=n,{fuzzy:l,prefix:m}={...Vc.weights,...u},h=this._index.get(t.term),b=this.termResults(t.term,t.term,1,t.termBoost,h,a,c,o);let y,w;if(t.prefix&&(y=this._index.atPrefix(t.term)),t.fuzzy){const v=t.fuzzy===!0?.2:t.fuzzy,p=v<1?Math.min(s,Math.round(t.term.length*v)):v;p&&(w=this._index.fuzzyGet(t.term,p))}if(y)for(const[v,p]of y){const f=v.length-t.term.length;if(!f)continue;w==null||w.delete(v);const d=m*v.length/(v.length+.3*f);this.termResults(t.term,v,d,t.termBoost,p,a,c,o,b)}if(w)for(const v of w.keys()){const[p,f]=w.get(v);if(!f)continue;const d=l*v.length/(v.length+f);this.termResults(t.term,v,d,t.termBoost,p,a,c,o,b)}return b}executeWildcardQuery(t){const r=new Map,n={...this._options.searchOptions,...t};for(const[a,c]of this._documentIds){const u=n.boostDocument?n.boostDocument(c,"",this._storedFields.get(a)):1;r.set(a,{score:u,terms:[],match:{}})}return r}combineResults(t,r=ql){if(t.length===0)return new Map;const n=r.toLowerCase(),a=Ef[n];if(!a)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(a)||new Map}toJSON(){const t=[];for(const[r,n]of this._index){const a={};for(const[c,u]of n)a[c]=Object.fromEntries(u);t.push([r,a])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,r,n,a,c,u,s,o,l=new Map){if(c==null)return l;for(const m of Object.keys(u)){const h=u[m],b=this._fieldIds[m],y=c.get(b);if(y==null)continue;let w=y.size;const v=this._avgFieldLength[b];for(const p of y.keys()){if(!this._documentIds.has(p)){this.removeTerm(b,p,r),w-=1;continue}const f=s?s(this._documentIds.get(p),r,this._storedFields.get(p)):1;if(!f)continue;const d=y.get(p),g=this._fieldLength.get(p)[b],_=Tf(d,w,this._documentCount,g,v,o),k=n*a*h*f*_,S=l.get(p);if(S){S.score+=k,If(S.terms,t);const E=en(S.match,r);E?E.push(m):S.match[r]=[m]}else l.set(p,{score:k,terms:[t],match:{[r]:[m]}})}}return l}addTerm(t,r,n){const a=this._index.fetch(n,Xc);let c=a.get(t);if(c==null)c=new Map,c.set(r,1),a.set(t,c);else{const u=c.get(r);c.set(r,(u||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}const a=this._index.fetch(n,Xc),c=a.get(t);c==null||c.get(r)==null?this.warnDocumentChanged(r,t,n):c.get(r)<=1?c.size<=1?a.delete(t):c.delete(r):c.set(r,c.get(r)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(t,r,n){for(const a of Object.keys(this._fieldIds))if(this._fieldIds[a]===r){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${a}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){const r=this._nextId;return this._idToShortId.set(t,r),this._documentIds.set(r,t),this._documentCount+=1,this._nextId+=1,r}addFields(t){for(let r=0;r<t.length;r++)this._fieldIds[t[r]]=r}addFieldLength(t,r,n,a){let c=this._fieldLength.get(t);c==null&&this._fieldLength.set(t,c=[]),c[r]=a;const s=(this._avgFieldLength[r]||0)*n+a;this._avgFieldLength[r]=s/(n+1)}removeFieldLength(t,r,n,a){if(n===1){this._avgFieldLength[r]=0;return}const c=this._avgFieldLength[r]*n-a;this._avgFieldLength[r]=c/(n-1)}saveStoredFields(t,r){const{storeFields:n,extractField:a}=this._options;if(n==null||n.length===0)return;let c=this._storedFields.get(t);c==null&&this._storedFields.set(t,c={});for(const u of n){const s=a(r,u);s!==void 0&&(c[u]=s)}}}At.wildcard=Symbol("*");const en=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Ef={[ql]:(e,t)=>{for(const r of t.keys()){const n=e.get(r);if(n==null)e.set(r,t.get(r));else{const{score:a,terms:c,match:u}=t.get(r);n.score=n.score+a,n.match=Object.assign(n.match,u),Kc(n.terms,c)}}return e},[Au]:(e,t)=>{const r=new Map;for(const n of t.keys()){const a=e.get(n);if(a==null)continue;const{score:c,terms:u,match:s}=t.get(n);Kc(a.terms,u),r.set(n,{score:a.score+c,terms:a.terms,match:Object.assign(a.match,s)})}return r},[kf]:(e,t)=>{for(const r of t.keys())e.delete(r);return e}},Cf={k:1.2,b:.7,d:.5},Tf=(e,t,r,n,a,c)=>{const{k:u,b:s,d:o}=c;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(u+1)/(e+u*(1-s+s*n/a)))},Af=e=>(t,r,n)=>{const a=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,c=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0,u=typeof e.boostTerm=="function"?e.boostTerm(t,r,n):1;return{term:t,fuzzy:a,prefix:c,termBoost:u}},tn={idField:"id",extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(Rf),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])=="function"&&console[e](t)},autoVacuum:!0},Vc={combineWith:ql,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Cf},Nf={combineWith:Au,prefix:(e,t,r)=>t===r.length-1},En={batchSize:1e3,batchWait:10},Cn={minDirtFactor:.1,minDirtCount:20},rn={...En,...Cn},If=(e,t)=>{e.includes(t)||e.push(t)},Kc=(e,t)=>{for(const r of t)e.includes(r)||e.push(r)},Yc=({score:e},{score:t})=>t-e,Xc=()=>new Map,fr=e=>{const t=new Map;for(const r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},br=async e=>{const t=new Map;let r=0;for(const n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3===0&&await Nu(0);return t},Nu=e=>new Promise(t=>setTimeout(t,e)),Rf=/[\n\r\p{Z}\p{P}]+/u;function Lf(e){const t=/[\u4e00-\u9fff]|[a-zA-Z0-9]+/g;return(e.match(t)||[]).map(r=>r.toLowerCase())}const Of=Fe((e,t)=>({sidebar:null,sidebarLoading:!1,sidebarLang:null,currentPath:null,currentContent:null,contentLoading:!1,contentError:null,searchQuery:"",searchResults:[],searchIndex:null,searchDocuments:[],searchLang:null,loadSidebar:async r=>{if(!(t().sidebarLang===r&&t().sidebar)){e({sidebarLoading:!0});try{const n=await fetch(`/docs/sidebar-${r}.json`);if(!n.ok)throw new Error(`HTTP ${n.status}`);const a=await n.json();e({sidebar:a,sidebarLoading:!1,sidebarLang:r})}catch{e({sidebar:null,sidebarLoading:!1,sidebarLang:null})}}},loadDocument:async(r,n)=>{e({contentLoading:!0,contentError:null,currentPath:r});try{const c=await fetch(`/docs/${n==="zh"?"cn":"en"}${r}.md`);if(!c.ok)throw new Error(`HTTP ${c.status}`);const u=await c.text();t().currentPath===r&&e({currentContent:u,contentLoading:!1})}catch{t().currentPath===r&&e({currentContent:null,contentLoading:!1,contentError:r})}},initSearchIndex:async r=>{if(!(t().searchLang===r&&t().searchIndex))try{const n=await fetch(`/docs/search-index-${r}.json`);if(!n.ok)return;const a=await n.json(),c=new At({fields:["title","body"],storeFields:["title","body"],tokenize:Lf,searchOptions:{prefix:!0,fuzzy:.2,boost:{title:2}}});c.addAll(a),e({searchIndex:c,searchDocuments:[],searchLang:r})}catch{}},search:r=>{const{searchIndex:n}=t();if(e({searchQuery:r}),!r.trim()||!n){e({searchResults:[]});return}const c=n.search(r,{prefix:!0,fuzzy:.2}).slice(0,20).map(u=>{const s=u,o=s.title||u.id,l=s.body||"",m=l.toLowerCase(),h=r.toLowerCase(),b=m.indexOf(h);let y;if(b>=0){const w=Math.max(0,b-40),v=Math.min(l.length,b+r.length+80);y=(w>0?"...":"")+l.slice(w,v)+(v<l.length?"...":"")}else y=l.slice(0,120)+(l.length>120?"...":"");return{id:u.id,title:o,score:u.score,excerpt:y}});e({searchResults:c})},setCurrentPath:r=>e({currentPath:r}),clearSearch:()=>e({searchQuery:"",searchResults:[]})})),Qt=Fe(e=>({info:null,loading:!1,fetch:async()=>{e({loading:!0});try{const t=await ye("/api/v1/info",{headers:ge()});if(t.ok){const r=await t.json(),n=r.data??r;e({info:n,loading:!1})}else e({loading:!1})}catch{e({loading:!1})}}})),Df="chat",Zc=new Set(["chat","tasks","plugins","terminal","instances","remote-control","settings","docs","editor","changes"]);function Iu(){let t=window.location.hash.slice(1);t.startsWith("/")&&(t=t.slice(1));const r=t.split("?")[0]||"";if(Zc.has(r))return r;const n=r.split("/")[0];return Zc.has(n)?n:Df}function Jc(e){const t=new URLSearchParams(window.location.search),r=window.location.hash.slice(1),n=r.indexOf("?");n!==-1&&new URLSearchParams(r.slice(n+1)).forEach((s,o)=>{t.has(o)||t.set(o,s)});const a=t.toString(),c=a?`#/${e}?${a}`:`#/${e}`;window.location.hash=c}function $f(e){const t=()=>{const r=Iu();e(r)};return window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t)}}function Nr(){const t=window.location.hash.slice(1).replace(/^\//,"").split("?")[0],r=t.indexOf("/");return r>0?t.slice(r+1):void 0}function Ut(e,t){const n=new URLSearchParams(window.location.search).toString(),a=n?`#/${e}/${t}?${n}`:`#/${e}/${t}`;window.location.hash=a}const Mf=Hl;function jf(e){const t=e.split(`
477
- `),r=[];let n=!1;for(const a of t){if(a.startsWith("```")){n=!n;continue}if(n)continue;const c=a.match(/^##\s+(.+)$/),u=a.match(/^###\s+(.+)$/),s=u||c;if(!s)continue;const o=s[1].trim(),l=o.toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");r.push({id:l,text:o,level:u?3:2})}return r}function Ff({className:e,children:t,...r}){const n=dt(u=>u.resolved),a=(e||"").match(/language-(\w+)/),c=String(t).replace(/\n$/,"");return a?i.jsx("div",{className:"relative group my-3",children:i.jsx(Mf,{style:n==="dark"?uu:pu,language:a[1],PreTag:"div",customStyle:{margin:0,borderRadius:"8px",fontSize:"13px",lineHeight:"1.6"},children:c})}):i.jsx("code",{className:"bg-bg-tertiary text-text-primary px-1.5 py-0.5 rounded text-[13px]",...r,children:t})}function Pf({content:e,onNavigate:t}){const{t:r}=le(),n=A.useMemo(()=>jf(e),[e]),[a,c]=A.useState(""),u=A.useRef(null);A.useEffect(()=>{var o;(o=u.current)==null||o.scrollTo(0,0)},[e]),A.useEffect(()=>{if(n.length===0)return;const o=new IntersectionObserver(l=>{for(const m of l)m.isIntersecting&&c(m.target.id)},{rootMargin:"-80px 0px -80% 0px"});for(const l of n){const m=document.getElementById(l.id);m&&o.observe(m)}return()=>o.disconnect()},[n]);const s=A.useCallback(o=>{const l=o.currentTarget.getAttribute("href");l&&l.startsWith("/cli/")&&(o.preventDefault(),t(l))},[t]);return i.jsxs("div",{className:"flex gap-6 h-full",children:[i.jsx("div",{ref:u,className:"flex-1 min-w-0 overflow-y-auto px-6 py-6",children:i.jsx("article",{className:"max-w-3xl mx-auto docs-markdown",children:i.jsx(er,{remarkPlugins:[tr],components:{code:Ff,h2:({children:o,...l})=>{const h=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h2",{id:h,className:"text-xl font-semibold mt-8 mb-3 text-text-primary scroll-mt-20",...l,children:o})},h3:({children:o,...l})=>{const h=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h3",{id:h,className:"text-lg font-medium mt-6 mb-2 text-text-primary scroll-mt-20",...l,children:o})},h1:({children:o,...l})=>i.jsx("h1",{className:"text-2xl font-bold mb-4 text-text-primary",...l,children:o}),p:({children:o,...l})=>i.jsx("p",{className:"text-sm leading-7 text-text-secondary mb-4",...l,children:o}),a:({children:o,href:l,...m})=>i.jsx("a",{href:l,onClick:l!=null&&l.startsWith("/cli/")?s:void 0,className:"text-accent-brand hover:underline",target:l!=null&&l.startsWith("http")?"_blank":void 0,rel:l!=null&&l.startsWith("http")?"noopener noreferrer":void 0,...m,children:o}),ul:({children:o,...l})=>i.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-1 text-sm text-text-secondary",...l,children:o}),ol:({children:o,...l})=>i.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-1 text-sm text-text-secondary",...l,children:o}),blockquote:({children:o,...l})=>i.jsx("blockquote",{className:"border-l-4 border-border-primary pl-4 my-4 text-sm text-text-tertiary italic",...l,children:o}),table:({children:o,...l})=>i.jsx("div",{className:"overflow-x-auto my-4",children:i.jsx("table",{className:"min-w-full text-sm border-collapse",...l,children:o})}),th:({children:o,...l})=>i.jsx("th",{className:"border border-border-primary px-3 py-2 bg-bg-secondary text-left font-medium text-text-primary",...l,children:o}),td:({children:o,...l})=>i.jsx("td",{className:"border border-border-primary px-3 py-2 text-text-secondary",...l,children:o}),hr:()=>i.jsx("hr",{className:"my-6 border-border-primary"}),img:({src:o,alt:l,...m})=>i.jsx("img",{src:o,alt:l,className:"max-w-full rounded-lg my-4",loading:"lazy",...m})},children:e})})}),n.length>0&&i.jsx("div",{className:"hidden xl:block w-56 flex-shrink-0 py-6 pr-4",children:i.jsxs("div",{className:"sticky top-6",children:[i.jsx("h4",{className:"text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-3",children:r("docs.toc")}),i.jsx("nav",{className:"space-y-1",children:n.map(o=>i.jsx("a",{href:`#${o.id}`,onClick:l=>{var m;l.preventDefault(),(m=document.getElementById(o.id))==null||m.scrollIntoView({behavior:"smooth"})},className:`block text-xs py-0.5 transition-colors truncate
478
- ${o.level===3?"pl-3":""}
479
- ${a===o.id?"text-accent-brand font-medium":"text-text-tertiary hover:text-text-secondary"}`,children:o.text},o.id))})]})})]})}function Bf({query:e,results:t,onSelect:r}){const{t:n}=le();return e.trim()?t.length===0?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx(_t,{size:40,className:"mx-auto mb-4 text-text-tertiary opacity-30"}),i.jsx("div",{className:"text-text-secondary text-sm mb-1",children:n("docs.search.noResults")}),i.jsxs("div",{className:"text-text-tertiary text-xs",children:['"',e,'"']})]})}):i.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[i.jsx("p",{className:"text-xs font-medium text-text-tertiary uppercase tracking-wider mb-4",children:n("docs.search.resultsCount").replace("{count}",String(t.length))}),i.jsx("div",{className:"space-y-2 max-w-3xl",children:t.map(a=>i.jsxs("button",{onClick:()=>r(a.id),className:"w-full text-left p-4 rounded-xl border border-border-default hover:border-accent-brand/40 hover:bg-bg-secondary/60 transition-all",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[i.jsx(ct,{size:14,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:a.title})]}),i.jsx("p",{className:"text-xs text-text-tertiary line-clamp-2 pl-[22px] leading-relaxed",children:a.excerpt})]},a.id))})]}):i.jsx(i.Fragment,{})}function Tn({item:e,currentPath:t,onSelect:r,depth:n}){const[a,c]=A.useState(!e.collapsed),u=e.items&&e.items.length>0,s=e.link===t,o=u&&!e.link,l=A.useCallback(()=>{e.link&&r(e.link),u&&c(m=>!m)},[e.link,u,r]);return o&&n===0?i.jsxs("div",{className:"mt-4 first:mt-0",children:[i.jsxs("button",{onClick:l,className:["w-full text-left flex items-center gap-1.5 px-4 py-2 text-xs","font-semibold text-text-tertiary uppercase tracking-wider","hover:text-text-secondary transition-colors"].join(" "),children:[i.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:a?i.jsx(Xe,{size:12}):i.jsx(He,{size:12})}),i.jsx("span",{className:"truncate",children:e.text})]}),a&&i.jsx("div",{children:e.items.map((m,h)=>i.jsx(Tn,{item:m,currentPath:t,onSelect:r,depth:n+1},m.link||`${m.text}-${h}`))})]}):i.jsxs("div",{children:[i.jsxs("button",{onClick:l,className:`w-full text-left flex items-center gap-1.5 py-1.5 rounded-lg text-[13px] transition-colors
480
- ${s?"bg-accent-brand/10 text-accent-brand font-medium":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"}`,style:{paddingLeft:`${n*12+16}px`,paddingRight:"16px"},children:[u&&i.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:a?i.jsx(Xe,{size:12}):i.jsx(He,{size:12})}),!u&&i.jsx("span",{className:"w-4 flex-shrink-0"}),i.jsx("span",{className:"truncate",children:e.text})]}),u&&a&&i.jsx("div",{children:e.items.map((m,h)=>i.jsx(Tn,{item:m,currentPath:t,onSelect:r,depth:n+1},m.link||`${m.text}-${h}`))})]})}function Uf({items:e,currentPath:t,onSelect:r}){return i.jsx("nav",{className:"py-2 overflow-y-auto",children:e.map((n,a)=>i.jsx(Tn,{item:n,currentPath:t,onSelect:r,depth:0},n.link||`${n.text}-${a}`))})}function Ru(e){for(const t of e){if(t.link)return t.link;if(t.items){const r=Ru(t.items);if(r)return r}}return null}function Qc(){const{t:e,resolved:t}=le(),{sidebar:r,sidebarLoading:n,currentPath:a,currentContent:c,contentLoading:u,contentError:s,searchQuery:o,searchResults:l,loadSidebar:m,loadDocument:h,initSearchIndex:b,search:y,setCurrentPath:w,clearSearch:v}=Of(),[p,f]=A.useState(!1),[d,g]=A.useState(""),_=A.useRef(),k=Qt(R=>{var F;return(F=R.info)==null?void 0:F.version}),S=k&&k!=="dev"?`CodeBuddy Code CLI v${k}`:"CodeBuddy Code CLI",E=t==="zh"?"zh":"en";A.useEffect(()=>{m(E),b(E)},[E,m,b]),A.useEffect(()=>{a&&h(a,E)},[E]),A.useEffect(()=>{if(!r)return;const R=Nr();if(R){const F=`/${R}`;w(F),h(F,E)}else if(!a){const F=Ru(r);F&&(w(F),h(F,E),window.location.hash=`/docs${F}`)}},[r]),A.useEffect(()=>{const R=()=>{if(!window.location.hash.startsWith("#/docs"))return;const N=Nr();if(N){const B=`/${N}`;B!==a&&(w(B),h(B,E),v(),g(""))}};return window.addEventListener("hashchange",R),()=>window.removeEventListener("hashchange",R)},[a,E,h,w,v]),A.useEffect(()=>(_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{y(d)},300),()=>{_.current&&clearTimeout(_.current)}),[d,y]);const x=A.useCallback(R=>{v(),g(""),w(R),h(R,E),window.location.hash=`/docs${R}`,f(!1)},[E,h,w,v]),C=A.useCallback(R=>{x(R)},[x]),I=d.trim().length>0;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("button",{className:"md:hidden w-8 h-8 flex items-center justify-center rounded-lg text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",onClick:()=>f(R=>!R),children:i.jsx(Kp,{size:16})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("docs.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-0.5",children:S})]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-48 sm:w-64",children:[i.jsx(_t,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary"}),i.jsx("input",{type:"search",autoComplete:"off","data-1p-ignore":!0,"data-lpignore":"true",value:d,onChange:R=>g(R.target.value),placeholder:e("docs.search.placeholder"),className:["w-full pl-8 pr-8 py-1.5 text-sm rounded-lg border","border-border-default bg-bg-secondary text-text-primary","placeholder-text-tertiary focus:outline-none","focus:border-accent-brand transition-colors"].join(" ")}),d&&i.jsx("button",{onClick:()=>{g(""),v()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-tertiary hover:text-text-primary",children:i.jsx(Me,{size:14})})]}),i.jsxs("a",{href:"/api/docs",target:"_blank",rel:"noopener noreferrer",className:["hidden sm:flex items-center gap-1.5 px-3 py-2 rounded-lg","border border-border-default text-text-secondary text-sm","hover:text-text-primary hover:border-accent-brand/50","hover:bg-bg-secondary transition-all"].join(" "),children:[i.jsx(zt,{size:14}),i.jsx("span",{children:e("docs.apiReference")})]}),i.jsx("button",{onClick:()=>{const F=`/docs${a||""}?standalone`;window.open(`${window.location.pathname}#${F}`,"_blank")},className:["hidden sm:flex items-center justify-center","w-8 h-8 rounded-lg border border-border-default","text-text-secondary hover:text-text-primary","hover:border-accent-brand/50","hover:bg-bg-secondary transition-all"].join(" "),title:e("docs.openStandalone"),children:i.jsx(Vp,{size:14})})]})]})}),i.jsxs("div",{className:"flex-1 flex overflow-hidden relative",children:[p&&i.jsx("div",{className:"md:hidden fixed inset-0 bg-black/30 z-20",onClick:()=>f(!1)}),i.jsx("div",{className:`
481
- w-64 flex-shrink-0 border-r border-border-default bg-bg-primary overflow-y-auto
482
- md:relative md:translate-x-0
483
- ${p?"fixed inset-y-0 left-0 z-30 translate-x-0":"hidden md:block"}
484
- `,children:n?i.jsx("div",{className:"flex flex-col items-center justify-center h-32",children:i.jsx(et,{size:"small",text:e("docs.loading")})}):r?i.jsx(Uf,{items:r,currentPath:a,onSelect:x}):i.jsx("div",{className:"p-4 text-sm text-text-tertiary",children:e("docs.loadError")})}),i.jsx("div",{className:"flex-1 min-w-0 overflow-hidden flex flex-col",children:I?i.jsx(Bf,{query:o,results:l,onSelect:C}):u?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsx(et,{size:"small",text:e("docs.loading")})}):s?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"📄"}),i.jsx("div",{className:"text-text-secondary text-sm mb-2",children:e("docs.notFound")}),i.jsx("div",{className:"text-text-tertiary text-xs",children:s})]})}):c?i.jsx(Pf,{content:c,onNavigate:x}):i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-text-tertiary",children:[i.jsx("div",{className:"text-[48px] mb-4 opacity-30",children:"📖"}),i.jsx("div",{className:"text-sm",children:e("docs.title")})]})})]})]})}async function ed(e,t){var a;const r=await fetch("/api/v1/fs/list",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({path:e,depth:t})});if(!r.ok)throw new Error(`List directory failed: HTTP ${r.status}`);const n=await r.json();return((a=n.data)==null?void 0:a.entries)??n.entries??[]}async function zf(e){const t=await fetch(`/api/v1/files/download?path=${encodeURIComponent(e)}`,{headers:ge()});if(!t.ok)throw new Error(`Read file failed: HTTP ${t.status}`);return t.text()}async function td(e,t){const r=await fetch(`/api/v1/files/upload?path=${encodeURIComponent(e)}`,{method:"POST",headers:ge(),body:t});if(!r.ok)throw new Error(`Write file failed: HTTP ${r.status}`)}async function Hf(e){const t=await fetch("/api/v1/fs/mkdir",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Create directory failed: HTTP ${t.status}`)}async function Gf(e){const t=await fetch("/api/v1/fs/remove",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Remove failed: HTTP ${t.status}`)}async function rd(e,t){const r=await fetch("/api/v1/fs/move",{method:"POST",headers:{...ge(),"Content-Type":"application/json"},body:JSON.stringify({source:e,destination:t})});if(!r.ok)throw new Error(`Move failed: HTTP ${r.status}`)}const Wf={".ts":"typescript",".tsx":"typescript",".mts":"typescript",".cts":"typescript",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".json":"json",".jsonc":"json",".md":"markdown",".mdx":"markdown",".css":"css",".scss":"scss",".less":"less",".html":"html",".htm":"html",".xml":"xml",".svg":"xml",".yaml":"yaml",".yml":"yaml",".py":"python",".pyw":"python",".go":"go",".rs":"rust",".java":"java",".c":"c",".h":"c",".cpp":"cpp",".cc":"cpp",".cxx":"cpp",".hpp":"cpp",".cs":"csharp",".rb":"ruby",".php":"php",".swift":"swift",".kt":"kotlin",".kts":"kotlin",".sh":"shell",".bash":"shell",".zsh":"shell",".sql":"sql",".graphql":"graphql",".gql":"graphql",".vue":"html",".lua":"lua",".r":"r",".R":"r",".dockerfile":"dockerfile",".toml":"ini",".ini":"ini",".cfg":"ini",".env":"ini",".gitignore":"ini"};function qf(e){const t=e.substring(e.lastIndexOf("/")+1);if(t==="Dockerfile"||t.startsWith("Dockerfile."))return"dockerfile";if(t==="Makefile"||t==="GNUmakefile")return"makefile";const r=e.substring(e.lastIndexOf("."));return Wf[r]||"plaintext"}const Vf=new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".ico",".tiff",".tif",".mp3",".mp4",".wav",".avi",".mov",".mkv",".flac",".ogg",".zip",".gz",".tar",".bz2",".7z",".rar",".xz",".exe",".dll",".so",".dylib",".bin",".o",".a",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".woff",".woff2",".ttf",".otf",".eot",".sqlite",".db"]);function Kf(e){const t=e.substring(e.lastIndexOf(".")).toLowerCase();return Vf.has(t)}const Yf=2*1024*1024,Lu="codebuddy_editor_split_ratio",Ou="codebuddy_editor_expanded";function Xf(){try{const e=sessionStorage.getItem(Lu);if(e)return parseFloat(e)}catch{}return .22}function Zf(e){try{sessionStorage.setItem(Lu,String(e))}catch{}}function nd(){try{const e=sessionStorage.getItem(Ou);if(e)return JSON.parse(e)}catch{}return[]}function id(e){try{sessionStorage.setItem(Ou,JSON.stringify(e))}catch{}}function Jf(e){return[...e].sort((t,r)=>t.type==="directory"&&r.type!=="directory"?-1:t.type!=="directory"&&r.type==="directory"?1:t.name.localeCompare(r.name,void 0,{numeric:!0,sensitivity:"base"}))}function sd(e){return Jf(e).map(t=>({name:t.name,path:t.path,type:t.type,children:(t.type==="directory",void 0)}))}function Du(e,t,r){return e.path===t?{...e,children:r,isLoading:!1}:e.children?{...e,children:e.children.map(n=>Du(n,t,r))}:e}function Vl(e,t){const r=[];if(e.children)for(const n of e.children)r.push(n.path),n.type==="directory"&&t.has(n.path)&&n.children&&r.push(...Vl(n,t));return r}function An(e,t,r){return e.path===t?{...e,isLoading:r}:e.children?{...e,children:e.children.map(n=>An(n,t,r))}:e}const Ir=Fe((e,t)=>({rootPath:null,tree:null,treeLoading:!1,expandedPaths:new Set(nd()),selectedPath:null,selectedPaths:new Set,renamingPath:null,renamingIsNew:!1,tabs:[],activeTabId:null,splitRatio:Xf(),setRootPath:async r=>{e({rootPath:r,treeLoading:!0,tree:null});try{const n=await ed(r),a=sd(n),c={name:r.split("/").pop()||r,path:r,type:"directory",children:a};e({tree:c,treeLoading:!1,expandedPaths:new Set([r,...nd()])})}catch{e({treeLoading:!1})}},loadDirectory:async r=>{const{tree:n}=t();if(n){e({tree:An(n,r,!0)});try{const a=await ed(r),c=sd(a),u=Du(t().tree,r,c);e({tree:u})}catch{const a=t().tree;a&&e({tree:An(a,r,!1)})}}},toggleExpand:r=>{const{expandedPaths:n}=t(),a=new Set(n);if(a.has(r))a.delete(r);else{a.add(r);const{tree:c}=t();if(c){const u=o=>{if(o.path===r)return o;if(o.children)for(const l of o.children){const m=u(l);if(m)return m}return null},s=u(c);s&&s.type==="directory"&&!s.children&&t().loadDirectory(r)}}id([...a]),e({expandedPaths:a})},selectPath:(r,n)=>{const{selectedPaths:a,selectedPath:c,tree:u,expandedPaths:s}=t();if(n!=null&&n.ctrl){const o=new Set(a);o.has(r)?(o.delete(r),e({selectedPaths:o,selectedPath:o.size>0?[...o][o.size-1]:null})):(o.add(r),e({selectedPaths:o,selectedPath:r}))}else if(n!=null&&n.shift&&c&&u){const o=Vl(u,s),l=o.indexOf(c),m=o.indexOf(r);if(l>=0&&m>=0){const h=Math.min(l,m),b=Math.max(l,m),y=new Set(o.slice(h,b+1));e({selectedPaths:y,selectedPath:r})}}else e({selectedPath:r,selectedPaths:new Set([r])})},refreshTree:async()=>{const{rootPath:r}=t();r&&await t().setRootPath(r)},collapseAll:()=>{const{rootPath:r}=t(),n=new Set;r&&n.add(r),id([...n]),e({expandedPaths:n})},createNewFile:()=>{const{selectedPath:r,rootPath:n,tree:a,expandedPaths:c}=t();let u=n;if(r&&a){const o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},l=o(a);l&&(u=l.type==="directory"?l.path:l.path.substring(0,l.path.lastIndexOf("/")))}if(!u)return;c.has(u)||t().toggleExpand(u);const s=u+"/__new_file__";t().startCreateFile(s)},createNewFolder:()=>{const{selectedPath:r,rootPath:n,tree:a,expandedPaths:c}=t();let u=n;if(r&&a){const o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},l=o(a);l&&(u=l.type==="directory"?l.path:l.path.substring(0,l.path.lastIndexOf("/")))}if(!u)return;c.has(u)||t().toggleExpand(u);const s=u+"/__new_folder__";t().startCreateFolder(s)},startRename:r=>{e({renamingPath:r,renamingIsNew:!1,selectedPath:r})},startCreateFile:r=>{const n=r.substring(0,r.lastIndexOf("/")),{tree:a}=t();if(!a)return;const c={name:"",path:r,type:"file"},u=s=>s.path===n?{...s,children:[c,...s.children||[]]}:s.children?{...s,children:s.children.map(o=>u(o))}:s;e({tree:u(a),renamingPath:r,renamingIsNew:!0,selectedPath:r})},startCreateFolder:r=>{const n=r.substring(0,r.lastIndexOf("/")),{tree:a}=t();if(!a)return;const c={name:"",path:r,type:"directory"},u=s=>s.path===n?{...s,children:[c,...s.children||[]]}:s.children?{...s,children:s.children.map(o=>u(o))}:s;e({tree:u(a),renamingPath:r,renamingIsNew:!0,selectedPath:r})},confirmRename:async(r,n)=>{const{renamingIsNew:a}=t();if(!n.trim()){if(a){const s=r.substring(0,r.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(s)}else e({renamingPath:null,renamingIsNew:!1});return}const c=r.substring(0,r.lastIndexOf("/")),u=c+"/"+n.trim();if(a){try{const{tree:s}=t(),o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},l=s?o(s):null;(l==null?void 0:l.type)==="directory"?await Hf(u):await td(u,""),e({renamingPath:null,renamingIsNew:!1,selectedPath:u}),await t().loadDirectory(c),(l==null?void 0:l.type)!=="directory"&&await t().openFile(u,n.trim())}catch{e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(c)}return}if(u===r){e({renamingPath:null,renamingIsNew:!1});return}try{await rd(r,u),e(s=>({renamingPath:null,renamingIsNew:!1,selectedPath:u,tabs:s.tabs.map(o=>o.path===r?{...o,id:u,path:u,name:n.trim()}:o),activeTabId:s.activeTabId===r?u:s.activeTabId})),await t().loadDirectory(c)}catch{e({renamingPath:null,renamingIsNew:!1})}},cancelRename:()=>{const{renamingIsNew:r,renamingPath:n}=t();if(r&&n){const a=n.substring(0,n.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),t().loadDirectory(a)}else e({renamingPath:null,renamingIsNew:!1})},openFile:async(r,n)=>{const{tabs:a}=t(),c=a.find(o=>o.path===r);if(c){e({activeTabId:c.id,selectedPath:r});return}if(Kf(r))return;const u=n||r.substring(r.lastIndexOf("/")+1),s=qf(r);try{const o=await zf(r);if(o.length>Yf)return;const l={id:r,path:r,name:u,content:o,originalContent:o,language:s,isDirty:!1};e(m=>({tabs:[...m.tabs,l],activeTabId:l.id,selectedPath:r}))}catch{}},closeTab:r=>{e(n=>{const a=n.tabs.findIndex(s=>s.id===r),c=n.tabs.filter(s=>s.id!==r);let u=n.activeTabId;return n.activeTabId===r&&(u=c.length>0?c[Math.min(a,c.length-1)].id:null),{tabs:c,activeTabId:u}})},closeOtherTabs:r=>{e(n=>({tabs:n.tabs.filter(a=>a.id===r),activeTabId:r}))},closeAllTabs:()=>{e({tabs:[],activeTabId:null})},setActiveTab:r=>{const n=t().tabs.find(a=>a.id===r);e({activeTabId:r,selectedPath:(n==null?void 0:n.path)||null})},updateTabContent:(r,n)=>{e(a=>({tabs:a.tabs.map(c=>c.id===r?{...c,content:n,isDirty:n!==c.originalContent}:c)}))},saveTab:async r=>{const n=t().tabs.find(a=>a.id===r);if(!(!n||!n.isDirty))try{await td(n.path,n.content),e(a=>({tabs:a.tabs.map(c=>c.id===r?{...c,originalContent:c.content,isDirty:!1}:c)}))}catch{}},deleteSelected:async()=>{const{selectedPaths:r,tabs:n}=t();if(r.size===0)return;const a=[...r],c=new Set(a.map(u=>u.substring(0,u.lastIndexOf("/"))));try{await Promise.all(a.map(s=>Gf(s)));const u=n.filter(s=>!a.some(o=>s.path===o||s.path.startsWith(o+"/")));e(s=>({selectedPaths:new Set,selectedPath:null,tabs:u,activeTabId:u.length>0?u.find(o=>o.id===s.activeTabId)?s.activeTabId:u[0].id:null}));for(const s of c)await t().loadDirectory(s)}catch{for(const u of c)await t().loadDirectory(u)}},moveToDirectory:async(r,n)=>{if(r.length===0)return;const a=new Set(r.map(c=>c.substring(0,c.lastIndexOf("/"))));a.add(n);try{for(const c of r){const u=c.substring(c.lastIndexOf("/")+1),s=n+"/"+u;c!==s&&await rd(c,s)}e({selectedPaths:new Set,selectedPath:null});for(const c of a)await t().loadDirectory(c)}catch{for(const c of a)await t().loadDirectory(c)}},setSplitRatio:r=>{const n=Math.max(.12,Math.min(.5,r));Zf(n),e({splitRatio:n})}}));function Qf({path:e,content:t,language:r,onContentChange:n,onSave:a,minimap:c=!0}){const{t:u}=le(),{resolved:s}=dt(),o=A.useRef(null),l=s==="dark"?"vs-dark":"vs",m=A.useCallback((b,y)=>{o.current=b,b.addCommand(y.KeyMod.CtrlCmd|y.KeyCode.KeyS,()=>{a()})},[a]),h=A.useCallback(b=>{b!==void 0&&n(b)},[n]);return A.useEffect(()=>{const b=o.current;if(b){const y=b.getModel();y&&y.getValue()!==t&&y.setValue(t)}},[e,t]),i.jsx(_m,{height:"100%",language:r,theme:l,value:t,onChange:h,onMount:m,loading:i.jsxs("div",{className:"flex items-center justify-center h-full gap-2",style:{color:"var(--color-text-tertiary)"},children:[i.jsx(fe,{size:16,className:"animate-spin"}),i.jsx("span",{style:{fontSize:13},children:u("editor.loading")})]}),options:{fontSize:13,fontFamily:"'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace",lineHeight:20,minimap:{enabled:c,maxColumn:80},scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"off",tabSize:4,insertSpaces:!0,renderWhitespace:"selection",bracketPairColorization:{enabled:!0},padding:{top:8},smoothScrolling:!0,cursorBlinking:"smooth",cursorSmoothCaretAnimation:"on",fixedOverflowWidgets:!0}},e)}function ad(){const{t:e}=le(),{tabs:t,activeTabId:r,setActiveTab:n,closeTab:a,closeOtherTabs:c,closeAllTabs:u}=Ir(),[s,o]=A.useState(null),l=A.useRef(null),m=A.useCallback((y,w)=>{y.preventDefault(),o({x:y.clientX,y:y.clientY,tabId:w})},[]),h=A.useCallback(()=>{o(null)},[]),b=A.useCallback((y,w)=>{y.button===1&&(y.preventDefault(),a(w))},[a]);return t.length===0?null:i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"editor-tabs",children:t.map(y=>i.jsxs("div",{className:`editor-tab ${y.id===r?"active":""}`,onClick:()=>n(y.id),onMouseDown:w=>b(w,y.id),onContextMenu:w=>m(w,y.id),title:y.path,children:[i.jsx(Pn,{name:y.name,type:"file",size:14}),i.jsx("span",{className:"editor-tab-name",children:y.name}),y.isDirty?i.jsx("span",{className:"dirty-dot"}):i.jsx("button",{className:"close-btn",onClick:w=>{w.stopPropagation(),a(y.id)},children:i.jsx(Me,{size:12})})]},y.id))}),s&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"editor-context-overlay",onClick:h}),i.jsxs("div",{ref:l,className:"editor-context-menu",style:{left:s.x,top:s.y},children:[i.jsx("button",{onClick:()=>{a(s.tabId),h()},children:e("editor.close")}),i.jsx("button",{onClick:()=>{c(s.tabId),h()},children:e("editor.closeOthers")}),i.jsx("button",{onClick:()=>{u(),h()},children:e("editor.closeAll")})]})]})]})}function $u({node:e,depth:t,isExpanded:r,isSelected:n,isMultiSelected:a,isRenaming:c,expandedPaths:u,selectedPath:s,selectedPaths:o,renamingPath:l,onToggleExpand:m,onSelect:h,onOpenFile:b,onConfirmRename:y,onCancelRename:w,onContextMenu:v,onDragStart:p,onDrop:f}){var M;const d=e.type==="directory",g=12+t*12,[_,k]=A.useState(e.name),S=A.useRef(null),[E,x]=A.useState(!1);A.useEffect(()=>{if(c&&S.current){k(e.name),S.current.focus();const L=e.name.lastIndexOf(".");!d&&L>0?S.current.setSelectionRange(0,L):S.current.select()}},[c,e.name,d]);const C=A.useCallback(L=>{c||(h(e.path,{ctrl:L.ctrlKey||L.metaKey,shift:L.shiftKey}),d?m(e.path):!L.ctrlKey&&!L.metaKey&&!L.shiftKey&&b(e.path,e.name))},[c,e.path,d,e.name,h,m,b]),I=A.useCallback(()=>{c||d||b(e.path,e.name)},[c,d,e.path,e.name,b]),R=A.useCallback(L=>{L.stopPropagation(),L.key==="Enter"?(L.preventDefault(),y(e.path,_)):L.key==="Escape"&&(L.preventDefault(),w())},[e.path,_,y,w]),F=A.useCallback(()=>{y(e.path,_)},[e.path,_,y]),N=A.useCallback(L=>{L.preventDefault(),v(L,e.path)},[v,e.path]),B=A.useCallback(L=>{const W=a?[...o]:[e.path];L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("text/plain",JSON.stringify(W)),p(W)},[a,o,e.path,p]),P=A.useCallback(L=>{d&&(L.preventDefault(),L.dataTransfer.dropEffect="move",x(!0))},[d]),j=A.useCallback(()=>{x(!1)},[]),U=A.useCallback(L=>{L.preventDefault(),x(!1),d&&f(e.path)},[d,e.path,f]),H=n||a,T=12,D=12;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`file-tree-item ${H?"selected":""} ${E?"drag-over":""}`,onClick:C,onDoubleClick:I,onContextMenu:N,draggable:!c,onDragStart:B,onDragOver:P,onDragLeave:j,onDrop:U,"data-path":e.path,title:e.path,children:[Array.from({length:t},(L,W)=>i.jsx("span",{className:"file-tree-indent-guide",style:{left:D+W*T+6}},W)),i.jsx("span",{style:{width:g,flexShrink:0}}),d?e.isLoading?i.jsx(fe,{size:16,className:"file-tree-chevron animate-spin"}):i.jsx(He,{size:16,className:`file-tree-chevron ${r?"expanded":""}`}):i.jsx(Pn,{name:e.name,type:e.type,isExpanded:r,size:16}),c?i.jsx("input",{ref:S,className:"file-tree-rename-input",value:_,onChange:L=>k(L.target.value),onKeyDown:R,onBlur:F,onClick:L=>L.stopPropagation()}):i.jsx("span",{className:"file-tree-item-name",children:e.name})]}),d&&r&&((M=e.children)==null?void 0:M.map(L=>i.jsx($u,{node:L,depth:t+1,isExpanded:u.has(L.path),isSelected:s===L.path,isMultiSelected:o.has(L.path),isRenaming:l===L.path,expandedPaths:u,selectedPath:s,selectedPaths:o,renamingPath:l,onToggleExpand:m,onSelect:h,onOpenFile:b,onConfirmRename:y,onCancelRename:w,onContextMenu:v,onDragStart:p,onDrop:f},L.path)))]})}function od({onMenuClick:e}){var Q,re;const{t}=le(),r=Qt(z=>z.info),{rootPath:n,tree:a,treeLoading:c,expandedPaths:u,selectedPath:s,selectedPaths:o,renamingPath:l,setRootPath:m,toggleExpand:h,selectPath:b,openFile:y,refreshTree:w,collapseAll:v,createNewFile:p,createNewFolder:f,startRename:d,confirmRename:g,cancelRename:_,deleteSelected:k,moveToDirectory:S}=Ir(),[E,x]=A.useState(!1),[C,I]=A.useState(!1),R=A.useRef(null),[F,N]=A.useState(null),B=A.useRef([]);A.useEffect(()=>{r!=null&&r.cwd&&!n&&m(r.cwd)},[r==null?void 0:r.cwd,n,m]);const P=A.useCallback((z,O)=>{y(z,O)},[y]),j=A.useCallback((z,O)=>{g(z,O)},[g]),U=A.useCallback((z,O)=>{z.preventDefault(),o.has(O)||b(O),N({x:z.clientX,y:z.clientY,path:O})},[o,b]),H=A.useCallback(()=>N(null),[]),T=A.useCallback(()=>{F&&(d(F.path),N(null))},[F,d]),D=A.useCallback(()=>{N(null),k()},[k]),M=A.useCallback(z=>{B.current=z},[]),L=A.useCallback(z=>{B.current.length>0&&(S(B.current,z),B.current=[])},[S]),W=A.useCallback(z=>{var q,ee,J,oe;if(l||!a)return;const O=Vl(a,u);if(O.length===0)return;const K=s?O.indexOf(s):-1;switch(z.key){case"ArrowDown":{z.preventDefault();const Z=K<O.length-1?K+1:0;b(O[Z],{shift:z.shiftKey}),(ee=(q=R.current)==null?void 0:q.querySelector(`[data-path="${CSS.escape(O[Z])}"]`))==null||ee.scrollIntoView({block:"nearest"});break}case"ArrowUp":{z.preventDefault();const Z=K>0?K-1:O.length-1;b(O[Z],{shift:z.shiftKey}),(oe=(J=R.current)==null?void 0:J.querySelector(`[data-path="${CSS.escape(O[Z])}"]`))==null||oe.scrollIntoView({block:"nearest"});break}case"ArrowRight":{z.preventDefault(),s&&!u.has(s)&&h(s);break}case"ArrowLeft":{z.preventDefault(),s&&u.has(s)&&h(s);break}case"Enter":{z.preventDefault(),s&&d(s);break}case"Delete":case"Backspace":{z.preventDefault(),o.size>0&&k();break}case" ":{if(z.preventDefault(),s){const Z=ce=>{if(!ce)return null;if(ce.path===s)return ce;if(ce.children)for(const ne of ce.children){const Oe=Z(ne);if(Oe)return Oe}return null},se=Z(a);(se==null?void 0:se.type)==="directory"?h(s):se&&y(se.path,se.name)}break}}},[a,u,s,o,l,b,h,d,y,k]),V=(a==null?void 0:a.name)||(n==null?void 0:n.split("/").pop())||"WORKSPACE";return i.jsxs("div",{className:"file-tree",ref:R,tabIndex:0,onKeyDown:W,onClick:()=>{var z;return(z=R.current)==null?void 0:z.focus()},children:[i.jsxs("div",{className:"file-tree-title-bar",children:[e&&i.jsx("button",{className:"file-tree-title-menu",onClick:e,title:t("editor.toggleSidebar"),children:i.jsx(Fn,{size:16})}),i.jsx("span",{className:"file-tree-title-text",children:t("editor.explorer")})]}),i.jsxs("div",{className:"file-tree-section-header",onClick:()=>x(!E),onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:[E?i.jsx(He,{size:12,style:{flexShrink:0}}):i.jsx(Xe,{size:12,style:{flexShrink:0}}),i.jsx("span",{className:"file-tree-section-name",children:V.toUpperCase()}),C&&!E&&i.jsxs("div",{className:"file-tree-section-actions",onClick:z=>z.stopPropagation(),children:[i.jsx("button",{className:"file-tree-section-action",onClick:p,title:t("editor.newFile"),children:i.jsx(Mp,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:f,title:t("editor.newFolder"),children:i.jsx(Bp,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:w,title:t("editor.refresh"),children:i.jsx(Ot,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:v,title:t("editor.collapseAll"),children:i.jsx(Lp,{size:14})})]})]}),!E&&i.jsxs("div",{className:"file-tree-content",children:[c&&!a&&i.jsx("div",{className:"file-tree-loading",children:i.jsx(fe,{size:16,className:"animate-spin"})}),(Q=a==null?void 0:a.children)==null?void 0:Q.map(z=>i.jsx($u,{node:z,depth:0,isExpanded:u.has(z.path),isSelected:s===z.path,isMultiSelected:o.has(z.path),isRenaming:l===z.path,expandedPaths:u,selectedPath:s,selectedPaths:o,renamingPath:l,onToggleExpand:h,onSelect:b,onOpenFile:P,onConfirmRename:j,onCancelRename:_,onContextMenu:U,onDragStart:M,onDrop:L},z.path)),((re=a==null?void 0:a.children)==null?void 0:re.length)===0&&i.jsx("div",{className:"file-tree-empty",children:t("editor.emptyFolder")})]}),F&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"editor-context-overlay",onClick:H}),i.jsxs("div",{className:"editor-context-menu",style:{left:F.x,top:F.y},children:[o.size<=1&&i.jsx("button",{onClick:T,children:t("editor.rename")}),i.jsx("button",{onClick:D,children:o.size>1?`${t("editor.delete")} (${o.size})`:t("editor.delete")})]})]})]})}const eb=1e3;function tb({onMenuClick:e}){const{t}=le(),{tabs:r,activeTabId:n,splitRatio:a,setSplitRatio:c,updateTabContent:u,saveTab:s}=Ir(),[o,l]=A.useState(()=>window.innerWidth<768),[m,h]=A.useState(!1);A.useEffect(()=>{const g=window.matchMedia("(min-width: 768px)"),_=k=>{l(!k.matches),k.matches&&h(!1)};return g.addEventListener("change",_),()=>g.removeEventListener("change",_)},[]);const b=Ir(g=>g.tabs.length);A.useEffect(()=>{o&&n&&h(!0)},[o,n,b]);const y=r.find(g=>g.id===n)||null,w=A.useRef(),v=A.useCallback(g=>{if(n){u(n,g),clearTimeout(w.current);const _=n;w.current=setTimeout(()=>{s(_)},eb)}},[n,u,s]);A.useEffect(()=>()=>clearTimeout(w.current),[]);const p=A.useCallback(()=>{clearTimeout(w.current),n&&s(n)},[n,s]),f=A.useCallback(()=>{h(!1)},[]),d=y?i.jsx("div",{className:"editor-container",children:i.jsx(Qf,{path:y.path,content:y.content,language:y.language,onContentChange:v,onSave:p,minimap:!o})}):i.jsxs("div",{className:"editor-empty",children:[i.jsx($p,{size:56,strokeWidth:1,style:{opacity:.15}}),i.jsx("span",{style:{fontSize:14},children:t("editor.noFile")})]});return o?i.jsxs("div",{className:"editor-view",children:[i.jsx("div",{className:"editor-sidebar editor-sidebar-mobile",children:i.jsx(od,{onMenuClick:e})}),i.jsx("div",{className:`editor-mobile-panel ${m?"open":""}`,children:i.jsxs("div",{className:"editor-main",children:[i.jsxs("div",{className:"editor-mobile-header",children:[i.jsx("button",{className:"editor-mobile-back",onClick:f,children:i.jsx(Lt,{size:18})}),i.jsx("div",{className:"editor-mobile-tabs-wrap",children:i.jsx(ad,{})})]}),d]})})]}):i.jsx("div",{className:"editor-view",children:i.jsxs(Bn,{direction:"horizontal",ratio:a,onRatioChange:c,children:[i.jsx("div",{className:"editor-sidebar",children:i.jsx(od,{onMenuClick:e})}),i.jsxs("div",{className:"editor-main",children:[i.jsx(ad,{}),d]})]})})}function rb(e,t){const n=Date.now()-e,a=Math.floor(n/6e4),c=Math.floor(n/36e5),u=Math.floor(n/864e5);return t==="zh"?a<1?"刚刚":a<60?`${a} 分钟前`:c<24?`${c} 小时前`:u<30?`${u} 天前`:new Date(e).toLocaleDateString("zh-CN"):a<1?"Just now":a<60?`${a}m ago`:c<24?`${c}h ago`:u<30?`${u}d ago`:new Date(e).toLocaleDateString("en-US")}function nb({isOpen:e,onClose:t,onSwitchSession:r}){const{t:n,resolved:a}=le(),[c,u]=A.useState([]),[s,o]=A.useState(!0),[l,m]=A.useState(null),[h,b]=A.useState(null),[y,w]=A.useState(null),[v,p]=A.useState(""),f=A.useRef(null),[d,g]=A.useState(null),_=A.useCallback(async()=>{o(!0),m(null);try{const R=await fetch("/api/v1/sessions",{headers:ge()});if(!R.ok)throw new Error(`HTTP ${R.status}`);const F=await R.json(),N=F.data??F;u(N.sessions||[])}catch(R){m(R.message||"Unknown error")}finally{o(!1)}},[]);A.useEffect(()=>{e&&_()},[e,_]);const k=A.useCallback(async R=>{var F;try{const N=await fetch(`/api/v1/sessions/${encodeURIComponent(R.id)}`,{method:"DELETE",headers:ge()});if(!N.ok){const B=await N.json().catch(()=>({}));throw new Error(((F=B.error)==null?void 0:F.message)||B.error||`HTTP ${N.status}`)}u(B=>B.filter(P=>P.id!==R.id))}catch(N){console.error("[history] Delete failed:",N)}finally{g(null)}},[]),S=A.useCallback(async(R,F)=>{var B;const N=F.trim();if(N)try{const P=await fetch(`/api/v1/sessions/${encodeURIComponent(R.id)}/rename`,{method:"POST",headers:ge({"Content-Type":"application/json"}),body:JSON.stringify({name:N})});if(!P.ok){const j=await P.json().catch(()=>({}));throw new Error(((B=j.error)==null?void 0:B.message)||j.error||`HTTP ${P.status}`)}u(j=>j.map(U=>U.id===R.id?{...U,name:N}:U))}catch(P){console.error("[history] Rename failed:",P)}finally{w(null),p("")}},[]),E=A.useCallback((R,F)=>{F.stopPropagation(),w(R),p(R.name),setTimeout(()=>{var N;return(N=f.current)==null?void 0:N.focus()},50)},[]),x=A.useCallback((R,F)=>{F.stopPropagation(),!R.isCurrent&&g(R)},[]),C=A.useCallback(async R=>{if(!(R.isCurrent||h)){b(R.id);try{await(r==null?void 0:r(R.id)),t()}finally{b(null)}}},[h,r,t]),I=()=>s?i.jsx("div",{className:"history-loading",children:i.jsx(et,{size:"small",text:n("history.loading")})}):l?i.jsxs("div",{className:"history-error",children:[i.jsx("p",{className:"history-error-text",children:n("history.loadError")}),i.jsx("button",{className:"history-retry-btn",onClick:_,children:n("history.retry")})]}):c.length===0?i.jsxs("div",{className:"history-empty",children:[i.jsx(jn,{size:48,className:"text-text-tertiary"}),i.jsx("p",{className:"history-empty-title",children:n("history.noData")}),i.jsx("p",{className:"history-empty-hint",children:n("history.noDataHint")})]}):i.jsx("div",{className:"history-list",children:c.map((R,F)=>{const N=Tr(R.updatedAt),B=F>0?Tr(c[F-1].updatedAt):null,P=N!==B;return i.jsxs("div",{children:[P&&i.jsx(Et,{label:hu(R.updatedAt,a)}),i.jsxs("div",{className:`history-session-item${R.isCurrent?" current":""}${!R.isCurrent&&!h?" clickable":""}`,onClick:()=>!R.isCurrent&&!h&&C(R),children:[i.jsxs("div",{className:"history-session-info",children:[i.jsx("p",{className:"history-session-name",children:R.name}),i.jsxs("div",{className:"history-session-meta",children:[R.isCurrent&&i.jsx("span",{className:"history-session-badge",children:n("history.current")}),i.jsx("span",{children:n("history.messages").replace("{count}",String(R.messageCount))}),i.jsx("span",{children:rb(R.updatedAt,a)})]})]}),i.jsxs("div",{className:"history-session-actions",children:[h===R.id&&i.jsx("div",{className:"history-session-switching",children:i.jsx("div",{className:"history-session-spinner"})}),h!==R.id&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"history-action-btn",title:n("history.rename"),onClick:j=>E(R,j),children:i.jsx(Zp,{size:14})}),!R.isCurrent&&i.jsx("button",{className:"history-action-btn danger",title:n("history.delete"),onClick:j=>x(R,j),children:i.jsx(rr,{size:14})})]})]})]})]},R.id)})});return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`history-drawer-overlay ${e?"open":""}`,onClick:t}),i.jsxs("div",{className:`history-drawer ${e?"open":""}`,children:[i.jsxs("div",{className:"history-drawer-header",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"history-drawer-title",children:n("history.title")}),i.jsx("p",{className:"history-drawer-subtitle",children:n("history.description")})]}),i.jsx("button",{onClick:t,className:"history-drawer-close",children:i.jsx(Me,{size:16})})]}),i.jsx("div",{className:"history-content",children:I()})]}),y&&i.jsx("div",{className:"history-rename-overlay",onClick:()=>w(null),children:i.jsxs("div",{className:"history-rename-dialog",onClick:R=>R.stopPropagation(),children:[i.jsx("h3",{children:n("history.renameTitle")}),i.jsx("input",{ref:f,className:"history-rename-input",value:v,onChange:R=>p(R.target.value),placeholder:n("history.renamePlaceholder"),onKeyDown:R=>{R.key==="Enter"&&v.trim()&&S(y,v),R.key==="Escape"&&w(null)}}),i.jsxs("div",{className:"history-rename-actions",children:[i.jsx("button",{className:"history-rename-cancel",onClick:()=>w(null),children:n("history.renameCancel")}),i.jsx("button",{className:"history-rename-ok",disabled:!v.trim(),onClick:()=>S(y,v),children:n("history.renameOk")})]})]})}),d&&i.jsx("div",{className:"history-delete-overlay",onClick:()=>g(null),children:i.jsxs("div",{className:"history-delete-dialog",onClick:R=>R.stopPropagation(),children:[i.jsx("p",{children:n("history.deleteConfirm")}),i.jsxs("div",{className:"history-delete-actions",children:[i.jsx("button",{className:"history-delete-cancel",onClick:()=>g(null),children:n("history.deleteCancel")}),i.jsx("button",{className:"history-delete-ok",onClick:()=>k(d),children:n("history.deleteOk")})]})]})})]})}const Kl="codebuddy.instances.passwords";function Yl(){try{const e=localStorage.getItem(Kl);return e?JSON.parse(e):{}}catch{return{}}}function ib(e,t){const r=Yl();r[e]=t,localStorage.setItem(Kl,JSON.stringify(r))}function sb(e){const t=Yl();delete t[e],localStorage.setItem(Kl,JSON.stringify(t))}function ab(e){return Yl()[e]}const ob=Fe((e,t)=>({instances:[],loading:!1,error:null,showManagerPanel:!1,fetchInstances:async()=>{e({loading:!0,error:null});try{const r=await ye("/api/v1/instances",{headers:ge()});if(!r.ok)throw new Error(`Failed to fetch instances: ${r.status}`);const n=await r.json();e({instances:n.instances||[],loading:!1})}catch(r){e({error:r.message,loading:!1})}},addInstance:async(r,n,a)=>{e({error:null});try{const c=await ye("/api/v1/instances",{method:"POST",headers:ge({"Content-Type":"application/json"}),body:JSON.stringify({url:r,password:n,name:a})});if(!c.ok){const o=await c.json().catch(()=>({}));throw new Error(o.error||`Failed to add instance: ${c.status}`)}const u=await c.json();n&&u.id&&ib(u.id,n),await t().fetchInstances()}catch(c){throw e({error:c.message}),c}},removeInstance:async r=>{e({error:null});try{const n=await ye(`/api/v1/instances/${r}`,{method:"DELETE",headers:ge()});if(!n.ok){const c=await n.json().catch(()=>({}));throw new Error(c.error||`Failed to remove instance: ${n.status}`)}sb(r),await t().fetchInstances()}catch(n){throw e({error:n.message}),n}},setShowManagerPanel:r=>e({showManagerPanel:r})}));function lb(){const e=ze(n=>n.clearChat),t=tt(n=>n.disconnect);return{switchToInstance:A.useCallback(async n=>{if(n.isCurrent)return;try{await ve().disconnect()}catch{}if(e(),!n.url){console.error("Instance has no accessible URL");return}const a=ab(n.id),c=new URL(n.url);a&&c.searchParams.set("password",a),window.location.href=c.toString()},[e,t])}}const Mu=4,ju="codebuddy_interaction_mode",Fu="codebuddy_terminal_layout",Pu="codebuddy_terminal_panes";let cb=0;function db(){return`pane-${Date.now()}-${++cb}`}function Nn(e){return{id:e??db(),ptySessionId:null,ptyStatus:"disconnected",errorMessage:null}}function It(e){return e.type==="leaf"?1:It(e.children[0])+It(e.children[1])}function Rr(e){return e.type==="leaf"?[e.paneId]:[...Rr(e.children[0]),...Rr(e.children[1])]}function ub(){try{const e=sessionStorage.getItem(ju);if(e==="chat"||e==="terminal")return e}catch{}return"chat"}function ld(e){try{sessionStorage.setItem(ju,e)}catch{}}function pb(){try{const e=sessionStorage.getItem(Fu);if(e)return JSON.parse(e)}catch{}return null}function yr(e){try{sessionStorage.setItem(Fu,JSON.stringify(e))}catch{}}function hb(){try{const e=sessionStorage.getItem(Pu);if(e)return JSON.parse(e)}catch{}return null}function _r(e){try{sessionStorage.setItem(Pu,JSON.stringify(e))}catch{}}function mb(){const e=pb(),t=hb();if(e&&t){const n=Rr(e);if(n.every(a=>a in t)){const a={};for(const c of n)a[c]={...t[c],ptyStatus:"disconnected",errorMessage:null};return{panes:a,layout:e,activePaneId:n[0]}}}const r=Nn();return{panes:{[r.id]:r},layout:{type:"leaf",paneId:r.id},activePaneId:r.id}}function In(e,t,r,n){return e.type==="leaf"?e.paneId===t?{type:"split",direction:r,children:[{type:"leaf",paneId:t},{type:"leaf",paneId:n}],ratio:.5}:e:{...e,children:[In(e.children[0],t,r,n),In(e.children[1],t,r,n)]}}function Rn(e,t){if(e.type==="leaf")return e.paneId===t?null:e;const r=Rn(e.children[0],t),n=Rn(e.children[1],t);return r===null?n:n===null?r:{...e,children:[r,n]}}function Bu(e,t,r){if(t.length===0)return e.type==="split"?{...e,ratio:r}:e;if(e.type==="split"){const[n,...a]=t,c=[...e.children];return c[n]=Bu(c[n],a,r),{...e,children:c}}return e}function cd(e){const t=Rt(),r={"Content-Type":"application/json"};t&&(r.Authorization=`Bearer ${t}`),fetch(`/api/v1/pty/${e}`,{method:"DELETE",headers:r}).catch(()=>{})}const nn=mb(),be=Fe((e,t)=>({mode:ub(),mainView:"chat",terminalTitle:null,panes:nn.panes,layout:nn.layout,activePaneId:nn.activePaneId,setMode:r=>{ld(r),e({mode:r,mainView:r==="terminal"?"terminal":"chat"})},setMainView:r=>{const n=r==="terminal"?"terminal":"chat";n!==t().mode&&ld(n),e({mainView:r,mode:n})},setTerminalTitle:r=>e({terminalTitle:r}),splitPane:(r,n)=>{const a=t(),c=n??a.activePaneId;if(It(a.layout)>=Mu)return;const u=Nn(),s=In(a.layout,c,r,u.id),o={...a.panes,[u.id]:u};yr(s),_r(o),e({layout:s,panes:o,activePaneId:u.id})},closePane:r=>{const n=t();if(It(n.layout)<=1)return;const a=Rn(n.layout,r);if(!a)return;const c=n.panes[r];c!=null&&c.ptySessionId&&cd(c.ptySessionId);const u={...n.panes};delete u[r];const s=Rr(a),o=s.includes(n.activePaneId)?n.activePaneId:s[0];yr(a),_r(u),e({layout:a,panes:u,activePaneId:o})},setActivePaneId:r=>e({activePaneId:r}),setRatio:(r,n)=>{const a=Math.max(.1,Math.min(.9,n)),c=Bu(t().layout,r,a);yr(c),e({layout:c})},setPaneSession:(r,n)=>{const a={...t().panes};a[r]&&(a[r]={...a[r],ptySessionId:n},_r(a),e({panes:a}))},setPaneStatus:(r,n)=>{const a={...t().panes};a[r]&&(a[r]={...a[r],ptyStatus:n},e({panes:a}))},setPaneError:(r,n)=>{const a={...t().panes};a[r]&&(a[r]={...a[r],errorMessage:n},e({panes:a}))},reset:()=>{const r=t().panes;for(const u of Object.values(r))u.ptySessionId&&cd(u.ptySessionId);const n=Nn(),a={type:"leaf",paneId:n.id},c={[n.id]:n};yr(a),_r(c),e({panes:c,layout:a,activePaneId:n.id})}}));function gb(e){if(!e.length)return[];const t={};for(const n of e){const a=n.cwd||"remote";t[a]||(t[a]=[]),t[a].push(n)}const r=Object.entries(t).map(([n,a])=>{const c=n.split("/").filter(Boolean);return{cwd:n,directoryName:c[c.length-1]||n,hasCurrent:a.some(u=>u.isCurrent),instances:a.sort((u,s)=>u.isCurrent!==s.isCurrent?u.isCurrent?-1:1:s.startedAt-u.startedAt),latestStartTime:Math.max(...a.map(u=>u.startedAt))}});return r.sort((n,a)=>n.hasCurrent!==a.hasCurrent?n.hasCurrent?-1:1:a.latestStartTime!==n.latestStartTime?a.latestStartTime-n.latestStartTime:a.instances.length-n.instances.length),r}function fb(e){const t=Date.now()-e,r=Math.floor(t/6e4),n=Math.floor(t/36e5),a=Math.floor(t/864e5);return a>0?`${a}d ago`:n>0?`${n}h ago`:r>0?`${r}m ago`:"just now"}function bb(e){const t=e.match(/^\/(?:Users|home)\/[^/]+/);return t?e.replace(t[0],"~"):e}function yb({instance:e,switching:t,switchingId:r,onSwitch:n,onRemove:a,t:c}){var o;const u=r===e.id,s=e.mode==="tunnel";return i.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 hover:bg-bg-hover transition-colors group",children:[i.jsx("div",{className:"flex-shrink-0",children:s?i.jsx(Mn,{size:15,className:"text-text-tertiary"}):i.jsx(vt,{size:15,className:"text-text-tertiary"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[i.jsx("span",{className:"text-text-primary font-medium truncate",children:e.id.slice(0,8)}),i.jsx("span",{className:"px-1.5 py-px text-[10px] rounded font-medium bg-text-primary/[0.06] text-text-tertiary",children:c(s?"workspace.instanceTunnel":"workspace.instanceLocal")}),e.isCurrent&&i.jsx("span",{className:"px-1.5 py-px text-[10px] rounded font-medium bg-accent-green/15 text-accent-green",children:c("workspace.instanceCurrent")})]}),((o=e.meta)==null?void 0:o.currentTopic)&&i.jsx("div",{className:"text-[12px] text-text-secondary mt-0.5 truncate",title:e.meta.currentTopic,children:e.meta.currentTopic}),i.jsx("div",{className:"text-[11px] text-text-tertiary mt-0.5",children:fb(e.startedAt)})]}),i.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[!e.isCurrent&&i.jsx("button",{onClick:()=>n(e),disabled:t,className:"opacity-0 group-hover:opacity-100 px-3 py-1 text-[12px] font-medium text-text-primary hover:bg-bg-tertiary rounded-md transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:u?i.jsxs("span",{className:"flex items-center gap-1.5",children:[i.jsx(fe,{size:12,className:"animate-spin"}),c("workspace.switchingInstance")]}):c("workspace.switchInstance")}),e.manual&&i.jsx("button",{onClick:()=>a(e.id),className:"opacity-0 group-hover:opacity-100 w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-accent-red hover:bg-accent-red/10 transition-colors",title:c("instance.remove"),children:i.jsx(rr,{size:13})})]})]})}function Uu({isOpen:e,onClose:t}){const{instances:r,loading:n,error:a,fetchInstances:c,addInstance:u,removeInstance:s}=ob(),{switchToInstance:o}=lb(),{t:l}=le(),m=be(Z=>Z.setMainView),h=e!==void 0,[b,y]=A.useState(!1),[w,v]=A.useState(""),[p,f]=A.useState(""),[d,g]=A.useState(""),[_,k]=A.useState(!1),[S,E]=A.useState(null),[x,C]=A.useState(!1),[I,R]=A.useState(!1),[F,N]=A.useState(!1),[B,P]=A.useState(!1),[j,U]=A.useState(null),[H,T]=A.useState(new Set),[D,M]=A.useState(!1),L=A.useMemo(()=>r.slice().sort((Z,se)=>Z.isCurrent===se.isCurrent?0:Z.isCurrent?-1:1),[r]),W=A.useMemo(()=>gb(L),[L]);A.useEffect(()=>{!D&&W.length>0&&(T(new Set(W.map(Z=>Z.cwd))),M(!0))},[W,D]);const V=!n&&L.length===0&&!a;A.useEffect(()=>{(!h||e)&&(C(!1),c())},[e,h,c]);const Q=A.useCallback(()=>{t?t():m("chat")},[t,m]),re=A.useCallback(async()=>{R(!0),N(!1),C(!1);try{await c(),N(!0),setTimeout(()=>N(!1),2e3)}finally{R(!1)}},[c]),z=A.useCallback(async()=>{const Z=p.trim();if(Z){k(!0),E(null);try{await u(Z,d.trim()||void 0,w.trim()||void 0),v(""),f(""),g(""),y(!1)}catch(se){E(se.message)}finally{k(!1)}}},[w,p,d,u]),O=A.useCallback(async Z=>{try{await s(Z)}catch(se){console.error("Remove instance failed:",se)}},[s]),K=A.useCallback(async Z=>{if(!Z.isCurrent){P(!0),U(Z.id);try{await o(Z)}catch{P(!1),U(null)}}},[o]),q=A.useCallback(Z=>{T(se=>{const ce=new Set(se);return ce.has(Z)?ce.delete(Z):ce.add(Z),ce})},[]);if(h&&!e)return null;if(h)return i.jsxs("div",{className:"fixed inset-0 z-50 bg-bg-primary text-text-primary flex flex-col",children:[i.jsxs("div",{className:"flex items-center justify-between px-6 h-14 border-b border-border-muted bg-bg-primary shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("button",{onClick:Q,className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-bg-secondary transition-colors text-text-secondary",children:i.jsx(Lt,{size:18})}),i.jsx("span",{className:"font-semibold text-[15px] tracking-wide",children:l("instance.managerTitle")})]}),i.jsxs("button",{onClick:()=>y(!0),className:"flex items-center gap-2 px-4 py-2 rounded-full bg-accent-brand text-white text-[13px] font-medium hover:bg-accent-brand/90 transition-colors",children:[i.jsx(Qe,{size:14}),l("instance.addInstance")]})]}),i.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:i.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[ee(),J(),oe()]})})]});return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-muted px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:l("instance.managerTitle")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:l("instance.subtitle")})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("button",{onClick:re,disabled:I,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${F?"border-green-500/50 text-green-500":I?"opacity-50 cursor-not-allowed border-border-muted text-text-secondary":"border-border-muted text-text-secondary hover:text-text-primary hover:border-accent-brand/50 hover:bg-bg-secondary"}`,title:l("instance.refresh"),children:[F?i.jsx(lt,{size:16}):i.jsx(Ot,{size:16,className:I?"animate-spin":""}),i.jsx("span",{className:"text-sm",children:l(F?"instance.refreshed":"instance.refresh")})]}),i.jsxs("button",{onClick:()=>y(!0),className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-accent-brand/30 bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:[i.jsx(Qe,{size:16}),i.jsx("span",{children:l("instance.addInstance")})]})]})]})}),i.jsxs("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-4",children:[ee(),J(),oe()]})]});function ee(){return b?i.jsxs("div",{className:"bg-bg-secondary rounded-xl border border-border-muted p-5 space-y-4 mb-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-[14px] font-medium",children:l("instance.addInstance")}),i.jsx("button",{onClick:()=>{y(!1),E(null)},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-bg-tertiary transition-colors text-text-secondary",children:i.jsx(Me,{size:14})})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:l("instance.name")}),i.jsx("input",{type:"text",value:w,onChange:Z=>v(Z.target.value),placeholder:l("instance.namePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&p.trim()&&z()}})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:l("instance.url")}),i.jsx("input",{type:"url",value:p,onChange:Z=>f(Z.target.value),placeholder:"https://abc-def-ghi.trycloudflare.com",className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&p.trim()&&z()}})]}),i.jsxs("div",{children:[i.jsxs("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:[l("instance.password"),i.jsxs("span",{className:"text-text-tertiary ml-1",children:["(",l("instance.optional"),")"]})]}),i.jsx("input",{type:"password",value:d,onChange:Z=>g(Z.target.value),placeholder:l("instance.passwordPlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&p.trim()&&z()}})]}),S&&i.jsx("div",{className:"text-accent-red text-[12px]",children:S}),i.jsxs("div",{className:"flex justify-end gap-2 pt-1",children:[i.jsx("button",{onClick:()=>{y(!1),E(null)},className:"px-4 py-2 rounded-lg text-[13px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:l("instance.cancel")}),i.jsxs("button",{onClick:z,disabled:!p.trim()||_,className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-accent-brand text-white hover:bg-accent-brand/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[_&&i.jsx(fe,{size:14,className:"animate-spin"}),l("instance.add")]})]})]})]}):null}function J(){return!a||x?null:i.jsxs("div",{className:"bg-accent-red/10 border border-accent-red/30 rounded-xl p-4 text-accent-red text-[13px] flex items-center justify-between mb-4",children:[i.jsx("span",{children:a}),i.jsx("button",{onClick:()=>C(!0),className:"w-5 h-5 flex items-center justify-center rounded-full hover:bg-accent-red/20 transition-colors shrink-0 ml-3",children:i.jsx(Me,{size:12})})]})}function oe(){return n&&L.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:i.jsx("div",{className:"thinking-text text-sm",children:l("instance.loading")})}):a&&!n&&L.length===0&&!x?i.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"⚠"}),i.jsx("div",{className:"text-text-secondary text-sm mb-4",children:l("instance.error")}),i.jsx("button",{onClick:re,className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:l("instance.retry")})]})}):V?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[i.jsx(vt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-sm font-medium mb-1",children:l("instance.noInstances")}),i.jsx("div",{className:"text-xs",children:l("instance.noInstancesHint")})]}):i.jsx("div",{className:`space-y-3 transition-opacity duration-300 ${I?"opacity-50 pointer-events-none":"opacity-100"}`,children:W.map(Z=>{const se=H.has(Z.cwd);return i.jsxs("div",{className:`rounded-xl overflow-hidden ${Z.hasCurrent?"bg-text-primary/[0.03]":"bg-bg-secondary/30"}`,children:[i.jsxs("button",{onClick:()=>q(Z.cwd),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-bg-hover/50 transition-colors text-left",children:[i.jsx(Dn,{size:18,className:"text-text-secondary flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-[14px] font-medium text-text-primary truncate",children:Z.directoryName}),i.jsx("div",{className:"text-[11px] text-text-tertiary truncate",children:bb(Z.cwd)})]}),i.jsx("span",{className:"text-[12px] text-text-tertiary flex-shrink-0 mr-1",children:l("workspace.instanceCount").replace("{count}",String(Z.instances.length))}),i.jsx(Xe,{size:16,className:`text-text-tertiary flex-shrink-0 transition-transform duration-200 ${se?"":"-rotate-90"}`})]}),se&&i.jsx("div",{className:"border-t border-border-muted",children:Z.instances.map(ce=>i.jsx(yb,{instance:ce,switching:B,switchingId:j,onSwitch:K,onRemove:O,t:l},ce.id))})]},Z.cwd)})})}}function vr(e,t){return`${e}@${t}`}async function bt(e,t){return ye(e,{method:"POST",headers:{"Content-Type":"application/json",...ge()},body:t?JSON.stringify(t):void 0})}async function _b(e){return ye(e,{method:"DELETE",headers:ge()})}async function dd(e){return ye(e,{method:"GET",headers:ge()})}const vb=Fe((e,t)=>({plugins:[],loading:!1,error:null,marketplaces:[],marketplaceLoading:!1,availablePlugins:[],browsingMarketplace:null,browsingLoading:!1,browsingError:null,operatingPlugins:new Set,fetchPlugins:async()=>{e({loading:!0,error:null});try{const r=await dd("/api/v1/plugins");if(!r.ok)throw new Error(`HTTP ${r.status}`);const a=(await r.json()).data;e({plugins:Array.isArray(a)?a:[],loading:!1})}catch(r){console.warn("[plugin-store] fetchPlugins failed:",r),e({error:r.message,loading:!1})}},fetchMarketplaces:async()=>{e({marketplaceLoading:!0});try{const r=await dd("/api/v1/plugins/marketplaces");if(!r.ok)throw new Error(`HTTP ${r.status}`);const a=(await r.json()).data;e({marketplaces:Array.isArray(a)?a:[],marketplaceLoading:!1})}catch(r){console.warn("[plugin-store] fetchMarketplaces failed:",r),e({marketplaceLoading:!1})}},browseMarketplace:async r=>{var n;e({browsingMarketplace:r,browsingLoading:!0,browsingError:null});try{const a=await bt("/api/v1/plugins/marketplaces/browse",{marketplace:r});if(!a.ok){const o=await a.json().catch(()=>null);throw new Error(((n=o==null?void 0:o.error)==null?void 0:n.message)||`HTTP ${a.status}`)}const c=await a.json(),s=(Array.isArray(c.data)?c.data:[]).map(o=>({name:o.name,version:o.version,description:o.description,marketplace:o.marketplaceName||r,installed:!!o.status,author:o.author,license:o.license,homepage:o.homepage,repository:o.repository,keywords:o.keywords,category:o.category,features:o.features,source:o.source}));e({availablePlugins:s,browsingLoading:!1})}catch(a){console.warn("[plugin-store] browseMarketplace failed:",a),e({browsingError:a.message,browsingLoading:!1})}},browseAllMarketplaces:async()=>{const{marketplaces:r}=t();if(r.length!==0){e({browsingMarketplace:"__all__",browsingLoading:!0,browsingError:null});try{const n=await Promise.allSettled(r.map(async o=>{var b;const l=await bt("/api/v1/plugins/marketplaces/browse",{marketplace:o.name});if(!l.ok){const y=await l.json().catch(()=>null);throw new Error(((b=y==null?void 0:y.error)==null?void 0:b.message)||`HTTP ${l.status}`)}const m=await l.json();return(Array.isArray(m.data)?m.data:[]).map(y=>({name:y.name,version:y.version,description:y.description,marketplace:y.marketplaceName||o.name,installed:!!y.status,author:y.author,license:y.license,homepage:y.homepage,repository:y.repository,keywords:y.keywords,category:y.category,features:y.features,source:y.source}))})),a=[];let c=!1;for(const o of n)o.status==="fulfilled"?a.push(...o.value):c=!0;const u=new Set,s=a.filter(o=>{const l=`${o.name}@${o.marketplace}`;return u.has(l)?!1:(u.add(l),!0)});e({availablePlugins:s,browsingLoading:!1,browsingError:c&&s.length===0?"Some marketplaces failed to load":null})}catch(n){console.warn("[plugin-store] browseAllMarketplaces failed:",n),e({browsingError:n.message,browsingLoading:!1})}}},enablePlugin:async(r,n)=>{var c;const a=vr(r,n);e(u=>({operatingPlugins:new Set(u.operatingPlugins).add(a)}));try{const u=await bt("/api/v1/plugins/enable",{plugin:a});if(!u.ok){const s=await u.json().catch(()=>null);throw new Error(((c=s==null?void 0:s.error)==null?void 0:c.message)||`HTTP ${u.status}`)}await t().fetchPlugins()}finally{e(u=>{const s=new Set(u.operatingPlugins);return s.delete(a),{operatingPlugins:s}})}},disablePlugin:async(r,n)=>{var c;const a=vr(r,n);e(u=>({operatingPlugins:new Set(u.operatingPlugins).add(a)}));try{const u=await bt("/api/v1/plugins/disable",{plugin:a});if(!u.ok){const s=await u.json().catch(()=>null);throw new Error(((c=s==null?void 0:s.error)==null?void 0:c.message)||`HTTP ${u.status}`)}await t().fetchPlugins()}finally{e(u=>{const s=new Set(u.operatingPlugins);return s.delete(a),{operatingPlugins:s}})}},uninstallPlugin:async(r,n)=>{var c;const a=vr(r,n);e(u=>({operatingPlugins:new Set(u.operatingPlugins).add(a)}));try{const u=await bt("/api/v1/plugins/uninstall",{plugin:a});if(!u.ok){const s=await u.json().catch(()=>null);throw new Error(((c=s==null?void 0:s.error)==null?void 0:c.message)||`HTTP ${u.status}`)}await t().fetchPlugins()}finally{e(u=>{const s=new Set(u.operatingPlugins);return s.delete(a),{operatingPlugins:s}})}},installPlugin:async(r,n)=>{var c;const a=vr(r,n);e(u=>({operatingPlugins:new Set(u.operatingPlugins).add(a)}));try{const u=await bt("/api/v1/plugins",{plugin:a});if(!u.ok){const o=await u.json().catch(()=>null);throw new Error(((c=o==null?void 0:o.error)==null?void 0:c.message)||`HTTP ${u.status}`)}await t().fetchPlugins();const s=t();s.browsingMarketplace&&(s.browsingMarketplace==="__all__"?await t().browseAllMarketplaces():await t().browseMarketplace(s.browsingMarketplace))}finally{e(u=>{const s=new Set(u.operatingPlugins);return s.delete(a),{operatingPlugins:s}})}},addMarketplace:async(r,n)=>{var c;const a=await bt("/api/v1/plugins/marketplaces",{source:r,name:n});if(!a.ok){const u=await a.json().catch(()=>null);throw new Error(((c=u==null?void 0:u.error)==null?void 0:c.message)||`HTTP ${a.status}`)}await t().fetchMarketplaces()},removeMarketplace:async r=>{var a;const n=await _b(`/api/v1/plugins/marketplaces/${encodeURIComponent(r)}`);if(!n.ok){const c=await n.json().catch(()=>null);throw new Error(((a=c==null?void 0:c.error)==null?void 0:a.message)||`HTTP ${n.status}`)}await t().fetchMarketplaces()}}));function zu(){const{t:e}=le(),{plugins:t,marketplaces:r,loading:n,marketplaceLoading:a,error:c,operatingPlugins:u,availablePlugins:s,browsingLoading:o,browsingError:l,fetchPlugins:m,fetchMarketplaces:h,browseMarketplace:b,browseAllMarketplaces:y,enablePlugin:w,disablePlugin:v,uninstallPlugin:p,installPlugin:f,addMarketplace:d,removeMarketplace:g}=vb(),[_,k]=A.useState("installed"),[S,E]=A.useState(""),[x,C]=A.useState("all"),[I,R]=A.useState(null),[F,N]=A.useState(!1),[B,P]=A.useState(""),[j,U]=A.useState(""),[H,T]=A.useState(!1),[D,M]=A.useState(null),[L,W]=A.useState(null),[V,Q]=A.useState(null),[re,z]=A.useState(""),[O,K]=A.useState(""),[q,ee]=A.useState(null),J=A.useCallback(Y=>{ee(ie=>ie===Y?null:Y)},[]);A.useEffect(()=>{m(),h()},[m,h]),A.useEffect(()=>{_==="browse"&&!re&&r.length>0&&(z("__all__"),y())},[_,r,re,y]);const oe=A.useCallback(async Y=>{R(null);try{Y.status==="enabled"?await v(Y.name,Y.marketplace):await w(Y.name,Y.marketplace)}catch(ie){R(ie.message)}},[w,v]),Z=A.useCallback(async Y=>{R(null),W(null);try{await p(Y.name,Y.marketplace)}catch(ie){R(ie.message)}},[p]),se=A.useCallback(async Y=>{R(null);try{await f(Y.name,Y.marketplace)}catch(ie){R(ie.message)}},[f]),ce=A.useCallback(async()=>{const Y=B.trim();if(Y){T(!0),M(null);try{await d(Y,j.trim()||void 0),P(""),U(""),N(!1)}catch(ie){M(ie.message)}finally{T(!1)}}},[B,j,d]),ne=A.useCallback(async Y=>{R(null),Q(null);try{if(await g(Y),re===Y&&r.length>1){const ie=r.find(xe=>xe.name!==Y);ie&&(z(ie.name),b(ie.name))}}catch(ie){R(ie.message)}},[g,re,r,b]),Oe=A.useCallback(()=>{m(),h(),_==="browse"&&re&&(re==="__all__"?y():b(re))},[m,h,_,re,b,y]),ut=A.useCallback(Y=>{z(Y),K(""),Y==="__all__"?y():b(Y)},[b,y]),pt=Y=>`${Y.name}@${Y.marketplace}`,rt=A.useMemo(()=>{const Y=new Set(t.map(ie=>ie.marketplace));return Array.from(Y).sort()},[t]),qe=A.useMemo(()=>{let Y=t;x!=="all"&&(Y=Y.filter(xe=>xe.marketplace===x));const ie=S.trim().toLowerCase();return ie&&(Y=Y.filter(xe=>xe.name.toLowerCase().includes(ie)||xe.description&&xe.description.toLowerCase().includes(ie)||xe.marketplace.toLowerCase().includes(ie))),Y},[t,x,S]),Se=A.useMemo(()=>{let Y=s;const ie=O.trim().toLowerCase();return ie&&(Y=Y.filter(xe=>xe.name.toLowerCase().includes(ie)||xe.description&&xe.description.toLowerCase().includes(ie))),Y},[s,O]),Je=t.filter(Y=>Y.status==="enabled").length;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-muted px-6 py-4",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("plugins.title")}),_==="installed"&&t.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[t.length," ",e("plugins.totalCount")," · ",Je," ",e("plugins.enabled")]}),_==="browse"&&re&&!o&&s.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[s.length," ",e("plugins.totalCount")]}),_==="marketplaces"&&r.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[r.length," ",e("plugins.totalCount")]})]}),i.jsx("button",{onClick:Oe,disabled:n||o,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${n||o?"opacity-50 cursor-not-allowed border-border-muted text-text-secondary":"border-border-muted text-text-secondary hover:text-text-primary hover:border-text-primary/20 hover:bg-bg-secondary"}`,title:e("plugins.refresh"),children:i.jsx(Ot,{size:14,className:n||o?"animate-spin":""})})]}),i.jsxs("div",{className:"flex gap-1 border-b border-border-muted",children:[i.jsx("button",{onClick:()=>{k("installed"),R(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${_==="installed"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.installedPlugins")}),i.jsx("button",{onClick:()=>{k("browse"),R(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${_==="browse"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.browseMarketplace")}),i.jsx("button",{onClick:()=>{k("marketplaces"),R(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${_==="marketplaces"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.marketplaces")})]}),_==="installed"&&t.length>0&&i.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(_t,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),i.jsx("input",{type:"text",value:S,onChange:Y=>E(Y.target.value),placeholder:e("plugins.searchPlaceholder"),className:"w-full bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg pl-9 pr-8 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),S&&i.jsx("button",{onClick:()=>E(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 flex items-center justify-center rounded-full text-text-tertiary hover:text-text-secondary transition-colors",children:i.jsx(Me,{size:12})})]}),rt.length>1&&i.jsxs("select",{value:x,onChange:Y=>C(Y.target.value),className:"bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg px-2 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all cursor-pointer shrink-0 max-w-[120px] sm:max-w-[160px]",children:[i.jsx("option",{value:"all",children:e("plugins.allMarketplaces")}),rt.map(Y=>i.jsx("option",{value:Y,children:Y},Y))]})]}),_==="browse"&&r.length>0&&i.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(_t,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),i.jsx("input",{type:"text",value:O,onChange:Y=>K(Y.target.value),placeholder:e("plugins.searchPlaceholder"),className:"w-full bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg pl-9 pr-8 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),O&&i.jsx("button",{onClick:()=>K(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 flex items-center justify-center rounded-full text-text-tertiary hover:text-text-secondary transition-colors",children:i.jsx(Me,{size:12})})]}),i.jsxs("select",{value:re,onChange:Y=>ut(Y.target.value),className:"bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg px-2 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all cursor-pointer shrink-0 max-w-[120px] sm:max-w-[160px]",children:[i.jsx("option",{value:"__all__",children:e("plugins.allMarketplaces")}),r.map(Y=>i.jsx("option",{value:Y.name,children:Y.name},Y.name))]})]})]})}),i.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:i.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[I&&i.jsxs("div",{className:"bg-accent-red/10 border border-accent-red/30 rounded-xl p-3.5 text-accent-red text-[13px] flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i.jsx(Vr,{size:14,className:"shrink-0"}),i.jsxs("span",{className:"truncate",children:[e("plugins.operationFailed"),": ",I]})]}),i.jsx("button",{onClick:()=>R(null),className:"w-5 h-5 flex items-center justify-center rounded-full hover:bg-accent-red/20 transition-colors shrink-0 ml-3",children:i.jsx(Me,{size:12})})]}),_==="installed"&&i.jsxs(i.Fragment,{children:[n&&t.length===0&&i.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:i.jsx(et,{size:"small",text:e("plugins.loading")})}),c&&!n&&t.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[i.jsx(Vr,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),i.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),i.jsx("button",{onClick:m,className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors",children:e("plugins.retry")})]}),!n&&!c&&t.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Nt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noPlugins")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noPluginsHint")})]}),t.length>0&&qe.length===0&&!n&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[i.jsx(_t,{size:36,className:"mb-3 opacity-30"}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),qe.length>0&&i.jsx("div",{className:"space-y-3",children:qe.map(Y=>{const ie=pt(Y);return i.jsx(Sb,{plugin:Y,isEnabled:Y.status==="enabled",isOperating:u.has(ie),isExpanded:q===ie,confirmUninstall:L===ie,onToggle:()=>oe(Y),onUninstall:()=>Z(Y),onConfirmUninstall:()=>W(ie),onCancelUninstall:()=>W(null),onExpand:()=>J(ie),t:e},ie)})})]}),_==="browse"&&i.jsxs(i.Fragment,{children:[!a&&r.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Vt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),o&&s.length===0&&re&&i.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:i.jsx(et,{size:"small",text:e("plugins.browsingMarketplace")})}),l&&s.length===0&&re&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[i.jsx(Vr,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),i.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),i.jsx("button",{onClick:()=>re&&b(re),className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors",children:e("plugins.retry")})]}),re&&s.length===0&&!o&&!l&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Nt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noAvailablePlugins")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noAvailablePluginsHint")})]}),s.length>0&&Se.length===0&&!o&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[i.jsx(_t,{size:36,className:"mb-3 opacity-30"}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),Se.length>0&&i.jsx("div",{className:"space-y-3",children:Se.map(Y=>{const ie=`${Y.name}@${Y.marketplace}`;return i.jsx(xb,{plugin:Y,isInstalled:Y.installed,isOperating:u.has(ie),isExpanded:q===ie,onInstall:()=>se(Y),onExpand:()=>J(ie),t:e},ie)})})]}),_==="marketplaces"&&i.jsxs("div",{className:"space-y-3",children:[!F&&i.jsxs("button",{onClick:()=>N(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[12px] font-medium text-text-primary border border-border-muted hover:bg-bg-tertiary hover:border-text-primary/30 transition-colors",children:[i.jsx(Qe,{size:12}),e("plugins.addMarketplace")]}),F&&i.jsxs("div",{className:"bg-bg-secondary rounded-xl border border-border-muted p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-[13px] font-medium",children:e("plugins.addMarketplace")}),i.jsx("button",{onClick:()=>{N(!1),M(null)},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-bg-tertiary transition-colors text-text-secondary",children:i.jsx(Me,{size:12})})]}),i.jsx("input",{type:"text",value:B,onChange:Y=>P(Y.target.value),placeholder:e("plugins.sourcePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[13px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),i.jsx("input",{type:"text",value:j,onChange:Y=>U(Y.target.value),placeholder:e("plugins.namePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[13px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),D&&i.jsx("div",{className:"text-accent-red text-[12px]",children:D}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx("button",{onClick:()=>{N(!1),M(null)},className:"px-3 py-1.5 rounded-lg text-[12px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")}),i.jsxs("button",{onClick:ce,disabled:!B.trim()||H,className:"px-3 py-1.5 rounded-lg text-[12px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1.5",children:[H&&i.jsx(fe,{size:12,className:"animate-spin"}),e("plugins.add")]})]})]}),a&&r.length===0&&i.jsx("div",{className:"flex items-center justify-center py-6",children:i.jsx(fe,{size:18,className:"animate-spin text-text-tertiary"})}),!a&&r.length===0&&!F&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Vt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),r.length>0&&i.jsx("div",{className:"bg-bg-secondary rounded-xl border border-border-muted overflow-hidden",children:r.map((Y,ie)=>i.jsxs("div",{className:`flex items-center justify-between px-4 py-3 ${ie>0?"border-t border-border-muted":""}`,children:[i.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[i.jsx(Vt,{size:14,className:"text-text-tertiary shrink-0"}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-[13px] font-medium truncate",children:Y.name}),Y.type&&i.jsx("div",{className:"text-[11px] text-text-tertiary",children:Y.type})]})]}),i.jsx("div",{className:"flex items-center gap-2 shrink-0",children:V===Y.name?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>ne(Y.name),className:"px-2.5 py-1 rounded-md text-[11px] font-medium text-white bg-accent-red hover:bg-accent-red/90 transition-colors",children:e("plugins.removeMarketplace")}),i.jsx("button",{onClick:()=>Q(null),className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")})]}):i.jsx("button",{onClick:()=>Q(Y.name),className:"w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-accent-red hover:bg-accent-red/10 transition-colors",title:e("plugins.removeMarketplace"),children:i.jsx(rr,{size:13})})})]},Y.name))})]})]})})]})}function Sb({plugin:e,isEnabled:t,isOperating:r,isExpanded:n,confirmUninstall:a,onToggle:c,onUninstall:u,onConfirmUninstall:s,onCancelUninstall:o,onExpand:l,t:m}){return i.jsxs("div",{className:`group rounded-xl border transition-all ${t?"bg-bg-secondary border-border-muted":"bg-bg-secondary border-border-muted hover:border-border-muted"}`,children:[i.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:l,children:[i.jsx("div",{className:`flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center mt-0.5 ${t?"bg-text-primary/8":"bg-bg-tertiary"}`,children:i.jsx(Nt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&i.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),i.jsx("span",{className:`text-[10px] px-1.5 py-px rounded font-medium shrink-0 ${t?"bg-accent-green/15 text-accent-green":"bg-bg-tertiary text-text-tertiary"}`,children:m(t?"plugins.enabled":"plugins.disabled")})]}),e.description&&i.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${n?"":"line-clamp-2"}`,children:e.description}),i.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[i.jsx(Vt,{size:10,className:"shrink-0"}),i.jsx("span",{children:e.marketplace})]})]}),i.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:h=>h.stopPropagation(),children:r?i.jsx("div",{className:"w-[72px] flex justify-center",children:i.jsx(fe,{size:16,className:"animate-spin text-text-tertiary"})}):a?i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("button",{onClick:u,className:"px-2.5 py-1 rounded-md text-[11px] font-medium text-white bg-accent-red hover:bg-accent-red/90 transition-colors",children:m("plugins.uninstall")}),i.jsx("button",{onClick:o,className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:m("plugins.cancel")})]}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:c,className:`px-2.5 py-1.5 rounded-md text-[11px] font-medium transition-colors flex items-center gap-1 ${t?"text-text-secondary border border-border-muted hover:bg-bg-tertiary":"text-text-primary border border-border-muted hover:bg-bg-tertiary"}`,title:m(t?"plugins.disable":"plugins.enable"),children:[t?i.jsx(Qp,{size:11}):i.jsx(eh,{size:11}),m(t?"plugins.disable":"plugins.enable")]}),i.jsx("button",{onClick:s,className:"w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-accent-red hover:bg-accent-red/10 transition-colors opacity-0 group-hover:opacity-100",title:m("plugins.uninstall"),children:i.jsx(rr,{size:13})})]})})]}),n&&i.jsx(Hu,{plugin:e,t:m})]})}function xb({plugin:e,isInstalled:t,isOperating:r,isExpanded:n,onInstall:a,onExpand:c,t:u}){return i.jsxs("div",{className:`group rounded-xl border transition-all ${t?"bg-bg-secondary border-border-muted":"bg-bg-secondary border-border-muted hover:border-border-muted"}`,children:[i.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:c,children:[i.jsx("div",{className:`flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center mt-0.5 ${t?"bg-text-primary/8":"bg-bg-tertiary"}`,children:i.jsx(Nt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&i.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),t&&i.jsx("span",{className:"text-[10px] px-1.5 py-px rounded font-medium shrink-0 bg-accent-green/15 text-accent-green",children:u("plugins.installedLabel")})]}),e.description&&i.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${n?"":"line-clamp-2"}`,children:e.description}),i.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[i.jsx(Vt,{size:10,className:"shrink-0"}),i.jsx("span",{children:e.marketplace})]})]}),i.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:s=>s.stopPropagation(),children:t?i.jsx("div",{className:"px-2.5 py-1.5 rounded-md text-[11px] font-medium text-text-tertiary bg-bg-tertiary",children:u("plugins.installed")}):r?i.jsx("div",{className:"w-[72px] flex justify-center",children:i.jsx(fe,{size:16,className:"animate-spin text-text-tertiary"})}):i.jsxs("button",{onClick:a,className:"px-2.5 py-1.5 rounded-md text-[11px] font-medium text-text-primary border border-border-muted hover:bg-bg-tertiary transition-colors flex items-center gap-1",title:u("plugins.install"),children:[i.jsx(Dp,{size:11}),u("plugins.install")]})})]}),n&&i.jsx(Hu,{plugin:e,t:u})]})}function Hu({plugin:e,t}){const r=e.source,n=typeof r=="object"&&r!==null?r.url:void 0,a=typeof r=="object"&&r!==null?r.source:typeof r=="string"?r:void 0;return i.jsxs("div",{className:"border-t border-border-muted mx-5 px-0 py-3.5 space-y-2.5",children:[e.category&&i.jsx(nt,{label:t("plugins.category"),children:i.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded bg-[#f5a623]/8 text-[#b8860b] font-medium",children:e.category})}),e.author&&i.jsxs(nt,{label:t("plugins.author"),children:[i.jsx("span",{className:"text-[12px] text-text-primary font-medium",children:e.author.name}),e.author.email&&i.jsx("a",{href:`mailto:${e.author.email}`,className:"text-[11px] text-text-tertiary hover:text-text-primary hover:underline ml-1",onClick:c=>c.stopPropagation(),children:e.author.email}),e.author.url&&i.jsxs("a",{href:e.author.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-[11px] text-text-tertiary hover:text-text-primary hover:underline ml-1",onClick:c=>c.stopPropagation(),children:[e.author.url,i.jsx(zt,{size:9})]})]}),e.license&&i.jsx(nt,{label:t("plugins.license"),children:i.jsx("span",{className:"text-[12px] text-text-secondary",children:e.license})}),e.homepage&&i.jsx(nt,{label:t("plugins.homepage"),children:i.jsxs("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:c=>c.stopPropagation(),children:[e.homepage,i.jsx(zt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),e.repository&&i.jsx(nt,{label:t("plugins.repository"),children:i.jsxs("a",{href:e.repository,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:c=>c.stopPropagation(),children:[e.repository,i.jsx(zt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),a&&i.jsx(nt,{label:t("plugins.source"),children:n?i.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:c=>c.stopPropagation(),children:[a,i.jsx(zt,{size:10,className:"shrink-0 text-text-tertiary"})]}):i.jsx("span",{className:"text-[12px] text-text-secondary font-mono",children:a})}),e.keywords&&e.keywords.length>0&&i.jsx(nt,{label:t("plugins.keywords"),children:i.jsx("div",{className:"flex flex-wrap gap-1",children:e.keywords.map(c=>i.jsx("span",{className:"text-[10px] px-1.5 py-px rounded bg-bg-tertiary text-text-tertiary",children:c},c))})}),e.features&&e.features.length>0&&i.jsx(nt,{label:t("plugins.features"),children:i.jsx("ul",{className:"space-y-0.5",children:e.features.map((c,u)=>i.jsxs("li",{className:"text-[12px] text-text-secondary flex items-start gap-1.5",children:[i.jsx("span",{className:"text-text-tertiary shrink-0",children:"·"}),c]},u))})})]})}function nt({label:e,children:t}){return i.jsxs("div",{className:"flex items-baseline gap-3",children:[i.jsx("span",{className:"text-[11px] text-text-tertiary w-12 shrink-0 text-right",children:e}),i.jsx("div",{className:"flex-1 min-w-0 flex items-baseline flex-wrap gap-1",children:t})]})}function Gu(){const{status:e,sessionId:t,currentModel:r,models:n,modes:a,currentMode:c}=tt(),{info:u,fetch:s}=Qt(),{mode:o,toggle:l}=dt(),{t:m,locale:h,toggleLocale:b}=le(),[y,w]=A.useState(null);A.useEffect(()=>{u||s()},[u,s]);const v=A.useCallback((x,C)=>{navigator.clipboard.writeText(x).then(()=>{w(C),setTimeout(()=>w(null),1500)})},[]),p=async x=>{if(t)try{await ve().setModel(t,x)}catch(C){console.error("Model change failed:",C)}},f=async x=>{if(t)try{await ve().setMode(t,x)}catch(C){console.error("Mode change failed:",C)}},d={disconnected:"bg-gray-400",connecting:"bg-accent-yellow animate-pulse",connected:"bg-accent-green",error:"bg-accent-red"}[e],g={connected:"connection.connected",connecting:"connection.connecting",disconnected:"connection.disconnected",error:"connection.error"},_=o==="light"?lh:o==="dark"?Yp:oh,k=m(o==="light"?"theme.light":o==="dark"?"theme.dark":"theme.system"),S=h==="system"?Gp:Mn,E=m(h==="zh"?"locale.zh":h==="en"?"locale.en":"locale.system");return i.jsx("div",{className:"settings-view",children:i.jsx("div",{className:"settings-content",children:i.jsxs("div",{className:"settings-sections",children:[i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("sidebar.connectionStatus")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.status")}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`w-2 h-2 rounded-full ${d}`}),i.jsx("span",{className:"settings-value",children:m(g[e]||"connection.disconnected")})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.sessionId")}),i.jsx("span",{className:"settings-value font-mono text-[12px]",children:t?t.substring(0,12):m("sidebar.notConnected")})]})]})]}),i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.appearance")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.theme")}),i.jsxs("button",{onClick:l,className:"settings-toggle-btn",children:[i.jsx(_,{size:14,className:"text-accent-brand"}),i.jsx("span",{children:k})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.language")}),i.jsxs("button",{onClick:b,className:"settings-toggle-btn",children:[i.jsx(S,{size:14,className:"text-accent-brand"}),i.jsx("span",{children:E})]})]})]})]}),n.length>0&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.model")}),i.jsx("div",{className:"settings-card",children:i.jsx("select",{value:r,onChange:x=>p(x.target.value),className:"settings-select",children:n.map(x=>i.jsx("option",{value:x.id,children:x.name||x.id},x.id))})})]}),a.length>0&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.mode")}),i.jsx("div",{className:"settings-card",children:i.jsx("select",{value:c,onChange:x=>f(x.target.value),className:"settings-select",children:a.map(x=>i.jsx("option",{value:x.id,title:x.description,children:x.name},x.id))})})]}),u&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.systemInfo")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.cwd")}),i.jsxs("button",{onClick:()=>v(u.cwd,"cwd"),className:"settings-copy-btn",title:u.cwd,children:[i.jsx("span",{className:"truncate",children:u.cwd}),y==="cwd"?i.jsx(lt,{size:12,className:"shrink-0 text-accent-green"}):i.jsx(pn,{size:12,className:"shrink-0 text-text-tertiary"})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.os")}),i.jsxs("span",{className:"settings-value",children:[u.os," ",u.arch]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.nodeVersion")}),i.jsx("span",{className:"settings-value",children:u.nodeVersion})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.gatewayMode")}),i.jsx("span",{className:"settings-value capitalize",children:u.gatewayMode})]}),u.tunnelUrl&&i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.tunnelUrl")}),i.jsxs("button",{onClick:()=>v(u.tunnelUrl,"tunnel"),className:"settings-copy-btn",title:u.tunnelUrl,children:[i.jsx("span",{className:"truncate",children:u.tunnelUrl.replace(/^https?:\/\//,"")}),y==="tunnel"?i.jsx(lt,{size:12,className:"shrink-0 text-accent-green"}):i.jsx(pn,{size:12,className:"shrink-0 text-text-tertiary"})]})]})]})]})]})})})}const wb=3e3;function Wu(){const{t:e}=le(),{setMainView:t}=be(),{setExternalInput:r,sessionId:n}=tt(),[a,c]=A.useState([]),[u,s]=A.useState(!0),[o,l]=A.useState(null),[m,h]=A.useState(!1),[b,y]=A.useState(!1),w=A.useRef(n);w.current=n;const v=A.useRef(null),p=A.useCallback(()=>{v.current&&(clearInterval(v.current),v.current=null)},[]),f=A.useCallback(async()=>{const S=new URLSearchParams,E=w.current;E&&S.append("sessionId",E);const x=S.toString(),C=`/api/v1/tasks/templates${x?"?"+x:""}`,I=await fetch(C,{headers:ge()});if(!I.ok)throw new Error(`HTTP ${I.status}`);const R=await I.json(),F=R.data??R;return c(F.templates||[]),l(F.error||null),F.status},[]),d=A.useCallback(()=>{p(),v.current=setInterval(async()=>{try{const S=await f();S!=="loading"&&(p(),h(!1),S==="done"&&(y(!0),setTimeout(()=>y(!1),2e3)))}catch(S){console.error("[TasksView] Poll error:",S),p(),h(!1),l(S.message||"Failed to load templates")}},wb)},[f,p]);A.useEffect(()=>{let S=!1;return(async()=>{try{if(!w.current){if(S)return;s(!1);return}const x=await f();if(S)return;x==="loading"&&(h(!0),d())}catch(E){if(S)return;console.error("[TasksView] Initial fetch error:",E),l(E.message||"Failed to load templates")}finally{S||s(!1)}})(),()=>{S=!0,p()}},[f,d,p,n]);const g=A.useCallback(async()=>{h(!0),l(null),y(!1);try{const S=new URLSearchParams,E=w.current;E&&S.append("sessionId",E);const x=S.toString(),C=`/api/v1/tasks/templates/refresh${x?"?"+x:""}`,I=await fetch(C,{method:"POST",headers:ge()});if(!I.ok)throw new Error(`HTTP ${I.status}`);d()}catch(S){console.error("[TasksView] Refresh trigger error:",S),l(S.message||"Failed to trigger refresh"),h(!1)}},[d]),_=A.useCallback(S=>{r(S.command),t("chat")},[r,t]),k=!u&&a.length===0&&!o;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("tasks.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:e("tasks.subtitle")})]}),i.jsxs("button",{onClick:g,disabled:m,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${b?"border-green-500/50 text-green-500":m?"opacity-50 cursor-not-allowed border-border-default text-text-secondary":"border-border-default text-text-secondary hover:text-text-primary hover:border-accent-brand/50 hover:bg-bg-secondary"}`,title:e("tasks.refresh"),children:[b?i.jsx(lt,{size:16}):i.jsx(Ot,{size:16,className:m?"animate-spin":""}),i.jsx("span",{className:"text-sm",children:e(b?"tasks.refreshed":"tasks.refresh")})]})]})}),i.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[u&&!m&&i.jsx("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:i.jsx(et,{size:"small",text:e("tasks.loading")})}),o&&!u&&i.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"⚠"}),i.jsx("div",{className:"text-text-secondary text-sm mb-4",children:e("tasks.error")}),i.jsx("button",{onClick:g,className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:e("tasks.retry")})]})}),k&&i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[i.jsx(Hp,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-sm font-medium mb-1",children:e("tasks.empty")})]}),a.length>0&&i.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 max-w-6xl transition-opacity duration-300 ${m?"opacity-50 pointer-events-none":"opacity-100"}`,children:a.map(S=>{const E=kb(S.icon);return i.jsxs("div",{onClick:()=>_(S),className:"group flex items-center gap-4 px-4 py-3.5 rounded-xl border border-border-default hover:border-accent-brand/40 hover:bg-bg-secondary/60 transition-all cursor-pointer",children:[i.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-bg-secondary flex items-center justify-center group-hover:bg-accent-brand/10 transition-colors",children:i.jsx(E,{size:20,className:"text-text-tertiary group-hover:text-accent-brand transition-colors"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("h3",{className:"text-sm font-semibold text-text-primary truncate",children:S.title}),i.jsx("p",{className:"text-xs text-text-tertiary mt-0.5 truncate",children:S.description})]})]},S.id)})})]})]})}function kb(e){switch(e){case"Newspaper":return hc;case"MessageSquare":return hc;case"GitBranch":return Up;case"Package":return Xp;case"FileText":return ct;case"Zap":return ch;case"Clock":return cc;default:return cc}}var sn={exports:{}},ud;function Eb(){return ud||(ud=1,(function(e,t){(function(r,n){e.exports=n()})(self,(()=>(()=>{var r={};return(()=>{var n=r;Object.defineProperty(n,"__esModule",{value:!0}),n.FitAddon=void 0,n.FitAddon=class{activate(a){this._terminal=a}dispose(){}fit(){const a=this.proposeDimensions();if(!a||!this._terminal||isNaN(a.cols)||isNaN(a.rows))return;const c=this._terminal._core;this._terminal.rows===a.rows&&this._terminal.cols===a.cols||(c._renderService.clear(),this._terminal.resize(a.cols,a.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const a=this._terminal._core,c=a._renderService.dimensions;if(c.css.cell.width===0||c.css.cell.height===0)return;const u=this._terminal.options.scrollback===0?0:a.viewport.scrollBarWidth,s=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(s.getPropertyValue("height")),l=Math.max(0,parseInt(s.getPropertyValue("width"))),m=window.getComputedStyle(this._terminal.element),h=o-(parseInt(m.getPropertyValue("padding-top"))+parseInt(m.getPropertyValue("padding-bottom"))),b=l-(parseInt(m.getPropertyValue("padding-right"))+parseInt(m.getPropertyValue("padding-left")))-u;return{cols:Math.max(2,Math.floor(b/c.css.cell.width)),rows:Math.max(1,Math.floor(h/c.css.cell.height))}}}})(),r})()))})(sn)),sn.exports}var Cb=Eb(),an={exports:{}},pd;function Tb(){return pd||(pd=1,(function(e,t){(function(r,n){e.exports=n()})(globalThis,(()=>(()=>{var r={4567:function(u,s,o){var l=this&&this.__decorate||function(d,g,_,k){var S,E=arguments.length,x=E<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,_):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(d,g,_,k);else for(var C=d.length-1;C>=0;C--)(S=d[C])&&(x=(E<3?S(x):E>3?S(g,_,x):S(g,_))||x);return E>3&&x&&Object.defineProperty(g,_,x),x},m=this&&this.__param||function(d,g){return function(_,k){g(_,k,d)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const h=o(9042),b=o(9924),y=o(844),w=o(4725),v=o(2585),p=o(3656);let f=s.AccessibilityManager=class extends y.Disposable{constructor(d,g,_,k){super(),this._terminal=d,this._coreBrowserService=_,this._renderService=k,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let S=0;S<this._terminal.rows;S++)this._rowElements[S]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[S]);if(this._topBoundaryFocusListener=S=>this._handleBoundaryFocus(S,0),this._bottomBoundaryFocusListener=S=>this._handleBoundaryFocus(S,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new b.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((S=>this._handleResize(S.rows)))),this.register(this._terminal.onRender((S=>this._refreshRows(S.start,S.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((S=>this._handleChar(S)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
485
- `)))),this.register(this._terminal.onA11yTab((S=>this._handleTab(S)))),this.register(this._terminal.onKey((S=>this._handleKey(S.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,p.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,y.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(d){for(let g=0;g<d;g++)this._handleChar(" ")}_handleChar(d){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==d&&(this._charsToAnnounce+=d):this._charsToAnnounce+=d,d===`
486
- `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(d){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(d)||this._charsToConsume.push(d)}_refreshRows(d,g){this._liveRegionDebouncer.refresh(d,g,this._terminal.rows)}_renderRows(d,g){const _=this._terminal.buffer,k=_.lines.length.toString();for(let S=d;S<=g;S++){const E=_.lines.get(_.ydisp+S),x=[],C=(E==null?void 0:E.translateToString(!0,void 0,void 0,x))||"",I=(_.ydisp+S+1).toString(),R=this._rowElements[S];R&&(C.length===0?(R.innerText=" ",this._rowColumns.set(R,[0,1])):(R.textContent=C,this._rowColumns.set(R,x)),R.setAttribute("aria-posinset",I),R.setAttribute("aria-setsize",k))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(d,g){const _=d.target,k=this._rowElements[g===0?1:this._rowElements.length-2];if(_.getAttribute("aria-posinset")===(g===0?"1":`${this._terminal.buffer.lines.length}`)||d.relatedTarget!==k)return;let S,E;if(g===0?(S=_,E=this._rowElements.pop(),this._rowContainer.removeChild(E)):(S=this._rowElements.shift(),E=_,this._rowContainer.removeChild(S)),S.removeEventListener("focus",this._topBoundaryFocusListener),E.removeEventListener("focus",this._bottomBoundaryFocusListener),g===0){const x=this._createAccessibilityTreeNode();this._rowElements.unshift(x),this._rowContainer.insertAdjacentElement("afterbegin",x)}else{const x=this._createAccessibilityTreeNode();this._rowElements.push(x),this._rowContainer.appendChild(x)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(g===0?-1:1),this._rowElements[g===0?1:this._rowElements.length-2].focus(),d.preventDefault(),d.stopImmediatePropagation()}_handleSelectionChange(){var C;if(this._rowElements.length===0)return;const d=document.getSelection();if(!d)return;if(d.isCollapsed)return void(this._rowContainer.contains(d.anchorNode)&&this._terminal.clearSelection());if(!d.anchorNode||!d.focusNode)return void console.error("anchorNode and/or focusNode are null");let g={node:d.anchorNode,offset:d.anchorOffset},_={node:d.focusNode,offset:d.focusOffset};if((g.node.compareDocumentPosition(_.node)&Node.DOCUMENT_POSITION_PRECEDING||g.node===_.node&&g.offset>_.offset)&&([g,_]=[_,g]),g.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(g={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(g.node))return;const k=this._rowElements.slice(-1)[0];if(_.node.compareDocumentPosition(k)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(_={node:k,offset:((C=k.textContent)==null?void 0:C.length)??0}),!this._rowContainer.contains(_.node))return;const S=({node:I,offset:R})=>{const F=I instanceof Text?I.parentNode:I;let N=parseInt(F==null?void 0:F.getAttribute("aria-posinset"),10)-1;if(isNaN(N))return console.warn("row is invalid. Race condition?"),null;const B=this._rowColumns.get(F);if(!B)return console.warn("columns is null. Race condition?"),null;let P=R<B.length?B[R]:B.slice(-1)[0]+1;return P>=this._terminal.cols&&(++N,P=0),{row:N,column:P}},E=S(g),x=S(_);if(E&&x){if(E.row>x.row||E.row===x.row&&E.column>=x.column)throw new Error("invalid range");this._terminal.select(E.column,E.row,(x.row-E.row)*this._terminal.cols-E.column+x.column)}}_handleResize(d){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let g=this._rowContainer.children.length;g<this._terminal.rows;g++)this._rowElements[g]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[g]);for(;this._rowElements.length>d;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const d=this._coreBrowserService.mainDocument.createElement("div");return d.setAttribute("role","listitem"),d.tabIndex=-1,this._refreshRowDimensions(d),d}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let d=0;d<this._terminal.rows;d++)this._refreshRowDimensions(this._rowElements[d])}}_refreshRowDimensions(d){d.style.height=`${this._renderService.dimensions.css.cell.height}px`}};s.AccessibilityManager=f=l([m(1,v.IInstantiationService),m(2,w.ICoreBrowserService),m(3,w.IRenderService)],f)},3614:(u,s)=>{function o(b){return b.replace(/\r?\n/g,"\r")}function l(b,y){return y?"\x1B[200~"+b+"\x1B[201~":b}function m(b,y,w,v){b=l(b=o(b),w.decPrivateModes.bracketedPasteMode&&v.rawOptions.ignoreBracketedPasteMode!==!0),w.triggerDataEvent(b,!0),y.value=""}function h(b,y,w){const v=w.getBoundingClientRect(),p=b.clientX-v.left-10,f=b.clientY-v.top-10;y.style.width="20px",y.style.height="20px",y.style.left=`${p}px`,y.style.top=`${f}px`,y.style.zIndex="1000",y.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=o,s.bracketTextForPaste=l,s.copyHandler=function(b,y){b.clipboardData&&b.clipboardData.setData("text/plain",y.selectionText),b.preventDefault()},s.handlePasteEvent=function(b,y,w,v){b.stopPropagation(),b.clipboardData&&m(b.clipboardData.getData("text/plain"),y,w,v)},s.paste=m,s.moveTextAreaUnderMouseCursor=h,s.rightClickHandler=function(b,y,w,v,p){h(b,y,w),p&&v.rightClickSelect(b),y.value=v.selectionText,y.select()}},7239:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const l=o(1505);s.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(m,h,b){this._css.set(m,h,b)}getCss(m,h){return this._css.get(m,h)}setColor(m,h,b){this._color.set(m,h,b)}getColor(m,h){return this._color.get(m,h)}clear(){this._color.clear(),this._css.clear()}}},3656:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(o,l,m,h){o.addEventListener(l,m,h);let b=!1;return{dispose:()=>{b||(b=!0,o.removeEventListener(l,m,h))}}}},3551:function(u,s,o){var l=this&&this.__decorate||function(f,d,g,_){var k,S=arguments.length,E=S<3?d:_===null?_=Object.getOwnPropertyDescriptor(d,g):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,_);else for(var x=f.length-1;x>=0;x--)(k=f[x])&&(E=(S<3?k(E):S>3?k(d,g,E):k(d,g))||E);return S>3&&E&&Object.defineProperty(d,g,E),E},m=this&&this.__param||function(f,d){return function(g,_){d(g,_,f)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const h=o(3656),b=o(8460),y=o(844),w=o(2585),v=o(4725);let p=s.Linkifier=class extends y.Disposable{get currentLink(){return this._currentLink}constructor(f,d,g,_,k){super(),this._element=f,this._mouseService=d,this._renderService=g,this._bufferService=_,this._linkProviderService=k,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new b.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new b.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,y.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,y.toDisposable)((()=>{var S;this._lastMouseEvent=void 0,(S=this._activeProviderReplies)==null||S.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(f){this._lastMouseEvent=f;const d=this._positionFromMouseEvent(f,this._element,this._mouseService);if(!d)return;this._isMouseOut=!1;const g=f.composedPath();for(let _=0;_<g.length;_++){const k=g[_];if(k.classList.contains("xterm"))break;if(k.classList.contains("xterm-hover"))return}this._lastBufferCell&&d.x===this._lastBufferCell.x&&d.y===this._lastBufferCell.y||(this._handleHover(d),this._lastBufferCell=d)}_handleHover(f){if(this._activeLine!==f.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(f,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,f)||(this._clearCurrentLink(),this._askForLink(f,!0))}_askForLink(f,d){var _,k;this._activeProviderReplies&&d||((_=this._activeProviderReplies)==null||_.forEach((S=>{S==null||S.forEach((E=>{E.link.dispose&&E.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=f.y);let g=!1;for(const[S,E]of this._linkProviderService.linkProviders.entries())d?(k=this._activeProviderReplies)!=null&&k.get(S)&&(g=this._checkLinkProviderResult(S,f,g)):E.provideLinks(f.y,(x=>{var I,R;if(this._isMouseOut)return;const C=x==null?void 0:x.map((F=>({link:F})));(I=this._activeProviderReplies)==null||I.set(S,C),g=this._checkLinkProviderResult(S,f,g),((R=this._activeProviderReplies)==null?void 0:R.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(f.y,this._activeProviderReplies)}))}_removeIntersectingLinks(f,d){const g=new Set;for(let _=0;_<d.size;_++){const k=d.get(_);if(k)for(let S=0;S<k.length;S++){const E=k[S],x=E.link.range.start.y<f?0:E.link.range.start.x,C=E.link.range.end.y>f?this._bufferService.cols:E.link.range.end.x;for(let I=x;I<=C;I++){if(g.has(I)){k.splice(S--,1);break}g.add(I)}}}}_checkLinkProviderResult(f,d,g){var S;if(!this._activeProviderReplies)return g;const _=this._activeProviderReplies.get(f);let k=!1;for(let E=0;E<f;E++)this._activeProviderReplies.has(E)&&!this._activeProviderReplies.get(E)||(k=!0);if(!k&&_){const E=_.find((x=>this._linkAtPosition(x.link,d)));E&&(g=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!g)for(let E=0;E<this._activeProviderReplies.size;E++){const x=(S=this._activeProviderReplies.get(E))==null?void 0:S.find((C=>this._linkAtPosition(C.link,d)));if(x){g=!0,this._handleNewLink(x);break}}return g}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(f){if(!this._currentLink)return;const d=this._positionFromMouseEvent(f,this._element,this._mouseService);d&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,d)&&this._currentLink.link.activate(f,this._currentLink.link.text)}_clearCurrentLink(f,d){this._currentLink&&this._lastMouseEvent&&(!f||!d||this._currentLink.link.range.start.y>=f&&this._currentLink.link.range.end.y<=d)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,y.disposeArray)(this._linkCacheDisposables))}_handleNewLink(f){if(!this._lastMouseEvent)return;const d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._linkAtPosition(f.link,d)&&(this._currentLink=f,this._currentLink.state={decorations:{underline:f.link.decorations===void 0||f.link.decorations.underline,pointerCursor:f.link.decorations===void 0||f.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,f.link,this._lastMouseEvent),f.link.decorations={},Object.defineProperties(f.link.decorations,{pointerCursor:{get:()=>{var g,_;return(_=(g=this._currentLink)==null?void 0:g.state)==null?void 0:_.decorations.pointerCursor},set:g=>{var _;(_=this._currentLink)!=null&&_.state&&this._currentLink.state.decorations.pointerCursor!==g&&(this._currentLink.state.decorations.pointerCursor=g,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",g))}},underline:{get:()=>{var g,_;return(_=(g=this._currentLink)==null?void 0:g.state)==null?void 0:_.decorations.underline},set:g=>{var _,k,S;(_=this._currentLink)!=null&&_.state&&((S=(k=this._currentLink)==null?void 0:k.state)==null?void 0:S.decorations.underline)!==g&&(this._currentLink.state.decorations.underline=g,this._currentLink.state.isHovered&&this._fireUnderlineEvent(f.link,g))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((g=>{if(!this._currentLink)return;const _=g.start===0?0:g.start+1+this._bufferService.buffer.ydisp,k=this._bufferService.buffer.ydisp+1+g.end;if(this._currentLink.link.range.start.y>=_&&this._currentLink.link.range.end.y<=k&&(this._clearCurrentLink(_,k),this._lastMouseEvent)){const S=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);S&&this._askForLink(S,!1)}}))))}_linkHover(f,d,g){var _;(_=this._currentLink)!=null&&_.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!0),this._currentLink.state.decorations.pointerCursor&&f.classList.add("xterm-cursor-pointer")),d.hover&&d.hover(g,d.text)}_fireUnderlineEvent(f,d){const g=f.range,_=this._bufferService.buffer.ydisp,k=this._createLinkUnderlineEvent(g.start.x-1,g.start.y-_-1,g.end.x,g.end.y-_-1,void 0);(d?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(k)}_linkLeave(f,d,g){var _;(_=this._currentLink)!=null&&_.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!1),this._currentLink.state.decorations.pointerCursor&&f.classList.remove("xterm-cursor-pointer")),d.leave&&d.leave(g,d.text)}_linkAtPosition(f,d){const g=f.range.start.y*this._bufferService.cols+f.range.start.x,_=f.range.end.y*this._bufferService.cols+f.range.end.x,k=d.y*this._bufferService.cols+d.x;return g<=k&&k<=_}_positionFromMouseEvent(f,d,g){const _=g.getCoords(f,d,this._bufferService.cols,this._bufferService.rows);if(_)return{x:_[0],y:_[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(f,d,g,_,k){return{x1:f,y1:d,x2:g,y2:_,cols:this._bufferService.cols,fg:k}}};s.Linkifier=p=l([m(1,v.IMouseService),m(2,v.IRenderService),m(3,w.IBufferService),m(4,v.ILinkProviderService)],p)},9042:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(u,s,o){var l=this&&this.__decorate||function(v,p,f,d){var g,_=arguments.length,k=_<3?p:d===null?d=Object.getOwnPropertyDescriptor(p,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(v,p,f,d);else for(var S=v.length-1;S>=0;S--)(g=v[S])&&(k=(_<3?g(k):_>3?g(p,f,k):g(p,f))||k);return _>3&&k&&Object.defineProperty(p,f,k),k},m=this&&this.__param||function(v,p){return function(f,d){p(f,d,v)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const h=o(511),b=o(2585);let y=s.OscLinkProvider=class{constructor(v,p,f){this._bufferService=v,this._optionsService=p,this._oscLinkService=f}provideLinks(v,p){var C;const f=this._bufferService.buffer.lines.get(v-1);if(!f)return void p(void 0);const d=[],g=this._optionsService.rawOptions.linkHandler,_=new h.CellData,k=f.getTrimmedLength();let S=-1,E=-1,x=!1;for(let I=0;I<k;I++)if(E!==-1||f.hasContent(I)){if(f.loadCell(I,_),_.hasExtendedAttrs()&&_.extended.urlId){if(E===-1){E=I,S=_.extended.urlId;continue}x=_.extended.urlId!==S}else E!==-1&&(x=!0);if(x||E!==-1&&I===k-1){const R=(C=this._oscLinkService.getLinkData(S))==null?void 0:C.uri;if(R){const F={start:{x:E+1,y:v},end:{x:I+(x||I!==k-1?0:1),y:v}};let N=!1;if(!(g!=null&&g.allowNonHttpProtocols))try{const B=new URL(R);["http:","https:"].includes(B.protocol)||(N=!0)}catch{N=!0}N||d.push({text:R,range:F,activate:(B,P)=>g?g.activate(B,P,F):w(0,P),hover:(B,P)=>{var j;return(j=g==null?void 0:g.hover)==null?void 0:j.call(g,B,P,F)},leave:(B,P)=>{var j;return(j=g==null?void 0:g.leave)==null?void 0:j.call(g,B,P,F)}})}x=!1,_.hasExtendedAttrs()&&_.extended.urlId?(E=I,S=_.extended.urlId):(E=-1,S=-1)}}p(d)}};function w(v,p){if(confirm(`Do you want to navigate to ${p}?
487
-
488
- WARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch{}f.location.href=p}else console.warn("Opening link blocked as opener could not be cleared")}}s.OscLinkProvider=y=l([m(0,b.IBufferService),m(1,b.IOptionsService),m(2,b.IOscLinkService)],y)},6193:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.RenderDebouncer=void 0,s.RenderDebouncer=class{constructor(o,l){this._renderCallback=o,this._coreBrowserService=l,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(o){return this._refreshCallbacks.push(o),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(o,l,m){this._rowCount=m,o=o!==void 0?o:0,l=l!==void 0?l:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,l):l,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const o=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,l),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},3236:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Terminal=void 0;const l=o(3614),m=o(3656),h=o(3551),b=o(9042),y=o(3730),w=o(1680),v=o(3107),p=o(5744),f=o(2950),d=o(1296),g=o(428),_=o(4269),k=o(5114),S=o(8934),E=o(3230),x=o(9312),C=o(4725),I=o(6731),R=o(8055),F=o(8969),N=o(8460),B=o(844),P=o(6114),j=o(8437),U=o(2584),H=o(7399),T=o(5941),D=o(9074),M=o(2585),L=o(5435),W=o(4567),V=o(779);class Q extends F.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(z={}){super(z),this.browser=P,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new B.MutableDisposable),this._onCursorMove=this.register(new N.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new N.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new N.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new N.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new N.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new N.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new N.EventEmitter),this._onBlur=this.register(new N.EventEmitter),this._onA11yCharEmitter=this.register(new N.EventEmitter),this._onA11yTabEmitter=this.register(new N.EventEmitter),this._onWillOpen=this.register(new N.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(D.DecorationService),this._instantiationService.setService(M.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(V.LinkProviderService),this._instantiationService.setService(C.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(y.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((O,K)=>this.refresh(O,K)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((O=>this._reportWindowsOptions(O)))),this.register(this._inputHandler.onColor((O=>this._handleColorEvent(O)))),this.register((0,N.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,N.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,N.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,N.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((O=>this._afterResize(O.cols,O.rows)))),this.register((0,B.toDisposable)((()=>{var O,K;this._customKeyEventHandler=void 0,(K=(O=this.element)==null?void 0:O.parentNode)==null||K.removeChild(this.element)})))}_handleColorEvent(z){if(this._themeService)for(const O of z){let K,q="";switch(O.index){case 256:K="foreground",q="10";break;case 257:K="background",q="11";break;case 258:K="cursor",q="12";break;default:K="ansi",q="4;"+O.index}switch(O.type){case 0:const ee=R.color.toColorRGB(K==="ansi"?this._themeService.colors.ansi[O.index]:this._themeService.colors[K]);this.coreService.triggerDataEvent(`${U.C0.ESC}]${q};${(0,T.toRgbString)(ee)}${U.C1_ESCAPED.ST}`);break;case 1:if(K==="ansi")this._themeService.modifyColors((J=>J.ansi[O.index]=R.channels.toColor(...O.color)));else{const J=K;this._themeService.modifyColors((oe=>oe[J]=R.channels.toColor(...O.color)))}break;case 2:this._themeService.restoreColor(O.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(z){z?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(W.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(z){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(U.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var z;return(z=this.textarea)==null?void 0:z.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(U.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const z=this.buffer.ybase+this.buffer.y,O=this.buffer.lines.get(z);if(!O)return;const K=Math.min(this.buffer.x,this.cols-1),q=this._renderService.dimensions.css.cell.height,ee=O.getWidth(K),J=this._renderService.dimensions.css.cell.width*ee,oe=this.buffer.y*this._renderService.dimensions.css.cell.height,Z=K*this._renderService.dimensions.css.cell.width;this.textarea.style.left=Z+"px",this.textarea.style.top=oe+"px",this.textarea.style.width=J+"px",this.textarea.style.height=q+"px",this.textarea.style.lineHeight=q+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,m.addDisposableDomListener)(this.element,"copy",(O=>{this.hasSelection()&&(0,l.copyHandler)(O,this._selectionService)})));const z=O=>(0,l.handlePasteEvent)(O,this.textarea,this.coreService,this.optionsService);this.register((0,m.addDisposableDomListener)(this.textarea,"paste",z)),this.register((0,m.addDisposableDomListener)(this.element,"paste",z)),P.isFirefox?this.register((0,m.addDisposableDomListener)(this.element,"mousedown",(O=>{O.button===2&&(0,l.rightClickHandler)(O,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,m.addDisposableDomListener)(this.element,"contextmenu",(O=>{(0,l.rightClickHandler)(O,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),P.isLinux&&this.register((0,m.addDisposableDomListener)(this.element,"auxclick",(O=>{O.button===1&&(0,l.moveTextAreaUnderMouseCursor)(O,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,m.addDisposableDomListener)(this.textarea,"keyup",(z=>this._keyUp(z)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keydown",(z=>this._keyDown(z)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keypress",(z=>this._keyPress(z)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionupdate",(z=>this._compositionHelper.compositionupdate(z)))),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,m.addDisposableDomListener)(this.textarea,"input",(z=>this._inputEvent(z)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(z){var K;if(!z)throw new Error("Terminal requires a parent element.");if(z.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((K=this.element)==null?void 0:K.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=z.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),z.appendChild(this.element);const O=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),O.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,m.addDisposableDomListener)(this.screenElement,"mousemove",(q=>this.updateCursorStyle(q)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),O.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",b.promptLabel),P.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(k.CoreBrowserService,this.textarea,z.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(C.ICoreBrowserService,this._coreBrowserService),this.register((0,m.addDisposableDomListener)(this.textarea,"focus",(q=>this._handleTextAreaFocus(q)))),this.register((0,m.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(g.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(C.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(I.ThemeService),this._instantiationService.setService(C.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(_.CharacterJoinerService),this._instantiationService.setService(C.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(C.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((q=>this._onRender.fire(q)))),this.onResize((q=>this._renderService.resize(q.cols,q.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(S.MouseService),this._instantiationService.setService(C.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(h.Linkifier,this.screenElement)),this.element.appendChild(O);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(w.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((q=>this.scrollLines(q.amount,q.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(x.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(C.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((q=>this.scrollLines(q.amount,q.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((q=>this._renderService.handleSelectionChanged(q.start,q.end,q.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((q=>{this.textarea.value=q,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((q=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,m.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(v.BufferDecorationRenderer,this.screenElement)),this.register((0,m.addDisposableDomListener)(this.element,"mousedown",(q=>this._selectionService.handleMouseDown(q)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(W.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(q=>this._handleScreenReaderModeOptionChange(q)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(p.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(q=>{!this._overviewRulerRenderer&&q&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(p.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(d.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const z=this,O=this.element;function K(J){const oe=z._mouseService.getMouseReportCoords(J,z.screenElement);if(!oe)return!1;let Z,se;switch(J.overrideType||J.type){case"mousemove":se=32,J.buttons===void 0?(Z=3,J.button!==void 0&&(Z=J.button<3?J.button:3)):Z=1&J.buttons?0:4&J.buttons?1:2&J.buttons?2:3;break;case"mouseup":se=0,Z=J.button<3?J.button:3;break;case"mousedown":se=1,Z=J.button<3?J.button:3;break;case"wheel":if(z._customWheelEventHandler&&z._customWheelEventHandler(J)===!1||z.viewport.getLinesScrolled(J)===0)return!1;se=J.deltaY<0?0:1,Z=4;break;default:return!1}return!(se===void 0||Z===void 0||Z>4)&&z.coreMouseService.triggerMouseEvent({col:oe.col,row:oe.row,x:oe.x,y:oe.y,button:Z,action:se,ctrl:J.ctrlKey,alt:J.altKey,shift:J.shiftKey})}const q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ee={mouseup:J=>(K(J),J.buttons||(this._document.removeEventListener("mouseup",q.mouseup),q.mousedrag&&this._document.removeEventListener("mousemove",q.mousedrag)),this.cancel(J)),wheel:J=>(K(J),this.cancel(J,!0)),mousedrag:J=>{J.buttons&&K(J)},mousemove:J=>{J.buttons||K(J)}};this.register(this.coreMouseService.onProtocolChange((J=>{J?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(J)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&J?q.mousemove||(O.addEventListener("mousemove",ee.mousemove),q.mousemove=ee.mousemove):(O.removeEventListener("mousemove",q.mousemove),q.mousemove=null),16&J?q.wheel||(O.addEventListener("wheel",ee.wheel,{passive:!1}),q.wheel=ee.wheel):(O.removeEventListener("wheel",q.wheel),q.wheel=null),2&J?q.mouseup||(q.mouseup=ee.mouseup):(this._document.removeEventListener("mouseup",q.mouseup),q.mouseup=null),4&J?q.mousedrag||(q.mousedrag=ee.mousedrag):(this._document.removeEventListener("mousemove",q.mousedrag),q.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,m.addDisposableDomListener)(O,"mousedown",(J=>{if(J.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(J))return K(J),q.mouseup&&this._document.addEventListener("mouseup",q.mouseup),q.mousedrag&&this._document.addEventListener("mousemove",q.mousedrag),this.cancel(J)}))),this.register((0,m.addDisposableDomListener)(O,"wheel",(J=>{if(!q.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(J)===!1)return!1;if(!this.buffer.hasScrollback){const oe=this.viewport.getLinesScrolled(J);if(oe===0)return;const Z=U.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(J.deltaY<0?"A":"B");let se="";for(let ce=0;ce<Math.abs(oe);ce++)se+=Z;return this.coreService.triggerDataEvent(se,!0),this.cancel(J,!0)}return this.viewport.handleWheel(J)?this.cancel(J):void 0}}),{passive:!1})),this.register((0,m.addDisposableDomListener)(O,"touchstart",(J=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(J),this.cancel(J)}),{passive:!0})),this.register((0,m.addDisposableDomListener)(O,"touchmove",(J=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(J)?void 0:this.cancel(J)}),{passive:!1}))}refresh(z,O){var K;(K=this._renderService)==null||K.refreshRows(z,O)}updateCursorStyle(z){var O;(O=this._selectionService)!=null&&O.shouldColumnSelect(z)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(z,O,K=0){var q;K===1?(super.scrollLines(z,O,K),this.refresh(0,this.rows-1)):(q=this.viewport)==null||q.scrollLines(z)}paste(z){(0,l.paste)(z,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(z){this._customKeyEventHandler=z}attachCustomWheelEventHandler(z){this._customWheelEventHandler=z}registerLinkProvider(z){return this._linkProviderService.registerLinkProvider(z)}registerCharacterJoiner(z){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const O=this._characterJoinerService.register(z);return this.refresh(0,this.rows-1),O}deregisterCharacterJoiner(z){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(z)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(z){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+z)}registerDecoration(z){return this._decorationService.registerDecoration(z)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(z,O,K){this._selectionService.setSelection(z,O,K)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var z;(z=this._selectionService)==null||z.clearSelection()}selectAll(){var z;(z=this._selectionService)==null||z.selectAll()}selectLines(z,O){var K;(K=this._selectionService)==null||K.selectLines(z,O)}_keyDown(z){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;const O=this.browser.isMac&&this.options.macOptionIsMeta&&z.altKey;if(!O&&!this._compositionHelper.keydown(z))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;O||z.key!=="Dead"&&z.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const K=(0,H.evaluateKeyboardEvent)(z,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(z),K.type===3||K.type===2){const q=this.rows-1;return this.scrollLines(K.type===2?-q:q),this.cancel(z,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,z)||(K.cancel&&this.cancel(z,!0),!K.key||!!(z.key&&!z.ctrlKey&&!z.altKey&&!z.metaKey&&z.key.length===1&&z.key.charCodeAt(0)>=65&&z.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(K.key!==U.C0.ETX&&K.key!==U.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:z}),this._showCursor(),this.coreService.triggerDataEvent(K.key,!0),!this.optionsService.rawOptions.screenReaderMode||z.altKey||z.ctrlKey?this.cancel(z,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(z,O){const K=z.isMac&&!this.options.macOptionIsMeta&&O.altKey&&!O.ctrlKey&&!O.metaKey||z.isWindows&&O.altKey&&O.ctrlKey&&!O.metaKey||z.isWindows&&O.getModifierState("AltGraph");return O.type==="keypress"?K:K&&(!O.keyCode||O.keyCode>47)}_keyUp(z){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1||((function(O){return O.keyCode===16||O.keyCode===17||O.keyCode===18})(z)||this.focus(),this.updateCursorStyle(z),this._keyPressHandled=!1)}_keyPress(z){let O;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;if(this.cancel(z),z.charCode)O=z.charCode;else if(z.which===null||z.which===void 0)O=z.keyCode;else{if(z.which===0||z.charCode===0)return!1;O=z.which}return!(!O||(z.altKey||z.ctrlKey||z.metaKey)&&!this._isThirdLevelShift(this.browser,z)||(O=String.fromCharCode(O),this._onKey.fire({key:O,domEvent:z}),this._showCursor(),this.coreService.triggerDataEvent(O,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(z){if(z.data&&z.inputType==="insertText"&&(!z.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const O=z.data;return this.coreService.triggerDataEvent(O,!0),this.cancel(z),!0}return!1}resize(z,O){z!==this.cols||O!==this.rows?super.resize(z,O):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(z,O){var K,q;(K=this._charSizeService)==null||K.measure(),(q=this.viewport)==null||q.syncScrollArea(!0)}clear(){var z;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let O=1;O<this.rows;O++)this.buffer.lines.push(this.buffer.getBlankLine(j.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(z=this.viewport)==null||z.reset(),this.refresh(0,this.rows-1)}}reset(){var O,K;this.options.rows=this.rows,this.options.cols=this.cols;const z=this._customKeyEventHandler;this._setup(),super.reset(),(O=this._selectionService)==null||O.reset(),this._decorationService.reset(),(K=this.viewport)==null||K.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1)}clearTextureAtlas(){var z;(z=this._renderService)==null||z.clearTextureAtlas()}_reportFocus(){var z;(z=this.element)!=null&&z.classList.contains("focus")?this.coreService.triggerDataEvent(U.C0.ESC+"[I"):this.coreService.triggerDataEvent(U.C0.ESC+"[O")}_reportWindowsOptions(z){if(this._renderService)switch(z){case L.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const O=this._renderService.dimensions.css.canvas.width.toFixed(0),K=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${U.C0.ESC}[4;${K};${O}t`);break;case L.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const q=this._renderService.dimensions.css.cell.width.toFixed(0),ee=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${U.C0.ESC}[6;${ee};${q}t`)}}cancel(z,O){if(this.options.cancelEvents||O)return z.preventDefault(),z.stopPropagation(),!1}}s.Terminal=Q},9924:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TimeBasedDebouncer=void 0,s.TimeBasedDebouncer=class{constructor(o,l=1e3){this._renderCallback=o,this._debounceThresholdMS=l,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,l,m){this._rowCount=m,o=o!==void 0?o:0,l=l!==void 0?l:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,l):l;const h=Date.now();if(h-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=h,this._innerRefresh();else if(!this._additionalRefreshRequested){const b=h-this._lastRefreshMs,y=this._debounceThresholdMS-b;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),y)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const o=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,l)}}},1680:function(u,s,o){var l=this&&this.__decorate||function(f,d,g,_){var k,S=arguments.length,E=S<3?d:_===null?_=Object.getOwnPropertyDescriptor(d,g):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,_);else for(var x=f.length-1;x>=0;x--)(k=f[x])&&(E=(S<3?k(E):S>3?k(d,g,E):k(d,g))||E);return S>3&&E&&Object.defineProperty(d,g,E),E},m=this&&this.__param||function(f,d){return function(g,_){d(g,_,f)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Viewport=void 0;const h=o(3656),b=o(4725),y=o(8460),w=o(844),v=o(2585);let p=s.Viewport=class extends w.Disposable{constructor(f,d,g,_,k,S,E,x){super(),this._viewportElement=f,this._scrollArea=d,this._bufferService=g,this._optionsService=_,this._charSizeService=k,this._renderService=S,this._coreBrowserService=E,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new y.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,h.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((C=>this._activeBuffer=C.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((C=>this._renderDimensions=C))),this._handleThemeChange(x.colors),this.register(x.onChangeColors((C=>this._handleThemeChange(C)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(f){this._viewportElement.style.backgroundColor=f.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(f){if(f)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const d=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==d&&(this._lastRecordedBufferHeight=d,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const f=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==f&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=f),this._refreshAnimationFrame=null}syncScrollArea(f=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(f);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(f)}_handleScroll(f){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const d=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:d,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const f=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(f*(this._smoothScrollState.target-this._smoothScrollState.origin)),f<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(f,d){const g=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(d<0&&this._viewportElement.scrollTop!==0||d>0&&g<this._lastRecordedBufferHeight)||(f.cancelable&&f.preventDefault(),!1)}handleWheel(f){const d=this._getPixelsScrolled(f);return d!==0&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target===-1?this._smoothScrollState.target=this._viewportElement.scrollTop+d:this._smoothScrollState.target+=d,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=d,this._bubbleScroll(f,d))}scrollLines(f){if(f!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const d=f*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+d,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:f,suppressScrollEvent:!1})}_getPixelsScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let d=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_LINE?d*=this._currentRowHeight:f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(d*=this._currentRowHeight*this._bufferService.rows),d}getBufferElements(f,d){var x;let g,_="";const k=[],S=d??this._bufferService.buffer.lines.length,E=this._bufferService.buffer.lines;for(let C=f;C<S;C++){const I=E.get(C);if(!I)continue;const R=(x=E.get(C+1))==null?void 0:x.isWrapped;if(_+=I.translateToString(!R),!R||C===E.length-1){const F=document.createElement("div");F.textContent=_,k.push(F),_.length>0&&(g=F),_=""}}return{bufferElements:k,cursorElement:g}}getLinesScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let d=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(d/=this._currentRowHeight+0,this._wheelPartialScroll+=d,d=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(d*=this._bufferService.rows),d}_applyScrollModifier(f,d){const g=this._optionsService.rawOptions.fastScrollModifier;return g==="alt"&&d.altKey||g==="ctrl"&&d.ctrlKey||g==="shift"&&d.shiftKey?f*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:f*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(f){this._lastTouchY=f.touches[0].pageY}handleTouchMove(f){const d=this._lastTouchY-f.touches[0].pageY;return this._lastTouchY=f.touches[0].pageY,d!==0&&(this._viewportElement.scrollTop+=d,this._bubbleScroll(f,d))}};s.Viewport=p=l([m(2,v.IBufferService),m(3,v.IOptionsService),m(4,b.ICharSizeService),m(5,b.IRenderService),m(6,b.ICoreBrowserService),m(7,b.IThemeService)],p)},3107:function(u,s,o){var l=this&&this.__decorate||function(v,p,f,d){var g,_=arguments.length,k=_<3?p:d===null?d=Object.getOwnPropertyDescriptor(p,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(v,p,f,d);else for(var S=v.length-1;S>=0;S--)(g=v[S])&&(k=(_<3?g(k):_>3?g(p,f,k):g(p,f))||k);return _>3&&k&&Object.defineProperty(p,f,k),k},m=this&&this.__param||function(v,p){return function(f,d){p(f,d,v)}};Object.defineProperty(s,"__esModule",{value:!0}),s.BufferDecorationRenderer=void 0;const h=o(4725),b=o(844),y=o(2585);let w=s.BufferDecorationRenderer=class extends b.Disposable{constructor(v,p,f,d,g){super(),this._screenElement=v,this._bufferService=p,this._coreBrowserService=f,this._decorationService=d,this._renderService=g,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((_=>this._removeDecoration(_)))),this.register((0,b.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const v of this._decorationService.decorations)this._renderDecoration(v);this._dimensionsChanged=!1}_renderDecoration(v){this._refreshStyle(v),this._dimensionsChanged&&this._refreshXPosition(v)}_createElement(v){var d;const p=this._coreBrowserService.mainDocument.createElement("div");p.classList.add("xterm-decoration"),p.classList.toggle("xterm-decoration-top-layer",((d=v==null?void 0:v.options)==null?void 0:d.layer)==="top"),p.style.width=`${Math.round((v.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,p.style.height=(v.options.height||1)*this._renderService.dimensions.css.cell.height+"px",p.style.top=(v.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",p.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const f=v.options.x??0;return f&&f>this._bufferService.cols&&(p.style.display="none"),this._refreshXPosition(v,p),p}_refreshStyle(v){const p=v.marker.line-this._bufferService.buffers.active.ydisp;if(p<0||p>=this._bufferService.rows)v.element&&(v.element.style.display="none",v.onRenderEmitter.fire(v.element));else{let f=this._decorationElements.get(v);f||(f=this._createElement(v),v.element=f,this._decorationElements.set(v,f),this._container.appendChild(f),v.onDispose((()=>{this._decorationElements.delete(v),f.remove()}))),f.style.top=p*this._renderService.dimensions.css.cell.height+"px",f.style.display=this._altBufferIsActive?"none":"block",v.onRenderEmitter.fire(f)}}_refreshXPosition(v,p=v.element){if(!p)return;const f=v.options.x??0;(v.options.anchor||"left")==="right"?p.style.right=f?f*this._renderService.dimensions.css.cell.width+"px":"":p.style.left=f?f*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(v){var p;(p=this._decorationElements.get(v))==null||p.remove(),this._decorationElements.delete(v),v.dispose()}};s.BufferDecorationRenderer=w=l([m(1,y.IBufferService),m(2,h.ICoreBrowserService),m(3,y.IDecorationService),m(4,h.IRenderService)],w)},5871:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorZoneStore=void 0,s.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(o){if(o.options.overviewRulerOptions){for(const l of this._zones)if(l.color===o.options.overviewRulerOptions.color&&l.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(l,o.marker.line))return;if(this._lineAdjacentToZone(l,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(l,o.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=o.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=o.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=o.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=o.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:o.options.overviewRulerOptions.color,position:o.options.overviewRulerOptions.position,startBufferLine:o.marker.line,endBufferLine:o.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(o){this._linePadding=o}_lineIntersectsZone(o,l){return l>=o.startBufferLine&&l<=o.endBufferLine}_lineAdjacentToZone(o,l,m){return l>=o.startBufferLine-this._linePadding[m||"full"]&&l<=o.endBufferLine+this._linePadding[m||"full"]}_addLineToZone(o,l){o.startBufferLine=Math.min(o.startBufferLine,l),o.endBufferLine=Math.max(o.endBufferLine,l)}}},5744:function(u,s,o){var l=this&&this.__decorate||function(g,_,k,S){var E,x=arguments.length,C=x<3?_:S===null?S=Object.getOwnPropertyDescriptor(_,k):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(g,_,k,S);else for(var I=g.length-1;I>=0;I--)(E=g[I])&&(C=(x<3?E(C):x>3?E(_,k,C):E(_,k))||C);return x>3&&C&&Object.defineProperty(_,k,C),C},m=this&&this.__param||function(g,_){return function(k,S){_(k,S,g)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OverviewRulerRenderer=void 0;const h=o(5871),b=o(4725),y=o(844),w=o(2585),v={full:0,left:0,center:0,right:0},p={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0};let d=s.OverviewRulerRenderer=class extends y.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(g,_,k,S,E,x,C){var R;super(),this._viewportElement=g,this._screenElement=_,this._bufferService=k,this._decorationService=S,this._renderService=E,this._optionsService=x,this._coreBrowserService=C,this._colorZoneStore=new h.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(R=this._viewportElement.parentElement)==null||R.insertBefore(this._canvas,this._viewportElement);const I=this._canvas.getContext("2d");if(!I)throw new Error("Ctx cannot be null");this._ctx=I,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,y.toDisposable)((()=>{var F;(F=this._canvas)==null||F.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const g=Math.floor(this._canvas.width/3),_=Math.ceil(this._canvas.width/3);p.full=this._canvas.width,p.left=g,p.center=_,p.right=g,this._refreshDrawHeightConstants(),f.full=0,f.left=0,f.center=p.left,f.right=p.left+p.center}_refreshDrawHeightConstants(){v.full=Math.round(2*this._coreBrowserService.dpr);const g=this._canvas.height/this._bufferService.buffer.lines.length,_=Math.round(Math.max(Math.min(g,12),6)*this._coreBrowserService.dpr);v.left=_,v.center=_,v.right=_}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const _ of this._decorationService.decorations)this._colorZoneStore.addDecoration(_);this._ctx.lineWidth=1;const g=this._colorZoneStore.zones;for(const _ of g)_.position!=="full"&&this._renderColorZone(_);for(const _ of g)_.position==="full"&&this._renderColorZone(_);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(g){this._ctx.fillStyle=g.color,this._ctx.fillRect(f[g.position||"full"],Math.round((this._canvas.height-1)*(g.startBufferLine/this._bufferService.buffers.active.lines.length)-v[g.position||"full"]/2),p[g.position||"full"],Math.round((this._canvas.height-1)*((g.endBufferLine-g.startBufferLine)/this._bufferService.buffers.active.lines.length)+v[g.position||"full"]))}_queueRefresh(g,_){this._shouldUpdateDimensions=g||this._shouldUpdateDimensions,this._shouldUpdateAnchor=_||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};s.OverviewRulerRenderer=d=l([m(2,w.IBufferService),m(3,w.IDecorationService),m(4,b.IRenderService),m(5,w.IOptionsService),m(6,b.ICoreBrowserService)],d)},2950:function(u,s,o){var l=this&&this.__decorate||function(v,p,f,d){var g,_=arguments.length,k=_<3?p:d===null?d=Object.getOwnPropertyDescriptor(p,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(v,p,f,d);else for(var S=v.length-1;S>=0;S--)(g=v[S])&&(k=(_<3?g(k):_>3?g(p,f,k):g(p,f))||k);return _>3&&k&&Object.defineProperty(p,f,k),k},m=this&&this.__param||function(v,p){return function(f,d){p(f,d,v)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CompositionHelper=void 0;const h=o(4725),b=o(2585),y=o(2584);let w=s.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(v,p,f,d,g,_){this._textarea=v,this._compositionView=p,this._bufferService=f,this._optionsService=d,this._coreService=g,this._renderService=_,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(v){this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(v){if(this._isComposing||this._isSendingComposition){if(v.keyCode===229||v.keyCode===16||v.keyCode===17||v.keyCode===18)return!1;this._finalizeComposition(!1)}return v.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(v){if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){const p={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,p.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(p.start,p.end):this._textarea.value.substring(p.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}}),0)}else{this._isSendingComposition=!1;const p=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(p,!0)}}_handleAnyTextareaChanges(){const v=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const p=this._textarea.value,f=p.replace(v,"");this._dataAlreadySent=f,p.length>v.length?this._coreService.triggerDataEvent(f,!0):p.length<v.length?this._coreService.triggerDataEvent(`${y.C0.DEL}`,!0):p.length===v.length&&p!==v&&this._coreService.triggerDataEvent(p,!0)}}),0)}updateCompositionElements(v){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const p=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),f=this._renderService.dimensions.css.cell.height,d=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,g=p*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=g+"px",this._compositionView.style.top=d+"px",this._compositionView.style.height=f+"px",this._compositionView.style.lineHeight=f+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const _=this._compositionView.getBoundingClientRect();this._textarea.style.left=g+"px",this._textarea.style.top=d+"px",this._textarea.style.width=Math.max(_.width,1)+"px",this._textarea.style.height=Math.max(_.height,1)+"px",this._textarea.style.lineHeight=_.height+"px"}v||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};s.CompositionHelper=w=l([m(2,b.IBufferService),m(3,b.IOptionsService),m(4,b.ICoreService),m(5,h.IRenderService)],w)},9806:(u,s)=>{function o(l,m,h){const b=h.getBoundingClientRect(),y=l.getComputedStyle(h),w=parseInt(y.getPropertyValue("padding-left")),v=parseInt(y.getPropertyValue("padding-top"));return[m.clientX-b.left-w,m.clientY-b.top-v]}Object.defineProperty(s,"__esModule",{value:!0}),s.getCoords=s.getCoordsRelativeToElement=void 0,s.getCoordsRelativeToElement=o,s.getCoords=function(l,m,h,b,y,w,v,p,f){if(!w)return;const d=o(l,m,h);return d?(d[0]=Math.ceil((d[0]+(f?v/2:0))/v),d[1]=Math.ceil(d[1]/p),d[0]=Math.min(Math.max(d[0],1),b+(f?1:0)),d[1]=Math.min(Math.max(d[1],1),y),d):void 0}},9504:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.moveToCellSequence=void 0;const l=o(2584);function m(p,f,d,g){const _=p-h(p,d),k=f-h(f,d),S=Math.abs(_-k)-(function(E,x,C){let I=0;const R=E-h(E,C),F=x-h(x,C);for(let N=0;N<Math.abs(R-F);N++){const B=b(E,x)==="A"?-1:1,P=C.buffer.lines.get(R+B*N);P!=null&&P.isWrapped&&I++}return I})(p,f,d);return v(S,w(b(p,f),g))}function h(p,f){let d=0,g=f.buffer.lines.get(p),_=g==null?void 0:g.isWrapped;for(;_&&p>=0&&p<f.rows;)d++,g=f.buffer.lines.get(--p),_=g==null?void 0:g.isWrapped;return d}function b(p,f){return p>f?"A":"B"}function y(p,f,d,g,_,k){let S=p,E=f,x="";for(;S!==d||E!==g;)S+=_?1:-1,_&&S>k.cols-1?(x+=k.buffer.translateBufferLineToString(E,!1,p,S),S=0,p=0,E++):!_&&S<0&&(x+=k.buffer.translateBufferLineToString(E,!1,0,p+1),S=k.cols-1,p=S,E--);return x+k.buffer.translateBufferLineToString(E,!1,p,S)}function w(p,f){const d=f?"O":"[";return l.C0.ESC+d+p}function v(p,f){p=Math.floor(p);let d="";for(let g=0;g<p;g++)d+=f;return d}s.moveToCellSequence=function(p,f,d,g){const _=d.buffer.x,k=d.buffer.y;if(!d.buffer.hasScrollback)return(function(x,C,I,R,F,N){return m(C,R,F,N).length===0?"":v(y(x,C,x,C-h(C,F),!1,F).length,w("D",N))})(_,k,0,f,d,g)+m(k,f,d,g)+(function(x,C,I,R,F,N){let B;B=m(C,R,F,N).length>0?R-h(R,F):C;const P=R,j=(function(U,H,T,D,M,L){let W;return W=m(T,D,M,L).length>0?D-h(D,M):H,U<T&&W<=D||U>=T&&W<D?"C":"D"})(x,C,I,R,F,N);return v(y(x,B,I,P,j==="C",F).length,w(j,N))})(_,k,p,f,d,g);let S;if(k===f)return S=_>p?"D":"C",v(Math.abs(_-p),w(S,g));S=k>f?"D":"C";const E=Math.abs(k-f);return v((function(x,C){return C.cols-x})(k>f?p:_,d)+(E-1)*d.cols+1+((k>f?_:p)-1),w(S,g))}},1296:function(u,s,o){var l=this&&this.__decorate||function(N,B,P,j){var U,H=arguments.length,T=H<3?B:j===null?j=Object.getOwnPropertyDescriptor(B,P):j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(N,B,P,j);else for(var D=N.length-1;D>=0;D--)(U=N[D])&&(T=(H<3?U(T):H>3?U(B,P,T):U(B,P))||T);return H>3&&T&&Object.defineProperty(B,P,T),T},m=this&&this.__param||function(N,B){return function(P,j){B(P,j,N)}};Object.defineProperty(s,"__esModule",{value:!0}),s.DomRenderer=void 0;const h=o(3787),b=o(2550),y=o(2223),w=o(6171),v=o(6052),p=o(4725),f=o(8055),d=o(8460),g=o(844),_=o(2585),k="xterm-dom-renderer-owner-",S="xterm-rows",E="xterm-fg-",x="xterm-bg-",C="xterm-focus",I="xterm-selection";let R=1,F=s.DomRenderer=class extends g.Disposable{constructor(N,B,P,j,U,H,T,D,M,L,W,V,Q){super(),this._terminal=N,this._document=B,this._element=P,this._screenElement=j,this._viewportElement=U,this._helperContainer=H,this._linkifier2=T,this._charSizeService=M,this._optionsService=L,this._bufferService=W,this._coreBrowserService=V,this._themeService=Q,this._terminalClass=R++,this._rowElements=[],this._selectionRenderModel=(0,v.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(S),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(I),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,w.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((re=>this._injectCss(re)))),this._injectCss(this._themeService.colors),this._rowFactory=D.createInstance(h.DomRendererRowFactory,document),this._element.classList.add(k+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((re=>this._handleLinkHover(re)))),this.register(this._linkifier2.onHideLinkUnderline((re=>this._handleLinkLeave(re)))),this.register((0,g.toDisposable)((()=>{this._element.classList.remove(k+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new b.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const N=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*N,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*N),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/N),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/N),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const P of this._rowElements)P.style.width=`${this.dimensions.css.canvas.width}px`,P.style.height=`${this.dimensions.css.cell.height}px`,P.style.lineHeight=`${this.dimensions.css.cell.height}px`,P.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const B=`${this._terminalSelector} .${S} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=B,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(N){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let B=`${this._terminalSelector} .${S} { color: ${N.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;B+=`${this._terminalSelector} .${S} .xterm-dim { color: ${f.color.multiplyOpacity(N.foreground,.5).css};}`,B+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const P=`blink_underline_${this._terminalClass}`,j=`blink_bar_${this._terminalClass}`,U=`blink_block_${this._terminalClass}`;B+=`@keyframes ${P} { 50% { border-bottom-style: hidden; }}`,B+=`@keyframes ${j} { 50% { box-shadow: none; }}`,B+=`@keyframes ${U} { 0% { background-color: ${N.cursor.css}; color: ${N.cursorAccent.css}; } 50% { background-color: inherit; color: ${N.cursor.css}; }}`,B+=`${this._terminalSelector} .${S}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${P} 1s step-end infinite;}${this._terminalSelector} .${S}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${j} 1s step-end infinite;}${this._terminalSelector} .${S}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${U} 1s step-end infinite;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-block { background-color: ${N.cursor.css}; color: ${N.cursorAccent.css};}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${N.cursor.css} !important; color: ${N.cursorAccent.css} !important;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${N.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${N.cursor.css} inset;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${N.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,B+=`${this._terminalSelector} .${I} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${I} div { position: absolute; background-color: ${N.selectionBackgroundOpaque.css};}${this._terminalSelector} .${I} div { position: absolute; background-color: ${N.selectionInactiveBackgroundOpaque.css};}`;for(const[H,T]of N.ansi.entries())B+=`${this._terminalSelector} .${E}${H} { color: ${T.css}; }${this._terminalSelector} .${E}${H}.xterm-dim { color: ${f.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${x}${H} { background-color: ${T.css}; }`;B+=`${this._terminalSelector} .${E}${y.INVERTED_DEFAULT_COLOR} { color: ${f.color.opaque(N.background).css}; }${this._terminalSelector} .${E}${y.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${f.color.multiplyOpacity(f.color.opaque(N.background),.5).css}; }${this._terminalSelector} .${x}${y.INVERTED_DEFAULT_COLOR} { background-color: ${N.foreground.css}; }`,this._themeStyleElement.textContent=B}_setDefaultSpacing(){const N=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${N}px`,this._rowFactory.defaultSpacing=N}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(N,B){for(let P=this._rowElements.length;P<=B;P++){const j=this._document.createElement("div");this._rowContainer.appendChild(j),this._rowElements.push(j)}for(;this._rowElements.length>B;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(N,B){this._refreshRowElements(N,B),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(C),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(C),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(N,B,P){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(N,B,P),this.renderRows(0,this._bufferService.rows-1),!N||!B)return;this._selectionRenderModel.update(this._terminal,N,B,P);const j=this._selectionRenderModel.viewportStartRow,U=this._selectionRenderModel.viewportEndRow,H=this._selectionRenderModel.viewportCappedStartRow,T=this._selectionRenderModel.viewportCappedEndRow;if(H>=this._bufferService.rows||T<0)return;const D=this._document.createDocumentFragment();if(P){const M=N[0]>B[0];D.appendChild(this._createSelectionElement(H,M?B[0]:N[0],M?N[0]:B[0],T-H+1))}else{const M=j===H?N[0]:0,L=H===U?B[0]:this._bufferService.cols;D.appendChild(this._createSelectionElement(H,M,L));const W=T-H-1;if(D.appendChild(this._createSelectionElement(H+1,0,this._bufferService.cols,W)),H!==T){const V=U===T?B[0]:this._bufferService.cols;D.appendChild(this._createSelectionElement(T,0,V))}}this._selectionContainer.appendChild(D)}_createSelectionElement(N,B,P,j=1){const U=this._document.createElement("div"),H=B*this.dimensions.css.cell.width;let T=this.dimensions.css.cell.width*(P-B);return H+T>this.dimensions.css.canvas.width&&(T=this.dimensions.css.canvas.width-H),U.style.height=j*this.dimensions.css.cell.height+"px",U.style.top=N*this.dimensions.css.cell.height+"px",U.style.left=`${H}px`,U.style.width=`${T}px`,U}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const N of this._rowElements)N.replaceChildren()}renderRows(N,B){const P=this._bufferService.buffer,j=P.ybase+P.y,U=Math.min(P.x,this._bufferService.cols-1),H=this._optionsService.rawOptions.cursorBlink,T=this._optionsService.rawOptions.cursorStyle,D=this._optionsService.rawOptions.cursorInactiveStyle;for(let M=N;M<=B;M++){const L=M+P.ydisp,W=this._rowElements[M],V=P.lines.get(L);if(!W||!V)break;W.replaceChildren(...this._rowFactory.createRow(V,L,L===j,T,D,U,H,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${k}${this._terminalClass}`}_handleLinkHover(N){this._setCellUnderline(N.x1,N.x2,N.y1,N.y2,N.cols,!0)}_handleLinkLeave(N){this._setCellUnderline(N.x1,N.x2,N.y1,N.y2,N.cols,!1)}_setCellUnderline(N,B,P,j,U,H){P<0&&(N=0),j<0&&(B=0);const T=this._bufferService.rows-1;P=Math.max(Math.min(P,T),0),j=Math.max(Math.min(j,T),0),U=Math.min(U,this._bufferService.cols);const D=this._bufferService.buffer,M=D.ybase+D.y,L=Math.min(D.x,U-1),W=this._optionsService.rawOptions.cursorBlink,V=this._optionsService.rawOptions.cursorStyle,Q=this._optionsService.rawOptions.cursorInactiveStyle;for(let re=P;re<=j;++re){const z=re+D.ydisp,O=this._rowElements[re],K=D.lines.get(z);if(!O||!K)break;O.replaceChildren(...this._rowFactory.createRow(K,z,z===M,V,Q,L,W,this.dimensions.css.cell.width,this._widthCache,H?re===P?N:0:-1,H?(re===j?B:U)-1:-1))}}};s.DomRenderer=F=l([m(7,_.IInstantiationService),m(8,p.ICharSizeService),m(9,_.IOptionsService),m(10,_.IBufferService),m(11,p.ICoreBrowserService),m(12,p.IThemeService)],F)},3787:function(u,s,o){var l=this&&this.__decorate||function(S,E,x,C){var I,R=arguments.length,F=R<3?E:C===null?C=Object.getOwnPropertyDescriptor(E,x):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(S,E,x,C);else for(var N=S.length-1;N>=0;N--)(I=S[N])&&(F=(R<3?I(F):R>3?I(E,x,F):I(E,x))||F);return R>3&&F&&Object.defineProperty(E,x,F),F},m=this&&this.__param||function(S,E){return function(x,C){E(x,C,S)}};Object.defineProperty(s,"__esModule",{value:!0}),s.DomRendererRowFactory=void 0;const h=o(2223),b=o(643),y=o(511),w=o(2585),v=o(8055),p=o(4725),f=o(4269),d=o(6171),g=o(3734);let _=s.DomRendererRowFactory=class{constructor(S,E,x,C,I,R,F){this._document=S,this._characterJoinerService=E,this._optionsService=x,this._coreBrowserService=C,this._coreService=I,this._decorationService=R,this._themeService=F,this._workCell=new y.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(S,E,x){this._selectionStart=S,this._selectionEnd=E,this._columnSelectMode=x}createRow(S,E,x,C,I,R,F,N,B,P,j){const U=[],H=this._characterJoinerService.getJoinedCharacters(E),T=this._themeService.colors;let D,M=S.getNoBgTrimmedLength();x&&M<R+1&&(M=R+1);let L=0,W="",V=0,Q=0,re=0,z=!1,O=0,K=!1,q=0;const ee=[],J=P!==-1&&j!==-1;for(let oe=0;oe<M;oe++){S.loadCell(oe,this._workCell);let Z=this._workCell.getWidth();if(Z===0)continue;let se=!1,ce=oe,ne=this._workCell;if(H.length>0&&oe===H[0][0]){se=!0;const pe=H.shift();ne=new f.JoinedCellData(this._workCell,S.translateToString(!0,pe[0],pe[1]),pe[1]-pe[0]),ce=pe[1]-1,Z=ne.getWidth()}const Oe=this._isCellInSelection(oe,E),ut=x&&oe===R,pt=J&&oe>=P&&oe<=j;let rt=!1;this._decorationService.forEachDecorationAtCell(oe,E,void 0,(pe=>{rt=!0}));let qe=ne.getChars()||b.WHITESPACE_CELL_CHAR;if(qe===" "&&(ne.isUnderline()||ne.isOverline())&&(qe=" "),q=Z*N-B.get(qe,ne.isBold(),ne.isItalic()),D){if(L&&(Oe&&K||!Oe&&!K&&ne.bg===V)&&(Oe&&K&&T.selectionForeground||ne.fg===Q)&&ne.extended.ext===re&&pt===z&&q===O&&!ut&&!se&&!rt){ne.isInvisible()?W+=b.WHITESPACE_CELL_CHAR:W+=qe,L++;continue}L&&(D.textContent=W),D=this._document.createElement("span"),L=0,W=""}else D=this._document.createElement("span");if(V=ne.bg,Q=ne.fg,re=ne.extended.ext,z=pt,O=q,K=Oe,se&&R>=oe&&R<=ce&&(R=oe),!this._coreService.isCursorHidden&&ut&&this._coreService.isCursorInitialized){if(ee.push("xterm-cursor"),this._coreBrowserService.isFocused)F&&ee.push("xterm-cursor-blink"),ee.push(C==="bar"?"xterm-cursor-bar":C==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(I)switch(I){case"outline":ee.push("xterm-cursor-outline");break;case"block":ee.push("xterm-cursor-block");break;case"bar":ee.push("xterm-cursor-bar");break;case"underline":ee.push("xterm-cursor-underline")}}if(ne.isBold()&&ee.push("xterm-bold"),ne.isItalic()&&ee.push("xterm-italic"),ne.isDim()&&ee.push("xterm-dim"),W=ne.isInvisible()?b.WHITESPACE_CELL_CHAR:ne.getChars()||b.WHITESPACE_CELL_CHAR,ne.isUnderline()&&(ee.push(`xterm-underline-${ne.extended.underlineStyle}`),W===" "&&(W=" "),!ne.isUnderlineColorDefault()))if(ne.isUnderlineColorRGB())D.style.textDecorationColor=`rgb(${g.AttributeData.toColorRGB(ne.getUnderlineColor()).join(",")})`;else{let pe=ne.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&ne.isBold()&&pe<8&&(pe+=8),D.style.textDecorationColor=T.ansi[pe].css}ne.isOverline()&&(ee.push("xterm-overline"),W===" "&&(W=" ")),ne.isStrikethrough()&&ee.push("xterm-strikethrough"),pt&&(D.style.textDecoration="underline");let Se=ne.getFgColor(),Je=ne.getFgColorMode(),Y=ne.getBgColor(),ie=ne.getBgColorMode();const xe=!!ne.isInverse();if(xe){const pe=Se;Se=Y,Y=pe;const ht=Je;Je=ie,ie=ht}let Ve,Be,De,Ge=!1;switch(this._decorationService.forEachDecorationAtCell(oe,E,void 0,(pe=>{pe.options.layer!=="top"&&Ge||(pe.backgroundColorRGB&&(ie=50331648,Y=pe.backgroundColorRGB.rgba>>8&16777215,Ve=pe.backgroundColorRGB),pe.foregroundColorRGB&&(Je=50331648,Se=pe.foregroundColorRGB.rgba>>8&16777215,Be=pe.foregroundColorRGB),Ge=pe.options.layer==="top")})),!Ge&&Oe&&(Ve=this._coreBrowserService.isFocused?T.selectionBackgroundOpaque:T.selectionInactiveBackgroundOpaque,Y=Ve.rgba>>8&16777215,ie=50331648,Ge=!0,T.selectionForeground&&(Je=50331648,Se=T.selectionForeground.rgba>>8&16777215,Be=T.selectionForeground)),Ge&&ee.push("xterm-decoration-top"),ie){case 16777216:case 33554432:De=T.ansi[Y],ee.push(`xterm-bg-${Y}`);break;case 50331648:De=v.channels.toColor(Y>>16,Y>>8&255,255&Y),this._addStyle(D,`background-color:#${k((Y>>>0).toString(16),"0",6)}`);break;default:xe?(De=T.foreground,ee.push(`xterm-bg-${h.INVERTED_DEFAULT_COLOR}`)):De=T.background}switch(Ve||ne.isDim()&&(Ve=v.color.multiplyOpacity(De,.5)),Je){case 16777216:case 33554432:ne.isBold()&&Se<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Se+=8),this._applyMinimumContrast(D,De,T.ansi[Se],ne,Ve,void 0)||ee.push(`xterm-fg-${Se}`);break;case 50331648:const pe=v.channels.toColor(Se>>16&255,Se>>8&255,255&Se);this._applyMinimumContrast(D,De,pe,ne,Ve,Be)||this._addStyle(D,`color:#${k(Se.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(D,De,T.foreground,ne,Ve,Be)||xe&&ee.push(`xterm-fg-${h.INVERTED_DEFAULT_COLOR}`)}ee.length&&(D.className=ee.join(" "),ee.length=0),ut||se||rt?D.textContent=W:L++,q!==this.defaultSpacing&&(D.style.letterSpacing=`${q}px`),U.push(D),oe=ce}return D&&L&&(D.textContent=W),U}_applyMinimumContrast(S,E,x,C,I,R){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,d.treatGlyphAsBackgroundColor)(C.getCode()))return!1;const F=this._getContrastCache(C);let N;if(I||R||(N=F.getColor(E.rgba,x.rgba)),N===void 0){const B=this._optionsService.rawOptions.minimumContrastRatio/(C.isDim()?2:1);N=v.color.ensureContrastRatio(I||E,R||x,B),F.setColor((I||E).rgba,(R||x).rgba,N??null)}return!!N&&(this._addStyle(S,`color:${N.css}`),!0)}_getContrastCache(S){return S.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(S,E){S.setAttribute("style",`${S.getAttribute("style")||""}${E};`)}_isCellInSelection(S,E){const x=this._selectionStart,C=this._selectionEnd;return!(!x||!C)&&(this._columnSelectMode?x[0]<=C[0]?S>=x[0]&&E>=x[1]&&S<C[0]&&E<=C[1]:S<x[0]&&E>=x[1]&&S>=C[0]&&E<=C[1]:E>x[1]&&E<C[1]||x[1]===C[1]&&E===x[1]&&S>=x[0]&&S<C[0]||x[1]<C[1]&&E===C[1]&&S<C[0]||x[1]<C[1]&&E===x[1]&&S>=x[0])}};function k(S,E,x){for(;S.length<x;)S=E+S;return S}s.DomRendererRowFactory=_=l([m(1,p.ICharacterJoinerService),m(2,w.IOptionsService),m(3,p.ICoreBrowserService),m(4,w.ICoreService),m(5,w.IDecorationService),m(6,p.IThemeService)],_)},2550:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.WidthCache=void 0,s.WidthCache=class{constructor(o,l){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=o.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const m=o.createElement("span");m.classList.add("xterm-char-measure-element");const h=o.createElement("span");h.classList.add("xterm-char-measure-element"),h.style.fontWeight="bold";const b=o.createElement("span");b.classList.add("xterm-char-measure-element"),b.style.fontStyle="italic";const y=o.createElement("span");y.classList.add("xterm-char-measure-element"),y.style.fontWeight="bold",y.style.fontStyle="italic",this._measureElements=[m,h,b,y],this._container.appendChild(m),this._container.appendChild(h),this._container.appendChild(b),this._container.appendChild(y),l.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(o,l,m,h){o===this._font&&l===this._fontSize&&m===this._weight&&h===this._weightBold||(this._font=o,this._fontSize=l,this._weight=m,this._weightBold=h,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${m}`,this._measureElements[1].style.fontWeight=`${h}`,this._measureElements[2].style.fontWeight=`${m}`,this._measureElements[3].style.fontWeight=`${h}`,this.clear())}get(o,l,m){let h=0;if(!l&&!m&&o.length===1&&(h=o.charCodeAt(0))<256){if(this._flat[h]!==-9999)return this._flat[h];const w=this._measure(o,0);return w>0&&(this._flat[h]=w),w}let b=o;l&&(b+="B"),m&&(b+="I");let y=this._holey.get(b);if(y===void 0){let w=0;l&&(w|=1),m&&(w|=2),y=this._measure(o,w),y>0&&this._holey.set(b,y)}return y}_measure(o,l){const m=this._measureElements[l];return m.textContent=o.repeat(32),m.offsetWidth/32}}},2223:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TEXT_BASELINE=s.DIM_OPACITY=s.INVERTED_DEFAULT_COLOR=void 0;const l=o(6114);s.INVERTED_DEFAULT_COLOR=257,s.DIM_OPACITY=.5,s.TEXT_BASELINE=l.isFirefox||l.isLegacyEdge?"bottom":"ideographic"},6171:(u,s)=>{function o(m){return 57508<=m&&m<=57558}function l(m){return m>=128512&&m<=128591||m>=127744&&m<=128511||m>=128640&&m<=128767||m>=9728&&m<=9983||m>=9984&&m<=10175||m>=65024&&m<=65039||m>=129280&&m<=129535||m>=127462&&m<=127487}Object.defineProperty(s,"__esModule",{value:!0}),s.computeNextVariantOffset=s.createRenderDimensions=s.treatGlyphAsBackgroundColor=s.allowRescaling=s.isEmoji=s.isRestrictedPowerlineGlyph=s.isPowerlineGlyph=s.throwIfFalsy=void 0,s.throwIfFalsy=function(m){if(!m)throw new Error("value must not be falsy");return m},s.isPowerlineGlyph=o,s.isRestrictedPowerlineGlyph=function(m){return 57520<=m&&m<=57527},s.isEmoji=l,s.allowRescaling=function(m,h,b,y){return h===1&&b>Math.ceil(1.5*y)&&m!==void 0&&m>255&&!l(m)&&!o(m)&&!(function(w){return 57344<=w&&w<=63743})(m)},s.treatGlyphAsBackgroundColor=function(m){return o(m)||(function(h){return 9472<=h&&h<=9631})(m)},s.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},s.computeNextVariantOffset=function(m,h,b=0){return(m-(2*Math.round(h)-b))%(2*Math.round(h))}},6052:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.createSelectionRenderModel=void 0;class o{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(m,h,b,y=!1){if(this.selectionStart=h,this.selectionEnd=b,!h||!b||h[0]===b[0]&&h[1]===b[1])return void this.clear();const w=m.buffers.active.ydisp,v=h[1]-w,p=b[1]-w,f=Math.max(v,0),d=Math.min(p,m.rows-1);f>=m.rows||d<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=y,this.viewportStartRow=v,this.viewportEndRow=p,this.viewportCappedStartRow=f,this.viewportCappedEndRow=d,this.startCol=h[0],this.endCol=b[0])}isCellSelected(m,h,b){return!!this.hasSelection&&(b-=m.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?h>=this.startCol&&b>=this.viewportCappedStartRow&&h<this.endCol&&b<=this.viewportCappedEndRow:h<this.startCol&&b>=this.viewportCappedStartRow&&h>=this.endCol&&b<=this.viewportCappedEndRow:b>this.viewportStartRow&&b<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&b===this.viewportStartRow&&h>=this.startCol&&h<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportEndRow&&h<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportStartRow&&h>=this.startCol)}}s.createSelectionRenderModel=function(){return new o}},456:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SelectionModel=void 0,s.SelectionModel=class{constructor(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?o%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)-1]:[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[o,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[Math.max(o,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const o=this.selectionStart,l=this.selectionEnd;return!(!o||!l)&&(o[1]>l[1]||o[1]===l[1]&&o[0]>l[0])}handleTrim(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(u,s,o){var l=this&&this.__decorate||function(d,g,_,k){var S,E=arguments.length,x=E<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,_):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(d,g,_,k);else for(var C=d.length-1;C>=0;C--)(S=d[C])&&(x=(E<3?S(x):E>3?S(g,_,x):S(g,_))||x);return E>3&&x&&Object.defineProperty(g,_,x),x},m=this&&this.__param||function(d,g){return function(_,k){g(_,k,d)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CharSizeService=void 0;const h=o(2585),b=o(8460),y=o(844);let w=s.CharSizeService=class extends y.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(d,g,_){super(),this._optionsService=_,this.width=0,this.height=0,this._onCharSizeChange=this.register(new b.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new f(this._optionsService))}catch{this._measureStrategy=this.register(new p(d,g,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const d=this._measureStrategy.measure();d.width===this.width&&d.height===this.height||(this.width=d.width,this.height=d.height,this._onCharSizeChange.fire())}};s.CharSizeService=w=l([m(2,h.IOptionsService)],w);class v extends y.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(g,_){g!==void 0&&g>0&&_!==void 0&&_>0&&(this._result.width=g,this._result.height=_)}}class p extends v{constructor(g,_,k){super(),this._document=g,this._parentElement=_,this._optionsService=k,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class f extends v{constructor(g){super(),this._optionsService=g,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const _=this._ctx.measureText("W");if(!("width"in _&&"fontBoundingBoxAscent"in _&&"fontBoundingBoxDescent"in _))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const g=this._ctx.measureText("W");return this._validateAndSet(g.width,g.fontBoundingBoxAscent+g.fontBoundingBoxDescent),this._result}}},4269:function(u,s,o){var l=this&&this.__decorate||function(f,d,g,_){var k,S=arguments.length,E=S<3?d:_===null?_=Object.getOwnPropertyDescriptor(d,g):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,_);else for(var x=f.length-1;x>=0;x--)(k=f[x])&&(E=(S<3?k(E):S>3?k(d,g,E):k(d,g))||E);return S>3&&E&&Object.defineProperty(d,g,E),E},m=this&&this.__param||function(f,d){return function(g,_){d(g,_,f)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CharacterJoinerService=s.JoinedCellData=void 0;const h=o(3734),b=o(643),y=o(511),w=o(2585);class v extends h.AttributeData{constructor(d,g,_){super(),this.content=0,this.combinedData="",this.fg=d.fg,this.bg=d.bg,this.combinedData=g,this._width=_}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(d){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}s.JoinedCellData=v;let p=s.CharacterJoinerService=class qu{constructor(d){this._bufferService=d,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}register(d){const g={id:this._nextCharacterJoinerId++,handler:d};return this._characterJoiners.push(g),g.id}deregister(d){for(let g=0;g<this._characterJoiners.length;g++)if(this._characterJoiners[g].id===d)return this._characterJoiners.splice(g,1),!0;return!1}getJoinedCharacters(d){if(this._characterJoiners.length===0)return[];const g=this._bufferService.buffer.lines.get(d);if(!g||g.length===0)return[];const _=[],k=g.translateToString(!0);let S=0,E=0,x=0,C=g.getFg(0),I=g.getBg(0);for(let R=0;R<g.getTrimmedLength();R++)if(g.loadCell(R,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==C||this._workCell.bg!==I){if(R-S>1){const F=this._getJoinedRanges(k,x,E,g,S);for(let N=0;N<F.length;N++)_.push(F[N])}S=R,x=E,C=this._workCell.fg,I=this._workCell.bg}E+=this._workCell.getChars().length||b.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-S>1){const R=this._getJoinedRanges(k,x,E,g,S);for(let F=0;F<R.length;F++)_.push(R[F])}return _}_getJoinedRanges(d,g,_,k,S){const E=d.substring(g,_);let x=[];try{x=this._characterJoiners[0].handler(E)}catch(C){console.error(C)}for(let C=1;C<this._characterJoiners.length;C++)try{const I=this._characterJoiners[C].handler(E);for(let R=0;R<I.length;R++)qu._mergeRanges(x,I[R])}catch(I){console.error(I)}return this._stringRangesToCellRanges(x,k,S),x}_stringRangesToCellRanges(d,g,_){let k=0,S=!1,E=0,x=d[k];if(x){for(let C=_;C<this._bufferService.cols;C++){const I=g.getWidth(C),R=g.getString(C).length||b.WHITESPACE_CELL_CHAR.length;if(I!==0){if(!S&&x[0]<=E&&(x[0]=C,S=!0),x[1]<=E){if(x[1]=C,x=d[++k],!x)break;x[0]<=E?(x[0]=C,S=!0):S=!1}E+=R}}x&&(x[1]=this._bufferService.cols)}}static _mergeRanges(d,g){let _=!1;for(let k=0;k<d.length;k++){const S=d[k];if(_){if(g[1]<=S[0])return d[k-1][1]=g[1],d;if(g[1]<=S[1])return d[k-1][1]=Math.max(g[1],S[1]),d.splice(k,1),d;d.splice(k,1),k--}else{if(g[1]<=S[0])return d.splice(k,0,g),d;if(g[1]<=S[1])return S[0]=Math.min(g[0],S[0]),d;g[0]<S[1]&&(S[0]=Math.min(g[0],S[0]),_=!0)}}return _?d[d.length-1][1]=g[1]:d.push(g),d}};s.CharacterJoinerService=p=l([m(0,w.IBufferService)],p)},5114:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CoreBrowserService=void 0;const l=o(844),m=o(8460),h=o(3656);class b extends l.Disposable{constructor(v,p,f){super(),this._textarea=v,this._window=p,this.mainDocument=f,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new y(this._window),this._onDprChange=this.register(new m.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new m.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((d=>this._screenDprMonitor.setWindow(d)))),this.register((0,m.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(v){this._window!==v&&(this._window=v,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}s.CoreBrowserService=b;class y extends l.Disposable{constructor(v){super(),this._parentWindow=v,this._windowResizeListener=this.register(new l.MutableDisposable),this._onDprChange=this.register(new m.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,l.toDisposable)((()=>this.clearListener())))}setWindow(v){this._parentWindow=v,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,h.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)==null||v.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.LinkProviderService=void 0;const l=o(844);class m extends l.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,l.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(b){return this.linkProviders.push(b),{dispose:()=>{const y=this.linkProviders.indexOf(b);y!==-1&&this.linkProviders.splice(y,1)}}}}s.LinkProviderService=m},8934:function(u,s,o){var l=this&&this.__decorate||function(w,v,p,f){var d,g=arguments.length,_=g<3?v:f===null?f=Object.getOwnPropertyDescriptor(v,p):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(w,v,p,f);else for(var k=w.length-1;k>=0;k--)(d=w[k])&&(_=(g<3?d(_):g>3?d(v,p,_):d(v,p))||_);return g>3&&_&&Object.defineProperty(v,p,_),_},m=this&&this.__param||function(w,v){return function(p,f){v(p,f,w)}};Object.defineProperty(s,"__esModule",{value:!0}),s.MouseService=void 0;const h=o(4725),b=o(9806);let y=s.MouseService=class{constructor(w,v){this._renderService=w,this._charSizeService=v}getCoords(w,v,p,f,d){return(0,b.getCoords)(window,w,v,p,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,d)}getMouseReportCoords(w,v){const p=(0,b.getCoordsRelativeToElement)(window,w,v);if(this._charSizeService.hasValidSize)return p[0]=Math.min(Math.max(p[0],0),this._renderService.dimensions.css.canvas.width-1),p[1]=Math.min(Math.max(p[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(p[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(p[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(p[0]),y:Math.floor(p[1])}}};s.MouseService=y=l([m(0,h.IRenderService),m(1,h.ICharSizeService)],y)},3230:function(u,s,o){var l=this&&this.__decorate||function(d,g,_,k){var S,E=arguments.length,x=E<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,_):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(d,g,_,k);else for(var C=d.length-1;C>=0;C--)(S=d[C])&&(x=(E<3?S(x):E>3?S(g,_,x):S(g,_))||x);return E>3&&x&&Object.defineProperty(g,_,x),x},m=this&&this.__param||function(d,g){return function(_,k){g(_,k,d)}};Object.defineProperty(s,"__esModule",{value:!0}),s.RenderService=void 0;const h=o(6193),b=o(4725),y=o(8460),w=o(844),v=o(7226),p=o(2585);let f=s.RenderService=class extends w.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(d,g,_,k,S,E,x,C){super(),this._rowCount=d,this._charSizeService=k,this._renderer=this.register(new w.MutableDisposable),this._pausedResizeTask=new v.DebouncedIdleTask,this._observerDisposable=this.register(new w.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new y.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new y.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new y.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new y.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new h.RenderDebouncer(((I,R)=>this._renderRows(I,R)),x),this.register(this._renderDebouncer),this.register(x.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(E.onResize((()=>this._fullRefresh()))),this.register(E.buffers.onBufferActivate((()=>{var I;return(I=this._renderer.value)==null?void 0:I.clear()}))),this.register(_.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(S.onDecorationRegistered((()=>this._fullRefresh()))),this.register(S.onDecorationRemoved((()=>this._fullRefresh()))),this.register(_.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(E.cols,E.rows),this._fullRefresh()}))),this.register(_.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(E.buffer.y,E.buffer.y,!0)))),this.register(C.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(x.window,g),this.register(x.onWindowChange((I=>this._registerIntersectionObserver(I,g))))}_registerIntersectionObserver(d,g){if("IntersectionObserver"in d){const _=new d.IntersectionObserver((k=>this._handleIntersectionChange(k[k.length-1])),{threshold:0});_.observe(g),this._observerDisposable.value=(0,w.toDisposable)((()=>_.disconnect()))}}_handleIntersectionChange(d){this._isPaused=d.isIntersecting===void 0?d.intersectionRatio===0:!d.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(d,g,_=!1){this._isPaused?this._needsFullRefresh=!0:(_||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,g,this._rowCount))}_renderRows(d,g){this._renderer.value&&(d=Math.min(d,this._rowCount-1),g=Math.min(g,this._rowCount-1),this._renderer.value.renderRows(d,g),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:d,end:g}),this._onRender.fire({start:d,end:g}),this._isNextRenderRedrawOnly=!0)}resize(d,g){this._rowCount=g,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(d){this._renderer.value=d,this._renderer.value&&(this._renderer.value.onRequestRedraw((g=>this.refreshRows(g.start,g.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(d){return this._renderDebouncer.addRefreshCallback(d)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var d,g;this._renderer.value&&((g=(d=this._renderer.value).clearTextureAtlas)==null||g.call(d),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(d,g){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var _;return(_=this._renderer.value)==null?void 0:_.handleResize(d,g)})):this._renderer.value.handleResize(d,g),this._fullRefresh())}handleCharSizeChanged(){var d;(d=this._renderer.value)==null||d.handleCharSizeChanged()}handleBlur(){var d;(d=this._renderer.value)==null||d.handleBlur()}handleFocus(){var d;(d=this._renderer.value)==null||d.handleFocus()}handleSelectionChanged(d,g,_){var k;this._selectionState.start=d,this._selectionState.end=g,this._selectionState.columnSelectMode=_,(k=this._renderer.value)==null||k.handleSelectionChanged(d,g,_)}handleCursorMove(){var d;(d=this._renderer.value)==null||d.handleCursorMove()}clear(){var d;(d=this._renderer.value)==null||d.clear()}};s.RenderService=f=l([m(2,p.IOptionsService),m(3,b.ICharSizeService),m(4,p.IDecorationService),m(5,p.IBufferService),m(6,b.ICoreBrowserService),m(7,b.IThemeService)],f)},9312:function(u,s,o){var l=this&&this.__decorate||function(x,C,I,R){var F,N=arguments.length,B=N<3?C:R===null?R=Object.getOwnPropertyDescriptor(C,I):R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(x,C,I,R);else for(var P=x.length-1;P>=0;P--)(F=x[P])&&(B=(N<3?F(B):N>3?F(C,I,B):F(C,I))||B);return N>3&&B&&Object.defineProperty(C,I,B),B},m=this&&this.__param||function(x,C){return function(I,R){C(I,R,x)}};Object.defineProperty(s,"__esModule",{value:!0}),s.SelectionService=void 0;const h=o(9806),b=o(9504),y=o(456),w=o(4725),v=o(8460),p=o(844),f=o(6114),d=o(4841),g=o(511),_=o(2585),k=" ",S=new RegExp(k,"g");let E=s.SelectionService=class extends p.Disposable{constructor(x,C,I,R,F,N,B,P,j){super(),this._element=x,this._screenElement=C,this._linkifier=I,this._bufferService=R,this._coreService=F,this._mouseService=N,this._optionsService=B,this._renderService=P,this._coreBrowserService=j,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new g.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new v.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new v.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new v.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new v.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=U=>this._handleMouseMove(U),this._mouseUpListener=U=>this._handleMouseUp(U),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((U=>this._handleTrim(U))),this.register(this._bufferService.buffers.onBufferActivate((U=>this._handleBufferActivate(U)))),this.enable(),this._model=new y.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,p.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const x=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!x||!C||x[0]===C[0]&&x[1]===C[1])}get selectionText(){const x=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!x||!C)return"";const I=this._bufferService.buffer,R=[];if(this._activeSelectionMode===3){if(x[0]===C[0])return"";const F=x[0]<C[0]?x[0]:C[0],N=x[0]<C[0]?C[0]:x[0];for(let B=x[1];B<=C[1];B++){const P=I.translateBufferLineToString(B,!0,F,N);R.push(P)}}else{const F=x[1]===C[1]?C[0]:void 0;R.push(I.translateBufferLineToString(x[1],!0,x[0],F));for(let N=x[1]+1;N<=C[1]-1;N++){const B=I.lines.get(N),P=I.translateBufferLineToString(N,!0);B!=null&&B.isWrapped?R[R.length-1]+=P:R.push(P)}if(x[1]!==C[1]){const N=I.lines.get(C[1]),B=I.translateBufferLineToString(C[1],!0,0,C[0]);N&&N.isWrapped?R[R.length-1]+=B:R.push(B)}}return R.map((F=>F.replace(S," "))).join(f.isWindows?`\r
489
- `:`
490
- `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(x){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),f.isLinux&&x&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(x){const C=this._getMouseBufferCoords(x),I=this._model.finalSelectionStart,R=this._model.finalSelectionEnd;return!!(I&&R&&C)&&this._areCoordsInSelection(C,I,R)}isCellInSelection(x,C){const I=this._model.finalSelectionStart,R=this._model.finalSelectionEnd;return!(!I||!R)&&this._areCoordsInSelection([x,C],I,R)}_areCoordsInSelection(x,C,I){return x[1]>C[1]&&x[1]<I[1]||C[1]===I[1]&&x[1]===C[1]&&x[0]>=C[0]&&x[0]<I[0]||C[1]<I[1]&&x[1]===I[1]&&x[0]<I[0]||C[1]<I[1]&&x[1]===C[1]&&x[0]>=C[0]}_selectWordAtCursor(x,C){var F,N;const I=(N=(F=this._linkifier.currentLink)==null?void 0:F.link)==null?void 0:N.range;if(I)return this._model.selectionStart=[I.start.x-1,I.start.y-1],this._model.selectionStartLength=(0,d.getRangeLength)(I,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const R=this._getMouseBufferCoords(x);return!!R&&(this._selectWordAt(R,C),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(x,C){this._model.clearSelection(),x=Math.max(x,0),C=Math.min(C,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,x],this._model.selectionEnd=[this._bufferService.cols,C],this.refresh(),this._onSelectionChange.fire()}_handleTrim(x){this._model.handleTrim(x)&&this.refresh()}_getMouseBufferCoords(x){const C=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(C)return C[0]--,C[1]--,C[1]+=this._bufferService.buffer.ydisp,C}_getMouseEventScrollAmount(x){let C=(0,h.getCoordsRelativeToElement)(this._coreBrowserService.window,x,this._screenElement)[1];const I=this._renderService.dimensions.css.canvas.height;return C>=0&&C<=I?0:(C>I&&(C-=I),C=Math.min(Math.max(C,-50),50),C/=50,C/Math.abs(C)+Math.round(14*C))}shouldForceSelection(x){return f.isMac?x.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:x.shiftKey}handleMouseDown(x){if(this._mouseDownTimeStamp=x.timeStamp,(x.button!==2||!this.hasSelection)&&x.button===0){if(!this._enabled){if(!this.shouldForceSelection(x))return;x.stopPropagation()}x.preventDefault(),this._dragScrollAmount=0,this._enabled&&x.shiftKey?this._handleIncrementalClick(x):x.detail===1?this._handleSingleClick(x):x.detail===2?this._handleDoubleClick(x):x.detail===3&&this._handleTripleClick(x),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(x){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(x))}_handleSingleClick(x){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(x)?3:0,this._model.selectionStart=this._getMouseBufferCoords(x),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const C=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);C&&C.length!==this._model.selectionStart[0]&&C.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(x){this._selectWordAtCursor(x,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(x){const C=this._getMouseBufferCoords(x);C&&(this._activeSelectionMode=2,this._selectLineAt(C[1]))}shouldColumnSelect(x){return x.altKey&&!(f.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(x){if(x.stopImmediatePropagation(),!this._model.selectionStart)return;const C=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(x),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(x),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const I=this._bufferService.buffer;if(this._model.selectionEnd[1]<I.lines.length){const R=I.lines.get(this._model.selectionEnd[1]);R&&R.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}C&&C[0]===this._model.selectionEnd[0]&&C[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const x=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(x.ydisp+this._bufferService.rows,x.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=x.ydisp),this.refresh()}}_handleMouseUp(x){const C=x.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&C<500&&x.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const I=this._mouseService.getCoords(x,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(I&&I[0]!==void 0&&I[1]!==void 0){const R=(0,b.moveToCellSequence)(I[0]-1,I[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(R,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const x=this._model.finalSelectionStart,C=this._model.finalSelectionEnd,I=!(!x||!C||x[0]===C[0]&&x[1]===C[1]);I?x&&C&&(this._oldSelectionStart&&this._oldSelectionEnd&&x[0]===this._oldSelectionStart[0]&&x[1]===this._oldSelectionStart[1]&&C[0]===this._oldSelectionEnd[0]&&C[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(x,C,I)):this._oldHasSelection&&this._fireOnSelectionChange(x,C,I)}_fireOnSelectionChange(x,C,I){this._oldSelectionStart=x,this._oldSelectionEnd=C,this._oldHasSelection=I,this._onSelectionChange.fire()}_handleBufferActivate(x){this.clearSelection(),this._trimListener.dispose(),this._trimListener=x.activeBuffer.lines.onTrim((C=>this._handleTrim(C)))}_convertViewportColToCharacterIndex(x,C){let I=C;for(let R=0;C>=R;R++){const F=x.loadCell(R,this._workCell).getChars().length;this._workCell.getWidth()===0?I--:F>1&&C!==R&&(I+=F-1)}return I}setSelection(x,C,I){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[x,C],this._model.selectionStartLength=I,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(x){this._isClickInSelection(x)||(this._selectWordAtCursor(x,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(x,C,I=!0,R=!0){if(x[0]>=this._bufferService.cols)return;const F=this._bufferService.buffer,N=F.lines.get(x[1]);if(!N)return;const B=F.translateBufferLineToString(x[1],!1);let P=this._convertViewportColToCharacterIndex(N,x[0]),j=P;const U=x[0]-P;let H=0,T=0,D=0,M=0;if(B.charAt(P)===" "){for(;P>0&&B.charAt(P-1)===" ";)P--;for(;j<B.length&&B.charAt(j+1)===" ";)j++}else{let V=x[0],Q=x[0];N.getWidth(V)===0&&(H++,V--),N.getWidth(Q)===2&&(T++,Q++);const re=N.getString(Q).length;for(re>1&&(M+=re-1,j+=re-1);V>0&&P>0&&!this._isCharWordSeparator(N.loadCell(V-1,this._workCell));){N.loadCell(V-1,this._workCell);const z=this._workCell.getChars().length;this._workCell.getWidth()===0?(H++,V--):z>1&&(D+=z-1,P-=z-1),P--,V--}for(;Q<N.length&&j+1<B.length&&!this._isCharWordSeparator(N.loadCell(Q+1,this._workCell));){N.loadCell(Q+1,this._workCell);const z=this._workCell.getChars().length;this._workCell.getWidth()===2?(T++,Q++):z>1&&(M+=z-1,j+=z-1),j++,Q++}}j++;let L=P+U-H+D,W=Math.min(this._bufferService.cols,j-P+H+T-D-M);if(C||B.slice(P,j).trim()!==""){if(I&&L===0&&N.getCodePoint(0)!==32){const V=F.lines.get(x[1]-1);if(V&&N.isWrapped&&V.getCodePoint(this._bufferService.cols-1)!==32){const Q=this._getWordAt([this._bufferService.cols-1,x[1]-1],!1,!0,!1);if(Q){const re=this._bufferService.cols-Q.start;L-=re,W+=re}}}if(R&&L+W===this._bufferService.cols&&N.getCodePoint(this._bufferService.cols-1)!==32){const V=F.lines.get(x[1]+1);if(V!=null&&V.isWrapped&&V.getCodePoint(0)!==32){const Q=this._getWordAt([0,x[1]+1],!1,!1,!0);Q&&(W+=Q.length)}}return{start:L,length:W}}}_selectWordAt(x,C){const I=this._getWordAt(x,C);if(I){for(;I.start<0;)I.start+=this._bufferService.cols,x[1]--;this._model.selectionStart=[I.start,x[1]],this._model.selectionStartLength=I.length}}_selectToWordAt(x){const C=this._getWordAt(x,!0);if(C){let I=x[1];for(;C.start<0;)C.start+=this._bufferService.cols,I--;if(!this._model.areSelectionValuesReversed())for(;C.start+C.length>this._bufferService.cols;)C.length-=this._bufferService.cols,I++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?C.start:C.start+C.length,I]}}_isCharWordSeparator(x){return x.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(x.getChars())>=0}_selectLineAt(x){const C=this._bufferService.buffer.getWrappedRangeForLine(x),I={start:{x:0,y:C.first},end:{x:this._bufferService.cols-1,y:C.last}};this._model.selectionStart=[0,C.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,d.getRangeLength)(I,this._bufferService.cols)}};s.SelectionService=E=l([m(3,_.IBufferService),m(4,_.ICoreService),m(5,w.IMouseService),m(6,_.IOptionsService),m(7,w.IRenderService),m(8,w.ICoreBrowserService)],E)},4725:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ILinkProviderService=s.IThemeService=s.ICharacterJoinerService=s.ISelectionService=s.IRenderService=s.IMouseService=s.ICoreBrowserService=s.ICharSizeService=void 0;const l=o(8343);s.ICharSizeService=(0,l.createDecorator)("CharSizeService"),s.ICoreBrowserService=(0,l.createDecorator)("CoreBrowserService"),s.IMouseService=(0,l.createDecorator)("MouseService"),s.IRenderService=(0,l.createDecorator)("RenderService"),s.ISelectionService=(0,l.createDecorator)("SelectionService"),s.ICharacterJoinerService=(0,l.createDecorator)("CharacterJoinerService"),s.IThemeService=(0,l.createDecorator)("ThemeService"),s.ILinkProviderService=(0,l.createDecorator)("LinkProviderService")},6731:function(u,s,o){var l=this&&this.__decorate||function(E,x,C,I){var R,F=arguments.length,N=F<3?x:I===null?I=Object.getOwnPropertyDescriptor(x,C):I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(E,x,C,I);else for(var B=E.length-1;B>=0;B--)(R=E[B])&&(N=(F<3?R(N):F>3?R(x,C,N):R(x,C))||N);return F>3&&N&&Object.defineProperty(x,C,N),N},m=this&&this.__param||function(E,x){return function(C,I){x(C,I,E)}};Object.defineProperty(s,"__esModule",{value:!0}),s.ThemeService=s.DEFAULT_ANSI_COLORS=void 0;const h=o(7239),b=o(8055),y=o(8460),w=o(844),v=o(2585),p=b.css.toColor("#ffffff"),f=b.css.toColor("#000000"),d=b.css.toColor("#ffffff"),g=b.css.toColor("#000000"),_={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};s.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const E=[b.css.toColor("#2e3436"),b.css.toColor("#cc0000"),b.css.toColor("#4e9a06"),b.css.toColor("#c4a000"),b.css.toColor("#3465a4"),b.css.toColor("#75507b"),b.css.toColor("#06989a"),b.css.toColor("#d3d7cf"),b.css.toColor("#555753"),b.css.toColor("#ef2929"),b.css.toColor("#8ae234"),b.css.toColor("#fce94f"),b.css.toColor("#729fcf"),b.css.toColor("#ad7fa8"),b.css.toColor("#34e2e2"),b.css.toColor("#eeeeec")],x=[0,95,135,175,215,255];for(let C=0;C<216;C++){const I=x[C/36%6|0],R=x[C/6%6|0],F=x[C%6];E.push({css:b.channels.toCss(I,R,F),rgba:b.channels.toRgba(I,R,F)})}for(let C=0;C<24;C++){const I=8+10*C;E.push({css:b.channels.toCss(I,I,I),rgba:b.channels.toRgba(I,I,I)})}return E})());let k=s.ThemeService=class extends w.Disposable{get colors(){return this._colors}constructor(E){super(),this._optionsService=E,this._contrastCache=new h.ColorContrastCache,this._halfContrastCache=new h.ColorContrastCache,this._onChangeColors=this.register(new y.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:f,cursor:d,cursorAccent:g,selectionForeground:void 0,selectionBackgroundTransparent:_,selectionBackgroundOpaque:b.color.blend(f,_),selectionInactiveBackgroundTransparent:_,selectionInactiveBackgroundOpaque:b.color.blend(f,_),ansi:s.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(E={}){const x=this._colors;if(x.foreground=S(E.foreground,p),x.background=S(E.background,f),x.cursor=S(E.cursor,d),x.cursorAccent=S(E.cursorAccent,g),x.selectionBackgroundTransparent=S(E.selectionBackground,_),x.selectionBackgroundOpaque=b.color.blend(x.background,x.selectionBackgroundTransparent),x.selectionInactiveBackgroundTransparent=S(E.selectionInactiveBackground,x.selectionBackgroundTransparent),x.selectionInactiveBackgroundOpaque=b.color.blend(x.background,x.selectionInactiveBackgroundTransparent),x.selectionForeground=E.selectionForeground?S(E.selectionForeground,b.NULL_COLOR):void 0,x.selectionForeground===b.NULL_COLOR&&(x.selectionForeground=void 0),b.color.isOpaque(x.selectionBackgroundTransparent)&&(x.selectionBackgroundTransparent=b.color.opacity(x.selectionBackgroundTransparent,.3)),b.color.isOpaque(x.selectionInactiveBackgroundTransparent)&&(x.selectionInactiveBackgroundTransparent=b.color.opacity(x.selectionInactiveBackgroundTransparent,.3)),x.ansi=s.DEFAULT_ANSI_COLORS.slice(),x.ansi[0]=S(E.black,s.DEFAULT_ANSI_COLORS[0]),x.ansi[1]=S(E.red,s.DEFAULT_ANSI_COLORS[1]),x.ansi[2]=S(E.green,s.DEFAULT_ANSI_COLORS[2]),x.ansi[3]=S(E.yellow,s.DEFAULT_ANSI_COLORS[3]),x.ansi[4]=S(E.blue,s.DEFAULT_ANSI_COLORS[4]),x.ansi[5]=S(E.magenta,s.DEFAULT_ANSI_COLORS[5]),x.ansi[6]=S(E.cyan,s.DEFAULT_ANSI_COLORS[6]),x.ansi[7]=S(E.white,s.DEFAULT_ANSI_COLORS[7]),x.ansi[8]=S(E.brightBlack,s.DEFAULT_ANSI_COLORS[8]),x.ansi[9]=S(E.brightRed,s.DEFAULT_ANSI_COLORS[9]),x.ansi[10]=S(E.brightGreen,s.DEFAULT_ANSI_COLORS[10]),x.ansi[11]=S(E.brightYellow,s.DEFAULT_ANSI_COLORS[11]),x.ansi[12]=S(E.brightBlue,s.DEFAULT_ANSI_COLORS[12]),x.ansi[13]=S(E.brightMagenta,s.DEFAULT_ANSI_COLORS[13]),x.ansi[14]=S(E.brightCyan,s.DEFAULT_ANSI_COLORS[14]),x.ansi[15]=S(E.brightWhite,s.DEFAULT_ANSI_COLORS[15]),E.extendedAnsi){const C=Math.min(x.ansi.length-16,E.extendedAnsi.length);for(let I=0;I<C;I++)x.ansi[I+16]=S(E.extendedAnsi[I],s.DEFAULT_ANSI_COLORS[I+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(E){this._restoreColor(E),this._onChangeColors.fire(this.colors)}_restoreColor(E){if(E!==void 0)switch(E){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[E]=this._restoreColors.ansi[E]}else for(let x=0;x<this._restoreColors.ansi.length;++x)this._colors.ansi[x]=this._restoreColors.ansi[x]}modifyColors(E){E(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function S(E,x){if(E!==void 0)try{return b.css.toColor(E)}catch{}return x}s.ThemeService=k=l([m(0,v.IOptionsService)],k)},6349:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CircularList=void 0;const l=o(8460),m=o(844);class h extends m.Disposable{constructor(y){super(),this._maxLength=y,this.onDeleteEmitter=this.register(new l.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new l.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new l.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(y){if(this._maxLength===y)return;const w=new Array(y);for(let v=0;v<Math.min(y,this.length);v++)w[v]=this._array[this._getCyclicIndex(v)];this._array=w,this._maxLength=y,this._startIndex=0}get length(){return this._length}set length(y){if(y>this._length)for(let w=this._length;w<y;w++)this._array[w]=void 0;this._length=y}get(y){return this._array[this._getCyclicIndex(y)]}set(y,w){this._array[this._getCyclicIndex(y)]=w}push(y){this._array[this._getCyclicIndex(this._length)]=y,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(y,w,...v){if(w){for(let p=y;p<this._length-w;p++)this._array[this._getCyclicIndex(p)]=this._array[this._getCyclicIndex(p+w)];this._length-=w,this.onDeleteEmitter.fire({index:y,amount:w})}for(let p=this._length-1;p>=y;p--)this._array[this._getCyclicIndex(p+v.length)]=this._array[this._getCyclicIndex(p)];for(let p=0;p<v.length;p++)this._array[this._getCyclicIndex(y+p)]=v[p];if(v.length&&this.onInsertEmitter.fire({index:y,amount:v.length}),this._length+v.length>this._maxLength){const p=this._length+v.length-this._maxLength;this._startIndex+=p,this._length=this._maxLength,this.onTrimEmitter.fire(p)}else this._length+=v.length}trimStart(y){y>this._length&&(y=this._length),this._startIndex+=y,this._length-=y,this.onTrimEmitter.fire(y)}shiftElements(y,w,v){if(!(w<=0)){if(y<0||y>=this._length)throw new Error("start argument out of range");if(y+v<0)throw new Error("Cannot shift elements in list beyond index 0");if(v>0){for(let f=w-1;f>=0;f--)this.set(y+f+v,this.get(y+f));const p=y+w+v-this._length;if(p>0)for(this._length+=p;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let p=0;p<w;p++)this.set(y+p+v,this.get(y+p))}}_getCyclicIndex(y){return(this._startIndex+y)%this._maxLength}}s.CircularList=h},1439:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.clone=void 0,s.clone=function o(l,m=5){if(typeof l!="object")return l;const h=Array.isArray(l)?[]:{};for(const b in l)h[b]=m<=1?l[b]:l[b]&&o(l[b],m-1);return h}},8055:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.contrastRatio=s.toPaddedHex=s.rgba=s.rgb=s.css=s.color=s.channels=s.NULL_COLOR=void 0;let o=0,l=0,m=0,h=0;var b,y,w,v,p;function f(g){const _=g.toString(16);return _.length<2?"0"+_:_}function d(g,_){return g<_?(_+.05)/(g+.05):(g+.05)/(_+.05)}s.NULL_COLOR={css:"#00000000",rgba:0},(function(g){g.toCss=function(_,k,S,E){return E!==void 0?`#${f(_)}${f(k)}${f(S)}${f(E)}`:`#${f(_)}${f(k)}${f(S)}`},g.toRgba=function(_,k,S,E=255){return(_<<24|k<<16|S<<8|E)>>>0},g.toColor=function(_,k,S,E){return{css:g.toCss(_,k,S,E),rgba:g.toRgba(_,k,S,E)}}})(b||(s.channels=b={})),(function(g){function _(k,S){return h=Math.round(255*S),[o,l,m]=p.toChannels(k.rgba),{css:b.toCss(o,l,m,h),rgba:b.toRgba(o,l,m,h)}}g.blend=function(k,S){if(h=(255&S.rgba)/255,h===1)return{css:S.css,rgba:S.rgba};const E=S.rgba>>24&255,x=S.rgba>>16&255,C=S.rgba>>8&255,I=k.rgba>>24&255,R=k.rgba>>16&255,F=k.rgba>>8&255;return o=I+Math.round((E-I)*h),l=R+Math.round((x-R)*h),m=F+Math.round((C-F)*h),{css:b.toCss(o,l,m),rgba:b.toRgba(o,l,m)}},g.isOpaque=function(k){return(255&k.rgba)==255},g.ensureContrastRatio=function(k,S,E){const x=p.ensureContrastRatio(k.rgba,S.rgba,E);if(x)return b.toColor(x>>24&255,x>>16&255,x>>8&255)},g.opaque=function(k){const S=(255|k.rgba)>>>0;return[o,l,m]=p.toChannels(S),{css:b.toCss(o,l,m),rgba:S}},g.opacity=_,g.multiplyOpacity=function(k,S){return h=255&k.rgba,_(k,h*S/255)},g.toColorRGB=function(k){return[k.rgba>>24&255,k.rgba>>16&255,k.rgba>>8&255]}})(y||(s.color=y={})),(function(g){let _,k;try{const S=document.createElement("canvas");S.width=1,S.height=1;const E=S.getContext("2d",{willReadFrequently:!0});E&&(_=E,_.globalCompositeOperation="copy",k=_.createLinearGradient(0,0,1,1))}catch{}g.toColor=function(S){if(S.match(/#[\da-f]{3,8}/i))switch(S.length){case 4:return o=parseInt(S.slice(1,2).repeat(2),16),l=parseInt(S.slice(2,3).repeat(2),16),m=parseInt(S.slice(3,4).repeat(2),16),b.toColor(o,l,m);case 5:return o=parseInt(S.slice(1,2).repeat(2),16),l=parseInt(S.slice(2,3).repeat(2),16),m=parseInt(S.slice(3,4).repeat(2),16),h=parseInt(S.slice(4,5).repeat(2),16),b.toColor(o,l,m,h);case 7:return{css:S,rgba:(parseInt(S.slice(1),16)<<8|255)>>>0};case 9:return{css:S,rgba:parseInt(S.slice(1),16)>>>0}}const E=S.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(E)return o=parseInt(E[1]),l=parseInt(E[2]),m=parseInt(E[3]),h=Math.round(255*(E[5]===void 0?1:parseFloat(E[5]))),b.toColor(o,l,m,h);if(!_||!k)throw new Error("css.toColor: Unsupported css format");if(_.fillStyle=k,_.fillStyle=S,typeof _.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(_.fillRect(0,0,1,1),[o,l,m,h]=_.getImageData(0,0,1,1).data,h!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:b.toRgba(o,l,m,h),css:S}}})(w||(s.css=w={})),(function(g){function _(k,S,E){const x=k/255,C=S/255,I=E/255;return .2126*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.7152*(C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4))+.0722*(I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4))}g.relativeLuminance=function(k){return _(k>>16&255,k>>8&255,255&k)},g.relativeLuminance2=_})(v||(s.rgb=v={})),(function(g){function _(S,E,x){const C=S>>24&255,I=S>>16&255,R=S>>8&255;let F=E>>24&255,N=E>>16&255,B=E>>8&255,P=d(v.relativeLuminance2(F,N,B),v.relativeLuminance2(C,I,R));for(;P<x&&(F>0||N>0||B>0);)F-=Math.max(0,Math.ceil(.1*F)),N-=Math.max(0,Math.ceil(.1*N)),B-=Math.max(0,Math.ceil(.1*B)),P=d(v.relativeLuminance2(F,N,B),v.relativeLuminance2(C,I,R));return(F<<24|N<<16|B<<8|255)>>>0}function k(S,E,x){const C=S>>24&255,I=S>>16&255,R=S>>8&255;let F=E>>24&255,N=E>>16&255,B=E>>8&255,P=d(v.relativeLuminance2(F,N,B),v.relativeLuminance2(C,I,R));for(;P<x&&(F<255||N<255||B<255);)F=Math.min(255,F+Math.ceil(.1*(255-F))),N=Math.min(255,N+Math.ceil(.1*(255-N))),B=Math.min(255,B+Math.ceil(.1*(255-B))),P=d(v.relativeLuminance2(F,N,B),v.relativeLuminance2(C,I,R));return(F<<24|N<<16|B<<8|255)>>>0}g.blend=function(S,E){if(h=(255&E)/255,h===1)return E;const x=E>>24&255,C=E>>16&255,I=E>>8&255,R=S>>24&255,F=S>>16&255,N=S>>8&255;return o=R+Math.round((x-R)*h),l=F+Math.round((C-F)*h),m=N+Math.round((I-N)*h),b.toRgba(o,l,m)},g.ensureContrastRatio=function(S,E,x){const C=v.relativeLuminance(S>>8),I=v.relativeLuminance(E>>8);if(d(C,I)<x){if(I<C){const N=_(S,E,x),B=d(C,v.relativeLuminance(N>>8));if(B<x){const P=k(S,E,x);return B>d(C,v.relativeLuminance(P>>8))?N:P}return N}const R=k(S,E,x),F=d(C,v.relativeLuminance(R>>8));if(F<x){const N=_(S,E,x);return F>d(C,v.relativeLuminance(N>>8))?R:N}return R}},g.reduceLuminance=_,g.increaseLuminance=k,g.toChannels=function(S){return[S>>24&255,S>>16&255,S>>8&255,255&S]}})(p||(s.rgba=p={})),s.toPaddedHex=f,s.contrastRatio=d},8969:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CoreTerminal=void 0;const l=o(844),m=o(2585),h=o(4348),b=o(7866),y=o(744),w=o(7302),v=o(6975),p=o(8460),f=o(1753),d=o(1480),g=o(7994),_=o(9282),k=o(5435),S=o(5981),E=o(2660);let x=!1;class C extends l.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new p.EventEmitter),this._onScroll.event((R=>{var F;(F=this._onScrollApi)==null||F.fire(R.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(R){for(const F in R)this.optionsService.options[F]=R[F]}constructor(R){super(),this._windowsWrappingHeuristics=this.register(new l.MutableDisposable),this._onBinary=this.register(new p.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new p.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new p.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new p.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new p.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new p.EventEmitter),this._instantiationService=new h.InstantiationService,this.optionsService=this.register(new w.OptionsService(R)),this._instantiationService.setService(m.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(y.BufferService)),this._instantiationService.setService(m.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(b.LogService)),this._instantiationService.setService(m.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(v.CoreService)),this._instantiationService.setService(m.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(m.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(d.UnicodeService)),this._instantiationService.setService(m.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(g.CharsetService),this._instantiationService.setService(m.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(E.OscLinkService),this._instantiationService.setService(m.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new k.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,p.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,p.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,p.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,p.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((F=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((F=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new S.WriteBuffer(((F,N)=>this._inputHandler.parse(F,N)))),this.register((0,p.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(R,F){this._writeBuffer.write(R,F)}writeSync(R,F){this._logService.logLevel<=m.LogLevelEnum.WARN&&!x&&(this._logService.warn("writeSync is unreliable and will be removed soon."),x=!0),this._writeBuffer.writeSync(R,F)}input(R,F=!0){this.coreService.triggerDataEvent(R,F)}resize(R,F){isNaN(R)||isNaN(F)||(R=Math.max(R,y.MINIMUM_COLS),F=Math.max(F,y.MINIMUM_ROWS),this._bufferService.resize(R,F))}scroll(R,F=!1){this._bufferService.scroll(R,F)}scrollLines(R,F,N){this._bufferService.scrollLines(R,F,N)}scrollPages(R){this.scrollLines(R*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(R){const F=R-this._bufferService.buffer.ydisp;F!==0&&this.scrollLines(F)}registerEscHandler(R,F){return this._inputHandler.registerEscHandler(R,F)}registerDcsHandler(R,F){return this._inputHandler.registerDcsHandler(R,F)}registerCsiHandler(R,F){return this._inputHandler.registerCsiHandler(R,F)}registerOscHandler(R,F){return this._inputHandler.registerOscHandler(R,F)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let R=!1;const F=this.optionsService.rawOptions.windowsPty;F&&F.buildNumber!==void 0&&F.buildNumber!==void 0?R=F.backend==="conpty"&&F.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(R=!0),R?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const R=[];R.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),R.push(this.registerCsiHandler({final:"H"},(()=>((0,_.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,l.toDisposable)((()=>{for(const F of R)F.dispose()}))}}}s.CoreTerminal=C},8460:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.runAndSubscribe=s.forwardEvent=s.EventEmitter=void 0,s.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let l=0;l<this._listeners.length;l++)if(this._listeners[l]===o)return void this._listeners.splice(l,1)}}})),this._event}fire(o,l){const m=[];for(let h=0;h<this._listeners.length;h++)m.push(this._listeners[h]);for(let h=0;h<m.length;h++)m[h].call(void 0,o,l)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},s.forwardEvent=function(o,l){return o((m=>l.fire(m)))},s.runAndSubscribe=function(o,l){return l(void 0),o((m=>l(m)))}},5435:function(u,s,o){var l=this&&this.__decorate||function(H,T,D,M){var L,W=arguments.length,V=W<3?T:M===null?M=Object.getOwnPropertyDescriptor(T,D):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(H,T,D,M);else for(var Q=H.length-1;Q>=0;Q--)(L=H[Q])&&(V=(W<3?L(V):W>3?L(T,D,V):L(T,D))||V);return W>3&&V&&Object.defineProperty(T,D,V),V},m=this&&this.__param||function(H,T){return function(D,M){T(D,M,H)}};Object.defineProperty(s,"__esModule",{value:!0}),s.InputHandler=s.WindowsOptionsReportType=void 0;const h=o(2584),b=o(7116),y=o(2015),w=o(844),v=o(482),p=o(8437),f=o(8460),d=o(643),g=o(511),_=o(3734),k=o(2585),S=o(1480),E=o(6242),x=o(6351),C=o(5941),I={"(":0,")":1,"*":2,"+":3,"-":1,".":2},R=131072;function F(H,T){if(H>24)return T.setWinLines||!1;switch(H){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.setWinLines}return!1}var N;(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(N||(s.WindowsOptionsReportType=N={}));let B=0;class P extends w.Disposable{getAttrData(){return this._curAttrData}constructor(T,D,M,L,W,V,Q,re,z=new y.EscapeSequenceParser){super(),this._bufferService=T,this._charsetService=D,this._coreService=M,this._logService=L,this._optionsService=W,this._oscLinkService=V,this._coreMouseService=Q,this._unicodeService=re,this._parser=z,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new v.StringToUtf32,this._utf8Decoder=new v.Utf8ToUtf32,this._workCell=new g.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new j(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((O=>this._activeBuffer=O.activeBuffer))),this._parser.setCsiHandlerFallback(((O,K)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(O),params:K.toArray()})})),this._parser.setEscHandlerFallback((O=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(O)})})),this._parser.setExecuteHandlerFallback((O=>{this._logService.debug("Unknown EXECUTE code: ",{code:O})})),this._parser.setOscHandlerFallback(((O,K,q)=>{this._logService.debug("Unknown OSC code: ",{identifier:O,action:K,data:q})})),this._parser.setDcsHandlerFallback(((O,K,q)=>{K==="HOOK"&&(q=q.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(O),action:K,payload:q})})),this._parser.setPrintHandler(((O,K,q)=>this.print(O,K,q))),this._parser.registerCsiHandler({final:"@"},(O=>this.insertChars(O))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(O=>this.scrollLeft(O))),this._parser.registerCsiHandler({final:"A"},(O=>this.cursorUp(O))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(O=>this.scrollRight(O))),this._parser.registerCsiHandler({final:"B"},(O=>this.cursorDown(O))),this._parser.registerCsiHandler({final:"C"},(O=>this.cursorForward(O))),this._parser.registerCsiHandler({final:"D"},(O=>this.cursorBackward(O))),this._parser.registerCsiHandler({final:"E"},(O=>this.cursorNextLine(O))),this._parser.registerCsiHandler({final:"F"},(O=>this.cursorPrecedingLine(O))),this._parser.registerCsiHandler({final:"G"},(O=>this.cursorCharAbsolute(O))),this._parser.registerCsiHandler({final:"H"},(O=>this.cursorPosition(O))),this._parser.registerCsiHandler({final:"I"},(O=>this.cursorForwardTab(O))),this._parser.registerCsiHandler({final:"J"},(O=>this.eraseInDisplay(O,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(O=>this.eraseInDisplay(O,!0))),this._parser.registerCsiHandler({final:"K"},(O=>this.eraseInLine(O,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(O=>this.eraseInLine(O,!0))),this._parser.registerCsiHandler({final:"L"},(O=>this.insertLines(O))),this._parser.registerCsiHandler({final:"M"},(O=>this.deleteLines(O))),this._parser.registerCsiHandler({final:"P"},(O=>this.deleteChars(O))),this._parser.registerCsiHandler({final:"S"},(O=>this.scrollUp(O))),this._parser.registerCsiHandler({final:"T"},(O=>this.scrollDown(O))),this._parser.registerCsiHandler({final:"X"},(O=>this.eraseChars(O))),this._parser.registerCsiHandler({final:"Z"},(O=>this.cursorBackwardTab(O))),this._parser.registerCsiHandler({final:"`"},(O=>this.charPosAbsolute(O))),this._parser.registerCsiHandler({final:"a"},(O=>this.hPositionRelative(O))),this._parser.registerCsiHandler({final:"b"},(O=>this.repeatPrecedingCharacter(O))),this._parser.registerCsiHandler({final:"c"},(O=>this.sendDeviceAttributesPrimary(O))),this._parser.registerCsiHandler({prefix:">",final:"c"},(O=>this.sendDeviceAttributesSecondary(O))),this._parser.registerCsiHandler({final:"d"},(O=>this.linePosAbsolute(O))),this._parser.registerCsiHandler({final:"e"},(O=>this.vPositionRelative(O))),this._parser.registerCsiHandler({final:"f"},(O=>this.hVPosition(O))),this._parser.registerCsiHandler({final:"g"},(O=>this.tabClear(O))),this._parser.registerCsiHandler({final:"h"},(O=>this.setMode(O))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(O=>this.setModePrivate(O))),this._parser.registerCsiHandler({final:"l"},(O=>this.resetMode(O))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(O=>this.resetModePrivate(O))),this._parser.registerCsiHandler({final:"m"},(O=>this.charAttributes(O))),this._parser.registerCsiHandler({final:"n"},(O=>this.deviceStatus(O))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(O=>this.deviceStatusPrivate(O))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(O=>this.softReset(O))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(O=>this.setCursorStyle(O))),this._parser.registerCsiHandler({final:"r"},(O=>this.setScrollRegion(O))),this._parser.registerCsiHandler({final:"s"},(O=>this.saveCursor(O))),this._parser.registerCsiHandler({final:"t"},(O=>this.windowOptions(O))),this._parser.registerCsiHandler({final:"u"},(O=>this.restoreCursor(O))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(O=>this.insertColumns(O))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(O=>this.deleteColumns(O))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(O=>this.selectProtected(O))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(O=>this.requestMode(O,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(O=>this.requestMode(O,!1))),this._parser.setExecuteHandler(h.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(h.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(h.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(h.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(h.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(h.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(h.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(h.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(h.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new E.OscHandler((O=>(this.setTitle(O),this.setIconName(O),!0)))),this._parser.registerOscHandler(1,new E.OscHandler((O=>this.setIconName(O)))),this._parser.registerOscHandler(2,new E.OscHandler((O=>this.setTitle(O)))),this._parser.registerOscHandler(4,new E.OscHandler((O=>this.setOrReportIndexedColor(O)))),this._parser.registerOscHandler(8,new E.OscHandler((O=>this.setHyperlink(O)))),this._parser.registerOscHandler(10,new E.OscHandler((O=>this.setOrReportFgColor(O)))),this._parser.registerOscHandler(11,new E.OscHandler((O=>this.setOrReportBgColor(O)))),this._parser.registerOscHandler(12,new E.OscHandler((O=>this.setOrReportCursorColor(O)))),this._parser.registerOscHandler(104,new E.OscHandler((O=>this.restoreIndexedColor(O)))),this._parser.registerOscHandler(110,new E.OscHandler((O=>this.restoreFgColor(O)))),this._parser.registerOscHandler(111,new E.OscHandler((O=>this.restoreBgColor(O)))),this._parser.registerOscHandler(112,new E.OscHandler((O=>this.restoreCursorColor(O)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const O in b.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:O},(()=>this.selectCharset("("+O))),this._parser.registerEscHandler({intermediates:")",final:O},(()=>this.selectCharset(")"+O))),this._parser.registerEscHandler({intermediates:"*",final:O},(()=>this.selectCharset("*"+O))),this._parser.registerEscHandler({intermediates:"+",final:O},(()=>this.selectCharset("+"+O))),this._parser.registerEscHandler({intermediates:"-",final:O},(()=>this.selectCharset("-"+O))),this._parser.registerEscHandler({intermediates:".",final:O},(()=>this.selectCharset("."+O))),this._parser.registerEscHandler({intermediates:"/",final:O},(()=>this.selectCharset("/"+O)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((O=>(this._logService.error("Parsing error: ",O),O))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new x.DcsHandler(((O,K)=>this.requestStatusString(O,K))))}_preserveStack(T,D,M,L){this._parseStack.paused=!0,this._parseStack.cursorStartX=T,this._parseStack.cursorStartY=D,this._parseStack.decodedLength=M,this._parseStack.position=L}_logSlowResolvingAsync(T){this._logService.logLevel<=k.LogLevelEnum.WARN&&Promise.race([T,new Promise(((D,M)=>setTimeout((()=>M("#SLOW_TIMEOUT")),5e3)))]).catch((D=>{if(D!=="#SLOW_TIMEOUT")throw D;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(T,D){let M,L=this._activeBuffer.x,W=this._activeBuffer.y,V=0;const Q=this._parseStack.paused;if(Q){if(M=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,D))return this._logSlowResolvingAsync(M),M;L=this._parseStack.cursorStartX,W=this._parseStack.cursorStartY,this._parseStack.paused=!1,T.length>R&&(V=this._parseStack.position+R)}if(this._logService.logLevel<=k.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof T=="string"?` "${T}"`:` "${Array.prototype.map.call(T,(O=>String.fromCharCode(O))).join("")}"`),typeof T=="string"?T.split("").map((O=>O.charCodeAt(0))):T),this._parseBuffer.length<T.length&&this._parseBuffer.length<R&&(this._parseBuffer=new Uint32Array(Math.min(T.length,R))),Q||this._dirtyRowTracker.clearRange(),T.length>R)for(let O=V;O<T.length;O+=R){const K=O+R<T.length?O+R:T.length,q=typeof T=="string"?this._stringDecoder.decode(T.substring(O,K),this._parseBuffer):this._utf8Decoder.decode(T.subarray(O,K),this._parseBuffer);if(M=this._parser.parse(this._parseBuffer,q))return this._preserveStack(L,W,q,O),this._logSlowResolvingAsync(M),M}else if(!Q){const O=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer);if(M=this._parser.parse(this._parseBuffer,O))return this._preserveStack(L,W,O,0),this._logSlowResolvingAsync(M),M}this._activeBuffer.x===L&&this._activeBuffer.y===W||this._onCursorMove.fire();const re=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),z=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);z<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(z,this._bufferService.rows-1),Math.min(re,this._bufferService.rows-1))}print(T,D,M){let L,W;const V=this._charsetService.charset,Q=this._optionsService.rawOptions.screenReaderMode,re=this._bufferService.cols,z=this._coreService.decPrivateModes.wraparound,O=this._coreService.modes.insertMode,K=this._curAttrData;let q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&M-D>0&&q.getWidth(this._activeBuffer.x-1)===2&&q.setCellFromCodepoint(this._activeBuffer.x-1,0,1,K);let ee=this._parser.precedingJoinState;for(let J=D;J<M;++J){if(L=T[J],L<127&&V){const ce=V[String.fromCharCode(L)];ce&&(L=ce.charCodeAt(0))}const oe=this._unicodeService.charProperties(L,ee);W=S.UnicodeService.extractWidth(oe);const Z=S.UnicodeService.extractShouldJoin(oe),se=Z?S.UnicodeService.extractWidth(ee):0;if(ee=oe,Q&&this._onA11yChar.fire((0,v.stringFromCodePoint)(L)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+W-se>re){if(z){const ce=q;let ne=this._activeBuffer.x-se;for(this._activeBuffer.x=se,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),se>0&&q instanceof p.BufferLine&&q.copyCellsFrom(ce,ne,0,se,!1);ne<re;)ce.setCellFromCodepoint(ne++,0,1,K)}else if(this._activeBuffer.x=re-1,W===2)continue}if(Z&&this._activeBuffer.x){const ce=q.getWidth(this._activeBuffer.x-1)?1:2;q.addCodepointToCell(this._activeBuffer.x-ce,L,W);for(let ne=W-se;--ne>=0;)q.setCellFromCodepoint(this._activeBuffer.x++,0,0,K)}else if(O&&(q.insertCells(this._activeBuffer.x,W-se,this._activeBuffer.getNullCell(K)),q.getWidth(re-1)===2&&q.setCellFromCodepoint(re-1,d.NULL_CELL_CODE,d.NULL_CELL_WIDTH,K)),q.setCellFromCodepoint(this._activeBuffer.x++,L,W,K),W>0)for(;--W;)q.setCellFromCodepoint(this._activeBuffer.x++,0,0,K)}this._parser.precedingJoinState=ee,this._activeBuffer.x<re&&M-D>0&&q.getWidth(this._activeBuffer.x)===0&&!q.hasContent(this._activeBuffer.x)&&q.setCellFromCodepoint(this._activeBuffer.x,0,1,K),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(T,D){return T.final!=="t"||T.prefix||T.intermediates?this._parser.registerCsiHandler(T,D):this._parser.registerCsiHandler(T,(M=>!F(M.params[0],this._optionsService.rawOptions.windowOptions)||D(M)))}registerDcsHandler(T,D){return this._parser.registerDcsHandler(T,new x.DcsHandler(D))}registerEscHandler(T,D){return this._parser.registerEscHandler(T,D)}registerOscHandler(T,D){return this._parser.registerOscHandler(T,new E.OscHandler(D))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var T;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((T=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&T.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);D.hasWidth(this._activeBuffer.x)&&!D.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const T=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-T),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(T=this._bufferService.cols-1){this._activeBuffer.x=Math.min(T,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(T,D){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=T,this._activeBuffer.y=this._activeBuffer.scrollTop+D):(this._activeBuffer.x=T,this._activeBuffer.y=D),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(T,D){this._restrictCursor(),this._setCursor(this._activeBuffer.x+T,this._activeBuffer.y+D)}cursorUp(T){const D=this._activeBuffer.y-this._activeBuffer.scrollTop;return D>=0?this._moveCursor(0,-Math.min(D,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1)),!0}cursorDown(T){const D=this._activeBuffer.scrollBottom-this._activeBuffer.y;return D>=0?this._moveCursor(0,Math.min(D,T.params[0]||1)):this._moveCursor(0,T.params[0]||1),!0}cursorForward(T){return this._moveCursor(T.params[0]||1,0),!0}cursorBackward(T){return this._moveCursor(-(T.params[0]||1),0),!0}cursorNextLine(T){return this.cursorDown(T),this._activeBuffer.x=0,!0}cursorPrecedingLine(T){return this.cursorUp(T),this._activeBuffer.x=0,!0}cursorCharAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(T){return this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1),!0}charPosAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(T){return this._moveCursor(T.params[0]||1,0),!0}linePosAbsolute(T){return this._setCursor(this._activeBuffer.x,(T.params[0]||1)-1),!0}vPositionRelative(T){return this._moveCursor(0,T.params[0]||1),!0}hVPosition(T){return this.cursorPosition(T),!0}tabClear(T){const D=T.params[0];return D===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:D===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let D=T.params[0]||1;for(;D--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let D=T.params[0]||1;for(;D--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(T){const D=T.params[0];return D===1&&(this._curAttrData.bg|=536870912),D!==2&&D!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(T,D,M,L=!1,W=!1){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);V.replaceCells(D,M,this._activeBuffer.getNullCell(this._eraseAttrData()),W),L&&(V.isWrapped=!1)}_resetBufferLine(T,D=!1){const M=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);M&&(M.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),D),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+T),M.isWrapped=!1)}eraseInDisplay(T,D=!1){let M;switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:for(M=this._activeBuffer.y,this._dirtyRowTracker.markDirty(M),this._eraseInBufferLine(M++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,D);M<this._bufferService.rows;M++)this._resetBufferLine(M,D);this._dirtyRowTracker.markDirty(M);break;case 1:for(M=this._activeBuffer.y,this._dirtyRowTracker.markDirty(M),this._eraseInBufferLine(M,0,this._activeBuffer.x+1,!0,D),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(M+1).isWrapped=!1);M--;)this._resetBufferLine(M,D);this._dirtyRowTracker.markDirty(0);break;case 2:for(M=this._bufferService.rows,this._dirtyRowTracker.markDirty(M-1);M--;)this._resetBufferLine(M,D);this._dirtyRowTracker.markDirty(0);break;case 3:const L=this._activeBuffer.lines.length-this._bufferService.rows;L>0&&(this._activeBuffer.lines.trimStart(L),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-L,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-L,0),this._onScroll.fire(0))}return!0}eraseInLine(T,D=!1){switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,D);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,D);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,D)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(T){this._restrictCursor();let D=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const M=this._activeBuffer.ybase+this._activeBuffer.y,L=this._bufferService.rows-1-this._activeBuffer.scrollBottom,W=this._bufferService.rows-1+this._activeBuffer.ybase-L+1;for(;D--;)this._activeBuffer.lines.splice(W-1,1),this._activeBuffer.lines.splice(M,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(T){this._restrictCursor();let D=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const M=this._activeBuffer.ybase+this._activeBuffer.y;let L;for(L=this._bufferService.rows-1-this._activeBuffer.scrollBottom,L=this._bufferService.rows-1+this._activeBuffer.ybase-L;D--;)this._activeBuffer.lines.splice(M,1),this._activeBuffer.lines.splice(L,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(T){this._restrictCursor();const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return D&&(D.insertCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(T){this._restrictCursor();const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return D&&(D.deleteCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(T){let D=T.params[0]||1;for(;D--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(T){let D=T.params[0]||1;for(;D--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(p.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);L.deleteCells(0,D,this._activeBuffer.getNullCell(this._eraseAttrData())),L.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);L.insertCells(0,D,this._activeBuffer.getNullCell(this._eraseAttrData())),L.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);L.insertCells(this._activeBuffer.x,D,this._activeBuffer.getNullCell(this._eraseAttrData())),L.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);L.deleteCells(this._activeBuffer.x,D,this._activeBuffer.getNullCell(this._eraseAttrData())),L.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(T){this._restrictCursor();const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return D&&(D.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(T.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(T){const D=this._parser.precedingJoinState;if(!D)return!0;const M=T.params[0]||1,L=S.UnicodeService.extractWidth(D),W=this._activeBuffer.x-L,V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(W),Q=new Uint32Array(V.length*M);let re=0;for(let O=0;O<V.length;){const K=V.codePointAt(O)||0;Q[re++]=K,O+=K>65535?2:1}let z=re;for(let O=1;O<M;++O)Q.copyWithin(z,0,re),z+=re;return this.print(Q,0,z),!0}sendDeviceAttributesPrimary(T){return T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(h.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(h.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(T){return T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(h.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(h.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c")),!0}_is(T){return(this._optionsService.rawOptions.termName+"").indexOf(T)===0}setMode(T){for(let D=0;D<T.length;D++)switch(T.params[D]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(T){for(let D=0;D<T.length;D++)switch(T.params[D]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,b.DEFAULT_CHARSET),this._charsetService.setgCharset(1,b.DEFAULT_CHARSET),this._charsetService.setgCharset(2,b.DEFAULT_CHARSET),this._charsetService.setgCharset(3,b.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(T){for(let D=0;D<T.length;D++)switch(T.params[D]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(T){for(let D=0;D<T.length;D++)switch(T.params[D]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[D]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(T,D){const M=this._coreService.decPrivateModes,{activeProtocol:L,activeEncoding:W}=this._coreMouseService,V=this._coreService,{buffers:Q,cols:re}=this._bufferService,{active:z,alt:O}=Q,K=this._optionsService.rawOptions,q=Z=>Z?1:2,ee=T.params[0];return J=ee,oe=D?ee===2?4:ee===4?q(V.modes.insertMode):ee===12?3:ee===20?q(K.convertEol):0:ee===1?q(M.applicationCursorKeys):ee===3?K.windowOptions.setWinLines?re===80?2:re===132?1:0:0:ee===6?q(M.origin):ee===7?q(M.wraparound):ee===8?3:ee===9?q(L==="X10"):ee===12?q(K.cursorBlink):ee===25?q(!V.isCursorHidden):ee===45?q(M.reverseWraparound):ee===66?q(M.applicationKeypad):ee===67?4:ee===1e3?q(L==="VT200"):ee===1002?q(L==="DRAG"):ee===1003?q(L==="ANY"):ee===1004?q(M.sendFocus):ee===1005?4:ee===1006?q(W==="SGR"):ee===1015?4:ee===1016?q(W==="SGR_PIXELS"):ee===1048?1:ee===47||ee===1047||ee===1049?q(z===O):ee===2004?q(M.bracketedPasteMode):0,V.triggerDataEvent(`${h.C0.ESC}[${D?"":"?"}${J};${oe}$y`),!0;var J,oe}_updateAttrColor(T,D,M,L,W){return D===2?(T|=50331648,T&=-16777216,T|=_.AttributeData.fromColorRGB([M,L,W])):D===5&&(T&=-50331904,T|=33554432|255&M),T}_extractColor(T,D,M){const L=[0,0,-1,0,0,0];let W=0,V=0;do{if(L[V+W]=T.params[D+V],T.hasSubParams(D+V)){const Q=T.getSubParams(D+V);let re=0;do L[1]===5&&(W=1),L[V+re+1+W]=Q[re];while(++re<Q.length&&re+V+1+W<L.length);break}if(L[1]===5&&V+W>=2||L[1]===2&&V+W>=5)break;L[1]&&(W=1)}while(++V+D<T.length&&V+W<L.length);for(let Q=2;Q<L.length;++Q)L[Q]===-1&&(L[Q]=0);switch(L[0]){case 38:M.fg=this._updateAttrColor(M.fg,L[1],L[3],L[4],L[5]);break;case 48:M.bg=this._updateAttrColor(M.bg,L[1],L[3],L[4],L[5]);break;case 58:M.extended=M.extended.clone(),M.extended.underlineColor=this._updateAttrColor(M.extended.underlineColor,L[1],L[3],L[4],L[5])}return V}_processUnderline(T,D){D.extended=D.extended.clone(),(!~T||T>5)&&(T=1),D.extended.underlineStyle=T,D.fg|=268435456,T===0&&(D.fg&=-268435457),D.updateExtended()}_processSGR0(T){T.fg=p.DEFAULT_ATTR_DATA.fg,T.bg=p.DEFAULT_ATTR_DATA.bg,T.extended=T.extended.clone(),T.extended.underlineStyle=0,T.extended.underlineColor&=-67108864,T.updateExtended()}charAttributes(T){if(T.length===1&&T.params[0]===0)return this._processSGR0(this._curAttrData),!0;const D=T.length;let M;const L=this._curAttrData;for(let W=0;W<D;W++)M=T.params[W],M>=30&&M<=37?(L.fg&=-50331904,L.fg|=16777216|M-30):M>=40&&M<=47?(L.bg&=-50331904,L.bg|=16777216|M-40):M>=90&&M<=97?(L.fg&=-50331904,L.fg|=16777224|M-90):M>=100&&M<=107?(L.bg&=-50331904,L.bg|=16777224|M-100):M===0?this._processSGR0(L):M===1?L.fg|=134217728:M===3?L.bg|=67108864:M===4?(L.fg|=268435456,this._processUnderline(T.hasSubParams(W)?T.getSubParams(W)[0]:1,L)):M===5?L.fg|=536870912:M===7?L.fg|=67108864:M===8?L.fg|=1073741824:M===9?L.fg|=2147483648:M===2?L.bg|=134217728:M===21?this._processUnderline(2,L):M===22?(L.fg&=-134217729,L.bg&=-134217729):M===23?L.bg&=-67108865:M===24?(L.fg&=-268435457,this._processUnderline(0,L)):M===25?L.fg&=-536870913:M===27?L.fg&=-67108865:M===28?L.fg&=-1073741825:M===29?L.fg&=2147483647:M===39?(L.fg&=-67108864,L.fg|=16777215&p.DEFAULT_ATTR_DATA.fg):M===49?(L.bg&=-67108864,L.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):M===38||M===48||M===58?W+=this._extractColor(T,W,L):M===53?L.bg|=1073741824:M===55?L.bg&=-1073741825:M===59?(L.extended=L.extended.clone(),L.extended.underlineColor=-1,L.updateExtended()):M===100?(L.fg&=-67108864,L.fg|=16777215&p.DEFAULT_ATTR_DATA.fg,L.bg&=-67108864,L.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",M);return!0}deviceStatus(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(`${h.C0.ESC}[0n`);break;case 6:const D=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${h.C0.ESC}[${D};${M}R`)}return!0}deviceStatusPrivate(T){if(T.params[0]===6){const D=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${h.C0.ESC}[?${D};${M}R`)}return!0}softReset(T){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(T){const D=T.params[0]||1;switch(D){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const M=D%2==1;return this._optionsService.options.cursorBlink=M,!0}setScrollRegion(T){const D=T.params[0]||1;let M;return(T.length<2||(M=T.params[1])>this._bufferService.rows||M===0)&&(M=this._bufferService.rows),M>D&&(this._activeBuffer.scrollTop=D-1,this._activeBuffer.scrollBottom=M-1,this._setCursor(0,0)),!0}windowOptions(T){if(!F(T.params[0],this._optionsService.rawOptions.windowOptions))return!0;const D=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:D!==2&&this._onRequestWindowsOptionsReport.fire(N.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(N.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${h.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:D!==0&&D!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),D!==0&&D!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:D!==0&&D!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),D!==0&&D!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(T){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(T){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(T){return this._windowTitle=T,this._onTitleChange.fire(T),!0}setIconName(T){return this._iconName=T,!0}setOrReportIndexedColor(T){const D=[],M=T.split(";");for(;M.length>1;){const L=M.shift(),W=M.shift();if(/^\d+$/.exec(L)){const V=parseInt(L);if(U(V))if(W==="?")D.push({type:0,index:V});else{const Q=(0,C.parseColor)(W);Q&&D.push({type:1,index:V,color:Q})}}}return D.length&&this._onColor.fire(D),!0}setHyperlink(T){const D=T.split(";");return!(D.length<2)&&(D[1]?this._createHyperlink(D[0],D[1]):!D[0]&&this._finishHyperlink())}_createHyperlink(T,D){this._getCurrentLinkId()&&this._finishHyperlink();const M=T.split(":");let L;const W=M.findIndex((V=>V.startsWith("id=")));return W!==-1&&(L=M[W].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:L,uri:D}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(T,D){const M=T.split(";");for(let L=0;L<M.length&&!(D>=this._specialColors.length);++L,++D)if(M[L]==="?")this._onColor.fire([{type:0,index:this._specialColors[D]}]);else{const W=(0,C.parseColor)(M[L]);W&&this._onColor.fire([{type:1,index:this._specialColors[D],color:W}])}return!0}setOrReportFgColor(T){return this._setOrReportSpecialColor(T,0)}setOrReportBgColor(T){return this._setOrReportSpecialColor(T,1)}setOrReportCursorColor(T){return this._setOrReportSpecialColor(T,2)}restoreIndexedColor(T){if(!T)return this._onColor.fire([{type:2}]),!0;const D=[],M=T.split(";");for(let L=0;L<M.length;++L)if(/^\d+$/.exec(M[L])){const W=parseInt(M[L]);U(W)&&D.push({type:2,index:W})}return D.length&&this._onColor.fire(D),!0}restoreFgColor(T){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(T){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(T){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,b.DEFAULT_CHARSET),!0}selectCharset(T){return T.length!==2?(this.selectDefaultCharset(),!0):(T[0]==="/"||this._charsetService.setgCharset(I[T[0]],b.CHARSETS[T[1]]||b.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const T=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,T,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(T){return this._charsetService.setgLevel(T),!0}screenAlignmentPattern(){const T=new g.CellData;T.content=4194373,T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg,this._setCursor(0,0);for(let D=0;D<this._bufferService.rows;++D){const M=this._activeBuffer.ybase+this._activeBuffer.y+D,L=this._activeBuffer.lines.get(M);L&&(L.fill(T),L.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(T,D){const M=this._bufferService.buffer,L=this._optionsService.rawOptions;return(W=>(this._coreService.triggerDataEvent(`${h.C0.ESC}${W}${h.C0.ESC}\\`),!0))(T==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:T==='"p'?'P1$r61;1"p':T==="r"?`P1$r${M.scrollTop+1};${M.scrollBottom+1}r`:T==="m"?"P1$r0m":T===" q"?`P1$r${{block:2,underline:4,bar:6}[L.cursorStyle]-(L.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(T,D){this._dirtyRowTracker.markRangeDirty(T,D)}}s.InputHandler=P;let j=class{constructor(H){this._bufferService=H,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(H){H<this.start?this.start=H:H>this.end&&(this.end=H)}markRangeDirty(H,T){H>T&&(B=H,H=T,T=B),H<this.start&&(this.start=H),T>this.end&&(this.end=T)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function U(H){return 0<=H&&H<256}j=l([m(0,k.IBufferService)],j)},844:(u,s)=>{function o(l){for(const m of l)m.dispose();l.length=0}Object.defineProperty(s,"__esModule",{value:!0}),s.getDisposeArrayDisposable=s.disposeArray=s.toDisposable=s.MutableDisposable=s.Disposable=void 0,s.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const l of this._disposables)l.dispose();this._disposables.length=0}register(l){return this._disposables.push(l),l}unregister(l){const m=this._disposables.indexOf(l);m!==-1&&this._disposables.splice(m,1)}},s.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(l){var m;this._isDisposed||l===this._value||((m=this._value)==null||m.dispose(),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,(l=this._value)==null||l.dispose(),this._value=void 0}},s.toDisposable=function(l){return{dispose:l}},s.disposeArray=o,s.getDisposeArrayDisposable=function(l){return{dispose:()=>o(l)}}},1505:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.FourKeyMap=s.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(m,h,b){this._data[m]||(this._data[m]={}),this._data[m][h]=b}get(m,h){return this._data[m]?this._data[m][h]:void 0}clear(){this._data={}}}s.TwoKeyMap=o,s.FourKeyMap=class{constructor(){this._data=new o}set(l,m,h,b,y){this._data.get(l,m)||this._data.set(l,m,new o),this._data.get(l,m).set(h,b,y)}get(l,m,h,b){var y;return(y=this._data.get(l,m))==null?void 0:y.get(h,b)}clear(){this._data.clear()}}},6114:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.isChromeOS=s.isLinux=s.isWindows=s.isIphone=s.isIpad=s.isMac=s.getSafariVersion=s.isSafari=s.isLegacyEdge=s.isFirefox=s.isNode=void 0,s.isNode=typeof process<"u"&&"title"in process;const o=s.isNode?"node":navigator.userAgent,l=s.isNode?"node":navigator.platform;s.isFirefox=o.includes("Firefox"),s.isLegacyEdge=o.includes("Edge"),s.isSafari=/^((?!chrome|android).)*safari/i.test(o),s.getSafariVersion=function(){if(!s.isSafari)return 0;const m=o.match(/Version\/(\d+)/);return m===null||m.length<2?0:parseInt(m[1])},s.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),s.isIpad=l==="iPad",s.isIphone=l==="iPhone",s.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),s.isLinux=l.indexOf("Linux")>=0,s.isChromeOS=/\bCrOS\b/.test(o)},6106:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SortedList=void 0;let o=0;s.SortedList=class{constructor(l){this._getKey=l,this._array=[]}clear(){this._array.length=0}insert(l){this._array.length!==0?(o=this._search(this._getKey(l)),this._array.splice(o,0,l)):this._array.push(l)}delete(l){if(this._array.length===0)return!1;const m=this._getKey(l);if(m===void 0||(o=this._search(m),o===-1)||this._getKey(this._array[o])!==m)return!1;do if(this._array[o]===l)return this._array.splice(o,1),!0;while(++o<this._array.length&&this._getKey(this._array[o])===m);return!1}*getKeyIterator(l){if(this._array.length!==0&&(o=this._search(l),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===l))do yield this._array[o];while(++o<this._array.length&&this._getKey(this._array[o])===l)}forEachByKey(l,m){if(this._array.length!==0&&(o=this._search(l),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===l))do m(this._array[o]);while(++o<this._array.length&&this._getKey(this._array[o])===l)}values(){return[...this._array].values()}_search(l){let m=0,h=this._array.length-1;for(;h>=m;){let b=m+h>>1;const y=this._getKey(this._array[b]);if(y>l)h=b-1;else{if(!(y<l)){for(;b>0&&this._getKey(this._array[b-1])===l;)b--;return b}m=b+1}}return m}}},7226:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DebouncedIdleTask=s.IdleTaskQueue=s.PriorityTaskQueue=void 0;const l=o(6114);class m{constructor(){this._tasks=[],this._i=0}enqueue(y){this._tasks.push(y),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(y){this._idleCallback=void 0;let w=0,v=0,p=y.timeRemaining(),f=0;for(;this._i<this._tasks.length;){if(w=Date.now(),this._tasks[this._i]()||this._i++,w=Math.max(1,Date.now()-w),v=Math.max(w,v),f=y.timeRemaining(),1.5*v>f)return p-w<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(p-w))}ms`),void this._start();p=f}this.clear()}}class h extends m{_requestCallback(y){return setTimeout((()=>y(this._createDeadline(16))))}_cancelCallback(y){clearTimeout(y)}_createDeadline(y){const w=Date.now()+y;return{timeRemaining:()=>Math.max(0,w-Date.now())}}}s.PriorityTaskQueue=h,s.IdleTaskQueue=!l.isNode&&"requestIdleCallback"in window?class extends m{_requestCallback(b){return requestIdleCallback(b)}_cancelCallback(b){cancelIdleCallback(b)}}:h,s.DebouncedIdleTask=class{constructor(){this._queue=new s.IdleTaskQueue}set(b){this._queue.clear(),this._queue.enqueue(b)}flush(){this._queue.flush()}}},9282:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.updateWindowsModeWrappedState=void 0;const l=o(643);s.updateWindowsModeWrappedState=function(m){const h=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),b=h==null?void 0:h.get(m.cols-1),y=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);y&&b&&(y.isWrapped=b[l.CHAR_DATA_CODE_INDEX]!==l.NULL_CELL_CODE&&b[l.CHAR_DATA_CODE_INDEX]!==l.WHITESPACE_CELL_CODE)}},3734:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExtendedAttrs=s.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new l}static toColorRGB(h){return[h>>>16&255,h>>>8&255,255&h]}static fromColorRGB(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]}clone(){const h=new o;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}s.AttributeData=o;class l{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(h){this._ext=h}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(h){this._ext&=-469762049,this._ext|=h<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(h){this._ext&=-67108864,this._ext|=67108863&h}get urlId(){return this._urlId}set urlId(h){this._urlId=h}get underlineVariantOffset(){const h=(3758096384&this._ext)>>29;return h<0?4294967288^h:h}set underlineVariantOffset(h){this._ext&=536870911,this._ext|=h<<29&3758096384}constructor(h=0,b=0){this._ext=0,this._urlId=0,this._ext=h,this._urlId=b}clone(){return new l(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}s.ExtendedAttrs=l},9092:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Buffer=s.MAX_BUFFER_SIZE=void 0;const l=o(6349),m=o(7226),h=o(3734),b=o(8437),y=o(4634),w=o(511),v=o(643),p=o(4863),f=o(7116);s.MAX_BUFFER_SIZE=4294967295,s.Buffer=class{constructor(d,g,_){this._hasScrollback=d,this._optionsService=g,this._bufferService=_,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=b.DEFAULT_ATTR_DATA.clone(),this.savedCharset=f.DEFAULT_CHARSET,this.markers=[],this._nullCell=w.CellData.fromCharData([0,v.NULL_CELL_CHAR,v.NULL_CELL_WIDTH,v.NULL_CELL_CODE]),this._whitespaceCell=w.CellData.fromCharData([0,v.WHITESPACE_CELL_CHAR,v.WHITESPACE_CELL_WIDTH,v.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new m.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(d){return d?(this._nullCell.fg=d.fg,this._nullCell.bg=d.bg,this._nullCell.extended=d.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new h.ExtendedAttrs),this._nullCell}getWhitespaceCell(d){return d?(this._whitespaceCell.fg=d.fg,this._whitespaceCell.bg=d.bg,this._whitespaceCell.extended=d.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new h.ExtendedAttrs),this._whitespaceCell}getBlankLine(d,g){return new b.BufferLine(this._bufferService.cols,this.getNullCell(d),g)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const d=this.ybase+this.y-this.ydisp;return d>=0&&d<this._rows}_getCorrectBufferLength(d){if(!this._hasScrollback)return d;const g=d+this._optionsService.rawOptions.scrollback;return g>s.MAX_BUFFER_SIZE?s.MAX_BUFFER_SIZE:g}fillViewportRows(d){if(this.lines.length===0){d===void 0&&(d=b.DEFAULT_ATTR_DATA);let g=this._rows;for(;g--;)this.lines.push(this.getBlankLine(d))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(d,g){const _=this.getNullCell(b.DEFAULT_ATTR_DATA);let k=0;const S=this._getCorrectBufferLength(g);if(S>this.lines.maxLength&&(this.lines.maxLength=S),this.lines.length>0){if(this._cols<d)for(let x=0;x<this.lines.length;x++)k+=+this.lines.get(x).resize(d,_);let E=0;if(this._rows<g)for(let x=this._rows;x<g;x++)this.lines.length<g+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new b.BufferLine(d,_)):this.ybase>0&&this.lines.length<=this.ybase+this.y+E+1?(this.ybase--,E++,this.ydisp>0&&this.ydisp--):this.lines.push(new b.BufferLine(d,_)));else for(let x=this._rows;x>g;x--)this.lines.length>g+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(S<this.lines.maxLength){const x=this.lines.length-S;x>0&&(this.lines.trimStart(x),this.ybase=Math.max(this.ybase-x,0),this.ydisp=Math.max(this.ydisp-x,0),this.savedY=Math.max(this.savedY-x,0)),this.lines.maxLength=S}this.x=Math.min(this.x,d-1),this.y=Math.min(this.y,g-1),E&&(this.y+=E),this.savedX=Math.min(this.savedX,d-1),this.scrollTop=0}if(this.scrollBottom=g-1,this._isReflowEnabled&&(this._reflow(d,g),this._cols>d))for(let E=0;E<this.lines.length;E++)k+=+this.lines.get(E).resize(d,_);this._cols=d,this._rows=g,this._memoryCleanupQueue.clear(),k>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let d=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,d=!1);let g=0;for(;this._memoryCleanupPosition<this.lines.length;)if(g+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),g>100)return!0;return d}get _isReflowEnabled(){const d=this._optionsService.rawOptions.windowsPty;return d&&d.buildNumber?this._hasScrollback&&d.backend==="conpty"&&d.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(d,g){this._cols!==d&&(d>this._cols?this._reflowLarger(d,g):this._reflowSmaller(d,g))}_reflowLarger(d,g){const _=(0,y.reflowLargerGetLinesToRemove)(this.lines,this._cols,d,this.ybase+this.y,this.getNullCell(b.DEFAULT_ATTR_DATA));if(_.length>0){const k=(0,y.reflowLargerCreateNewLayout)(this.lines,_);(0,y.reflowLargerApplyNewLayout)(this.lines,k.layout),this._reflowLargerAdjustViewport(d,g,k.countRemoved)}}_reflowLargerAdjustViewport(d,g,_){const k=this.getNullCell(b.DEFAULT_ATTR_DATA);let S=_;for(;S-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<g&&this.lines.push(new b.BufferLine(d,k))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-_,0)}_reflowSmaller(d,g){const _=this.getNullCell(b.DEFAULT_ATTR_DATA),k=[];let S=0;for(let E=this.lines.length-1;E>=0;E--){let x=this.lines.get(E);if(!x||!x.isWrapped&&x.getTrimmedLength()<=d)continue;const C=[x];for(;x.isWrapped&&E>0;)x=this.lines.get(--E),C.unshift(x);const I=this.ybase+this.y;if(I>=E&&I<E+C.length)continue;const R=C[C.length-1].getTrimmedLength(),F=(0,y.reflowSmallerGetNewLineLengths)(C,this._cols,d),N=F.length-C.length;let B;B=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+N):Math.max(0,this.lines.length-this.lines.maxLength+N);const P=[];for(let M=0;M<N;M++){const L=this.getBlankLine(b.DEFAULT_ATTR_DATA,!0);P.push(L)}P.length>0&&(k.push({start:E+C.length+S,newLines:P}),S+=P.length),C.push(...P);let j=F.length-1,U=F[j];U===0&&(j--,U=F[j]);let H=C.length-N-1,T=R;for(;H>=0;){const M=Math.min(T,U);if(C[j]===void 0)break;if(C[j].copyCellsFrom(C[H],T-M,U-M,M,!0),U-=M,U===0&&(j--,U=F[j]),T-=M,T===0){H--;const L=Math.max(H,0);T=(0,y.getWrappedLineTrimmedLength)(C,L,this._cols)}}for(let M=0;M<C.length;M++)F[M]<d&&C[M].setCell(F[M],_);let D=N-B;for(;D-- >0;)this.ybase===0?this.y<g-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+S)-g&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+N,this.ybase+g-1)}if(k.length>0){const E=[],x=[];for(let j=0;j<this.lines.length;j++)x.push(this.lines.get(j));const C=this.lines.length;let I=C-1,R=0,F=k[R];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+S);let N=0;for(let j=Math.min(this.lines.maxLength-1,C+S-1);j>=0;j--)if(F&&F.start>I+N){for(let U=F.newLines.length-1;U>=0;U--)this.lines.set(j--,F.newLines[U]);j++,E.push({index:I+1,amount:F.newLines.length}),N+=F.newLines.length,F=k[++R]}else this.lines.set(j,x[I--]);let B=0;for(let j=E.length-1;j>=0;j--)E[j].index+=B,this.lines.onInsertEmitter.fire(E[j]),B+=E[j].amount;const P=Math.max(0,C+S-this.lines.maxLength);P>0&&this.lines.onTrimEmitter.fire(P)}}translateBufferLineToString(d,g,_=0,k){const S=this.lines.get(d);return S?S.translateToString(g,_,k):""}getWrappedRangeForLine(d){let g=d,_=d;for(;g>0&&this.lines.get(g).isWrapped;)g--;for(;_+1<this.lines.length&&this.lines.get(_+1).isWrapped;)_++;return{first:g,last:_}}setupTabStops(d){for(d!=null?this.tabs[d]||(d=this.prevStop(d)):(this.tabs={},d=0);d<this._cols;d+=this._optionsService.rawOptions.tabStopWidth)this.tabs[d]=!0}prevStop(d){for(d==null&&(d=this.x);!this.tabs[--d]&&d>0;);return d>=this._cols?this._cols-1:d<0?0:d}nextStop(d){for(d==null&&(d=this.x);!this.tabs[++d]&&d<this._cols;);return d>=this._cols?this._cols-1:d<0?0:d}clearMarkers(d){this._isClearing=!0;for(let g=0;g<this.markers.length;g++)this.markers[g].line===d&&(this.markers[g].dispose(),this.markers.splice(g--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let d=0;d<this.markers.length;d++)this.markers[d].dispose(),this.markers.splice(d--,1);this._isClearing=!1}addMarker(d){const g=new p.Marker(d);return this.markers.push(g),g.register(this.lines.onTrim((_=>{g.line-=_,g.line<0&&g.dispose()}))),g.register(this.lines.onInsert((_=>{g.line>=_.index&&(g.line+=_.amount)}))),g.register(this.lines.onDelete((_=>{g.line>=_.index&&g.line<_.index+_.amount&&g.dispose(),g.line>_.index&&(g.line-=_.amount)}))),g.register(g.onDispose((()=>this._removeMarker(g)))),g}_removeMarker(d){this._isClearing||this.markers.splice(this.markers.indexOf(d),1)}}},8437:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferLine=s.DEFAULT_ATTR_DATA=void 0;const l=o(3734),m=o(511),h=o(643),b=o(482);s.DEFAULT_ATTR_DATA=Object.freeze(new l.AttributeData);let y=0;class w{constructor(p,f,d=!1){this.isWrapped=d,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*p);const g=f||m.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]);for(let _=0;_<p;++_)this.setCell(_,g);this.length=p}get(p){const f=this._data[3*p+0],d=2097151&f;return[this._data[3*p+1],2097152&f?this._combined[p]:d?(0,b.stringFromCodePoint)(d):"",f>>22,2097152&f?this._combined[p].charCodeAt(this._combined[p].length-1):d]}set(p,f){this._data[3*p+1]=f[h.CHAR_DATA_ATTR_INDEX],f[h.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[p]=f[1],this._data[3*p+0]=2097152|p|f[h.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*p+0]=f[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[h.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(p){return this._data[3*p+0]>>22}hasWidth(p){return 12582912&this._data[3*p+0]}getFg(p){return this._data[3*p+1]}getBg(p){return this._data[3*p+2]}hasContent(p){return 4194303&this._data[3*p+0]}getCodePoint(p){const f=this._data[3*p+0];return 2097152&f?this._combined[p].charCodeAt(this._combined[p].length-1):2097151&f}isCombined(p){return 2097152&this._data[3*p+0]}getString(p){const f=this._data[3*p+0];return 2097152&f?this._combined[p]:2097151&f?(0,b.stringFromCodePoint)(2097151&f):""}isProtected(p){return 536870912&this._data[3*p+2]}loadCell(p,f){return y=3*p,f.content=this._data[y+0],f.fg=this._data[y+1],f.bg=this._data[y+2],2097152&f.content&&(f.combinedData=this._combined[p]),268435456&f.bg&&(f.extended=this._extendedAttrs[p]),f}setCell(p,f){2097152&f.content&&(this._combined[p]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[p]=f.extended),this._data[3*p+0]=f.content,this._data[3*p+1]=f.fg,this._data[3*p+2]=f.bg}setCellFromCodepoint(p,f,d,g){268435456&g.bg&&(this._extendedAttrs[p]=g.extended),this._data[3*p+0]=f|d<<22,this._data[3*p+1]=g.fg,this._data[3*p+2]=g.bg}addCodepointToCell(p,f,d){let g=this._data[3*p+0];2097152&g?this._combined[p]+=(0,b.stringFromCodePoint)(f):2097151&g?(this._combined[p]=(0,b.stringFromCodePoint)(2097151&g)+(0,b.stringFromCodePoint)(f),g&=-2097152,g|=2097152):g=f|4194304,d&&(g&=-12582913,g|=d<<22),this._data[3*p+0]=g}insertCells(p,f,d){if((p%=this.length)&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,d),f<this.length-p){const g=new m.CellData;for(let _=this.length-p-f-1;_>=0;--_)this.setCell(p+f+_,this.loadCell(p+_,g));for(let _=0;_<f;++_)this.setCell(p+_,d)}else for(let g=p;g<this.length;++g)this.setCell(g,d);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,d)}deleteCells(p,f,d){if(p%=this.length,f<this.length-p){const g=new m.CellData;for(let _=0;_<this.length-p-f;++_)this.setCell(p+_,this.loadCell(p+f+_,g));for(let _=this.length-f;_<this.length;++_)this.setCell(_,d)}else for(let g=p;g<this.length;++g)this.setCell(g,d);p&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,d),this.getWidth(p)!==0||this.hasContent(p)||this.setCellFromCodepoint(p,0,1,d)}replaceCells(p,f,d,g=!1){if(g)for(p&&this.getWidth(p-1)===2&&!this.isProtected(p-1)&&this.setCellFromCodepoint(p-1,0,1,d),f<this.length&&this.getWidth(f-1)===2&&!this.isProtected(f)&&this.setCellFromCodepoint(f,0,1,d);p<f&&p<this.length;)this.isProtected(p)||this.setCell(p,d),p++;else for(p&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,d),f<this.length&&this.getWidth(f-1)===2&&this.setCellFromCodepoint(f,0,1,d);p<f&&p<this.length;)this.setCell(p++,d)}resize(p,f){if(p===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const d=3*p;if(p>this.length){if(this._data.buffer.byteLength>=4*d)this._data=new Uint32Array(this._data.buffer,0,d);else{const g=new Uint32Array(d);g.set(this._data),this._data=g}for(let g=this.length;g<p;++g)this.setCell(g,f)}else{this._data=this._data.subarray(0,d);const g=Object.keys(this._combined);for(let k=0;k<g.length;k++){const S=parseInt(g[k],10);S>=p&&delete this._combined[S]}const _=Object.keys(this._extendedAttrs);for(let k=0;k<_.length;k++){const S=parseInt(_[k],10);S>=p&&delete this._extendedAttrs[S]}}return this.length=p,4*d*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const p=new Uint32Array(this._data.length);return p.set(this._data),this._data=p,1}return 0}fill(p,f=!1){if(f)for(let d=0;d<this.length;++d)this.isProtected(d)||this.setCell(d,p);else{this._combined={},this._extendedAttrs={};for(let d=0;d<this.length;++d)this.setCell(d,p)}}copyFrom(p){this.length!==p.length?this._data=new Uint32Array(p._data):this._data.set(p._data),this.length=p.length,this._combined={};for(const f in p._combined)this._combined[f]=p._combined[f];this._extendedAttrs={};for(const f in p._extendedAttrs)this._extendedAttrs[f]=p._extendedAttrs[f];this.isWrapped=p.isWrapped}clone(){const p=new w(0);p._data=new Uint32Array(this._data),p.length=this.length;for(const f in this._combined)p._combined[f]=this._combined[f];for(const f in this._extendedAttrs)p._extendedAttrs[f]=this._extendedAttrs[f];return p.isWrapped=this.isWrapped,p}getTrimmedLength(){for(let p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0])return p+(this._data[3*p+0]>>22);return 0}getNoBgTrimmedLength(){for(let p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0]||50331648&this._data[3*p+2])return p+(this._data[3*p+0]>>22);return 0}copyCellsFrom(p,f,d,g,_){const k=p._data;if(_)for(let E=g-1;E>=0;E--){for(let x=0;x<3;x++)this._data[3*(d+E)+x]=k[3*(f+E)+x];268435456&k[3*(f+E)+2]&&(this._extendedAttrs[d+E]=p._extendedAttrs[f+E])}else for(let E=0;E<g;E++){for(let x=0;x<3;x++)this._data[3*(d+E)+x]=k[3*(f+E)+x];268435456&k[3*(f+E)+2]&&(this._extendedAttrs[d+E]=p._extendedAttrs[f+E])}const S=Object.keys(p._combined);for(let E=0;E<S.length;E++){const x=parseInt(S[E],10);x>=f&&(this._combined[x-f+d]=p._combined[x])}}translateToString(p,f,d,g){f=f??0,d=d??this.length,p&&(d=Math.min(d,this.getTrimmedLength())),g&&(g.length=0);let _="";for(;f<d;){const k=this._data[3*f+0],S=2097151&k,E=2097152&k?this._combined[f]:S?(0,b.stringFromCodePoint)(S):h.WHITESPACE_CELL_CHAR;if(_+=E,g)for(let x=0;x<E.length;++x)g.push(f);f+=k>>22||1}return g&&g.push(f),_}}s.BufferLine=w},4841:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getRangeLength=void 0,s.getRangeLength=function(o,l){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return l*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(u,s)=>{function o(l,m,h){if(m===l.length-1)return l[m].getTrimmedLength();const b=!l[m].hasContent(h-1)&&l[m].getWidth(h-1)===1,y=l[m+1].getWidth(0)===2;return b&&y?h-1:h}Object.defineProperty(s,"__esModule",{value:!0}),s.getWrappedLineTrimmedLength=s.reflowSmallerGetNewLineLengths=s.reflowLargerApplyNewLayout=s.reflowLargerCreateNewLayout=s.reflowLargerGetLinesToRemove=void 0,s.reflowLargerGetLinesToRemove=function(l,m,h,b,y){const w=[];for(let v=0;v<l.length-1;v++){let p=v,f=l.get(++p);if(!f.isWrapped)continue;const d=[l.get(v)];for(;p<l.length&&f.isWrapped;)d.push(f),f=l.get(++p);if(b>=v&&b<p){v+=d.length-1;continue}let g=0,_=o(d,g,m),k=1,S=0;for(;k<d.length;){const x=o(d,k,m),C=x-S,I=h-_,R=Math.min(C,I);d[g].copyCellsFrom(d[k],S,_,R,!1),_+=R,_===h&&(g++,_=0),S+=R,S===x&&(k++,S=0),_===0&&g!==0&&d[g-1].getWidth(h-1)===2&&(d[g].copyCellsFrom(d[g-1],h-1,_++,1,!1),d[g-1].setCell(h-1,y))}d[g].replaceCells(_,h,y);let E=0;for(let x=d.length-1;x>0&&(x>g||d[x].getTrimmedLength()===0);x--)E++;E>0&&(w.push(v+d.length-E),w.push(E)),v+=d.length-1}return w},s.reflowLargerCreateNewLayout=function(l,m){const h=[];let b=0,y=m[b],w=0;for(let v=0;v<l.length;v++)if(y===v){const p=m[++b];l.onDeleteEmitter.fire({index:v-w,amount:p}),v+=p-1,w+=p,y=m[++b]}else h.push(v);return{layout:h,countRemoved:w}},s.reflowLargerApplyNewLayout=function(l,m){const h=[];for(let b=0;b<m.length;b++)h.push(l.get(m[b]));for(let b=0;b<h.length;b++)l.set(b,h[b]);l.length=m.length},s.reflowSmallerGetNewLineLengths=function(l,m,h){const b=[],y=l.map(((f,d)=>o(l,d,m))).reduce(((f,d)=>f+d));let w=0,v=0,p=0;for(;p<y;){if(y-p<h){b.push(y-p);break}w+=h;const f=o(l,v,m);w>f&&(w-=f,v++);const d=l[v].getWidth(w-1)===2;d&&w--;const g=d?h-1:h;b.push(g),p+=g}return b},s.getWrappedLineTrimmedLength=o},5295:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferSet=void 0;const l=o(8460),m=o(844),h=o(9092);class b extends m.Disposable{constructor(w,v){super(),this._optionsService=w,this._bufferService=v,this._onBufferActivate=this.register(new l.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new h.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new h.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(w){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(w),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(w,v){this._normal.resize(w,v),this._alt.resize(w,v),this.setupTabStops(w)}setupTabStops(w){this._normal.setupTabStops(w),this._alt.setupTabStops(w)}}s.BufferSet=b},511:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CellData=void 0;const l=o(482),m=o(643),h=o(3734);class b extends h.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new h.ExtendedAttrs,this.combinedData=""}static fromCharData(w){const v=new b;return v.setFromCharData(w),v}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,l.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(w){this.fg=w[m.CHAR_DATA_ATTR_INDEX],this.bg=0;let v=!1;if(w[m.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(w[m.CHAR_DATA_CHAR_INDEX].length===2){const p=w[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=p&&p<=56319){const f=w[m.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(p-55296)+f-56320+65536|w[m.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=w[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[m.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=w[m.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[m.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}s.CellData=b},643:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.WHITESPACE_CELL_CODE=s.WHITESPACE_CELL_WIDTH=s.WHITESPACE_CELL_CHAR=s.NULL_CELL_CODE=s.NULL_CELL_WIDTH=s.NULL_CELL_CHAR=s.CHAR_DATA_CODE_INDEX=s.CHAR_DATA_WIDTH_INDEX=s.CHAR_DATA_CHAR_INDEX=s.CHAR_DATA_ATTR_INDEX=s.DEFAULT_EXT=s.DEFAULT_ATTR=s.DEFAULT_COLOR=void 0,s.DEFAULT_COLOR=0,s.DEFAULT_ATTR=256|s.DEFAULT_COLOR<<9,s.DEFAULT_EXT=0,s.CHAR_DATA_ATTR_INDEX=0,s.CHAR_DATA_CHAR_INDEX=1,s.CHAR_DATA_WIDTH_INDEX=2,s.CHAR_DATA_CODE_INDEX=3,s.NULL_CELL_CHAR="",s.NULL_CELL_WIDTH=1,s.NULL_CELL_CODE=0,s.WHITESPACE_CELL_CHAR=" ",s.WHITESPACE_CELL_WIDTH=1,s.WHITESPACE_CELL_CODE=32},4863:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Marker=void 0;const l=o(8460),m=o(844);class h{get id(){return this._id}constructor(y){this.line=y,this.isDisposed=!1,this._disposables=[],this._id=h._nextId++,this._onDispose=this.register(new l.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,m.disposeArray)(this._disposables),this._disposables.length=0)}register(y){return this._disposables.push(y),y}}s.Marker=h,h._nextId=1},7116:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DEFAULT_CHARSET=s.CHARSETS=void 0,s.CHARSETS={},s.DEFAULT_CHARSET=s.CHARSETS.B,s.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},s.CHARSETS.A={"#":"£"},s.CHARSETS.B=void 0,s.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},s.CHARSETS.C=s.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},s.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},s.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},s.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},s.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},s.CHARSETS.E=s.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},s.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},s.CHARSETS.H=s.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},s.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(u,s)=>{var o,l,m;Object.defineProperty(s,"__esModule",{value:!0}),s.C1_ESCAPED=s.C1=s.C0=void 0,(function(h){h.NUL="\0",h.SOH="",h.STX="",h.ETX="",h.EOT="",h.ENQ="",h.ACK="",h.BEL="\x07",h.BS="\b",h.HT=" ",h.LF=`
491
- `,h.VT="\v",h.FF="\f",h.CR="\r",h.SO="",h.SI="",h.DLE="",h.DC1="",h.DC2="",h.DC3="",h.DC4="",h.NAK="",h.SYN="",h.ETB="",h.CAN="",h.EM="",h.SUB="",h.ESC="\x1B",h.FS="",h.GS="",h.RS="",h.US="",h.SP=" ",h.DEL=""})(o||(s.C0=o={})),(function(h){h.PAD="€",h.HOP="",h.BPH="‚",h.NBH="ƒ",h.IND="„",h.NEL="…",h.SSA="†",h.ESA="‡",h.HTS="ˆ",h.HTJ="‰",h.VTS="Š",h.PLD="‹",h.PLU="Œ",h.RI="",h.SS2="Ž",h.SS3="",h.DCS="",h.PU1="‘",h.PU2="’",h.STS="“",h.CCH="”",h.MW="•",h.SPA="–",h.EPA="—",h.SOS="˜",h.SGCI="™",h.SCI="š",h.CSI="›",h.ST="œ",h.OSC="",h.PM="ž",h.APC="Ÿ"})(l||(s.C1=l={})),(function(h){h.ST=`${o.ESC}\\`})(m||(s.C1_ESCAPED=m={}))},7399:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.evaluateKeyboardEvent=void 0;const l=o(2584),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};s.evaluateKeyboardEvent=function(h,b,y,w){const v={type:0,cancel:!1,key:void 0},p=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?v.key=b?l.C0.ESC+"OA":l.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?v.key=b?l.C0.ESC+"OD":l.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?v.key=b?l.C0.ESC+"OC":l.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(v.key=b?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:v.key=h.ctrlKey?"\b":l.C0.DEL,h.altKey&&(v.key=l.C0.ESC+v.key);break;case 9:if(h.shiftKey){v.key=l.C0.ESC+"[Z";break}v.key=l.C0.HT,v.cancel=!0;break;case 13:v.key=h.altKey?l.C0.ESC+l.C0.CR:l.C0.CR,v.cancel=!0;break;case 27:v.key=l.C0.ESC,h.altKey&&(v.key=l.C0.ESC+l.C0.ESC),v.cancel=!0;break;case 37:if(h.metaKey)break;p?(v.key=l.C0.ESC+"[1;"+(p+1)+"D",v.key===l.C0.ESC+"[1;3D"&&(v.key=l.C0.ESC+(y?"b":"[1;5D"))):v.key=b?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(h.metaKey)break;p?(v.key=l.C0.ESC+"[1;"+(p+1)+"C",v.key===l.C0.ESC+"[1;3C"&&(v.key=l.C0.ESC+(y?"f":"[1;5C"))):v.key=b?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(h.metaKey)break;p?(v.key=l.C0.ESC+"[1;"+(p+1)+"A",y||v.key!==l.C0.ESC+"[1;3A"||(v.key=l.C0.ESC+"[1;5A")):v.key=b?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(h.metaKey)break;p?(v.key=l.C0.ESC+"[1;"+(p+1)+"B",y||v.key!==l.C0.ESC+"[1;3B"||(v.key=l.C0.ESC+"[1;5B")):v.key=b?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(v.key=l.C0.ESC+"[2~");break;case 46:v.key=p?l.C0.ESC+"[3;"+(p+1)+"~":l.C0.ESC+"[3~";break;case 36:v.key=p?l.C0.ESC+"[1;"+(p+1)+"H":b?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:v.key=p?l.C0.ESC+"[1;"+(p+1)+"F":b?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:h.shiftKey?v.type=2:h.ctrlKey?v.key=l.C0.ESC+"[5;"+(p+1)+"~":v.key=l.C0.ESC+"[5~";break;case 34:h.shiftKey?v.type=3:h.ctrlKey?v.key=l.C0.ESC+"[6;"+(p+1)+"~":v.key=l.C0.ESC+"[6~";break;case 112:v.key=p?l.C0.ESC+"[1;"+(p+1)+"P":l.C0.ESC+"OP";break;case 113:v.key=p?l.C0.ESC+"[1;"+(p+1)+"Q":l.C0.ESC+"OQ";break;case 114:v.key=p?l.C0.ESC+"[1;"+(p+1)+"R":l.C0.ESC+"OR";break;case 115:v.key=p?l.C0.ESC+"[1;"+(p+1)+"S":l.C0.ESC+"OS";break;case 116:v.key=p?l.C0.ESC+"[15;"+(p+1)+"~":l.C0.ESC+"[15~";break;case 117:v.key=p?l.C0.ESC+"[17;"+(p+1)+"~":l.C0.ESC+"[17~";break;case 118:v.key=p?l.C0.ESC+"[18;"+(p+1)+"~":l.C0.ESC+"[18~";break;case 119:v.key=p?l.C0.ESC+"[19;"+(p+1)+"~":l.C0.ESC+"[19~";break;case 120:v.key=p?l.C0.ESC+"[20;"+(p+1)+"~":l.C0.ESC+"[20~";break;case 121:v.key=p?l.C0.ESC+"[21;"+(p+1)+"~":l.C0.ESC+"[21~";break;case 122:v.key=p?l.C0.ESC+"[23;"+(p+1)+"~":l.C0.ESC+"[23~";break;case 123:v.key=p?l.C0.ESC+"[24;"+(p+1)+"~":l.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(y&&!w||!h.altKey||h.metaKey)!y||h.altKey||h.ctrlKey||h.shiftKey||!h.metaKey?h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?v.key=h.key:h.key&&h.ctrlKey&&(h.key==="_"&&(v.key=l.C0.US),h.key==="@"&&(v.key=l.C0.NUL)):h.keyCode===65&&(v.type=1);else{const f=m[h.keyCode],d=f==null?void 0:f[h.shiftKey?1:0];if(d)v.key=l.C0.ESC+d;else if(h.keyCode>=65&&h.keyCode<=90){const g=h.ctrlKey?h.keyCode-64:h.keyCode+32;let _=String.fromCharCode(g);h.shiftKey&&(_=_.toUpperCase()),v.key=l.C0.ESC+_}else if(h.keyCode===32)v.key=l.C0.ESC+(h.ctrlKey?l.C0.NUL:" ");else if(h.key==="Dead"&&h.code.startsWith("Key")){let g=h.code.slice(3,4);h.shiftKey||(g=g.toLowerCase()),v.key=l.C0.ESC+g,v.cancel=!0}}else h.keyCode>=65&&h.keyCode<=90?v.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?v.key=l.C0.NUL:h.keyCode>=51&&h.keyCode<=55?v.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?v.key=l.C0.DEL:h.keyCode===219?v.key=l.C0.ESC:h.keyCode===220?v.key=l.C0.FS:h.keyCode===221&&(v.key=l.C0.GS)}return v}},482:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Utf8ToUtf32=s.StringToUtf32=s.utf32ToString=s.stringFromCodePoint=void 0,s.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},s.utf32ToString=function(o,l=0,m=o.length){let h="";for(let b=l;b<m;++b){let y=o[b];y>65535?(y-=65536,h+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):h+=String.fromCharCode(y)}return h},s.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,l){const m=o.length;if(!m)return 0;let h=0,b=0;if(this._interim){const y=o.charCodeAt(b++);56320<=y&&y<=57343?l[h++]=1024*(this._interim-55296)+y-56320+65536:(l[h++]=this._interim,l[h++]=y),this._interim=0}for(let y=b;y<m;++y){const w=o.charCodeAt(y);if(55296<=w&&w<=56319){if(++y>=m)return this._interim=w,h;const v=o.charCodeAt(y);56320<=v&&v<=57343?l[h++]=1024*(w-55296)+v-56320+65536:(l[h++]=w,l[h++]=v)}else w!==65279&&(l[h++]=w)}return h}},s.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,l){const m=o.length;if(!m)return 0;let h,b,y,w,v=0,p=0,f=0;if(this.interim[0]){let _=!1,k=this.interim[0];k&=(224&k)==192?31:(240&k)==224?15:7;let S,E=0;for(;(S=63&this.interim[++E])&&E<4;)k<<=6,k|=S;const x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,C=x-E;for(;f<C;){if(f>=m)return 0;if(S=o[f++],(192&S)!=128){f--,_=!0;break}this.interim[E++]=S,k<<=6,k|=63&S}_||(x===2?k<128?f--:l[v++]=k:x===3?k<2048||k>=55296&&k<=57343||k===65279||(l[v++]=k):k<65536||k>1114111||(l[v++]=k)),this.interim.fill(0)}const d=m-4;let g=f;for(;g<m;){for(;!(!(g<d)||128&(h=o[g])||128&(b=o[g+1])||128&(y=o[g+2])||128&(w=o[g+3]));)l[v++]=h,l[v++]=b,l[v++]=y,l[v++]=w,g+=4;if(h=o[g++],h<128)l[v++]=h;else if((224&h)==192){if(g>=m)return this.interim[0]=h,v;if(b=o[g++],(192&b)!=128){g--;continue}if(p=(31&h)<<6|63&b,p<128){g--;continue}l[v++]=p}else if((240&h)==224){if(g>=m)return this.interim[0]=h,v;if(b=o[g++],(192&b)!=128){g--;continue}if(g>=m)return this.interim[0]=h,this.interim[1]=b,v;if(y=o[g++],(192&y)!=128){g--;continue}if(p=(15&h)<<12|(63&b)<<6|63&y,p<2048||p>=55296&&p<=57343||p===65279)continue;l[v++]=p}else if((248&h)==240){if(g>=m)return this.interim[0]=h,v;if(b=o[g++],(192&b)!=128){g--;continue}if(g>=m)return this.interim[0]=h,this.interim[1]=b,v;if(y=o[g++],(192&y)!=128){g--;continue}if(g>=m)return this.interim[0]=h,this.interim[1]=b,this.interim[2]=y,v;if(w=o[g++],(192&w)!=128){g--;continue}if(p=(7&h)<<18|(63&b)<<12|(63&y)<<6|63&w,p<65536||p>1114111)continue;l[v++]=p}}return v}}},225:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeV6=void 0;const l=o(1480),m=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let b;s.UnicodeV6=class{constructor(){if(this.version="6",!b){b=new Uint8Array(65536),b.fill(1),b[0]=0,b.fill(0,1,32),b.fill(0,127,160),b.fill(2,4352,4448),b[9001]=2,b[9002]=2,b.fill(2,11904,42192),b[12351]=1,b.fill(2,44032,55204),b.fill(2,63744,64256),b.fill(2,65040,65050),b.fill(2,65072,65136),b.fill(2,65280,65377),b.fill(2,65504,65511);for(let y=0;y<m.length;++y)b.fill(0,m[y][0],m[y][1]+1)}}wcwidth(y){return y<32?0:y<127?1:y<65536?b[y]:(function(w,v){let p,f=0,d=v.length-1;if(w<v[0][0]||w>v[d][1])return!1;for(;d>=f;)if(p=f+d>>1,w>v[p][1])f=p+1;else{if(!(w<v[p][0]))return!0;d=p-1}return!1})(y,h)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1}charProperties(y,w){let v=this.wcwidth(y),p=v===0&&w!==0;if(p){const f=l.UnicodeService.extractWidth(w);f===0?p=!1:f>v&&(v=f)}return l.UnicodeService.createPropertyValue(0,v,p)}}},5981:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.WriteBuffer=void 0;const l=o(8460),m=o(844);class h extends m.Disposable{constructor(y){super(),this._action=y,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(y,w){if(w!==void 0&&this._syncCalls>w)return void(this._syncCalls=0);if(this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);const p=this._callbacks.shift();p&&p()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(y,w){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(w),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(w)}_innerWrite(y=0,w=!0){const v=y||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const p=this._writeBuffer[this._bufferOffset],f=this._action(p,w);if(f){const g=_=>Date.now()-v>=12?setTimeout((()=>this._innerWrite(0,_))):this._innerWrite(v,_);return void f.catch((_=>(queueMicrotask((()=>{throw _})),Promise.resolve(!1)))).then(g)}const d=this._callbacks[this._bufferOffset];if(d&&d(),this._bufferOffset++,this._pendingData-=p.length,Date.now()-v>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}s.WriteBuffer=h},5941:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.toRgbString=s.parseColor=void 0;const o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,l=/^[\da-f]+$/;function m(h,b){const y=h.toString(16),w=y.length<2?"0"+y:y;switch(b){case 4:return y[0];case 8:return w;case 12:return(w+w).slice(0,3);default:return w+w}}s.parseColor=function(h){if(!h)return;let b=h.toLowerCase();if(b.indexOf("rgb:")===0){b=b.slice(4);const y=o.exec(b);if(y){const w=y[1]?15:y[4]?255:y[7]?4095:65535;return[Math.round(parseInt(y[1]||y[4]||y[7]||y[10],16)/w*255),Math.round(parseInt(y[2]||y[5]||y[8]||y[11],16)/w*255),Math.round(parseInt(y[3]||y[6]||y[9]||y[12],16)/w*255)]}}else if(b.indexOf("#")===0&&(b=b.slice(1),l.exec(b)&&[3,6,9,12].includes(b.length))){const y=b.length/3,w=[0,0,0];for(let v=0;v<3;++v){const p=parseInt(b.slice(y*v,y*v+y),16);w[v]=y===1?p<<4:y===2?p:y===3?p>>4:p>>8}return w}},s.toRgbString=function(h,b=16){const[y,w,v]=h;return`rgb:${m(y,b)}/${m(w,b)}/${m(v,b)}`}},5770:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PAYLOAD_LIMIT=void 0,s.PAYLOAD_LIMIT=1e7},6351:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DcsHandler=s.DcsParser=void 0;const l=o(482),m=o(8742),h=o(5770),b=[];s.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=b,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=b}registerHandler(w,v){this._handlers[w]===void 0&&(this._handlers[w]=[]);const p=this._handlers[w];return p.push(v),{dispose:()=>{const f=p.indexOf(v);f!==-1&&p.splice(f,1)}}}clearHandler(w){this._handlers[w]&&delete this._handlers[w]}setHandlerFallback(w){this._handlerFb=w}reset(){if(this._active.length)for(let w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=b,this._ident=0}hook(w,v){if(this.reset(),this._ident=w,this._active=this._handlers[w]||b,this._active.length)for(let p=this._active.length-1;p>=0;p--)this._active[p].hook(v);else this._handlerFb(this._ident,"HOOK",v)}put(w,v,p){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(w,v,p);else this._handlerFb(this._ident,"PUT",(0,l.utf32ToString)(w,v,p))}unhook(w,v=!0){if(this._active.length){let p=!1,f=this._active.length-1,d=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,p=v,d=this._stack.fallThrough,this._stack.paused=!1),!d&&p===!1){for(;f>=0&&(p=this._active[f].unhook(w),p!==!0);f--)if(p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,p;f--}for(;f>=0;f--)if(p=this._active[f].unhook(!1),p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,p}else this._handlerFb(this._ident,"UNHOOK",w);this._active=b,this._ident=0}};const y=new m.Params;y.addParam(0),s.DcsHandler=class{constructor(w){this._handler=w,this._data="",this._params=y,this._hitLimit=!1}hook(w){this._params=w.length>1||w.params[0]?w.clone():y,this._data="",this._hitLimit=!1}put(w,v,p){this._hitLimit||(this._data+=(0,l.utf32ToString)(w,v,p),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(w){let v=!1;if(this._hitLimit)v=!1;else if(w&&(v=this._handler(this._data,this._params),v instanceof Promise))return v.then((p=>(this._params=y,this._data="",this._hitLimit=!1,p)));return this._params=y,this._data="",this._hitLimit=!1,v}}},2015:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.EscapeSequenceParser=s.VT500_TRANSITION_TABLE=s.TransitionTable=void 0;const l=o(844),m=o(8742),h=o(6242),b=o(6351);class y{constructor(f){this.table=new Uint8Array(f)}setDefault(f,d){this.table.fill(f<<4|d)}add(f,d,g,_){this.table[d<<8|f]=g<<4|_}addMany(f,d,g,_){for(let k=0;k<f.length;k++)this.table[d<<8|f[k]]=g<<4|_}}s.TransitionTable=y;const w=160;s.VT500_TRANSITION_TABLE=(function(){const p=new y(4095),f=Array.apply(null,Array(256)).map(((E,x)=>x)),d=(E,x)=>f.slice(E,x),g=d(32,127),_=d(0,24);_.push(25),_.push.apply(_,d(28,32));const k=d(0,14);let S;for(S in p.setDefault(1,0),p.addMany(g,0,2,0),k)p.addMany([24,26,153,154],S,3,0),p.addMany(d(128,144),S,3,0),p.addMany(d(144,152),S,3,0),p.add(156,S,0,0),p.add(27,S,11,1),p.add(157,S,4,8),p.addMany([152,158,159],S,0,7),p.add(155,S,11,3),p.add(144,S,11,9);return p.addMany(_,0,3,0),p.addMany(_,1,3,1),p.add(127,1,0,1),p.addMany(_,8,0,8),p.addMany(_,3,3,3),p.add(127,3,0,3),p.addMany(_,4,3,4),p.add(127,4,0,4),p.addMany(_,6,3,6),p.addMany(_,5,3,5),p.add(127,5,0,5),p.addMany(_,2,3,2),p.add(127,2,0,2),p.add(93,1,4,8),p.addMany(g,8,5,8),p.add(127,8,5,8),p.addMany([156,27,24,26,7],8,6,0),p.addMany(d(28,32),8,0,8),p.addMany([88,94,95],1,0,7),p.addMany(g,7,0,7),p.addMany(_,7,0,7),p.add(156,7,0,0),p.add(127,7,0,7),p.add(91,1,11,3),p.addMany(d(64,127),3,7,0),p.addMany(d(48,60),3,8,4),p.addMany([60,61,62,63],3,9,4),p.addMany(d(48,60),4,8,4),p.addMany(d(64,127),4,7,0),p.addMany([60,61,62,63],4,0,6),p.addMany(d(32,64),6,0,6),p.add(127,6,0,6),p.addMany(d(64,127),6,0,0),p.addMany(d(32,48),3,9,5),p.addMany(d(32,48),5,9,5),p.addMany(d(48,64),5,0,6),p.addMany(d(64,127),5,7,0),p.addMany(d(32,48),4,9,5),p.addMany(d(32,48),1,9,2),p.addMany(d(32,48),2,9,2),p.addMany(d(48,127),2,10,0),p.addMany(d(48,80),1,10,0),p.addMany(d(81,88),1,10,0),p.addMany([89,90,92],1,10,0),p.addMany(d(96,127),1,10,0),p.add(80,1,11,9),p.addMany(_,9,0,9),p.add(127,9,0,9),p.addMany(d(28,32),9,0,9),p.addMany(d(32,48),9,9,12),p.addMany(d(48,60),9,8,10),p.addMany([60,61,62,63],9,9,10),p.addMany(_,11,0,11),p.addMany(d(32,128),11,0,11),p.addMany(d(28,32),11,0,11),p.addMany(_,10,0,10),p.add(127,10,0,10),p.addMany(d(28,32),10,0,10),p.addMany(d(48,60),10,8,10),p.addMany([60,61,62,63],10,0,11),p.addMany(d(32,48),10,9,12),p.addMany(_,12,0,12),p.add(127,12,0,12),p.addMany(d(28,32),12,0,12),p.addMany(d(32,48),12,9,12),p.addMany(d(48,64),12,0,11),p.addMany(d(64,127),12,12,13),p.addMany(d(64,127),10,12,13),p.addMany(d(64,127),9,12,13),p.addMany(_,13,13,13),p.addMany(g,13,13,13),p.add(127,13,0,13),p.addMany([27,156,24,26],13,14,0),p.add(w,0,2,0),p.add(w,8,5,8),p.add(w,6,0,6),p.add(w,11,0,11),p.add(w,13,13,13),p})();class v extends l.Disposable{constructor(f=s.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new m.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(d,g,_)=>{},this._executeHandlerFb=d=>{},this._csiHandlerFb=(d,g)=>{},this._escHandlerFb=d=>{},this._errorHandlerFb=d=>d,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,l.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new h.OscParser),this._dcsParser=this.register(new b.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(f,d=[64,126]){let g=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(g=f.prefix.charCodeAt(0),g&&60>g||g>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let k=0;k<f.intermediates.length;++k){const S=f.intermediates.charCodeAt(k);if(32>S||S>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");g<<=8,g|=S}}if(f.final.length!==1)throw new Error("final must be a single byte");const _=f.final.charCodeAt(0);if(d[0]>_||_>d[1])throw new Error(`final must be in range ${d[0]} .. ${d[1]}`);return g<<=8,g|=_,g}identToString(f){const d=[];for(;f;)d.push(String.fromCharCode(255&f)),f>>=8;return d.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,d){const g=this._identifier(f,[48,126]);this._escHandlers[g]===void 0&&(this._escHandlers[g]=[]);const _=this._escHandlers[g];return _.push(d),{dispose:()=>{const k=_.indexOf(d);k!==-1&&_.splice(k,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,d){this._executeHandlers[f.charCodeAt(0)]=d}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,d){const g=this._identifier(f);this._csiHandlers[g]===void 0&&(this._csiHandlers[g]=[]);const _=this._csiHandlers[g];return _.push(d),{dispose:()=>{const k=_.indexOf(d);k!==-1&&_.splice(k,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,d){return this._dcsParser.registerHandler(this._identifier(f),d)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,d){return this._oscParser.registerHandler(f,d)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(f,d,g,_,k){this._parseStack.state=f,this._parseStack.handlers=d,this._parseStack.handlerPos=g,this._parseStack.transition=_,this._parseStack.chunkPos=k}parse(f,d,g){let _,k=0,S=0,E=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,E=this._parseStack.chunkPos+1;else{if(g===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const x=this._parseStack.handlers;let C=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(g===!1&&C>-1){for(;C>=0&&(_=x[C](this._params),_!==!0);C--)if(_ instanceof Promise)return this._parseStack.handlerPos=C,_}this._parseStack.handlers=[];break;case 4:if(g===!1&&C>-1){for(;C>=0&&(_=x[C](),_!==!0);C--)if(_ instanceof Promise)return this._parseStack.handlerPos=C,_}this._parseStack.handlers=[];break;case 6:if(k=f[this._parseStack.chunkPos],_=this._dcsParser.unhook(k!==24&&k!==26,g),_)return _;k===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(k=f[this._parseStack.chunkPos],_=this._oscParser.end(k!==24&&k!==26,g),_)return _;k===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,E=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let x=E;x<d;++x){switch(k=f[x],S=this._transitions.table[this.currentState<<8|(k<160?k:w)],S>>4){case 2:for(let N=x+1;;++N){if(N>=d||(k=f[N])<32||k>126&&k<w){this._printHandler(f,x,N),x=N-1;break}if(++N>=d||(k=f[N])<32||k>126&&k<w){this._printHandler(f,x,N),x=N-1;break}if(++N>=d||(k=f[N])<32||k>126&&k<w){this._printHandler(f,x,N),x=N-1;break}if(++N>=d||(k=f[N])<32||k>126&&k<w){this._printHandler(f,x,N),x=N-1;break}}break;case 3:this._executeHandlers[k]?this._executeHandlers[k]():this._executeHandlerFb(k),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:x,code:k,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const C=this._csiHandlers[this._collect<<8|k];let I=C?C.length-1:-1;for(;I>=0&&(_=C[I](this._params),_!==!0);I--)if(_ instanceof Promise)return this._preserveStack(3,C,I,S,x),_;I<0&&this._csiHandlerFb(this._collect<<8|k,this._params),this.precedingJoinState=0;break;case 8:do switch(k){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(k-48)}while(++x<d&&(k=f[x])>47&&k<60);x--;break;case 9:this._collect<<=8,this._collect|=k;break;case 10:const R=this._escHandlers[this._collect<<8|k];let F=R?R.length-1:-1;for(;F>=0&&(_=R[F](),_!==!0);F--)if(_ instanceof Promise)return this._preserveStack(4,R,F,S,x),_;F<0&&this._escHandlerFb(this._collect<<8|k),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|k,this._params);break;case 13:for(let N=x+1;;++N)if(N>=d||(k=f[N])===24||k===26||k===27||k>127&&k<w){this._dcsParser.put(f,x,N),x=N-1;break}break;case 14:if(_=this._dcsParser.unhook(k!==24&&k!==26),_)return this._preserveStack(6,[],0,S,x),_;k===27&&(S|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let N=x+1;;N++)if(N>=d||(k=f[N])<32||k>127&&k<w){this._oscParser.put(f,x,N),x=N-1;break}break;case 6:if(_=this._oscParser.end(k!==24&&k!==26),_)return this._preserveStack(5,[],0,S,x),_;k===27&&(S|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&S}}}s.EscapeSequenceParser=v},6242:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OscHandler=s.OscParser=void 0;const l=o(5770),m=o(482),h=[];s.OscParser=class{constructor(){this._state=0,this._active=h,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(b,y){this._handlers[b]===void 0&&(this._handlers[b]=[]);const w=this._handlers[b];return w.push(y),{dispose:()=>{const v=w.indexOf(y);v!==-1&&w.splice(v,1)}}}clearHandler(b){this._handlers[b]&&delete this._handlers[b]}setHandlerFallback(b){this._handlerFb=b}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}reset(){if(this._state===2)for(let b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].end(!1);this._stack.paused=!1,this._active=h,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||h,this._active.length)for(let b=this._active.length-1;b>=0;b--)this._active[b].start();else this._handlerFb(this._id,"START")}_put(b,y,w){if(this._active.length)for(let v=this._active.length-1;v>=0;v--)this._active[v].put(b,y,w);else this._handlerFb(this._id,"PUT",(0,m.utf32ToString)(b,y,w))}start(){this.reset(),this._state=1}put(b,y,w){if(this._state!==3){if(this._state===1)for(;y<w;){const v=b[y++];if(v===59){this._state=2,this._start();break}if(v<48||57<v)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+v-48}this._state===2&&w-y>0&&this._put(b,y,w)}}end(b,y=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let w=!1,v=this._active.length-1,p=!1;if(this._stack.paused&&(v=this._stack.loopPosition-1,w=y,p=this._stack.fallThrough,this._stack.paused=!1),!p&&w===!1){for(;v>=0&&(w=this._active[v].end(b),w!==!0);v--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!1,w;v--}for(;v>=0;v--)if(w=this._active[v].end(!1),w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",b);this._active=h,this._id=-1,this._state=0}}},s.OscHandler=class{constructor(b){this._handler=b,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(b,y,w){this._hitLimit||(this._data+=(0,m.utf32ToString)(b,y,w),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(b){let y=!1;if(this._hitLimit)y=!1;else if(b&&(y=this._handler(this._data),y instanceof Promise))return y.then((w=>(this._data="",this._hitLimit=!1,w)));return this._data="",this._hitLimit=!1,y}}},8742:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Params=void 0;const o=2147483647;class l{static fromArray(h){const b=new l;if(!h.length)return b;for(let y=Array.isArray(h[0])?1:0;y<h.length;++y){const w=h[y];if(Array.isArray(w))for(let v=0;v<w.length;++v)b.addSubParam(w[v]);else b.addParam(w)}return b}constructor(h=32,b=32){if(this.maxLength=h,this.maxSubParamsLength=b,b>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(h),this.length=0,this._subParams=new Int32Array(b),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(h),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const h=new l(this.maxLength,this.maxSubParamsLength);return h.params.set(this.params),h.length=this.length,h._subParams.set(this._subParams),h._subParamsLength=this._subParamsLength,h._subParamsIdx.set(this._subParamsIdx),h._rejectDigits=this._rejectDigits,h._rejectSubDigits=this._rejectSubDigits,h._digitIsSub=this._digitIsSub,h}toArray(){const h=[];for(let b=0;b<this.length;++b){h.push(this.params[b]);const y=this._subParamsIdx[b]>>8,w=255&this._subParamsIdx[b];w-y>0&&h.push(Array.prototype.slice.call(this._subParams,y,w))}return h}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(h){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=h>o?o:h}}addSubParam(h){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=h>o?o:h,this._subParamsIdx[this.length-1]++}}hasSubParams(h){return(255&this._subParamsIdx[h])-(this._subParamsIdx[h]>>8)>0}getSubParams(h){const b=this._subParamsIdx[h]>>8,y=255&this._subParamsIdx[h];return y-b>0?this._subParams.subarray(b,y):null}getSubParamsAll(){const h={};for(let b=0;b<this.length;++b){const y=this._subParamsIdx[b]>>8,w=255&this._subParamsIdx[b];w-y>0&&(h[b]=this._subParams.slice(y,w))}return h}addDigit(h){let b;if(this._rejectDigits||!(b=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const y=this._digitIsSub?this._subParams:this.params,w=y[b-1];y[b-1]=~w?Math.min(10*w+h,o):h}}s.Params=l},5741:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AddonManager=void 0,s.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,l){const m={instance:l,dispose:l.dispose,isDisposed:!1};this._addons.push(m),l.dispose=()=>this._wrappedAddonDispose(m),l.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let l=-1;for(let m=0;m<this._addons.length;m++)if(this._addons[m]===o){l=m;break}if(l===-1)throw new Error("Could not dispose an addon that has not been loaded");o.isDisposed=!0,o.dispose.apply(o.instance),this._addons.splice(l,1)}}},8771:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferApiView=void 0;const l=o(3785),m=o(511);s.BufferApiView=class{constructor(h,b){this._buffer=h,this.type=b}init(h){return this._buffer=h,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(h){const b=this._buffer.lines.get(h);if(b)return new l.BufferLineApiView(b)}getNullCell(){return new m.CellData}}},3785:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferLineApiView=void 0;const l=o(511);s.BufferLineApiView=class{constructor(m){this._line=m}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(m,h){if(!(m<0||m>=this._line.length))return h?(this._line.loadCell(m,h),h):this._line.loadCell(m,new l.CellData)}translateToString(m,h,b){return this._line.translateToString(m,h,b)}}},8285:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferNamespaceApi=void 0;const l=o(8771),m=o(8460),h=o(844);class b extends h.Disposable{constructor(w){super(),this._core=w,this._onBufferChange=this.register(new m.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new l.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new l.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}s.BufferNamespaceApi=b},7975:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ParserApi=void 0,s.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,l){return this._core.registerCsiHandler(o,(m=>l(m.toArray())))}addCsiHandler(o,l){return this.registerCsiHandler(o,l)}registerDcsHandler(o,l){return this._core.registerDcsHandler(o,((m,h)=>l(m,h.toArray())))}addDcsHandler(o,l){return this.registerDcsHandler(o,l)}registerEscHandler(o,l){return this._core.registerEscHandler(o,l)}addEscHandler(o,l){return this.registerEscHandler(o,l)}registerOscHandler(o,l){return this._core.registerOscHandler(o,l)}addOscHandler(o,l){return this.registerOscHandler(o,l)}}},7090:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeApi=void 0,s.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(u,s,o){var l=this&&this.__decorate||function(p,f,d,g){var _,k=arguments.length,S=k<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,f,d,g);else for(var E=p.length-1;E>=0;E--)(_=p[E])&&(S=(k<3?_(S):k>3?_(f,d,S):_(f,d))||S);return k>3&&S&&Object.defineProperty(f,d,S),S},m=this&&this.__param||function(p,f){return function(d,g){f(d,g,p)}};Object.defineProperty(s,"__esModule",{value:!0}),s.BufferService=s.MINIMUM_ROWS=s.MINIMUM_COLS=void 0;const h=o(8460),b=o(844),y=o(5295),w=o(2585);s.MINIMUM_COLS=2,s.MINIMUM_ROWS=1;let v=s.BufferService=class extends b.Disposable{get buffer(){return this.buffers.active}constructor(p){super(),this.isUserScrolling=!1,this._onResize=this.register(new h.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new h.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(p.rawOptions.cols||0,s.MINIMUM_COLS),this.rows=Math.max(p.rawOptions.rows||0,s.MINIMUM_ROWS),this.buffers=this.register(new y.BufferSet(p,this))}resize(p,f){this.cols=p,this.rows=f,this.buffers.resize(p,f),this._onResize.fire({cols:p,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(p,f=!1){const d=this.buffer;let g;g=this._cachedBlankLine,g&&g.length===this.cols&&g.getFg(0)===p.fg&&g.getBg(0)===p.bg||(g=d.getBlankLine(p,f),this._cachedBlankLine=g),g.isWrapped=f;const _=d.ybase+d.scrollTop,k=d.ybase+d.scrollBottom;if(d.scrollTop===0){const S=d.lines.isFull;k===d.lines.length-1?S?d.lines.recycle().copyFrom(g):d.lines.push(g.clone()):d.lines.splice(k+1,0,g.clone()),S?this.isUserScrolling&&(d.ydisp=Math.max(d.ydisp-1,0)):(d.ybase++,this.isUserScrolling||d.ydisp++)}else{const S=k-_+1;d.lines.shiftElements(_+1,S-1,-1),d.lines.set(k,g.clone())}this.isUserScrolling||(d.ydisp=d.ybase),this._onScroll.fire(d.ydisp)}scrollLines(p,f,d){const g=this.buffer;if(p<0){if(g.ydisp===0)return;this.isUserScrolling=!0}else p+g.ydisp>=g.ybase&&(this.isUserScrolling=!1);const _=g.ydisp;g.ydisp=Math.max(Math.min(g.ydisp+p,g.ybase),0),_!==g.ydisp&&(f||this._onScroll.fire(g.ydisp))}};s.BufferService=v=l([m(0,w.IOptionsService)],v)},7994:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CharsetService=void 0,s.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,l){this._charsets[o]=l,this.glevel===o&&(this.charset=l)}}},1753:function(u,s,o){var l=this&&this.__decorate||function(g,_,k,S){var E,x=arguments.length,C=x<3?_:S===null?S=Object.getOwnPropertyDescriptor(_,k):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(g,_,k,S);else for(var I=g.length-1;I>=0;I--)(E=g[I])&&(C=(x<3?E(C):x>3?E(_,k,C):E(_,k))||C);return x>3&&C&&Object.defineProperty(_,k,C),C},m=this&&this.__param||function(g,_){return function(k,S){_(k,S,g)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CoreMouseService=void 0;const h=o(2585),b=o(8460),y=o(844),w={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:g=>g.button!==4&&g.action===1&&(g.ctrl=!1,g.alt=!1,g.shift=!1,!0)},VT200:{events:19,restrict:g=>g.action!==32},DRAG:{events:23,restrict:g=>g.action!==32||g.button!==3},ANY:{events:31,restrict:g=>!0}};function v(g,_){let k=(g.ctrl?16:0)|(g.shift?4:0)|(g.alt?8:0);return g.button===4?(k|=64,k|=g.action):(k|=3&g.button,4&g.button&&(k|=64),8&g.button&&(k|=128),g.action===32?k|=32:g.action!==0||_||(k|=3)),k}const p=String.fromCharCode,f={DEFAULT:g=>{const _=[v(g,!1)+32,g.col+32,g.row+32];return _[0]>255||_[1]>255||_[2]>255?"":`\x1B[M${p(_[0])}${p(_[1])}${p(_[2])}`},SGR:g=>{const _=g.action===0&&g.button!==4?"m":"M";return`\x1B[<${v(g,!0)};${g.col};${g.row}${_}`},SGR_PIXELS:g=>{const _=g.action===0&&g.button!==4?"m":"M";return`\x1B[<${v(g,!0)};${g.x};${g.y}${_}`}};let d=s.CoreMouseService=class extends y.Disposable{constructor(g,_){super(),this._bufferService=g,this._coreService=_,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new b.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const k of Object.keys(w))this.addProtocol(k,w[k]);for(const k of Object.keys(f))this.addEncoding(k,f[k]);this.reset()}addProtocol(g,_){this._protocols[g]=_}addEncoding(g,_){this._encodings[g]=_}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(g){if(!this._protocols[g])throw new Error(`unknown protocol "${g}"`);this._activeProtocol=g,this._onProtocolChange.fire(this._protocols[g].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(g){if(!this._encodings[g])throw new Error(`unknown encoding "${g}"`);this._activeEncoding=g}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(g){if(g.col<0||g.col>=this._bufferService.cols||g.row<0||g.row>=this._bufferService.rows||g.button===4&&g.action===32||g.button===3&&g.action!==32||g.button!==4&&(g.action===2||g.action===3)||(g.col++,g.row++,g.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,g,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(g))return!1;const _=this._encodings[this._activeEncoding](g);return _&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(_):this._coreService.triggerDataEvent(_,!0)),this._lastEvent=g,!0}explainEvents(g){return{down:!!(1&g),up:!!(2&g),drag:!!(4&g),move:!!(8&g),wheel:!!(16&g)}}_equalEvents(g,_,k){if(k){if(g.x!==_.x||g.y!==_.y)return!1}else if(g.col!==_.col||g.row!==_.row)return!1;return g.button===_.button&&g.action===_.action&&g.ctrl===_.ctrl&&g.alt===_.alt&&g.shift===_.shift}};s.CoreMouseService=d=l([m(0,h.IBufferService),m(1,h.ICoreService)],d)},6975:function(u,s,o){var l=this&&this.__decorate||function(d,g,_,k){var S,E=arguments.length,x=E<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,_):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(d,g,_,k);else for(var C=d.length-1;C>=0;C--)(S=d[C])&&(x=(E<3?S(x):E>3?S(g,_,x):S(g,_))||x);return E>3&&x&&Object.defineProperty(g,_,x),x},m=this&&this.__param||function(d,g){return function(_,k){g(_,k,d)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CoreService=void 0;const h=o(1439),b=o(8460),y=o(844),w=o(2585),v=Object.freeze({insertMode:!1}),p=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=s.CoreService=class extends y.Disposable{constructor(d,g,_){super(),this._bufferService=d,this._logService=g,this._optionsService=_,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new b.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new b.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new b.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new b.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,h.clone)(v),this.decPrivateModes=(0,h.clone)(p)}reset(){this.modes=(0,h.clone)(v),this.decPrivateModes=(0,h.clone)(p)}triggerDataEvent(d,g=!1){if(this._optionsService.rawOptions.disableStdin)return;const _=this._bufferService.buffer;g&&this._optionsService.rawOptions.scrollOnUserInput&&_.ybase!==_.ydisp&&this._onRequestScrollToBottom.fire(),g&&this._onUserInput.fire(),this._logService.debug(`sending data "${d}"`,(()=>d.split("").map((k=>k.charCodeAt(0))))),this._onData.fire(d)}triggerBinaryEvent(d){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${d}"`,(()=>d.split("").map((g=>g.charCodeAt(0))))),this._onBinary.fire(d))}};s.CoreService=f=l([m(0,w.IBufferService),m(1,w.ILogService),m(2,w.IOptionsService)],f)},9074:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DecorationService=void 0;const l=o(8055),m=o(8460),h=o(844),b=o(6106);let y=0,w=0;class v extends h.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new b.SortedList((d=>d==null?void 0:d.marker.line)),this._onDecorationRegistered=this.register(new m.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new m.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,h.toDisposable)((()=>this.reset())))}registerDecoration(d){if(d.marker.isDisposed)return;const g=new p(d);if(g){const _=g.marker.onDispose((()=>g.dispose()));g.onDispose((()=>{g&&(this._decorations.delete(g)&&this._onDecorationRemoved.fire(g),_.dispose())})),this._decorations.insert(g),this._onDecorationRegistered.fire(g)}return g}reset(){for(const d of this._decorations.values())d.dispose();this._decorations.clear()}*getDecorationsAtCell(d,g,_){let k=0,S=0;for(const E of this._decorations.getKeyIterator(g))k=E.options.x??0,S=k+(E.options.width??1),d>=k&&d<S&&(!_||(E.options.layer??"bottom")===_)&&(yield E)}forEachDecorationAtCell(d,g,_,k){this._decorations.forEachByKey(g,(S=>{y=S.options.x??0,w=y+(S.options.width??1),d>=y&&d<w&&(!_||(S.options.layer??"bottom")===_)&&k(S)}))}}s.DecorationService=v;class p extends h.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=l.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=l.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(d){super(),this.options=d,this.onRenderEmitter=this.register(new m.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new m.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=d.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.InstantiationService=s.ServiceCollection=void 0;const l=o(2585),m=o(8343);class h{constructor(...y){this._entries=new Map;for(const[w,v]of y)this.set(w,v)}set(y,w){const v=this._entries.get(y);return this._entries.set(y,w),v}forEach(y){for(const[w,v]of this._entries.entries())y(w,v)}has(y){return this._entries.has(y)}get(y){return this._entries.get(y)}}s.ServiceCollection=h,s.InstantiationService=class{constructor(){this._services=new h,this._services.set(l.IInstantiationService,this)}setService(b,y){this._services.set(b,y)}getService(b){return this._services.get(b)}createInstance(b,...y){const w=(0,m.getServiceDependencies)(b).sort(((f,d)=>f.index-d.index)),v=[];for(const f of w){const d=this._services.get(f.id);if(!d)throw new Error(`[createInstance] ${b.name} depends on UNKNOWN service ${f.id}.`);v.push(d)}const p=w.length>0?w[0].index:y.length;if(y.length!==p)throw new Error(`[createInstance] First service dependency of ${b.name} at position ${p+1} conflicts with ${y.length} static arguments`);return new b(...y,...v)}}},7866:function(u,s,o){var l=this&&this.__decorate||function(p,f,d,g){var _,k=arguments.length,S=k<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,f,d,g);else for(var E=p.length-1;E>=0;E--)(_=p[E])&&(S=(k<3?_(S):k>3?_(f,d,S):_(f,d))||S);return k>3&&S&&Object.defineProperty(f,d,S),S},m=this&&this.__param||function(p,f){return function(d,g){f(d,g,p)}};Object.defineProperty(s,"__esModule",{value:!0}),s.traceCall=s.setTraceLogger=s.LogService=void 0;const h=o(844),b=o(2585),y={trace:b.LogLevelEnum.TRACE,debug:b.LogLevelEnum.DEBUG,info:b.LogLevelEnum.INFO,warn:b.LogLevelEnum.WARN,error:b.LogLevelEnum.ERROR,off:b.LogLevelEnum.OFF};let w,v=s.LogService=class extends h.Disposable{get logLevel(){return this._logLevel}constructor(p){super(),this._optionsService=p,this._logLevel=b.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),w=this}_updateLogLevel(){this._logLevel=y[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(p){for(let f=0;f<p.length;f++)typeof p[f]=="function"&&(p[f]=p[f]())}_log(p,f,d){this._evalLazyOptionalParams(d),p.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+f,...d)}trace(p,...f){var d;this._logLevel<=b.LogLevelEnum.TRACE&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.trace.bind(this._optionsService.options.logger))??console.log,p,f)}debug(p,...f){var d;this._logLevel<=b.LogLevelEnum.DEBUG&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.debug.bind(this._optionsService.options.logger))??console.log,p,f)}info(p,...f){var d;this._logLevel<=b.LogLevelEnum.INFO&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.info.bind(this._optionsService.options.logger))??console.info,p,f)}warn(p,...f){var d;this._logLevel<=b.LogLevelEnum.WARN&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.warn.bind(this._optionsService.options.logger))??console.warn,p,f)}error(p,...f){var d;this._logLevel<=b.LogLevelEnum.ERROR&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.error.bind(this._optionsService.options.logger))??console.error,p,f)}};s.LogService=v=l([m(0,b.IOptionsService)],v),s.setTraceLogger=function(p){w=p},s.traceCall=function(p,f,d){if(typeof d.value!="function")throw new Error("not supported");const g=d.value;d.value=function(..._){if(w.logLevel!==b.LogLevelEnum.TRACE)return g.apply(this,_);w.trace(`GlyphRenderer#${g.name}(${_.map((S=>JSON.stringify(S))).join(", ")})`);const k=g.apply(this,_);return w.trace(`GlyphRenderer#${g.name} return`,k),k}}},7302:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OptionsService=s.DEFAULT_OPTIONS=void 0;const l=o(8460),m=o(844),h=o(6114);s.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:h.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const b=["normal","bold","100","200","300","400","500","600","700","800","900"];class y extends m.Disposable{constructor(v){super(),this._onOptionChange=this.register(new l.EventEmitter),this.onOptionChange=this._onOptionChange.event;const p={...s.DEFAULT_OPTIONS};for(const f in v)if(f in p)try{const d=v[f];p[f]=this._sanitizeAndValidateOption(f,d)}catch(d){console.error(d)}this.rawOptions=p,this.options={...p},this._setupOptions(),this.register((0,m.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(v,p){return this.onOptionChange((f=>{f===v&&p(this.rawOptions[v])}))}onMultipleOptionChange(v,p){return this.onOptionChange((f=>{v.indexOf(f)!==-1&&p()}))}_setupOptions(){const v=f=>{if(!(f in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},p=(f,d)=>{if(!(f in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);d=this._sanitizeAndValidateOption(f,d),this.rawOptions[f]!==d&&(this.rawOptions[f]=d,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const d={get:v.bind(this,f),set:p.bind(this,f)};Object.defineProperty(this.options,f,d)}}_sanitizeAndValidateOption(v,p){switch(v){case"cursorStyle":if(p||(p=s.DEFAULT_OPTIONS[v]),!(function(f){return f==="block"||f==="underline"||f==="bar"})(p))throw new Error(`"${p}" is not a valid value for ${v}`);break;case"wordSeparator":p||(p=s.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if(typeof p=="number"&&1<=p&&p<=1e3)break;p=b.includes(p)?p:s.DEFAULT_OPTIONS[v];break;case"cursorWidth":p=Math.floor(p);case"lineHeight":case"tabStopWidth":if(p<1)throw new Error(`${v} cannot be less than 1, value: ${p}`);break;case"minimumContrastRatio":p=Math.max(1,Math.min(21,Math.round(10*p)/10));break;case"scrollback":if((p=Math.min(p,4294967295))<0)throw new Error(`${v} cannot be less than 0, value: ${p}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(p<=0)throw new Error(`${v} cannot be less than or equal to 0, value: ${p}`);break;case"rows":case"cols":if(!p&&p!==0)throw new Error(`${v} must be numeric, value: ${p}`);break;case"windowsPty":p=p??{}}return p}}s.OptionsService=y},2660:function(u,s,o){var l=this&&this.__decorate||function(y,w,v,p){var f,d=arguments.length,g=d<3?w:p===null?p=Object.getOwnPropertyDescriptor(w,v):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(y,w,v,p);else for(var _=y.length-1;_>=0;_--)(f=y[_])&&(g=(d<3?f(g):d>3?f(w,v,g):f(w,v))||g);return d>3&&g&&Object.defineProperty(w,v,g),g},m=this&&this.__param||function(y,w){return function(v,p){w(v,p,y)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkService=void 0;const h=o(2585);let b=s.OscLinkService=class{constructor(y){this._bufferService=y,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(y){const w=this._bufferService.buffer;if(y.id===void 0){const _=w.addMarker(w.ybase+w.y),k={data:y,id:this._nextId++,lines:[_]};return _.onDispose((()=>this._removeMarkerFromLink(k,_))),this._dataByLinkId.set(k.id,k),k.id}const v=y,p=this._getEntryIdKey(v),f=this._entriesWithId.get(p);if(f)return this.addLineToLink(f.id,w.ybase+w.y),f.id;const d=w.addMarker(w.ybase+w.y),g={id:this._nextId++,key:this._getEntryIdKey(v),data:v,lines:[d]};return d.onDispose((()=>this._removeMarkerFromLink(g,d))),this._entriesWithId.set(g.key,g),this._dataByLinkId.set(g.id,g),g.id}addLineToLink(y,w){const v=this._dataByLinkId.get(y);if(v&&v.lines.every((p=>p.line!==w))){const p=this._bufferService.buffer.addMarker(w);v.lines.push(p),p.onDispose((()=>this._removeMarkerFromLink(v,p)))}}getLinkData(y){var w;return(w=this._dataByLinkId.get(y))==null?void 0:w.data}_getEntryIdKey(y){return`${y.id};;${y.uri}`}_removeMarkerFromLink(y,w){const v=y.lines.indexOf(w);v!==-1&&(y.lines.splice(v,1),y.lines.length===0&&(y.data.id!==void 0&&this._entriesWithId.delete(y.key),this._dataByLinkId.delete(y.id)))}};s.OscLinkService=b=l([m(0,h.IBufferService)],b)},8343:(u,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.createDecorator=s.getServiceDependencies=s.serviceRegistry=void 0;const o="di$target",l="di$dependencies";s.serviceRegistry=new Map,s.getServiceDependencies=function(m){return m[l]||[]},s.createDecorator=function(m){if(s.serviceRegistry.has(m))return s.serviceRegistry.get(m);const h=function(b,y,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(v,p,f){p[o]===p?p[l].push({id:v,index:f}):(p[l]=[{id:v,index:f}],p[o]=p)})(h,b,w)};return h.toString=()=>m,s.serviceRegistry.set(m,h),h}},2585:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.IDecorationService=s.IUnicodeService=s.IOscLinkService=s.IOptionsService=s.ILogService=s.LogLevelEnum=s.IInstantiationService=s.ICharsetService=s.ICoreService=s.ICoreMouseService=s.IBufferService=void 0;const l=o(8343);var m;s.IBufferService=(0,l.createDecorator)("BufferService"),s.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),s.ICoreService=(0,l.createDecorator)("CoreService"),s.ICharsetService=(0,l.createDecorator)("CharsetService"),s.IInstantiationService=(0,l.createDecorator)("InstantiationService"),(function(h){h[h.TRACE=0]="TRACE",h[h.DEBUG=1]="DEBUG",h[h.INFO=2]="INFO",h[h.WARN=3]="WARN",h[h.ERROR=4]="ERROR",h[h.OFF=5]="OFF"})(m||(s.LogLevelEnum=m={})),s.ILogService=(0,l.createDecorator)("LogService"),s.IOptionsService=(0,l.createDecorator)("OptionsService"),s.IOscLinkService=(0,l.createDecorator)("OscLinkService"),s.IUnicodeService=(0,l.createDecorator)("UnicodeService"),s.IDecorationService=(0,l.createDecorator)("DecorationService")},1480:(u,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeService=void 0;const l=o(8460),m=o(225);class h{static extractShouldJoin(y){return(1&y)!=0}static extractWidth(y){return y>>1&3}static extractCharKind(y){return y>>3}static createPropertyValue(y,w,v=!1){return(16777215&y)<<3|(3&w)<<1|(v?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;const y=new m.UnicodeV6;this.register(y),this._active=y.version,this._activeProvider=y}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(y){if(!this._providers[y])throw new Error(`unknown Unicode version "${y}"`);this._active=y,this._activeProvider=this._providers[y],this._onChange.fire(y)}register(y){this._providers[y.version]=y}wcwidth(y){return this._activeProvider.wcwidth(y)}getStringCellWidth(y){let w=0,v=0;const p=y.length;for(let f=0;f<p;++f){let d=y.charCodeAt(f);if(55296<=d&&d<=56319){if(++f>=p)return w+this.wcwidth(d);const k=y.charCodeAt(f);56320<=k&&k<=57343?d=1024*(d-55296)+k-56320+65536:w+=this.wcwidth(k)}const g=this.charProperties(d,v);let _=h.extractWidth(g);h.extractShouldJoin(g)&&(_-=h.extractWidth(v)),w+=_,v=g}return w}charProperties(y,w){return this._activeProvider.charProperties(y,w)}}s.UnicodeService=h}},n={};function a(u){var s=n[u];if(s!==void 0)return s.exports;var o=n[u]={exports:{}};return r[u].call(o.exports,o,o.exports,a),o.exports}var c={};return(()=>{var u=c;Object.defineProperty(u,"__esModule",{value:!0}),u.Terminal=void 0;const s=a(9042),o=a(3236),l=a(844),m=a(5741),h=a(8285),b=a(7975),y=a(7090),w=["cols","rows"];class v extends l.Disposable{constructor(f){super(),this._core=this.register(new o.Terminal(f)),this._addonManager=this.register(new m.AddonManager),this._publicOptions={...this._core.options};const d=_=>this._core.options[_],g=(_,k)=>{this._checkReadonlyOptions(_),this._core.options[_]=k};for(const _ in this._core.options){const k={get:d.bind(this,_),set:g.bind(this,_)};Object.defineProperty(this._publicOptions,_,k)}}_checkReadonlyOptions(f){if(w.includes(f))throw new Error(`Option "${f}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new b.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new y.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new h.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const f=this._core.coreService.decPrivateModes;let d="none";switch(this._core.coreMouseService.activeProtocol){case"X10":d="x10";break;case"VT200":d="vt200";break;case"DRAG":d="drag";break;case"ANY":d="any"}return{applicationCursorKeysMode:f.applicationCursorKeys,applicationKeypadMode:f.applicationKeypad,bracketedPasteMode:f.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:d,originMode:f.origin,reverseWraparoundMode:f.reverseWraparound,sendFocusMode:f.sendFocus,wraparoundMode:f.wraparound}}get options(){return this._publicOptions}set options(f){for(const d in f)this._publicOptions[d]=f[d]}blur(){this._core.blur()}focus(){this._core.focus()}input(f,d=!0){this._core.input(f,d)}resize(f,d){this._verifyIntegers(f,d),this._core.resize(f,d)}open(f){this._core.open(f)}attachCustomKeyEventHandler(f){this._core.attachCustomKeyEventHandler(f)}attachCustomWheelEventHandler(f){this._core.attachCustomWheelEventHandler(f)}registerLinkProvider(f){return this._core.registerLinkProvider(f)}registerCharacterJoiner(f){return this._checkProposedApi(),this._core.registerCharacterJoiner(f)}deregisterCharacterJoiner(f){this._checkProposedApi(),this._core.deregisterCharacterJoiner(f)}registerMarker(f=0){return this._verifyIntegers(f),this._core.registerMarker(f)}registerDecoration(f){return this._checkProposedApi(),this._verifyPositiveIntegers(f.x??0,f.width??0,f.height??0),this._core.registerDecoration(f)}hasSelection(){return this._core.hasSelection()}select(f,d,g){this._verifyIntegers(f,d,g),this._core.select(f,d,g)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(f,d){this._verifyIntegers(f,d),this._core.selectLines(f,d)}dispose(){super.dispose()}scrollLines(f){this._verifyIntegers(f),this._core.scrollLines(f)}scrollPages(f){this._verifyIntegers(f),this._core.scrollPages(f)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(f){this._verifyIntegers(f),this._core.scrollToLine(f)}clear(){this._core.clear()}write(f,d){this._core.write(f,d)}writeln(f,d){this._core.write(f),this._core.write(`\r
492
- `,d)}paste(f){this._core.paste(f)}refresh(f,d){this._verifyIntegers(f,d),this._core.refresh(f,d)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(f){this._addonManager.loadAddon(this,f)}static get strings(){return s}_verifyIntegers(...f){for(const d of f)if(d===1/0||isNaN(d)||d%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...f){for(const d of f)if(d&&(d===1/0||isNaN(d)||d%1!=0||d<0))throw new Error("This API only accepts positive integers")}}u.Terminal=v})(),c})()))})(an)),an.exports}var Ab=Tb();const on={background:"#ffffff",foreground:"#1e1e1e",cursor:"#1e1e1e",cursorAccent:"#ffffff",selectionBackground:"#add6ff80",black:"#000000",red:"#cd3131",green:"#00bc00",yellow:"#949800",blue:"#0451a5",magenta:"#bc05bc",cyan:"#0598bc",white:"#555555",brightBlack:"#666666",brightRed:"#cd3131",brightGreen:"#14ce14",brightYellow:"#b5ba00",brightBlue:"#0451a5",brightMagenta:"#bc05bc",brightCyan:"#0598bc",brightWhite:"#a5a5a5"},ln={background:"#121212",foreground:"#cccccc",cursor:"#cccccc",cursorAccent:"#121212",selectionBackground:"#264f7880",black:"#000000",red:"#f44747",green:"#6a9955",yellow:"#d7ba7d",blue:"#569cd6",magenta:"#c586c0",cyan:"#4ec9b0",white:"#d4d4d4",brightBlack:"#808080",brightRed:"#f44747",brightGreen:"#6a9955",brightYellow:"#d7ba7d",brightBlue:"#569cd6",brightMagenta:"#c586c0",brightCyan:"#4ec9b0",brightWhite:"#e5e5e5"},Nb=2e3;function dr(){const e=Rt(),t={"Content-Type":"application/json"};return e&&(t.Authorization=`Bearer ${e}`),t}function Ib(e){const t=Rt(),r=t?`?password=${encodeURIComponent(t)}`:"";return`/api/v1/pty/${e}/output${r}`}async function Rb(e,t){try{await fetch(`/api/v1/pty/${e}/input/send`,{method:"POST",headers:dr(),body:JSON.stringify({data:t})})}catch{}}async function hd(e,t,r){try{await fetch(`/api/v1/pty/${e}/resize`,{method:"POST",headers:dr(),body:JSON.stringify({cols:t,rows:r})})}catch{}}async function md(e){try{return(await fetch(`/api/v1/pty/${e}`,{headers:dr()})).ok}catch{return!1}}async function gd(e,t){const r=await fetch("/api/v1/pty",{method:"POST",headers:dr(),body:JSON.stringify({cols:e,rows:t})});if(!r.ok){const a=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(a.error||`HTTP ${r.status}`)}const n=await r.json();return n.data??n}async function Lb(){try{const e=await fetch("/api/v1/pty",{headers:dr()});if(!e.ok)return[];const t=await e.json();return(t.data??t).sessions||[]}catch{return[]}}function Ob(e){const t=be.getState().panes,r=new Set;for(const[n,a]of Object.entries(t))n!==e&&a.ptySessionId&&r.add(a.ptySessionId);return r}function Db(e,t){const r=[];let n="",a="",c=t;for(;c<e.length;){const u=e.indexOf(`
493
- `,c);if(u===-1)break;const s=e.substring(c,u);c=u+1,s===""?(a&&r.push({event:n||"message",data:a}),n="",a=""):s.startsWith("event: ")?n=s.substring(7):s.startsWith("data: ")&&(a=s.substring(6))}return{events:r,newIndex:c}}function $b({paneId:e}){const{t}=le(),{resolved:r}=dt(),n=be(P=>P.panes[e]),a=be(P=>P.activePaneId),c=be(P=>P.layout),u=be(P=>P.mainView),s=be(P=>P.setActivePaneId),o=be(P=>P.closePane),l=be(P=>P.setPaneSession),m=be(P=>P.setPaneStatus),h=be(P=>P.setPaneError),b=be(P=>P.setTerminalTitle),y=a===e,w=It(c),v=A.useRef(null),p=A.useRef(null),f=A.useRef(null),d=A.useRef(null),g=A.useRef(!0),_=A.useRef(!1),k=A.useRef(!1),S=A.useRef(null),E=A.useRef(null),x=A.useCallback(()=>{const P=d.current;P&&(P.abort(),d.current=null)},[]),C=A.useCallback((P,j)=>{x(),m(e,"connecting"),E.current=j;const U=new XMLHttpRequest;d.current=U;let H=0;U.open("GET",Ib(j));const T=Rt();T&&U.setRequestHeader("Authorization",`Bearer ${T}`),U.onreadystatechange=()=>{if(U.readyState===XMLHttpRequest.HEADERS_RECEIVED)if(U.status===200){if(!g.current)return;m(e,"connected"),h(e,null);const W=f.current;if(W)try{W.fit(),hd(j,P.cols,P.rows)}catch{}P.focus()}else{if(!g.current)return;m(e,"error"),h(e,`HTTP ${U.status}`)}},U.onprogress=()=>{if(!g.current)return;const{events:W,newIndex:V}=Db(U.responseText,H);H=V;let Q="";for(const re of W)try{const z=JSON.parse(re.data);switch(re.event){case"output":Q+=z.data;break;case"exit":Q&&(P.write(Q),Q=""),l(e,null),m(e,"disconnected"),k.current=!1,E.current=null,P.write(`\r
494
- ${t("terminal.processExited")}\r
495
- `);break;case"keepalive":break}}catch{}Q&&P.write(Q)},U.onerror=()=>{g.current&&(m(e,"error"),h(e,t("terminal.connectionLost")))},U.onloadend=()=>{var V;if(!g.current)return;((V=be.getState().panes[e])==null?void 0:V.ptyStatus)==="connected"&&(m(e,"error"),h(e,t("terminal.connectionLost")))},U.send();const D=P.onData(W=>{E.current&&Rb(E.current,W)}),M=P.onResize(({cols:W,rows:V})=>{E.current&&hd(E.current,W,V)});k.current=!0;const L=()=>{D.dispose(),M.dispose(),x(),E.current=null};return S.current=L,L},[x,e,l,m,h]),I=A.useCallback(()=>{const P=v.current;if(!P||_.current)return;const j=r==="dark"?ln:on;for(;P.firstChild;)P.removeChild(P.firstChild);const U=new Ab.Terminal({cursorBlink:!0,fontSize:14,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:j,allowProposedApi:!0,scrollback:1e4}),H=new Cb.FitAddon;U.loadAddon(H),U.open(P);const T=P.querySelector(".xterm-helper-textarea");T&&(T.setAttribute("autocomplete","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.setAttribute("unselectable","on")),p.current=U,f.current=H,_.current=!0;const D=U.onTitleChange(V=>{g.current&&b(V||null)});let M=null;const L=()=>{M&&clearTimeout(M),M=setTimeout(()=>{if(g.current)try{H.fit()}catch{}},50)},W=new ResizeObserver(L);return W.observe(P),window.addEventListener("resize",L),()=>{D.dispose(),W.disconnect(),window.removeEventListener("resize",L),M&&clearTimeout(M)}},[]),R=A.useCallback(async()=>{var W;const P=p.current,j=f.current;if(!P||!j||!g.current||k.current)return;try{j.fit()}catch{}const U=P.cols||80,H=P.rows||24,T=(W=be.getState().panes[e])==null?void 0:W.ptySessionId;if(T&&await md(T)&&g.current){C(P,T);return}if(!g.current)return;const D=Ob(e),L=(await Lb()).find(V=>!V.hasClient&&!D.has(V.id));if(L&&g.current){l(e,L.id),C(P,L.id);return}if(g.current){m(e,"connecting");try{const{sessionId:V}=await gd(U,H);if(!g.current)return;l(e,V),C(P,V)}catch(V){if(!g.current)return;m(e,"error"),h(e,V.message||t("terminal.createSessionFailed"))}}},[C,e,l,m,h]),F=A.useRef(null);A.useEffect(()=>{g.current=!0;const P=v.current;if(!P)return;const j=()=>{if(!g.current)return;const{clientWidth:H,clientHeight:T}=P;if(!(H===0||T===0)&&(_.current||(F.current=I()||null),p.current&&f.current)){try{f.current.fit()}catch{}k.current||R()}};if(P.clientWidth>0&&P.clientHeight>0){const H=requestAnimationFrame(j);return()=>cancelAnimationFrame(H)}const U=new ResizeObserver(H=>{for(const T of H){const{width:D,height:M}=T.contentRect;if(D>0&&M>0){U.disconnect(),j();break}}});return U.observe(P),()=>U.disconnect()},[I,R]),A.useEffect(()=>()=>{var P,j,U;g.current=!1,(P=S.current)==null||P.call(S),(j=F.current)==null||j.call(F),(U=p.current)==null||U.dispose(),p.current=null,f.current=null,_.current=!1,k.current=!1},[]),A.useEffect(()=>{const P=p.current;if(P){const j=r==="dark"?ln:on;P.options.theme=j;try{P.refresh(0,P.rows-1)}catch{}}},[r,u]);const N=A.useCallback(async()=>{var j,U;if(x(),k.current=!1,m(e,"connecting"),h(e,null),await new Promise(H=>setTimeout(H,Nb)),!g.current)return;const P=p.current;if(P)try{P.clear();try{(j=f.current)==null||j.fit()}catch{}const H=P.cols||80,T=P.rows||24,D=(U=be.getState().panes[e])==null?void 0:U.ptySessionId;if(D&&await md(D)&&g.current){C(P,D);return}if(!g.current)return;const{sessionId:M}=await gd(H,T);if(!g.current)return;l(e,M),C(P,M)}catch(H){if(!g.current)return;m(e,"error"),h(e,H.message||t("terminal.reconnectFailed"))}},[x,C,e,l,m,h]),B=A.useCallback(()=>{var P;y||s(e),(P=p.current)==null||P.focus()},[y,e,s]);return n?i.jsxs("div",{className:`terminal-pane flex flex-col h-full w-full ${y&&w>1?"active":""}`,style:{backgroundColor:r==="dark"?ln.background:on.background},onClick:B,children:[w>1&&i.jsx("div",{className:"terminal-pane-toolbar",children:i.jsx("button",{onClick:P=>{P.stopPropagation(),o(e)},className:"w-6 h-6 flex items-center justify-center rounded bg-bg-tertiary/80 text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-colors",title:t("terminal.closePane"),children:i.jsx(Me,{size:14})})}),i.jsx("div",{ref:v,className:"flex-1 w-full",style:{overflow:"hidden",padding:"4px"}}),n.ptyStatus==="connecting"&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-bg-primary/80 z-10",children:i.jsx(et,{size:"small",text:t("terminal.connecting")})}),n.ptyStatus==="error"&&i.jsxs("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between px-4 py-2 bg-accent-red/10 border-t border-accent-red/30 z-10",children:[i.jsxs("div",{className:"flex items-center gap-2 text-accent-red text-xs",children:[i.jsx(Tp,{size:14}),i.jsx("span",{children:n.errorMessage||t("terminal.error")})]}),i.jsxs("button",{onClick:N,className:"flex items-center gap-1.5 px-3 py-1 rounded-md bg-bg-secondary border border-border-muted text-text-primary text-xs hover:bg-bg-hover transition-colors",children:[i.jsx(Ot,{size:12}),i.jsx("span",{children:t("terminal.reconnect")})]})]})]}):i.jsx("div",{})}function Ln({node:e,path:t}){const r=be(a=>a.setRatio),n=A.useCallback(a=>{r(t,a)},[r,t]);return e.type==="leaf"?i.jsx($b,{paneId:e.paneId}):i.jsxs(Bn,{direction:e.direction,ratio:e.ratio,onRatioChange:n,children:[i.jsx(Ln,{node:e.children[0],path:[...t,0]}),i.jsx(Ln,{node:e.children[1],path:[...t,1]})]})}function Vu(){const e=be(t=>t.layout);return i.jsx("div",{className:"flex-1 w-full h-full overflow-hidden",children:i.jsx(Ln,{node:e,path:[]})})}function Mb({isOpen:e,onClose:t,onImageSelect:r,onFileSelect:n,onNewChat:a,onHistory:c,mainView:u}){const{t:s}=le(),o=A.useRef(null),[l,m]=A.useState(null),[h,b]=A.useState(0),y=A.useCallback(()=>{r(),t()},[r,t]),w=A.useCallback(()=>{n(),t()},[n,t]),v=[{type:"attachment",icon:i.jsx(Rd,{size:22}),label:s("input.menu.image"),action:y},{type:"attachment",icon:i.jsx(ct,{size:22}),label:s("input.menu.file"),action:w},{type:"action",icon:i.jsx(Qe,{size:20}),label:s("chat.newChat"),action:a},{type:"action",icon:i.jsx(Id,{size:20}),label:s("sidebar.chatHistory"),action:c},{type:"nav",view:"changes",icon:i.jsx($n,{size:20}),label:s("sidebar.changes")},{type:"nav",view:"instances",icon:i.jsx(vt,{size:20}),label:s("sidebar.instances")},{type:"nav",view:"tasks",icon:i.jsx(Ld,{size:20}),label:s("sidebar.nav.tasks")},{type:"nav",view:"terminal",icon:i.jsx(Md,{size:20}),label:s("sidebar.terminalMode")},{type:"nav",view:"plugins",icon:i.jsx(Nt,{size:20}),label:s("sidebar.nav.plugins")},{type:"nav",view:"settings",icon:i.jsx($d,{size:20}),label:s("sidebar.preferences")}].filter(k=>!(k.type==="action"&&!k.action)),p=8,f=Math.ceil(v.length/p),d=[];for(let k=0;k<f;k++)d.push(v.slice(k*p,(k+1)*p));A.useEffect(()=>{const k=o.current;if(!k)return;const S=()=>{const E=k.clientWidth;if(E>0){const x=Math.round(k.scrollLeft/E);b(x)}};return k.addEventListener("scroll",S,{passive:!0}),()=>k.removeEventListener("scroll",S)},[]);const g=A.useCallback(k=>{const S=o.current;S&&S.scrollTo({left:k*S.clientWidth,behavior:"smooth"})},[]),_=A.useCallback(()=>{m(null)},[]);return e?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"bottom-sheet-inline",children:[i.jsx("div",{ref:o,className:"bottom-sheet-scroll",children:d.map((k,S)=>i.jsx("div",{className:"bottom-sheet-page",children:i.jsx("div",{className:"bottom-sheet-grid",children:k.map((E,x)=>i.jsxs("button",{className:E.type==="nav"&&u===E.view?"active":"",onClick:()=>{var C;E.type==="attachment"||E.type==="action"?(C=E.action)==null||C.call(E):E.type==="nav"&&E.view&&m(E.view)},children:[E.icon,i.jsx("span",{children:E.label})]},x))})},S))}),f>1&&i.jsx("div",{className:"bottom-sheet-pagination",children:Array.from({length:f}).map((k,S)=>i.jsx("button",{className:`pagination-dot ${S===h?"active":""}`,onClick:()=>g(S)},S))})]}),l&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"floating-panel-overlay",onClick:_}),i.jsxs("div",{className:"floating-panel-container",children:[i.jsx("div",{className:"floating-panel-header",children:i.jsx("button",{onClick:_,className:"floating-panel-close-btn",title:"Close",children:i.jsx(Me,{size:24})})}),i.jsxs("div",{className:"floating-panel-content",children:[l==="instances"&&i.jsx(Uu,{}),l==="changes"&&i.jsx(Zd,{}),l==="tasks"&&i.jsx(Wu,{}),l==="terminal"&&i.jsx(Vu,{}),l==="plugins"&&i.jsx(zu,{}),l==="settings"&&i.jsx(Gu,{})]})]})]})]}):null}const jb=5,Ku=10*1024*1024,Wt=["image/jpeg","image/png","image/gif","image/webp"];let Fb=0;function Pb(e){return!Wt.includes(e.type)||e.size>Ku?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const n=r.result,a=n.split(",")[1]||"";t({id:`img-${++Fb}`,dataUrl:n,data:a,mimeType:e.type})},r.onerror=()=>t(null),r.readAsDataURL(e)})}const Bb=10,Ub=1*1024*1024,zb=new Set([".txt",".md",".markdown",".json",".jsonl",".yaml",".yml",".toml",".xml",".html",".htm",".css",".scss",".less",".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".go",".rs",".java",".kt",".swift",".c",".cpp",".h",".hpp",".sh",".bash",".zsh",".fish",".ps1",".bat",".cmd",".sql",".graphql",".gql",".env",".ini",".cfg",".conf",".properties",".csv",".tsv",".log",".dockerfile",".makefile",".cmake",".gitignore",".gitattributes",".editorconfig",".vue",".svelte",".astro"]);let Hb=0;function Yu(e){if(e.type.startsWith("text/")||e.type==="application/json"||e.type==="application/xml"||e.type==="application/javascript")return!0;const t=e.name.toLowerCase(),r=t.lastIndexOf(".");if(r!==-1){const a=t.slice(r);if(zb.has(a))return!0}const n=t.split("/").pop()||t;return!!["makefile","dockerfile","cmakelists.txt","gemfile","rakefile","procfile"].includes(n)}function Gb(e){return!Yu(e)||e.size>Ub?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const n=r.result;t({id:`file-${++Hb}`,name:e.name,size:e.size,text:n,mimeType:e.type||"text/plain"})},r.onerror=()=>t(null),r.readAsText(e)})}function Wb(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function qb({onNavigate:e,onNewChat:t,onHistory:r,mainView:n,showBottomSheet:a=!1,setShowBottomSheet:c}){const u=A.useCallback(G=>{c&&c(typeof G=="function"?G(a):G)},[c,a]),[s,o]=A.useState(""),[l,m]=A.useState([]),[h,b]=A.useState([]),[y,w]=A.useState(0),[v,p]=A.useState(!1),[f,d]=A.useState(null),[g,_]=A.useState(0),[k,S]=A.useState([]),[E,x]=A.useState(0),[C,I]=A.useState(null),R=A.useRef(null),F=A.useRef(null),N=A.useRef(null),B=A.useRef(null),P=A.useRef(null),j=A.useRef(null),U=A.useRef(0),H=A.useRef(!1),{sessionId:T,commands:D,thinkingEnabled:M,setThinkingEnabled:L,promptSuggestion:W,setPromptSuggestion:V,externalInput:Q,setExternalInput:re}=tt(),{isAgentRunning:z,hasPendingInterruption:O,timeline:K,addUserMessage:q,addQueuedUserMessage:ee,setSessionEnd:J,resolveInterruption:oe}=ze(),{t:Z,tryT:se}=le();A.useEffect(()=>{Q!==null&&(o(Q),re(null),V(null),requestAnimationFrame(()=>{var G;(G=R.current)==null||G.focus()}))},[Q,re,V]);const ce=A.useCallback(async G=>{const X=Array.from(G).filter(ue=>Wt.includes(ue.type)&&ue.size<=Ku);if(X.length===0)return;w(ue=>ue+X.length);const he=(await Promise.all(X.map(Pb))).filter(ue=>ue!==null);w(ue=>Math.max(0,ue-X.length)),he.length>0&&m(ue=>{const Te=jb-ue.length;return[...ue,...he.slice(0,Te)]})},[]),ne=A.useCallback(G=>{m(X=>X.filter(ae=>ae.id!==G))},[]),Oe=A.useCallback(async G=>{const X=Array.from(G),he=(await Promise.all(X.map(Gb))).filter(ue=>ue!==null);he.length!==0&&b(ue=>{const Te=Bb-ue.length;return[...ue,...he.slice(0,Te)]})},[]),ut=A.useCallback(G=>{b(X=>X.filter(ae=>ae.id!==G))},[]),pt=A.useCallback(G=>{var X;G.preventDefault(),G.stopPropagation(),U.current++,(X=G.dataTransfer)!=null&&X.types.includes("Files")&&p(!0)},[]),rt=A.useCallback(G=>{G.preventDefault(),G.stopPropagation(),U.current--,U.current===0&&p(!1)},[]),qe=A.useCallback(G=>{G.preventDefault(),G.stopPropagation()},[]),Se=A.useCallback(G=>{var X;if(G.preventDefault(),G.stopPropagation(),U.current=0,p(!1),(X=G.dataTransfer)!=null&&X.files){const ae=Array.from(G.dataTransfer.files),he=ae.filter(Te=>Wt.includes(Te.type)),ue=ae.filter(Te=>!Wt.includes(Te.type)&&Yu(Te));he.length>0&&ce(he),ue.length>0&&Oe(ue)}},[ce,Oe]),Je=A.useCallback(G=>{var ae;const X=(ae=G.clipboardData)==null?void 0:ae.files;X&&X.length>0&&Array.from(X).some(ue=>Wt.includes(ue.type))&&(G.preventDefault(),ce(X))},[ce]),Y=A.useCallback(()=>{var G;(G=F.current)==null||G.click()},[]),ie=A.useCallback(()=>{var G;(G=N.current)==null||G.click()},[]),xe=A.useCallback(G=>{G.target.files&&ce(G.target.files),G.target.value=""},[ce]),Ve=A.useCallback(G=>{G.target.files&&Oe(G.target.files),G.target.value=""},[Oe]),Be=A.useMemo(()=>{const G=s.trimStart();if(!G.startsWith("/")||G.includes(" "))return[];const X=G.substring(1).toLowerCase();return D.filter(ae=>{const he=se(`command.${ae.name}.description`)??ae.description;return ae.name.toLowerCase().includes(X)||ae.description.toLowerCase().includes(X)||he.toLowerCase().includes(X)}).slice(0,8)},[s,D,se]),De=Be.length>0;A.useEffect(()=>{_(0)},[Be.length]),A.useEffect(()=>{if(De&&B.current){const G=B.current.children[g];G==null||G.scrollIntoView({block:"nearest"})}},[g,De]);const Ge=A.useMemo(()=>{if(C===null)return null;const G=s.substring(C+1),X=G.search(/\s/),ae=X===-1?G:G.substring(0,X);return X===0?null:ae},[s,C]),pe=Ge!==null&&k.length>0,ht=A.useRef(null);A.useEffect(()=>{if(Ge===null){S([]);return}return ht.current&&clearTimeout(ht.current),ht.current=setTimeout(async()=>{try{const G=new URLSearchParams;Ge&&G.set("query",Ge),G.set("limit","15");const X=await fetch(`/api/v1/fs/search?${G.toString()}`);if(X.ok){const ae=await X.json();S(ae.items||[]),x(0)}else S([])}catch{S([])}},150),()=>{ht.current&&clearTimeout(ht.current)}},[Ge]),A.useEffect(()=>{if(pe&&P.current){const G=P.current.children[E];G==null||G.scrollIntoView({block:"nearest"})}},[E,pe]);const zr=A.useRef(!1),Hr=A.useCallback(G=>{if(C===null)return;const X=s.substring(0,C),ae=s.substring(C+1),he=ae.search(/\s/),ue=he===-1?"":ae.substring(he),Ke=ue.length===0||!/^\s/.test(ue)?" ":"",gt=`${X}@${G.path}${Ke}${ue}`,Bt=X.length+1+G.path.length+Ke.length;o(gt),S([]),I(null),zr.current=!0,requestAnimationFrame(()=>{const xt=R.current;xt&&(xt.focus(),xt.setSelectionRange(Bt,Bt))})},[s,C]);A.useEffect(()=>{var X;!(window.innerWidth<=768)&&!z&&((X=R.current)==null||X.focus())},[z]),A.useEffect(()=>{const G=R.current;if(G){G.style.height="auto";const X=window.innerHeight*.2,ae=Math.min(G.scrollHeight,X);G.style.height=`${ae}px`,G.style.overflowY=G.scrollHeight>X?"auto":"hidden"}},[s]);const Gr=A.useCallback(G=>{var X;o(`/${G.name} `),(X=R.current)==null||X.focus()},[]),mt=A.useCallback(async G=>{var Zl;const X=(G??s).trim(),ae=l.length>0,he=h.length>0;if(!X&&!(ae||he)||!T||O)return;o(""),V(null);const Te=[...l],Ke=[...h];m([]),b([]);const gt=Te.length>0?Te.map(_e=>({data:_e.data,mimeType:_e.mimeType})):void 0,Bt=Ke.length>0?Ke.map(_e=>({name:_e.name,text:_e.text,mimeType:_e.mimeType})):void 0,xt=Ke.length>0?Ke.map(_e=>({name:_e.name,size:_e.size,mimeType:_e.mimeType})):void 0;if((Zl=R.current)==null||Zl.blur(),z)ee(X,gt,xt),ve().prompt(T,X,gt,Bt).catch(_e=>{console.error("Queued prompt failed:",_e)});else{q(X,gt,xt);try{const _e=await ve().prompt(T,X,gt,Bt);J(_e.stopReason,_e.errorMessage)}catch(_e){console.error("Prompt failed:",_e),J("error",_e instanceof Error?_e.message:Z("input.promptFailed"))}}},[s,l,h,T,z,O,q,ee,J,V,Z]),Xu=A.useCallback(async()=>{if(T)try{const G=ve(),X=K.filter(ae=>ae.type==="interruption"&&!ae.resolved);for(const ae of X)if(ae.type==="interruption")try{await G.respondToInterruption(T,ae.id,"deny",ae.toolCallId),oe(ae.id,"deny")}catch{}await G.cancel(T)}catch(G){console.error("Cancel failed:",G)}},[T,K,oe]),Zu=A.useCallback(()=>{H.current=!0},[]),Ju=A.useCallback(()=>{H.current=!1},[]),Qu=A.useCallback(G=>{G.preventDefault(),d({x:G.clientX,y:G.clientY})},[]),ep=A.useCallback(()=>{const G=R.current;if(!G)return;const X=G.selectionStart??s.length,ae=G.selectionEnd??X,he=s.slice(0,X)+`
496
- `+s.slice(ae);o(he),d(null),requestAnimationFrame(()=>{G.selectionStart=G.selectionEnd=X+1,G.focus()})},[s]),tp=A.useCallback(()=>{d(null),mt()},[mt]);A.useEffect(()=>{if(!f)return;const G=()=>d(null),X=()=>d(null);return document.addEventListener("mousedown",G),document.addEventListener("scroll",X,!0),()=>{document.removeEventListener("mousedown",G),document.removeEventListener("scroll",X,!0)}},[f]);const rp=A.useCallback(G=>{if(De){if(G.key==="ArrowUp"){G.preventDefault(),_(X=>X>0?X-1:Be.length-1);return}if(G.key==="ArrowDown"){G.preventDefault(),_(X=>X<Be.length-1?X+1:0);return}if(G.key==="Tab"||G.key==="Enter"&&!G.shiftKey&&!H.current&&!G.nativeEvent.isComposing){G.preventDefault(),Gr(Be[g]);return}if(G.key==="Escape"){G.preventDefault(),o("");return}}if(pe){if(G.key==="ArrowUp"){G.preventDefault(),x(X=>X>0?X-1:k.length-1);return}if(G.key==="ArrowDown"){G.preventDefault(),x(X=>X<k.length-1?X+1:0);return}if(G.key==="Tab"||G.key==="Enter"&&!G.shiftKey&&!H.current&&!G.nativeEvent.isComposing){G.preventDefault(),Hr(k[E]);return}if(G.key==="Escape"){G.preventDefault(),I(null),S([]);return}}if(G.key==="Tab"&&!De&&!pe&&W&&!s){G.preventDefault(),o(W),V(null);return}if(G.key==="Enter"&&!G.shiftKey&&!H.current&&!G.nativeEvent.isComposing){if(G.preventDefault(),!s&&W&&!z&&!O){mt(W);return}mt()}},[mt,De,Be,g,Gr,pe,k,E,Hr,W,s,V,z,O]),np=A.useCallback(async()=>{if(!T)return;const G=!M;L(G);try{await ve().setConfigOption(T,"thought_level",G?"enabled":"disabled")}catch(X){L(!G),console.error("Toggle thinking failed:",X)}},[T,M,L]),Xl=!O&&(s.trim().length>0||l.length>0||h.length>0||!!W&&!s&&!z),ip=l.length>0||h.length>0||y>0;return i.jsx("div",{className:"px-0 pb-0 pt-0 md:px-4 md:pb-6 md:pt-2",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[e&&n!==void 0&&i.jsx(Mb,{isOpen:a,onClose:()=>u(!1),onImageSelect:Y,onFileSelect:ie,onNewChat:t,onHistory:r,mainView:n,onNavigate:e}),i.jsxs("div",{className:`relative bg-bg-secondary rounded-none md:rounded-2xl shadow-sm transition-all focus-within:shadow-md border-t md:border ${v?"border-accent-brand border-dashed bg-accent-brand/5":"border-border-default"}`,onDragEnter:pt,onDragLeave:rt,onDragOver:qe,onDrop:Se,children:[v&&i.jsx("div",{className:"absolute inset-0 z-20 rounded-2xl flex items-center justify-center bg-accent-brand/5 pointer-events-none",children:i.jsx("span",{className:"text-accent-brand text-[14px] font-medium",children:Z("input.dropHint")})}),De&&i.jsx("div",{ref:B,className:"absolute bottom-full left-3 right-3 mb-2 bg-bg-secondary rounded-xl border border-border-default shadow-lg max-h-[280px] overflow-y-auto z-10",children:Be.map((G,X)=>i.jsxs("button",{className:`w-full text-left px-4 py-2.5 flex items-baseline gap-3 transition-colors ${X===g?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>_(X),onMouseDown:ae=>{ae.preventDefault(),Gr(G)},children:[i.jsxs("span",{className:"font-mono text-[13px] font-medium shrink-0",children:["/",G.name]}),G.type==="skill"&&i.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-accent-brand/15 text-accent-brand font-medium shrink-0",children:"Skill"}),i.jsx("span",{className:"text-text-tertiary text-[12px] truncate",children:se(`command.${G.name}.description`)??G.description})]},G.name))}),pe&&i.jsx("div",{ref:P,className:"absolute bottom-full left-3 right-3 mb-2 bg-bg-secondary rounded-xl border border-border-default shadow-lg max-h-[280px] overflow-y-auto z-10",children:k.map((G,X)=>i.jsxs("button",{className:`w-full text-left px-4 py-2.5 flex items-center gap-3 transition-colors ${X===E?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>x(X),onMouseDown:ae=>{ae.preventDefault(),Hr(G)},children:[G.type==="directory"?i.jsx(Dn,{size:14,className:"shrink-0 text-accent-brand"}):i.jsx(ct,{size:14,className:"shrink-0 text-text-tertiary"}),i.jsx("span",{className:"font-mono text-[13px] truncate",children:G.name}),i.jsx("span",{className:"text-text-tertiary text-[11px] truncate ml-auto",children:G.path})]},G.path))}),ip&&i.jsxs("div",{className:"px-4 pt-3 pb-1 flex flex-wrap gap-2",children:[l.map(G=>i.jsxs("div",{className:"relative group",children:[i.jsx("img",{src:G.dataUrl,alt:"",className:"w-16 h-16 rounded-lg object-cover border border-border-default"}),i.jsx("button",{onClick:()=>ne(G.id),className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded-full bg-bg-tertiary border border-border-default flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-accent-red hover:border-accent-red hover:text-white",children:i.jsx(Me,{size:12})})]},G.id)),Array.from({length:y}).map((G,X)=>i.jsx("div",{className:"w-16 h-16 rounded-lg border border-border-default skeleton-shimmer"},`skeleton-${X}`)),h.map(G=>i.jsxs("div",{className:"relative group flex items-center gap-2 px-3 py-2 rounded-lg border border-border-default bg-bg-primary max-w-[200px]",children:[i.jsx(ct,{size:16,className:"shrink-0 text-text-tertiary"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"text-[12px] text-text-primary truncate",title:G.name,children:G.name}),i.jsx("div",{className:"text-[11px] text-text-tertiary",children:Wb(G.size)})]}),i.jsx("button",{onClick:()=>ut(G.id),className:"shrink-0 w-4 h-4 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity text-text-tertiary hover:text-accent-red",children:i.jsx(Me,{size:12})})]},G.id))]}),i.jsxs("div",{className:"relative",children:[i.jsx("textarea",{ref:R,value:s,onChange:G=>{const X=G.target.value,ae=G.target.selectionStart??X.length;if(o(X),zr.current){zr.current=!1;return}let he=null;for(let ue=ae-1;ue>=0;ue--){const Te=X[ue];if(Te==="@"){const Ke=ue>0?X[ue-1]:" ";(Ke===" "||Ke===`
497
- `||ue===0)&&(X.substring(ue+1,ae).includes(" ")||(he=ue));break}if(Te===" "||Te===`
498
- `)break}he!==null?C!==he&&(I(he),x(0)):C!==null&&(I(null),S([]))},onCompositionStart:Zu,onCompositionEnd:Ju,onKeyDown:rp,onPaste:Je,onContextMenu:Qu,onFocus:()=>u(!1),placeholder:O?Z("input.placeholderPending"):z?Z("input.placeholderRunning"):W?"":Z("input.placeholder"),enterKeyHint:"send",rows:1,className:["w-full bg-transparent text-text-primary text-[15px] px-5 pt-4 pb-2","resize-none outline-none placeholder:text-text-tertiary","leading-relaxed"].join(" ")}),W&&!s&&!z&&!O&&i.jsx("div",{className:"absolute inset-0 flex items-start px-5 pt-4 pb-2 pointer-events-none overflow-hidden",children:i.jsx("span",{className:"text-[15px] leading-relaxed text-text-tertiary truncate max-w-full",children:W})})]}),f&&i.jsxs("div",{ref:j,className:"fixed z-50 bg-bg-secondary rounded-xl border border-border-default shadow-lg overflow-hidden min-w-[120px]",style:{left:f.x,top:f.y},onMouseDown:G=>G.stopPropagation(),children:[i.jsxs("button",{className:"w-full text-left px-4 py-2.5 flex items-center gap-2.5 text-text-primary hover:bg-bg-primary transition-colors text-[13px]",onMouseDown:G=>{G.preventDefault(),G.stopPropagation(),ep()},children:[i.jsx(uc,{size:14,className:"text-text-tertiary"}),Z("input.contextMenu.newline")]}),Xl&&i.jsxs("button",{className:"w-full text-left px-4 py-2.5 flex items-center gap-2.5 text-text-primary hover:bg-bg-primary transition-colors text-[13px]",onMouseDown:G=>{G.preventDefault(),G.stopPropagation(),tp()},children:[i.jsx(lc,{size:14,className:"text-text-tertiary"}),Z("input.contextMenu.send")]})]}),i.jsx("input",{ref:F,type:"file",accept:"image/jpeg,image/png,image/gif,image/webp",multiple:!0,className:"hidden",onChange:xe}),i.jsx("input",{ref:N,type:"file",accept:".txt,.md,.json,.yaml,.yml,.toml,.xml,.html,.css,.scss,.js,.jsx,.ts,.tsx,.py,.rb,.go,.rs,.java,.kt,.swift,.c,.cpp,.h,.hpp,.sh,.bash,.sql,.csv,.tsv,.log,.env,.ini,.cfg,.conf,.vue,.svelte,.astro,.graphql,.gql,.makefile,.dockerfile,.gitignore,.editorconfig",multiple:!0,className:"hidden",onChange:Ve}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",onClick:G=>{var X;G.target===G.currentTarget&&((X=R.current)==null||X.focus())},children:[i.jsx("div",{className:"flex items-center",children:i.jsxs("button",{onClick:np,className:`flex items-center gap-1 px-2.5 py-1 rounded-full border transition-colors ${M?"bg-text-primary border-text-primary text-bg-primary":"bg-bg-primary border-border-default text-text-tertiary hover:text-text-primary hover:bg-bg-primary"}`,children:[i.jsx("span",{className:"w-3.5 h-3.5 flex items-center justify-center text-[10px] font-semibold",children:"∞"}),i.jsx("span",{className:"text-[12px] font-medium",children:Z("input.deepThinking")})]})}),i.jsxs("div",{className:"flex items-center gap-1",children:[!z&&i.jsx("button",{onClick:()=>u(G=>!G),className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:Z("input.addFile"),children:i.jsx(Qe,{size:18})}),i.jsx("button",{onClick:()=>{const G=R.current;if(!G)return;const X=G.selectionStart??s.length,ae=G.selectionEnd??X,he=s.slice(0,X)+`
499
- `+s.slice(ae);o(he),requestAnimationFrame(()=>{G.selectionStart=G.selectionEnd=X+1,G.focus()})},className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:Z("input.newline"),children:i.jsx(uc,{size:15})}),z&&i.jsx("button",{onClick:Xu,className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:Z("input.stop"),children:i.jsx(ah,{size:14,fill:"currentColor",strokeWidth:0})}),Xl&&i.jsx("button",{onClick:()=>{!s&&W&&!z?mt(W):mt()},className:"flex items-center justify-center w-8 h-8 rounded-full bg-text-primary text-bg-primary hover:scale-105 active:scale-95 shadow-sm transition-all",title:Z("input.send"),children:i.jsx(lc,{size:18,strokeWidth:2.5})})]})]})]})]})})}function Vb({children:e}){return i.jsx("code",{className:"bg-bg-tertiary px-1.5 py-0.5 rounded text-xs text-accent-brand",children:e})}function fd(e){const t=[];let r=e,n=0;for(;r.length>0;){const a=r.indexOf("<code>");if(a===-1){t.push(i.jsx("span",{children:r},n));break}a>0&&(t.push(i.jsx("span",{children:r.substring(0,a)},n)),n++);const c=r.indexOf("</code>",a);if(c===-1){t.push(i.jsx("span",{children:r},n));break}const u=r.substring(a+6,c);t.push(i.jsx(Vb,{children:u},n)),n++,r=r.substring(c+7)}return i.jsx(i.Fragment,{children:t})}function Kb(){const{error:e,isSubmitting:t,login:r,clearError:n}=vd(),{t:a}=le(),[c,u]=A.useState(""),s=A.useCallback(async l=>{l.preventDefault(),c.trim()&&await r(c)},[c,r]),o=e?a(e)!==e?a(e):e:null;return i.jsxs("div",{className:"login-page",children:[i.jsxs("div",{className:"login-orb login-orb-right",children:[i.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),i.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),i.jsx("div",{className:"login-ellipse login-ellipse-outer"}),i.jsx("div",{className:"login-ellipse login-ellipse-outer2"}),i.jsx("div",{className:"login-ellipse login-ellipse-inner"}),i.jsxs("div",{className:"login-orb login-orb-left",children:[i.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),i.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),i.jsx("div",{className:"login-ellipse login-ellipse-left"}),i.jsx("div",{className:"login-ellipse login-ellipse-left2"}),i.jsxs("div",{className:"login-content",children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[i.jsx("div",{className:"login-logo",children:i.jsx("img",{src:kd,alt:"CodeBuddy"})}),i.jsx("h1",{className:"login-title",children:a("login.slogan")}),i.jsx("p",{className:"login-tagline",children:a("login.tagline")})]}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},children:[o&&i.jsx("div",{className:"login-error",style:{marginBottom:"8px"},children:o}),i.jsxs("form",{onSubmit:s,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},children:[i.jsx("input",{type:"password",name:"password",value:c,onChange:l=>{u(l.target.value),e&&n()},placeholder:a("login.placeholder"),autoFocus:!0,autoComplete:"current-password",disabled:t,className:"login-input"}),i.jsx("button",{type:"submit",disabled:t||!c.trim(),className:"login-btn",children:t?i.jsx("span",{className:"thinking-text",children:a("login.submit")}):a("login.submit")})]}),i.jsxs("div",{className:"login-hints",children:[i.jsx("p",{children:a("login.hint.password")}),i.jsx("p",{children:a("login.hint.urlAuth").includes("<code>")?fd(a("login.hint.urlAuth")):a("login.hint.urlAuth")}),i.jsx("p",{children:a("login.hint.disable").includes("<code>")?fd(a("login.hint.disable")):a("login.hint.disable")})]})]})]}),i.jsxs("div",{className:"login-footer",children:[i.jsx("a",{href:"#privacy",children:a("login.privacy")}),i.jsx("a",{href:"#terms",children:a("login.terms")})]})]})}function Yb({onNavigate:e}){const{t}=le(),[r,n]=A.useState(Nr);if(A.useEffect(()=>{const a=()=>n(Nr());return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),r==="add-wechat"||r!=null&&r.startsWith("rebind-wechat/")){const a=r!=null&&r.startsWith("rebind-wechat/")?r.split("/")[1]:void 0;return i.jsx(Zb,{onBack:()=>Jc("remote-control"),t,existingInstanceId:a})}return r==="add-wecom"?i.jsx(Jb,{onBack:()=>Jc("remote-control"),t}):i.jsx(Xb,{onNavigate:e,t})}function Xb({onNavigate:e,t}){const[r,n]=A.useState([]),[a,c]=A.useState(!0),[u,s]=A.useState(null),[o,l]=A.useState(null),m=A.useCallback(async()=>{try{const S=await ye("/api/v1/channels");if(S.ok){const E=await S.json();n((E.clients||[]).filter(x=>!x.hidden&&!x.instanceId.startsWith("_pending")))}}catch{}finally{c(!1)}},[]);A.useEffect(()=>{m();const S=setInterval(m,5e3);return()=>clearInterval(S)},[m]);const h=A.useCallback(async(S,E,x)=>{const C=`${E}:${x}:${S}`;l(C),s(null);try{const I=S==="delete"?"DELETE":"POST",R=S==="delete"?`/api/v1/channels/${E}/${x}`:`/api/v1/channels/${E}/${x}/${S}`,F=await ye(R,{method:I});if(!F.ok){const B=await F.json().catch(()=>({}));throw new Error(B.error||`Failed: ${F.status}`)}const N=await F.json().catch(()=>({}));if(S==="unbind"&&E==="wechat"&&N.needsQrScan){Ut("remote-control",`rebind-wechat/${x}`);return}await m()}catch(I){s((I==null?void 0:I.message)||"Action failed")}finally{l(null)}},[m]),b=S=>S==="connected"?"text-green-500":S==="connecting"?"text-yellow-500":S==="error"?"text-red-500":"text-text-tertiary",y=S=>t(S==="connected"?"remoteControl.connected":S==="connecting"?"remoteControl.connecting":"remoteControl.disconnected"),w=S=>S==="wechat"?i.jsx(Dd,{size:18,className:"text-green-500"}):S==="wecom"?i.jsx(hn,{size:18,className:"text-accent-brand"}):i.jsx(pc,{size:18,className:"text-text-tertiary"}),v=S=>S==="wechat"?t("channel.wechat")+t("remoteControl.bot"):S==="wecom"?t("channel.wecom")+t("remoteControl.bot"):S,p=S=>`${v(S.clientType)} #${S.instanceId.slice(0,4)}`,f=r.filter(S=>S.clientType==="wechat"),d=r.filter(S=>S.clientType==="wecom"),g=r.filter(S=>S.clientType!=="wechat"&&S.clientType!=="wecom"),_=S=>{const E=`${S.clientType}:${S.instanceId}`,x=S.status==="connected",C=o==null?void 0:o.startsWith(E);return i.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-bg-secondary hover:bg-bg-hover transition-colors cursor-pointer",onClick:()=>{C||h(x?"stop":"start",S.clientType,S.instanceId)},children:[w(S.clientType),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-sm font-medium text-text-primary truncate",children:p(S)}),i.jsx("span",{className:`text-xs ${b(S.status)}`,children:y(S.status)})]}),i.jsxs("div",{className:"flex items-center gap-1",onClick:I=>I.stopPropagation(),children:[i.jsx("button",{className:`p-1.5 rounded-md text-text-tertiary transition-colors ${x?"hover:text-orange-500":"hover:text-green-500"} hover:bg-bg-hover`,title:t(x?"remoteControl.disconnect":"remoteControl.connect"),disabled:!!C,onClick:()=>h(x?"stop":"start",S.clientType,S.instanceId),children:x?i.jsx(pc,{size:14}):i.jsx(Wp,{size:14})}),x&&i.jsx("button",{className:"p-1.5 rounded-md text-text-tertiary hover:text-orange-500 hover:bg-bg-hover transition-colors",title:t("remoteControl.unbind"),disabled:!!C,onClick:()=>h("unbind",S.clientType,S.instanceId),children:i.jsx(Ot,{size:14})}),i.jsx("button",{className:"p-1.5 rounded-md text-text-tertiary hover:text-red-500 hover:bg-bg-hover transition-colors",title:t("remoteControl.delete"),disabled:!!C,onClick:()=>h("delete",S.clientType,S.instanceId),children:i.jsx(rr,{size:14})})]})]},E)},k=(S,E,x,C)=>i.jsxs("div",{children:[i.jsx("h2",{className:"text-sm font-medium text-text-secondary mb-2",children:S}),E.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-text-tertiary",children:t("remoteControl.noChannels")}):i.jsx("div",{className:"space-y-2",children:E.map(_)}),x&&i.jsxs("button",{className:"flex items-center gap-1.5 mt-2 px-3 py-1.5 text-xs text-text-tertiary hover:text-text-primary hover:bg-bg-hover rounded-md transition-colors",onClick:x,children:[i.jsx(Qe,{size:12}),C||t("remoteControl.add")]})]});return i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary",children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:t("remoteControl.subtitle")})]}),i.jsxs("div",{className:"px-6 py-4 flex-1 space-y-6",children:[u&&i.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:u}),a?i.jsx("div",{className:"text-sm text-text-tertiary py-4",children:t("remoteControl.connecting")}):r.length===0?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"py-8 text-center",children:[i.jsx(hn,{size:32,className:"mx-auto mb-3 text-text-tertiary opacity-50"}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.noChannels")}),i.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.noChannelsHint")})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsxs("button",{className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm text-text-primary transition-colors border border-border-primary",onClick:()=>Ut("remote-control","add-wechat"),children:[i.jsx(Qe,{size:14}),t("remoteControl.addWeChat")]}),i.jsxs("button",{className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm text-text-primary transition-colors border border-border-primary",onClick:()=>Ut("remote-control","add-wecom"),children:[i.jsx(Qe,{size:14}),t("remoteControl.addWeCom")]})]})]}):i.jsxs(i.Fragment,{children:[k(t("channel.wechat")+t("remoteControl.bot"),f,()=>Ut("remote-control","add-wechat"),t("remoteControl.addWeChat")),k(t("channel.wecom")+t("remoteControl.bot"),d,()=>Ut("remote-control","add-wecom"),t("remoteControl.addWeCom")),g.length>0&&k(t("remoteControl.plugin"),g)]}),i.jsx("hr",{className:"border-border-primary"}),i.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg bg-bg-secondary hover:bg-bg-hover cursor-pointer transition-colors border border-border-primary",onClick:()=>{e?e("plugins"):window.location.hash="#/plugins"},children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t("remoteControl.installMore")}),i.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.installMoreHint")})]}),i.jsx(Ep,{size:16,className:"text-text-tertiary"})]})]})]})}function Zb({onBack:e,t,existingInstanceId:r}){const[n,a]=A.useState(null),[c,u]=A.useState(t("remoteControl.fetchingQr")),[s,o]=A.useState(r??null),[l,m]=A.useState(null),[h,b]=A.useState(!1);return A.useEffect(()=>{let y=!1;return(async()=>{try{let w=r;if(!w){const v=await ye("/api/v1/channels/wechat",{method:"POST"});if(!v.ok)throw new Error((await v.json().catch(()=>({}))).error||"Failed");const p=await v.json();if(y)return;w=p.instanceId,o(w)}for(let v=0;v<180&&!y;v++){await new Promise(p=>setTimeout(p,1e3));try{const p=await fetch(`/api/v1/channels/wechat/${w}/qr`);if(!p.ok)continue;const f=await p.json();if(y)return;if(f.qrUrl&&a(f.qrUrl),f.message&&u(f.message),f.type==="confirmed"){b(!0),u(t("remoteControl.connected")),setTimeout(()=>{y||e()},1500);return}if(f.type==="error"){m(f.message);return}}catch{}}!y&&!h&&m("Timeout")}catch(w){y||m((w==null?void 0:w.message)||"Failed")}})(),()=>{y=!0}},[r]),i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[i.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:i.jsx(Lt,{size:18})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeChat")}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.scanQr")})]})]}),i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center px-6 py-8",children:l?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("p",{className:"text-red-500",children:l}),i.jsx("button",{onClick:e,className:"px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm border border-border-primary",children:t("remoteControl.cancel")})]}):n?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("div",{className:"inline-block p-4 bg-white rounded-xl",children:i.jsx("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=240x240&data=${encodeURIComponent(n)}`,alt:"QR Code",className:"w-60 h-60"})}),i.jsx("p",{className:"text-sm text-text-secondary",children:c})]}):i.jsxs("div",{className:"text-center space-y-3",children:[i.jsx("div",{className:"w-8 h-8 mx-auto border-2 border-accent-brand border-t-transparent rounded-full animate-spin"}),i.jsx("p",{className:"text-sm text-text-tertiary",children:c})]})})]})}function Jb({onBack:e,t}){const[r,n]=A.useState(""),[a,c]=A.useState(""),[u,s]=A.useState("botId"),[o,l]=A.useState(!1),[m,h]=A.useState(null),b=A.useCallback(async()=>{if(!(!r.trim()||!a.trim())){l(!0),h(null);try{const y=await ye("/api/v1/channels/wecom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({botId:r.trim(),secret:a.trim()})});if(!y.ok){const w=await y.json().catch(()=>({}));throw new Error(w.error||"Failed")}e()}catch(y){h((y==null?void 0:y.message)||"Failed")}finally{l(!1)}}},[r,a,e]);return i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[i.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:i.jsx(Lt,{size:18})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeCom")}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.wecomBotIdHint")})]})]}),i.jsxs("div",{className:"px-6 py-8 max-w-md mx-auto w-full space-y-6",children:[m&&i.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:m}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Bot ID"}),i.jsx("input",{type:"text",className:"w-full px-3 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-primary placeholder-text-tertiary focus:outline-none focus:border-accent-brand transition-colors",placeholder:"Enter Bot ID",value:r,onChange:y=>n(y.target.value),autoFocus:!0,disabled:u==="secret",onKeyDown:y=>{y.key==="Enter"&&r.trim()&&s("secret")}})]}),u==="secret"&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Secret"}),i.jsx("input",{type:"password",className:"w-full px-3 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-primary placeholder-text-tertiary focus:outline-none focus:border-accent-brand transition-colors",placeholder:"Enter Secret",value:a,onChange:y=>c(y.target.value),autoFocus:!0,onKeyDown:y=>{y.key==="Enter"&&a.trim()&&b()}}),i.jsx("p",{className:"text-xs text-text-tertiary",children:t("remoteControl.wecomSecretHint")})]}),i.jsxs("div",{className:"flex gap-3 pt-2",children:[u==="botId"?i.jsx("button",{className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm hover:bg-accent-brand/90 transition-colors disabled:opacity-50",disabled:!r.trim(),onClick:()=>s("secret"),children:t("remoteControl.next")}):i.jsx("button",{className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm hover:bg-accent-brand/90 transition-colors disabled:opacity-50",disabled:!a.trim()||o,onClick:b,children:t(o?"remoteControl.connecting":"remoteControl.connect")}),i.jsx("button",{className:"px-4 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-secondary hover:bg-bg-hover transition-colors",onClick:e,children:t("remoteControl.cancel")})]})]})]})}const Qb="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23copilot-clip-34e811bed903495093b85bf96a98fb1b_0)'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='%234C4F6B'%3e%3c/rect%3e%3cpath%20d='M3.4689%2011.0144C3.32344%2011.2025%203.31607%2011.4567%203.4345%2012.0298C3.65883%2013.0748%204.24029%2014.4426%205.15579%2016.0716L5.747%2017.1172L5.72862%2017.511C5.70544%2017.9326%205.72848%2018.5857%205.77921%2019.0271C5.80994%2019.2967%205.8055%2019.3035%205.66483%2019.4638C5.12042%2020.0864%205.03916%2021.1287%205.44787%2022.2839C5.62456%2022.7775%206.16958%2023.6999%206.50726%2024.0756C7.35392%2025.0154%208.35051%2025.4646%209.11147%2025.246C9.25446%2025.2051%209.28403%2025.213%209.47117%2025.3424C10.182%2025.8233%2011.3834%2026.2377%2012.4447%2026.3663C14.2242%2026.5843%2016.2727%2026.143%2018.8281%2024.9925C19.8948%2024.5099%2022.2541%2023.1352%2023.2513%2022.4096C25.1083%2021.0667%2026.4805%2019.6414%2027.251%2018.2635C27.9337%2017.0364%2028.2735%2015.7781%2028.2495%2014.5174C28.2466%2014.2525%2028.2536%2014.2359%2028.3599%2014.1746C28.8797%2013.8703%2029.1497%2013.198%2029.0927%2012.3562C29.075%2012.1165%2029.0266%2011.7946%2028.9902%2011.6448C28.7404%2010.7144%2028.0885%209.59971%2027.4078%208.94729C26.6515%208.22182%2025.7943%207.9129%2025.1958%208.14598C25.0631%208.19758%2025.0452%208.19542%2024.9177%208.08995C24.6357%207.86124%2023.9604%207.43473%2023.5488%207.22673L23.1224%207.01477L22.8206%206.45595C22.0392%205.01609%2020.7826%203.33003%2019.8801%202.50992C19.4937%202.15818%2019.2668%202.03929%2019.019%202.05739C18.866%202.06657%2018.8535%202.07379%2018.645%202.26084C18.0389%202.79819%2017.1889%204.41355%2016.3588%206.60463L16.1271%207.21325L15.7053%207.34845C14.3909%207.76995%2013.2238%208.30219%2012.1896%208.94928C11.1973%209.56799%2010.6591%209.97037%209.84886%2010.688L9.36087%2011.1197L9.13878%2011.0813C7.00072%2010.7039%205.07892%2010.5639%204.19776%2010.7186C3.84772%2010.7832%203.55743%2010.9008%203.4689%2011.0144Z'%20fill='%23D2D3E0'%3e%3c/path%3e%3crect%20x='6.68555'%20y='16.3788'%20width='17.7918'%20height='11.5605'%20rx='4.61469'%20transform='rotate(-30%206.68555%2016.3788)'%20fill='%23212234'%3e%3c/rect%3e%3cg%3e%3crect%20x='12.2119'%20y='17.2593'%20width='2.13173'%20height='4.42744'%20rx='1.06587'%20transform='rotate(-30%2012.2119%2017.2593)'%20fill='%23D2D3E0'%3e%3canimate%20attributeName='height'%20values='4.42744;2.2;4.42744;4.42744;2.2;4.42744'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%20id='blink134e811bed903495093b85bf96a98fb1b_0'%3e%3c/animate%3e%3canimate%20attributeName='y'%20values='17.2593;18.2593;17.2593;17.2593;18.2593;17.2593'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3canimate%20attributeName='opacity'%20values='1;0.2;1;1;0.2;1'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3c/rect%3e%3c/g%3e%3cg%3e%3crect%20x='17.9634'%20y='13.9387'%20width='2.13173'%20height='4.42744'%20rx='1.06587'%20transform='rotate(-30%2017.9634%2013.9387)'%20fill='%23D2D3E0'%3e%3canimate%20attributeName='height'%20values='4.42744;2.2;4.42744;4.42744;2.2;4.42744'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%20id='blink234e811bed903495093b85bf96a98fb1b_0'%3e%3c/animate%3e%3canimate%20attributeName='y'%20values='13.9387;14.9387;13.9387;13.9387;14.9387;13.9387'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3canimate%20attributeName='opacity'%20values='1;0.2;1;1;0.2;1'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='copilot-clip-34e811bed903495093b85bf96a98fb1b_0'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ey="/assets/logo-iZVLr450.svg";function ty({isOpen:e,onClose:t,mainView:r,onNavigate:n}){const{t:a}=le(),{userInfo:c}=Sd(),u=Qt(b=>b.info),s=Qt(b=>b.fetch),o=qt(b=>b.fileChanges.length);A.useEffect(()=>{u||s()},[s,u]);const l=(c==null?void 0:c.userName)||(u==null?void 0:u.userName)||a("sidebar.user"),m=(u==null?void 0:u.version)||"",h=m&&m!=="dev"&&m!=="0.0.0"?`v${m}`:"";return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`sidebar-overlay ${e?"":"sidebar-overlay-hidden"}`,onClick:t}),i.jsxs("aside",{className:`sidebar ${e?"":"sidebar-closed"}`,children:[i.jsxs("div",{className:"sidebar-header",children:[i.jsx("img",{src:ey,alt:"CodeBuddy",className:"sidebar-logo"}),i.jsx("span",{className:"sidebar-brand",children:"CodeBuddy"}),i.jsx("div",{className:"flex-1"}),i.jsx("button",{onClick:t,className:"md:hidden w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",children:i.jsx(Me,{size:16})})]}),i.jsxs("nav",{className:"sidebar-nav",children:[i.jsxs("button",{className:`sidebar-nav-item ${r==="chat"?"active":""}`,onClick:()=>n("chat"),children:[i.jsx(jn,{size:16}),i.jsx("span",{children:a("sidebar.chatMode")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="instances"?"active":""}`,onClick:()=>n("instances"),children:[i.jsx(vt,{size:16}),i.jsx("span",{children:a("sidebar.instances")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="remote-control"?"active":""}`,onClick:()=>n("remote-control"),children:[i.jsx(hn,{size:16}),i.jsx("span",{children:a("sidebar.remoteControl")})]})]}),i.jsx("div",{className:"sidebar-content",children:i.jsxs("div",{className:"px-3 py-1",children:[i.jsxs("button",{className:`sidebar-nav-item ${r==="tasks"?"active":""}`,onClick:()=>n("tasks"),children:[i.jsx(Ld,{size:16}),i.jsx("span",{children:a("sidebar.nav.tasks")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="terminal"?"active":""}`,onClick:()=>n("terminal"),children:[i.jsx(Md,{size:16}),i.jsx("span",{children:a("sidebar.terminalMode")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="editor"?"active":""}`,onClick:()=>n("editor"),children:[i.jsx(Fp,{size:16}),i.jsx("span",{children:a("sidebar.editor")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="changes"?"active":""}`,onClick:()=>n("changes"),children:[i.jsx($n,{size:16}),i.jsx("span",{children:a("sidebar.changes")}),o>0&&i.jsx("span",{className:"sidebar-badge",children:o})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="plugins"?"active":""}`,onClick:()=>n("plugins"),children:[i.jsx(Nt,{size:16}),i.jsx("span",{children:a("sidebar.nav.plugins")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="settings"?"active":""}`,onClick:()=>n("settings"),children:[i.jsx($d,{size:16}),i.jsx("span",{children:a("sidebar.preferences")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="docs"?"active":""}`,onClick:()=>n("docs"),children:[i.jsx(Cp,{size:16}),i.jsx("span",{children:a("sidebar.docs")})]})]})}),i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"sidebar-user",children:[i.jsx("img",{src:Qb,alt:"User",className:"sidebar-user-avatar"}),i.jsxs("div",{className:"sidebar-user-info",children:[i.jsx("div",{className:"sidebar-user-name",children:l}),i.jsx("div",{className:"sidebar-user-status",children:h})]})]})})]})]})}function ry({onMenuClick:e,onNewChat:t,onSplitTerminal:r,onHistory:n,hasHistory:a,rightActions:c}){const{t:u}=le(),{topic:s}=tt(),{mainView:o,layout:l,terminalTitle:m}=be(),[h,b]=A.useState(!1),y=A.useRef(null),w=o==="terminal",p=It(l)<Mu;A.useEffect(()=>{if(!h)return;const _=k=>{y.current&&!y.current.contains(k.target)&&b(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[h]);const f=A.useCallback(_=>{b(!1),r==null||r(_)},[r]),d=()=>{switch(o){case"chat":return s||u("chat.newChat");case"terminal":return m||u("terminal.title");case"instances":return u("instance.managerTitle");case"settings":return u("settings.title");case"tasks":return u("tasks.title");case"plugins":return u("sidebar.nav.plugins");default:return""}},g=()=>c||(w?i.jsxs("div",{ref:y,className:"relative",children:[i.jsx("button",{onClick:()=>p&&b(!h),className:`text-text-secondary transition-colors flex items-center justify-center w-8 h-8 rounded-full ${p?"hover:text-text-primary hover:bg-bg-secondary":"opacity-40 cursor-not-allowed"}`,title:p?void 0:u("terminal.maxPanes"),children:i.jsx(dc,{size:20})}),h&&i.jsxs("div",{className:"absolute right-0 top-full mt-1 bg-bg-secondary border border-border-muted rounded-lg shadow-lg py-1 z-50 min-w-[140px]",children:[i.jsxs("button",{onClick:()=>f("horizontal"),className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-text-primary hover:bg-bg-hover transition-colors",children:[i.jsx(dc,{size:16,className:"text-text-secondary"}),i.jsx("span",{children:u("terminal.splitHorizontal")})]}),i.jsxs("button",{onClick:()=>f("vertical"),className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-text-primary hover:bg-bg-hover transition-colors",children:[i.jsx(th,{size:16,className:"text-text-secondary"}),i.jsx("span",{children:u("terminal.splitVertical")})]})]})]}):o==="chat"?i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("button",{onClick:t,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",children:i.jsx(Qe,{size:20})}),a&&i.jsx("button",{onClick:n,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",title:u("sidebar.chatHistory"),children:i.jsx(Id,{size:18})})]}):null);return i.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 h-14 bg-bg-primary text-xs flex-shrink-0 transition-colors duration-200 sticky top-0 z-10",children:[i.jsx("div",{className:"flex items-center gap-4",children:i.jsx("button",{onClick:e,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",children:i.jsx(Fn,{size:20})})}),i.jsx("div",{className:"flex-1 flex justify-center items-center min-w-0 px-2",children:i.jsx("span",{className:"font-medium text-text-primary text-[15px] tracking-wide truncate max-w-full",children:d()})}),i.jsx("div",{className:"flex items-center",children:g()})]})}let cn=1e5;function ny(e){if(!Array.isArray(e))return[];const t=[];let r=null;for(const n of e)if(n.sessionUpdate==="user_message_chunk"){r&&(t.push(r),r=null);const a=n.content,c=(a==null?void 0:a.text)||"";if(!c.trim())continue;t.push({type:"message",id:`member-msg-${++cn}`,role:"user",content:c,timestamp:Date.now()})}else if(n.sessionUpdate==="agent_message_chunk"){const a=n.content;if((a==null?void 0:a.type)==="thinking")continue;const c=(a==null?void 0:a.text)||"";if(!c)continue;r?r={...r,content:r.content+c}:r={type:"message",id:`member-msg-${++cn}`,role:"assistant",content:c,timestamp:Date.now()}}else if(n.sessionUpdate==="tool_call"){r&&(t.push(r),r=null);const c=(n._meta||{})["codebuddy.ai/toolName"]||"";t.push({type:"tool_call",id:n.toolCallId||`member-tc-${++cn}`,name:n.title||c||n.kind||"tool",kind:n.kind||"other",toolName:c,input:n.rawInput||n.input,status:n.status==="completed"?"completed":n.status==="failed"?"failed":"running",locations:n.locations,content:n.content})}else if(n.sessionUpdate==="tool_call_update"){const a=t.findIndex(c=>c.type==="tool_call"&&c.id===n.toolCallId);if(a!==-1){const c=t[a];t[a]={...c,status:n.status==="completed"?"completed":n.status==="failed"?"failed":c.status,result:n.rawOutput||n.toolResult||c.result,...n.content!==void 0?{content:n.content}:{}}}}return r&&t.push(r),t}function iy(){var b;const e=$e(y=>y.focusedMemberName),t=$e(y=>y.memberHistories),r=$e(y=>y.members),n=$e(y=>y.setFocusedMember),a=A.useRef(null),c=r.find(y=>y.name===e),u=e&&t[e]||[],s=A.useMemo(()=>ny(u),[u]),o=A.useMemo(()=>xu(s),[s]);A.useEffect(()=>{a.current&&(a.current.scrollTop=a.current.scrollHeight)},[o]);const l=A.useCallback(()=>{n(null)},[n]),m=(c==null?void 0:c.status)==="running"||(c==null?void 0:c.status)==="pending",{t:h}=le();return i.jsxs("div",{ref:a,className:"absolute inset-0 overflow-y-auto overflow-x-hidden",children:[i.jsx("div",{className:"sticky top-0 z-10 bg-bg-primary/95 backdrop-blur-sm border-b border-border-muted/30",children:i.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-3 flex items-center gap-3",children:[i.jsx("button",{type:"button",onClick:l,className:"p-1.5 rounded-md hover:bg-bg-secondary text-text-tertiary hover:text-text-secondary transition-colors",title:h("team.backToMain"),children:i.jsx(Lt,{size:16})}),i.jsx(vt,{size:16,className:"text-accent-purple flex-shrink-0"}),i.jsxs("span",{className:"text-[14px] font-semibold text-accent-purple",children:["@",e]}),(c==null?void 0:c.description)&&i.jsx("span",{className:"text-[12px] text-text-tertiary truncate flex-1",children:c.description}),m&&i.jsx(fe,{size:14,className:"animate-spin text-accent-purple flex-shrink-0"}),i.jsx("div",{className:"flex-1"}),c&&i.jsxs("span",{className:"text-[11px] text-text-tertiary flex-shrink-0",children:[c.toolCallCount?h("team.tools").replace("{count}",String(c.toolCallCount)):"",(b=c.tokenUsage)!=null&&b.lastContextWindow?`${c.toolCallCount?" · ":""}${h("team.tokens").replace("{count}",String(Math.round(c.tokenUsage.lastContextWindow/1e3))+"k")}`:""]})]})}),i.jsx("div",{className:"px-4 sm:px-6 pt-4 pb-8",children:i.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col",children:[m&&o.length===0?i.jsxs("div",{className:"flex items-center justify-center gap-2 py-20 text-text-tertiary text-[13px]",children:[i.jsx(fe,{size:16,className:"animate-spin"}),i.jsx("span",{children:h("team.loadingHistory")})]}):o.length===0?i.jsx("div",{className:"flex items-center justify-center py-20 text-text-tertiary text-[13px]",children:h("team.noHistory")}):o.map((y,w)=>{if(y.kind==="user"){const v=y.entry.content?vu(y.entry.content):void 0;if(v)return v.from==="system"?null:i.jsx("div",{children:i.jsx(Su,{msg:v})},y.entry.id);let p=y.entry.content||"";return p=p.replace(/<system-reminder>[\s\S]*?<\/system-reminder>\s*/g,"").trim(),p?i.jsx("div",{className:"flex justify-end mb-6",children:i.jsx("div",{className:"max-w-[85%] sm:max-w-[75%] px-5 py-3 rounded-2xl rounded-tr-sm bg-bg-user border border-transparent",children:i.jsx("p",{className:"whitespace-pre-wrap break-words text-text-primary text-chat",children:p})})},y.entry.id):null}return y.kind==="assistant_message"?i.jsx("div",{className:"mb-6",children:i.jsx(Gl,{message:y.entry})},y.entry.id):y.kind==="assistant_tools"?i.jsx("div",{className:"mb-6",children:i.jsx(_u,{entries:y.entries})},`tools-${w}`):null}),m&&o.length>0&&i.jsxs("div",{className:"flex items-center gap-2 py-4 text-text-tertiary text-[12px]",children:[i.jsx(fe,{size:12,className:"animate-spin"}),i.jsx("span",{children:h("team.agentRunning")})]})]})})]})}function sy(e,t){const r=[];for(const n of e)n.type==="tool_call"&&r.push(n);for(const n of t.values())r.push(n);return r}function ay(e,t){const r={};for(const n of e){const a=n.input||{},c=n.toolName;if(c==="TaskCreate"){const u=n.result,s=typeof u=="string"?u:u&&typeof u=="object"?String(u.text??u.output??""):"",o=!s&&Array.isArray(n.content)?n.content.reduce((b,y)=>{var w;return b||String(((w=y==null?void 0:y.content)==null?void 0:w.text)??(y==null?void 0:y.text)??"")},""):"",l=(s||o).match(/Task #(\d+)/),m=l?l[1]:`t-${Object.keys(r).length+1}`;let h=a.owner?String(a.owner):void 0;if(!h&&(t!=null&&t.length)){const b=a.subject?String(a.subject).toLowerCase():"",y=a.description?String(a.description).toLowerCase():"",w=b+" "+y;for(const v of t)if(w.includes(v.toLowerCase())){h=v;break}}r[m]={id:m,subject:a.subject?String(a.subject):"",status:"pending",owner:h,activeForm:a.activeForm?String(a.activeForm):void 0}}else if(c==="TaskUpdate"){const u=a.taskId?String(a.taskId):void 0;if(u&&r[u]){const s=r[u];a.status&&a.status!=="deleted"&&(s.status=String(a.status)),a.subject&&(s.subject=String(a.subject)),a.owner!==void 0&&(s.owner=a.owner?String(a.owner):void 0),a.activeForm&&(s.activeForm=String(a.activeForm)),a.status==="deleted"&&delete r[u]}}}return Object.values(r)}function oy(e){return e.filter(t=>t.toolName==="TaskCreate"||t.toolName==="TaskUpdate").length}function ly({status:e}){switch(e){case"completed":return i.jsx(Ad,{size:14,className:"text-accent-green flex-shrink-0"});case"in_progress":return i.jsx(fe,{size:14,className:"text-accent-brand flex-shrink-0 animate-spin"});default:return i.jsx(Np,{size:14,className:"text-text-tertiary flex-shrink-0"})}}function cy({member:e,isFocused:t,onClick:r}){var o;const n=e.status==="running"||e.status==="pending",a=e.status==="failed"||e.status==="killed",c=Lm(e.color),u=Un(e.color),s=[];return e.toolCallCount&&s.push(`${e.toolCallCount} tools`),(o=e.tokenUsage)!=null&&o.lastContextWindow&&s.push(`${(e.tokenUsage.lastContextWindow/1e3).toFixed(1)}k`),i.jsxs("button",{type:"button",onClick:r,className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] transition-colors cursor-pointer ${t?`${c.bg}`:n?`${c.bg} hover:opacity-80`:a?"bg-accent-red/10 text-accent-red":"bg-bg-secondary/50 text-text-tertiary hover:bg-bg-secondary/70"}`,style:{color:t||n?u:void 0,...t?{boxShadow:`0 0 0 1px ${u}40`}:{}},children:[i.jsxs("span",{className:"font-medium",children:["@",e.name]}),s.length>0&&i.jsx("span",{className:"opacity-70",children:s.join(" · ")}),n&&i.jsx(fe,{size:9,className:"animate-spin flex-shrink-0"}),a&&i.jsx(un,{size:9,className:"flex-shrink-0"}),!n&&!a&&i.jsx(lt,{size:9,className:"flex-shrink-0"})]})}function dy(){const e=ze(L=>L.timeline),t=ze(L=>L.childToolCalls),r=ze(L=>L.isAgentRunning),{t:n}=le(),[a,c]=A.useState(!0),u=$e(L=>L.isInTeam),s=$e(L=>L.members),o=$e(L=>L.focusedMemberName),l=$e(L=>L.setFocusedMember),m=A.useMemo(()=>{const L=new Map;for(const W of s)W.color&&L.set(W.name,W.color);return L},[s]),h=A.useRef(0),[b,y]=A.useState(!1),w=A.useRef(r),v=A.useMemo(()=>sy(e,t),[e,t]),p=A.useMemo(()=>s.map(L=>L.name),[s]),f=A.useMemo(()=>ay(v,p),[v,p]),d=A.useMemo(()=>oy(v),[v]);A.useEffect(()=>{!w.current&&r&&(h.current=d,y(!0)),w.current=r},[r,d]),A.useEffect(()=>{b&&d>h.current&&y(!1)},[b,d]);const g=A.useCallback(()=>c(L=>!L),[]),_=A.useCallback(L=>{L.stopPropagation(),h.current=d,y(!0)},[d]),k=A.useCallback(L=>{l(o===L?null:L)},[o,l]),S=A.useCallback(L=>{L.owner&&m.has(L.owner)&&l(o===L.owner?null:L.owner)},[o,m,l]),E=s.filter(L=>L.status==="running"||L.status==="pending"),x=E.length>0,C=!r&&x,I=u&&s.length>0,R=f.length>0,F=R&&f.every(L=>L.status==="completed"),N=I&&!x&&!r,B=R&&f.every(L=>L.status==="pending")&&!r&&!x,j=R&&!(F||N||B)&&!b,U=I&&(x||o);if(!j&&!U)return null;const H=f.filter(L=>L.status==="completed").length,T=f.length,D=f.find(L=>L.status==="in_progress"),M=D?D.activeForm||D.subject:`${H}/${T}`;return i.jsx("div",{className:"flex-none px-4 sm:px-6 pb-1",children:i.jsx("div",{className:"max-w-3xl mx-auto",children:i.jsxs("div",{className:"rounded-lg border border-border-muted/15 bg-bg-secondary/30 overflow-hidden",children:[i.jsxs("button",{onClick:g,className:"flex items-center gap-2 w-full px-3 py-1.5 hover:bg-bg-hover/30 transition-colors cursor-pointer",children:[C?i.jsx(fe,{size:13,className:"animate-spin text-accent-purple flex-shrink-0"}):U?i.jsx(Fd,{size:13,className:"text-accent-purple flex-shrink-0"}):i.jsx(Od,{size:13,className:"text-text-tertiary flex-shrink-0"}),C?i.jsx("span",{className:"text-xs font-medium text-accent-purple",children:n("team.waitingForTeammates").replace("{count}",String(E.length)).replace("{s}",E.length>1?"s":"")}):i.jsxs(i.Fragment,{children:[j&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-xs font-medium text-text-primary",children:n("todo.title")}),i.jsxs("span",{className:"text-[11px] text-text-tertiary tabular-nums",children:[H,"/",T]})]}),U&&j&&i.jsx("span",{className:"text-border-muted/40",children:"·"}),U&&i.jsxs("span",{className:"text-[11px] text-text-tertiary",children:[n("team.title")," ",E.length>0?n("team.activeCount").replace("{count}",String(E.length)):""]})]}),!a&&j&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-border-muted/60 select-none",children:"|"}),D&&r&&i.jsx(fe,{size:10,className:"text-accent-brand animate-spin flex-shrink-0"}),i.jsx("span",{className:"text-xs text-text-secondary truncate flex-1 text-left",children:M})]}),i.jsx("span",{className:"flex-1"}),!r&&!C&&i.jsx("span",{role:"button",tabIndex:0,onClick:_,onKeyDown:L=>{L.key==="Enter"&&_(L)},className:"text-text-tertiary hover:text-text-primary p-0.5 rounded transition-colors flex-shrink-0",children:i.jsx(Me,{size:12})}),a?i.jsx(Xe,{size:12,className:"text-text-tertiary flex-shrink-0"}):i.jsx(He,{size:12,className:"text-text-tertiary flex-shrink-0"})]}),a&&i.jsxs("div",{className:"border-t border-border-muted/40",children:[U&&i.jsx("div",{className:"flex flex-wrap gap-1.5 px-3 py-1.5",children:s.map(L=>i.jsx(cy,{member:L,isFocused:o===L.name,onClick:()=>k(L.name)},L.name))}),j&&i.jsx("div",{className:`px-3 py-1.5 space-y-0.5 max-h-52 overflow-y-auto ${U?"border-t border-border-muted/30":""}`,children:f.map((L,W)=>{const V=L.owner?m.get(L.owner):void 0,Q=!!V,re=V?Un(V):void 0;return i.jsxs("div",{onClick:Q?()=>S(L):void 0,className:`flex items-center gap-2 py-0.5 text-xs ${Q?"cursor-pointer hover:bg-bg-hover/30 rounded px-1 -mx-1":""} ${L.status==="in_progress"?"text-text-primary":L.status==="completed"?"text-text-tertiary":"text-text-secondary"}`,children:[i.jsx(ly,{status:L.status}),i.jsxs("span",{className:`truncate ${L.status==="completed"?"line-through":""}`,children:[W+1,". ",L.status==="in_progress"?L.activeForm||L.subject||n("todo.untitled"):L.subject||n("todo.untitled")]}),V&&i.jsxs("span",{className:"text-[10px] font-medium flex-shrink-0 ml-auto",style:{color:re},children:["@",L.owner]})]},L.id)})})]})]})})})}function uy(){const{viewState:e,checkAuth:t}=vd(),{status:r,sessionId:n,topic:a,setPromptSuggestion:c,setTopic:u}=tt(),{connect:s}=vp(),{clearChat:o}=ze(),l=$e(j=>j.focusedMemberName),{t:m,resolved:h}=le(),[b,y]=A.useState(()=>{try{const j=sessionStorage.getItem("codebuddy_sidebar_open");return j!==null?window.innerWidth>=768?j==="true":!1:window.innerWidth>=768}catch{return window.innerWidth>=768}}),w=A.useRef(b),[v,p]=A.useState(!1),[f,d]=A.useState(!1),{splitPane:g,mainView:_,setMainView:k}=be(),S=A.useCallback(j=>{y(U=>{const H=typeof j=="function"?j(U):j;w.current=H;try{sessionStorage.setItem("codebuddy_sidebar_open",String(H))}catch{}return H})},[]);A.useEffect(()=>{const j=window.matchMedia("(min-width: 768px)"),U=H=>{H.matches?y(w.current):y(!1)};return j.addEventListener("change",U),()=>j.removeEventListener("change",U)},[]);const[E,x]=A.useState(!1),C=A.useRef();A.useEffect(()=>r!=="connected"?void 0:((()=>{fetch("/api/v1/sessions",{headers:ge()}).then(U=>U.ok?U.json():null).then(U=>{U!=null&&U.sessions&&x(U.sessions.length>1)}).catch(()=>{})})(),()=>{C.current&&clearTimeout(C.current)}),[r,n]);const I=A.useCallback(j=>{g(j)},[g]),R=A.useCallback(async()=>{if(n){try{await ve().prompt(n,"/clear")}catch(j){console.error("New chat (/clear) failed:",j)}o(),u(null),c(null),k("chat"),window.location.hash="/chat"}},[n,o,u,c,k]),F=A.useCallback(async j=>{if(n){try{await ve().prompt(n,`/resume ${j}`)}catch(U){console.error("Switch session failed:",U)}k("chat"),window.location.hash="/chat"}},[n,k]),N=A.useCallback(j=>{k(j),window.location.hash=`/${j}`,window.innerWidth<768&&y(!1)},[k]);if(A.useEffect(()=>{const j=new URLSearchParams(window.location.search),U=j.get("password"),H=j.get("token");if(U||H){_d(U||H),j.delete("password"),j.delete("token");const T=j.toString()?`${window.location.pathname}?${j.toString()}`:window.location.pathname;window.history.replaceState({},"",T)}t()},[t]),A.useEffect(()=>{if(e==="authenticated"){const j=Iu();k(j),(!window.location.hash||window.location.hash==="#")&&(window.location.hash=`/${j}`)}},[e,k]),A.useEffect(()=>$f(U=>{k(U)}),[k]),A.useEffect(()=>{if(e==="authenticated"){const j=Rt()||void 0;s({token:j,continue:!0})}},[e,s]),A.useEffect(()=>{document.documentElement.lang=h,document.title=a?`${a} - CodeBuddy Code`:m("page.title")},[h,m,a]),e==="loading")return i.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsx(et,{size:"large",text:m("app.connecting")})})});if(e==="login")return i.jsx(Kb,{});const B=()=>{if(r==="connecting")return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsx(et,{size:"large",text:m("app.connecting")})});if(r!=="connected"&&_!=="settings"&&_!=="docs")return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-secondary mb-4 font-medium",children:m("app.connectFailed")}),i.jsx("button",{onClick:()=>s(),className:["px-6 py-2.5 bg-accent-brand text-white rounded-full","text-sm font-medium transition-all hover:bg-accent-brand/90","hover:scale-105 active:scale-95 shadow-sm"].join(" "),children:m("app.retry")})]})});switch(_){case"chat":return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex-1 overflow-hidden w-full relative",children:l?i.jsx(iy,{}):i.jsx(vf,{onClickCloseBottomSheet:()=>d(!1)})}),i.jsx(dy,{}),i.jsx("div",{className:"flex-none bg-bg-primary",children:i.jsx(qb,{onNavigate:N,onNewChat:R,onHistory:()=>p(!0),mainView:_,showBottomSheet:f,setShowBottomSheet:d})})]});case"tasks":return i.jsx(Wu,{});case"plugins":return i.jsx(zu,{});case"terminal":return null;case"instances":return i.jsx(Uu,{});case"remote-control":return i.jsx(Yb,{onNavigate:N});case"editor":return i.jsx(tb,{onMenuClick:()=>S(j=>!j)});case"changes":return i.jsx(Zd,{onMenuClick:()=>S(j=>!j)});case"settings":return i.jsx(Gu,{});case"docs":return i.jsx(Qc,{});default:return null}};return _==="docs"&&window.location.hash.includes("standalone")?i.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:i.jsx(Qc,{})}):i.jsxs("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:[i.jsx(ty,{isOpen:b,onClose:()=>S(!1),mainView:_,onNavigate:N}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 relative transition-all duration-300 h-full",children:[_!=="editor"&&_!=="changes"&&i.jsx(ry,{onMenuClick:()=>S(j=>!j),onNewChat:R,onSplitTerminal:I,onHistory:()=>p(!0),hasHistory:E}),i.jsxs("div",{className:"flex-1 flex flex-col w-full overflow-hidden relative",children:[i.jsx("div",{className:"flex-1 flex flex-col w-full",style:{display:_==="terminal"?"flex":"none"},children:i.jsx(Vu,{})}),_!=="terminal"&&B()]}),i.jsx(nb,{isOpen:v,onClose:()=>p(!1),onSwitchSession:F})]})]})}gp.createRoot(document.getElementById("root")).render(i.jsx(A.StrictMode,{children:i.jsx(uy,{})}));