diff2html 3.4.36 → 3.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bundles/css/diff2html.min.css +1 -1
- package/bundles/js/diff2html-ui-base.min.js +1 -1
- package/bundles/js/diff2html-ui-slim.min.js +1 -1
- package/bundles/js/diff2html-ui.min.js +1 -1
- package/bundles/js/diff2html.min.js +1 -1
- package/lib/diff-parser.js +55 -65
- package/lib/diff-parser.js.map +1 -1
- package/lib/diff2html-templates.d.ts +1 -1
- package/lib/diff2html-templates.d.ts.map +1 -1
- package/lib/diff2html-templates.js +2 -24
- package/lib/diff2html-templates.js.map +1 -1
- package/lib/diff2html.js +16 -54
- package/lib/diff2html.js.map +1 -1
- package/lib/file-list-renderer.js +15 -39
- package/lib/file-list-renderer.js.map +1 -1
- package/lib/hoganjs-utils.js +22 -59
- package/lib/hoganjs-utils.js.map +1 -1
- package/lib/line-by-line-renderer.d.ts +3 -3
- package/lib/line-by-line-renderer.d.ts.map +1 -1
- package/lib/line-by-line-renderer.js +75 -114
- package/lib/line-by-line-renderer.js.map +1 -1
- package/lib/rematch.d.ts +3 -3
- package/lib/rematch.d.ts.map +1 -1
- package/lib/rematch.js +28 -31
- package/lib/rematch.js.map +1 -1
- package/lib/render-utils.d.ts +2 -2
- package/lib/render-utils.d.ts.map +1 -1
- package/lib/render-utils.js +44 -79
- package/lib/render-utils.js.map +1 -1
- package/lib/side-by-side-renderer.d.ts +3 -3
- package/lib/side-by-side-renderer.d.ts.map +1 -1
- package/lib/side-by-side-renderer.js +83 -122
- package/lib/side-by-side-renderer.js.map +1 -1
- package/lib/types.d.ts +6 -6
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -1
- package/lib/types.js.map +1 -1
- package/lib/ui/js/diff2html-ui-base.js +61 -75
- package/lib/ui/js/diff2html-ui-base.js.map +1 -1
- package/lib/ui/js/diff2html-ui-slim.d.ts +2 -1
- package/lib/ui/js/diff2html-ui-slim.d.ts.map +1 -1
- package/lib/ui/js/diff2html-ui-slim.js +6 -24
- package/lib/ui/js/diff2html-ui-slim.js.map +1 -1
- package/lib/ui/js/diff2html-ui.d.ts +2 -1
- package/lib/ui/js/diff2html-ui.d.ts.map +1 -1
- package/lib/ui/js/diff2html-ui.js +7 -27
- package/lib/ui/js/diff2html-ui.js.map +1 -1
- package/lib/ui/js/highlight.js-helpers.d.ts +1 -1
- package/lib/ui/js/highlight.js-helpers.d.ts.map +1 -1
- package/lib/ui/js/highlight.js-helpers.js +17 -17
- package/lib/ui/js/highlight.js-helpers.js.map +1 -1
- package/lib/ui/js/highlight.js-slim.js +53 -55
- package/lib/ui/js/highlight.js-slim.js.map +1 -1
- package/lib/utils.js +4 -4
- package/lib/utils.js.map +1 -1
- package/lib-esm/diff-parser.js +53 -63
- package/lib-esm/diff-parser.js.map +1 -1
- package/lib-esm/diff2html-templates.d.ts +1 -1
- package/lib-esm/diff2html-templates.d.ts.map +1 -1
- package/lib-esm/diff2html-templates.js +1 -1
- package/lib-esm/diff2html-templates.js.map +1 -1
- package/lib-esm/diff2html.js +9 -22
- package/lib-esm/diff2html.js.map +1 -1
- package/lib-esm/file-list-renderer.js +13 -15
- package/lib-esm/file-list-renderer.js.map +1 -1
- package/lib-esm/hoganjs-utils.js +19 -35
- package/lib-esm/hoganjs-utils.js.map +1 -1
- package/lib-esm/line-by-line-renderer.d.ts +3 -3
- package/lib-esm/line-by-line-renderer.d.ts.map +1 -1
- package/lib-esm/line-by-line-renderer.js +71 -89
- package/lib-esm/line-by-line-renderer.js.map +1 -1
- package/lib-esm/rematch.d.ts +3 -3
- package/lib-esm/rematch.d.ts.map +1 -1
- package/lib-esm/rematch.js +28 -31
- package/lib-esm/rematch.js.map +1 -1
- package/lib-esm/render-utils.d.ts +2 -2
- package/lib-esm/render-utils.d.ts.map +1 -1
- package/lib-esm/render-utils.js +41 -54
- package/lib-esm/render-utils.js.map +1 -1
- package/lib-esm/side-by-side-renderer.d.ts +3 -3
- package/lib-esm/side-by-side-renderer.d.ts.map +1 -1
- package/lib-esm/side-by-side-renderer.js +79 -97
- package/lib-esm/side-by-side-renderer.js.map +1 -1
- package/lib-esm/types.d.ts +6 -6
- package/lib-esm/types.d.ts.map +1 -1
- package/lib-esm/types.js +3 -3
- package/lib-esm/types.js.map +1 -1
- package/lib-esm/ui/js/diff2html-ui-base.js +59 -74
- package/lib-esm/ui/js/diff2html-ui-base.js.map +1 -1
- package/lib-esm/ui/js/diff2html-ui-slim.d.ts +2 -1
- package/lib-esm/ui/js/diff2html-ui-slim.d.ts.map +1 -1
- package/lib-esm/ui/js/diff2html-ui-slim.js +4 -23
- package/lib-esm/ui/js/diff2html-ui-slim.js.map +1 -1
- package/lib-esm/ui/js/diff2html-ui.d.ts +2 -1
- package/lib-esm/ui/js/diff2html-ui.d.ts.map +1 -1
- package/lib-esm/ui/js/diff2html-ui.js +4 -23
- package/lib-esm/ui/js/diff2html-ui.js.map +1 -1
- package/lib-esm/ui/js/highlight.js-helpers.d.ts +1 -1
- package/lib-esm/ui/js/highlight.js-helpers.d.ts.map +1 -1
- package/lib-esm/ui/js/highlight.js-helpers.js +17 -17
- package/lib-esm/ui/js/highlight.js-helpers.js.map +1 -1
- package/lib-esm/ui/js/highlight.js-slim.js +1 -1
- package/lib-esm/ui/js/highlight.js-slim.js.map +1 -1
- package/lib-esm/utils.js +4 -4
- package/lib-esm/utils.js.map +1 -1
- package/package.json +35 -36
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[](https://www.npmjs.com/package/diff2html)
|
|
12
12
|
|
|
13
13
|
[](https://www.jsdelivr.com/package/npm/diff2html)
|
|
14
|
-
[](#contributors)
|
|
15
15
|
|
|
16
16
|
diff2html generates pretty HTML diffs from git diff or unified diff output.
|
|
17
17
|
|
|
@@ -253,7 +253,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
253
253
|
#### Example with plain HTML+CSS+JS
|
|
254
254
|
|
|
255
255
|
```html
|
|
256
|
-
<!
|
|
256
|
+
<!doctype html>
|
|
257
257
|
<html lang="en-us">
|
|
258
258
|
<head>
|
|
259
259
|
<meta charset="utf-8" />
|
|
@@ -453,7 +453,7 @@ export class AppDiffComponent implements OnInit {
|
|
|
453
453
|
- HTML
|
|
454
454
|
|
|
455
455
|
```html
|
|
456
|
-
<!
|
|
456
|
+
<!doctype html>
|
|
457
457
|
<html>
|
|
458
458
|
<head>
|
|
459
459
|
<title>diff2html</title>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em;width:calc(100% - 16em)}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.d2h-code-side-line{padding:0 4.5em;width:calc(100% - 9em)}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba
|
|
1
|
+
.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em;width:calc(100% - 16em)}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.d2h-code-side-line{padding:0 4.5em;width:calc(100% - 9em)}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;display:inline-block;margin-top:-1px;-webkit-text-decoration:none;text-decoration:none}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{color:#3572b0;-webkit-text-decoration:none;text-decoration:none}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,(()=>{return e={696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=function(e){for(var t,n,i=[],r=0;r<e.length;r++)n=(t=e[r]).added?1:t.removed?-1:0,i.push([n,t.value]);return i}},826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(i.value.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}},976:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=function(e,t,n){return r.diff(e,t,n)},t.arrayDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}},913:(e,t)=>{"use strict";function n(){}function i(e,t,n,i,r){for(var a=0,s=t.length,l=0,o=0;a<s;a++){var c=t[a];if(c.removed){if(c.value=e.join(i.slice(o,o+c.count)),o+=c.count,a&&t[a-1].added){var f=t[a-1];t[a-1]=t[a],t[a]=f}}else{if(!c.added&&r){var u=n.slice(l,l+c.count);u=u.map((function(e,t){var n=i[o+t];return n.length>e.length?n:e})),c.value=e.join(u)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(o+=c.count)}}var d=t[s-1];return s>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[s-2].value+=d.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.callback;"function"==typeof n&&(a=n,n={}),this.options=n;var s=this;function l(e){return a?(setTimeout((function(){a(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,f=1,u=o+c;n.maxEditLength&&(u=Math.min(u,n.maxEditLength));var d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=o&&p+1>=c)return l([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*f;n<=f;n+=2){var a=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1<o,b=p&&0<=h&&h<c;if(g||b){if(!g||b&&u.newPos<p.newPos?(a=r(p),s.pushComponent(a.components,void 0,!0)):((a=u).newPos++,s.pushComponent(a.components,!0,void 0)),h=s.extractCommon(a,t,e,n),a.newPos+1>=o&&h+1>=c)return l(i(s,a.components,t,e,s.useLongestToken));d[n]=a}else d[n]=void 0}f++}if(a)!function e(){setTimeout((function(){if(f>u)return a();h()||e()}),0)}();else for(;f<=u;){var g=h();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,a=n.length,s=e.newPos,l=s-i,o=0;s+1<r&&l+1<a&&this.equals(t[s+1],n[l+1]);)s++,l++,o++;return o&&e.components.push({count:o}),e.newPos=s,l},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=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},630:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.characterDiff=r},852:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=function(e,t,n){return r.diff(e,t,n)},t.cssDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.cssDiff=r,r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=function(e,t,n){return o.diff(e,t,n)},t.canonicalize=c,t.jsonDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(187);function s(e){return s="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},s(e)}var l=Object.prototype.toString,o=new r.default;function c(e,t,n,i,r){var a,o;for(t=t||[],n=n||[],i&&(e=i(r,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===l.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=c(e[a],t,n,i,r);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===s(e)&&null!==e){t.push(e),o={},n.push(o);var f,u=[];for(f in e)e.hasOwnProperty(f)&&u.push(f);for(u.sort(),a=0;a<u.length;a+=1)o[f=u[a]]=c(e[f],t,n,i,f);t.pop(),n.pop()}else o=e;return o}t.jsonDiff=o,o.useLongestToken=!0,o.tokenize=a.lineDiff.tokenize,o.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,r=void 0===i?function(e,t){return void 0===t?n:t}:i;return"string"==typeof e?e:JSON.stringify(c(e,null,null,r),r," ")},o.equals=function(e,t){return r.default.prototype.equals.call(o,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=function(e,t,n){return s.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var i=(0,a.generateOptions)(n,{ignoreWhitespace:!0});return s.diff(e,t,i)},t.lineDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(9),s=new r.default;t.lineDiff=s,s.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var r=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),t.push(r))}return t}},146:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=function(e,t,n){return r.diff(e,t,n)},t.sentenceDiff=void 0;var r=new(((i=n(913))&&i.__esModule?i:{default:i}).default);t.sentenceDiff=r,r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=function(e,t,n){return n=(0,a.generateOptions)(n,{ignoreWhitespace:!0}),o.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return o.diff(e,t,n)},t.wordDiff=void 0;var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(9),s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,o=new r.default;t.wordDiff=o,o.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},o.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&s.test(t[n])&&s.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return a.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return s.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return s.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return l.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return l.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return c.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return f.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return f.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return p.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return g.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return g.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return g.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return b.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return m.convertChangesToXML}});var i,r=(i=n(913))&&i.__esModule?i:{default:i},a=n(630),s=n(303),l=n(187),o=n(146),c=n(852),f=n(276),u=n(976),d=n(690),p=n(719),h=n(51),g=n(286),b=n(696),m=n(826)},690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=s,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,r.parsePatch)(e));var n=0;!function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var a=s(n,r,t);t.patched(r,a,(function(e){if(e)return t.complete(e);i()}))}))}()};var i,r=n(719),a=(i=n(495))&&i.__esModule?i:{default:i};function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i,s,l=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,f=n.compareLine||function(e,t,n,i){return t===i},u=0,d=n.fuzzFactor||0,p=0,h=0;function g(e,t){for(var n=0;n<e.lines.length;n++){var i=e.lines[n],r=i.length>0?i[0]:" ",a=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!f(t+1,l[t],r,a)&&++u>d)return!1;t++}}return!0}for(var b=0;b<c.length;b++){for(var m=c[b],v=l.length-m.oldLines,y=0,w=h+m.oldStart-1,x=(0,a.default)(w,p,v);void 0!==y;y=x())if(g(m,w+y)){m.offset=h+=y;break}if(void 0===y)return!1;p=m.offset+m.oldStart+m.oldLines}for(var j=0,L=0;L<c.length;L++){var S=c[L],T=S.oldStart+S.offset+j-1;j+=S.newLines-S.oldLines;for(var C=0;C<S.lines.length;C++){var _=S.lines[C],O=_.length>0?_[0]:" ",k=_.length>0?_.substr(1):_,N=S.linedelimiters[C];if(" "===O)T++;else if("-"===O)l.splice(T,1),o.splice(T,1);else if("+"===O)l.splice(T,0,k),o.splice(T,0,N),T++;else if("\\"===O){var E=S.lines[C-1]?S.lines[C-1][0]:null;"+"===E?i=!0:"-"===E&&(s=!0)}}}if(i)for(;!l[l.length-1];)l.pop(),o.pop();else s&&(l.push(""),o.push("\n"));for(var P=0;P<l.length-1;P++)l[P]=l[P]+o[P];return l.join("")}},286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=s,t.formatPatch=l,t.createTwoFilesPatch=o,t.createPatch=function(e,t,n,i,r,a){return o(e,e,t,n,i,r,a)};var i=n(187);function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t,n,a,s,l,o){o||(o={}),void 0===o.context&&(o.context=4);var c=(0,i.diffLines)(n,a,o);if(c){c.push({value:"",lines:[]});for(var f=[],u=0,d=0,p=[],h=1,g=1,b=function(e){var t=c[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var s;if(!u){var l=c[e-1];u=h,d=g,l&&(p=o.context>0?v(l.lines.slice(-o.context)):[],u-=p.length,d-=p.length)}(s=p).push.apply(s,r(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?g+=i.length:h+=i.length}else{if(u)if(i.length<=2*o.context&&e<c.length-2){var b;(b=p).push.apply(b,r(v(i)))}else{var m,y=Math.min(i.length,o.context);(m=p).push.apply(m,r(v(i.slice(0,y))));var w={oldStart:u,oldLines:h-u+y,newStart:d,newLines:g-d+y,lines:p};if(e>=c.length-2&&i.length<=o.context){var x=/\n$/.test(n),j=/\n$/.test(a),L=0==i.length&&p.length>w.oldLines;!x&&L&&n.length>0&&p.splice(w.oldLines,0,"\"),(x||L)&&j||p.push("\")}f.push(w),u=0,d=0,p=[]}h+=i.length,g+=i.length}},m=0;m<c.length;m++)b(m);return{oldFileName:e,newFileName:t,oldHeader:s,newHeader:l,hunks:f}}function v(e){return e.map((function(e){return" "+e}))}}function l(e){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 n=0;n<e.hunks.length;n++){var i=e.hunks[n];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),t.push.apply(t,i.lines)}return t.join("\n")+"\n"}function o(e,t,n,i,r,a,o){return l(s(e,t,n,i,r,a,o))}},51:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=o,t.merge=function(e,t,n){e=c(e,n),t=c(t,n);var i={};(e.index||t.index)&&(i.index=e.index||t.index),(e.newFileName||t.newFileName)&&(f(e)?f(t)?(i.oldFileName=u(i,e.oldFileName,t.oldFileName),i.newFileName=u(i,e.newFileName,t.newFileName),i.oldHeader=u(i,e.oldHeader,t.oldHeader),i.newHeader=u(i,e.newHeader,t.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=t.oldFileName||e.oldFileName,i.newFileName=t.newFileName||e.newFileName,i.oldHeader=t.oldHeader||e.oldHeader,i.newHeader=t.newHeader||e.newHeader)),i.hunks=[];for(var r=0,a=0,s=0,l=0;r<e.hunks.length||a<t.hunks.length;){var o=e.hunks[r]||{oldStart:1/0},g=t.hunks[a]||{oldStart:1/0};if(d(o,g))i.hunks.push(p(o,s)),r++,l+=o.newLines-o.oldLines;else if(d(g,o))i.hunks.push(p(g,l)),a++,s+=g.newLines-g.oldLines;else{var b={oldStart:Math.min(o.oldStart,g.oldStart),oldLines:0,newStart:Math.min(o.newStart+s,g.oldStart+l),newLines:0,lines:[]};h(b,o.oldStart,o.lines,g.oldStart,g.lines),a++,r++,i.hunks.push(b)}}return i};var i=n(286),r=n(719),a=n(780);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e){var t=L(e.lines),n=t.oldLines,i=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function c(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,r.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,i.structuredPatch)(void 0,void 0,t,e)}return e}function f(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function d(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function p(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function h(e,t,n,i,r){var a={offset:t,lines:n,index:0},l={offset:i,lines:r,index:0};for(v(e,a,l),v(e,l,a);a.index<a.lines.length&&l.index<l.lines.length;){var c=a.lines[a.index],f=l.lines[l.index];if("-"!==c[0]&&"+"!==c[0]||"-"!==f[0]&&"+"!==f[0])if("+"===c[0]&&" "===f[0]){var u;(u=e.lines).push.apply(u,s(w(a)))}else if("+"===f[0]&&" "===c[0]){var d;(d=e.lines).push.apply(d,s(w(l)))}else"-"===c[0]&&" "===f[0]?b(e,a,l):"-"===f[0]&&" "===c[0]?b(e,l,a,!0):c===f?(e.lines.push(c),a.index++,l.index++):m(e,w(a),w(l));else g(e,a,l)}y(e,a),y(e,l),o(e)}function g(e,t,n){var i=w(t),r=w(n);if(x(i)&&x(r)){var l,o;if((0,a.arrayStartsWith)(i,r)&&j(n,i,i.length-r.length))return void(l=e.lines).push.apply(l,s(i));if((0,a.arrayStartsWith)(r,i)&&j(t,r,r.length-i.length))return void(o=e.lines).push.apply(o,s(r))}else if((0,a.arrayEqual)(i,r)){var c;return void(c=e.lines).push.apply(c,s(i))}m(e,i,r)}function b(e,t,n,i){var r,a=w(t),l=function(e,t){for(var n=[],i=[],r=0,a=!1,s=!1;r<t.length&&e.index<e.lines.length;){var l=e.lines[e.index],o=t[r];if("+"===o[0])break;if(a=a||" "!==l[0],i.push(o),r++,"+"===l[0])for(s=!0;"+"===l[0];)n.push(l),l=e.lines[++e.index];o.substr(1)===l.substr(1)?(n.push(l),e.index++):s=!0}if("+"===(t[r]||"")[0]&&a&&(s=!0),s)return n;for(;r<t.length;)i.push(t[r++]);return{merged:i,changes:n}}(n,a);l.merged?(r=e.lines).push.apply(r,s(l.merged)):m(e,i?l:a,i?a:l)}function m(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function v(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var i=t.lines[t.index++];e.lines.push(i),t.offset++}}function y(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function w(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===n&&"+"===i[0]&&(n="+"),n!==i[0])break;t.push(i),e.index++}return t}function x(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function j(e,t,n){for(var i=0;i<n;i++){var r=t[t.length-n+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=n,!0}function L(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var i=L(e.mine),r=L(e.theirs);void 0!==t&&(i.oldLines===r.oldLines?t+=i.oldLines:t=void 0),void 0!==n&&(i.newLines===r.newLines?n+=i.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}},719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],a=0;function s(){var e={};for(r.push(e);a<n.length;){var i=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);s&&(e.index=s[1]),a++}for(l(e),l(e),e.hunks=[];a<n.length;){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(o());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function l(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var i="---"===t[1]?"old":"new",r=t[2].split("\t",2),s=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[i+"FileName"]=s,e[i+"Header"]=(r[1]||"").trim(),a++}}function o(){var e=a,r=n[a++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+r[1],oldLines:void 0===r[2]?1:+r[2],newStart:+r[3],newLines:void 0===r[4]?1:+r[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var l=0,o=0;a<n.length&&!(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"));a++){var c=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;s.lines.push(n[a]),s.linedelimiters.push(i[a]||"\n"),"+"===c?l++:"-"===c?o++:" "===c&&(l++,o++)}if(l||1!==s.newLines||(s.newLines=0),o||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(o!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;a<n.length;)s();return r}},780:(e,t)=>{"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=!0,r=!1,a=!1,s=1;return function l(){if(i&&!a){if(r?s++:i=!1,e+s<=n)return s;a=!0}if(!r)return a||(i=!0),t<=e-s?-s++:(r=!0,l())}}},9:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},397:(e,t)=>{!function(e){var t=/\S/,n=/\"/g,i=/\n/g,r=/\r/g,a=/\\/g,s=/\u2028/,l=/\u2029/;function o(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(t.charAt(n+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,i){var r,a=n.length,s=0,l=null,f=null,u="",d=[],p=!1,h=0,g=0,b="{{",m="}}";function v(){u.length>0&&(d.push({tag:"_t",text:new String(u)}),u="")}function y(n,i){if(v(),n&&function(){for(var n=!0,i=g;i<d.length;i++)if(!(n=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(t)))return!1;return n}())for(var r,a=g;a<d.length;a++)d[a].text&&((r=d[a+1])&&">"==r.tag&&(r.indent=d[a].text.toString()),d.splice(a,1));else i||d.push({tag:"\n"});p=!1,g=d.length}function w(e,t){var n="="+m,i=e.indexOf(n,t),r=o(e.substring(e.indexOf("=",t)+1,i)).split(" ");return b=r[0],m=r[r.length-1],i+n.length-1}for(i&&(i=i.split(" "),b=i[0],m=i[1]),h=0;h<a;h++)0==s?c(b,n,h)?(--h,v(),s=1):"\n"==n.charAt(h)?y(p):u+=n.charAt(h):1==s?(h+=b.length-1,"="==(l=(f=e.tags[n.charAt(h+1)])?n.charAt(h+1):"_v")?(h=w(n,h),s=0):(f&&h++,s=2),p=h):c(m,n,h)?(d.push({tag:l,n:o(u),otag:b,ctag:m,i:"/"==l?p-b.length:h+m.length}),u="",h+=m.length-1,s=0,"{"==l&&("}}"==m?h++:"}"===(r=d[d.length-1]).n.substr(r.n.length-1)&&(r.n=r.n.substring(0,r.n.length-1)))):u+=n.charAt(h);return y(p,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function u(t,n,i,r){var a,s=[],l=null,o=null;for(a=i[i.length-1];t.length>0;){if(o=t.shift(),a&&"<"==a.tag&&!(o.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[o.tag]<=e.tags.$||d(o,r))i.push(o),o.nodes=u(t,o.tag,i,r);else{if("/"==o.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+o.n);if(l=i.pop(),o.n!=l.n&&!p(o.n,l.n,r))throw new Error("Nesting error: "+l.n+" vs. "+o.n);return l.end=o.i,s}"\n"==o.tag&&(o.last=0==t.length||"\n"==t[0].tag)}s.push(o)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return s}function d(e,t){for(var n=0,i=t.length;n<i;n++)if(t[n].o==e.n)return e.tag="#",!0}function p(e,t,n){for(var i=0,r=n.length;i<r;i++)if(n[i].c==e&&n[i].o==t)return!0}function h(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+h(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,i){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var g=0;function b(e){return e.replace(a,"\\\\").replace(n,'\\"').replace(i,"\\n").replace(r,"\\r").replace(s,"\\u2028").replace(l,"\\u2029")}function m(e){return~e.indexOf(".")?"d":"f"}function v(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+m(e.n)+'("'+b(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(t,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+m(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+m(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":v,"<":function(t,n){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,i);var r=n.partials[v(t,n)];r.subs=i.subs,r.partials=i.partials},$:function(t,n){var i={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,i),n.subs[t.n]=i.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+m(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+b(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var i,r=0,a=t.length;r<a;r++)(i=e.codegen[t[r].tag])&&i(t[r],n);return n},e.parse=function(e,t,n){return u(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var i=e.cacheKey(t,n),r=this.cache[i];if(r){var a=r.partials;for(var s in a)delete a[s].instance;return r}return r=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[i]=r}}(t)},485:(e,t,n)=>{var i=n(397);i.Template=n(882).Template,i.template=i.Template,e.exports=i},882:(e,t)=>{!function(e){function t(e,t,n){var i;return t&&"object"==typeof t&&(void 0!==t[e]?i=t[e]:n&&t.get&&"function"==typeof t.get&&(i=t.get(e))),i}e.Template=function(e,t,n,i){e=e||{},this.r=e.code||this.r,this.c=n,this.options=i||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=o(e),l.test(e)?e.replace(n,"&").replace(i,"<").replace(r,">").replace(a,"'").replace(s,"""):e},t:o,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],i=t[n.name];if(n.instance&&n.base==i)return n.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=function(e,t,n,i,r,a){function s(){}function l(){}var o;s.prototype=e,l.prototype=e.subs;var c=new s;for(o in c.subs=new l,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=a,t)i[o]||(i[o]=t[o]);for(o in i)c.subs[o]=i[o];for(o in r=r||{},c.stackPartials=r,n)r[o]||(r[o]=n[o]);for(o in r)c.partials[o]=r[o];return c}(i,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,i){var r=this.ep(e,n);return r?r.ri(t,n,i):""},rs:function(e,t,n){var i=e[e.length-1];if(c(i))for(var r=0;r<i.length;r++)e.push(i[r]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,i,r,a,s){var l;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,i,r,a,s)),l=!!e,!i&&l&&t&&t.push("object"==typeof e?e:t[t.length-1]),l)},d:function(e,n,i,r){var a,s=e.split("."),l=this.f(s[0],n,i,r),o=this.options.modelGet,f=null;if("."===e&&c(n[n.length-2]))l=n[n.length-1];else for(var u=1;u<s.length;u++)void 0!==(a=t(s[u],l,o))?(f=l,l=a):l="";return!(r&&!l)&&(r||"function"!=typeof l||(n.push(f),l=this.mv(l,n,i),n.pop()),l)},f:function(e,n,i,r){for(var a=!1,s=!1,l=this.options.modelGet,o=n.length-1;o>=0;o--)if(void 0!==(a=t(e,n[o],l))){s=!0;break}return s?(r||"function"!=typeof a||(a=this.mv(a,n,i)),a):!r&&""},ls:function(e,t,n,i,r){var a=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(o(e.call(t,i)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,i,r,a,s){var l,o=t[t.length-1],c=e.call(o);return"function"==typeof c?!!i||(l=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,o,n,l.substring(r,a),s)):c},mv:function(e,t,n){var i=t[t.length-1],r=e.call(i);return"function"==typeof r?this.ct(o(r.call(i)),i,n):r},sub:function(e,t,n,i){var r=this.subs[e];r&&(this.activeSub=e,r(t,n,this,i),this.activeSub=!1)}};var n=/&/g,i=/</g,r=/>/g,a=/\'/g,s=/\"/g,l=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},468:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=n(699),a=n(593);function s(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function l(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var o=["a/","b/","i/","w/","c/","o/"];function c(e,t,n){var r=void 0!==n?i(i([],o,!0),[n],!1):o,s=((t?new RegExp("^".concat((0,a.escapeForRegExp)(t),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],l=void 0===s?"":s,c=r.find((function(e){return 0===l.indexOf(e)}));return(c?l.slice(c.length):l).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}t.parse=function(e,t){void 0===t&&(t={});var n=[],i=null,a=null,o=null,f=null,u=null,d=null,p=null,h="--- ",g="+++ ",b="@@",m=/^old mode (\d{6})/,v=/^new mode (\d{6})/,y=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,x=/^copy from "?(.+)"?/,j=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,S=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,C=/^dissimilarity index (\d+)%/,_=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,k=/^GIT binary patch/,N=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,E=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,H=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function D(){null!==a&&null!==i&&(i.blocks.push(a),a=null)}function F(){null!==i&&(i.oldName||null===d||(i.oldName=d),i.newName||null===p||(i.newName=p),i.newName&&(n.push(i),i=null)),d=null,p=null}function I(){D(),F(),i={blocks:[],deletedLines:0,addedLines:0}}function A(e){var t;D(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(t[1],10),u=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(t[1],10),f=parseInt(t[2],10),u=parseInt(t[3],10)):(e.startsWith(b)&&console.error("Failed to parse lines, starting in 0!"),o=0,u=0,i.isCombined=!1)),a={lines:[],oldStartLine:o,oldStartLine2:f,newStartLine:u,header:e}}return H.forEach((function(e,f){if(e&&!e.startsWith("*")){var D,F=H[f-1],q=H[f+1],z=H[f+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){if(I(),(D=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(d=c(D[1],void 0,t.dstPrefix),p=c(D[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if(!e.startsWith("Binary files")||(null==i?void 0:i.isGitDiff)){if((!i||!i.isGitDiff&&i&&e.startsWith(h)&&q.startsWith(g)&&z.startsWith(b))&&I(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],a=null,void A("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed");if(e.startsWith(h)&&q.startsWith(g)||e.startsWith(g)&&F.startsWith(h)){if(i&&!i.oldName&&e.startsWith("--- ")&&(D=function(e,t){return c(e,"---",t)}(e,t.srcPrefix)))return i.oldName=D,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(D=function(e,t){return c(e,"+++",t)}(e,t.dstPrefix)))return i.newName=D,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith(b)||i.isGitDiff&&i.oldName&&i.newName&&!a))A(e);else if(a&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==a&&null!==o&&null!==u){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],s=i.isCombined?["- "," -","--"]:["-"];l(e,n)?(i.addedLines++,t.type=r.LineType.INSERT,t.oldNumber=void 0,t.newNumber=u++):l(e,s)?(i.deletedLines++,t.type=r.LineType.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=r.LineType.CONTEXT,t.oldNumber=o++,t.newNumber=u++),a.lines.push(t)}}(e);else{var W=!function(e,t){for(var n=t;n<H.length-3;){if(e.startsWith("diff"))return!1;if(H[n].startsWith(h)&&H[n+1].startsWith(g)&&H[n+2].startsWith(b))return!0;n++}return!1}(e,f);if(null===i)throw new Error("Where is my file !!!");(D=m.exec(e))?i.oldMode=D[1]:(D=v.exec(e))?i.newMode=D[1]:(D=y.exec(e))?(i.deletedFileMode=D[1],i.isDeleted=!0):(D=w.exec(e))?(i.newFileMode=D[1],i.isNew=!0):(D=x.exec(e))?(W&&(i.oldName=D[1]),i.isCopy=!0):(D=j.exec(e))?(W&&(i.newName=D[1]),i.isCopy=!0):(D=L.exec(e))?(W&&(i.oldName=D[1]),i.isRename=!0):(D=S.exec(e))?(W&&(i.newName=D[1]),i.isRename=!0):(D=O.exec(e))?(i.isBinary=!0,i.oldName=c(D[1],void 0,t.srcPrefix),i.newName=c(D[2],void 0,t.dstPrefix),A("Binary file")):k.test(e)?(i.isBinary=!0,A(e)):(D=T.exec(e))?i.unchangedPercentage=parseInt(D[1],10):(D=C.exec(e))?i.changedPercentage=parseInt(D[1],10):(D=_.exec(e))?(i.checksumBefore=D[1],i.checksumAfter=D[2],D[3]&&(i.mode=D[3])):(D=N.exec(e))?(i.checksumBefore=[D[2],D[3]],i.checksumAfter=D[1]):(D=E.exec(e))?(i.oldMode=[D[2],D[3]],i.newMode=D[1]):(D=P.exec(e))?(i.newFileMode=D[1],i.isNew=!0):(D=M.exec(e))&&(i.deletedFileMode=D[1],i.isDeleted=!0)}}}else{if(I(),(D=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(d=c(D[1],void 0,t.dstPrefix),p=c(D[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isBinary=!0}}})),D(),F(),n}},979:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var s=a(n(485));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+n),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,t,0))),i.b("</a>"),i.b("\n"+n),i.b(' <span class="d2h-file-stats">'),i.b("\n"+n),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+n),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+n),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,t,0))),i.b(")</span>"),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <ol class="d2h-file-list">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("files",e,t,0))),i.b("\n"+n),i.b(" </ol>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('"></td>'),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.s(i.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(i.rs(e,t,(function(e,t,n){n.b(n.t(n.f("blockHeader",e,t,0)))})),e.pop()),i.s(i.f("blockHeader",e,t,1),e,t,1,0,0,"")||i.b(" "),i.b("</div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" File without changes"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(i.rp("<fileTag1",e,t," ")),i.b("</span>"),i.b("\n"+n),i.b('<label class="d2h-file-collapse">'),i.b("\n"+n),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+n),i.b(" Viewed"),i.b("\n"+n),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("lineNumber",e,t,0))),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b('">'),i.b("\n"+n),i.s(i.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("prefix",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix"> </span>'),i.b("\n"+n)),i.s(i.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("content",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+n)),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("content",e,t,0))),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+n),i.b(' width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+n),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("diffs",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,t,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-files-diff">'),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.left",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.right",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new s.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})},834:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var o=s(n(468)),c=s(n(479)),f=s(n(378)),u=s(n(170)),d=n(699),p=l(n(63));t.defaultDiff2HtmlConfig=i(i(i({},f.defaultLineByLineRendererConfig),u.defaultSideBySideRendererConfig),{outputFormat:d.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=function(e,n){return void 0===n&&(n={}),o.parse(e,i(i({},t.defaultDiff2HtmlConfig),n))},t.html=function(e,n){void 0===n&&(n={});var r=i(i({},t.defaultDiff2HtmlConfig),n),a="string"==typeof e?o.parse(e,r):e,s=new p.default(r);return(r.drawFileList?c.render(a,s):"")+("side-by-side"===r.outputFormat?new u.default(s,r).render(a):new f.default(s,r).render(a))}},479:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var s=a(n(741)),l="file-summary";t.render=function(e,t){var n=e.map((function(e){return t.render(l,"line",{fileHtmlId:s.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:s.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template("icon",s.getFileIcon(e))})})).join("\n");return t.render(l,"wrapper",{filesNumber:e.length,files:n})}},63:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(485)),o=n(979),c=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,r=e.rawTemplates,a=void 0===r?{}:r,s=Object.entries(a).reduce((function(e,t){var n,r=t[0],a=t[1],s=l.compile(a,{asString:!1});return i(i({},e),((n={})[r]=s,n))}),{});this.preCompiledTemplates=i(i(i({},o.defaultTemplates),n),s)}return e.compile=function(e){return l.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,i,r){var a=this.templateKey(e,t);try{return this.preCompiledTemplates[a].render(n,i,r)}catch(e){throw new Error("Could not find template to render '".concat(a,"'"))}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return"".concat(e,"-").concat(t)},e}();t.default=c},378:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var l=s(n(483)),o=s(n(741)),c=n(699);t.defaultLineByLineRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var f="generic",u="line-by-line",d=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(f,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(u,"file-diff"),i=this.hoganUtils.template(f,"file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return n.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(f,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:o.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return o.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r=t.hoganUtils.render(f,"block-header",{CSSLineClass:o.CSSLineClass,blockHeader:e.isTooBig?i.header:o.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)t.applyRematchMatching(s,l,n).map((function(n){var i=n[0],a=n[1],s=t.processChangedLines(e,e.isCombined,i,a),l=s.left,o=s.right;r+=l,r+=o}));else if(a.length)a.forEach((function(n){var i=o.deconstructLine(n.content,e.isCombined),a=i.prefix,s=i.content;r+=t.generateSingleLineHtml(e,{type:o.CSSLineClass.CONTEXT,prefix:a,content:s,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(s.length||l.length){var c=t.processChangedLines(e,e.isCombined,s,l),f=c.left,u=c.right;r+=f,r+=u}else console.error("Unknown state reached while processing groups of lines",a,s,l)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==c.LineType.INSERT&&i.length||a.type===c.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),a.type===c.LineType.CONTEXT?t.push([[a],[],[]]):a.type===c.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===c.LineType.INSERT&&n.length>0?i.push(a):a.type===c.LineType.DELETE&&n.push(a)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n,r){for(var a={right:"",left:""},s=Math.max(n.length,r.length),l=0;l<s;l++){var c=n[l],f=r[l],u=void 0!==c&&void 0!==f?o.diffHighlight(c.content,f.content,t,this.config):void 0,d=void 0!==c&&void 0!==c.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(c.content,t)),{type:o.toCSSClass(c.type)})),{oldNumber:c.oldNumber,newNumber:c.newNumber}):void 0,p=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(f.content,t)),{type:o.toCSSClass(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,h=this.generateLineHtml(e,d,p),g=h.left,b=h.right;a.left+=g,a.right+=b}return a},e.prototype.generateLineHtml=function(e,t,n){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,n)}},e.prototype.generateSingleLineHtml=function(e,t){if(void 0===t)return"";var n=this.hoganUtils.render(u,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(f,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?" ":t.prefix,content:t.content,lineNumber:n,line:t,file:e})},e}();t.default=d},483:(e,t)=>{"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,i,r=[];for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=function(e){return function(t,i){var r=e(t).trim(),a=e(i).trim();return n(r,a)/(r.length+a.length)}},t.newMatcherFn=function(e){return function t(n,i,r,a){void 0===r&&(r=0),void 0===a&&(a=new Map);var s=function(t,n,i){void 0===i&&(i=new Map);for(var r,a=1/0,s=0;s<t.length;++s)for(var l=0;l<n.length;++l){var o=JSON.stringify([t[s],n[l]]),c=void 0;i.has(o)&&(c=i.get(o))||(c=e(t[s],n[l]),i.set(o,c)),c<a&&(r={indexA:s,indexB:l,score:a=c})}return r}(n,i,a);if(!s||n.length+i.length<3)return[[n,i]];var l=n.slice(0,s.indexA),o=i.slice(0,s.indexB),c=[n[s.indexA]],f=[i[s.indexB]],u=s.indexA+1,d=s.indexB+1,p=n.slice(u),h=i.slice(d),g=t(l,o,r+1,a),b=t(c,f,r+1,a),m=t(p,h,r+1,a),v=b;return(s.indexA>0||s.indexB>0)&&(v=g.concat(v)),(n.length>u||i.length>d)&&(v=v.concat(m)),v}}},741:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var l=s(n(785)),o=n(593),c=s(n(483)),f=n(699);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:f.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:f.DiffStyleType.WORD};var u="/",d=c.newDistanceFn((function(e){return e.value})),p=c.newMatcherFn(d);function h(e){return-1!==e.indexOf("dev/null")}function g(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function b(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function m(e,t,n){void 0===n&&(n=!0);var i=function(e){return e?2:1}(t);return{prefix:e.substring(0,i),content:n?b(e.substring(i)):e.substring(i)}}function v(e){var t=(0,o.unifyPath)(e.oldName),n=(0,o.unifyPath)(e.newName);if(t===n||h(t)||h(n))return h(n)?t:n;for(var i=[],r=[],a=t.split(u),s=n.split(u),l=0,c=a.length-1,f=s.length-1;l<c&&l<f&&a[l]===s[l];)i.push(s[l]),l+=1;for(;c>l&&f>l&&a[c]===s[f];)r.unshift(s[f]),c-=1,f-=1;var d=i.join(u),p=r.join(u),g=a.slice(l,c+1).join(u),b=s.slice(l,f+1).join(u);return d.length&&p.length?d+u+"{"+g+" → "+b+"}"+u+p:d.length?d+u+"{"+g+" → "+b+"}":p.length?"{"+g+" → "+b+"}"+u+p:t+" → "+n}t.toCSSClass=function(e){switch(e){case f.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case f.LineType.INSERT:return t.CSSLineClass.INSERTS;case f.LineType.DELETE:return t.CSSLineClass.DELETES}},t.escapeForHtml=b,t.deconstructLine=m,t.filenameDiff=v,t.getHtmlId=function(e){return"d2h-".concat((0,o.hashCode)(v(e)).toString().slice(-6))},t.getFileIcon=function(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t},t.diffHighlight=function(e,n,r,a){void 0===a&&(a={});var s=i(i({},t.defaultRenderConfig),a),o=s.matching,c=s.maxLineLengthHighlight,f=s.matchWordsThreshold,u=s.diffStyle,h=m(e,r,!1),v=m(n,r,!1);if(h.content.length>c||v.content.length>c)return{oldLine:{prefix:h.prefix,content:b(h.content)},newLine:{prefix:v.prefix,content:b(v.content)}};var y="char"===u?l.diffChars(h.content,v.content):l.diffWordsWithSpace(h.content,v.content),w=[];if("word"===u&&"words"===o){var x=y.filter((function(e){return e.removed})),j=y.filter((function(e){return e.added}));p(j,x).forEach((function(e){1===e[0].length&&1===e[1].length&&d(e[0][0],e[1][0])<f&&(w.push(e[0][0]),w.push(e[1][0]))}))}var L,S=y.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,i=w.indexOf(t)>-1?' class="d2h-change"':"",r=b(t.value);return null!==n?"".concat(e,"<").concat(n).concat(i,">").concat(r,"</").concat(n,">"):"".concat(e).concat(r)}),"");return{oldLine:{prefix:h.prefix,content:(L=S,L.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:v.prefix,content:g(S)}}}},170:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var l=s(n(483)),o=s(n(741)),c=n(699);t.defaultSideBySideRendererConfig=i(i({},o.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var f="generic",u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render(f,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(f,"file-path"),r=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",o.getFileIcon(e));return n.render({file:e,fileHtmlId:o.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:o.filenameDiff(e)},{fileIcon:r,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(f,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:o.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn((function(t){return o.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:t.makeHeaderHtml(i.header,e),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var a=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!a.length)t.applyRematchMatching(s,l,n).map((function(n){var i=n[0],a=n[1],s=t.processChangedLines(e.isCombined,i,a),l=s.left,o=s.right;r.left+=l,r.right+=o}));else if(a.length)a.forEach((function(n){var i=o.deconstructLine(n.content,e.isCombined),a=i.prefix,s=i.content,l=t.generateLineHtml({type:o.CSSLineClass.CONTEXT,prefix:a,content:s,number:n.oldNumber},{type:o.CSSLineClass.CONTEXT,prefix:a,content:s,number:n.newNumber}),c=l.left,f=l.right;r.left+=c,r.right+=f}));else if(s.length||l.length){var c=t.processChangedLines(e.isCombined,s,l),f=c.left,u=c.right;r.left+=f,r.right+=u}else console.error("Unknown state reached while processing groups of lines",a,s,l)})),r})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var a=e.lines[r];(a.type!==c.LineType.INSERT&&i.length||a.type===c.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),a.type===c.LineType.CONTEXT?t.push([[a],[],[]]):a.type===c.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===c.LineType.INSERT&&n.length>0?i.push(a):a.type===c.LineType.DELETE&&n.push(a)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e,t){return this.hoganUtils.render(f,"block-header",{CSSLineClass:o.CSSLineClass,blockHeader:(null==t?void 0:t.isTooBig)?e:o.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),s=0;s<a;s++){var l=t[s],c=n[s],f=void 0!==l&&void 0!==c?o.diffHighlight(l.content,c.content,e,this.config):void 0,u=void 0!==l&&void 0!==l.oldNumber?i(i({},void 0!==f?{prefix:f.oldLine.prefix,content:f.oldLine.content,type:o.CSSLineClass.DELETE_CHANGES}:i(i({},o.deconstructLine(l.content,e)),{type:o.toCSSClass(l.type)})),{number:l.oldNumber}):void 0,d=void 0!==c&&void 0!==c.newNumber?i(i({},void 0!==f?{prefix:f.newLine.prefix,content:f.newLine.content,type:o.CSSLineClass.INSERT_CHANGES}:i(i({},o.deconstructLine(c.content,e)),{type:o.toCSSClass(c.type)})),{number:c.newNumber}):void 0,p=this.generateLineHtml(u,d),h=p.left,g=p.right;r.left+=h,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){var t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(f,"line",{type:(null==e?void 0:e.type)||"".concat(o.CSSLineClass.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),prefix:" "===(null==e?void 0:e.prefix)?" ":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();t.default=u},699:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,(n=t.LineType||(t.LineType={})).INSERT="insert",n.DELETE="delete",n.CONTEXT="context",t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},169:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var r=n(529),a=n(834);t.defaultDiff2HtmlUIConfig=i(i({},a.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,highlightLanguages:new Map,smartSelection:!0,fileContentToggle:!0,stickyFileHeaders:!0});var s=function(){function e(e,n,r,s){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,a.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==s&&(this.hljs=s)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle(),this.config.stickyFileHeaders&&this.stickyFileHeaders()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],i=t[1];if(void 0!==n&&void 0!==i){var r=function(e){null!==e&&null!==e.target&&(e.target===n?(i.scrollTop=n.scrollTop,i.scrollLeft=n.scrollLeft):(n.scrollTop=i.scrollTop,n.scrollLeft=i.scrollLeft))};n.addEventListener("scroll",r),i.addEventListener("scroll",r)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),i=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==i){var r=function(){t.style.display="none",n.style.display="inline",i.style.display="block"},a=function(){t.style.display="inline",n.style.display="none",i.style.display="none"};t.addEventListener("click",(function(){return r()})),n.addEventListener("click",(function(){return a()}));var s=this.getHashTag();"files-summary-show"===s?r():"files-summary-hide"===s?a():e?r():a()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((function(e){e.style.display="flex";var t=function(t){var n,i=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!=i&&(e.classList.toggle("d2h-selected"),i.classList.toggle("d2h-d-none"))};e.addEventListener("click",(function(n){return function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))}(n)}))}))},e.prototype.highlightCode=function(){var e=this,t=this.hljs;if(null===t)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(n){var i=n.getAttribute("data-lang");e.config.highlightLanguages instanceof Map||(e.config.highlightLanguages=new Map(Object.entries(e.config.highlightLanguages)));var a=i&&e.config.highlightLanguages.has(i)?e.config.highlightLanguages.get(i):i?(0,r.getLanguage)(i):"plaintext";n.querySelectorAll(".d2h-code-line-ctn").forEach((function(n){var i=n.textContent,s=n.parentNode;if(null!==i&&null!==s&&e.isElement(s)){var l=(0,r.closeTags)(t.highlight(i,{language:a,ignoreIllegals:!0})),o=(0,r.nodeStream)(n);if(o.length){var c=document.createElementNS("http://www.w3.org/1999/xhtml","div");c.innerHTML=l.value,l.value=(0,r.mergeStreams)(o,(0,r.nodeStream)(c),i)}n.classList.add("hljs"),l.language&&n.classList.add(l.language),n.innerHTML=l.value}}))}))},e.prototype.stickyFileHeaders=function(){this.targetElement.querySelectorAll(".d2h-file-header").forEach((function(e){e.classList.add("d2h-sticky-header")}))},e.prototype.smartSelection=function(){console.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){return null!==e&&void 0!==(null==e?void 0:e.classList)},e}();t.Diff2HtmlUI=s},529:(e,t)=>{"use strict";function n(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function i(e){return e.nodeName.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=function(e){var t=[],n=function(e,r){for(var a=e.firstChild;a;a=a.nextSibling)3===a.nodeType&&null!==a.nodeValue?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=n(a,r),i(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r};return n(e,0),t},t.mergeStreams=function(e,t,r){var a=0,s="",l=[];function o(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){if(null===(t=e)||void 0===(null==t?void 0:t.attributes))throw new Error("Node is not an Element");var t;s+="<".concat(i(e)," ").concat(Array().map.call(e.attributes,(function(e){return"".concat(e.nodeName,'="').concat(n(e.value).replace(/"/g,"""),'"')})).join(" "),">")}function f(e){s+="</"+i(e)+">"}function u(e){("start"===e.event?c:f)(e.node)}for(;e.length||t.length;){var d=o();if(s+=n(r.substring(a,d[0].offset)),a=d[0].offset,d===e){l.reverse().forEach(f);do{u(d.splice(0,1)[0]),d=o()}while(d===e&&d.length&&d[0].offset===a);l.reverse().forEach(c)}else"start"===d[0].event?l.push(d[0].node):l.pop(),u(d.splice(0,1)[0])}return s+n(r.substr(a))},t.closeTags=function(e){var t=new Array;return e.value=e.value.split("\n").map((function(e){var n=t.map((function(e){return'<span class="'.concat(e,'">')})).join(""),i=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);return Array.from(i).forEach((function(e){"</span>"===e[0]?t.shift():t.unshift(e[2])})),n+e+"</span>".repeat(t.length)})).join("\n"),e};var r={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};t.getLanguage=function(e){var t;return null!==(t=r[e])&&void 0!==t?t:"plaintext"}},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var n=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");t.escapeForRegExp=function(e){return e.replace(n,"\\$&")},t.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},t.hashCode=function(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i}}},t={},function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}(169);var e,t}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(()=>(()=>{var e={696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=(t=e[i]).added?1:t.removed?-1:0,r.push([n,t.value]);return r}},826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((i=r.value,void 0,i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var i;return t.join("")}},976:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=function(e,t,n){return i.diff(e,t,n)},t.arrayDiff=void 0;var i=new(((r=n(913))&&r.__esModule?r:{default:r}).default);t.arrayDiff=i,i.tokenize=function(e){return e.slice()},i.join=i.removeEmpty=function(e){return e}},913:(e,t)=>{"use strict";function n(){}function r(e,t,n,r,i){for(var s=0,a=t.length,o=0,l=0;s<a;s++){var c=t[s];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,s&&t[s-1].added){var f=t[s-1];t[s-1]=t[s],t[s]=f}}else{if(!c.added&&i){var d=n.slice(o,o+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(o,o+c.count));o+=c.count,c.added||(l+=c.count)}}var u=t[a-1];return a>1&&"string"==typeof u.value&&(u.added||u.removed)&&e.equals("",u.value)&&(t[a-2].value+=u.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var s=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,f=o+l;n.maxEditLength&&(f=Math.min(f,n.maxEditLength));var d=[{newPos:-1,components:[]}],u=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=o&&u+1>=l)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*c;n<=c;n+=2){var i=void 0,f=d[n-1],u=d[n+1],p=(u?u.newPos:0)-n;f&&(d[n-1]=void 0);var h=f&&f.newPos+1<o,g=u&&0<=p&&p<l;if(h||g){if(!h||g&&f.newPos<u.newPos?(i={newPos:(b=u).newPos,components:b.components.slice(0)},s.pushComponent(i.components,void 0,!0)):((i=f).newPos++,s.pushComponent(i.components,!0,void 0)),p=s.extractCommon(i,t,e,n),i.newPos+1>=o&&p+1>=l)return a(r(s,i.components,t,e,s.useLongestToken));d[n]=i}else d[n]=void 0}var b;c++}if(i)!function e(){setTimeout((function(){if(c>f)return i();p()||e()}),0)}();else for(;c<=f;){var h=p();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,s=n.length,a=e.newPos,o=a-r,l=0;a+1<i&&o+1<s&&this.equals(t[a+1],n[o+1]);)a++,o++,l++;return l&&e.components.push({count:l}),e.newPos=a,o},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=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},630:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return i.diff(e,t,n)},t.characterDiff=void 0;var i=new(((r=n(913))&&r.__esModule?r:{default:r}).default);t.characterDiff=i},852:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=function(e,t,n){return i.diff(e,t,n)},t.cssDiff=void 0;var i=new(((r=n(913))&&r.__esModule?r:{default:r}).default);t.cssDiff=i,i.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=function(e,t,n){return l.diff(e,t,n)},t.canonicalize=c,t.jsonDiff=void 0;var r,i=(r=n(913))&&r.__esModule?r:{default:r},s=n(187);function a(e){return a="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},a(e)}var o=Object.prototype.toString,l=new i.default;function c(e,t,n,r,i){var s,l;for(t=t||[],n=n||[],r&&(e=r(i,e)),s=0;s<t.length;s+=1)if(t[s]===e)return n[s];if("[object Array]"===o.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),s=0;s<e.length;s+=1)l[s]=c(e[s],t,n,r,i);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===a(e)&&null!==e){t.push(e),l={},n.push(l);var f,d=[];for(f in e)e.hasOwnProperty(f)&&d.push(f);for(d.sort(),s=0;s<d.length;s+=1)l[f=d[s]]=c(e[f],t,n,r,f);t.pop(),n.pop()}else l=e;return l}t.jsonDiff=l,l.useLongestToken=!0,l.tokenize=s.lineDiff.tokenize,l.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(c(e,null,null,i),i," ")},l.equals=function(e,t){return i.default.prototype.equals.call(l,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=function(e,t,n){return a.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,s.generateOptions)(n,{ignoreWhitespace:!0});return a.diff(e,t,r)},t.lineDiff=void 0;var r,i=(r=n(913))&&r.__esModule?r:{default:r},s=n(9),a=new i.default;t.lineDiff=a,a.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t}},146:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=function(e,t,n){return i.diff(e,t,n)},t.sentenceDiff=void 0;var i=new(((r=n(913))&&r.__esModule?r:{default:r}).default);t.sentenceDiff=i,i.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=function(e,t,n){return n=(0,s.generateOptions)(n,{ignoreWhitespace:!0}),l.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return l.diff(e,t,n)},t.wordDiff=void 0;var r,i=(r=n(913))&&r.__esModule?r:{default:r},s=n(9),a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,l=new i.default;t.wordDiff=l,l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return s.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return a.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return a.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return o.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return o.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return l.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return c.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return f.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return f.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return d.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return u.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return u.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return p.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return g.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return g.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return g.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return b.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return m.convertChangesToXML}});var r,i=(r=n(913))&&r.__esModule?r:{default:r},s=n(630),a=n(303),o=n(187),l=n(146),c=n(852),f=n(276),d=n(976),u=n(690),p=n(719),h=n(51),g=n(286),b=n(696),m=n(826)},690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=a,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,i.parsePatch)(e));var n=0;!function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var s=a(n,i,t);t.patched(i,s,(function(e){if(e)return t.complete(e);r()}))}))}()};var r,i=n(719),s=(r=n(495))&&r.__esModule?r:{default:r};function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,i.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,a,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,f=n.compareLine||function(e,t,n,r){return t===r},d=0,u=n.fuzzFactor||0,p=0,h=0;function g(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!f(t+1,o[t],i,s)&&++d>u)return!1;t++}}return!0}for(var b=0;b<c.length;b++){for(var m=c[b],v=o.length-m.oldLines,y=0,w=h+m.oldStart-1,x=(0,s.default)(w,p,v);void 0!==y;y=x())if(g(m,w+y)){m.offset=h+=y;break}if(void 0===y)return!1;p=m.offset+m.oldStart+m.oldLines}for(var j=0,S=0;S<c.length;S++){var _=c[S],L=_.oldStart+_.offset+j-1;j+=_.newLines-_.oldLines;for(var T=0;T<_.lines.length;T++){var C=_.lines[T],O=C.length>0?C[0]:" ",k=C.length>0?C.substr(1):C,E=_.linedelimiters[T];if(" "===O)L++;else if("-"===O)o.splice(L,1),l.splice(L,1);else if("+"===O)o.splice(L,0,k),l.splice(L,0,E),L++;else if("\\"===O){var N=_.lines[T-1]?_.lines[T-1][0]:null;"+"===N?r=!0:"-"===N&&(a=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),l.pop();else a&&(o.push(""),l.push("\n"));for(var P=0;P<o.length-1;P++)o[P]=o[P]+l[P];return o.join("")}},286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=a,t.formatPatch=o,t.createTwoFilesPatch=l,t.createPatch=function(e,t,n,r,i,s){return l(e,e,t,n,r,i,s)};var r=n(187);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,s,a,o,l){l||(l={}),void 0===l.context&&(l.context=4);var c=(0,r.diffLines)(n,s,l);if(c){c.push({value:"",lines:[]});for(var f=[],d=0,u=0,p=[],h=1,g=1,b=function(e){var t=c[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var a;if(!d){var o=c[e-1];d=h,u=g,o&&(p=l.context>0?v(o.lines.slice(-l.context)):[],d-=p.length,u-=p.length)}(a=p).push.apply(a,i(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?g+=r.length:h+=r.length}else{if(d)if(r.length<=2*l.context&&e<c.length-2){var b;(b=p).push.apply(b,i(v(r)))}else{var m,y=Math.min(r.length,l.context);(m=p).push.apply(m,i(v(r.slice(0,y))));var w={oldStart:d,oldLines:h-d+y,newStart:u,newLines:g-u+y,lines:p};if(e>=c.length-2&&r.length<=l.context){var x=/\n$/.test(n),j=/\n$/.test(s),S=0==r.length&&p.length>w.oldLines;!x&&S&&n.length>0&&p.splice(w.oldLines,0,"\"),(x||S)&&j||p.push("\")}f.push(w),d=0,u=0,p=[]}h+=r.length,g+=r.length}},m=0;m<c.length;m++)b(m);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:o,hunks:f}}function v(e){return e.map((function(e){return" "+e}))}}function o(e){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 n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function l(e,t,n,r,i,s,l){return o(a(e,t,n,r,i,s,l))}},51:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=l,t.merge=function(e,t,n){e=c(e,n),t=c(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(f(e)?f(t)?(r.oldFileName=d(r,e.oldFileName,t.oldFileName),r.newFileName=d(r,e.newFileName,t.newFileName),r.oldHeader=d(r,e.oldHeader,t.oldHeader),r.newHeader=d(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,s=0,a=0,o=0;i<e.hunks.length||s<t.hunks.length;){var l=e.hunks[i]||{oldStart:1/0},g=t.hunks[s]||{oldStart:1/0};if(u(l,g))r.hunks.push(p(l,a)),i++,o+=l.newLines-l.oldLines;else if(u(g,l))r.hunks.push(p(g,o)),s++,a+=g.newLines-g.oldLines;else{var b={oldStart:Math.min(l.oldStart,g.oldStart),oldLines:0,newStart:Math.min(l.newStart+a,g.oldStart+o),newLines:0,lines:[]};h(b,l.oldStart,l.lines,g.oldStart,g.lines),s++,i++,r.hunks.push(b)}}return r};var r=n(286),i=n(719),s=n(780);function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t=S(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function c(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,i.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,r.structuredPatch)(void 0,void 0,t,e)}return e}function f(e){return e.newFileName&&e.newFileName!==e.oldFileName}function d(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function u(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function p(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function h(e,t,n,r,i){var s={offset:t,lines:n,index:0},o={offset:r,lines:i,index:0};for(v(e,s,o),v(e,o,s);s.index<s.lines.length&&o.index<o.lines.length;){var c=s.lines[s.index],f=o.lines[o.index];if("-"!==c[0]&&"+"!==c[0]||"-"!==f[0]&&"+"!==f[0])if("+"===c[0]&&" "===f[0]){var d;(d=e.lines).push.apply(d,a(w(s)))}else if("+"===f[0]&&" "===c[0]){var u;(u=e.lines).push.apply(u,a(w(o)))}else"-"===c[0]&&" "===f[0]?b(e,s,o):"-"===f[0]&&" "===c[0]?b(e,o,s,!0):c===f?(e.lines.push(c),s.index++,o.index++):m(e,w(s),w(o));else g(e,s,o)}y(e,s),y(e,o),l(e)}function g(e,t,n){var r=w(t),i=w(n);if(x(r)&&x(i)){var o,l;if((0,s.arrayStartsWith)(r,i)&&j(n,r,r.length-i.length))return void(o=e.lines).push.apply(o,a(r));if((0,s.arrayStartsWith)(i,r)&&j(t,i,i.length-r.length))return void(l=e.lines).push.apply(l,a(i))}else if((0,s.arrayEqual)(r,i)){var c;return void(c=e.lines).push.apply(c,a(r))}m(e,r,i)}function b(e,t,n,r){var i,s=w(t),o=function(e,t){for(var n=[],r=[],i=0,s=!1,a=!1;i<t.length&&e.index<e.lines.length;){var o=e.lines[e.index],l=t[i];if("+"===l[0])break;if(s=s||" "!==o[0],r.push(l),i++,"+"===o[0])for(a=!0;"+"===o[0];)n.push(o),o=e.lines[++e.index];l.substr(1)===o.substr(1)?(n.push(o),e.index++):a=!0}if("+"===(t[i]||"")[0]&&s&&(a=!0),a)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}(n,s);o.merged?(i=e.lines).push.apply(i,a(o.merged)):m(e,r?o:s,r?s:o)}function m(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function v(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function y(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function w(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function x(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function j(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function S(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var r=S(e.mine),i=S(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}},719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],s=0;function a(){var e={};for(i.push(e);s<n.length;){var r=n[s];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var a=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);a&&(e.index=a[1]),s++}for(o(e),o(e),e.hunks=[];s<n.length;){var c=n[s];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(s+1)+" "+JSON.stringify(c));s++}}}function o(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[s]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),a=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(a)&&(a=a.substr(1,a.length-2)),e[r+"FileName"]=a,e[r+"Header"]=(i[1]||"").trim(),s++}}function l(){var e=s,i=n[s++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),a={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===a.oldLines&&(a.oldStart+=1),0===a.newLines&&(a.newStart+=1);for(var o=0,l=0;s<n.length&&!(0===n[s].indexOf("--- ")&&s+2<n.length&&0===n[s+1].indexOf("+++ ")&&0===n[s+2].indexOf("@@"));s++){var c=0==n[s].length&&s!=n.length-1?" ":n[s][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;a.lines.push(n[s]),a.linedelimiters.push(r[s]||"\n"),"+"===c?o++:"-"===c?l++:" "===c&&(o++,l++)}if(o||1!==a.newLines||(a.newLines=0),l||1!==a.oldLines||(a.oldLines=0),t.strict){if(o!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return a}for(;s<n.length;)a();return i}},780:(e,t)=>{"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=!0,i=!1,s=!1,a=1;return function o(){if(r&&!s){if(i?a++:r=!1,e+a<=n)return a;s=!0}if(!i)return s||(r=!0),t<=e-a?-a++:(i=!0,o())}}},9:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},397:(e,t)=>{!function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,s=/\\/g,a=/\u2028/,o=/\u2029/;function l(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i,s=n.length,a=0,o=null,f=null,d="",u=[],p=!1,h=0,g=0,b="{{",m="}}";function v(){d.length>0&&(u.push({tag:"_t",text:new String(d)}),d="")}function y(n,r){if(v(),n&&function(){for(var n=!0,r=g;r<u.length;r++)if(!(n=e.tags[u[r].tag]<e.tags._v||"_t"==u[r].tag&&null===u[r].text.match(t)))return!1;return n}())for(var i,s=g;s<u.length;s++)u[s].text&&((i=u[s+1])&&">"==i.tag&&(i.indent=u[s].text.toString()),u.splice(s,1));else r||u.push({tag:"\n"});p=!1,g=u.length}function w(e,t){var n="="+m,r=e.indexOf(n,t),i=l(e.substring(e.indexOf("=",t)+1,r)).split(" ");return b=i[0],m=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),b=r[0],m=r[1]),h=0;h<s;h++)0==a?c(b,n,h)?(--h,v(),a=1):"\n"==n.charAt(h)?y(p):d+=n.charAt(h):1==a?(h+=b.length-1,"="==(o=(f=e.tags[n.charAt(h+1)])?n.charAt(h+1):"_v")?(h=w(n,h),a=0):(f&&h++,a=2),p=h):c(m,n,h)?(u.push({tag:o,n:l(d),otag:b,ctag:m,i:"/"==o?p-b.length:h+m.length}),d="",h+=m.length-1,a=0,"{"==o&&("}}"==m?h++:"}"===(i=u[u.length-1]).n.substr(i.n.length-1)&&(i.n=i.n.substring(0,i.n.length-1)))):d+=n.charAt(h);return y(p,!0),u};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,n,r,i){var s,a=[],o=null,l=null;for(s=r[r.length-1];t.length>0;){if(l=t.shift(),s&&"<"==s.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||u(l,i))r.push(l),l.nodes=d(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(o=r.pop(),l.n!=o.n&&!p(l.n,o.n,i))throw new Error("Nesting error: "+o.n+" vs. "+l.n);return o.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function u(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function p(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function h(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+h(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var g=0;function b(e){return e.replace(s,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(o,"\\u2029")}function m(e){return~e.indexOf(".")?"d":"f"}function v(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+m(e.n)+'("'+b(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,r){g=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+m(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+m(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":v,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[v(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+m(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+b(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var r,i=0,s=t.length;i<s;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(e,t,n){return d(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var s=i.partials;for(var a in s)delete s[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(t)},485:(e,t,n)=>{var r=n(397);r.Template=n(882).Template,r.template=r.Template,e.exports=r},882:(e,t)=>{!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=l(e),o.test(e)?e.replace(n,"&").replace(r,"<").replace(i,">").replace(s,"'").replace(a,"""):e},t:l,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,s){function a(){}function o(){}var l;a.prototype=e,o.prototype=e.subs;var c=new a;for(l in c.subs=new o,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=s,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(c(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,s,a){var o;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,s,a)),o=!!e,!r&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,n,r,i){var s,a=e.split("."),o=this.f(a[0],n,r,i),l=this.options.modelGet,f=null;if("."===e&&c(n[n.length-2]))o=n[n.length-1];else for(var d=1;d<a.length;d++)void 0!==(s=t(a[d],o,l))?(f=o,o=s):o="";return!(i&&!o)&&(i||"function"!=typeof o||(n.push(f),o=this.mv(o,n,r),n.pop()),o)},f:function(e,n,r,i){for(var s=!1,a=!1,o=this.options.modelGet,l=n.length-1;l>=0;l--)if(void 0!==(s=t(e,n[l],o))){a=!0;break}return a?(i||"function"!=typeof s||(s=this.mv(s,n,r)),s):!i&&""},ls:function(e,t,n,r,i){var s=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(l(e.call(t,r)),t,n)),this.options.delimiters=s,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,s,a){var o,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,n,o.substring(i,s),a)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(l(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,s=/\'/g,a=/\"/g,o=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=n(699),i=n(593);function s(e,t){const n=e.split(".");return n.length>1?n[n.length-1]:t}function a(e,t){return t.reduce(((t,n)=>t||e.startsWith(n)),!1)}const o=["a/","b/","i/","w/","c/","o/"];function l(e,t,n){const r=void 0!==n?[...o,n]:o,s=t?new RegExp(`^${(0,i.escapeForRegExp)(t)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,a=""]=s.exec(e)||[],l=r.find((e=>0===a.indexOf(e)));return(l?a.slice(l.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}t.parse=function(e,t={}){const n=[];let i=null,o=null,c=null,f=null,d=null,u=null,p=null;const h="--- ",g="+++ ",b="@@",m=/^old mode (\d{6})/,v=/^new mode (\d{6})/,y=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,x=/^copy from "?(.+)"?/,j=/^copy to "?(.+)"?/,S=/^rename from "?(.+)"?/,_=/^rename to "?(.+)"?/,L=/^similarity index (\d+)%/,T=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,k=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,N=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,H=/^deleted file mode (\d{6}),(\d{6})/,M=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function F(){null!==o&&null!==i&&(i.blocks.push(o),o=null)}function D(){null!==i&&(i.oldName||null===u||(i.oldName=u),i.newName||null===p||(i.newName=p),i.newName&&(n.push(i),i=null)),u=null,p=null}function I(){F(),D(),i={blocks:[],deletedLines:0,addedLines:0}}function A(e){let t;F(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,c=parseInt(t[1],10),d=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,c=parseInt(t[1],10),f=parseInt(t[2],10),d=parseInt(t[3],10)):(e.startsWith(b)&&console.error("Failed to parse lines, starting in 0!"),c=0,d=0,i.isCombined=!1)),o={lines:[],oldStartLine:c,oldStartLine2:f,newStartLine:d,header:e}}return M.forEach(((e,f)=>{if(!e||e.startsWith("*"))return;let F;const D=M[f-1],R=M[f+1],z=M[f+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){if(I(),(F=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(u=l(F[1],void 0,t.dstPrefix),p=l(F[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");return void(i.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==i?void 0:i.isGitDiff)){if(I(),(F=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(u=l(F[1],void 0,t.dstPrefix),p=l(F[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");return void(i.isBinary=!0)}if((!i||!i.isGitDiff&&i&&e.startsWith(h)&&R.startsWith(g)&&z.startsWith(b))&&I(),null==i?void 0:i.isTooBig)return;if(i&&("number"==typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],o=null,void A("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed");if(e.startsWith(h)&&R.startsWith(g)||e.startsWith(g)&&D.startsWith(h)){if(i&&!i.oldName&&e.startsWith("--- ")&&(F=function(e,t){return l(e,"---",t)}(e,t.srcPrefix)))return i.oldName=F,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(F=function(e,t){return l(e,"+++",t)}(e,t.dstPrefix)))return i.newName=F,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith(b)||i.isGitDiff&&i.oldName&&i.newName&&!o))return void A(e);if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===i||null===o||null===c||null===d)return;const t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],s=i.isCombined?["- "," -","--"]:["-"];a(e,n)?(i.addedLines++,t.type=r.LineType.INSERT,t.oldNumber=void 0,t.newNumber=d++):a(e,s)?(i.deletedLines++,t.type=r.LineType.DELETE,t.oldNumber=c++,t.newNumber=void 0):(t.type=r.LineType.CONTEXT,t.oldNumber=c++,t.newNumber=d++),o.lines.push(t)}(e);const q=!function(e,t){let n=t;for(;n<M.length-3;){if(e.startsWith("diff"))return!1;if(M[n].startsWith(h)&&M[n+1].startsWith(g)&&M[n+2].startsWith(b))return!0;n++}return!1}(e,f);if(null===i)throw new Error("Where is my file !!!");(F=m.exec(e))?i.oldMode=F[1]:(F=v.exec(e))?i.newMode=F[1]:(F=y.exec(e))?(i.deletedFileMode=F[1],i.isDeleted=!0):(F=w.exec(e))?(i.newFileMode=F[1],i.isNew=!0):(F=x.exec(e))?(q&&(i.oldName=F[1]),i.isCopy=!0):(F=j.exec(e))?(q&&(i.newName=F[1]),i.isCopy=!0):(F=S.exec(e))?(q&&(i.oldName=F[1]),i.isRename=!0):(F=_.exec(e))?(q&&(i.newName=F[1]),i.isRename=!0):(F=O.exec(e))?(i.isBinary=!0,i.oldName=l(F[1],void 0,t.srcPrefix),i.newName=l(F[2],void 0,t.dstPrefix),A("Binary file")):k.test(e)?(i.isBinary=!0,A(e)):(F=L.exec(e))?i.unchangedPercentage=parseInt(F[1],10):(F=T.exec(e))?i.changedPercentage=parseInt(F[1],10):(F=C.exec(e))?(i.checksumBefore=F[1],i.checksumAfter=F[2],F[3]&&(i.mode=F[3])):(F=E.exec(e))?(i.checksumBefore=[F[2],F[3]],i.checksumAfter=F[1]):(F=N.exec(e))?(i.oldMode=[F[2],F[3]],i.newMode=F[1]):(F=P.exec(e))?(i.newFileMode=F[1],i.isNew=!0):(F=H.exec(e))&&(i.deletedFileMode=F[1],i.isDeleted=!0)})),F(),D(),n}},979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;const r=n(582).__importStar(n(485));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.s(r.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(r.rs(e,t,(function(e,t,n){n.b(n.t(n.f("blockHeader",e,t,0)))})),e.pop()),r.s(r.f("blockHeader",e,t,1),e,t,1,0,0,"")||r.b(" "),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix"> </span>'),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,(function(e,t,r){r.b(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)})),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-wrapper">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new r.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}})},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;const r=n(582),i=r.__importStar(n(468)),s=r.__importStar(n(479)),a=r.__importStar(n(378)),o=r.__importStar(n(170)),l=n(699),c=r.__importDefault(n(63));t.defaultDiff2HtmlConfig=Object.assign(Object.assign(Object.assign({},a.defaultLineByLineRendererConfig),o.defaultSideBySideRendererConfig),{outputFormat:l.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=function(e,n={}){return i.parse(e,Object.assign(Object.assign({},t.defaultDiff2HtmlConfig),n))},t.html=function(e,n={}){const r=Object.assign(Object.assign({},t.defaultDiff2HtmlConfig),n),l="string"==typeof e?i.parse(e,r):e,f=new c.default(r);return(r.drawFileList?s.render(l,f):"")+("side-by-side"===r.outputFormat?new o.default(f,r).render(l):new a.default(f,r).render(l))}},479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;const r=n(582).__importStar(n(741)),i="file-summary";t.render=function(e,t){const n=e.map((e=>t.render(i,"line",{fileHtmlId:r.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:r.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template("icon",r.getFileIcon(e))}))).join("\n");return t.render(i,"wrapper",{filesNumber:e.length,files:n})}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(582).__importStar(n(485)),i=n(979);t.default=class{constructor({compiledTemplates:e={},rawTemplates:t={}}){const n=Object.entries(t).reduce(((e,[t,n])=>{const i=r.compile(n,{asString:!1});return Object.assign(Object.assign({},e),{[t]:i})}),{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},i.defaultTemplates),e),n)}static compile(e){return r.compile(e,{asString:!1})}render(e,t,n,r,i){const s=this.templateKey(e,t);try{return this.preCompiledTemplates[s].render(n,r,i)}catch(e){throw new Error(`Could not find template to render '${s}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}},378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;const r=n(582),i=r.__importStar(n(483)),s=r.__importStar(n(741)),a=n(699);t.defaultLineByLineRendererConfig=Object.assign(Object.assign({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});const o="generic",l="line-by-line";t.default=class{constructor(e,n={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},t.defaultLineByLineRendererConfig),n)}render(e){const t=e.map((e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(o,"wrapper",{content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template(l,"file-diff"),r=this.hoganUtils.template(o,"file-path"),i=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:s.filenameDiff(e)},{fileIcon:i,fileTag:a})})}generateEmptyDiff(){return this.hoganUtils.render(o,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:s.CSSLineClass})}generateFileHtml(e){const t=i.newMatcherFn(i.newDistanceFn((t=>s.deconstructLine(t.content,e.isCombined).content)));return e.blocks.map((n=>{let r=this.hoganUtils.render(o,"block-header",{CSSLineClass:s.CSSLineClass,blockHeader:e.isTooBig?n.header:s.escapeForHtml(n.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(n).forEach((([n,i,a])=>{if(i.length&&a.length&&!n.length)this.applyRematchMatching(i,a,t).map((([t,n])=>{const{left:i,right:s}=this.processChangedLines(e,e.isCombined,t,n);r+=i,r+=s}));else if(n.length)n.forEach((t=>{const{prefix:n,content:i}=s.deconstructLine(t.content,e.isCombined);r+=this.generateSingleLineHtml(e,{type:s.CSSLineClass.CONTEXT,prefix:n,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(i.length||a.length){const{left:t,right:n}=this.processChangedLines(e,e.isCombined,i,a);r+=t,r+=n}else console.error("Unknown state reached while processing groups of lines",n,i,a)})),r})).join("\n")}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const s=e.lines[i];(s.type!==a.LineType.INSERT&&r.length||s.type===a.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),s.type===a.LineType.CONTEXT?t.push([[s],[],[]]):s.type===a.LineType.INSERT&&0===n.length?t.push([[],[],[s]]):s.type===a.LineType.INSERT&&n.length>0?r.push(s):s.type===a.LineType.DELETE&&n.push(s)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((e=>e.content.length))));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}processChangedLines(e,t,n,r){const i={right:"",left:""},a=Math.max(n.length,r.length);for(let o=0;o<a;o++){const a=n[o],l=r[o],c=void 0!==a&&void 0!==l?s.diffHighlight(a.content,l.content,t,this.config):void 0,f=void 0!==a&&void 0!==a.oldNumber?Object.assign(Object.assign({},void 0!==c?{prefix:c.oldLine.prefix,content:c.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:Object.assign(Object.assign({},s.deconstructLine(a.content,t)),{type:s.toCSSClass(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,d=void 0!==l&&void 0!==l.newNumber?Object.assign(Object.assign({},void 0!==c?{prefix:c.newLine.prefix,content:c.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:Object.assign(Object.assign({},s.deconstructLine(l.content,t)),{type:s.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,{left:u,right:p}=this.generateLineHtml(e,f,d);i.left+=u,i.right+=p}return i}generateLineHtml(e,t,n){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,n)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const n=this.hoganUtils.render(l,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(o,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?" ":t.prefix,content:t.content,lineNumber:n,line:t,file:e})}}},483:(e,t)=>{"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=function(e){return(t,r)=>{const i=e(t).trim(),s=e(r).trim();return n(i,s)/(i.length+s.length)}},t.newMatcherFn=function(e){return function t(n,r,i=0,s=new Map){const a=function(t,n,r=new Map){let i,s=1/0;for(let a=0;a<t.length;++a)for(let o=0;o<n.length;++o){const l=JSON.stringify([t[a],n[o]]);let c;r.has(l)&&(c=r.get(l))||(c=e(t[a],n[o]),r.set(l,c)),c<s&&(s=c,i={indexA:a,indexB:o,score:s})}return i}(n,r,s);if(!a||n.length+r.length<3)return[[n,r]];const o=n.slice(0,a.indexA),l=r.slice(0,a.indexB),c=[n[a.indexA]],f=[r[a.indexB]],d=a.indexA+1,u=a.indexB+1,p=n.slice(d),h=r.slice(u),g=t(o,l,i+1,s),b=t(c,f,i+1,s),m=t(p,h,i+1,s);let v=b;return(a.indexA>0||a.indexB>0)&&(v=g.concat(v)),(n.length>d||r.length>u)&&(v=v.concat(m)),v}}},741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;const r=n(582),i=r.__importStar(n(785)),s=n(593),a=r.__importStar(n(483)),o=n(699);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:o.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:o.DiffStyleType.WORD};const l="/",c=a.newDistanceFn((e=>e.value)),f=a.newMatcherFn(c);function d(e){return-1!==e.indexOf("dev/null")}function u(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function p(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function h(e,t,n=!0){const r=function(e){return e?2:1}(t);return{prefix:e.substring(0,r),content:n?p(e.substring(r)):e.substring(r)}}function g(e){const t=(0,s.unifyPath)(e.oldName),n=(0,s.unifyPath)(e.newName);if(t===n||d(t)||d(n))return d(n)?t:n;{const e=[],r=[],i=t.split(l),s=n.split(l);let a=0,o=i.length-1,c=s.length-1;for(;a<o&&a<c&&i[a]===s[a];)e.push(s[a]),a+=1;for(;o>a&&c>a&&i[o]===s[c];)r.unshift(s[c]),o-=1,c-=1;const f=e.join(l),d=r.join(l),u=i.slice(a,o+1).join(l),p=s.slice(a,c+1).join(l);return f.length&&d.length?f+l+"{"+u+" → "+p+"}"+l+d:f.length?f+l+"{"+u+" → "+p+"}":d.length?"{"+u+" → "+p+"}"+l+d:t+" → "+n}}t.toCSSClass=function(e){switch(e){case o.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case o.LineType.INSERT:return t.CSSLineClass.INSERTS;case o.LineType.DELETE:return t.CSSLineClass.DELETES}},t.escapeForHtml=p,t.deconstructLine=h,t.filenameDiff=g,t.getHtmlId=function(e){return`d2h-${(0,s.hashCode)(g(e)).toString().slice(-6)}`},t.getFileIcon=function(e){let t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t},t.diffHighlight=function(e,n,r,s={}){const{matching:a,maxLineLengthHighlight:o,matchWordsThreshold:l,diffStyle:d}=Object.assign(Object.assign({},t.defaultRenderConfig),s),g=h(e,r,!1),b=h(n,r,!1);if(g.content.length>o||b.content.length>o)return{oldLine:{prefix:g.prefix,content:p(g.content)},newLine:{prefix:b.prefix,content:p(b.content)}};const m="char"===d?i.diffChars(g.content,b.content):i.diffWordsWithSpace(g.content,b.content),v=[];if("word"===d&&"words"===a){const e=m.filter((e=>e.removed)),t=m.filter((e=>e.added));f(t,e).forEach((e=>{1===e[0].length&&1===e[1].length&&c(e[0][0],e[1][0])<l&&(v.push(e[0][0]),v.push(e[1][0]))}))}const y=m.reduce(((e,t)=>{const n=t.added?"ins":t.removed?"del":null,r=v.indexOf(t)>-1?' class="d2h-change"':"",i=p(t.value);return null!==n?`${e}<${n}${r}>${i}</${n}>`:`${e}${i}`}),"");return{oldLine:{prefix:g.prefix,content:(w=y,w.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:b.prefix,content:u(y)}};var w}},170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;const r=n(582),i=r.__importStar(n(483)),s=r.__importStar(n(741)),a=n(699);t.defaultSideBySideRendererConfig=Object.assign(Object.assign({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});const o="generic";t.default=class{constructor(e,n={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},t.defaultSideBySideRendererConfig),n)}render(e){const t=e.map((e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(o,"wrapper",{content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template("side-by-side","file-diff"),r=this.hoganUtils.template(o,"file-path"),i=this.hoganUtils.template("icon","file"),a=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:s.filenameDiff(e)},{fileIcon:i,fileTag:a})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(o,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:s.CSSLineClass})}}generateFileHtml(e){const t=i.newMatcherFn(i.newDistanceFn((t=>s.deconstructLine(t.content,e.isCombined).content)));return e.blocks.map((n=>{const r={left:this.makeHeaderHtml(n.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(n).forEach((([n,i,a])=>{if(i.length&&a.length&&!n.length)this.applyRematchMatching(i,a,t).map((([t,n])=>{const{left:i,right:s}=this.processChangedLines(e.isCombined,t,n);r.left+=i,r.right+=s}));else if(n.length)n.forEach((t=>{const{prefix:n,content:i}=s.deconstructLine(t.content,e.isCombined),{left:a,right:o}=this.generateLineHtml({type:s.CSSLineClass.CONTEXT,prefix:n,content:i,number:t.oldNumber},{type:s.CSSLineClass.CONTEXT,prefix:n,content:i,number:t.newNumber});r.left+=a,r.right+=o}));else if(i.length||a.length){const{left:t,right:n}=this.processChangedLines(e.isCombined,i,a);r.left+=t,r.right+=n}else console.error("Unknown state reached while processing groups of lines",n,i,a)})),r})).reduce(((e,t)=>({left:e.left+t.left,right:e.right+t.right})),{left:"",right:""})}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const s=e.lines[i];(s.type!==a.LineType.INSERT&&r.length||s.type===a.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),s.type===a.LineType.CONTEXT?t.push([[s],[],[]]):s.type===a.LineType.INSERT&&0===n.length?t.push([[],[],[s]]):s.type===a.LineType.INSERT&&n.length>0?r.push(s):s.type===a.LineType.DELETE&&n.push(s)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map((e=>e.content.length))));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(o,"block-header",{CSSLineClass:s.CSSLineClass,blockHeader:(null==t?void 0:t.isTooBig)?e:s.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,n){const r={right:"",left:""},i=Math.max(t.length,n.length);for(let a=0;a<i;a++){const i=t[a],o=n[a],l=void 0!==i&&void 0!==o?s.diffHighlight(i.content,o.content,e,this.config):void 0,c=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:Object.assign(Object.assign({},s.deconstructLine(i.content,e)),{type:s.toCSSClass(i.type)})),{number:i.oldNumber}):void 0,f=void 0!==o&&void 0!==o.newNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:Object.assign(Object.assign({},s.deconstructLine(o.content,e)),{type:s.toCSSClass(o.type)})),{number:o.newNumber}):void 0,{left:d,right:u}=this.generateLineHtml(c,f);r.left+=d,r.right+=u}return r}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(o,"line",{type:(null==e?void 0:e.type)||`${s.CSSLineClass.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?n:`${n} d2h-code-side-emptyplaceholder`,prefix:" "===(null==e?void 0:e.prefix)?" ":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})}}},699:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(n||(t.LineType=n={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;const r=n(529),i=n(834);t.defaultDiff2HtmlUIConfig=Object.assign(Object.assign({},i.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,highlightLanguages:new Map,smartSelection:!0,fileContentToggle:!0,stickyFileHeaders:!0}),t.Diff2HtmlUI=class{constructor(e,n,r={},s){this.hljs=null,this.currentSelectionColumnId=-1,this.config=Object.assign(Object.assign({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,i.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==s&&(this.hljs=s)}draw(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle(),this.config.stickyFileHeaders&&this.stickyFileHeaders()}synchronisedScroll(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((e=>{const[t,n]=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff"));if(void 0===t||void 0===n)return;const r=e=>{null!==e&&null!==e.target&&(e.target===t?(n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft):(t.scrollTop=n.scrollTop,t.scrollLeft=n.scrollLeft))};t.addEventListener("scroll",r),n.addEventListener("scroll",r)}))}fileListToggle(e){const t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),r=this.targetElement.querySelector(".d2h-file-list");if(null===t||null===n||null===r)return;const i=()=>{t.style.display="none",n.style.display="inline",r.style.display="block"},s=()=>{t.style.display="inline",n.style.display="none",r.style.display="none"};t.addEventListener("click",(()=>i())),n.addEventListener("click",(()=>s()));const a=this.getHashTag();"files-summary-show"===a?i():"files-summary-hide"===a?s():e?i():s()}fileContentToggle(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((e=>{e.style.display="flex";const t=t=>{var n;const r=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!=r&&(e.classList.toggle("d2h-selected"),r.classList.toggle("d2h-d-none"))};e.addEventListener("click",(n=>(n=>{e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))})(n)))}))}highlightCode(){const e=this.hljs;if(null===e)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((t=>{const n=t.getAttribute("data-lang");this.config.highlightLanguages instanceof Map||(this.config.highlightLanguages=new Map(Object.entries(this.config.highlightLanguages)));const i=n&&this.config.highlightLanguages.has(n)?this.config.highlightLanguages.get(n):n?(0,r.getLanguage)(n):"plaintext";t.querySelectorAll(".d2h-code-line-ctn").forEach((t=>{const n=t.textContent,s=t.parentNode;if(null===n||null===s||!this.isElement(s))return;const a=(0,r.closeTags)(e.highlight(n,{language:i,ignoreIllegals:!0})),o=(0,r.nodeStream)(t);if(o.length){const e=document.createElementNS("http://www.w3.org/1999/xhtml","div");e.innerHTML=a.value,a.value=(0,r.mergeStreams)(o,(0,r.nodeStream)(e),n)}t.classList.add("hljs"),a.language&&t.classList.add(a.language),t.innerHTML=a.value}))}))}stickyFileHeaders(){this.targetElement.querySelectorAll(".d2h-file-header").forEach((e=>{e.classList.add("d2h-sticky-header")}))}smartSelection(){console.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")}getHashTag(){const e=document.URL,t=e.indexOf("#");let n=null;return-1!==t&&(n=e.substr(t+1)),n}isElement(e){return null!==e&&void 0!==(null==e?void 0:e.classList)}}},529:(e,t)=>{"use strict";function n(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function r(e){return e.nodeName.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=function(e){const t=[],n=(e,i)=>{for(let s=e.firstChild;s;s=s.nextSibling)3===s.nodeType&&null!==s.nodeValue?i+=s.nodeValue.length:1===s.nodeType&&(t.push({event:"start",offset:i,node:s}),i=n(s,i),r(s).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:s}));return i};return n(e,0),t},t.mergeStreams=function(e,t,i){let s=0,a="";const o=[];function l(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){if(null===(t=e)||void 0===(null==t?void 0:t.attributes))throw new Error("Node is not an Element");var t;a+=`<${r(e)} ${Array().map.call(e.attributes,(e=>`${e.nodeName}="${n(e.value).replace(/"/g,""")}"`)).join(" ")}>`}function f(e){a+="</"+r(e)+">"}function d(e){("start"===e.event?c:f)(e.node)}for(;e.length||t.length;){let t=l();if(a+=n(i.substring(s,t[0].offset)),s=t[0].offset,t===e){o.reverse().forEach(f);do{d(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===s);o.reverse().forEach(c)}else"start"===t[0].event?o.push(t[0].node):o.pop(),d(t.splice(0,1)[0])}return a+n(i.substr(s))},t.closeTags=function(e){const t=new Array;return e.value=e.value.split("\n").map((e=>{const n=t.map((e=>`<span class="${e}">`)).join(""),r=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);return Array.from(r).forEach((e=>{"</span>"===e[0]?t.shift():t.unshift(e[2])})),n+e+"</span>".repeat(t.length)})).join("\n"),e};const i={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};t.getLanguage=function(e){var t;return null!==(t=i[e])&&void 0!==t?t:"plaintext"}},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;const n=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");t.escapeForRegExp=function(e){return e.replace(n,"\\$&")},t.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},t.hashCode=function(e){let t,n,r,i=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}},582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>M,__assign:()=>s,__asyncDelegator:()=>L,__asyncGenerator:()=>_,__asyncValues:()=>T,__await:()=>S,__awaiter:()=>h,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>H,__classPrivateFieldSet:()=>P,__createBinding:()=>b,__decorate:()=>o,__disposeResources:()=>D,__esDecorate:()=>c,__exportStar:()=>m,__extends:()=>i,__generator:()=>g,__importDefault:()=>E,__importStar:()=>k,__makeTemplateObject:()=>C,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>y,__rest:()=>a,__runInitializers:()=>f,__setFunctionName:()=>u,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>x,__values:()=>v,default:()=>I});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function o(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,s){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",f=!t&&e?r.static?e:e.prototype:null,d=t||(f?Object.getOwnPropertyDescriptor(f,r.name):{}),u=!1,p=n.length-1;p>=0;p--){var h={};for(var g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(e||null))};var b=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(o=a(b.get))&&(d.get=o),(o=a(b.set))&&(d.set=o),(o=a(b.init))&&i.unshift(o)}else(o=a(b))&&("field"===l?i.unshift(o):d[c]=o)}f&&Object.defineProperty(f,r.name,d),u=!0}function f(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function u(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var b=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function m(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)r[i]=s[a];return r}function j(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||o(e,t)}))})}function o(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,c):f(s[0][2],n)}catch(e){f(s[0][3],e)}var n}function l(e){o("next",e)}function c(e){o("throw",e)}function f(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function L(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&b(t,e,n);return O(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function N(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function H(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const I={__extends:i,__assign:s,__rest:a,__decorate:o,__param:l,__metadata:p,__awaiter:h,__generator:g,__createBinding:b,__exportStar:m,__values:v,__read:y,__spread:w,__spreadArrays:x,__spreadArray:j,__await:S,__asyncGenerator:_,__asyncDelegator:L,__asyncValues:T,__makeTemplateObject:C,__importStar:k,__importDefault:E,__classPrivateFieldGet:N,__classPrivateFieldSet:P,__classPrivateFieldIn:H,__addDisposableResource:M,__disposeResources:D}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(169)})()));
|