export const DEFAULT_LAZY_RENDER_MIN_FILES=0xc8;export const DEFAULT_LAZY_RENDER_MAX_FILES=0x3e7;export const DEFAULT_LAZY_RENDER_CHUNK_SIZE=0x28;export const DEFAULT_AUTO_COLLAPSE_MIN_FILES=0xc8;export function getLazyRenderUpperBound({maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){if(!Number['isFinite'](serverMaxFiles))return maxFiles;return Math['min'](maxFiles,serverMaxFiles);}export function shouldUseLazyRendering(_0x266d56,{minFiles:minFiles=DEFAULT_LAZY_RENDER_MIN_FILES,maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){const _0x3d1f07=getLazyRenderUpperBound({'maxFiles':maxFiles,'serverMaxFiles':serverMaxFiles});return _0x266d56>=minFiles&&_0x266d56<=_0x3d1f07;}export function shouldAutoCollapseDiff(_0x50dc8a,{threshold:threshold=DEFAULT_AUTO_COLLAPSE_MIN_FILES}={}){return _0x50dc8a>=threshold;}export function getNextRenderedCount({renderedCount:_0x1066bf,totalFiles:_0x5e70cb,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){return Math['min'](_0x1066bf+chunkSize,_0x5e70cb);}export function renderedCountForTarget({renderedCount:_0x2fb6ac,targetIndex:_0x40e685,totalFiles:_0x5dfb79,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){let _0x4e8963=_0x2fb6ac;while(_0x4e8963<=_0x40e685&&_0x4e8963<_0x5dfb79){_0x4e8963=getNextRenderedCount({'renderedCount':_0x4e8963,'totalFiles':_0x5dfb79,'chunkSize':chunkSize});}return _0x4e8963;}export function getLazyLoadMoreText({filesLength:_0x343408,renderedCount:_0x2c4ecd,chunkSize:_0x5ee1b0}){const _0xd8b6a4=Math['max'](0x0,_0x343408-_0x2c4ecd),_0x3f9487=Math['min'](_0x5ee1b0,_0xd8b6a4);return'Load\x20'+_0x3f9487['toLocaleString']()+'\x20more\x20files\x20('+_0x2c4ecd['toLocaleString']()+'\x20/\x20'+_0x343408['toLocaleString']()+')';}export function getFileNameFromDiffFile(_0x11bcae){return _0x11bcae?.['newPath']||_0x11bcae?.['oldPath']||'';}export function buildCollapsedStateUpdates({files:_0x43b577,collapsed:_0x50679e,storageKeyPrefix:_0x2e70b5,getStorageKey:_0x1f2696}){const _0x12bef4=[];for(const _0x1f86e1 of _0x43b577||[]){const _0x34a7a9=getFileNameFromDiffFile(_0x1f86e1);if(!_0x34a7a9)continue;_0x12bef4['push']({'key':_0x1f2696(_0x2e70b5,_0x34a7a9),'value':String(_0x50679e),'fileName':_0x34a7a9});}return _0x12bef4;}