1"use strict";(globalThis.webpackChunkwebsite=globalThis.webpackChunkwebsite||[]).push([[5588],{755245(e,n,t){t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>a,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"cli/commands/git/hooks/run","title":"atmos git hooks run","description":"Run a local Git hook command configured under git.hooks.","source":"@site/docs/cli/commands/git/hooks/run.mdx","sourceDirName":"cli/commands/git/hooks","slug":"/cli/commands/git/hooks/run","permalink":"/cli/commands/git/hooks/run","draft":false,"unlisted":false,"editUrl":"https://github.com/cloudposse/atmos/edit/main/website/docs/cli/commands/git/hooks/run.mdx","tags":[],"version":"current","frontMatter":{"title":"atmos git hooks run","sidebar_label":"run","sidebar_class_name":"command","id":"run","slug":"/cli/commands/git/hooks/run","description":"Run a local Git hook command configured under git.hooks."},"sidebar":"cli","previous":{"title":"install","permalink":"/cli/commands/git/hooks/install"},"next":{"title":"uninstall","permalink":"/cli/commands/git/hooks/uninstall"}}');var o=t(886070),s=t(845906),i=t(489513),c=t(178032);const a={title:"atmos git hooks run",sidebar_label:"run",sidebar_class_name:"command",id:"run",slug:"/cli/commands/git/hooks/run",description:"Run a local Git hook command configured under git.hooks."},l=void 0,d={},u=[{value:"Usage",id:"usage",level:2},{value:"Examples",id:"examples",level:2},{value:"Behavior",id:"behavior",level:2},{value:"Arguments",id:"arguments",level:2},{value:"Related",id:"related",level:2}];function h(e){const n={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A,{children:(0,o.jsxs)(n.p,{children:["Execute the command configured for a Git hook under ",(0,o.jsx)(n.a,{href:"/cli/configuration/git#local-git-hooks",children:(0,o.jsx)(n.code,{children:"git.hooks"})}),". This is what the ",(0,o.jsx)(n.code,{children:".git/hooks/*"})," shims installed by ",(0,o.jsx)(n.a,{href:"/cli/commands/git/hooks/install",children:(0,o.jsx)(n.code,{children:"atmos git hooks install"})})," invoke, but it can also be run directly \u2014 useful for testing a hook without triggering it through Git."]})}),"\n",(0,o.jsx)(i.A,{title:"atmos git hooks run --help",src:"/casts/screengrabs/atmos-git-hooks-run--help.cast",static:!0,chrome:!0}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-shell",children:"atmos git hooks run <hook-name> [args...]\n"})}),"\n",(0,o.jsx)(n.p,{children:"Given this configuration:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-yaml",children:'git:\n hooks:\n pre-commit:\n command: atmos workflow pre-commit\n commit-msg:\n command: atmos workflow commit-msg -- "$1"\n'})}),"\n",(0,o.jsx)(n.p,{children:"Git invokes the installed shim, which runs:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-shell",children:"atmos git hooks run commit-msg .git/COMMIT_EDITMSG\n"})}),"\n",(0,o.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-shell",children:"# Test a hook without committing\natmos git hooks run pre-commit\n\n# Run a hook that takes arguments (commit-msg receives the message file path)\natmos git hooks run commit-msg .git/COMMIT_EDITMSG\n"})}),"\n",(0,o.jsx)(n.h2,{id:"behavior",children:"Behavior"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Loads the Atmos configuration for the current repository and resolves ",(0,o.jsx)(n.code,{children:"git.hooks.<hook-name>.command"}),"."]}),"\n",(0,o.jsxs)(n.li,{children:["Executes the configured command through the shared workflow/command dispatch, inheriting toolchain ",(0,o.jsx)(n.code,{children:"PATH"}),", environment, and identity behavior."]}),"\n",(0,o.jsxs)(n.li,{children:["Forwards hook arguments ",(0,o.jsx)(n.strong,{children:"and stdin"})," \u2014 hooks such as ",(0,o.jsx)(n.code,{children:"pre-push"})," and ",(0,o.jsx)(n.code,{children:"pre-receive"})," receive their input on stdin, not argv."]}),"\n",(0,o.jsx)(n.li,{children:"Propagates the command's exit code, so a failing hook command blocks the Git operation exactly as a hand-written hook would."}),"\n",(0,o.jsxs)(n.li,{children:["Fails with a clear error listing the configured hooks when ",(0,o.jsx)(n.code,{children:"<hook-name>"})," is not configured under ",(0,o.jsx)(n.code,{children:"git.hooks"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"arguments",children:"Arguments"}),"\n",(0,o.jsxs)("dl",{children:[(0,o.jsxs)("dt",{children:[(0,o.jsx)(n.code,{children:"hook-name"})," ",(0,o.jsx)("em",{children:"(required)"})]}),(0,o.jsx)("dd",{children:(0,o.jsxs)(n.p,{children:["The Git hook to run, matching a key under ",(0,o.jsx)(n.code,{children:"git.hooks"})," (",(0,o.jsx)(n.code,{children:"pre-commit"}),", ",(0,o.jsx)(n.code,{children:"commit-msg"}),", ",(0,o.jsx)(n.code,{children:"pre-push"}),", ...)."]})}),(0,o.jsxs)("dt",{children:[(0,o.jsx)(n.code,{children:"args..."})," ",(0,o.jsx)("em",{children:"(optional)"})]}),(0,o.jsx)("dd",{children:(0,o.jsxs)(n.p,{children:["Arguments forwarded verbatim to the configured command \u2014 exactly what Git passes to the hook (for example, the commit message file path for ",(0,o.jsx)(n.code,{children:"commit-msg"}),"). Arguments are passed through even when they look like flags."]})})]}),"\n",(0,o.jsx)(n.h2,{id:"related",children:"Related"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.a,{href:"/cli/commands/git/hooks/install",children:(0,o.jsx)(n.code,{children:"atmos git hooks install"})})," \u2014 install the shims that call this command"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.a,{href:"/cli/configuration/workflows",children:"Workflows"})," \u2014 what hook commands typically invoke"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.a,{href:"/cli/configuration/git#local-git-hooks",children:"Git Configuration"})," \u2014 the ",(0,o.jsx)(n.code,{children:"git.hooks"})," section"]}),"\n"]})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},489513(e,n,t){t.d(n,{A:()=>h});
1var r=t(830758),o=t(913756);const s={plain:"plain_xIyQ",window:"window_X9dN",titlebar:"titlebar_DN7h",dots:"dots_R2sg",title:"title_Dael",screen:"screen__b5c",terminalCell:"terminalCell_UrRG",terminalBlock:"terminalBlock_Rdwr",drawnGlyph:"drawnGlyph_ETTf",noPreWrap:"noPreWrap_ImkX",screenLoading:"screenLoading_abuO","cast-skeleton-pulse":"cast-skeleton-pulse_OsMt",cursor:"cursor_BaFP","cursor-pulse":"cursor-pulse_UqWa",controls:"controls_eyLV",playButton:"playButton_kD9r",staticFrame:"staticFrame_nV_L",thumbnail:"thumbnail_pR85"},i=.6;const c="\ue000";function a(e,n){const t=e[n+1];if("]"===t){const t=e.indexOf("\x07",n+2),r=e.indexOf("\x1b\\",n+2),o=-1===t?r:-1===r?t:Math.min(t,r);return-1===o?null:{kind:"ignore",sequence:e.slice(n,o+(o===r?2:1)),nextIndex:o+(o===r?2:1)}}if("["!==t)return{kind:"ignore",sequence:e.slice(n,n+2),nextIndex:n+2};const r=/\x1b\[[0-?]*[ -/]*[@-~]/.exec(e.slice(n));if(!r||0!==r.index)return null;const o=r[0],s=o.at(-1);if("m"===s)return{kind:"sgr",sequence:o,nextIndex:n+o.length};if("\x1b[?25h"===o)return{kind:"cursorShow",sequence:o,nextIndex:n+o.length};if("\x1b[?25l"===o)return{kind:"cursorHide",sequence:o,nextIndex:n+o.length};if("K"===s)return{kind:"clearLine",sequence:o,nextIndex:n+o.length};if("J"===s){const e=o.slice(2,-1);if(""===e||"0"===e)return{kind:"clearDisplay",sequence:o,nextIndex:n+o.length}}if("A"===s||"B"===s){const e=o.slice(2,-1),t=""===e?1:parseInt(e,10)||1;return{kind:"cursorMove",sequence:o,nextIndex:n+o.length,delta:"A"===s?-t:t}}return{kind:"ignore",sequence:o,nextIndex:n+o.length}}function l(e){const n=/\x1b\[[0-?]*[ -/]*[@-~]$/.exec(e);return n?e.slice(0,n.index):e.slice(0,-1)}var d=t(886070);const u={"\u2500":"M0 1H2","\u2502":"M1 0V2","\u250c":"M1 2V1H2","\u2510":"M0 1H1V2","\u2514":"M1 0V1H2","\u2518":"M0 1H1V0","\u251c":"M1 0V2M1 1H2","\u2524":"M1 0V2M0 1H1","\u252c":"M0 1H2M1 1V2","\u2534":"M0 1H2M1 0V1","\u253c":"M0 1H2M1 0V2","\u256d":"M1 2V1.5Q1 1 1.5 1H2","\u256e":"M0 1H0.5Q1 1 1 1.5V2","\u2570":"M1 0V0.5Q1 1 1.5 1H2","\u256f":"M0 1H0.5Q1 1 1 0.5V0"};function h({src:e,command:n,title:t,chrome:c=!1,controls:a,scrubber:l=!0,autoplay:h=!0,loop:m=!0,loopDelay:f=5,speed:g=.6,maxScrollRate:p=.6,idleSkip:k=!0,thumbnail:j=!1,preWrap:b=!1,showCommand:_=!0,prompt:R="\x1b[1;38;2;0;95;135m>\x1b[0m ",typeRate:S=.035,enterDelay:$=.5,exitDelay:F=.6,static:A=!1,className:C}){const[E,I]=(0,r.useState)(80),[T,H]=(0,r.useState)([]),[G,V]=(0,r.useState)(""),[q,D]=(0,r.useState)(h),[O,W]=(0,r.useState)(t??"Atmos"),[B,P]=(0,r.useState)(0),L=(0,r.useRef)(),z=(0,r.useRef)(),Q=(0,r.useRef)(-1),[U,J]=(0,r.useState)(0),X=(0,r.useRef)(null),K=(0,r.useRef)(null),[Y,Z]=(0,r.useState)(!1);!function(e,n){(0,r.useEffect)(()=>{const t=e.current;if(!t||!Number.isFinite(n)||n<=0)return;const r=document.createElement("canvas").getContext("2d");if(!r)return;let o=!1;const s=()=>
1{if(o)return;t.style.removeProperty("font-size");const e=getComputedStyle(t),s=parseFloat(e.fontSize);r.font=`${e.fontStyle} ${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;const i=r.measureText("0").width,c=t.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight);if(c>0&&i>0){const e=Math.min(s,s*Math.max(0,c-1)/(n*i));t.style.fontSize=`${e}px`}};s();const i="undefined"==typeof ResizeObserver?null:new ResizeObserver(s);return i?.observe(t),window.addEventListener("resize",s),document.fonts?.ready.then(s),()=>{o=!0,i?.disconnect(),window.removeEventListener("resize",s),t.style.removeProperty("font-size")}},[e,n])}(X,E),(0,r.useEffect)(()=>{if("undefined"==typeof IntersectionObserver)return void Z(!0);const e=K.current;if(!e)return;const n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(Z(!0),n.disconnect())},{rootMargin:"300px 0px"});return n.observe(e),()=>n.disconnect()},[]),(0,r.useEffect)(()=>{if(!Y)return;let r=!1;return fetch(e,{cache:"no-store"}).then(e=>{if(!e.ok)throw new Error(`Failed to load cast: ${e.status}`);return e.text()}).then(e=>{if(r)return;const{header:o,events:s}=function(e){const n=e.trim().split("\n");let t;try{t=JSON.parse(n[0]||"{}")}catch{throw new Error("Malformed cast header")}let r=0;const o=n.slice(1).reduce((e,n)=>{if(!n.trim()||n.startsWith("#"))return e;let o;try{o=JSON.parse(n)}catch{throw new Error("Malformed cast event")}if(!Array.isArray(o)||3!==o.length)return e;const s=o[1],i=Number(o[0]);if(!Number.isFinite(i))return e;const c=3===t.version?r+i:i;if(r=3===t.version?c:r,"o"!==s&&"e"!==s)return e;const a="string"==typeof o[2]?o[2]:"";return""===a||e.push([c,s,a]),e},[]);return{header:t,events:o}}(e),i=o.term?.cols??o.width;I("number"==typeof i&&Number.isFinite(i)&&i>0?i:80);const c=function(e,n){const t=n.command?.trim();if(!n.enabled||!t)return e;if(function(e){const n=e.filter(e=>"o"===e[1]||"e"===e[1]).map(e=>e[2]).join("").trimStart();return(t=n,t.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g,"")).startsWith("> ");var t}(e))return e;const r=[[0,"o",n.prompt]];let o=Math.max(n.typeRate,.001);for(const l of t)r.push([o,"o",l]),o+=Math.max(n.typeRate,.001);o+=Math.max(n.enterDelay,0),r.push([o,"o","\n"]);const s=o+.05,i=e.map(e=>[e[0]+s,e[1],e[2]]),c=e.map(e=>e[2]).join(""),a=c.endsWith("\n")||""===c?n.prompt:`\n${n.prompt}`;return[...r,...i,[M(e)+s+Math.max(n.exitDelay,0),"o",a]]}(s.map(e=>{return[e[0],e[1],(n=e[2],n.replace(/\r\n/g,"\n"))];var n}),{command:n??o.command,enabled:_,prompt:R,typeRate:S,enterDelay:$,exitDelay:F}),a=function(e,n){if(n<=0||0===e.length)return e;let t=0,r=0;return e.map((e,o)=>{const s=0===o?e[0]:e[0]-t;return s>n&&(r+=s-n),t=e[0],[Math.max(0,e[0]-r),e[1],e[2]]})}(c,k?1.5:0),l=A?a.at(-1)?.[0]??0:0;H(a),W(t??o.title??o.command??"Atmos"),V(v(a,l)),P(l),Q.current=w(a,l),D(!A&&h),J(e=>e+1)}).catch(()=>{r||(H([]),W(t??"Atmos"),V(`Missing cast: ${e}`),P(0),Q.current=-1,D(!1),J(e=>e+1))}),()=>{r=!0}},[Y,e,n,t,_,R,S,$,F,k,h,A]);const ee=(0,r.useMemo)(()=>T.at(-1)?.[0]??0,[T]),ne=(0,r.useMemo)(()=>function(e=.6,n=.6){const t=Number.isFinite(e)?e:i,r=Number.isFinite(n)?n:i;return Math.max(.1,Math.min(t,r))}(g,p),[g,p]);(0,r.useEffect)(()=>{!A&&X.current&&(X.current.scrollTop=X.current.scrollHeight)},[G,A]),(0,r.useEffect)(()=>{if(window.cancelAnimationFrame(L.current??0),window.clearTimeout(z.current),A||!q||0===T.length)return;if(ee<=0||B>=ee)return void y(T,m,f,V,P,D,J,Q,z);const e=performance.now()-1e3*B/ne,n=t=>{const r=Math.min(ee,(t-e)/1e3*ne);P(r);const o=w(T,r);o!==Q.current&&(Q.current=o,V(v(T,r))),r>=ee?y(T,m,f,V,P,D,J,Q,z):L.current=window.requestAnimationFrame(n)};return L.current=window.requestAnimationFrame(n),()=>{window.cancelAnimationFrame(L.current??0),window.clearTimeout(z.current)}},[q,U,T,ee,ne,m,f,A]);const te=""===G,re=[s.screen,b?"":s.noPreWrap,te?s.screenLoading:""].filter(Boolean).join(" "),oe=(0,d.jsx)("pre",{className:re,ref:X,children:(se=G||" ",x(se).map((e,n)=>{return e.cursor?(0,d.jsx)("span",{className:s.cursor,"aria-hidden":"true"},n):(0,d.jsx)("span",{style:e.style,children:(t=e.text,t.split(/([\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u256d\u256e\u2570\u256f\u2588\u25cf\u25cb\u2800-\u28ff])/u).map((e,n)=>{const t=Object.hasOwn(u,e)?u[e]:void 0,r=function(e){const n=e.codePointAt(0);if(1!==e.length||n<10240||n>10495)return null;const t=n-10240;return[[.5,.5],[.5,1.5],[.5,2.5],[1.5,.5],[1.5,1.5],[1.5,2.5],[.5,3.5],[1.5,3.5]].filter((e,n
1)=>t&1<<n)}(e),o="\u2588"===e,i=t||o||null!==r;return i||/^[\u25cf\u25cb\u2800-\u28ff]$/u.test(e)?(0,d.jsxs)("span",{className:`${s.terminalCell}${o?` ${s.terminalBlock}`:""}`,children:[(0,d.jsx)("span",{className:i?s.drawnGlyph:void 0,children:e}),i&&!o&&(0,d.jsx)("svg",{viewBox:null!==r?"0 0 2 4":"0 0 2 2",preserveAspectRatio:"none","aria-hidden":"true",children:null!==r?r.map(([e,n],t)=>(0,d.jsx)("circle",{cx:e,cy:n,r:"0.3",fill:"currentColor"},t)):(0,d.jsx)("path",{d:t,fill:"none",stroke:"currentColor",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})})]},n):e}))},n);var t}))});var se;const ie=[c?s.window:s.plain,j?s.thumbnail:"",A?s.staticFrame:"",C||""].filter(Boolean).join(" "),ce=!A&&(a??!j);return(0,d.jsxs)("div",{className:ie,ref:K,children:[c&&(0,d.jsxs)("div",{className:s.titlebar,children:[(0,d.jsxs)("span",{className:s.dots,"aria-hidden":"true",children:[(0,d.jsx)("i",{}),(0,d.jsx)("i",{}),(0,d.jsx)("i",{})]}),(0,d.jsx)("span",{className:s.title,children:O})]}),oe,ce&&(0,d.jsxs)("div",{className:s.controls,children:[(0,d.jsx)("button",{type:"button",className:s.playButton,"aria-label":q?"Pause cast":"Play cast",onClick:()=>{q?D(!1):(ee>0&&B>=ee&&(V(v(T,0)),P(0),Q.current=w(T,0),J(e=>e+1)),D(!0))},children:q?(0,d.jsx)(o.FNz,{"aria-hidden":"true"}):(0,d.jsx)(o.V$0,{"aria-hidden":"true"})}),l&&(0,d.jsx)("input",{"aria-label":"Cast position",type:"range",min:0,max:ee||0,step:.01,value:B,onChange:e=>{const n=Number(e.currentTarget.value);P(n),V(v(T,n)),Q.current=w(T,n),J(e=>e+1)}}),(0,d.jsxs)("span",{children:[N(B)," / ",N(ee)]})]})]})}const m={30:"#111111",31:"#ff5f57",32:"#28c840",33:"#ffbd2e",34:"#6c73ff",35:"#d670d6",36:"#00d1b2",37:"#f5f5f5",90:"#666a73",91:"#ff8f87",92:"#6ee787",93:"#ffd866",94:"#9aa2ff",95:"#f0a6f0",96:"#55e7d0",97:"#ffffff"},f={40:"#111111",41:"#ff5f57",42:"#28c840",43:"#ffbd2e",44:"#6c73ff",45:"#d670d6",46:"#00d1b2",47:"#f5f5f5",100:"#3a3f4b",101:"#ff8f87",102:"#6ee787",103:"#ffd866",104:"#848cff",105:"#f0a6f0",106:"#55e7d0",107:"#ffffff"},g=["#000000","#800000","#008000","#808000","#000080","#800080","#008080","#c0c0c0","#808080","#ff0000","#00ff00","#ffff00","#0000ff","#ff00ff","#00ffff","#ffffff"];function x(e){const n=[],t=/\x1b\[([0-9;]*)m/g;let r,o=0,s={};const i=e=>{if(""===e)return;const t=e.split("\ue000");t.forEach((e,r)=>{""!==e&&n.push({text:e,style:{...s}}),r<t.length-1&&n.push({text:"",cursor:!0})})};for(;null!==(r=t.exec(e));)r.index>o&&i(e.slice(o,r.index)),s=p(s,r[1]),o=t.lastIndex;return o<e.length&&i(e.slice(o)),n}function p(e,n){const t=""===n?[0]:n.split(";").map(e=>Number(e));let r={...e};for(let o=0;o<t.length;o+=1){const e=t[o];if(0===e)r={};else if(1===e)r.fontWeight=700;else if(22===e)delete r.fontWeight;else if(39===e)delete r.color;else if(49===e)delete r.backgroundColor;else if(m[e])r.color=m[e];else if(f[e])r.backgroundColor=f[e];else if(38!==e&&48!==e||5!==t[o+1]||!Number.isFinite(t[o+2])){if((38===e||48===e)&&2===t[o+1]&&Number.isFinite(t[o+2])&&Number.isFinite(t[o+3])&&Number.isFinite(t[o+4])){const n=`rgb(${b(t[o+2])}, ${b(t[o+3])}, ${b(t[o+4])})`;38===e?r.color=n:r.backgroundColor=n,o+=4}}else{const n=k(t[o+2]);38===e?r.color=n:r.backgroundColor=n,o+=2}}return r}function k(e){if(e<16)return g[e]??"#ffffff";if(e>=16&&e<=231){const n=e-16,t=Math.floor(n/36),r=Math.floor(n%36/6),o=n%6;return`rgb(${j(t)}, ${j(r)}, ${j(o)})`}if(e>=232&&e<=255){const n=8+10*(e-232);return`rgb(${n}, ${n}, ${n})`}return"#ffffff"}function j(e){return 0===e?0:55+40*e}function b(e){return Math.max(0,Math.min(255,e))}function v(e,n){return function(e){const n=[""];let t=0,r=!1,o=!1,s=!0;const i=()=>n[t]??"",d=e=>{n[t]=e},u=()=>{d(i().split(c).join(""))},h=()=>{u(),o&&d(i()+c)},m=e=>{r?(f(),r=!1):s&&f(),s=!1,u(),d(i()+e),o&&d(i()+c)},f=()=>{d(""),o&&d(c)},g=()=>{u(),n.length=t+1,h()},x=e=>{u(),t=Math.max(0,t+e),void 0===n[t]&&(n[t]=""),s=!0,h()};for(let c=0;c<e.length;){const n=e[c];if("\x1b"===n){const n=a(e,c);if(!n){c+=1;continue}if("sgr"===n.kind)m(n.sequence);else if("clearLine"===n.kind){const e=n.sequence.slice(2,-1);(""===e||"0"===e)&&!s||f()}else"clearDisplay"===n.kind?g():"cursorShow"===n.kind?(o=!0,h()):"cursorHide"===n.kind?(o=!1,u()):"cursorMove"===n.kind&&(r=!1,x(n.delta));c=n.nextIndex;continue}
1"\r"!==n?"\n"!==n?"\b"!==n?(m(n),c+=1):(u(),d(l(i())),h(),c+=1):(r=!1,x(1),c+=1):(r=!0,c+=1)}return n.join("\n")}(e.filter(e=>e[0]<=n).map(e=>e[2]).join(""))}function w(e,n){let t=-1;for(const r of e){if(r[0]>n)break;t=r[0]}return t}function y(e,n,t,r,o,s,i,c,a){n?a.current=window.setTimeout(()=>{r(v(e,0)),o(0),c.current=w(e,0),i(e=>e+1)},1e3*t):s(!1)}function M(e){return e.at(-1)?.[0]??0}function N(e){const n=Math.max(0,e);return`${Math.floor(n/60).toString().padStart(2,"0")}:${Math.floor(n%60).toString().padStart(2,"0")}.${Math.floor(n%1*10)}`}},178032(e,n,t){t(830758);var r=t(886070);const o=({children:e})=>(0,r.jsx)("div",{className:"intro",children:e});t.d(n,["A",0,o])},845906(e,n,t){t.d(n,{R:()=>i,x:()=>c});var r=t(830758);const o={},s=r.createContext(o);function i(e){const n=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.