티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[83193],{13083:(e,i,t)=>{function l(e){return`line-${e}`}function n(e,i,t){return`${e}${“left”===i?”L”:”R”}${t}`}function r(e){return”DELETION”===e?”left”:”right”}function a(e,i=!1,t=!1){if(t)return”var(–bgColor-attention-muted, var(–color-attention-subtle))”;switch(e){case”ADDITION”:return i?”var(–diffBlob-additionNum-bgColor, var(–diffBlob-addition-bgColor-num))”:”var(–diffBlob-additionLine-bgColor, var(–diffBlob-addition-bgColor-line))”;case”DELETION”:return i?”var(–diffBlob-deletionNum-bgColor, var(–diffBlob-deletion-bgColor-num))”:”var(–diffBlob-deletionLine-bgColor, var(–diffBlob-deletion-bgColor-line))”;case”HUNK”:return i?”var(–diffBlob-hunkNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-hunkLine-bgColor, var(–bgColor-accent-muted))”;case”EMPTY”:return i?”var(–diffBlob-emptyNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-emptyLine-bgColor, var(–bgColor-accent-muted))”;default:return}}function s(e){let i=0;if(e)for(let t of e)i=Math.max(i,t?.left??0,t?.right??0);return Math.max(8*i.toString().length+20,40).toString()}t.d(i,{IQ:()=>n,Sq:()=>l,XU:()=>r,c7:()=>s,gK:()=>a})},19976:(e,i,t)=>{t.d(i,{Jg:()=>c,nq:()=>f,uP:()=>h.u,zl:()=>u.z,$e:()=>x,P3:()=>p,wj:()=>g,l4:()=>D,Qe:()=>b,Ah:()=>L});var l=t(74848),n=t(16522),r=t(34164),a=t(73017),s=t(13083);let o=e=>{let i,t,o,d,c,f,h,u,m,p,y=(0,n.c)(34),{dragging:x,isHighlighted:g,isLeftColumn:b,colSpan:j,line:N,lineAnchor:_}=e,v=N.html,D=””;if([“ADDITION”,”DELETION”].includes(N.type)&&[“+”,”-“].includes(v[0])){let e;D=v[0],y[0]!==v?(e=v.slice(1),y[0]=v,y[1]=e):e=y[1],v=e}let C=x&&g,T=b&&”HUNK”!==N.type;y[2]!==C||y[3]!==T?(i=(0,r.$)(“diff-text-cell”,{“border-left color-border-accent-emphasis”:C,”border-right”:T}),y[2]=C,y[3]=T,y[4]=i):i=y[4],y[5]!==_?(t=_?(0,s.Sq)(_):void 0,y[5]=_,y[6]=t):t=y[6],y[7]!==g||y[8]!==N.type?(o=(0,s.gK)(N.type,!1,g),y[7]=g,y[8]=N.type,y[9]=o):o=y[9],y[10]!==o?(d={backgroundColor:o},y[10]=o,y[11]=d):d=y[11];let L=D,S=”ADDITION”===N.type,I=”DELETION”===N.type;y[12]!==S||y[13]!==I?(c=(0,r.$)(“diff-text syntax-highlighted-line”,{addition:S,deletion:I}),y[12]=S,y[13]=I,y[14]=c):c=y[14];let $=e.lineChild,w=”HUNK”===N.type;y[15]!==w?(f=(0,r.$)(“diff-text-inner”,{“color-fg-muted”:w}),y[15]=w,y[16]=f):f=y[16];let E=”CONTEXT”===N.type?”-7px”:void 0;return y[17]!==E?(h={marginLeft:E},y[17]=E,y[18]=h):h=y[18],y[19]!==v||y[20]!==f||y[21]!==h?(u=(0,l.jsx)(a.$6,{className:f,html:v,style:h}),y[19]=v,y[20]=f,y[21]=h,y[22]=u):u=y[22],y[23]!==D||y[24]!==e.lineChild||y[25]!==u||y[26]!==c?(m=(0,l.jsxs)(“code”,{“data-code-marker”:L,className:c,children:[$,u]}),y[23]=D,y[24]=e.lineChild,y[25]=u,y[26]=c,y[27]=m):m=y[27],y[28]!==j||y[29]!==m||y[30]!==i||y[31]!==t||y[32]!==d?(p=(0,l.jsx)(“td”,{className:i,colSpan:j,id:t,style:d,children:m}),y[28]=j,y[29]=m,y[30]=i,y[31]=t,y[32]=d,y[33]=p):p=y[33],p};try{o.displayName||(o.displayName=”DiffText”)}catch{}let d=e=>{let i,t,a,o,d,c,f,h,u,m,p,y,x,g=(0,n.c)(30);g[0]!==e?({ariaLabel:i,children:t,hasExpanderButton:o,lineType:f,colSpan:a,interactiveProps:d,isHighlighted:c,…h}=e,g[0]=e,g[1]=i,g[2]=t,g[3]=a,g[4]=o,g[5]=d,g[6]=c,g[7]=f,g[8]=h):(i=g[1],t=g[2],a=g[3],o=g[4],d=g[5],c=g[6],f=g[7],h=g[8]),g[9]!==t?(u=(0,l.jsx)(“code”,{className:”pr-2″,children:t}),g[9]=t,g[10]=u):u=g[10];let b=u;if(d){let e;g[11]!==i||g[12]!==d||g[13]!==b?(e=(0,l.jsx)(“button”,{className:”diff-line-number-button”,…d,”aria-label”:i,children:b}),g[11]=i,g[12]=d,g[13]=b,g[14]=e):e=g[14],b=e}let j=d?void 0:i,N=!!d;g[15]!==o||g[16]!==N?(m=(0,r.$)(“diff-line-number”,{“has-expander”:o,clickable:N}),g[15]=o,g[16]=N,g[17]=m):m=g[17];let _=a||1;return g[18]!==c||g[19]!==f?(p=(0,s.gK)(f,!0,c),g[18]=c,g[19]=f,g[20]=p):p=g[20],g[21]!==p?(y={backgroundColor:p},g[21]=p,g[22]=y):y=g[22],g[23]!==h||g[24]!==j||g[25]!==m||g[26]!==_||g[27]!==y||g[28]!==b?(x=(0,l.jsx)(“td”,{“aria-label”:j,”data-line-number”:!0,className:m,colSpan:_,style:y,…h,children:b}),g[23]=h,g[24]=j,g[25]=m,g[26]=_,g[27]=y,g[28]=b,g[29]=x):x=g[29],x};try{d.displayName||(d.displayName=”LineNumber”)}catch{}let c=e=>{let i,t,r,a,s=(0,n.c)(28),{dragging:c,isHighlighted:f,isLeftColumn:h,isSplit:u,lineAnchor:m,line:p,lineChild:y,onLineNumberClick:x}=e,g=”CONTEXT”===p.type||”INJECTED_CONTEXT”===p.type,b=”ADDITION”!==p.type,j=b||!u,N=”DELETION”!==p.type,_=N&&!g||!u,v=u&&g?h?p.left:p.right:p.left;return s[0]!==v||s[1]!==f||s[2]!==p.left||s[3]!==p.right||s[4]!==p.type||s[5]!==x||s[6]!==b||s[7]!==j?(i=j&&(0,l.jsx)(d,{ariaLabel:`Line ${b?p.left?.toString():p.right?.toString()}`,lineType:p.type,interactiveProps:x?{onClick:x}:null,isHighlighted:f,children:b&&v}),s[0]=v,s[1]=f,s[2]=p.left,s[3]=p.right,s[4]=p.type,s[5]=x,s[6]=b,s[7]=j,s[8]=i):i=s[8],s[9]!==f||s[10]!==p.left||s[11]!==p.right||s[12]!==p.type||s[13]!==x||s[14]!==N||s[15]!==_?(t=_&&(0,l.jsx)(d,{ariaLabel:`Line ${N?p.right?.toString():p.left?.toString()}`,lineType:p.type,interactiveProps:x?{onClick:x}:null,isHighlighted:f,children:N&&p.right}),s[9]=f,s[10]=p.left,s[11]=p.right,s[12]=p.type,s[13]=x,s[14]=N,s[15]=_,s[16]=t):t=s[16],s[17]!==c||s[18]!==f||s[19]!==h||s[20]!==p||s[21]!==m||s[22]!==y?(r=(0,l.jsx)(o,{dragging:c,isHighlighted:f,isLeftColumn:h,line:p,lineAnchor:m,lineChild:y}),s[17]=c,s[18]=f,s[19]=h,s[20]=p,s[21]=m,s[22]=y,s[23]=r):r=s[23],s[24]!==i||s[25]!==t||s[26]!==r?(a=(0,l.jsxs)(l.Fragment,{children:[i,t,r]}),s[24]=i,s[25]=t,s[26]=r,s[27]=a):a=s[27],a};try{c.displayName||(c.displayName=”DiffLinePart”)}catch{}function f(){let e,i,t=(0,n.c)(2);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,l.jsxs)(“clipPath”,{id:”diff-placeholder”,children:[(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”67.0175439″,x:”0″,y:”0″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”100.701754″,x:”18.9473684″,y:”47.7194983″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”37.8947368″,x:”0″,y:”71.930126″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”53.3333333″,x:”127.017544″,y:”48.0703769″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”72.9824561″,x:”187.719298″,y:”48.0703769″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”140.350877″,x:”76.8421053″,y:”0″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”140.350877″,x:”17.8947368″,y:”23.8597491″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”173.684211″,x:”166.315789″,y:”23.8597491″})]}),t[0]=e):e=t[0],t[1]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(“svg”,{“aria-hidden”:”true”,version:”1.1″,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,className:”DiffPlaceholder-module__DiffPlaceholderSVG–zRrf1″,children:(0,l.jsxs)(“defs”,{children:[e,(0,l.jsxs)(“linearGradient”,{id:”animated-diff-gradient”,spreadMethod:”reflect”,x1:”0″,x2:”0″,y1:”0″,y2:”1″,children:[(0,l.jsx)(“stop”,{offset:”0″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”0.2″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”0.5″,stopColor:”#ddd”}),(0,l.jsx)(“stop”,{offset:”0.8″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”1″,stopColor:”#eee”}),(0,l.jsx)(“animateTransform”,{attributeName:”y1″,dur:”1s”,repeatCount:”3″,values:”0%; 100%; 0″}),(0,l.jsx)(“animateTransform”,{attributeName:”y2″,dur:”1s”,repeatCount:”3″,values:”100%; 200%; 0″})]})]})}),t[1]=i):i=t[1],i}try{f.displayName||(f.displayName=”DiffPlaceholder”)}catch{}var h=t(88098),u=t(91618),m=t(38621);function p(e){let i,t,r,a=(0,n.c)(10),{currentLine:s,hunkButton:c,isLeftColumn:f,isSplit:h}=e;if(h&&!f)return null;a[0]!==s.type||a[1]!==c||a[2]!==h?(i=c?(0,l.jsx)(d,{colSpan:h?1:2,hasExpanderButton:!0,lineType:s.type,children:c}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{lineType:s.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),!h&&(0,l.jsx)(d,{lineType:s.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})})]}),a[0]=s.type,a[1]=c,a[2]=h,a[3]=i):i=a[3];let u=h?3:void 0;return a[4]!==s||a[5]!==u?(t=(0,l.jsx)(o,{isHighlighted:!1,isLeftColumn:!0,colSpan:u,line:s}),a[4]=s,a[5]=u,a[6]=t):t=a[6],a[7]!==i||a[8]!==t?(r=(0,l.jsxs)(l.Fragment,{children:[i,t]}),a[7]=i,a[8]=t,a[9]=r):r=a[9],r}try{p.displayName||(p.displayName=”HunkHeaderDiffLine”)}catch{}function y(){let e,i=(0,n.c)(1);return i[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,l.jsx)(“div”,{className:”hunk-kebab-icon pr-2 pb-1″,children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),i[0]=e):e=i[0],e}try{y.displayName||(y.displayName=”HunkKebabIcon”)}catch{}function x(e){let i,t,a,s=(0,n.c)(5),{isLeftColumn:o}=e;return s[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(d,{lineType:”EMPTY”}),s[0]=i):i=s[0],s[1]!==o?(t=(0,r.$)(“empty-diff-line”,{“border-right”:o}),s[1]=o,s[2]=t):t=s[2],s[3]!==t?(a=(0,l.jsxs)(l.Fragment,{children:[i,(0,l.jsx)(“td”,{className:t,colSpan:1})]}),s[3]=t,s[4]=a):a=s[4],a}try{x.displayName||(x.displayName=”EmptyDiffLine”)}catch{}function g(e){let i,t,r,a,s,o,d,c,f=(0,n.c)(15);return f[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(“thead”,{className:”sr-only”,children:(0,l.jsxs)(“tr”,{children:[(0,l.jsx)(“th”,{scope:”col”,children:”Original file line number”}),(0,l.jsx)(“th”,{scope:”col”,children:”Original file line”}),(0,l.jsx)(“th”,{scope:”col”,children:”Diff line number”}),(0,l.jsx)(“th”,{scope:”col”,children:”Diff line change”})]})}),f[0]=i):i=f[0],f[1]!==e.lineWidth?(t=(0,l.jsx)(“col”,{width:e.lineWidth}),f[1]=e.lineWidth,f[2]=t):t=f[2],f[3]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,l.jsx)(“col”,{}),f[3]=r):r=f[3],f[4]!==e.lineWidth?(a=(0,l.jsx)(“col”,{width:e.lineWidth}),f[4]=e.lineWidth,f[5]=a):a=f[5],f[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,l.jsx)(“col”,{}),f[6]=s):s=f[6],f[7]!==t||f[8]!==a?(o=(0,l.jsxs)(“colgroup”,{children:[t,r,a,s]}),f[7]=t,f[8]=a,f[9]=o):o=f[9],f[10]!==e.children?(d=(0,l.jsx)(“tbody”,{children:e.children}),f[10]=e.children,f[11]=d):d=f[11],f[12]!==o||f[13]!==d?(c=(0,l.jsxs)(l.Fragment,{children:[i,o,d]}),f[12]=o,f[13]=d,f[14]=c):c=f[14],c}try{g.displayName||(g.displayName=”SplitDiffTable”)}catch{}function b(e){let i,t,r,a,s,o,d,c,f,h,u=(0,n.c)(24),m=e.showLineNumbers??!0;return u[0]!==m?(i=m&&(0,l.jsx)(“th”,{scope:”col”,children:”Original file line number”}),u[0]=m,u[1]=i):i=u[1],u[2]!==m?(t=m&&(0,l.jsx)(“th”,{scope:”col”,children:”Diff line number”}),u[2]=m,u[3]=t):t=u[3],u[4]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,l.jsx)(“th”,{scope:”col”,children:”Diff line change”}),u[4]=r):r=u[4],u[5]!==i||u[6]!==t?(a=(0,l.jsx)(“thead”,{className:”sr-only”,children:(0,l.jsxs)(“tr”,{children:[i,t,r]})}),u[5]=i,u[6]=t,u[7]=a):a=u[7],u[8]!==e.lineWidth||u[9]!==m?(s=m&&(0,l.jsx)(“col”,{width:e.lineWidth}),u[8]=e.lineWidth,u[9]=m,u[10]=s):s=u[10],u[11]!==e.lineWidth||u[12]!==m?(o=m&&(0,l.jsx)(“col”,{width:e.lineWidth}),u[11]=e.lineWidth,u[12]=m,u[13]=o):o=u[13],u[14]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,l.jsx)(“col”,{width:”100%”}),u[14]=d):d=u[14],u[15]!==s||u[16]!==o?(c=(0,l.jsxs)(“colgroup”,{children:[s,o,d]}),u[15]=s,u[16]=o,u[17]=c):c=u[17],u[18]!==e.children?(f=(0,l.jsx)(“tbody”,{children:e.children}),u[18]=e.children,u[19]=f):f=u[19],u[20]!==a||u[21]!==c||u[22]!==f?(h=(0,l.jsxs)(l.Fragment,{children:[a,c,f]}),u[20]=a,u[21]=c,u[22]=f,u[23]=h):h=u[23],h}try{b.displayName||(b.displayName=”UnifiedDiffTable”)}catch{}let j=”UnifiedDiffLines-module__diffTextInner–z42oB”;function N(e){let i,t,r,a,o=(0,n.c)(9),{line:d,children:c}=e;return o[0]!==d.type?(i=(0,s.gK)(d.type,!0),o[0]=d.type,o[1]=i):i=o[1],o[2]!==i?(t={backgroundColor:i,textAlign:”center”},o[2]=i,o[3]=t):t=o[3],o[4]!==c?(r=(0,l.jsx)(“code”,{children:c}),o[4]=c,o[5]=r):r=o[5],o[6]!==t||o[7]!==r?(a=(0,l.jsx)(“td”,{className:”UnifiedDiffLines-module__diffLineNumber–Ls6hS”,style:t,children:r}),o[6]=t,o[7]=r,o[8]=a):a=o[8],a}function _(e){let i,t,s,o,d=(0,n.c)(7),{line:c,showLineNumbers:f}=e,h=f?4:2;d[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(y,{}),d[0]=i):i=d[0],d[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,r.$)(j,”color-fg-muted”),d[1]=t):t=d[1];let u=c.html;return d[2]!==u?(s=(0,l.jsxs)(“div”,{className:”d-flex flex-row”,children:[i,(0,l.jsx)(“code”,{className:”UnifiedDiffLines-module__diffHunkText–nwvt0″,children:(0,l.jsx)(a.$6,{className:t,html:u})})]}),d[2]=u,d[3]=s):s=d[3],d[4]!==h||d[5]!==s?(o=(0,l.jsx)(“td”,{colSpan:h,className:”UnifiedDiffLines-module__diffHunkCell–PwOTu”,valign:”top”,children:s}),d[4]=h,d[5]=s,d[6]=o):o=d[6],o}function v(e){let i,t,o,d=(0,n.c)(15),{line:c,showLineNumbers:f}=e,h=”HUNK”===c.type,u=”ADDITION”!==c.type,m=”DELETION”!==c.type,p=”ADDITION”===c.type?”+”:”DELETION”===c.type?”-“:void 0,y=!!p;return d[0]!==h||d[1]!==c||d[2]!==f?(i=h&&(0,l.jsx)(_,{line:c,showLineNumbers:f}),d[0]=h,d[1]=c,d[2]=f,d[3]=i):i=d[3],d[4]!==h||d[5]!==c||d[6]!==p||d[7]!==u||d[8]!==y||d[9]!==f||d[10]!==m?(t=!h&&(0,l.jsxs)(l.Fragment,{children:[f&&(0,l.jsx)(N,{line:c,children:u&&c.left}),f&&(0,l.jsx)(N,{line:c,children:m&&c.right}),(0,l.jsx)(“td”,{className:”UnifiedDiffLines-module__diffTextCell–y7sIw”,style:{backgroundColor:(0,s.gK)(c.type,!1)},children:(0,l.jsxs)(“code”,{className:(0,r.$)(“ADDITION”===c.type&&”UnifiedDiffLines-module__syntaxHighlightedAdditionLine–GBB6F”,”DELETION”===c.type&&”UnifiedDiffLines-module__syntaxHighlightedDeletionLine–mmCob”),children:[y&&(0,l.jsx)(“span”,{className:”UnifiedDiffLines-module__diffTextMarker–XE3qq”,children:p}),(0,l.jsx)(a.$6,{className:j,html:c.html,style:{backgroundColor:(0,s.gK)(c.type,!1)}})]})})]}),d[4]=h,d[5]=c,d[6]=p,d[7]=u,d[8]=y,d[9]=f,d[10]=m,d[11]=t):t=d[11],d[12]!==i||d[13]!==t?(o=(0,l.jsxs)(“tr”,{children:[i,t]}),d[12]=i,d[13]=t,d[14]=o):o=d[14],o}function D(e){let i,t,a,s,o,d=(0,n.c)(19),{className:c,lines:f,lineWidth:h,tabSize:u}=e;d[0]!==f?(i=f.some(C),d[0]=f,d[1]=i):i=d[1];let m=i;if(d[2]!==m||d[3]!==f||d[4]!==u){let e;d[6]!==m||d[7]!==u?(e=(e,i)=>(0,l.jsx)(v,{line:e,tabSize:u,showLineNumbers:m},i),d[6]=m,d[7]=u,d[8]=e):e=d[8],t=f.map(e),d[2]=m,d[3]=f,d[4]=u,d[5]=t}else t=d[5];let p=t;return d[9]!==c?(a=(0,r.$)(“UnifiedDiffLines-module__unifiedDiffLines–UDm5a”,c,”tab-size”),d[9]=c,d[10]=a):a=d[10],d[11]!==p||d[12]!==m||d[13]!==h?(s=(0,l.jsx)(b,{lineWidth:h,showLineNumbers:m,children:p}),d[11]=p,d[12]=m,d[13]=h,d[14]=s):s=d[14],d[15]!==a||d[16]!==s||d[17]!==u?(o=(0,l.jsx)(“table”,{className:a,”data-tab-size”:u,children:s}),d[15]=a,d[16]=s,d[17]=u,d[18]=o):o=d[18],o}function C(e){return null!==e.left||null!==e.right}try{N.displayName||(N.displayName=”LineNumberCell”)}catch{}try{_.displayName||(_.displayName=”HunkCell”)}catch{}try{v.displayName||(v.displayName=”UnifiedDiffRow”)}catch{}try{D.displayName||(D.displayName=”UnifiedDiffLines”)}catch{}function T(e){return”LEFT”===e?”-“:”RIGHT”===e?”+”:””}function L({startDiffSide:e,endDiffSide:i,originalStartLine:t,originalEndLine:l}){return e&&i&&”number”==typeof t&&”number”==typeof l?0===t&&1===l&&e===i?”-1 to +1″:e===i&&t===l?`${T(e)}${t}`:`${T(e)}${t} to ${T(i)}${l}`:””}},40064:(e,i,t)=>{t.d(i,{V:()=>h});var l=t(74848),n=t(96540),r=t(43258),a=t(38621),s=t(52870),o=t(56149);let d={info:””,success:”Toast–success”,error:”Toast–error”},c={info:(0,l.jsx)(a.InfoIcon,{}),success:(0,l.jsx)(a.CheckIcon,{}),error:(0,l.jsx)(a.StopIcon,{})},f=({message:e,timeToLive:i,icon:t,type:r=”info”,role:a=”log”})=>{let[f,h]=n.useState(!0),{safeSetTimeout:u}=(0,s.A)();return(0,n.useEffect)(()=>{i&&u(()=>h(!1),i-300)},[u,i]),(0,l.jsx)(o.ZL,{children:(0,l.jsx)(“div”,{className:”p-1 position-fixed bottom-0 left-0 mb-3 ml-3″,children:(0,l.jsxs)(“div”,{className:`Toast ${d[r]} ${f?”Toast–animateIn”:”Toast–animateOut”}`,id:”ui-app-toast”,”data-testid”:`ui-app-toast-${r}`,role:a,children:[(0,l.jsx)(“span”,{className:”Toast-icon”,children:t||c[r]}),(0,l.jsx)(“span”,{className:”Toast-content”,children:e})]})})})};try{f.displayName||(f.displayName=”Toast”)}catch{}function h(){let{toasts:e,persistedToast:i}=(0,n.use)(r.T8);return(0,l.jsxs)(l.Fragment,{children:[e.map((e,i)=>(0,l.jsx)(f,{message:e.message,icon:e.icon,timeToLive:r.Qn,type:e.type,role:e.role},i)),i&&(0,l.jsx)(f,{message:i.message,icon:i.icon,type:i.type,role:i.role})]})}try{h.displayName||(h.displayName=”Toasts”)}catch{}},57224:(e,i,t)=>{t.d(i,{y:()=>a});var l=t(74848),n=t(16522),r=t(49936);function a(e){let i,t,a=(0,n.c)(7),{children:s,appName:o,category:d,metadata:c}=e;a[0]!==o||a[1]!==d||a[2]!==c?(i={appName:o,category:d,metadata:c},a[0]=o,a[1]=d,a[2]=c,a[3]=i):i=a[3];let f=i;return a[4]!==s||a[5]!==f?(t=(0,l.jsx)(r.I,{value:f,children:s}),a[4]=s,a[5]=f,a[6]=t):t=a[6],t}try{a.displayName||(a.displayName=”AnalyticsProvider”)}catch{}},76143:(e,i,t)=>{t.d(i,{D:()=>r,Y:()=>a});var l=t(4559),n=t(71315);function r(e){if(!n.XC)return;let i=n.XC.querySelector(“title”),t=n.XC.createElement(“title”);t.textContent=e,i?i.textContent!==e&&(i.replaceWith(t),(0,l.i)(e)):(n.XC.head.appendChild(t),(0,l.i)(e))}function a(e){return document.body.classList.contains(“logged-out”)?`${e} \xb7 GitHub`:e}},88098:(e,i,t)=>{t.d(i,{u:()=>s});var l=t(74848),n=t(16522),r=t(34164);let a={diffSquare:”DiffSquares-module__diffSquare–KZMTU”,addition:”DiffSquares-module__addition–kxGde”,deletion:”DiffSquares-module__deletion–vyEtU”,neutral:”DiffSquares-module__neutral–_tGgY”};function s(e){let i,t,r=(0,n.c)(4),{squares:a}=e;return r[0]!==a?(i=a.map(o),r[0]=a,r[1]=i):i=r[1],r[2]!==i?(t=(0,l.jsx)(“div”,{className:”d-flex”,children:i}),r[2]=i,r[3]=t):t=r[3],t}function o(e,i){return(0,l.jsx)(“div”,{“data-testid”:`${e} diffstat`,className:(0,r.$)(a.diffSquare,a[e])},i)}try{s.displayName||(s.displayName=”DiffSquares”)}catch{}},91618:(e,i,t)=>{t.d(i,{z:()=>a});var l=t(74848),n=t(16522),r=t(88098);function a(e){let i,t,a,s,o,d,c,f=(0,n.c)(21),{linesAdded:h,linesDeleted:u,linesChanged:m,hideSquares:p}=e,y=void 0===h?0:h,x=void 0===u?0:u,g=void 0===m?0:m,b=void 0!==p&&p;if(!y&&!x&&!g||0===g)return null;if(f[0]!==y||f[1]!==g||f[2]!==x){var j,N,_;let e,t,l,{greenSquares:n,redSquares:r,graySquares:a}=(j=y,N=x,t=Math.floor(j*(e=(_=g)>5?5/_:1)),{greenSquares:t,redSquares:l=Math.floor(N*e),graySquares:5-t-l});i=[…Array(n).fill(“addition”),…Array(r).fill(“deletion”),…Array(a).fill(“neutral”)],f[0]=y,f[1]=g,f[2]=x,f[3]=i}else i=f[3];let v=i;return f[4]!==y?(t=y>0&&(0,l.jsxs)(“span”,{“aria-hidden”:”true”,className:”f6 text-bold fgColor-success”,children:[“+”,y.toLocaleString()]}),f[4]=y,f[5]=t):t=f[5],f[6]!==x?(a=x>0&&(0,l.jsxs)(“span”,{“aria-hidden”:”true”,className:”f6 text-bold fgColor-danger”,children:[“-“,x.toLocaleString()]}),f[6]=x,f[7]=a):a=f[7],f[8]!==y||f[9]!==x?(s=function({linesAdded:e,linesDeleted:i}){let t=”Lines changed: “;return t+`${e} ${1===e?”addition”:”additions”} & ${i} ${1===i?”deletion”:”deletions”}`}({linesAdded:y,linesDeleted:x}),f[8]=y,f[9]=x,f[10]=s):s=f[10],f[11]!==s?(o=(0,l.jsx)(“span”,{className:”sr-only”,children:s}),f[11]=s,f[12]=o):o=f[12],f[13]!==b||f[14]!==v?(d=!b&&(0,l.jsx)(r.u,{squares:v}),f[13]=b,f[14]=v,f[15]=d):d=f[15],f[16]!==d||f[17]!==t||f[18]!==a||f[19]!==o?(c=(0,l.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 pl-1″,children:[t,a,o,d]}),f[16]=d,f[17]=t,f[18]=a,f[19]=o,f[20]=c):c=f[20],c}try{a.displayName||(a.displayName=”DiffStats”)}catch{}},98091:(e,i,t)=>{t.d(i,{i:()=>o});var l=t(74848),n=t(16522),r=t(13083),a=t(19976),s=t(34164);function o(e){let i,t,o,d,c=(0,n.c)(12),{diffLines:f,tabSize:h,className:u,diffTableClassName:m}=e;if(!f||f.length<1)return null;c[0]!==f?(i=(0,r.c7)(f),c[0]=f,c[1]=i):i=c[1];let p=i;return c[2]!==u?(t=(0,s.$)("StaticUnifiedDiffPreview-module__StaticDiffPreview--d7JRB",u),c[2]=u,c[3]=t):t=c[3],c[4]!==f||c[5]!==m||c[6]!==p||c[7]!==h?(o=(0,l.jsx)(a.l4,{lineWidth:p,lines:f,tabSize:h,className:m}),c[4]=f,c[5]=m,c[6]=p,c[7]=h,c[8]=o):o=c[8],c[9]!==t||c[10]!==o?(d=(0,l.jsx)("div",{className:t,children:o}),c[9]=t,c[10]=o,c[11]=d):d=c[11],d}try{o.displayName||(o.displayName="StaticUnifiedDiffPreview")}catch{}}}]);
//# sourceMappingURL=83193-b0b222854236.js.map