var w=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var M=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.default=Oe;function Oe(){}Oe.prototype={diff:function(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=n.callback;typeof n=="function"&&(u=n,n={}),this.options=n;var i=this;function f(d){return u?(setTimeout(function(){u(void 0,d)},0),!0):d}r=this.castInput(r),t=this.castInput(t),r=this.removeEmpty(this.tokenize(r)),t=this.removeEmpty(this.tokenize(t));var l=t.length,a=r.length,s=1,c=l+a;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var p=[{newPos:-1,components:[]}],o=this.extractCommon(p[0],t,r,0);if(p[0].newPos+1>=l&&o+1>=a)return f([{value:this.join(t),count:t.length}]);function v(){for(var d=-1*s;d<=s;d+=2){var m=void 0,_=p[d-1],L=p[d+1],x=(L?L.newPos:0)-d;_&&(p[d-1]=void 0);var y=_&&_.newPos+1<l,O=L&&0<=x&&x<a;if(!y&&!O){p[d]=void 0;continue}if(!y||O&&_.newPos<L.newPos?(m=or(L),i.pushComponent(m.components,void 0,!0)):(m=_,m.newPos++,i.pushComponent(m.components,!0,void 0)),x=i.extractCommon(m,t,r,d),m.newPos+1>=l&&x+1>=a)return f(sr(i,m.components,t,r,i.useLongestToken));p[d]=m}s++}if(u)(function d(){setTimeout(function(){if(s>c)return u();v()||d()},0)})();else for(;s<=c;){var g=v();if(g)return g}},pushComponent:function(r,t,n){var u=r[r.length-1];u&&u.added===t&&u.removed===n?r[r.length-1]={count:u.count+1,added:t,removed:n}:r.push({count:1,added:t,removed:n})},extractCommon:function(r,t,n,u){for(var i=t.length,f=n.length,l=r.newPos,a=l-u,s=0;l+1<i&&a+1<f&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&r.components.push({count:s}),r.newPos=l,a},equals:function(r,t){return this.options.comparator?this.options.comparator(r,t):r===t||this.options.ignoreCase&&r.toLowerCase()===t.toLowerCase()},removeEmpty:function(r){for(var t=[],n=0;n<r.length;n++)r[n]&&t.push(r[n]);return t},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}};function sr(e,r,t,n,u){for(var i=0,f=r.length,l=0,a=0;i<f;i++){var s=r[i];if(s.removed){if(s.value=e.join(n.slice(a,a+s.count)),a+=s.count,i&&r[i-1].added){var p=r[i-1];r[i-1]=r[i],r[i]=p}}else{if(!s.added&&u){var c=t.slice(l,l+s.count);c=c.map(function(v,g){var d=n[a+g];return d.length>v.length?d:v}),s.value=e.join(c)}else s.value=e.join(t.slice(l,l+s.count));l+=s.count,s.added||(a+=s.count)}}var o=r[f-1];return f>1&&typeof o.value=="string"&&(o.added||o.removed)&&e.equals("",o.value)&&(r[f-2].value+=o.value,r.pop()),r}function or(e){return{newPos:e.newPos,components:e.components.slice(0)}}});var qe=w(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.diffChars=pr;j.characterDiff=void 0;var dr=cr(M());function cr(e){return e&&e.__esModule?e:{default:e}}var Pe=new dr.default;j.characterDiff=Pe;function pr(e,r,t){return Pe.diff(e,r,t)}});var se=w(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.generateOptions=vr;function vr(e,r){if(typeof e=="function")r.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}});var Se=w(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.diffWords=wr;D.diffWordsWithSpace=mr;D.wordDiff=void 0;var hr=yr(M()),gr=se();function yr(e){return e&&e.__esModule?e:{default:e}}var Fe=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Me=/\S/,$=new hr.default;D.wordDiff=$;$.equals=function(e,r){return this.options.ignoreCase&&(e=e.toLowerCase(),r=r.toLowerCase()),e===r||this.options.ignoreWhitespace&&!Me.test(e)&&!Me.test(r)};$.tokenize=function(e){for(var r=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<r.length-1;t++)!r[t+1]&&r[t+2]&&Fe.test(r[t])&&Fe.test(r[t+2])&&(r[t]+=r[t+2],r.splice(t+1,2),t--);return r};function wr(e,r,t){return t=(0,gr.generateOptions)(t,{ignoreWhitespace:!0}),$.diff(e,r,t)}function mr(e,r,t){return $.diff(e,r,t)}});var Q=w(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.diffLines=br;I.diffTrimmedLines=Or;I.lineDiff=void 0;var Lr=xr(M()),_r=se();function xr(e){return e&&e.__esModule?e:{default:e}}var G=new Lr.default;I.lineDiff=G;G.tokenize=function(e){var r=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var n=0;n<t.length;n++){var u=t[n];n%2&&!this.options.newlineIsToken?r[r.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),r.push(u))}return r};function br(e,r,t){return G.diff(e,r,t)}function Or(e,r,t){var n=(0,_r.generateOptions)(t,{ignoreWhitespace:!0});return G.diff(e,r,n)}});var Ne=w(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.diffSentences=Fr;J.sentenceDiff=void 0;var Pr=qr(M());function qr(e){return e&&e.__esModule?e:{default:e}}var oe=new Pr.default;J.sentenceDiff=oe;oe.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};function Fr(e,r,t){return oe.diff(e,r,t)}});var He=w(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.diffCss=Nr;X.cssDiff=void 0;var Mr=Sr(M());function Sr(e){return e&&e.__esModule?e:{default:e}}var de=new Mr.default;X.cssDiff=de;de.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Nr(e,r,t){return de.diff(e,r,t)}});var Ae=w(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.diffJson=Dr;E.canonicalize=K;E.jsonDiff=void 0;var Te=Tr(M()),Hr=Q();function Tr(e){return e&&e.__esModule?e:{default:e}}function Y(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y=function(t){return typeof t}:Y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}var Ar=Object.prototype.toString,T=new Te.default;E.jsonDiff=T;T.useLongestToken=!0;T.tokenize=Hr.lineDiff.tokenize;T.castInput=function(e){var r=this.options,t=r.undefinedReplacement,n=r.stringifyReplacer,u=n===void 0?function(i,f){return typeof f>"u"?t:f}:n;return typeof e=="string"?e:JSON.stringify(K(e,null,null,u),u,"  ")};T.equals=function(e,r){return Te.default.prototype.equals.call(T,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function Dr(e,r,t){return T.diff(e,r,t)}function K(e,r,t,n,u){r=r||[],t=t||[],n&&(e=n(u,e));var i;for(i=0;i<r.length;i+=1)if(r[i]===e)return t[i];var f;if(Ar.call(e)==="[object Array]"){for(r.push(e),f=new Array(e.length),t.push(f),i=0;i<e.length;i+=1)f[i]=K(e[i],r,t,n,u);return r.pop(),t.pop(),f}if(e&&e.toJSON&&(e=e.toJSON()),Y(e)==="object"&&e!==null){r.push(e),f={},t.push(f);var l=[],a;for(a in e)e.hasOwnProperty(a)&&l.push(a);for(l.sort(),i=0;i<l.length;i+=1)a=l[i],f[a]=K(e[a],r,t,n,a);r.pop(),t.pop()}else f=e;return f}});var De=w(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.diffArrays=Wr;V.arrayDiff=void 0;var Ir=Er(M());function Er(e){return e&&e.__esModule?e:{default:e}}var U=new Ir.default;V.arrayDiff=U;U.tokenize=function(e){return e.slice()};U.join=U.removeEmpty=function(e){return e};function Wr(e,r,t){return U.diff(e,r,t)}});var k=w(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.parsePatch=zr;function zr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],i=0;function f(){var s={};for(u.push(s);i<t.length;){var c=t[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(c))break;var p=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(c);p&&(s.index=p[1]),i++}for(l(s),l(s),s.hunks=[];i<t.length;){var o=t[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(o))break;if(/^@@/.test(o))s.hunks.push(a());else{if(o&&r.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(o));i++}}}function l(s){var c=/^(---|\+\+\+)\s+(.*)$/.exec(t[i]);if(c){var p=c[1]==="---"?"old":"new",o=c[2].split("	",2),v=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(v)&&(v=v.substr(1,v.length-2)),s[p+"FileName"]=v,s[p+"Header"]=(o[1]||"").trim(),i++}}function a(){var s=i,c=t[i++],p=c.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+p[1],oldLines:typeof p[2]>"u"?1:+p[2],newStart:+p[3],newLines:typeof p[4]>"u"?1:+p[4],lines:[],linedelimiters:[]};o.oldLines===0&&(o.oldStart+=1),o.newLines===0&&(o.newStart+=1);for(var v=0,g=0;i<t.length&&!(t[i].indexOf("--- ")===0&&i+2<t.length&&t[i+1].indexOf("+++ ")===0&&t[i+2].indexOf("@@")===0);i++){var d=t[i].length==0&&i!=t.length-1?" ":t[i][0];if(d==="+"||d==="-"||d===" "||d==="\\")o.lines.push(t[i]),o.linedelimiters.push(n[i]||`
`),d==="+"?v++:d==="-"?g++:d===" "&&(v++,g++);else break}if(!v&&o.newLines===1&&(o.newLines=0),!g&&o.oldLines===1&&(o.oldLines=0),r.strict){if(v!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(s+1));if(g!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(s+1))}return o}for(;i<t.length;)f();return u}});var Ie=w(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.default=Cr;function Cr(e,r,t){var n=!0,u=!1,i=!1,f=1;return function l(){if(n&&!i){if(u?f++:n=!1,e+f<=t)return f;i=!0}if(!u)return i||(n=!0),r<=e-f?-f++:(u=!0,l())}}});var ze=w(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.applyPatch=We;ee.applyPatches=$r;var Ee=k(),Rr=jr(Ie());function jr(e){return e&&e.__esModule?e:{default:e}}function We(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof r=="string"&&(r=(0,Ee.parsePatch)(r)),Array.isArray(r)){if(r.length>1)throw new Error("applyPatch only works with a single input.");r=r[0]}var n=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=r.hunks,f=t.compareLine||function(ue,R,B,H){return R===H},l=0,a=t.fuzzFactor||0,s=0,c=0,p,o;function v(ue,R){for(var B=0;B<ue.lines.length;B++){var H=ue.lines[B],fe=H.length>0?H[0]:" ",ar=H.length>0?H.substr(1):H;if(fe===" "||fe==="-"){if(!f(R+1,n[R],fe,ar)&&(l++,l>a))return!1;R++}}return!0}for(var g=0;g<i.length;g++){for(var d=i[g],m=n.length-d.oldLines,_=0,L=c+d.oldStart-1,x=(0,Rr.default)(L,s,m);_!==void 0;_=x())if(v(d,L+_)){d.offset=c+=_;break}if(_===void 0)return!1;s=d.offset+d.oldStart+d.oldLines}for(var y=0,O=0;O<i.length;O++){var b=i[O],P=b.oldStart+b.offset+y-1;y+=b.newLines-b.oldLines;for(var q=0;q<b.lines.length;q++){var F=b.lines[q],S=F.length>0?F[0]:" ",Z=F.length>0?F.substr(1):F,ie=b.linedelimiters[q];if(S===" ")P++;else if(S==="-")n.splice(P,1),u.splice(P,1);else if(S==="+")n.splice(P,0,Z),u.splice(P,0,ie),P++;else if(S==="\\"){var C=b.lines[q-1]?b.lines[q-1][0]:null;C==="+"?p=!0:C==="-"&&(o=!0)}}}if(p)for(;!n[n.length-1];)n.pop(),u.pop();else o&&(n.push(""),u.push(`
`));for(var N=0;N<n.length-1;N++)n[N]=n[N]+u[N];return n.join("")}function $r(e,r){typeof e=="string"&&(e=(0,Ee.parsePatch)(e));var t=0;function n(){var u=e[t++];if(!u)return r.complete();r.loadFile(u,function(i,f){if(i)return r.complete(i);var l=We(f,u,r);r.patched(u,l,function(a){if(a)return r.complete(a);n()})})}n()}});var ge=w(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.structuredPatch=Ce;W.formatPatch=Re;W.createTwoFilesPatch=je;W.createPatch=Br;var Jr=Q();function ve(e){return Zr(e)||Vr(e)||Ur(e)||Xr()}function Xr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ur(e,r){if(e){if(typeof e=="string")return he(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return he(e,r)}}function Vr(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Zr(e){if(Array.isArray(e))return he(e)}function he(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Ce(e,r,t,n,u,i,f){f||(f={}),typeof f.context>"u"&&(f.context=4);var l=(0,Jr.diffLines)(t,n,f);if(!l)return;l.push({value:"",lines:[]});function a(_){return _.map(function(L){return" "+L})}for(var s=[],c=0,p=0,o=[],v=1,g=1,d=function(L){var x=l[L],y=x.lines||x.value.replace(/\n$/,"").split(`
`);if(x.lines=y,x.added||x.removed){var O;if(!c){var b=l[L-1];c=v,p=g,b&&(o=f.context>0?a(b.lines.slice(-f.context)):[],c-=o.length,p-=o.length)}(O=o).push.apply(O,ve(y.map(function(N){return(x.added?"+":"-")+N}))),x.added?g+=y.length:v+=y.length}else{if(c)if(y.length<=f.context*2&&L<l.length-2){var P;(P=o).push.apply(P,ve(a(y)))}else{var q,F=Math.min(y.length,f.context);(q=o).push.apply(q,ve(a(y.slice(0,F))));var S={oldStart:c,oldLines:v-c+F,newStart:p,newLines:g-p+F,lines:o};if(L>=l.length-2&&y.length<=f.context){var Z=/\n$/.test(t),ie=/\n$/.test(n),C=y.length==0&&o.length>S.oldLines;!Z&&C&&t.length>0&&o.splice(S.oldLines,0,"\\ No newline at end of file"),(!Z&&!C||!ie)&&o.push("\\ No newline at end of file")}s.push(S),c=0,p=0,o=[]}v+=y.length,g+=y.length}},m=0;m<l.length;m++)d(m);return{oldFileName:e,newFileName:r,oldHeader:u,newHeader:i,hunks:s}}function Re(e){var r=[];e.oldFileName==e.newFileName&&r.push("Index: "+e.oldFileName),r.push("==================================================================="),r.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":"	"+e.oldHeader)),r.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":"	"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var n=e.hunks[t];n.oldLines===0&&(n.oldStart-=1),n.newLines===0&&(n.newStart-=1),r.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),r.push.apply(r,n.lines)}return r.join(`
`)+`
`}function je(e,r,t,n,u,i,f){return Re(Ce(e,r,t,n,u,i,f))}function Br(e,r,t,n,u,i){return je(e,e,r,t,n,u,i)}});var Je=w(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.arrayEqual=Gr;re.arrayStartsWith=$e;function Gr(e,r){return e.length!==r.length?!1:$e(e,r)}function $e(e,r){if(r.length>e.length)return!1;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}});var er=w(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.calcLineCount=ke;ne.merge=tt;var Qr=ge(),Yr=k(),ye=Je();function z(e){return rt(e)||et(e)||kr(e)||Kr()}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kr(e,r){if(e){if(typeof e=="string")return we(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return we(e,r)}}function et(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rt(e){if(Array.isArray(e))return we(e)}function we(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ke(e){var r=me(e.lines),t=r.oldLines,n=r.newLines;t!==void 0?e.oldLines=t:delete e.oldLines,n!==void 0?e.newLines=n:delete e.newLines}function tt(e,r,t){e=Xe(e,t),r=Xe(r,t);var n={};(e.index||r.index)&&(n.index=e.index||r.index),(e.newFileName||r.newFileName)&&(Ue(e)?Ue(r)?(n.oldFileName=te(n,e.oldFileName,r.oldFileName),n.newFileName=te(n,e.newFileName,r.newFileName),n.oldHeader=te(n,e.oldHeader,r.oldHeader),n.newHeader=te(n,e.newHeader,r.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=r.oldFileName||e.oldFileName,n.newFileName=r.newFileName||e.newFileName,n.oldHeader=r.oldHeader||e.oldHeader,n.newHeader=r.newHeader||e.newHeader)),n.hunks=[];for(var u=0,i=0,f=0,l=0;u<e.hunks.length||i<r.hunks.length;){var a=e.hunks[u]||{oldStart:1/0},s=r.hunks[i]||{oldStart:1/0};if(Ve(a,s))n.hunks.push(Ze(a,f)),u++,l+=a.newLines-a.oldLines;else if(Ve(s,a))n.hunks.push(Ze(s,l)),i++,f+=s.newLines-s.oldLines;else{var c={oldStart:Math.min(a.oldStart,s.oldStart),oldLines:0,newStart:Math.min(a.newStart+f,s.oldStart+l),newLines:0,lines:[]};nt(c,a.oldStart,a.lines,s.oldStart,s.lines),i++,u++,n.hunks.push(c)}}return n}function Xe(e,r){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,Yr.parsePatch)(e)[0];if(!r)throw new Error("Must provide a base reference or pass in a patch");return(0,Qr.structuredPatch)(void 0,void 0,r,e)}return e}function Ue(e){return e.newFileName&&e.newFileName!==e.oldFileName}function te(e,r,t){return r===t?r:(e.conflict=!0,{mine:r,theirs:t})}function Ve(e,r){return e.oldStart<r.oldStart&&e.oldStart+e.oldLines<r.oldStart}function Ze(e,r){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+r,newLines:e.newLines,lines:e.lines}}function nt(e,r,t,n,u){var i={offset:r,lines:t,index:0},f={offset:n,lines:u,index:0};for(Ge(e,i,f),Ge(e,f,i);i.index<i.lines.length&&f.index<f.lines.length;){var l=i.lines[i.index],a=f.lines[f.index];if((l[0]==="-"||l[0]==="+")&&(a[0]==="-"||a[0]==="+"))it(e,i,f);else if(l[0]==="+"&&a[0]===" "){var s;(s=e.lines).push.apply(s,z(A(i)))}else if(a[0]==="+"&&l[0]===" "){var c;(c=e.lines).push.apply(c,z(A(f)))}else l[0]==="-"&&a[0]===" "?Be(e,i,f):a[0]==="-"&&l[0]===" "?Be(e,f,i,!0):l===a?(e.lines.push(l),i.index++,f.index++):Le(e,A(i),A(f))}Qe(e,i),Qe(e,f),ke(e)}function it(e,r,t){var n=A(r),u=A(t);if(Ye(n)&&Ye(u)){if((0,ye.arrayStartsWith)(n,u)&&Ke(t,n,n.length-u.length)){var i;(i=e.lines).push.apply(i,z(n));return}else if((0,ye.arrayStartsWith)(u,n)&&Ke(r,u,u.length-n.length)){var f;(f=e.lines).push.apply(f,z(u));return}}else if((0,ye.arrayEqual)(n,u)){var l;(l=e.lines).push.apply(l,z(n));return}Le(e,n,u)}function Be(e,r,t,n){var u=A(r),i=ut(t,u);if(i.merged){var f;(f=e.lines).push.apply(f,z(i.merged))}else Le(e,n?i:u,n?u:i)}function Le(e,r,t){e.conflict=!0,e.lines.push({conflict:!0,mine:r,theirs:t})}function Ge(e,r,t){for(;r.offset<t.offset&&r.index<r.lines.length;){var n=r.lines[r.index++];e.lines.push(n),r.offset++}}function Qe(e,r){for(;r.index<r.lines.length;){var t=r.lines[r.index++];e.lines.push(t)}}function A(e){for(var r=[],t=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if(t==="-"&&n[0]==="+"&&(t="+"),t===n[0])r.push(n),e.index++;else break}return r}function ut(e,r){for(var t=[],n=[],u=0,i=!1,f=!1;u<r.length&&e.index<e.lines.length;){var l=e.lines[e.index],a=r[u];if(a[0]==="+")break;if(i=i||l[0]!==" ",n.push(a),u++,l[0]==="+")for(f=!0;l[0]==="+";)t.push(l),l=e.lines[++e.index];a.substr(1)===l.substr(1)?(t.push(l),e.index++):f=!0}if((r[u]||"")[0]==="+"&&i&&(f=!0),f)return t;for(;u<r.length;)n.push(r[u++]);return{merged:n,changes:t}}function Ye(e){return e.reduce(function(r,t){return r&&t[0]==="-"},!0)}function Ke(e,r,t){for(var n=0;n<t;n++){var u=r[r.length-t+n].substr(1);if(e.lines[e.index+n]!==" "+u)return!1}return e.index+=t,!0}function me(e){var r=0,t=0;return e.forEach(function(n){if(typeof n!="string"){var u=me(n.mine),i=me(n.theirs);r!==void 0&&(u.oldLines===i.oldLines?r+=u.oldLines:r=void 0),t!==void 0&&(u.newLines===i.newLines?t+=u.newLines:t=void 0)}else t!==void 0&&(n[0]==="+"||n[0]===" ")&&t++,r!==void 0&&(n[0]==="-"||n[0]===" ")&&r++}),{oldLines:r,newLines:t}}});var rr=w(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.convertChangesToDMP=ft;function ft(e){for(var r=[],t,n,u=0;u<e.length;u++)t=e[u],t.added?n=1:t.removed?n=-1:n=0,r.push([n,t.value]);return r}});var tr=w(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.convertChangesToXML=lt;function lt(e){for(var r=[],t=0;t<e.length;t++){var n=e[t];n.added?r.push("<ins>"):n.removed&&r.push("<del>"),r.push(at(n.value)),n.added?r.push("</ins>"):n.removed&&r.push("</del>")}return r.join("")}function at(e){var r=e;return r=r.replace(/&/g,"&amp;"),r=r.replace(/</g,"&lt;"),r=r.replace(/>/g,"&gt;"),r=r.replace(/"/g,"&quot;"),r}});var lr=w(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});Object.defineProperty(h,"Diff",{enumerable:!0,get:function(){return st.default}});Object.defineProperty(h,"diffChars",{enumerable:!0,get:function(){return ot.diffChars}});Object.defineProperty(h,"diffWords",{enumerable:!0,get:function(){return nr.diffWords}});Object.defineProperty(h,"diffWordsWithSpace",{enumerable:!0,get:function(){return nr.diffWordsWithSpace}});Object.defineProperty(h,"diffLines",{enumerable:!0,get:function(){return ir.diffLines}});Object.defineProperty(h,"diffTrimmedLines",{enumerable:!0,get:function(){return ir.diffTrimmedLines}});Object.defineProperty(h,"diffSentences",{enumerable:!0,get:function(){return dt.diffSentences}});Object.defineProperty(h,"diffCss",{enumerable:!0,get:function(){return ct.diffCss}});Object.defineProperty(h,"diffJson",{enumerable:!0,get:function(){return ur.diffJson}});Object.defineProperty(h,"canonicalize",{enumerable:!0,get:function(){return ur.canonicalize}});Object.defineProperty(h,"diffArrays",{enumerable:!0,get:function(){return pt.diffArrays}});Object.defineProperty(h,"applyPatch",{enumerable:!0,get:function(){return fr.applyPatch}});Object.defineProperty(h,"applyPatches",{enumerable:!0,get:function(){return fr.applyPatches}});Object.defineProperty(h,"parsePatch",{enumerable:!0,get:function(){return vt.parsePatch}});Object.defineProperty(h,"merge",{enumerable:!0,get:function(){return ht.merge}});Object.defineProperty(h,"structuredPatch",{enumerable:!0,get:function(){return be.structuredPatch}});Object.defineProperty(h,"createTwoFilesPatch",{enumerable:!0,get:function(){return be.createTwoFilesPatch}});Object.defineProperty(h,"createPatch",{enumerable:!0,get:function(){return be.createPatch}});Object.defineProperty(h,"convertChangesToDMP",{enumerable:!0,get:function(){return gt.convertChangesToDMP}});Object.defineProperty(h,"convertChangesToXML",{enumerable:!0,get:function(){return yt.convertChangesToXML}});var st=wt(M()),ot=qe(),nr=Se(),ir=Q(),dt=Ne(),ct=He(),ur=Ae(),pt=De(),fr=ze(),vt=k(),ht=er(),be=ge(),gt=rr(),yt=tr();function wt(e){return e&&e.__esModule?e:{default:e}}});var mt=lr(),Lt=(e,r,t="diffLines",n={})=>mt[t](e,r,n).map(i=>`<span style="color: ${i.added?"green":i.removed?"red":"grey"}">${i.value}</span>`).join("");window.getStringsDifference=Lt;
