export const DiffWrapper={charDiff:function(text1,text2,cleanup){const differ=new diff_match_patch();const diff=differ.diff_main(text1,text2);if(cleanup){differ.diff_cleanupSemantic(diff);} return diff;},lineDiff:function(lines1,lines2){const idMap=new Common.CharacterIdMap();const text1=lines1.map(line=>idMap.toChar(line)).join('');const text2=lines2.map(line=>idMap.toChar(line)).join('');const diff=DiffWrapper.charDiff(text1,text2);const lineDiff=[];for(let i=0;i