1import{c as e,V as t,r,W as n,g as i}from"./Bt1B1E7s.js";import{j as o}from"./3neAca5i.js";import{c as l}from"./DtLNBblr.js";var a={},s={},d={},u={};!function(e){function t(){}function r(e,t,r,n,i){for(var o,l=[];t;)l.push(t),o=t.previousComponent,delete t.previousComponent,t=o;l.reverse();for(var a=0,s=l.length,d=0,u=0;a<s;a++){var f=l[a];if(f.removed){if(f.value=e.join(n.slice(u,u+f.count)),u+=f.count,a&&l[a-1].added){var c=l[a-1];l[a-1]=l[a],l[a]=c}}else{if(!f.added&&i){var h=r.slice(d,d+f.count);h=h.map(function(e,t){var r=n[u+t];return r.length>e.length?r:e}),f.value=e.join(h)}else f.value=e.join(r.slice(d,d+f.count));d+=f.count,f.added||(u+=f.count)}}var p=l[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(l[s-2].value+=p.value,l.pop()),l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var l=this;function a(e){return o?(setTimeout(function(){o(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,d=e.length,u=1,f=s+d;i.maxEditLength&&(f=Math.min(f,i.maxEditLength));var c=null!==(n=i.timeout)&&void 0!==n?n:1/0,h=Date.now()+c,p=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(p[0],t,e,0);if(p[0].oldPos+1>=d&&g+1>=s)return a([{value:this.join(t),count:t.length}]);var v=-1/0,m=1/0;function y(){for(var n=Math.max(v,-u);n<=Math.min(m,u);n+=2){var i=void 0,o=p[n-1],f=p[n+1];o&&(p[n-1]=void 0);var c=!1;if(f){var h=f.oldPos-n;c=f&&0<=h&&h<s}var y=o&&o.oldPos+1<d;if(c||y){if(i=!y||c&&o.oldPos+1<f.oldPos?l.addToPath(f,!0,void 0,0):l.addToPath(o,void 0,!0,1),g=l.extractCommon(i,t,e,n),i.oldPos+1>=d&&g+1>=s)return a(r(l,i.lastComponent,t,e,l.useLongestToken));p[n]=i,i.oldPos+1>=d&&(m=Math.min(m,n-1)),g+1>=s&&(v=Math.max(v,n+1))}else p[n]=void 0}u++}if(o)!function e(){setTimeout(function(){if(u>f||Date.now()>h)return o();y()||e()},0)}();else for(;u<=f&&Date.now()<=h;){var b=y();if(b)return b}},addToPath:function(e,t,r,n){var i=e.lastComponent;return i&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}},extractCommon:function(e,t,r,n){for(var i=t.length,o=r.length,l=e.oldPos,a=l-n,s=0;a+1<i&&l+1<o&&this.equals(t[a+1],r[l+1]);)a++,l++,s++;return s&&(e.lastComponent={count:s,previousComponent:e.lastComponent}),e.oldPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}(u);var f,c={};Object.defineProperty(c,"__esModule",{value:!0}),c.diffChars=function(e,t,r){return h.diff(e,t,r)},c.characterDiff=void 0;var h=new((f=u)&&f.__esModule?f:{default:f}).default;c.characterDiff=h;var p={},g={};Object.defineProperty(g,"__esModule",{value:!0}),g.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},Object.defineProperty(p,"__esModule",{value:!0}),p.diffWords=function(e,t,r){return r=(0,m.generateOptions)(r,{ignoreWhitespace:!0}),w.diff(e,t,r)},p.diffWordsWithSpace=function(e,t,r){return w.diff(e,t,r)},p.wordDiff=void 0;var v=function(e){return e&&e.__esModule?e:{default:e}}(u),m=g;var y=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,b=/\S/,w=new v.default;p.wordDiff=w,w.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!b.test(e)&&!b.test(t)},w.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&y.test(t[r])&&y.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var k={};Object.defineProperty(k,"__esModule",{value:!0}),k.diffLines=function(e,t,r){return O.diff(e,t,r)},k.diffTrimmedLines=function(e,t,r){var n=(0,j.generateOptions)(r,{ignoreWhitespace:!0});return O.diff(e,t,n)},k.lineDiff=void 0;
1var x=function(e){return e&&e.__esModule?e:{default:e}}(u),j=g;var O=new x.default;k.lineDiff=O,O.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.diffSentences=function(e,t,r){return P.diff(e,t,r)},L.sentenceDiff=void 0;var C=function(e){return e&&e.__esModule?e:{default:e}}(u);var P=new C.default;L.sentenceDiff=P,P.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var S={};Object.defineProperty(S,"__esModule",{value:!0}),S.diffCss=function(e,t,r){return _.diff(e,t,r)},S.cssDiff=void 0;var D=function(e){return e&&e.__esModule?e:{default:e}}(u);var _=new D.default;S.cssDiff=_,_.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var N={};Object.defineProperty(N,"__esModule",{value:!0}),N.diffJson=function(e,t,r){return E.diff(e,t,r)},N.canonicalize=T,N.jsonDiff=void 0;var M=function(e){return e&&e.__esModule?e:{default:e}}(u),A=k;function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var B=Object.prototype.toString,E=new M.default;function T(e,t,r,n,i){var o,l;for(t=t||[],r=r||[],n&&(e=n(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return r[o];if("[object Array]"===B.call(e)){for(t.push(e),l=new Array(e.length),r.push(l),o=0;o<e.length;o+=1)l[o]=T(e[o],t,r,n,i);return t.pop(),r.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===F(e)&&null!==e){t.push(e),l={},r.push(l);var a,s=[];for(a in e)e.hasOwnProperty(a)&&s.push(a);for(s.sort(),o=0;o<s.length;o+=1)l[a=s[o]]=T(e[a],t,r,n,a);t.pop(),r.pop()}else l=e;return l}N.jsonDiff=E,E.useLongestToken=!0,E.tokenize=A.lineDiff.tokenize,E.c
1astInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=void 0===n?function(e,t){return void 0===t?r:t}:n;return"string"==typeof e?e:JSON.stringify(T(e,null,null,i),i," ")},E.equals=function(e,t){return M.default.prototype.equals.call(E,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var R={};Object.defineProperty(R,"__esModule",{value:!0}),R.diffArrays=function(e,t,r){return H.diff(e,t,r)},R.arrayDiff=void 0;var G=function(e){return e&&e.__esModule?e:{default:e}}(u);var H=new G.default;R.arrayDiff=H,H.tokenize=function(e){return e.slice()},H.join=H.removeEmpty=function(e){return e};var V={},I={};Object.defineProperty(I,"__esModule",{value:!0}),I.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function l(){var e={};for(i.push(e);o<r.length;){var n=r[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(n))break;var l=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(n);l&&(e.index=l[1]),o++}for(a(e),a(e),e.hunks=[];o<r.length;){var d=r[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(d))break;if(/^@@/.test(d))e.hunks.push(s());else{if(d&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(d));o++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(r[o]);if(t){var n="---"===t[1]?"old":"new",i=t[2].split("\t",2),l=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(l)&&(l=l.substr(1,l.length-2)),e[n+"FileName"]=l,e[n+"Header"]=(i[1]||"").trim(),o++}}function s(){var e=o,i=r[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+i[1],oldLines:void 0===i[2]?1:+i[2],newStart:+i[3],newLines:void 0===i[4]?1:+i[4],lines:[],linedelimiters:[]};0===l.oldLines&&(l.oldStart+=1),0===l.newLines&&(l.newStart+=1);for(var a=0,s=0;o<r.length&&!(0===r[o].indexOf("--- ")&&o+2<r.length&&0===r[o+1].indexOf("+++ ")&&0===r[o+2].indexOf("@@"));o++){var d=0==r[o].length&&o!=r.length-1?" ":r[o][0];if("+"!==d&&"-"!==d&&" "!==d&&"\\"!==d)break;l.lines.push(r[o]),l.linedelimiters.push(n[o]||"\n"),"+"===d?a++:"-"===d?s++:" "===d&&(a++,s++)}if(a||1!==l.newLines||(l.newLines=0),s||1!==l.oldLines||(l.oldLines=0),t.strict){if(a!==l.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==l.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return l}for(;o<r.length;)l();return i};var $,W={};$=W,Object.defineProperty($,"__esModule",{value:!0}),$.default=function(e,t,r){var n=!0,i=!1,o=!1,l=1;return function a(){if(n&&!o){if(i?l++:n=!1,e+l<=r)return l;o=!0}if(!i)return o||(n=!0),t<=e-l?-l++:(i=!0,a())}},Object.defineProperty(V,"__esModule",{value:!0}),V.applyPatch=q,V.applyPatches=function(e,t){"string"==typeof e&&(e=(0,z.parsePatch)(e));var r=0;!function n(){var i=e[r++];if(!i)return t.complete();t.loadFile(i,function(e,r){if(e)return t.complete(e);var o=q(r,i,t);t.patched(i,o,function(e){if(e)return t.complete(e);n()})})}()};var z=I,J=function(e){return e&&e.__esModule?e:{default:e}}(W);function q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,z.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,s=r.compareLine||function(e,t,r,n){return t===n},d=0,u=r.fuzzFactor||0,f=0,c=0;function h(e,t){for(var r=0;r<e.lines.length;r++){var n=e.lines[r],i=n.length>0?n[0]:" ",l=n.length>0?n.substr(1):n;if(" "===i||"-"===i){if(!s(t+1,o[t],i,l)&&++d>u)return!1;t++}}return!0}for(var p=0;p<a.length;p++){for(var g=a[p],v=o.length-g.oldLines,m=0,y=c+g.oldStart-1,b=(0,J.default)(y,f,v);void 0!==m;m=b())if(h(g,y+m)){g.offset=c+=m;break}if(void 0===m)return!1;f=g.offset+g.oldStart+g.oldLines}for(var w=0,k=0;k<a.length;k++){var x=a[k],j=x.oldStart+x.offset+w-1;w+=x.newLines-x.oldLines;for(var O=0;O<x.lines.length;O++){var L=x.lines[O],C=L.length>0?L[0]:" ",P=L.length>0?L.substr(1):L,S=x.linedelimiters&&x.linedelimiters[O]||"\n";if(" "===C)j++;else if("-"===C)o.splice(j,1),l.splice(j,1);else if("+"===C)o.splice(j,0,P),l.splice(j,0,S),j++;
1else if("\\"===C){var D=x.lines[O-1]?x.lines[O-1][0]:null;"+"===D?n=!0:"-"===D&&(i=!0)}}}if(n)for(;!o[o.length-1];)o.pop(),l.pop();else i&&(o.push(""),l.push("\n"));for(var _=0;_<o.length-1;_++)o[_]=o[_]+l[_];return o.join("")}var U={},X={};Object.defineProperty(X,"__esModule",{value:!0}),X.structuredPatch=Y,X.formatPatch=ee,X.createTwoFilesPatch=te,X.createPatch=function(e,t,r,n,i,o){return te(e,e,t,r,n,i,o)};var Z=k;function K(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y(e,t,r,n,i,o,l){l||(l={}),void 0===l.context&&(l.context=4);var a=(0,Z.diffLines)(r,n,l);if(a){a.push({value:"",lines:[]});for(var s=[],d=0,u=0,f=[],c=1,h=1,p=function(e){var t=a[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!d){var p=a[e-1];d=c,u=h,p&&(f=l.context>0?v(p.lines.slice(-l.context)):[],d-=f.length,u-=f.length)}(o=f).push.apply(o,K(i.map(function(e){return(t.added?"+":"-")+e}))),t.added?h+=i.length:c+=i.length}else{if(d)if(i.length<=2*l.context&&e<a.length-2){var g;(g=f).push.apply(g,K(v(i)))}else{var m,y=Math.min(i.length,l.context);(m=f).push.apply(m,K(v(i.slice(0,y))));var b={oldStart:d,oldLines:c-d+y,newStart:u,newLines:h-u+y,lines:f};if(e>=a.length-2&&i.length<=l.context){var w=/\n$/.test(r),k=/\n$/.test(n),x=0==i.length&&f.length>b.oldLines;!w&&x&&r.length>0&&f.splice(b.oldLines,0,"\\ No newline at end of file"),(w||x)&&k||f.push("\\ No newline at end of file")}s.push(b),d=0,u=0,f=[]}c+=i.length,h+=i.length}},g=0;g<a.length;g++)p(g);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:s}}function v(e){return e.map(function(e){return" "+e})}}function ee(e){if(Array.isArray(e))return e.map(ee).join("\n");var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];0===n.oldLines&&(n.oldStart-=1),0===n.newLines&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join("\n")+"\n"}function te(e,t,r,n,i,o,l){return ee(Y(e,t,r,n,i,o,l))}var re={};function ne(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}Object.defineProperty(re,"__esModule",{value:!0}),re.arrayEqual=function(e,t){if(e.length!==t.length)return!1;return ne(e,t)},re.arrayStartsWith=ne,Object.defineProperty(U,"__esModule",{value:!0}),U.calcLineCount=de,U.merge=function(e,t,r){e=ue(e,r),t=ue(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index);(e.newFileName||t.newFileName)&&(fe(e)?fe(t)?(n.oldFileName=ce(n,e.oldFileName,t.oldFileName),n.newFileName=ce(n,e.newFileName,t.newFileName),n.oldHeader=ce(n,e.oldHeader,t.oldHeader),n.newHeader=ce(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader));n.hunks=[];var i=0,o=0,l=0,a=0;for(;i<e.hunks.length||o<t.hunks.length;
1){var s=e.hunks[i]||{oldStart:1/0},d=t.hunks[o]||{oldStart:1/0};if(he(s,d))n.hunks.push(pe(s,l)),i++,a+=s.newLines-s.oldLines;else if(he(d,s))n.hunks.push(pe(d,a)),o++,l+=d.newLines-d.oldLines;else{var u={oldStart:Math.min(s.oldStart,d.oldStart),oldLines:0,newStart:Math.min(s.newStart+l,d.oldStart+a),newLines:0,lines:[]};ge(u,s.oldStart,s.lines,d.oldStart,d.lines),o++,i++,n.hunks.push(u)}}return n};var ie=X,oe=I,le=re;function ae(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function de(e){var t=Oe(e.lines),r=t.oldLines,n=t.newLines;void 0!==r?e.oldLines=r:delete e.oldLines,void 0!==n?e.newLines=n:delete e.newLines}function ue(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,oe.parsePatch)(e)[0];
1if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,ie.structuredPatch)(void 0,void 0,t,e)}return e}function fe(e){return e.newFileName&&e.newFileName!==e.oldFileName}function ce(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function he(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function pe(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function ge(e,t,r,n,i){var o={offset:t,lines:r,index:0},l={offset:n,lines:i,index:0};for(be(e,o,l),be(e,l,o);o.index<o.lines.length&&l.index<l.lines.length;){var a=o.lines[o.index],s=l.lines[l.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==s[0]&&"+"!==s[0])if("+"===a[0]&&" "===s[0]){var d;(d=e.lines).push.apply(d,ae(ke(o)))}else if("+"===s[0]&&" "===a[0]){var u;(u=e.lines).push.apply(u,ae(ke(l)))}else"-"===a[0]&&" "===s[0]?me(e,o,l):"-"===s[0]&&" "===a[0]?me(e,l,o,!0):a===s?(e.lines.push(a),o.index++,l.index++):ye(e,ke(o),ke(l));else ve(e,o,l)}we(e,o),we(e,l),de(e)}function ve(e,t,r){var n=ke(t),i=ke(r);if(xe(n)&&xe(i)){var o,l;if((0,le.arrayStartsWith)(n,i)&&je(r,n,n.length-i.length))return void(o=e.lines).push.apply(o,ae(n));if((0,le.arrayStartsWith)(i,n)&&je(t,i,i.length-n.length))return void(l=e.lines).push.apply(l,ae(i))}else if((0,le.arrayEqual)(n,i)){var a;return void(a=e.lines).push.apply(a,ae(n))}ye(e,n,i)}function me(e,t,r,n){var i,o=ke(t),l=function(e,t){var r=[],n=[],i=0,o=!1,l=!1;for(;i<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],s=t[i];if("+"===s[0])break;if(o=o||" "!==a[0],n.push(s),i++,"+"===a[0])for(l=!0;"+"===a[0];)r.push(a),a=e.lines[++e.index];s.substr(1)===a.substr(1)?(r.push(a),e.index++):l=!0}"+"===(t[i]||"")[0]&&o&&(l=!0);if(l)return r;for(;i<t.length;)n.push(t[i++]);return{merged:n,changes:r}}(r,o);l.merged?(i=e.lines).push.apply(i,ae(l.merged)):ye(e,n?l:o,n?o:l)}function ye(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function be(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function we(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function ke(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if("-"===r&&"+"===n[0]&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function xe(e){return e.reduce(function(e,t){return e&&"-"===t[0]},!0)}function je(e,t,r){for(var n=0;n<r;n++){var i=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+i)return!1}return e.index+=r,!0}function Oe(e){var t=0,r=0;return e.forEach(function(e){if("string"!=typeof e){var n=Oe(e.mine),i=Oe(e.theirs);void 0!==t&&(n.oldLines===i.oldLines?t+=n.oldLines:t=void 0),void 0!==r&&(n.newLines===i.newLines?r+=n.newLines:r=void 0)}else void 0===r||"+"!==e[0]&&" "!==e[0]||r++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++}),{oldLines:t,newLines:r}}var Le={};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach(function(t){Se(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(Le,"__esModule",{value:!0}),Le.reversePatch=function e(t){if(Array.isArray(t))return t.map(e).reverse();return Pe(Pe({},t),{},{oldFileName:t.newFileName,oldHeader:t.newHeader,newFileName:t.oldFileName,newHeader:t.oldHeader,hunks:t.hunks.map(function(e){return{oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,linedelimiters:e.linedelimiters,lines:e.lines.map(function(e){return e.startsWith("-")?"+".concat(e.slice(1)):e.startsWith("+")?"-".concat(e.slice(1)):e})}})})};var De={};
1Object.defineProperty(De,"__esModule",{value:!0}),De.convertChangesToDMP=function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e[i]).added?1:t.removed?-1:0,n.push([r,t.value]);return n};var _e={};function Ne(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}Object.defineProperty(_e,"__esModule",{value:!0}),_e.convertChangesToXML=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push(Ne(n.value)),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return r.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return n.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return n.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return l.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return a.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return a.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return s.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return f.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(e,"reversePatch",{enumerable:!0,get:function(){return g.reversePatch}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return v.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return v.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return v.createPatch}}),Object.defineProperty(e,"formatPatch",{enumerable:!0,get:function(){return v.formatPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return y.convertChangesToXML}});var t=function(e){return e&&e.__esModule?e:{default:e}}(u),r=c,n=p,i=k,o=L,l=S,a=N,s=R,d=V,f=I,h=U,g=Le,v=X,m=De,y=_e}(d);var Me=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Ae=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Fe=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Me(t,e,r);return Ae(t,e),t};Object.defineProperty(s,"__esModule",{value:!0}),s.computeLineInformation=s.DiffMethod=s.DiffType=void 0;const Be=Fe(d),Ee=Be;var Te,Re,Ge,He;(Re=Te||(s.DiffType=Te={}))[Re.DEFAULT=0]="DEFAULT",Re[Re.ADDED=1]="ADDED",Re[Re.REMOVED=2]="REMOVED",Re[Re.CHANGED=3]="CHANGED",(He=Ge||(s.DiffMethod=Ge={})).CHARS="diffChars",He.WORDS="diffWords",He.WORDS_WITH_SPACE="diffWordsWithSpace",He.LINES="diffLines",He.TRIMMED_LINES="diffTrimmedLines",He.SENTENCES="diffSentences",He.CSS="diffCss",He.JSON="diffJson";const Ve=e=>{if(""===e)return[];return e.replace(/\n$/,"").split("\n")};s.computeLineInformation=(e,t,r=!1,n=Ge.CHARS,i=0,o=[])=>{let l=[];l="string"==typeof e&&"string"==typeof t?Be.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):Be.diffJson(e,t);let a=i,s=i,d=[],u=0;const f=[],c=[],h=(e,t,i,d,p)=>Ve(e).map((e,g)=>{const v={},m={};if(!(c.includes(`${t}-${g}`)||p&&0!==g)){if(i||d){let i=!0;if(d){s+=1,v.lineNumber=s,v.type=Te.REMOVED,v.value=e||" ";const o=l[t+1];if(o&&o.added){const l=Ve(o.value)[g];
1if(l){const o=h(l,t,!0,!1,!0),{value:a,lineNumber:s,type:d}=o[0].right;if(c.push(`${t+1}-${g}`),m.lineNumber=s,v.value===a)i=!1,m.type=0,v.type=0,m.value=a;else if(m.type=d,r)m.value=a;else{const t=((e,t,r=Ge.CHARS)=>{const n=Ee[r](e,t),i={left:[],right:[]};return n.forEach(({added:e,removed:t,value:r})=>{const n={};return e&&(n.type=Te.ADDED,n.value=r,i.right.push(n)),t&&(n.type=Te.REMOVED,n.value=r,i.left.push(n)),t||e||(n.type=Te.DEFAULT,n.value=r,i.right.push(n),i.left.push(n)),n}),i})(e,a,n);m.value=t.right,v.value=t.left}}}}else a+=1,m.lineNumber=a,m.type=Te.ADDED,m.value=e;i&&!p&&(f.includes(u)||f.push(u))}else s+=1,a+=1,v.lineNumber=s,v.type=Te.DEFAULT,v.value=e,m.lineNumber=a,m.type=Te.DEFAULT,m.value=e;return((null==o?void 0:o.includes(`L-${v.lineNumber}`))||(null==o?void 0:o.includes(`R-${m.lineNumber}`))&&!f.includes(u))&&f.push(u),p||(u+=1),{right:m,left:v}}}).filter(Boolean);return l.forEach(({added:e,removed:t,value:r},n)=>{d=[...d,...h(r,n,e,t)]}),{lineInformation:d,diffLines:f}};var Ie={};var $e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function We(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var ze=/[A-Z]|^ms/g,Je=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qe=function(e){return 45===e.charCodeAt(1)},Ue=function(e){return null!=e&&"boolean"!=typeof e},Xe=We(function(e){return qe(e)?e:e.replace(ze,"-$&").toLowerCase()}),Ze=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Je,function(e,t,r){return Qe={name:t,styles:r,next:Qe},t})}return 1===$e[e]||qe(e)||"number"!=typeof t||0===t?t:t+"px"};function Ke(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return Qe={name:i.name,styles:i.styles,next:Qe},i.name;var o=r;if(void 0!==o.styles){var l=o.next;if(void 0!==l)for(;void 0!==l;)Qe={name:l.name,styles:l.styles,next:Qe},l=l.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ke(e,t,r[i])+";";else for(var o in r){var l=r[o];if("object"!=typeof l){var a=l;null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":Ue(a)&&(n+=Xe(o)+":"+Ze(o,a)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var s=Ke(e,t,l);switch(o){case"animation":case"animationName":n+=Xe(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var d=0;d<l.length;d++)Ue(l[d])&&(n+=Xe(o)+":"+Ze(o,l[d])+";")}return n}(e,t,r)}var a=r;if(null==t)return a;var s=t[a];return void 0!==s?s:a}var Qe,Ye=/label:\s*([^\s;{]+)\s*(;|$)/g;function et(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";Qe=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=Ke(r,t,o)):i+=o[0];for(var l=1;l<e.length;l++){if(i+=Ke(r,t,e[l]),n)i+=o[l]}Ye.lastIndex=0;for(var a,s="";null!==(a=Ye.exec(i));)s+="-"+a[1];var d=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+s;return{name:d,styles:i,next:Qe}}function tt(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}function rt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function nt(e,t,r){var n=[],i=tt(e,n,r);return n.length<2?r:i+t(n)}var it=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var l in o="",i)i[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=i}o&&(r&&(r+=" "),r+=o)}}return r};const ot=t(Object.freeze(Object.defineProperty({__proto__:null,default:function(e){var t=l(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=et(r,t.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(t,i),t.key+"-"+i.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return nt(t.registered,r,it(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=et(r,t.registered);rt(t,i)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=et(r,t.registered),o="animation-"+i.name;return rt(t,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:tt.bind(null,t.registered),merge:nt.bind(null,t.registered,r)}}},Symbol.toStringTag,{value:"Module"})));var lt=e&&e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}
1,at=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});const st=at(ot);Ie.default=(e,t=!1,r="")=>{const{variables:n={}}=e,i=lt(e,["variables"]),o={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},n.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackgroun
1d:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},n.dark||{})},l=t?o.dark:o.light,{css:a,cx:s}=(0,st.default)({key:"react-diff",nonce:r}),d=a({width:"100%",label:"content"}),u=a({[`.${d}`]:{width:"50%"},label:"split-view"}),f=a({width:"100%",background:l.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),c=a({color:l.codeFoldContentColor,label:"code-fold-content"}),h=a({color:l.diffViewerColor,label:"content-text"}),p=a({background:l.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${l.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${l.diffViewerTitleBorderColor}`},[`.${h}`]:{color:l.diffViewerTitleColor}}),g=a({color:l.gutterColor,label:"line-number"}),v=a({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${g}`]:{color:l.removedGutterColor},label:"diff-removed"}),m=a({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${g}`]:{color:l.addedGutterColor},label:"diff-added"}),y=a({background:l.changedBackground,[`.${g}`]:{color:l.gutterColor},label:"diff-changed"}),b=a({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),w=a({background:l.wordAddedBackground,label:"word-added"}),k=a({background:l.wordRemovedBackground,label:"word-removed"}),x=a({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter"}),j=a({backgroundColor:l.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),O=a({backgroundColor:l.emptyLineBackground,label:"empty-line"}),L=a({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${m}`]:{pre:{color:l.addedColor}},[`&.${v}`]:{pre:{color:l.removedColor}}}
1),C=a({background:l.highlightBackground,label:"highlighted-line",[`.${w}, .${k}`]:{backgroundColor:"initial"}}),P=a({label:"highlighted-gutter"}),S=a({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:l.gutterBackground,"&:hover":{cursor:"pointer",background:l.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${m}`]:{background:l.addedGutterBackground},[`&.${v}`]:{background:l.removedGutterBackground},[`&.${P}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),D=a({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),_={diffContainer:f,diffRemoved:v,diffAdded:m,diffChanged:y,splitView:u,marker:L,highlightedGutter:P,highlightedLine:C,gutter:S,line:a({verticalAlign:"baseline",label:"line"}),wordDiff:b,wordAdded:w,wordRemoved:k,codeFoldGutter:x,codeFold:j,emptyGutter:D,emptyLine:O,lineNumber:g,contentText:h,content:d,codeFoldContent:c,titleBlock:p},N=Object.keys(i).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:a(i[t])}),{});return Object.keys(_).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:N[t]?s(_[t],N[t]):_[t]}),{})};var dt={};
1Object.defineProperty(dt,"__esModule",{value:!0}),dt.computeHiddenBlocks=void 0,dt.computeHiddenBlocks=function(e,t,r){let n,i=0,o={},l=[];return e.forEach((e,a)=>{const s=t.some(e=>e>=a-r&&e<=a+r);s||null!=n?s?n=void 0:(n.endLine=a,n.lines++,o[a]=n.index):(n={index:i,startLine:a,endLine:a,lines:1},l.push(n),o[a]=n.index,i++)}),{lineBlocks:o,blocks:l}};var ut=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ft(e,t){return e===t||!(!ut(e)||!ut(t))}function ct(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!ft(e[r],t[r]))return!1;return!0}const ht=t(Object.freeze(Object.defineProperty({__proto__:null,default:function(e,t){void 0===t&&(t=ct);var r=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){r=null},n}},Symbol.toStringTag,{value:"Module"})));!function(t){var i=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return l(t,e),t},d=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiffMethod=t.LineNumberPrefix=void 0;const u=o,f=a(r),c=d(n),h=s;Object.defineProperty(t,"DiffMethod",{enumerable:!0,get:function(){return h.DiffMethod}});const p=d(Ie),g=dt,v=ht,m=v.default||v;var y,b;(b=y||(t.LineNumberPrefix=y={})).LEFT="L",b.RIGHT="R";class w extends f.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0),this.onBlockExpand=e=>{const t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=m(p.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,r)=>(0,u.jsx)("span",{className:(0,c.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===h.DiffType.ADDED,[this.styles.wordRemoved]:e.type===h.DiffType.REMOVED}),children:t?t(e.value):e.value},r)),this.renderLine=(e,t,r,n,i,o)=>{const l=`${r}-${e}`,a=`${o}-${i}`,s=this.props.highlightLines.includes(l)||this.props.highlightLines.includes(a),d=t===h.DiffType.ADDED,p=t===h.DiffType.REMOVED,g=t===h.DiffType.CHANGED;let v;return v=Array.isArray(n)?this.renderWordDiff(n,this.props.renderContent):this.props.renderContent?this.props.renderContent(n):n,(0,u.jsxs)(f.Fragment,{children:[!this.props.hideLineNumbers&&(0,u.jsx)("td",{onClick:e&&this.onLineNumberClickProxy(l),className:(0,c.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:p,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:s}),children:(0,u.jsx)("pre",{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,u.jsx)("td",{onClick:i&&this.onLineNumberClickProxy(a),className:(0,c.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:p,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:s}),children:(0,u.jsx)("pre",{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:r,value:n,additionalLineNumber:i,additionalPrefix:o,styles:this.styles}):null,!this.props.hideMarkers&&(0,u.jsx)("td",{className:(0,c.default)(this.styles.marker,{[this.styles.emptyLine]:!v,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:p,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:s}),children:(0,u.jsxs)("pre",{children:[d&&"+",p&&"-"]}
1)}),(0,u.jsx)("td",{className:(0,c.default)(this.styles.content,{[this.styles.emptyLine]:!v,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:p,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:s}),children:(0,u.jsx)("pre",{className:this.styles.contentText,children:v})})]})},this.renderSplitView=({left:e,right:t},r)=>(0,u.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,y.LEFT,e.value),this.renderLine(t.lineNumber,t.type,y.RIGHT,t.value)]},r),this.renderInlineView=({left:e,right:t},r)=>{let n;return e.type===h.DiffType.REMOVED&&t.type===h.DiffType.ADDED?(0,u.jsxs)(f.Fragment,{children:[(0,u.jsx)("tr",{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,y.LEFT,e.value,null)}),(0,u.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,t.type,y.RIGHT,t.value,t.lineNumber)})]},r):(e.type===h.DiffType.REMOVED&&(n=this.renderLine(e.lineNumber,e.type,y.LEFT,e.value,null)),e.type===h.DiffType.DEFAULT&&(n=this.renderLine(e.lineNumber,e.type,y.LEFT,e.value,t.lineNumber,y.RIGHT)),t.type===h.DiffType.ADDED&&(n=this.renderLine(null,t.type,y.RIGHT,t.value,t.lineNumber)),(0,u.jsx)("tr",{className:this.styles.line,children:n},r))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,r,n)=>{const{hideLineNumbers:i,splitView:o}=this.props,l=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,r,n):(0,u.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",e," lines ..."]}),a=(0,u.jsx)("td",{children:(0,u.jsx)("a",{onClick:this.onBlockClickProxy(t),tabIndex:0,children:l})}),s=!o&&!i;return(0,u.jsxs)("tr",{className:this.styles.codeFold,children:[!i&&(0,u.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,u.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,u.jsx)("td",{className:(0,c.default)({[this.styles.codeFoldGutter]:s})}),s?(0,u.jsxs)(f.Fragment,{children:[(0,u.jsx)("td",{}),a]}):(0,u.jsxs)(f.Fragment,{children:[a,this.props.renderGutter?(0,u.jsx)("td",{}):null,(0,u.jsx)("td",{})]}),(0,u.jsx)("td",{}),(0,u.jsx)("td",{})]},`${r}-${n}`)},this.renderDiff=()=>{const{oldValue:e,newValue:t,splitView:r,disableWordDiff:n,compareMethod:i,linesOffset:o}=this.props,{lineInformation:l,diffLines:a}=(0,h.computeLineInformation)(e,t,n,i,o,this.props.alwaysShowLines),s=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:d,blocks:c}=(0,g.computeHiddenBlocks)(l,a,s);return l.map((e,t)=>{if(this.props.showDiffOnly){const r=d[t];if(void 0!==r){const n=c[r].endLine===t;if(!this.state.expandedBlocks.includes(r)&&n)return(0,u.jsx)(f.Fragment,{children:this.renderSkippedLineIndicator(c[r].lines,r,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(r))return null}}return r?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{const{oldValue:e,newValue:t,useDarkTheme:r,leftTitle:n,rightTitle:i,splitView:o,hideLineNumbers:l,hideMarkers:a,nonce:s}=this.props;if(this.props.compareMethod!==h.DiffMethod.JSON&&("string"!=typeof e||"string"!=typeof t))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,r,s);const d=this.renderDiff();let f=l?2:3,p=l?2:4;a&&(f-=1,p-=1);const g=this.props.renderGutter?1:0,v=(n||i)&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{colSpan:(o?f:p)+g,className:this.styles.titleBlock,children:(0,u.jsx)("pre",{className:this.styles.contentText,children:n})}),o&&(0,u.jsx)("td",{colSpan:f+g,className:this.styles.titleBlock,children:(0,u.jsx)("pre",{className:this.styles.contentText,children:i})})]});return(0,u.jsx)("table",{className:(0,c.default)(this.styles.diffContainer,{[this.styles.splitView]:o}),children:(0,u.jsxs)("tbody",{children:[v,d]})})},this.state={expandedBlocks:[]}}}w.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:h.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},t.default=w}(a);const pt=i(a);
1export{pt as R,a as s};
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.