PageSourceSearch

https://diffs.com/_next/static/immutable/chunks/0c764_xm2hneq.js

js diffs.com collected 2026-10-03 23:01:45 UTC 42,876 bytes, 10 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67410,e=>{"use strict";var t=e.i(90026),n=e.i(48573),i=e.i(24055),o=e.i(48188),r=e.i(49417),l=e.i(39894),s=e.i(5652),a=e.i(26730),d=e.i(51964),c=e.i(36758),u=e.i(12543),f=e.i(20860),h=e.i(3217),p=e.i(8665),m=e.i(60600),x=e.i(75551),g=class extends x.DiffHunksRenderer{pendingConflictActions=[];pendingMarkerRows=[];injectedRows=new Map;options;constructor(e={theme:i.DEFAULT_THEMES},t,n,o){super(void 0,t,n,o),this.options=e}setConflictState(e,t,n){this.pendingConflictActions=e,this.pendingMarkerRows=t,this.syncInjectedRows(e,t,n)}syncInjectedRows(e,t,n){for(let t of(this.injectedRows.clear(),e)){let e=null!=t?(0,s.getMergeConflictActionAnchor)(t,n):void 0;if(null==t||null==e)continue;let i={type:"actions",hunkIndex:e.hunkIndex,lineIndex:e.lineIndex,conflictIndex:t.conflictIndex};this.addInjectedRow(i)}for(let e of t)this.addInjectedRow(e)}addInjectedRow(e){let t=`${e.hunkIndex}:${e.lineIndex}`,n=this.injectedRows.get(t);null==n?this.injectedRows.set(t,[e]):n.push(e)}renderDiff(e,t=i.DEFAULT_RENDER_RANGE){return null!=e&&this.syncInjectedRows(this.pendingConflictActions,this.pendingMarkerRows,e),super.renderDiff(e,t)}async asyncRender(e,t=i.DEFAULT_RENDER_RANGE){return this.syncInjectedRows(this.pendingConflictActions,this.pendingMarkerRows,e),super.asyncRender(e,t)}createPreElement(e,t){return super.createPreElement(e,t,{"data-has-merge-conflict":""})}getUnifiedLineDecoration({type:e,lineType:t}){let n="change"===e?"change-deletion"===t?"current":"incoming":void 0;return{gutterLineType:"change"===e?"context":t,gutterProperties:C(n),contentProperties:v(e,n)}}getSplitLineDecoration({side:e,type:t}){let n="change"===t?"deletions"===e?"current":"incoming":void 0;return{gutterLineType:"change"===t?"context":t,gutterProperties:C(n),contentProperties:v(t,n)}}getUnifiedInjectedRowsForLine=e=>{let t=this.injectedRows.get(`${e.hunkIndex}:${e.lineIndex}`);if(null==t||0===t.length)return;let{mergeConflictActionsType:n}=this.getOptionsWithDefaults(),i=[],o=[];for(let e of t){var r;if("actions"===e.type){i.push({content:function({row:e,includeDefaultActions:t,includeSlot:n}){var i;let o=t?[L({resolution:"current",label:"Accept current change",conflictIndex:i=e.conflictIndex}),I(),L({resolution:"incoming",label:"Accept incoming change",conflictIndex:i}),I(),L({resolution:"both",label:"Accept both",conflictIndex:i})]:[];return n&&o.push((0,m.createHastElement)({tagName:"slot",properties:{name:(0,p.getMergeConflictActionSlotName)({hunkIndex:e.hunkIndex,lineIndex:e.lineIndex,conflictIndex:e.conflictIndex}),"data-merge-conflict-action-slot":""}})),(0,m.createHastElement)({tagName:"div",properties:{"data-merge-conflict-actions":""},children:[(0,m.createHastElement)({tagName:"div",properties:{"data-merge-conflict-actions-content":""},children:o})]})}({row:e,includeDefaultActions:"default"===n,includeSlot:!0}),gutter:b("action")});continue}("marker-end"===e.type?o:i).push({content:(r=e,(0,m.createHastElement)({tagName:"div",properties:{"data-merge-conflict":r.type,"data-merge-conflict-marker-row":""},children:[(0,m.createTextNodeElement)(r.lineText.replace(/(?:\r\n|\n|\r)$/,""))]})),gutter:b("marker",e.type)})}return{before:i.length>0?i:void 0,after:o.length>0?o:void 0}};getOptionsWithDefaults(){let e=super.getOptionsWithDefaults();return e.diffStyle="unified",e.lineDiffType="none",e.mergeConflictActionsType=this.options.mergeConflictActionsType??"default",e}};function C(e){return null!=e?{"data-merge-conflict":e}:void 0}function v(e,t){if(null!=t){if("change"===e)return"current"===t||"incoming"===t?{"data-line-type":"context","data-merge-conflict":t}:void 0;if("marker-start"===t||"marker-base"===t||"marker-separator"===t||"marker-end"===t)return{"data-merge-conflict":t}}}function b(e,t){let n=(0,m.createGutterGap)(void 0,"annotation",1);return n.properties["data-gutter-buffer"]="action"===e?"merge-conflict-action":`merge-conflict-${t??"marker"}`,n}function L({resolution:e,label:t,conflictIndex:n}){return(0,m.createHastElement)({tagName:"button",properties:{type:"button","data-merge-conflict-action":e,"data-merge-conflict-conflict-index":`${n}`},children:[(0,m.createTextNodeElement)(t)]})}function I(){return(0,m.createHastElement)({tagName:"span",properties:{"data-merge-conflict-action-separator":""},children:[(0,m.createTextNodeElement)("|")]})}var k=e.i(39602),y=e.i(14461);let w=-1;var A=class extends h.FileDiff{options;__id=`unresolved-file:${++w}`;type="unresolved-file";computedCache={file:void 0,fileDiff:void 0,actions:void 0,markerRows:void 0};conflictActions=[];markerRows=[];conflictActionCache=new Map;constructor(e={theme:i.DEFAULT_THEMES},t,n=!1){super(void 0,t,n),this.options=e,this.setOptions(e)}setOptions(e){if(null!=e){if(null!=e.onMergeConflictAction&&null!=e.onMergeConflictResolve)throw Error("UnresolvedFile: onMergeConflictAction and onMergeConflictResolve are mutually exclusive. Use only one callback.");this.options=e,this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.syncInteractionOptions()}}syncInteractionOptions(){this.interactionManager.setOptions((0,a.pluckInteractionOptions)(this.options,"function"==typeof this.options.hunkSeparators||(this.options.hunkSeparators??"line-info")==="line-info"||"line-info-basic"===this.options.hunkSeparators?this.handleExpandHunk:void 0,this.getLineIndex,this.handleMergeConflictActionClick))}createHunksRenderer(e){return new g(this.getHunksRendererOptions(e),this.getAnnotationSlotName,this.handleHighlightRender,this.workerManager)}getHunksRendererOptions(e){var t;let n;return t=e,{...n={...this.options,...t},useTokenTransformer:(0,c.shouldUseTokenTransformer)(n),hunkSeparators:"function"==typeof t?.hunkSeparators?"custom"
1:t?.hunkSeparators,mergeConflictActionsType:"function"==typeof t?.mergeConflictActionsType?"custom":t?.mergeConflictActionsType}}applyPreNodeAttributes(e,t){super.applyPreNodeAttributes(e,t,{"data-has-merge-conflict":""})}cleanUp(){this.emitPostRender(!0),this.clearMergeConflictActionCache(),this.computedCache={file:void 0,fileDiff:void 0,actions:void 0,markerRows:void 0},this.conflictActions=[],super.cleanUp()}getOrComputeDiff({file:e,fileDiff:t,actions:n,markerRows:i}){let{maxContextLines:o,onMergeConflictAction:r}=this.options;e:if(null!=r){let r=null!=t;if(r!==(null!=n)||r!==(null!=i))throw Error("UnresolvedFile.getOrComputeDiff: fileDiff, actions, and markerRows must be passed together");if(null!=t&&null!=n&&null!=i){this.computedCache={file:e??this.computedCache.file,fileDiff:t,actions:n,markerRows:i};break e}if(null!=e||null!=this.computedCache.file){if(null!=e&&null!=this.computedCache.file&&!(0,u.areFilesEqual)(e,this.computedCache.file)&&null!=this.computedCache.fileDiff&&null!=this.computedCache.actions)throw Error("UnresolvedFile.getOrComputeDiff: file can only be used to initialize unresolved state once. Pass fileDiff and actions for subsequent updates.");if(null==(e??=this.computedCache.file))throw Error("UnresolvedFile.getOrComputeDiff: file is null, should be impossible");if(!(0,u.areFilesEqual)(e,this.computedCache.file)||null==this.computedCache.fileDiff||null==this.computedCache.actions){let t=(0,s.parseMergeConflictDiffFromFile)(e,o);this.computedCache={file:e,fileDiff:t.fileDiff,actions:t.actions,markerRows:t.markerRows}}t=this.computedCache.fileDiff,n=this.computedCache.actions,i=this.computedCache.markerRows;break e}t=this.computedCache.fileDiff,n=this.computedCache.actions,i=this.computedCache.markerRows;break e}else{if(null!=t||null!=n||null!=i)throw Error("UnresolvedFile.getOrComputeDiff: fileDiff, actions, and markerRows are only usable in controlled mode, you must pass in `onMergeConflictAction`");if(null!=e&&null!=this.computedCache.file&&!(0,u.areFilesEqual)(e,this.computedCache.file))throw Error("UnresolvedFile.getOrComputeDiff: uncontrolled unresolved files parse the file only once. Later updates must come from the cached diff state.");if(this.computedCache.file??=e,null==this.computedCache.fileDiff&&null!=this.computedCache.file){let e=(0,s.parseMergeConflictDiffFromFile)(this.computedCache.file,o);this.computedCache.fileDiff=e.fileDiff,this.computedCache.actions=e.actions,this.computedCache.markerRows=e.markerRows}t=this.computedCache.fileDiff,n=this.computedCache.actions,i=this.computedCache.markerRows;break e}if(null!=t&&null!=n&&null!=i)return{fileDiff:t,actions:n,markerRows:i}}hydrate(e){let{file:t,fileDiff:n,actions:i,markerRows:o,lineAnnotations:r,fileContainer:l,prerenderedHTML:s,preventEmit:a=!1}=e,d=this.getOrComputeDiff({file:t,fileDiff:n,actions:i,markerRows:o});null!=d&&(this.hydrateElements(l,s),this.setActiveMergeConflictState(d.actions,d.markerRows),function(e,t,n=!1){return!n&&null==e&&null!=t}(this.pre,d.fileDiff,this.options.collapsed)||function(e,t,n=!1){return null==e&&null!=t&&!n}(this.headerElement,d.fileDiff,this.options.disableFileHeader)?this.render({...e,preventEmit:!0}):(this.hydrationSetup({fileDiff:d.fileDiff,lineAnnotations:r}),null!=this.pre&&this.renderMergeConflictActionSlots()),a||this.emitPostRender())}rerender(){this.enabled&&null!=this.fileDiff&&this.render({forceRender:!0,renderRange:this.renderRange})}render(e={}){let{file:t,fileDiff:n,actions:i,markerRows:o,lineAnnotations:r,preventEmit:l=!1,...s}=e,a=this.getOrComputeDiff({file:t,fileDiff:n,actions:i,markerRows:o});if(null==a)return!1;this.setActiveMergeConflictState(a.actions,a.markerRows);let d=super.render({...s,fileDiff:a.fileDiff,lineAnnotations:r,preventEmit:!0});return d&&(this.renderMergeConflictActionSlots(),l||this.emitPostRender()),d}resolveConflict(e,t,n=this.computedCache.fileDiff){var i;let o,r=this.conflictActions[e];if(null==n||null==r)return;if(r.conflictIndex!==e)throw console.error({conflictIndex:e,action:r}
1),Error("UnresolvedFile.resolveConflict: conflictIndex and conflictAction don't match");let l=(0,y.resolveRegion)(n,{resolution:(0,k.normalizeDiffResolution)(t),hunkIndex:r.hunkIndex,startContentIndex:r.startContentIndex,endContentIndex:r.endContentIndex,indexesToDelete:(i=r,o=new Set,null!=i.baseContentIndex&&o.add(i.baseContentIndex),i.endMarkerContentIndex!==i.endContentIndex&&o.add(i.endMarkerContentIndex),o)}),a=this.computedCache.file,{file:d,actions:c,markerRows:u}=function({fileDiff:e,previousActions:t,resolvedConflictIndex:n,previousFile:i,resolution:o}){var r,l,a,d,c,u;let h,p,m,x=t[n];if(null==x)throw Error("rebuildFileAndActions: missing resolved action for unresolved file rebuild");let g=(r=t,l=n,a=x,d=o,m=(c=a.conflict,u=d,h=(c.baseMarkerLineIndex??c.separatorLineIndex)-c.startLineIndex-1,p=c.endLineIndex-c.separatorLineIndex-1,("current"===u?h:"incoming"===u?p:h+p)-(c.endLineIndex-c.startLineIndex+1)),r.map((e,t)=>{if(t!==l&&null!=e){var n,i;return e.conflict.startLineIndex>a.conflict.endLineIndex?{...e,conflict:(n=e.conflict,i=m,{...n,startLineIndex:n.startLineIndex+i,startLineNumber:n.startLineNumber+i,separatorLineIndex:n.separatorLineIndex+i,separatorLineNumber:n.separatorLineNumber+i,endLineIndex:n.endLineIndex+i,endLineNumber:n.endLineNumber+i,baseMarkerLineIndex:null!=n.baseMarkerLineIndex?n.baseMarkerLineIndex+i:void 0,baseMarkerLineNumber:null!=n.baseMarkerLineNumber?n.baseMarkerLineNumber+i:void 0})}:e}})),C=(0,s.buildMergeConflictMarkerRows)(e,g);return{file:function({resolvedAction:e,resolvedConflictIndex:t,previousFile:n,fileDiff:i,resolution:o}){var r,l,s;let a,d,c=n?.contents??"",u=(0,f.splitFileContents)(c),{conflict:h}=e,p=(r=u,l=h,s=o,a=r.slice(l.startLineIndex+1,l.baseMarkerLineIndex??l.separatorLineIndex),d=r.slice(l.separatorLineIndex+1,l.endLineIndex),"current"===s?a:"incoming"===s?d:[...a,...d]),m=[...u.slice(0,h.startLineIndex),...p,...u.slice(h.endLineIndex+1)].join("");return{name:n?.name??i.name,contents:m,cacheKey:n?.cacheKey!=null?`${n.cacheKey}:mc-${t}-${o}`:void 0}}({fileDiff:e,resolvedAction:x,resolvedConflictIndex:n,previousFile:i,resolution:o}),actions:g,markerRows:C}}({fileDiff:l,previousActions:this.conflictActions,resolvedConflictIndex:e,previousFile:a,resolution:t});return{file:d,fileDiff:l,actions:c,markerRows:u}}resolveConflictAndRender(e,t){let n=this.conflictActions[e];if(null==n)return;if(n.conflictIndex!==e)throw console.error({conflictIndex:e,action:n}
1),Error("UnresolvedFile.resolveConflictAndRender: conflictIndex and conflictAction don't match");let i={resolution:t,conflict:n.conflict},{file:o,fileDiff:r,actions:l,markerRows:s}=this.resolveConflict(e,t)??{};null!=o&&null!=r&&null!=l&&null!=s&&(this.computedCache={file:o,fileDiff:r,actions:l,markerRows:s},this.setActiveMergeConflictState(l,s),null!=this.workerManager?this.hunksRenderer.renderDiff(r):this.render({forceRender:!0}),this.options.onMergeConflictResolve?.(o,i))}setActiveMergeConflictState(e=this.conflictActions,t=this.markerRows){this.conflictActions=e,this.markerRows=t,null!=this.computedCache.fileDiff&&this.hunksRenderer instanceof g&&this.hunksRenderer.setConflictState("none"===this.options.mergeConflictActionsType?[]:e,t,this.computedCache.fileDiff)}handleMergeConflictActionClick=e=>{let t=this.conflictActions[e.conflictIndex];if(null==t)return;if(t.conflictIndex!==e.conflictIndex)throw console.error({conflictIndex:e.conflictIndex,action:t}),Error("UnresolvedFile.handleMergeConflictActionClick: conflictIndex and conflictAction don't match");let n={resolution:e.resolution,conflict:t.conflict};null!=this.options.onMergeConflictAction?this.options.onMergeConflictAction(n,this):this.resolveConflictAndRender(e.conflictIndex,e.resolution)};renderMergeConflictActionSlots(){let{fileDiff:e}=this.computedCache;if(this.isContainerManaged||null==this.fileContainer||"function"!=typeof this.options.mergeConflictActionsType||0===this.conflictActions.length||null==e)return void this.clearMergeConflictActionCache();let t=new Map(this.conflictActionCache);for(let r=0;r<this.conflictActions.length;r++){var n,i,o;let l=this.conflictActions[r];if(null==l)continue;if(l.conflictIndex!==r)throw console.error({conflictIndex:r,action:l}),Error("UnresolvedFile.renderMergeConflictActionSlots: conflictIndex and conflictAction don't match");let a=(0,s.getMergeConflictActionAnchor)(l,e);if(null==a)continue;let c=l.conflictIndex,u=(0,p.getMergeConflictActionSlotName)({hunkIndex:a.hunkIndex,lineIndex:a.lineIndex,conflictIndex:c}),f=`${r}-${u}`,h=this.conflictActionCache.get(f);if(null==h||(n=h.action,!(n.hunkIndex===l.hunkIndex&&n.startContentIndex===l.startContentIndex&&n.endContentIndex===l.endContentIndex&&n.currentContentIndex===l.currentContentIndex&&n.baseContentIndex===l.baseContentIndex&&n.incomingContentIndex===l.incomingContentIndex&&n.endMarkerContentIndex===l.endMarkerContentIndex&&n.conflictIndex===l.conflictIndex&&(i=n.conflict,o=l.conflict,i.conflictIndex===o.conflictIndex&&i.startLineIndex===o.startLineIndex&&i.startLineNumber===o.startLineNumber&&i.separatorLineIndex===o.separatorLineIndex&&i.separatorLineNumber===o.separatorLineNumber&&i.endLineIndex===o.endLineIndex&&i.endLineNumber===o.endLineNumber&&i.baseMarkerLineIndex===o.baseMarkerLineIndex&&i.baseMarkerLineNumber===o.baseMarkerLineNumber)))){h?.element.remove();let e=this.renderMergeConflictAction(l);if(null==e)continue;let t=(0,d.createAnnotationWrapperNode)(u);t.appendChild(e),this.fileContainer.appendChild(t),h={element:t,action:l},this.conflictActionCache.set(f,h)}t.delete(f)}for(let[e,{element:n}]of t.entries())this.conflictActionCache.delete(e),n.remove()}renderMergeConflictAction(e){if("function"!=typeof this.options.mergeConflictActionsType)return;let t=this.options.mergeConflictActionsType(e,this);if(null!=t){if(t instanceof HTMLElement)return t;if("u">typeof DocumentFragment&&t instanceof DocumentFragment){let e=document.createElement("div");return e.style.display="contents",e.appendChild(t),e}}}clearMergeConflictActionCache(){for(let{element:e}of this.conflictActionCache.values())e.remove();this.conflictActionCache.clear()}},R=e.i(44507),D=e.i(1933),S=e.i(24087),M=e.i(46982);let E=M.useLayoutEffect;function j({options:e,controlledSelection:t,onMergeConflictAction:n,hasConflictUtility:i,hasCustomHeader:o,hasGutterRenderUtility:r}){return{...e,controlledSelection:t,onMergeConflictAction:n,hunkSeparators:e?.hunkSeparators==="custom"?D.noopRender:e?.hunkSeparators,mergeConflictActionsType:i||e?.mergeConflictActionsType==="custom"?D.noopRender:e?.mergeConflictActionsType,renderCustomHeader:o?D.noopRender:void 0,renderGutterUtility:r?D.noopRender:void 0}}function N(e){let a,d,c=(0,n.c)(27),{file:u,options:f,lineAnnotations:h,selectedLines:p,className:m,style:x,prerenderedHTML:g,renderAnnotation:C,renderCustomHeader:v,renderHeaderPrefix:b,renderHeaderFilenameSuffix:L,renderHeaderMetadata:I,renderGutterUtility:k,renderMergeConflictUtility:y,disableWorkerPool:w}=e,D=void 0!==w&&w,N=null!=y,T=null!=k,F=null!=v;c[0]!==D||c[1]!==u||c[2]!==h||c[3]!==f||c[4]!==g||c[5]!==p||c[6]!==N||c[7]!==T||c[8]!==F?(a={file:u,options:f,lineAnnotations:h,selectedLines:p,prerenderedHTML:g,hasConflictUtility:N,hasGutterRenderUtility:T,hasCu
1stomHeader:F,disableWorkerPool:D},c[0]=D,c[1]=u,c[2]=h,c[3]=f,c[4]=g,c[5]=p,c[6]=N,c[7]=T,c[8]=F,c[9]=a):a=c[9];let{ref:H,getHoveredLine:$,fileDiff:O,actions:_,getInstance:U}=function(e){let t,i,o,r,a,d,c,u=(0,n.c)(37),{file:f,options:h,lineAnnotations:p,selectedLines:m,prerenderedHTML:x,hasConflictUtility:g,hasGutterRenderUtility:C,hasCustomHeader:v,disableWorkerPool:b}=e;u[0]!==f||u[1]!==h?.maxContextLines?(t=()=>{let{fileDiff:e,actions:t,markerRows:n}=(0,s.parseMergeConflictDiffFromFile)(f,h?.maxContextLines);return{fileDiff:e,actions:t,markerRows:n}},u[0]=f,u[1]=h?.maxContextLines,u[2]=t):t=u[2];let[L,I]=(0,M.useState)(t),{fileDiff:k,actions:y,markerRows:w}=L;u[3]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{I(n=>{let{fileDiff:i,actions:o,markerRows:r}=t.resolveConflict(e.conflict.conflictIndex,e.resolution,n.fileDiff)??{};return null==i||null==o||null==r?n:{fileDiff:i,actions:o,markerRows:r}})},u[3]=i):i=u[3];let D=(0,R.useStableCallback)(i),N=void 0!==m,T=(0,M.useContext)(S.WorkerPoolContext),F=(0,M.useRef)(null);u[4]!==y||u[5]!==N||u[6]!==b||u[7]!==k||u[8]!==g||u[9]!==v||u[10]!==C||u[11]!==p||u[12]!==w||u[13]!==D||u[14]!==h||u[15]!==T||u[16]!==x?(o=e=>{if(null!=e){if(null!=F.current)throw Error("useUnresolvedFileInstance: An instance should not already exist when a node is created");F.current=new A(j({controlledSelection:N,hasConflictUtility:g,hasCustomHeader:v,hasGutterRenderUtility:C,onMergeConflictAction:D,options:h}),!b?T:void 0,!0),F.current.hydrate({fileDiff:k,actions:y,markerRows:w,fileContainer:e,lineAnnotations:p,prerenderedHTML:x})}else{if(null==F.current)throw Error("useUnresolvedFileInstance: A UnresolvedFile instance should exist when unmounting");F.current.cleanUp(),F.current=null}},u[4]=y,u[5]=N,u[6]=b,u[7]=k,u[8]=g,u[9]=v,u[10]=C,u[11]=p,u[12]=w,u[13]=D,u[14]=h,u[15]=T,u[16]=x,u[17]=o):o=u[17];let H=(0,R.useStableCallback)(o);return u[18]!==y||u[19]!==N||u[20]!==k||u[21]!==g||u[22]!==v||u[23]!==C||u[24]!==p||u[25]!==w||u[26]!==D||u[27]!==h||u[28]!==m?(r=()=>{if(null==F.current)return;let e=F.current,t=j({controlledSelection:N,hasConflictUtility:g,hasCustomHeader:v,hasGutterRenderUtility:C,onMergeConflictAction:D,options:h}),n=void 0!==t&&!(0,l.areOptionsEqual)(e.options,t);e.setOptions(t),e.render({fileDiff:k,actions:y,markerRows:w,lineAnnotations:p,forceRender:n}),void 0!==m&&e.setSelectedLines(m)},u[18]=y,u[19]=N,u[20]=k,u[21]=g,u[22]=v,u[23]=C,u[24]=p,u[25]=w,u[26]=D,u[27]=h,u[28]=m,u[29]=r):r=u[29],E(r),u[30]===Symbol.for("react.memo_cache_sentinel")?(a=()=>F.current?.getHoveredLine(),u[30]=a):a=u[30],u[31]===Symbol.for("react.memo_cache_sentinel")?(d=()=>
1F.current??void 0,u[31]=d):d=u[31],u[32]!==y||u[33]!==k||u[34]!==w||u[35]!==H?(c={ref:H,getHoveredLine:a,fileDiff:k,actions:y,markerRows:w,getInstance:d},u[32]=y,u[33]=k,u[34]=w,u[35]=H,u[36]=c):c=u[36],c}(a);if(c[10]!==_||c[11]!==m||c[12]!==O||c[13]!==$||c[14]!==U||c[15]!==h||c[16]!==g||c[17]!==H||c[18]!==C||c[19]!==v||c[20]!==k||c[21]!==L||c[22]!==I||c[23]!==b||c[24]!==y||c[25]!==x){let e=(0,o.renderDiffChildren)({fileDiff:O,renderCustomHeader:v,renderHeaderPrefix:b,renderHeaderFilenameSuffix:L,renderHeaderMetadata:I,renderAnnotation:C,renderGutterUtility:k,lineAnnotations:h,getHoveredLine:$,actions:_,renderMergeConflictUtility:y,getInstance:U});d=(0,t.jsx)(i.DIFFS_TAG_NAME,{ref:H,className:m,style:x,children:(0,r.templateRender)(e,g)}),c[10]=_,c[11]=m,c[12]=O,c[13]=$,c[14]=U,c[15]=h,c[16]=g,c[17]=H,c[18]=C,c[19]=v,c[20]=k,c[21]=L,c[22]=I,c[23]=b,c[24]=y,c[25]=x,c[26]=d}else d=c[26];return d}var T=e.i(80666),F=e.i(72171),H=e.i(97867),$=e.i(50087),O=e.i(34300),_=e.i(19355),U=e.i(40923);function B(e){return e+1}e.s(["MergeConflict",0,function(e){let i,o,r,l,s,a,d,c,u,f,h,p,m,x,g,C,v,b,L,I,k=(0,n.c)(41),{prerenderedFile:y}=e,[w,A]=(0,M.useState)(0),[R,D]=(0,M.useState)(!1);k[0]!==y.options?.themeType?(i=()=>y.options?.themeType??"system",k[0]=y.options?.themeType,k[1]=i):i=k[1];let[S,E]=(0,M.useState)(i),j="light"===S?"border-neutral-200":"dark"===S?"border-neutral-800":"border-neutral-200 dark:border-neutral-800";k[2]!==y.options?(o=y.options??{},k[2]=y.options,k[3]=o):o=k[3],k[4]!==o?({mergeConflictActionsType:l,hunkSeparators:r,...s}=o,k[4]=o,k[5]=r,k[6]=l,k[7]=s):(r=k[5],l=k[6],s=k[7]);let P="function"==typeof l?"custom":l,z="function"==typeof r?"custom":r;k[8]!==s||k[9]!==P||k[10]!==z||k[11]!==S?(a={...s,mergeConflictActionsType:P,hunkSeparators:z,themeType:S},k[8]=s,k[9]=P,k[10]=z,k[11]=S,k[12]=a):a=k[12];let G=a;k[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(O.FeatureHeader,{id:"conflicts",title:"Merge conflict resolution UI",description:(0,t.jsx)(t.Fragment,{children:"Render conflicts through a dedicated diff primitive that treats current and incoming sections as structured additions/deletions without running text diffing. Resolve by choosing current, incoming, or both changes and preview the updated file instantly."})}),k[13]=d):d=k[13];let K=!R;k[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{A(B),D(!1)},u=(0,t.jsx)($.IconRefresh,{}),k[14]=c,k[15]=u):(c=k[14],u=k[15]),k[16]!==K?(f=(0,t.jsxs)(_.Button,{variant:"outline",disabled:K,onClick:c,children:[u,"Reset"]}),k[16]=K,k[17]=f):f=k[17],k[18]===Symbol.for("react.memo_cache_sentinel")?(h=e=>E(e),k[18]=h):h=k[18],k[19]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsxs)(U.ButtonGroupItem,{value:"system",children:[(0,t.jsx)(T.IconColorAuto,{}),"Auto"]}),k[19]=p):p=k[19],k[20]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsxs)(U.ButtonGroupItem,{value:"light",children:[(0,t.jsx)(H.IconColorLight,{}),"Light"]}),k[20]=m):m=k[20],k[21]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)(U.ButtonGroupItem,{value:"dark",children:[(0,t.jsx)(F.IconColorDark,{}),"Dark"]}),k[21]=x):x=k[21],k[22]!==S?(g=(0,t.jsxs)(U.ButtonGroup,{value:S,onValueChange:h,children:[p,m,x]}),k[22]=S,k[23]=g):g=k[23],k[24]!==f||k[25]!==g?(C=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f,g]}),k[24]=f,k[25]=g,k[26]=C):C=k[26],k[27]!==R?(v=e=>{if(!R){for(let t of e.nativeEvent.composedPath())if(t instanceof HTMLElement&&t.hasAttribute("data-merge-conflict-action")){D(!0);break}}},k[27]=R,k[28]=v):v=k[28];let V=`overflow-hidden rounded-lg border ${j}`;return k[29]!==w||k[30]!==G||k[31]!==y.file||k[32]!==y.prerenderedHTML||k[33]!==V?(b=(0,t.jsx)(N,{file:y.file,options:G,prerenderedHTML:y.prerenderedHTML,className:V,disableWorkerPool:!0},w),k[29]=w,k[30]=G,k[31]=y.file,k[32]=y.prerenderedHTML,k[33]=V,k[34]=b):b=k[34],k[35]!==v||k[36]!==b?(L=(0,t.jsx)("div",{onClickCapture:v,children:b}),k[35]=v,k[36]=b,k[37]=L):L=k[37],k[38]!==C||k[39]!==L?(I=(0,t.jsxs)("div",{className:"space-y-5",children:[d,C,L]}),k[38]=C,k[39]=L,k[40]=I):I=k[40],I}],67410)},72181,e=>{"use strict";
1var t=e.i(90026),n=e.i(48573),i=e.i(66672);let o={default:"px-2 py-0.5 text-xs",large:"px-3 py-1 text-sm"};e.s(["BetaBadge",0,function(e){let r,l,s=(0,n.c)(5),{className:a,size:d}=e,c=o[void 0===d?"default":d];return s[0]!==a||s[1]!==c?(r=(0,i.cn)("inline-block rounded-full bg-purple-100 font-medium tracking-wide text-purple-600 uppercase dark:bg-purple-900 dark:text-purple-400",c,a),s[0]=a,s[1]=c,s[2]=r):r=s[2],s[3]!==r?(l=(0,t.jsx)("span",{"data-heading-badge":"beta",className:r,children:"Beta"}),s[3]=r,s[4]=l):l=s[4],l}])},94112,e=>{"use strict";let t=`[data-diff-type="split"] [data-code][data-additions]::-webkit-scrollbar-track {
2		margin-right: 6px
3}
4[data-diff-type="split"] [data-code][data-deletions]::-webkit-scrollbar-track {
5		margin-left: 6px
6}
7[data-file] [data-code]::-webkit-scrollbar-track,
8[data-diff-type="single"] [data-code]::-webkit-scrollbar-track {
9  margin-inline: 6px;
10}`;e.s(["CustomScrollbarCSS",0,t])},34300,e=>{"use strict";var t=e.i(90026),n=e.i(48573),i=e.i(72181);e.s(["FeatureHeader",0,function(e){let o,r,l,s,a=(0,n.c)(11),{id:d,title:c,description:u,isBeta:f}=e,h=void 0!==f&&f;return a[0]!==h?(o=h?(0,t.jsx)(i.BetaBadge,{className:"ml-2 align-middle"}):null,a[0]=h,a[1]=o):o=a[1],a[2]!==d||a[3]!==o||a[4]!==c?(r=(0,t.jsxs)("h2",{id:d,className:"scroll-mt-20 text-2xl font-medium",children:[c,o]}),a[2]=d,a[3]=o,a[4]=c,a[5]=r):r=a[5],a[6]!==u?(l=(0,t.jsx)("p",{className:"text-muted-foreground text-md strong-fg",children:u}),a[6]=u,a[7]=l):l=a[7],a[8]!==r||a[9]!==l?(s=(0,t.jsxs)("div",{className:"max-w-3xl",children:[r,l]}),a[8]=r,a[9]=l,a[10]=s):s=a[10],s}])},19643,e=>{"use strict";var t=e.i(90026),n=e.i(48573),i=e.i(46982);function o(){return/Mac|iP(?:hone|ad|od)/i.test(navigator.platform)}function r(){return()=>{}}function l(){return!0}e.s(["ShortcutKeys",0,function(e){let s,a,d,c,u=(0,n.c)(15),{keys:f,modifiers:h,mod:p,className:m}=e,x=void 0!==p&&p,g=(0,i.useSyncExternalStore)(r,o,l)?"Cmd":"Ctrl";if(u[0]!==x||u[1]!==h||u[2]!==g?(s=[],x&&s.push(g),null!=h&&s.push(...h),u[0]=x,u[1]=h,u[2]=g,u[3]=s):s=u[3],u[4]!==m||u[5]!==s?(a=s.map((e,n)=>(0,t.jsx)("kbd",{className:m,children:e},`held-${e}-${n}`)),u[4]=m,u[5]=s,u[6]=a):a=u[6],u[7]!==m||u[8]!==f){let e;u[10]!==m?(e=(e,n)=>(0,t.jsxs)(i.Fragment,{children:[n>0?(0,t.jsx)("span",{className:"text-muted-foreground","aria-hidden":!0,children:"/"}):null,(0,t.jsx)("kbd",{className:m,children:e})]},`key-${e}-${n}`),u[10]=m,u[11]=e):e=u[11],d=f.map(e),u[7]=m,u[8]=f,u[9]=d}else d=u[9];return u[12]!==a||u[13]!==d?(c=(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[a,d]}),u[12]=a,u[13]=d,u[14]=c):c=u[14],c}])},46222,e=>{"use strict";var t=e.i(48573),n=e.i(46982);function i(){let e=document.querySelectorAll("h2[id], h3[id], h4[id]"),t=[];for(let n of e){if(!(n instanceof HTMLElement)||null!=n.querySelector(".heading-anchor"))continue;let e=document.createElement("a");e.href=`#${n.id}`,e.className="heading-anchor",e.ariaLabel="Link to this section",e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="currentcolor" viewBox="0 0 16 16" width="1em" height="1em" class="pi"><path d="M11.78 2.544a.75.75 0 1 1 1.44.412L12.78 4.5h.97a.75.75 0 0 1 0 1.5h-1.4l-1 3.5h1.4a.75.75 0 0 1 0 1.5h-1.827l-.702 2.456a.75.75 0 1 1-1.442-.412L9.363 11h-4.44l-.702 2.456a.75.75 0 1 1-1.442-.412L3.363 11H2.5a.75.75 0 0 1 0-1.5h1.292l1-3.5H3.75a.75.75 0 0 1 0-1.5h1.47l.56-1.956a.75.75 0 1 1 1.44.412L6.78 4.5h4.44zM5.35 9.5h4.442l1-3.5H6.351z" /></svg>',e.addEventListener("click",()=>{let e=`${window.location.origin}${window.location.pathname}#${n.id}`;navigator.clipboard.writeText(e).catch(o)}),n.appendChild(e);let i=new MutationObserver(()=>{n.lastElementChild!==e&&n.appendChild(e)});i.observe(n,{childList:!0}),t.push(i)}return()=>{for(let e of t)e.disconnect()}}function o(e){console.warn("Failed to copy to clipboard:",e)}e.s(["HeadingAnchors",0,function(){let e,o=(0,t.c)(1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],o[0]=e):e=o[0],(0,n.useEffect)(i,e),null}])},40923,e=>{"use strict";var t=e.i(90026),n=e.i(48573),i=e.i(46982),o=e.i(19355),r=e.i(66672);let l=i.createContext({});function s(e){let i,o,s,a,d,c,u,f,h,p,m,x=(0,n.c)(22);x[0]!==e?({className:o,value:u,onValueChange:s,variant:c,size:d,children:i,...a}=e,x[0]=e,x[1]=i,x[2]=o,x[3]=s,x[4]=a,x[5]=d,x[6]=c,x[7]=u):(i=x[1],o=x[2],s=x[3],a=x[4],d=x[5],c=x[6],u=x[7]);let g=void 0===c?"outline":c;return x[8]!==s||x[9]!==d||x[10]!==u||x[11]!==g?(f={selectedValue:u,onValueChange:s,variant:g,size:d},x[8]=s,x[9]=d,x[10]=u,x[11]=g,x[12]=f):f=x[12],x[13]!==o?(h=(0,r.cn)("bg-secondary inline-flex self-start rounded-lg",o),x[13]=o,x[14]=h):h=x[14],x[15]!==i||x[16]!==a||x[17]!==h?(p=(0,t.jsx)("div",{className:h,role:"group",...a,children:i}),x[15]=i,x[16]=a,x[17]=h,x[18]=p):p=x[18],x[19]!==f||x[20]!==p?(m=(0,t.jsx)(l.Provider,{value:f,children:p}),x[19]=f,x[20]=p,x[21]=m):m=x[21],m}let a=i.createContext("only");function d(e){let o,r,l=(0,n.c)(6),{children:s}=e;if(l[0]!==s){let e,n=i.Children.toArray(s),r=n.length;l[2]!==r?(e=(e,n)=>{let i="only";return r>1&&(i=0===n?"first":n===r-1?"last":"middle"),(0,t.jsx)(a.Provider,{value:i,children:e},n)},l[2]=r,l[3]=e):e=l[3],o=n.map(e),l[0]=s,l[1]=o}else o=l[1];return l[4]!==o?(r=(0,t.jsx)(t.Fragment,{children:o}),l[4]=o,l[5]=r):r=l[5],r}function c(e){let i,o,r,l,a=(0,n.c)(8);return a[0]!==e?({children:i,...o}=e,a[0]=e,a[1]=i,a[2]=o):(i=a[1],o=a[2]),a[3]!==i?(r=(0,t.jsx)(d,{children:i}),a[3]=i,a[4]=r):r=a[4],a[5]!==o||a[6]!==r?(l=(0,t.jsx)(s,{...o,children:r}),a[5]=o,a[6]=r,a[7]=l):l=a[7],l}c.displayName="ButtonGroup",e.s(["ButtonGroup",0,c,"ButtonGroupItem",0,function(e){let s,a,d,c,u,f,h,p,m=(0,n.c)(21);m[0]!==e?({className:a,value:u,children:s,onClick:d,...c}=e,m[0]=e,m[1]=s,m[2]=a,m[3]=d,m[4]=c,m[5]=u):(s=m[1],a=m[2],d=m[3],c=m[4],u=m[5]);let x=i.useContext(l),g=x.selectedValue===u;m[6]!==x||m[7]!==d||m[8]!==u?(f=e=>{x.onValueChange?.(u),d?.(e)},m[6]=x,m[7]=d,m[8]=u,m[9]=f):f=m[9];let C=f,v=g&&"text-foreground pointer-events-none shadow-xs";m[10]!==a||m[11]!==v?(h=(0,r.cn)("text-muted-foreground rounded-[calc(var(--radius-lg)-1px)] gap-1.5",v,a),m[10]=a,m[11]=v,m[12]=h):h=m[12];let b=g?x.variant??"outline":"ghost";return m[13]!==s||m[14]!==x.size||m[15]!==C||m[16]!==c||m[17]!==h||m[18]!==b||m[19]!==u?(p=(0,t.jsx)(o.Button,{className:h,variant:b,size:x.size,onClick:C,title:u,...c,children:s}),m[13]=s,m[14]=x.size,m[15]=C,m[16]=c,m[17]=h,m[18]=b,m[19]=u,m[20]=p):p=m[20],p}])},19355,94237,e=>{"use strict";
10var t=e.i(90026),n=e.i(48573),i=e.i(75240),o=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=o.clsx,s=(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return l(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let l=r(t)||r(i);return o[e][l]}),d=n&&Object.entries(n).reduce((e,t)=>{let[n,i]=t;return void 0===i||(e[n]=i),e},{});return l(e,a,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:n,className:i,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...d}[t]):({...s,...d})[t]===n})?[...e,n,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)};e.s(["cva",0,s],94237),e.i(46982);var a=e.i(66672);let d=s("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none flex-shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",success:"bg-teal-500 text-white hover:bg-teal-500/90 focus-visible:ring-teal-500/20 dark:focus-visible:ring-green-500/40 dark:bg-green-500/60",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background hover:bg-secondary hover:text-accent-foreground dark:hover:bg-input/50 dark:border-neutral-800 shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",tertiary:"bg-neutral-900/10 shadow-none",muted:"bg-secondary text-accent-foreground/75 hover:text-accent-foreground",ghost:"border bg-transparent border-transparent hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{xs:"h-5.5 rounded-sm gap-1.5 px-1.5 text-xs",default:"h-9 px-3.5 py-2 rounded-lg",sm:"h-8 rounded-md gap-1.5 px-3",lg:"h-10 rounded-md px-6",xl:"h-11 rounded-lg px-5 text-sm md:h-12 md:text-base",icon:"size-9","icon-md":"size-8 rounded-md","icon-sm":"size-5 rounded-sm","icon-only":"size-4 rounded-none p-0 hover:bg-transparent dark:hover:bg-transparent focus-visible:ring-0 focus:border-none"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function(e){let o,r,l,s,c,u,f,h=(0,n.c)(14);h[0]!==e?({className:o,variant:c,size:l,asChild:s,...r}=e,h[0]=e,h[1]=o,h[2]=r,h[3]=l,h[4]=s,h[5]=c):(o=h[1],r=h[2],l=h[3],s=h[4],c=h[5]);let p=void 0!==s&&s?i.Slot:"button";return h[6]!==o||h[7]!==l||h[8]!==c?(u=(0,a.cn)(d({variant:c,size:l,className:o})),h[6]=o,h[7]=l,h[8]=c,h[9]=u):u=h[9],h[10]!==p||h[11]!==r||h[12]!==u?(f=(0,t.jsx)(p,{"data-slot":"button",className:u,...r}),h[10]=p,h[11]=r,h[12]=u,h[13]=f):f=h[13],f},"buttonVariants",0,d],19355)},51462,e=>{"use strict";var t=e.i(90026),n=e.i(48573);e.i(46982);var i=e.i(66672);function o(e){let o,r,l,s,a,d=(0,n.c)(10);return d[0]!==e?({className:r,children:o,...l}=e,d[0]=e,d[1]=o,d[2]=r,d[3]=l):(o=d[1],r=d[2],l=d[3]),d[4]!==r?(s=(0,i.cn)("relative flex items-center",r),d[4]=r,d[5]=s):s=d[5],d[6]!==o||d[7]!==l||d[8]!==s?(a=(0,t.jsx)("div",{className:s,...l,children:o}),d[6]=o,d[7]=l,d[8]=s,d[9]=a):a=d[9],a}function r(e){let o,r,l,s,a=(0,n.c)(8);return a[0]!==e?({className:o,...r}=e,a[0]=e,a[1]=o,a[2]=r):(o=a[1],r=a[2]),a[3]!==o?(l=(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input bg-background h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","peer",o),a[3]=o,a[4]=l):l=a[4],a[5]!==r||a[6]!==l?(s=(0,t.jsx)("input",{"data-slot":"input-group-input",className:l,...r}),a[5]=r,a[6]=l,a[7]=s):s=a[7],s}function l(e){let o,r,l,s,a,d,c=(0,n.c)(13);c[0]!==e?({className:r,children:o,position:s,...l}=e,c[0]=e,c[1]=o,c[2]=r,c[3]=l,c[4]=s):(o=c[1],r=c[2],l=c[3],s=c[4]);let u=void 0===s?"left":s,f="left"===u&&"left-3",h="right"===u&&"right-3";return c[5]!==r||c[6]!==f||c[7]!==h?(a=(0,i.cn)("text-muted-foreground pointer-events-none absolute z-10 flex items-center justify-center",f,h,r),c[5]=r,c[6]=f,c[7]=h,c[8]=a):a=c[8],c[9]!==o||c[10]!==l||c[11]!==a?(d=(0,t.jsx)("div",{className:a,...l,children:o}),c[9]=o,c[10]=l,c[11]=a,c[12]=d):d=c[12],d}e.s(["InputWithIcon",0,function(e){let s,a,d,c,u,f,h,p,m=(0,n.c)(18);m[0]!==e?({icon:a,iconPosition:c,className:s,...d}=e,m[0]=e,m[1]=s,m[2]=a,m[3]=d,m[4]=c):(s=m[1],a=m[2],d=m[3],c=m[4]);let x=void 0===c?"left":c;m[5]!==a||m[6]!==x?(u=null!=a&&(0,t.jsx)(l,{position:x,children:a}),m[5]=a,m[6]=x,m[7]=u):u=m[7];let g=null!=a&&"left"===x&&"pl-10",C=null!=a&&"right"===x&&"pr-10";return m[8]!==s||m[9]!==g||m[10]!==C?(f=(0,i.cn)(g,C,s),m[8]=s,m[9]=g,m[10]=C,m[11]=f):f=m[11],m[12]!==d||m[13]!==f?(h=(0,t.jsx)(r,{className:f,...d}),m[12]=d,m[13]=f,m[14]=h):h=m[14],m[15]!==u||m[16]!==h?(p=(0,t.jsxs)(o,{children:[u,h]}),m[15]=u,m[16]=h,m[17]=p):p=m[17],p}])},50087,e=>{"use strict";
10var t=e.i(90026),n=e.i(41829);e.s(["IconRefresh",0,function({size:e=16,color:i="currentcolor",style:o,className:r,...l}){let s="1em"===e?"1em":+Number(e);return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:n.Colors[i]??i,viewBox:"0 0 16 16",width:s,height:e,style:o,className:`pi${null!=r?` ${r}`:""}`,...l,...l,children:(0,t.jsx)("path",{d:"M7.973 1.5C4.396 1.5 1.495 4.41 1.495 8a6.5 6.5 0 0 0 1.993 4.69v-1.94a.749.749 0 1 1 1.495 0v3.5c0 .414-.334.75-.747.75H.748A.75.75 0 0 1 0 14.25c0-.414.335-.75.748-.75h1.435A8 8 0 0 1 0 8c0-4.418 3.57-8 7.973-8 .413 0 .748.336.748.75s-.335.75-.748.75M11.729 6.018a.75.75 0 0 0 .747-.75V3.327A6.5 6.5 0 0 1 14.452 8c0 3.59-2.9 6.5-6.479 6.5a.75.75 0 0 0-.747.75c0 .414.335.75.747.75 4.404 0 7.974-3.582 7.974-8 0-2.14-.838-4.083-2.2-5.518h1.505a.75.75 0 0 0 .748-.75.75.75 0 0 0-.748-.75H11.73a.75.75 0 0 0-.748.75v3.536c0 .414.335.75.748.75"})})}])},33927,e=>{"use strict";var t=e.i(90026),n=e.i(41829);e.s(["IconSearch",0,function({size:e=16,color:i="currentcolor",style:o,className:r,...l}){let s="1em"===e?"1em":+Number(e);return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:n.Colors[i]??i,viewBox:"0 0 16 16",width:s,height:e,style:o,className:`pi${null!=r?` ${r}`:""}`,...l,...l,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10.775 12.896a7 7 0 1 1 2.121-2.121l2.665 2.664a1.5 1.5 0 0 1-2.122 2.122zM7 1.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11",clipRule:"evenodd"})})}])},39602,14461,e=>{"use strict";e.s(["normalizeDiffResolution",0,function(e){let t="string"==typeof e?e:e.type;return"accept"===t||"incoming"===t?"additions":"reject"===t||"current"===t?"deletions":"both"}],39602);var t=e.i(23671);function n(e,t,n,i,o,r){for(let l=0;l<r;l++){let r=t[i+l],s=n[o+l];if(null==r||null==s)throw Error("pushCollapsedContextLines: missing collapsed context line");e.deletionLines.push(r),e.additionLines.push(s)}}function i(e,t,n,i){if("context"===e.type)for(let n=0;n<e.lines;n++){let o=i[e.additionLineIndex+n];if(null==o)throw console.error({additionLines:i,content:e,i:n}),Error("pushContentLinesToDiff: Context line does not exist");t.deletionLines.push(o),t.additionLines.push(o)}else{let o=Math.max(e.deletions,e.additions);for(let r=0;r<o;r++){if(r<e.deletions){let i=n[e.deletionLineIndex+r];if(null==i)throw console.error({deletionLines:n,content:e,i:r}),Error("pushContentLinesToDiff: Deletion line does not exist");t.deletionLines.push(i)}if(r<e.additions){let n=i[e.additionLineIndex+r];if(null==n)throw console.error({additionLines:i,content:e,i:r}),Error("pushContentLinesToDiff: Addition line does not exist");t.additionLines.push(n)}}}}function o(e,t,n){"context"===e.type?(t.nextAdditionLineIndex+=e.lines,t.nextDeletionLineIndex+=e.lines,t.nextAdditionStart+=e.lines,t.nextDeletionStart+=e.lines,t.splitLineCount+=e.lines,t.unifiedLineCount+=e.lines,n.additionCount+=e.lines,n.deletionCount+=e.lines,n.splitLineCount+=e.lines,n.unifiedLineCount+=e.lines):(t.nextAdditionLineIndex+=e.additions,t.nextDeletionLineIndex+=e.deletions,t.nextAdditionStart+=e.additions,t.nextDeletionStart+=e.deletions,t.splitLineCount+=Math.max(e.deletions,e.additions),t.unifiedLineCount+=e.deletions+e.additions,n.deletionCount+=e.deletions,n.deletionLines+=e.deletions,n.additionCount+=e.additions,n.additionLines+=e.additions,n.splitLineCount+=Math.max(e.deletions,e.additions),n.unifiedLineCount+=e.deletions+e.additions)}e.s(["resolveRegion",0,function(e,r){let{resolution:l,hunkIndex:s,startContentIndex:a,endContentIndex:d,indexesToDelete:c=new Set}=r,u=e.hunks[s];if(null==u)throw console.error({diff:e,hunkIndex:s}),Error(`resolveRegion: Invalid hunk index: ${s}`);if(a<0||d>=u.hunkContent.length||a>d)throw Error(`resolveRegion: Invalid content range, ${a}, ${d}`);let{hunks:f,additionLines:h,deletionLines:p}=e,m={...e,hunks:[],deletionLines:[],additionLines:[],splitLineCount:0,unifiedLineCount:0,cacheKey:null!=e.cacheKey?`${e.cacheKey}:${l[0]}-${s}:${a}-${d}`:void 0},x={nextAdditionLineIndex:0,nextDeletionLineIndex:0,nextAdditionStart:1,nextDeletionStart:1,splitLineCount:0,unifiedLineCount:0},g=s===f.length-1&&d===u.hunkContent.length-1,C=!e.isPartial;for(let[r,u]of f.entries()){var v,b,L,I,k,y,w;v=e,b=m,L=x,I=(0,t.getHunkSideStartBoundary)(u.deletionStart,u.deletionCount)-u.collapsedBefore,k=(0,t.getHunkSideStartBoundary)(u.additionStart,u.additionCount)-u.collapsedBefore,y=u.collapsedBefore,w=C,y<=0||(w&&(n(b,v.deletionLines,v.additionLine
10s,I,k,y),L.nextAdditionLineIndex+=y,L.nextDeletionLineIndex+=y),L.nextAdditionStart+=y,L.nextDeletionStart+=y,L.splitLineCount+=y,L.unifiedLineCount+=y);let f={...u,hunkContent:[],additionStart:x.nextAdditionStart,deletionStart:x.nextDeletionStart,additionLineIndex:x.nextAdditionLineIndex,deletionLineIndex:x.nextDeletionLineIndex,additionCount:0,deletionCount:0,deletionLines:0,additionLines:0,splitLineStart:x.splitLineCount,unifiedLineStart:x.unifiedLineCount,splitLineCount:0,unifiedLineCount:0};for(let[e,t]of u.hunkContent.entries())if(r!==s||e<a||e>d){i(t,m,p,h);let e={...t,additionLineIndex:x.nextAdditionLineIndex,deletionLineIndex:x.nextDeletionLineIndex};f.hunkContent.push(e),o(e,x,f)}else if(c.has(e))f.hunkContent.push({type:"context",lines:0,deletionLineIndex:x.nextDeletionLineIndex,additionLineIndex:x.nextAdditionLineIndex});else if("context"===t.type){i(t,m,p,h);let e={...t,deletionLineIndex:x.nextDeletionLineIndex,additionLineIndex:x.nextAdditionLineIndex};f.hunkContent.push(e),o(e,x,f)}else{var A=l,R=t,D=m,S=p,M=h;if("deletions"===A||"both"===A)for(let e=0;e<R.deletions;e++){let t=S[R.deletionLineIndex+e];if(null==t)throw console.error({deletionLines:S,content:R,i:e}),Error("pushResolveLinesToDiff: Deletion line does not exist");D.deletionLines.push(t),D.additionLines.push(t)}if("additions"===A||"both"===A)for(let e=0;e<R.additions;e++){let t=M[R.additionLineIndex+e];if(null==t)throw console.error({additionLines:M,content:R,i:e}),Error("pushResolveLinesToDiff: Addition line does not exist");D.deletionLines.push(t),D.additionLines.push(t)}let e={type:"context",lines:"deletions"===l?t.deletions:"additions"===l?t.additions:t.deletions+t.additions,deletionLineIndex:x.nextDeletionLineIndex,additionLineIndex:x.nextAdditionLineIndex};f.hunkContent.push(e),o(e,x,f)}if(r===s&&g){let e="deletions"===l?u.noEOFCRDeletions:u.noEOFCRAdditions;f.noEOFCRAdditions=e,f.noEOFCRDeletions=e}0===f.additionCount&&(f.additionStart--,!e.isPartial&&f.additionLineIndex--),0===f.deletionCount&&(f.deletionStart--,!e.isPartial&&f.deletionLineIndex--),m.hunks.push(f)}let E=f.at(-1);if(null!=E&&!e.isPartial){let e=(0,t.getHunkSideEndBoundary)(E.deletionStart,E.deletionCount),i=(0,t.getHunkSideEndBoundary)(E.additionStart,E.additionCount),o=Math.min(p.length-e,h.length-i);n(m,p,h,e,i,o),x.splitLineCount+=o,x.unifiedLineCount+=o}return m.splitLineCount=x.splitLineCount,m.unifiedLineCount=x.unifiedLineCount,m}],14461)}]);

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.