bkui-vue 1.0.0 → 1.0.2

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.
Files changed (262) hide show
  1. package/dist/index.cjs.js +47 -47
  2. package/dist/index.esm.js +10405 -10394
  3. package/dist/index.umd.js +47 -47
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/index.d.ts +57 -111
  15. package/lib/affix/index.js +19 -19
  16. package/lib/alert/alert.d.ts +1 -1
  17. package/lib/alert/index.d.ts +82 -132
  18. package/lib/alert/index.js +20 -20
  19. package/lib/animate-number/index.d.ts +33 -96
  20. package/lib/backtop/index.d.ts +69 -117
  21. package/lib/badge/badge.d.ts +1 -1
  22. package/lib/badge/index.d.ts +120 -153
  23. package/lib/badge/index.js +19 -19
  24. package/lib/breadcrumb/index.d.ts +67 -119
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.d.ts +2 -2
  27. package/lib/button/index.d.ts +119 -155
  28. package/lib/button/index.js +19 -20
  29. package/lib/card/card.d.ts +1 -1
  30. package/lib/card/index.d.ts +129 -158
  31. package/lib/card/index.js +20 -22
  32. package/lib/cascader/cascader.d.ts +3 -3
  33. package/lib/cascader/index.d.ts +393 -354
  34. package/lib/cascader/index.js +233 -234
  35. package/lib/checkbox/checkbox.d.ts +1 -1
  36. package/lib/checkbox/index.d.ts +119 -161
  37. package/lib/checkbox/index.js +39 -41
  38. package/lib/code-diff/index.d.ts +65 -82
  39. package/lib/code-diff/index.js +381 -438
  40. package/lib/collapse/index.d.ts +144 -168
  41. package/lib/collapse/index.js +21 -21
  42. package/lib/collapse-transition/index.d.ts +19 -94
  43. package/lib/color-picker/color-picker.d.ts +1 -1
  44. package/lib/color-picker/index.d.ts +128 -154
  45. package/lib/color-picker/index.js +25 -28
  46. package/lib/config-provider/config-provider.d.ts +9 -0
  47. package/lib/config-provider/index.d.ts +168 -223
  48. package/lib/config-provider/index.js +19 -19
  49. package/lib/config-provider/token.d.ts +3 -0
  50. package/lib/container/container.d.ts +1 -1
  51. package/lib/container/index.d.ts +74 -85
  52. package/lib/container/index.js +19 -19
  53. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  54. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  55. package/lib/date-picker/date-picker.d.ts +3 -3
  56. package/lib/date-picker/index.d.ts +384 -351
  57. package/lib/date-picker/index.js +92 -104
  58. package/lib/date-picker/panel/date-range.d.ts +1 -1
  59. package/lib/date-picker/panel/date.d.ts +1 -1
  60. package/lib/date-picker/panel/time-range.d.ts +2 -2
  61. package/lib/date-picker/panel/time.d.ts +1 -1
  62. package/lib/date-picker/time-picker.d.ts +3 -3
  63. package/lib/dialog/index.d.ts +355 -309
  64. package/lib/dialog/index.js +227 -228
  65. package/lib/directives/index.js +27 -27
  66. package/lib/divider/index.d.ts +57 -111
  67. package/lib/dropdown/dropdown.d.ts +1 -1
  68. package/lib/dropdown/index.d.ts +94 -136
  69. package/lib/dropdown/index.js +17 -17
  70. package/lib/exception/index.d.ts +41 -102
  71. package/lib/exception/index.js +18 -19
  72. package/lib/fixed-navbar/index.d.ts +59 -113
  73. package/lib/form/form.css +3 -0
  74. package/lib/form/form.d.ts +1 -1
  75. package/lib/form/form.less +3 -0
  76. package/lib/form/form.variable.css +3 -0
  77. package/lib/form/index.d.ts +80 -132
  78. package/lib/form/index.js +29 -27
  79. package/lib/icon/angle-double-down-line.js +21 -21
  80. package/lib/icon/angle-double-left-line.js +21 -21
  81. package/lib/icon/angle-double-left.js +21 -21
  82. package/lib/icon/angle-double-right-line.js +21 -21
  83. package/lib/icon/angle-double-right.js +21 -21
  84. package/lib/icon/angle-double-up-line.js +21 -21
  85. package/lib/icon/angle-down-fill.js +21 -21
  86. package/lib/icon/angle-down-line.js +21 -21
  87. package/lib/icon/angle-down.js +21 -21
  88. package/lib/icon/angle-left.js +21 -21
  89. package/lib/icon/angle-right.js +21 -21
  90. package/lib/icon/angle-up-fill.js +21 -21
  91. package/lib/icon/angle-up.js +21 -21
  92. package/lib/icon/archive-fill.js +21 -21
  93. package/lib/icon/arrows-left.js +21 -21
  94. package/lib/icon/arrows-right.js +21 -21
  95. package/lib/icon/assistant.js +21 -21
  96. package/lib/icon/audio-fill.js +21 -21
  97. package/lib/icon/bk.js +21 -21
  98. package/lib/icon/circle.js +21 -21
  99. package/lib/icon/close-line.js +21 -21
  100. package/lib/icon/close.js +21 -21
  101. package/lib/icon/code.js +21 -21
  102. package/lib/icon/cog-shape.js +21 -21
  103. package/lib/icon/collapse-left.js +21 -21
  104. package/lib/icon/copy-shape.js +21 -21
  105. package/lib/icon/copy.js +21 -21
  106. package/lib/icon/data-shape.js +21 -21
  107. package/lib/icon/del.js +21 -21
  108. package/lib/icon/doc-fill.js +21 -21
  109. package/lib/icon/done.js +21 -21
  110. package/lib/icon/down-shape.js +21 -21
  111. package/lib/icon/down-small.js +21 -21
  112. package/lib/icon/edit-line.js +21 -21
  113. package/lib/icon/ellipsis.js +21 -21
  114. package/lib/icon/enlarge-line.js +21 -21
  115. package/lib/icon/error.js +21 -21
  116. package/lib/icon/excel-fill.js +21 -21
  117. package/lib/icon/exclamation-circle-shape.js +21 -21
  118. package/lib/icon/eye.js +21 -21
  119. package/lib/icon/filliscreen-line.js +21 -21
  120. package/lib/icon/fix-line.js +21 -21
  121. package/lib/icon/fix-shape.js +21 -21
  122. package/lib/icon/folder-open.js +21 -21
  123. package/lib/icon/folder-shape-open.js +21 -21
  124. package/lib/icon/folder-shape.js +21 -21
  125. package/lib/icon/folder.js +21 -21
  126. package/lib/icon/funnel.js +21 -21
  127. package/lib/icon/grag-fill.js +21 -21
  128. package/lib/icon/help-document-fill.js +21 -21
  129. package/lib/icon/help-fill.js +21 -21
  130. package/lib/icon/help.js +21 -21
  131. package/lib/icon/image-fill.js +22 -22
  132. package/lib/icon/img-error.js +22 -22
  133. package/lib/icon/img-placehoulder.js +22 -22
  134. package/lib/icon/index.js +192 -192
  135. package/lib/icon/info-line.js +22 -22
  136. package/lib/icon/info.js +22 -22
  137. package/lib/icon/left-shape.js +22 -22
  138. package/lib/icon/left-turn-line.js +22 -22
  139. package/lib/icon/loading.js +22 -22
  140. package/lib/icon/narrow-line.js +22 -22
  141. package/lib/icon/original.js +22 -22
  142. package/lib/icon/pdf-fill.js +22 -22
  143. package/lib/icon/play-shape.js +22 -22
  144. package/lib/icon/plus.js +22 -22
  145. package/lib/icon/ppt-fill.js +22 -22
  146. package/lib/icon/qq.js +22 -22
  147. package/lib/icon/right-shape.js +22 -22
  148. package/lib/icon/right-turn-line.js +22 -22
  149. package/lib/icon/search.js +22 -22
  150. package/lib/icon/share.js +22 -22
  151. package/lib/icon/spinner.js +22 -22
  152. package/lib/icon/success.js +22 -22
  153. package/lib/icon/switcher-loading.js +22 -22
  154. package/lib/icon/text-file.js +22 -22
  155. package/lib/icon/text-fill.js +22 -22
  156. package/lib/icon/transfer.js +22 -22
  157. package/lib/icon/tree-application-shape.js +22 -22
  158. package/lib/icon/unfull-screen.js +22 -22
  159. package/lib/icon/unvisible.js +22 -22
  160. package/lib/icon/up-shape.js +22 -22
  161. package/lib/icon/upload.js +22 -22
  162. package/lib/icon/video-fill.js +22 -22
  163. package/lib/icon/warn.js +22 -22
  164. package/lib/icon/weixin-pro.js +22 -22
  165. package/lib/icon/weixin.js +22 -22
  166. package/lib/image/index.d.ts +113 -149
  167. package/lib/image/index.js +19 -19
  168. package/lib/info-box/index.js +231 -232
  169. package/lib/input/index.d.ts +326 -293
  170. package/lib/input/index.js +256 -258
  171. package/lib/link/index.d.ts +73 -122
  172. package/lib/loading/index.d.ts +132 -158
  173. package/lib/loading/index.js +23 -25
  174. package/lib/loading/loading.d.ts +4 -4
  175. package/lib/locale/index.js +8 -12
  176. package/lib/locale/lang/en.d.ts +3 -0
  177. package/lib/menu/index.d.ts +51 -112
  178. package/lib/menu/index.js +25 -25
  179. package/lib/message/index.js +28 -30
  180. package/lib/message/messageConstructor.d.ts +5 -5
  181. package/lib/modal/index.d.ts +261 -249
  182. package/lib/modal/index.js +492 -33
  183. package/lib/navigation/index.d.ts +152 -188
  184. package/lib/notify/index.js +22 -24
  185. package/lib/notify/notifyConstructor.d.ts +1 -1
  186. package/lib/overflow-title/index.d.ts +314 -242
  187. package/lib/overflow-title/index.js +1 -1
  188. package/lib/pagination/index.d.ts +194 -205
  189. package/lib/pagination/index.js +49 -56
  190. package/lib/plugin-popover/index.js +192 -98
  191. package/lib/pop-confirm/index.d.ts +126 -159
  192. package/lib/pop-confirm/index.js +0 -1
  193. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  194. package/lib/popover/content.d.ts +1 -1
  195. package/lib/popover/index.d.ts +374 -330
  196. package/lib/popover/index.js +192 -98
  197. package/lib/popover2/index.d.ts +8 -83
  198. package/lib/preset.d.ts +287 -2
  199. package/lib/preset.js +3 -1
  200. package/lib/process/index.d.ts +93 -137
  201. package/lib/process/index.js +225 -226
  202. package/lib/progress/index.d.ts +178 -187
  203. package/lib/progress/index.js +19 -19
  204. package/lib/progress/progress.d.ts +2 -2
  205. package/lib/radio/index.d.ts +83 -135
  206. package/lib/radio/index.js +41 -43
  207. package/lib/rate/index.d.ts +55 -112
  208. package/lib/rate/index.js +19 -20
  209. package/lib/resize-layout/index.d.ts +156 -185
  210. package/lib/resize-layout/index.js +20 -21
  211. package/lib/resize-layout/resize-layout.d.ts +2 -2
  212. package/lib/search-select/index.d.ts +292 -327
  213. package/lib/search-select/index.js +239 -240
  214. package/lib/search-select/input.d.ts +2 -2
  215. package/lib/search-select/search-select.d.ts +3 -3
  216. package/lib/search-select/selected.d.ts +2 -2
  217. package/lib/select/index.d.ts +1234 -1135
  218. package/lib/select/index.js +259 -262
  219. package/lib/select/select.d.ts +121 -161
  220. package/lib/select/selectTagInput.d.ts +2 -2
  221. package/lib/shared/helper.d.ts +4 -0
  222. package/lib/shared/index.js +81 -63
  223. package/lib/sideslider/index.d.ts +247 -233
  224. package/lib/sideslider/index.js +241 -247
  225. package/lib/slider/index.d.ts +204 -204
  226. package/lib/slider/index.js +208 -209
  227. package/lib/steps/index.d.ts +114 -150
  228. package/lib/steps/index.js +227 -228
  229. package/lib/swiper/index.d.ts +81 -127
  230. package/lib/swiper/index.js +18 -18
  231. package/lib/switcher/index.d.ts +152 -174
  232. package/lib/switcher/index.js +20 -22
  233. package/lib/tab/index.d.ts +199 -211
  234. package/lib/tab/index.js +23 -25
  235. package/lib/table/components/table-column.d.ts +2 -2
  236. package/lib/table/index.d.ts +605 -593
  237. package/lib/table/index.js +81 -95
  238. package/lib/table/plugins/use-pagination.d.ts +1 -1
  239. package/lib/table/table.d.ts +1 -1
  240. package/lib/table/use-common.d.ts +67 -34
  241. package/lib/table-column/index.d.ts +207 -243
  242. package/lib/table-column/index.js +18 -19
  243. package/lib/tag/index.d.ts +95 -142
  244. package/lib/tag/index.js +19 -19
  245. package/lib/tag-input/index.d.ts +690 -498
  246. package/lib/tag-input/index.js +54 -62
  247. package/lib/tag-input/tag-input.d.ts +5 -5
  248. package/lib/time-picker/index.d.ts +442 -385
  249. package/lib/timeline/index.d.ts +50 -109
  250. package/lib/timeline/index.js +6 -6
  251. package/lib/transfer/index.d.ts +191 -206
  252. package/lib/tree/index.d.ts +322 -288
  253. package/lib/tree/index.js +36 -39
  254. package/lib/tree/tree.d.ts +1 -1
  255. package/lib/tree/use-tree-init.d.ts +1 -1
  256. package/lib/upload/index.d.ts +281 -254
  257. package/lib/upload/index.js +254 -257
  258. package/lib/upload/upload.d.ts +2 -2
  259. package/lib/virtual-render/index.d.ts +337 -242
  260. package/lib/virtual-render/index.js +30 -30
  261. package/lib/virtual-render/virtual-render.d.ts +1 -1
  262. package/package.json +7 -13
@@ -17,7 +17,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
17
17
 
18
18
  var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
19
19
  // Module
20
- ___CSS_LOADER_EXPORT___.push([module.id, `.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;border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;border-radius:.2em;display:inline-block;margin-top:-1px;text-align:left;text-decoration:none}.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;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}`, ""]);
20
+ ___CSS_LOADER_EXPORT___.push([module.id, `:host,:root{--d2h-bg-color:#fff;--d2h-border-color:#ddd;--d2h-dim-color:rgba(0,0,0,.3);--d2h-line-border-color:#eee;--d2h-file-header-bg-color:#f7f7f7;--d2h-file-header-border-color:#d8d8d8;--d2h-empty-placeholder-bg-color:#f1f1f1;--d2h-empty-placeholder-border-color:#e1e1e1;--d2h-selected-color:#c8e1ff;--d2h-ins-bg-color:#dfd;--d2h-ins-border-color:#b4e2b4;--d2h-ins-highlight-bg-color:#97f295;--d2h-ins-label-color:#399839;--d2h-del-bg-color:#fee8e9;--d2h-del-border-color:#e9aeae;--d2h-del-highlight-bg-color:#ffb6ba;--d2h-del-label-color:#c33;--d2h-change-del-color:#fdf2d0;--d2h-change-ins-color:#ded;--d2h-info-bg-color:#f8fafd;--d2h-info-border-color:#d5e4f2;--d2h-change-label-color:#d0b44c;--d2h-moved-label-color:#3572b0;--d2h-dark-color:#e6edf3;--d2h-dark-bg-color:#0d1117;--d2h-dark-border-color:#30363d;--d2h-dark-dim-color:#6e7681;--d2h-dark-line-border-color:#21262d;--d2h-dark-file-header-bg-color:#161b22;--d2h-dark-file-header-border-color:#30363d;--d2h-dark-empty-placeholder-bg-color:hsla(215,8%,47%,.1);--d2h-dark-empty-placeholder-border-color:#30363d;--d2h-dark-selected-color:rgba(56,139,253,.1);--d2h-dark-ins-bg-color:rgba(46,160,67,.15);--d2h-dark-ins-border-color:rgba(46,160,67,.4);--d2h-dark-ins-highlight-bg-color:rgba(46,160,67,.4);--d2h-dark-ins-label-color:#3fb950;--d2h-dark-del-bg-color:rgba(248,81,73,.1);--d2h-dark-del-border-color:rgba(248,81,73,.4);--d2h-dark-del-highlight-bg-color:rgba(248,81,73,.4);--d2h-dark-del-label-color:#f85149;--d2h-dark-change-del-color:rgba(210,153,34,.2);--d2h-dark-change-ins-color:rgba(46,160,67,.25);--d2h-dark-info-bg-color:rgba(56,139,253,.1);--d2h-dark-info-border-color:rgba(56,139,253,.4);--d2h-dark-change-label-color:#d29922;--d2h-dark-moved-label-color:#3572b0}.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;background-color:var(--d2h-file-header-bg-color);border-bottom:1px solid #d8d8d8;border-bottom:1px solid var(--d2h-file-header-border-color);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:1px solid var(--d2h-ins-border-color);border-radius:5px 0 0 5px;color:#399839;color:var(--d2h-ins-label-color);padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border:1px solid var(--d2h-del-border-color);border-radius:0 5px 5px 0;color:#c33;color:var(--d2h-del-label-color);margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;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:1px solid var(--d2h-border-color);border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border:1px solid var(--d2h-border-color);border-radius:3px;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff;background-color:var(--d2h-selected-color)}.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{background:none;display:inline-block;padding:0;word-wrap:normal;-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;background-color:var(--d2h-del-highlight-bg-color)}.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;background-color:var(--d2h-ins-highlight-bg-color);text-align:left}.d2h-code-line-prefix{background:none;display:inline;padding:0;word-wrap:normal;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;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);color:var(--d2h-dim-color);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;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);color:var(--d2h-dim-color);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;background-color:var(--d2h-empty-placeholder-bg-color);border-color:#e1e1e1;border-color:var(--d2h-empty-placeholder-border-color)}.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;background-color:var(--d2h-del-bg-color);border-color:#e9aeae;border-color:var(--d2h-del-border-color)}.d2h-ins{background-color:#dfd;background-color:var(--d2h-ins-bg-color);border-color:#b4e2b4;border-color:var(--d2h-ins-border-color)}.d2h-info{background-color:#f8fafd;background-color:var(--d2h-info-bg-color);border-color:#d5e4f2;border-color:var(--d2h-info-border-color);color:rgba(0,0,0,.3);color:var(--d2h-dim-color)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0;background-color:var(--d2h-change-del-color)}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded;background-color:var(--d2h-change-ins-color)}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{-webkit-text-decoration:none;text-decoration:none}.d2h-file-list-wrapper a,.d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-moved-label-color)}.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;border-bottom:1px solid var(--d2h-border-color);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{margin-right:10px;vertical-align:middle;fill:currentColor}.d2h-deleted{color:#c33;color:var(--d2h-del-label-color)}.d2h-added{color:#399839;color:var(--d2h-ins-label-color)}.d2h-changed{color:#d0b44c;color:var(--d2h-change-label-color)}.d2h-moved{color:#3572b0;color:var(--d2h-moved-label-color)}.d2h-tag{background-color:#fff;background-color:var(--d2h-bg-color);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33;border:1px solid var(--d2h-del-label-color)}.d2h-added-tag{border:1px solid #399839;border:1px solid var(--d2h-ins-label-color)}.d2h-changed-tag{border:1px solid #d0b44c;border:1px solid var(--d2h-change-label-color)}.d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-moved-label-color)}.d2h-dark-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:#e6edf3;color:var(--d2h-dark-color)}.d2h-dark-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-dark-color-scheme .d2h-lines-added{border:1px solid rgba(46,160,67,.4);border:1px solid var(--d2h-dark-ins-border-color);color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-lines-deleted{border:1px solid rgba(248,81,73,.4);border:1px solid var(--d2h-dark-del-border-color);color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-code-line del,.d2h-dark-color-scheme .d2h-code-side-line del{background-color:rgba(248,81,73,.4);background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-dark-color-scheme .d2h-code-line ins,.d2h-dark-color-scheme .d2h-code-side-line ins{background-color:rgba(46,160,67,.4);background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-dark-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-dark-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:hsla(215,8%,47%,.1);background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-dark-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-del{background-color:rgba(248,81,73,.1);background-color:var(--d2h-dark-del-bg-color);border-color:rgba(248,81,73,.4);border-color:var(--d2h-dark-del-border-color)}.d2h-dark-color-scheme .d2h-ins{background-color:rgba(46,160,67,.15);background-color:var(--d2h-dark-ins-bg-color);border-color:rgba(46,160,67,.4);border-color:var(--d2h-dark-ins-border-color)}.d2h-dark-color-scheme .d2h-info{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-info-bg-color);border-color:rgba(56,139,253,.4);border-color:var(--d2h-dark-info-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:rgba(210,153,34,.2);background-color:var(--d2h-dark-change-del-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:rgba(46,160,67,.25);background-color:var(--d2h-dark-change-ins-color)}.d2h-dark-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-file-collapse.d2h-selected{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-selected-color)}.d2h-dark-color-scheme .d2h-file-list-wrapper a,.d2h-dark-color-scheme .d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added{color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed{color:#d29922;color:var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}@media (prefers-color-scheme:dark){.d2h-auto-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:#e6edf3;color:var(--d2h-dark-color)}.d2h-auto-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-auto-color-scheme .d2h-lines-added{border:1px solid rgba(46,160,67,.4);border:1px solid var(--d2h-dark-ins-border-color);color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-lines-deleted{border:1px solid rgba(248,81,73,.4);border:1px solid var(--d2h-dark-del-border-color);color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-code-line del,.d2h-auto-color-scheme .d2h-code-side-line del{background-color:rgba(248,81,73,.4);background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-auto-color-scheme .d2h-code-line ins,.d2h-auto-color-scheme .d2h-code-side-line ins{background-color:rgba(46,160,67,.4);background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-auto-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-auto-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:hsla(215,8%,47%,.1);background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-auto-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-del{background-color:rgba(248,81,73,.1);background-color:var(--d2h-dark-del-bg-color);border-color:rgba(248,81,73,.4);border-color:var(--d2h-dark-del-border-color)}.d2h-auto-color-scheme .d2h-ins{background-color:rgba(46,160,67,.15);background-color:var(--d2h-dark-ins-bg-color);border-color:rgba(46,160,67,.4);border-color:var(--d2h-dark-ins-border-color)}.d2h-auto-color-scheme .d2h-info{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-info-bg-color);border-color:rgba(56,139,253,.4);border-color:var(--d2h-dark-info-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:rgba(210,153,34,.2);background-color:var(--d2h-dark-change-del-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:rgba(46,160,67,.25);background-color:var(--d2h-dark-change-ins-color)}.d2h-auto-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-file-collapse.d2h-selected{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-selected-color)}.d2h-auto-color-scheme .d2h-file-list-wrapper a,.d2h-auto-color-scheme .d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added{color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed{color:#d29922;color:var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}}`, ""]);
21
21
  // Exports
22
22
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (___CSS_LOADER_EXPORT___)));
23
23
 
@@ -1007,31 +1007,31 @@ function _arrayWithHoles(arr) {
1007
1007
  if (Array.isArray(arr)) return arr;
1008
1008
  }
1009
1009
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1010
- function _iterableToArrayLimit(arr, i) {
1011
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1012
- if (null != _i) {
1013
- var _s,
1014
- _e,
1015
- _x,
1016
- _r,
1017
- _arr = [],
1018
- _n = !0,
1019
- _d = !1;
1010
+ function _iterableToArrayLimit(r, l) {
1011
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1012
+ if (null != t) {
1013
+ var e,
1014
+ n,
1015
+ i,
1016
+ u,
1017
+ a = [],
1018
+ f = !0,
1019
+ o = !1;
1020
1020
  try {
1021
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
1022
- if (Object(_i) !== _i) return;
1023
- _n = !1;
1024
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1025
- } catch (err) {
1026
- _d = !0, _e = err;
1021
+ if (i = (t = t.call(r)).next, 0 === l) {
1022
+ if (Object(t) !== t) return;
1023
+ f = !1;
1024
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1025
+ } catch (r) {
1026
+ o = !0, n = r;
1027
1027
  } finally {
1028
1028
  try {
1029
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1029
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1030
1030
  } finally {
1031
- if (_d) throw _e;
1031
+ if (o) throw n;
1032
1032
  }
1033
1033
  }
1034
- return _arr;
1034
+ return a;
1035
1035
  }
1036
1036
  }
1037
1037
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -2628,22 +2628,28 @@ var LineType;
2628
2628
  LineType["DELETE"] = "delete";
2629
2629
  LineType["CONTEXT"] = "context";
2630
2630
  })(LineType || (LineType = {}));
2631
- var OutputFormatType = {
2631
+ const OutputFormatType = {
2632
2632
  LINE_BY_LINE: 'line-by-line',
2633
2633
  SIDE_BY_SIDE: 'side-by-side',
2634
2634
  };
2635
- var LineMatchingType = {
2635
+ const LineMatchingType = {
2636
2636
  LINES: 'lines',
2637
2637
  WORDS: 'words',
2638
2638
  NONE: 'none',
2639
2639
  };
2640
- var DiffStyleType = {
2640
+ const DiffStyleType = {
2641
2641
  WORD: 'word',
2642
2642
  CHAR: 'char',
2643
2643
  };
2644
+ var ColorSchemeType;
2645
+ (function (ColorSchemeType) {
2646
+ ColorSchemeType["AUTO"] = "auto";
2647
+ ColorSchemeType["DARK"] = "dark";
2648
+ ColorSchemeType["LIGHT"] = "light";
2649
+ })(ColorSchemeType || (ColorSchemeType = {}));
2644
2650
  //# sourceMappingURL=types.js.map
2645
2651
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/utils.js
2646
- var specials = [
2652
+ const specials = [
2647
2653
  '-',
2648
2654
  '[',
2649
2655
  ']',
@@ -2661,7 +2667,7 @@ var specials = [
2661
2667
  '$',
2662
2668
  '|',
2663
2669
  ];
2664
- var regex = RegExp('[' + specials.join('\\') + ']', 'g');
2670
+ const regex = RegExp('[' + specials.join('\\') + ']', 'g');
2665
2671
  function escapeForRegExp(str) {
2666
2672
  return str.replace(regex, '\\$&');
2667
2673
  }
@@ -2669,8 +2675,8 @@ function unifyPath(path) {
2669
2675
  return path ? path.replace(/\\/g, '/') : path;
2670
2676
  }
2671
2677
  function hashCode(text) {
2672
- var i, chr, len;
2673
- var hash = 0;
2678
+ let i, chr, len;
2679
+ let hash = 0;
2674
2680
  for (i = 0, len = text.length; i < len; i++) {
2675
2681
  chr = text.charCodeAt(i);
2676
2682
  hash = (hash << 5) - hash + chr;
@@ -2680,33 +2686,24 @@ function hashCode(text) {
2680
2686
  }
2681
2687
  //# sourceMappingURL=utils.js.map
2682
2688
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff-parser.js
2683
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
2684
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2685
- if (ar || !(i in from)) {
2686
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2687
- ar[i] = from[i];
2688
- }
2689
- }
2690
- return to.concat(ar || Array.prototype.slice.call(from));
2691
- };
2692
2689
 
2693
2690
 
2694
2691
  function getExtension(filename, language) {
2695
- var filenameParts = filename.split('.');
2692
+ const filenameParts = filename.split('.');
2696
2693
  return filenameParts.length > 1 ? filenameParts[filenameParts.length - 1] : language;
2697
2694
  }
2698
2695
  function startsWithAny(str, prefixes) {
2699
- return prefixes.reduce(function (startsWith, prefix) { return startsWith || str.startsWith(prefix); }, false);
2696
+ return prefixes.reduce((startsWith, prefix) => startsWith || str.startsWith(prefix), false);
2700
2697
  }
2701
- var baseDiffFilenamePrefixes = ['a/', 'b/', 'i/', 'w/', 'c/', 'o/'];
2698
+ const baseDiffFilenamePrefixes = ['a/', 'b/', 'i/', 'w/', 'c/', 'o/'];
2702
2699
  function getFilename(line, linePrefix, extraPrefix) {
2703
- var prefixes = extraPrefix !== undefined ? __spreadArray(__spreadArray([], baseDiffFilenamePrefixes, true), [extraPrefix], false) : baseDiffFilenamePrefixes;
2704
- var FilenameRegExp = linePrefix
2705
- ? new RegExp("^".concat(escapeForRegExp(linePrefix), " \"?(.+?)\"?$"))
2700
+ const prefixes = extraPrefix !== undefined ? [...baseDiffFilenamePrefixes, extraPrefix] : baseDiffFilenamePrefixes;
2701
+ const FilenameRegExp = linePrefix
2702
+ ? new RegExp(`^${escapeForRegExp(linePrefix)} "?(.+?)"?$`)
2706
2703
  : new RegExp('^"?(.+?)"?$');
2707
- var _a = FilenameRegExp.exec(line) || [], _b = _a[1], filename = _b === void 0 ? '' : _b;
2708
- var matchingPrefix = prefixes.find(function (p) { return filename.indexOf(p) === 0; });
2709
- var fnameWithoutPrefix = matchingPrefix ? filename.slice(matchingPrefix.length) : filename;
2704
+ const [, filename = ''] = FilenameRegExp.exec(line) || [];
2705
+ const matchingPrefix = prefixes.find(p => filename.indexOf(p) === 0);
2706
+ const fnameWithoutPrefix = matchingPrefix ? filename.slice(matchingPrefix.length) : filename;
2710
2707
  return fnameWithoutPrefix.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/, '');
2711
2708
  }
2712
2709
  function getSrcFilename(line, srcPrefix) {
@@ -2715,37 +2712,36 @@ function getSrcFilename(line, srcPrefix) {
2715
2712
  function getDstFilename(line, dstPrefix) {
2716
2713
  return getFilename(line, '+++', dstPrefix);
2717
2714
  }
2718
- function parse(diffInput, config) {
2719
- if (config === void 0) { config = {}; }
2720
- var files = [];
2721
- var currentFile = null;
2722
- var currentBlock = null;
2723
- var oldLine = null;
2724
- var oldLine2 = null;
2725
- var newLine = null;
2726
- var possibleOldName = null;
2727
- var possibleNewName = null;
2728
- var oldFileNameHeader = '--- ';
2729
- var newFileNameHeader = '+++ ';
2730
- var hunkHeaderPrefix = '@@';
2731
- var oldMode = /^old mode (\d{6})/;
2732
- var newMode = /^new mode (\d{6})/;
2733
- var deletedFileMode = /^deleted file mode (\d{6})/;
2734
- var newFileMode = /^new file mode (\d{6})/;
2735
- var copyFrom = /^copy from "?(.+)"?/;
2736
- var copyTo = /^copy to "?(.+)"?/;
2737
- var renameFrom = /^rename from "?(.+)"?/;
2738
- var renameTo = /^rename to "?(.+)"?/;
2739
- var similarityIndex = /^similarity index (\d+)%/;
2740
- var dissimilarityIndex = /^dissimilarity index (\d+)%/;
2741
- var index = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
2742
- var binaryFiles = /^Binary files (.*) and (.*) differ/;
2743
- var binaryDiff = /^GIT binary patch/;
2744
- var combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
2745
- var combinedMode = /^mode (\d{6}),(\d{6})\.\.(\d{6})/;
2746
- var combinedNewFile = /^new file mode (\d{6})/;
2747
- var combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/;
2748
- var diffLines = diffInput
2715
+ function parse(diffInput, config = {}) {
2716
+ const files = [];
2717
+ let currentFile = null;
2718
+ let currentBlock = null;
2719
+ let oldLine = null;
2720
+ let oldLine2 = null;
2721
+ let newLine = null;
2722
+ let possibleOldName = null;
2723
+ let possibleNewName = null;
2724
+ const oldFileNameHeader = '--- ';
2725
+ const newFileNameHeader = '+++ ';
2726
+ const hunkHeaderPrefix = '@@';
2727
+ const oldMode = /^old mode (\d{6})/;
2728
+ const newMode = /^new mode (\d{6})/;
2729
+ const deletedFileMode = /^deleted file mode (\d{6})/;
2730
+ const newFileMode = /^new file mode (\d{6})/;
2731
+ const copyFrom = /^copy from "?(.+)"?/;
2732
+ const copyTo = /^copy to "?(.+)"?/;
2733
+ const renameFrom = /^rename from "?(.+)"?/;
2734
+ const renameTo = /^rename to "?(.+)"?/;
2735
+ const similarityIndex = /^similarity index (\d+)%/;
2736
+ const dissimilarityIndex = /^dissimilarity index (\d+)%/;
2737
+ const index = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
2738
+ const binaryFiles = /^Binary files (.*) and (.*) differ/;
2739
+ const binaryDiff = /^GIT binary patch/;
2740
+ const combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
2741
+ const combinedMode = /^mode (\d{6}),(\d{6})\.\.(\d{6})/;
2742
+ const combinedNewFile = /^new file mode (\d{6})/;
2743
+ const combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/;
2744
+ const diffLines = diffInput
2749
2745
  .replace(/\/g, '')
2750
2746
  .replace(/\r\n?/g, '\n')
2751
2747
  .split('\n');
@@ -2782,7 +2778,7 @@ function parse(diffInput, config) {
2782
2778
  }
2783
2779
  function startBlock(line) {
2784
2780
  saveBlock();
2785
- var values;
2781
+ let values;
2786
2782
  if (currentFile !== null) {
2787
2783
  if ((values = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(line))) {
2788
2784
  currentFile.isCombined = false;
@@ -2815,11 +2811,11 @@ function parse(diffInput, config) {
2815
2811
  function createLine(line) {
2816
2812
  if (currentFile === null || currentBlock === null || oldLine === null || newLine === null)
2817
2813
  return;
2818
- var currentLine = {
2814
+ const currentLine = {
2819
2815
  content: line,
2820
2816
  };
2821
- var addedPrefixes = currentFile.isCombined ? ['+ ', ' +', '++'] : ['+'];
2822
- var deletedPrefixes = currentFile.isCombined ? ['- ', ' -', '--'] : ['-'];
2817
+ const addedPrefixes = currentFile.isCombined ? ['+ ', ' +', '++'] : ['+'];
2818
+ const deletedPrefixes = currentFile.isCombined ? ['- ', ' -', '--'] : ['-'];
2823
2819
  if (startsWithAny(line, addedPrefixes)) {
2824
2820
  currentFile.addedLines++;
2825
2821
  currentLine.type = LineType.INSERT;
@@ -2840,7 +2836,7 @@ function parse(diffInput, config) {
2840
2836
  currentBlock.lines.push(currentLine);
2841
2837
  }
2842
2838
  function existHunkHeader(line, lineIdx) {
2843
- var idx = lineIdx;
2839
+ let idx = lineIdx;
2844
2840
  while (idx < diffLines.length - 3) {
2845
2841
  if (line.startsWith('diff')) {
2846
2842
  return false;
@@ -2854,17 +2850,17 @@ function parse(diffInput, config) {
2854
2850
  }
2855
2851
  return false;
2856
2852
  }
2857
- diffLines.forEach(function (line, lineIndex) {
2853
+ diffLines.forEach((line, lineIndex) => {
2858
2854
  if (!line || line.startsWith('*')) {
2859
2855
  return;
2860
2856
  }
2861
- var values;
2862
- var prevLine = diffLines[lineIndex - 1];
2863
- var nxtLine = diffLines[lineIndex + 1];
2864
- var afterNxtLine = diffLines[lineIndex + 2];
2857
+ let values;
2858
+ const prevLine = diffLines[lineIndex - 1];
2859
+ const nxtLine = diffLines[lineIndex + 1];
2860
+ const afterNxtLine = diffLines[lineIndex + 2];
2865
2861
  if (line.startsWith('diff --git') || line.startsWith('diff --combined')) {
2866
2862
  startFile();
2867
- var gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
2863
+ const gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
2868
2864
  if ((values = gitDiffStart.exec(line))) {
2869
2865
  possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
2870
2866
  possibleNewName = getFilename(values[2], undefined, config.srcPrefix);
@@ -2877,7 +2873,7 @@ function parse(diffInput, config) {
2877
2873
  }
2878
2874
  if (line.startsWith('Binary files') && !(currentFile === null || currentFile === void 0 ? void 0 : currentFile.isGitDiff)) {
2879
2875
  startFile();
2880
- var unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/;
2876
+ const unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/;
2881
2877
  if ((values = unixDiffBinaryStart.exec(line))) {
2882
2878
  possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
2883
2879
  possibleNewName = getFilename(values[2], undefined, config.srcPrefix);
@@ -2908,7 +2904,7 @@ function parse(diffInput, config) {
2908
2904
  currentFile.deletedLines = 0;
2909
2905
  currentFile.blocks = [];
2910
2906
  currentBlock = null;
2911
- var message = typeof config.diffTooBigMessage === 'function'
2907
+ const message = typeof config.diffTooBigMessage === 'function'
2912
2908
  ? config.diffTooBigMessage(files.length)
2913
2909
  : 'Diff too big to be displayed';
2914
2910
  startBlock(message);
@@ -2943,7 +2939,7 @@ function parse(diffInput, config) {
2943
2939
  createLine(line);
2944
2940
  return;
2945
2941
  }
2946
- var doesNotExistHunkHeader = !existHunkHeader(line, lineIndex);
2942
+ const doesNotExistHunkHeader = !existHunkHeader(line, lineIndex);
2947
2943
  if (currentFile === null) {
2948
2944
  throw new Error('Where is my file !!!');
2949
2945
  }
@@ -4599,12 +4595,12 @@ function levenshtein(a, b) {
4599
4595
  if (b.length === 0) {
4600
4596
  return a.length;
4601
4597
  }
4602
- var matrix = [];
4603
- var i;
4598
+ const matrix = [];
4599
+ let i;
4604
4600
  for (i = 0; i <= b.length; i++) {
4605
4601
  matrix[i] = [i];
4606
4602
  }
4607
- var j;
4603
+ let j;
4608
4604
  for (j = 0; j <= a.length; j++) {
4609
4605
  matrix[0][j] = j;
4610
4606
  }
@@ -4621,22 +4617,21 @@ function levenshtein(a, b) {
4621
4617
  return matrix[b.length][a.length];
4622
4618
  }
4623
4619
  function newDistanceFn(str) {
4624
- return function (x, y) {
4625
- var xValue = str(x).trim();
4626
- var yValue = str(y).trim();
4627
- var lev = levenshtein(xValue, yValue);
4620
+ return (x, y) => {
4621
+ const xValue = str(x).trim();
4622
+ const yValue = str(y).trim();
4623
+ const lev = levenshtein(xValue, yValue);
4628
4624
  return lev / (xValue.length + yValue.length);
4629
4625
  };
4630
4626
  }
4631
4627
  function newMatcherFn(distance) {
4632
- function findBestMatch(a, b, cache) {
4633
- if (cache === void 0) { cache = new Map(); }
4634
- var bestMatchDist = Infinity;
4635
- var bestMatch;
4636
- for (var i = 0; i < a.length; ++i) {
4637
- for (var j = 0; j < b.length; ++j) {
4638
- var cacheKey = JSON.stringify([a[i], b[j]]);
4639
- var md = void 0;
4628
+ function findBestMatch(a, b, cache = new Map()) {
4629
+ let bestMatchDist = Infinity;
4630
+ let bestMatch;
4631
+ for (let i = 0; i < a.length; ++i) {
4632
+ for (let j = 0; j < b.length; ++j) {
4633
+ const cacheKey = JSON.stringify([a[i], b[j]]);
4634
+ let md;
4640
4635
  if (!(cache.has(cacheKey) && (md = cache.get(cacheKey)))) {
4641
4636
  md = distance(a[i], b[j]);
4642
4637
  cache.set(cacheKey, md);
@@ -4649,25 +4644,23 @@ function newMatcherFn(distance) {
4649
4644
  }
4650
4645
  return bestMatch;
4651
4646
  }
4652
- function group(a, b, level, cache) {
4653
- if (level === void 0) { level = 0; }
4654
- if (cache === void 0) { cache = new Map(); }
4655
- var bm = findBestMatch(a, b, cache);
4647
+ function group(a, b, level = 0, cache = new Map()) {
4648
+ const bm = findBestMatch(a, b, cache);
4656
4649
  if (!bm || a.length + b.length < 3) {
4657
4650
  return [[a, b]];
4658
4651
  }
4659
- var a1 = a.slice(0, bm.indexA);
4660
- var b1 = b.slice(0, bm.indexB);
4661
- var aMatch = [a[bm.indexA]];
4662
- var bMatch = [b[bm.indexB]];
4663
- var tailA = bm.indexA + 1;
4664
- var tailB = bm.indexB + 1;
4665
- var a2 = a.slice(tailA);
4666
- var b2 = b.slice(tailB);
4667
- var group1 = group(a1, b1, level + 1, cache);
4668
- var groupMatch = group(aMatch, bMatch, level + 1, cache);
4669
- var group2 = group(a2, b2, level + 1, cache);
4670
- var result = groupMatch;
4652
+ const a1 = a.slice(0, bm.indexA);
4653
+ const b1 = b.slice(0, bm.indexB);
4654
+ const aMatch = [a[bm.indexA]];
4655
+ const bMatch = [b[bm.indexB]];
4656
+ const tailA = bm.indexA + 1;
4657
+ const tailB = bm.indexB + 1;
4658
+ const a2 = a.slice(tailA);
4659
+ const b2 = b.slice(tailB);
4660
+ const group1 = group(a1, b1, level + 1, cache);
4661
+ const groupMatch = group(aMatch, bMatch, level + 1, cache);
4662
+ const group2 = group(a2, b2, level + 1, cache);
4663
+ let result = groupMatch;
4671
4664
  if (bm.indexA > 0 || bm.indexB > 0) {
4672
4665
  result = group1.concat(result);
4673
4666
  }
@@ -4680,22 +4673,11 @@ function newMatcherFn(distance) {
4680
4673
  }
4681
4674
  //# sourceMappingURL=rematch.js.map
4682
4675
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/render-utils.js
4683
- var __assign = (undefined && undefined.__assign) || function () {
4684
- __assign = Object.assign || function(t) {
4685
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4686
- s = arguments[i];
4687
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4688
- t[p] = s[p];
4689
- }
4690
- return t;
4691
- };
4692
- return __assign.apply(this, arguments);
4693
- };
4694
4676
 
4695
4677
 
4696
4678
 
4697
4679
 
4698
- var CSSLineClass = {
4680
+ const CSSLineClass = {
4699
4681
  INSERTS: 'd2h-ins',
4700
4682
  DELETES: 'd2h-del',
4701
4683
  CONTEXT: 'd2h-cntx',
@@ -4703,15 +4685,16 @@ var CSSLineClass = {
4703
4685
  INSERT_CHANGES: 'd2h-ins d2h-change',
4704
4686
  DELETE_CHANGES: 'd2h-del d2h-change',
4705
4687
  };
4706
- var defaultRenderConfig = {
4688
+ const defaultRenderConfig = {
4707
4689
  matching: LineMatchingType.NONE,
4708
4690
  matchWordsThreshold: 0.25,
4709
4691
  maxLineLengthHighlight: 10000,
4710
4692
  diffStyle: DiffStyleType.WORD,
4693
+ colorScheme: ColorSchemeType.LIGHT,
4711
4694
  };
4712
- var separator = '/';
4713
- var distance = newDistanceFn(function (change) { return change.value; });
4714
- var matcher = newMatcherFn(distance);
4695
+ const separator = '/';
4696
+ const distance = newDistanceFn((change) => change.value);
4697
+ const matcher = newMatcherFn(distance);
4715
4698
  function isDevNullName(name) {
4716
4699
  return name.indexOf('dev/null') !== -1;
4717
4700
  }
@@ -4731,6 +4714,17 @@ function toCSSClass(lineType) {
4731
4714
  return CSSLineClass.DELETES;
4732
4715
  }
4733
4716
  }
4717
+ function colorSchemeToCss(colorScheme) {
4718
+ switch (colorScheme) {
4719
+ case ColorSchemeType.DARK:
4720
+ return 'd2h-dark-color-scheme';
4721
+ case ColorSchemeType.AUTO:
4722
+ return 'd2h-auto-color-scheme';
4723
+ case ColorSchemeType.LIGHT:
4724
+ default:
4725
+ return 'd2h-light-color-scheme';
4726
+ }
4727
+ }
4734
4728
  function prefixLength(isCombined) {
4735
4729
  return isCombined ? 2 : 1;
4736
4730
  }
@@ -4744,27 +4738,26 @@ function escapeForHtml(str) {
4744
4738
  .replace(/'/g, '&#x27;')
4745
4739
  .replace(/\//g, '&#x2F;');
4746
4740
  }
4747
- function deconstructLine(line, isCombined, escape) {
4748
- if (escape === void 0) { escape = true; }
4749
- var indexToSplit = prefixLength(isCombined);
4741
+ function deconstructLine(line, isCombined, escape = true) {
4742
+ const indexToSplit = prefixLength(isCombined);
4750
4743
  return {
4751
4744
  prefix: line.substring(0, indexToSplit),
4752
4745
  content: escape ? escapeForHtml(line.substring(indexToSplit)) : line.substring(indexToSplit),
4753
4746
  };
4754
4747
  }
4755
4748
  function filenameDiff(file) {
4756
- var oldFilename = unifyPath(file.oldName);
4757
- var newFilename = unifyPath(file.newName);
4749
+ const oldFilename = unifyPath(file.oldName);
4750
+ const newFilename = unifyPath(file.newName);
4758
4751
  if (oldFilename !== newFilename && !isDevNullName(oldFilename) && !isDevNullName(newFilename)) {
4759
- var prefixPaths = [];
4760
- var suffixPaths = [];
4761
- var oldFilenameParts = oldFilename.split(separator);
4762
- var newFilenameParts = newFilename.split(separator);
4763
- var oldFilenamePartsSize = oldFilenameParts.length;
4764
- var newFilenamePartsSize = newFilenameParts.length;
4765
- var i = 0;
4766
- var j = oldFilenamePartsSize - 1;
4767
- var k = newFilenamePartsSize - 1;
4752
+ const prefixPaths = [];
4753
+ const suffixPaths = [];
4754
+ const oldFilenameParts = oldFilename.split(separator);
4755
+ const newFilenameParts = newFilename.split(separator);
4756
+ const oldFilenamePartsSize = oldFilenameParts.length;
4757
+ const newFilenamePartsSize = newFilenameParts.length;
4758
+ let i = 0;
4759
+ let j = oldFilenamePartsSize - 1;
4760
+ let k = newFilenamePartsSize - 1;
4768
4761
  while (i < j && i < k) {
4769
4762
  if (oldFilenameParts[i] === newFilenameParts[i]) {
4770
4763
  prefixPaths.push(newFilenameParts[i]);
@@ -4784,10 +4777,10 @@ function filenameDiff(file) {
4784
4777
  break;
4785
4778
  }
4786
4779
  }
4787
- var finalPrefix = prefixPaths.join(separator);
4788
- var finalSuffix = suffixPaths.join(separator);
4789
- var oldRemainingPath = oldFilenameParts.slice(i, j + 1).join(separator);
4790
- var newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);
4780
+ const finalPrefix = prefixPaths.join(separator);
4781
+ const finalSuffix = suffixPaths.join(separator);
4782
+ const oldRemainingPath = oldFilenameParts.slice(i, j + 1).join(separator);
4783
+ const newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);
4791
4784
  if (finalPrefix.length && finalSuffix.length) {
4792
4785
  return (finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix);
4793
4786
  }
@@ -4807,10 +4800,10 @@ function filenameDiff(file) {
4807
4800
  }
4808
4801
  }
4809
4802
  function getHtmlId(file) {
4810
- return "d2h-".concat(hashCode(filenameDiff(file)).toString().slice(-6));
4803
+ return `d2h-${hashCode(filenameDiff(file)).toString().slice(-6)}`;
4811
4804
  }
4812
4805
  function getFileIcon(file) {
4813
- var templateName = 'file-changed';
4806
+ let templateName = 'file-changed';
4814
4807
  if (file.isRename) {
4815
4808
  templateName = 'file-renamed';
4816
4809
  }
@@ -4828,11 +4821,10 @@ function getFileIcon(file) {
4828
4821
  }
4829
4822
  return templateName;
4830
4823
  }
4831
- function diffHighlight(diffLine1, diffLine2, isCombined, config) {
4832
- if (config === void 0) { config = {}; }
4833
- var _a = __assign(__assign({}, defaultRenderConfig), config), matching = _a.matching, maxLineLengthHighlight = _a.maxLineLengthHighlight, matchWordsThreshold = _a.matchWordsThreshold, diffStyle = _a.diffStyle;
4834
- var line1 = deconstructLine(diffLine1, isCombined, false);
4835
- var line2 = deconstructLine(diffLine2, isCombined, false);
4824
+ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) {
4825
+ const { matching, maxLineLengthHighlight, matchWordsThreshold, diffStyle } = Object.assign(Object.assign({}, defaultRenderConfig), config);
4826
+ const line1 = deconstructLine(diffLine1, isCombined, false);
4827
+ const line2 = deconstructLine(diffLine2, isCombined, false);
4836
4828
  if (line1.content.length > maxLineLengthHighlight || line2.content.length > maxLineLengthHighlight) {
4837
4829
  return {
4838
4830
  oldLine: {
@@ -4845,17 +4837,17 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config) {
4845
4837
  },
4846
4838
  };
4847
4839
  }
4848
- var diff = diffStyle === 'char'
4840
+ const diff = diffStyle === 'char'
4849
4841
  ? lib_diffChars(line1.content, line2.content)
4850
4842
  : lib_diffWordsWithSpace(line1.content, line2.content);
4851
- var changedWords = [];
4843
+ const changedWords = [];
4852
4844
  if (diffStyle === 'word' && matching === 'words') {
4853
- var removed = diff.filter(function (element) { return element.removed; });
4854
- var added = diff.filter(function (element) { return element.added; });
4855
- var chunks = matcher(added, removed);
4856
- chunks.forEach(function (chunk) {
4845
+ const removed = diff.filter(element => element.removed);
4846
+ const added = diff.filter(element => element.added);
4847
+ const chunks = matcher(added, removed);
4848
+ chunks.forEach(chunk => {
4857
4849
  if (chunk[0].length === 1 && chunk[1].length === 1) {
4858
- var dist = distance(chunk[0][0], chunk[1][0]);
4850
+ const dist = distance(chunk[0][0], chunk[1][0]);
4859
4851
  if (dist < matchWordsThreshold) {
4860
4852
  changedWords.push(chunk[0][0]);
4861
4853
  changedWords.push(chunk[1][0]);
@@ -4863,13 +4855,13 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config) {
4863
4855
  }
4864
4856
  });
4865
4857
  }
4866
- var highlightedLine = diff.reduce(function (highlightedLine, part) {
4867
- var elemType = part.added ? 'ins' : part.removed ? 'del' : null;
4868
- var addClass = changedWords.indexOf(part) > -1 ? ' class="d2h-change"' : '';
4869
- var escapedValue = escapeForHtml(part.value);
4858
+ const highlightedLine = diff.reduce((highlightedLine, part) => {
4859
+ const elemType = part.added ? 'ins' : part.removed ? 'del' : null;
4860
+ const addClass = changedWords.indexOf(part) > -1 ? ' class="d2h-change"' : '';
4861
+ const escapedValue = escapeForHtml(part.value);
4870
4862
  return elemType !== null
4871
- ? "".concat(highlightedLine, "<").concat(elemType).concat(addClass, ">").concat(escapedValue, "</").concat(elemType, ">")
4872
- : "".concat(highlightedLine).concat(escapedValue);
4863
+ ? `${highlightedLine}<${elemType}${addClass}>${escapedValue}</${elemType}>`
4864
+ : `${highlightedLine}${escapedValue}`;
4873
4865
  }, '');
4874
4866
  return {
4875
4867
  oldLine: {
@@ -4885,12 +4877,19 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config) {
4885
4877
  //# sourceMappingURL=render-utils.js.map
4886
4878
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/file-list-renderer.js
4887
4879
 
4888
- var baseTemplatesPath = 'file-summary';
4889
- var iconsBaseTemplatesPath = 'icon';
4890
- function render(diffFiles, hoganUtils) {
4891
- var files = diffFiles
4892
- .map(function (file) {
4893
- return hoganUtils.render(baseTemplatesPath, 'line', {
4880
+ const baseTemplatesPath = 'file-summary';
4881
+ const iconsBaseTemplatesPath = 'icon';
4882
+ const defaultFileListRendererConfig = {
4883
+ colorScheme: defaultRenderConfig.colorScheme,
4884
+ };
4885
+ class FileListRenderer {
4886
+ constructor(hoganUtils, config = {}) {
4887
+ this.hoganUtils = hoganUtils;
4888
+ this.config = Object.assign(Object.assign({}, defaultFileListRendererConfig), config);
4889
+ }
4890
+ render(diffFiles) {
4891
+ const files = diffFiles
4892
+ .map(file => this.hoganUtils.render(baseTemplatesPath, 'line', {
4894
4893
  fileHtmlId: getHtmlId(file),
4895
4894
  oldName: file.oldName,
4896
4895
  newName: file.newName,
@@ -4898,65 +4897,56 @@ function render(diffFiles, hoganUtils) {
4898
4897
  deletedLines: '-' + file.deletedLines,
4899
4898
  addedLines: '+' + file.addedLines,
4900
4899
  }, {
4901
- fileIcon: hoganUtils.template(iconsBaseTemplatesPath, getFileIcon(file)),
4900
+ fileIcon: this.hoganUtils.template(iconsBaseTemplatesPath, getFileIcon(file)),
4901
+ }))
4902
+ .join('\n');
4903
+ return this.hoganUtils.render(baseTemplatesPath, 'wrapper', {
4904
+ colorScheme: colorSchemeToCss(this.config.colorScheme),
4905
+ filesNumber: diffFiles.length,
4906
+ files: files,
4902
4907
  });
4903
- })
4904
- .join('\n');
4905
- return hoganUtils.render(baseTemplatesPath, 'wrapper', {
4906
- filesNumber: diffFiles.length,
4907
- files: files,
4908
- });
4908
+ }
4909
4909
  }
4910
4910
  //# sourceMappingURL=file-list-renderer.js.map
4911
4911
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/line-by-line-renderer.js
4912
- var line_by_line_renderer_assign = (undefined && undefined.__assign) || function () {
4913
- line_by_line_renderer_assign = Object.assign || function(t) {
4914
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4915
- s = arguments[i];
4916
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4917
- t[p] = s[p];
4918
- }
4919
- return t;
4920
- };
4921
- return line_by_line_renderer_assign.apply(this, arguments);
4922
- };
4923
4912
 
4924
4913
 
4925
4914
 
4926
- var defaultLineByLineRendererConfig = line_by_line_renderer_assign(line_by_line_renderer_assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
4927
- var genericTemplatesPath = 'generic';
4928
- var line_by_line_renderer_baseTemplatesPath = 'line-by-line';
4929
- var line_by_line_renderer_iconsBaseTemplatesPath = 'icon';
4930
- var tagsBaseTemplatesPath = 'tag';
4931
- var LineByLineRenderer = (function () {
4932
- function LineByLineRenderer(hoganUtils, config) {
4933
- if (config === void 0) { config = {}; }
4915
+ const defaultLineByLineRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
4916
+ const genericTemplatesPath = 'generic';
4917
+ const line_by_line_renderer_baseTemplatesPath = 'line-by-line';
4918
+ const line_by_line_renderer_iconsBaseTemplatesPath = 'icon';
4919
+ const tagsBaseTemplatesPath = 'tag';
4920
+ class LineByLineRenderer {
4921
+ constructor(hoganUtils, config = {}) {
4934
4922
  this.hoganUtils = hoganUtils;
4935
- this.config = line_by_line_renderer_assign(line_by_line_renderer_assign({}, defaultLineByLineRendererConfig), config);
4923
+ this.config = Object.assign(Object.assign({}, defaultLineByLineRendererConfig), config);
4936
4924
  }
4937
- LineByLineRenderer.prototype.render = function (diffFiles) {
4938
- var _this = this;
4939
- var diffsHtml = diffFiles
4940
- .map(function (file) {
4941
- var diffs;
4925
+ render(diffFiles) {
4926
+ const diffsHtml = diffFiles
4927
+ .map(file => {
4928
+ let diffs;
4942
4929
  if (file.blocks.length) {
4943
- diffs = _this.generateFileHtml(file);
4930
+ diffs = this.generateFileHtml(file);
4944
4931
  }
4945
4932
  else {
4946
- diffs = _this.generateEmptyDiff();
4933
+ diffs = this.generateEmptyDiff();
4947
4934
  }
4948
- return _this.makeFileDiffHtml(file, diffs);
4935
+ return this.makeFileDiffHtml(file, diffs);
4949
4936
  })
4950
4937
  .join('\n');
4951
- return this.hoganUtils.render(genericTemplatesPath, 'wrapper', { content: diffsHtml });
4952
- };
4953
- LineByLineRenderer.prototype.makeFileDiffHtml = function (file, diffs) {
4938
+ return this.hoganUtils.render(genericTemplatesPath, 'wrapper', {
4939
+ colorScheme: colorSchemeToCss(this.config.colorScheme),
4940
+ content: diffsHtml,
4941
+ });
4942
+ }
4943
+ makeFileDiffHtml(file, diffs) {
4954
4944
  if (this.config.renderNothingWhenEmpty && Array.isArray(file.blocks) && file.blocks.length === 0)
4955
4945
  return '';
4956
- var fileDiffTemplate = this.hoganUtils.template(line_by_line_renderer_baseTemplatesPath, 'file-diff');
4957
- var filePathTemplate = this.hoganUtils.template(genericTemplatesPath, 'file-path');
4958
- var fileIconTemplate = this.hoganUtils.template(line_by_line_renderer_iconsBaseTemplatesPath, 'file');
4959
- var fileTagTemplate = this.hoganUtils.template(tagsBaseTemplatesPath, getFileIcon(file));
4946
+ const fileDiffTemplate = this.hoganUtils.template(line_by_line_renderer_baseTemplatesPath, 'file-diff');
4947
+ const filePathTemplate = this.hoganUtils.template(genericTemplatesPath, 'file-path');
4948
+ const fileIconTemplate = this.hoganUtils.template(line_by_line_renderer_iconsBaseTemplatesPath, 'file');
4949
+ const fileTagTemplate = this.hoganUtils.template(tagsBaseTemplatesPath, getFileIcon(file));
4960
4950
  return fileDiffTemplate.render({
4961
4951
  file: file,
4962
4952
  fileHtmlId: getHtmlId(file),
@@ -4968,38 +4958,35 @@ var LineByLineRenderer = (function () {
4968
4958
  fileTag: fileTagTemplate,
4969
4959
  }),
4970
4960
  });
4971
- };
4972
- LineByLineRenderer.prototype.generateEmptyDiff = function () {
4961
+ }
4962
+ generateEmptyDiff() {
4973
4963
  return this.hoganUtils.render(genericTemplatesPath, 'empty-diff', {
4974
4964
  contentClass: 'd2h-code-line',
4975
4965
  CSSLineClass: CSSLineClass,
4976
4966
  });
4977
- };
4978
- LineByLineRenderer.prototype.generateFileHtml = function (file) {
4979
- var _this = this;
4980
- var matcher = newMatcherFn(newDistanceFn(function (e) { return deconstructLine(e.content, file.isCombined).content; }));
4967
+ }
4968
+ generateFileHtml(file) {
4969
+ const matcher = newMatcherFn(newDistanceFn((e) => deconstructLine(e.content, file.isCombined).content));
4981
4970
  return file.blocks
4982
- .map(function (block) {
4983
- var lines = _this.hoganUtils.render(genericTemplatesPath, 'block-header', {
4971
+ .map(block => {
4972
+ let lines = this.hoganUtils.render(genericTemplatesPath, 'block-header', {
4984
4973
  CSSLineClass: CSSLineClass,
4985
4974
  blockHeader: file.isTooBig ? block.header : escapeForHtml(block.header),
4986
4975
  lineClass: 'd2h-code-linenumber',
4987
4976
  contentClass: 'd2h-code-line',
4988
4977
  });
4989
- _this.applyLineGroupping(block).forEach(function (_a) {
4990
- var contextLines = _a[0], oldLines = _a[1], newLines = _a[2];
4978
+ this.applyLineGroupping(block).forEach(([contextLines, oldLines, newLines]) => {
4991
4979
  if (oldLines.length && newLines.length && !contextLines.length) {
4992
- _this.applyRematchMatching(oldLines, newLines, matcher).map(function (_a) {
4993
- var oldLines = _a[0], newLines = _a[1];
4994
- var _b = _this.processChangedLines(file, file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
4980
+ this.applyRematchMatching(oldLines, newLines, matcher).map(([oldLines, newLines]) => {
4981
+ const { left, right } = this.processChangedLines(file, file.isCombined, oldLines, newLines);
4995
4982
  lines += left;
4996
4983
  lines += right;
4997
4984
  });
4998
4985
  }
4999
4986
  else if (contextLines.length) {
5000
- contextLines.forEach(function (line) {
5001
- var _a = deconstructLine(line.content, file.isCombined), prefix = _a.prefix, content = _a.content;
5002
- lines += _this.generateSingleLineHtml(file, {
4987
+ contextLines.forEach(line => {
4988
+ const { prefix, content } = deconstructLine(line.content, file.isCombined);
4989
+ lines += this.generateSingleLineHtml(file, {
5003
4990
  type: CSSLineClass.CONTEXT,
5004
4991
  prefix: prefix,
5005
4992
  content: content,
@@ -5009,7 +4996,7 @@ var LineByLineRenderer = (function () {
5009
4996
  });
5010
4997
  }
5011
4998
  else if (oldLines.length || newLines.length) {
5012
- var _b = _this.processChangedLines(file, file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
4999
+ const { left, right } = this.processChangedLines(file, file.isCombined, oldLines, newLines);
5013
5000
  lines += left;
5014
5001
  lines += right;
5015
5002
  }
@@ -5020,13 +5007,13 @@ var LineByLineRenderer = (function () {
5020
5007
  return lines;
5021
5008
  })
5022
5009
  .join('\n');
5023
- };
5024
- LineByLineRenderer.prototype.applyLineGroupping = function (block) {
5025
- var blockLinesGroups = [];
5026
- var oldLines = [];
5027
- var newLines = [];
5028
- for (var i = 0; i < block.lines.length; i++) {
5029
- var diffLine = block.lines[i];
5010
+ }
5011
+ applyLineGroupping(block) {
5012
+ const blockLinesGroups = [];
5013
+ let oldLines = [];
5014
+ let newLines = [];
5015
+ for (let i = 0; i < block.lines.length; i++) {
5016
+ const diffLine = block.lines[i];
5030
5017
  if ((diffLine.type !== LineType.INSERT && newLines.length) ||
5031
5018
  (diffLine.type === LineType.CONTEXT && oldLines.length > 0)) {
5032
5019
  blockLinesGroups.push([[], oldLines, newLines]);
@@ -5052,59 +5039,59 @@ var LineByLineRenderer = (function () {
5052
5039
  newLines = [];
5053
5040
  }
5054
5041
  return blockLinesGroups;
5055
- };
5056
- LineByLineRenderer.prototype.applyRematchMatching = function (oldLines, newLines, matcher) {
5057
- var comparisons = oldLines.length * newLines.length;
5058
- var maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(function (elem) { return elem.content.length; })));
5059
- var doMatching = comparisons < this.config.matchingMaxComparisons &&
5042
+ }
5043
+ applyRematchMatching(oldLines, newLines, matcher) {
5044
+ const comparisons = oldLines.length * newLines.length;
5045
+ const maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(elem => elem.content.length)));
5046
+ const doMatching = comparisons < this.config.matchingMaxComparisons &&
5060
5047
  maxLineSizeInBlock < this.config.maxLineSizeInBlockForComparison &&
5061
5048
  (this.config.matching === 'lines' || this.config.matching === 'words');
5062
5049
  return doMatching ? matcher(oldLines, newLines) : [[oldLines, newLines]];
5063
- };
5064
- LineByLineRenderer.prototype.processChangedLines = function (file, isCombined, oldLines, newLines) {
5065
- var fileHtml = {
5050
+ }
5051
+ processChangedLines(file, isCombined, oldLines, newLines) {
5052
+ const fileHtml = {
5066
5053
  right: '',
5067
5054
  left: '',
5068
5055
  };
5069
- var maxLinesNumber = Math.max(oldLines.length, newLines.length);
5070
- for (var i = 0; i < maxLinesNumber; i++) {
5071
- var oldLine = oldLines[i];
5072
- var newLine = newLines[i];
5073
- var diff = oldLine !== undefined && newLine !== undefined
5056
+ const maxLinesNumber = Math.max(oldLines.length, newLines.length);
5057
+ for (let i = 0; i < maxLinesNumber; i++) {
5058
+ const oldLine = oldLines[i];
5059
+ const newLine = newLines[i];
5060
+ const diff = oldLine !== undefined && newLine !== undefined
5074
5061
  ? diffHighlight(oldLine.content, newLine.content, isCombined, this.config)
5075
5062
  : undefined;
5076
- var preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5077
- ? line_by_line_renderer_assign(line_by_line_renderer_assign({}, (diff !== undefined
5063
+ const preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5064
+ ? Object.assign(Object.assign({}, (diff !== undefined
5078
5065
  ? {
5079
5066
  prefix: diff.oldLine.prefix,
5080
5067
  content: diff.oldLine.content,
5081
5068
  type: CSSLineClass.DELETE_CHANGES,
5082
5069
  }
5083
- : line_by_line_renderer_assign(line_by_line_renderer_assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { oldNumber: oldLine.oldNumber, newNumber: oldLine.newNumber }) : undefined;
5084
- var preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5085
- ? line_by_line_renderer_assign(line_by_line_renderer_assign({}, (diff !== undefined
5070
+ : Object.assign(Object.assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { oldNumber: oldLine.oldNumber, newNumber: oldLine.newNumber }) : undefined;
5071
+ const preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5072
+ ? Object.assign(Object.assign({}, (diff !== undefined
5086
5073
  ? {
5087
5074
  prefix: diff.newLine.prefix,
5088
5075
  content: diff.newLine.content,
5089
5076
  type: CSSLineClass.INSERT_CHANGES,
5090
5077
  }
5091
- : line_by_line_renderer_assign(line_by_line_renderer_assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { oldNumber: newLine.oldNumber, newNumber: newLine.newNumber }) : undefined;
5092
- var _a = this.generateLineHtml(file, preparedOldLine, preparedNewLine), left = _a.left, right = _a.right;
5078
+ : Object.assign(Object.assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { oldNumber: newLine.oldNumber, newNumber: newLine.newNumber }) : undefined;
5079
+ const { left, right } = this.generateLineHtml(file, preparedOldLine, preparedNewLine);
5093
5080
  fileHtml.left += left;
5094
5081
  fileHtml.right += right;
5095
5082
  }
5096
5083
  return fileHtml;
5097
- };
5098
- LineByLineRenderer.prototype.generateLineHtml = function (file, oldLine, newLine) {
5084
+ }
5085
+ generateLineHtml(file, oldLine, newLine) {
5099
5086
  return {
5100
5087
  left: this.generateSingleLineHtml(file, oldLine),
5101
5088
  right: this.generateSingleLineHtml(file, newLine),
5102
5089
  };
5103
- };
5104
- LineByLineRenderer.prototype.generateSingleLineHtml = function (file, line) {
5090
+ }
5091
+ generateSingleLineHtml(file, line) {
5105
5092
  if (line === undefined)
5106
5093
  return '';
5107
- var lineNumberHtml = this.hoganUtils.render(line_by_line_renderer_baseTemplatesPath, 'numbers', {
5094
+ const lineNumberHtml = this.hoganUtils.render(line_by_line_renderer_baseTemplatesPath, 'numbers', {
5108
5095
  oldNumber: line.oldNumber || '',
5109
5096
  newNumber: line.newNumber || '',
5110
5097
  });
@@ -5115,63 +5102,51 @@ var LineByLineRenderer = (function () {
5115
5102
  prefix: line.prefix === ' ' ? '&nbsp;' : line.prefix,
5116
5103
  content: line.content,
5117
5104
  lineNumber: lineNumberHtml,
5118
- line: line,
5119
- file: file,
5105
+ line,
5106
+ file,
5120
5107
  });
5121
- };
5122
- return LineByLineRenderer;
5123
- }());
5124
- /* harmony default export */ const line_by_line_renderer = (LineByLineRenderer);
5108
+ }
5109
+ }
5125
5110
  //# sourceMappingURL=line-by-line-renderer.js.map
5126
5111
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/side-by-side-renderer.js
5127
- var side_by_side_renderer_assign = (undefined && undefined.__assign) || function () {
5128
- side_by_side_renderer_assign = Object.assign || function(t) {
5129
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5130
- s = arguments[i];
5131
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5132
- t[p] = s[p];
5133
- }
5134
- return t;
5135
- };
5136
- return side_by_side_renderer_assign.apply(this, arguments);
5137
- };
5138
5112
 
5139
5113
 
5140
5114
 
5141
- var defaultSideBySideRendererConfig = side_by_side_renderer_assign(side_by_side_renderer_assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
5142
- var side_by_side_renderer_genericTemplatesPath = 'generic';
5143
- var side_by_side_renderer_baseTemplatesPath = 'side-by-side';
5144
- var side_by_side_renderer_iconsBaseTemplatesPath = 'icon';
5145
- var side_by_side_renderer_tagsBaseTemplatesPath = 'tag';
5146
- var SideBySideRenderer = (function () {
5147
- function SideBySideRenderer(hoganUtils, config) {
5148
- if (config === void 0) { config = {}; }
5115
+ const defaultSideBySideRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
5116
+ const side_by_side_renderer_genericTemplatesPath = 'generic';
5117
+ const side_by_side_renderer_baseTemplatesPath = 'side-by-side';
5118
+ const side_by_side_renderer_iconsBaseTemplatesPath = 'icon';
5119
+ const side_by_side_renderer_tagsBaseTemplatesPath = 'tag';
5120
+ class SideBySideRenderer {
5121
+ constructor(hoganUtils, config = {}) {
5149
5122
  this.hoganUtils = hoganUtils;
5150
- this.config = side_by_side_renderer_assign(side_by_side_renderer_assign({}, defaultSideBySideRendererConfig), config);
5123
+ this.config = Object.assign(Object.assign({}, defaultSideBySideRendererConfig), config);
5151
5124
  }
5152
- SideBySideRenderer.prototype.render = function (diffFiles) {
5153
- var _this = this;
5154
- var diffsHtml = diffFiles
5155
- .map(function (file) {
5156
- var diffs;
5125
+ render(diffFiles) {
5126
+ const diffsHtml = diffFiles
5127
+ .map(file => {
5128
+ let diffs;
5157
5129
  if (file.blocks.length) {
5158
- diffs = _this.generateFileHtml(file);
5130
+ diffs = this.generateFileHtml(file);
5159
5131
  }
5160
5132
  else {
5161
- diffs = _this.generateEmptyDiff();
5133
+ diffs = this.generateEmptyDiff();
5162
5134
  }
5163
- return _this.makeFileDiffHtml(file, diffs);
5135
+ return this.makeFileDiffHtml(file, diffs);
5164
5136
  })
5165
5137
  .join('\n');
5166
- return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'wrapper', { content: diffsHtml });
5167
- };
5168
- SideBySideRenderer.prototype.makeFileDiffHtml = function (file, diffs) {
5138
+ return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'wrapper', {
5139
+ colorScheme: colorSchemeToCss(this.config.colorScheme),
5140
+ content: diffsHtml,
5141
+ });
5142
+ }
5143
+ makeFileDiffHtml(file, diffs) {
5169
5144
  if (this.config.renderNothingWhenEmpty && Array.isArray(file.blocks) && file.blocks.length === 0)
5170
5145
  return '';
5171
- var fileDiffTemplate = this.hoganUtils.template(side_by_side_renderer_baseTemplatesPath, 'file-diff');
5172
- var filePathTemplate = this.hoganUtils.template(side_by_side_renderer_genericTemplatesPath, 'file-path');
5173
- var fileIconTemplate = this.hoganUtils.template(side_by_side_renderer_iconsBaseTemplatesPath, 'file');
5174
- var fileTagTemplate = this.hoganUtils.template(side_by_side_renderer_tagsBaseTemplatesPath, getFileIcon(file));
5146
+ const fileDiffTemplate = this.hoganUtils.template(side_by_side_renderer_baseTemplatesPath, 'file-diff');
5147
+ const filePathTemplate = this.hoganUtils.template(side_by_side_renderer_genericTemplatesPath, 'file-path');
5148
+ const fileIconTemplate = this.hoganUtils.template(side_by_side_renderer_iconsBaseTemplatesPath, 'file');
5149
+ const fileTagTemplate = this.hoganUtils.template(side_by_side_renderer_tagsBaseTemplatesPath, getFileIcon(file));
5175
5150
  return fileDiffTemplate.render({
5176
5151
  file: file,
5177
5152
  fileHtmlId: getHtmlId(file),
@@ -5183,8 +5158,8 @@ var SideBySideRenderer = (function () {
5183
5158
  fileTag: fileTagTemplate,
5184
5159
  }),
5185
5160
  });
5186
- };
5187
- SideBySideRenderer.prototype.generateEmptyDiff = function () {
5161
+ }
5162
+ generateEmptyDiff() {
5188
5163
  return {
5189
5164
  right: '',
5190
5165
  left: this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'empty-diff', {
@@ -5192,30 +5167,27 @@ var SideBySideRenderer = (function () {
5192
5167
  CSSLineClass: CSSLineClass,
5193
5168
  }),
5194
5169
  };
5195
- };
5196
- SideBySideRenderer.prototype.generateFileHtml = function (file) {
5197
- var _this = this;
5198
- var matcher = newMatcherFn(newDistanceFn(function (e) { return deconstructLine(e.content, file.isCombined).content; }));
5170
+ }
5171
+ generateFileHtml(file) {
5172
+ const matcher = newMatcherFn(newDistanceFn((e) => deconstructLine(e.content, file.isCombined).content));
5199
5173
  return file.blocks
5200
- .map(function (block) {
5201
- var fileHtml = {
5202
- left: _this.makeHeaderHtml(block.header, file),
5203
- right: _this.makeHeaderHtml(''),
5174
+ .map(block => {
5175
+ const fileHtml = {
5176
+ left: this.makeHeaderHtml(block.header, file),
5177
+ right: this.makeHeaderHtml(''),
5204
5178
  };
5205
- _this.applyLineGroupping(block).forEach(function (_a) {
5206
- var contextLines = _a[0], oldLines = _a[1], newLines = _a[2];
5179
+ this.applyLineGroupping(block).forEach(([contextLines, oldLines, newLines]) => {
5207
5180
  if (oldLines.length && newLines.length && !contextLines.length) {
5208
- _this.applyRematchMatching(oldLines, newLines, matcher).map(function (_a) {
5209
- var oldLines = _a[0], newLines = _a[1];
5210
- var _b = _this.processChangedLines(file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
5181
+ this.applyRematchMatching(oldLines, newLines, matcher).map(([oldLines, newLines]) => {
5182
+ const { left, right } = this.processChangedLines(file.isCombined, oldLines, newLines);
5211
5183
  fileHtml.left += left;
5212
5184
  fileHtml.right += right;
5213
5185
  });
5214
5186
  }
5215
5187
  else if (contextLines.length) {
5216
- contextLines.forEach(function (line) {
5217
- var _a = deconstructLine(line.content, file.isCombined), prefix = _a.prefix, content = _a.content;
5218
- var _b = _this.generateLineHtml({
5188
+ contextLines.forEach(line => {
5189
+ const { prefix, content } = deconstructLine(line.content, file.isCombined);
5190
+ const { left, right } = this.generateLineHtml({
5219
5191
  type: CSSLineClass.CONTEXT,
5220
5192
  prefix: prefix,
5221
5193
  content: content,
@@ -5225,13 +5197,13 @@ var SideBySideRenderer = (function () {
5225
5197
  prefix: prefix,
5226
5198
  content: content,
5227
5199
  number: line.newNumber,
5228
- }), left = _b.left, right = _b.right;
5200
+ });
5229
5201
  fileHtml.left += left;
5230
5202
  fileHtml.right += right;
5231
5203
  });
5232
5204
  }
5233
5205
  else if (oldLines.length || newLines.length) {
5234
- var _b = _this.processChangedLines(file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
5206
+ const { left, right } = this.processChangedLines(file.isCombined, oldLines, newLines);
5235
5207
  fileHtml.left += left;
5236
5208
  fileHtml.right += right;
5237
5209
  }
@@ -5241,16 +5213,16 @@ var SideBySideRenderer = (function () {
5241
5213
  });
5242
5214
  return fileHtml;
5243
5215
  })
5244
- .reduce(function (accomulated, html) {
5216
+ .reduce((accomulated, html) => {
5245
5217
  return { left: accomulated.left + html.left, right: accomulated.right + html.right };
5246
5218
  }, { left: '', right: '' });
5247
- };
5248
- SideBySideRenderer.prototype.applyLineGroupping = function (block) {
5249
- var blockLinesGroups = [];
5250
- var oldLines = [];
5251
- var newLines = [];
5252
- for (var i = 0; i < block.lines.length; i++) {
5253
- var diffLine = block.lines[i];
5219
+ }
5220
+ applyLineGroupping(block) {
5221
+ const blockLinesGroups = [];
5222
+ let oldLines = [];
5223
+ let newLines = [];
5224
+ for (let i = 0; i < block.lines.length; i++) {
5225
+ const diffLine = block.lines[i];
5254
5226
  if ((diffLine.type !== LineType.INSERT && newLines.length) ||
5255
5227
  (diffLine.type === LineType.CONTEXT && oldLines.length > 0)) {
5256
5228
  blockLinesGroups.push([[], oldLines, newLines]);
@@ -5276,86 +5248,84 @@ var SideBySideRenderer = (function () {
5276
5248
  newLines = [];
5277
5249
  }
5278
5250
  return blockLinesGroups;
5279
- };
5280
- SideBySideRenderer.prototype.applyRematchMatching = function (oldLines, newLines, matcher) {
5281
- var comparisons = oldLines.length * newLines.length;
5282
- var maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(function (elem) { return elem.content.length; })));
5283
- var doMatching = comparisons < this.config.matchingMaxComparisons &&
5251
+ }
5252
+ applyRematchMatching(oldLines, newLines, matcher) {
5253
+ const comparisons = oldLines.length * newLines.length;
5254
+ const maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(elem => elem.content.length)));
5255
+ const doMatching = comparisons < this.config.matchingMaxComparisons &&
5284
5256
  maxLineSizeInBlock < this.config.maxLineSizeInBlockForComparison &&
5285
5257
  (this.config.matching === 'lines' || this.config.matching === 'words');
5286
5258
  return doMatching ? matcher(oldLines, newLines) : [[oldLines, newLines]];
5287
- };
5288
- SideBySideRenderer.prototype.makeHeaderHtml = function (blockHeader, file) {
5259
+ }
5260
+ makeHeaderHtml(blockHeader, file) {
5289
5261
  return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'block-header', {
5290
5262
  CSSLineClass: CSSLineClass,
5291
5263
  blockHeader: (file === null || file === void 0 ? void 0 : file.isTooBig) ? blockHeader : escapeForHtml(blockHeader),
5292
5264
  lineClass: 'd2h-code-side-linenumber',
5293
5265
  contentClass: 'd2h-code-side-line',
5294
5266
  });
5295
- };
5296
- SideBySideRenderer.prototype.processChangedLines = function (isCombined, oldLines, newLines) {
5297
- var fileHtml = {
5267
+ }
5268
+ processChangedLines(isCombined, oldLines, newLines) {
5269
+ const fileHtml = {
5298
5270
  right: '',
5299
5271
  left: '',
5300
5272
  };
5301
- var maxLinesNumber = Math.max(oldLines.length, newLines.length);
5302
- for (var i = 0; i < maxLinesNumber; i++) {
5303
- var oldLine = oldLines[i];
5304
- var newLine = newLines[i];
5305
- var diff = oldLine !== undefined && newLine !== undefined
5273
+ const maxLinesNumber = Math.max(oldLines.length, newLines.length);
5274
+ for (let i = 0; i < maxLinesNumber; i++) {
5275
+ const oldLine = oldLines[i];
5276
+ const newLine = newLines[i];
5277
+ const diff = oldLine !== undefined && newLine !== undefined
5306
5278
  ? diffHighlight(oldLine.content, newLine.content, isCombined, this.config)
5307
5279
  : undefined;
5308
- var preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5309
- ? side_by_side_renderer_assign(side_by_side_renderer_assign({}, (diff !== undefined
5280
+ const preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5281
+ ? Object.assign(Object.assign({}, (diff !== undefined
5310
5282
  ? {
5311
5283
  prefix: diff.oldLine.prefix,
5312
5284
  content: diff.oldLine.content,
5313
5285
  type: CSSLineClass.DELETE_CHANGES,
5314
5286
  }
5315
- : side_by_side_renderer_assign(side_by_side_renderer_assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { number: oldLine.oldNumber }) : undefined;
5316
- var preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5317
- ? side_by_side_renderer_assign(side_by_side_renderer_assign({}, (diff !== undefined
5287
+ : Object.assign(Object.assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { number: oldLine.oldNumber }) : undefined;
5288
+ const preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5289
+ ? Object.assign(Object.assign({}, (diff !== undefined
5318
5290
  ? {
5319
5291
  prefix: diff.newLine.prefix,
5320
5292
  content: diff.newLine.content,
5321
5293
  type: CSSLineClass.INSERT_CHANGES,
5322
5294
  }
5323
- : side_by_side_renderer_assign(side_by_side_renderer_assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { number: newLine.newNumber }) : undefined;
5324
- var _a = this.generateLineHtml(preparedOldLine, preparedNewLine), left = _a.left, right = _a.right;
5295
+ : Object.assign(Object.assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { number: newLine.newNumber }) : undefined;
5296
+ const { left, right } = this.generateLineHtml(preparedOldLine, preparedNewLine);
5325
5297
  fileHtml.left += left;
5326
5298
  fileHtml.right += right;
5327
5299
  }
5328
5300
  return fileHtml;
5329
- };
5330
- SideBySideRenderer.prototype.generateLineHtml = function (oldLine, newLine) {
5301
+ }
5302
+ generateLineHtml(oldLine, newLine) {
5331
5303
  return {
5332
5304
  left: this.generateSingleHtml(oldLine),
5333
5305
  right: this.generateSingleHtml(newLine),
5334
5306
  };
5335
- };
5336
- SideBySideRenderer.prototype.generateSingleHtml = function (line) {
5337
- var lineClass = 'd2h-code-side-linenumber';
5338
- var contentClass = 'd2h-code-side-line';
5307
+ }
5308
+ generateSingleHtml(line) {
5309
+ const lineClass = 'd2h-code-side-linenumber';
5310
+ const contentClass = 'd2h-code-side-line';
5339
5311
  return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'line', {
5340
- type: (line === null || line === void 0 ? void 0 : line.type) || "".concat(CSSLineClass.CONTEXT, " d2h-emptyplaceholder"),
5341
- lineClass: line !== undefined ? lineClass : "".concat(lineClass, " d2h-code-side-emptyplaceholder"),
5342
- contentClass: line !== undefined ? contentClass : "".concat(contentClass, " d2h-code-side-emptyplaceholder"),
5312
+ type: (line === null || line === void 0 ? void 0 : line.type) || `${CSSLineClass.CONTEXT} d2h-emptyplaceholder`,
5313
+ lineClass: line !== undefined ? lineClass : `${lineClass} d2h-code-side-emptyplaceholder`,
5314
+ contentClass: line !== undefined ? contentClass : `${contentClass} d2h-code-side-emptyplaceholder`,
5343
5315
  prefix: (line === null || line === void 0 ? void 0 : line.prefix) === ' ' ? '&nbsp;' : line === null || line === void 0 ? void 0 : line.prefix,
5344
5316
  content: line === null || line === void 0 ? void 0 : line.content,
5345
5317
  lineNumber: line === null || line === void 0 ? void 0 : line.number,
5346
5318
  });
5347
- };
5348
- return SideBySideRenderer;
5349
- }());
5350
- /* harmony default export */ const side_by_side_renderer = (SideBySideRenderer);
5319
+ }
5320
+ }
5351
5321
  //# sourceMappingURL=side-by-side-renderer.js.map
5352
5322
  // EXTERNAL MODULE: ../../node_modules/hogan.js/lib/hogan.js
5353
5323
  var hogan = __webpack_require__(112);
5354
5324
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff2html-templates.js
5355
5325
 
5356
- var defaultTemplates = {};
5326
+ const defaultTemplates = {};
5357
5327
  defaultTemplates["file-summary-line"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<li class=\"d2h-file-list-line\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-name-wrapper\">"); t.b("\n" + i); t.b(t.rp("<fileIcon0", c, p, " ")); t.b(" <a href=\"#"); t.b(t.v(t.f("fileHtmlId", c, p, 0))); t.b("\" class=\"d2h-file-name\">"); t.b(t.v(t.f("fileName", c, p, 0))); t.b("</a>"); t.b("\n" + i); t.b(" <span class=\"d2h-file-stats\">"); t.b("\n" + i); t.b(" <span class=\"d2h-lines-added\">"); t.b(t.v(t.f("addedLines", c, p, 0))); t.b("</span>"); t.b("\n" + i); t.b(" <span class=\"d2h-lines-deleted\">"); t.b(t.v(t.f("deletedLines", c, p, 0))); t.b("</span>"); t.b("\n" + i); t.b(" </span>"); t.b("\n" + i); t.b(" </span>"); t.b("\n" + i); t.b("</li>"); return t.fl(); }, partials: { "<fileIcon0": { name: "fileIcon", partials: {}, subs: {} } }, subs: {} });
5358
- defaultTemplates["file-summary-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-file-list-wrapper\">"); t.b("\n" + i); t.b(" <div class=\"d2h-file-list-header\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-list-title\">Files changed ("); t.b(t.v(t.f("filesNumber", c, p, 0))); t.b(")</span>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-hide\">hide</a>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-show\">show</a>"); t.b("\n" + i); t.b(" </div>"); t.b("\n" + i); t.b(" <ol class=\"d2h-file-list\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("files", c, p, 0))); t.b("\n" + i); t.b(" </ol>"); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5328
+ defaultTemplates["file-summary-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-file-list-wrapper "); t.b(t.v(t.f("colorScheme", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" <div class=\"d2h-file-list-header\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-list-title\">Files changed ("); t.b(t.v(t.f("filesNumber", c, p, 0))); t.b(")</span>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-hide\">hide</a>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-show\">show</a>"); t.b("\n" + i); t.b(" </div>"); t.b("\n" + i); t.b(" <ol class=\"d2h-file-list\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("files", c, p, 0))); t.b("\n" + i); t.b(" </ol>"); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5359
5329
  defaultTemplates["generic-block-header"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<tr>"); t.b("\n" + i); t.b(" <td class=\""); t.b(t.v(t.f("lineClass", c, p, 0))); t.b(" "); t.b(t.v(t.d("CSSLineClass.INFO", c, p, 0))); t.b("\"></td>"); t.b("\n" + i); t.b(" <td class=\""); t.b(t.v(t.d("CSSLineClass.INFO", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" <div class=\""); t.b(t.v(t.f("contentClass", c, p, 0))); t.b("\">"); if (t.s(t.f("blockHeader", c, p, 1), c, p, 0, 156, 173, "{{ }}")) {
5360
5330
  t.rs(c, p, function (c, p, t) { t.b(t.t(t.f("blockHeader", c, p, 0))); });
5361
5331
  c.pop();
@@ -5377,7 +5347,7 @@ defaultTemplates["generic-line"] = new hogan.Template({ code: function (c, p, i)
5377
5347
  t.b(" <span class=\"d2h-code-line-ctn\"><br></span>");
5378
5348
  t.b("\n" + i);
5379
5349
  } ; t.b(" </div>"); t.b("\n" + i); t.b(" </td>"); t.b("\n" + i); t.b("</tr>"); return t.fl(); }, partials: {}, subs: {} });
5380
- defaultTemplates["generic-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-wrapper\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("content", c, p, 0))); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5350
+ defaultTemplates["generic-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-wrapper "); t.b(t.v(t.f("colorScheme", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("content", c, p, 0))); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5381
5351
  defaultTemplates["icon-file-added"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-added\" height=\"16\" title=\"added\" version=\"1.1\" viewBox=\"0 0 14 16\""); t.b("\n" + i); t.b(" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
5382
5352
  defaultTemplates["icon-file-changed"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-changed\" height=\"16\" title=\"modified\" version=\"1.1\""); t.b("\n" + i); t.b(" viewBox=\"0 0 14 16\" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
5383
5353
  defaultTemplates["icon-file-deleted"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-deleted\" height=\"16\" title=\"removed\" version=\"1.1\""); t.b("\n" + i); t.b(" viewBox=\"0 0 14 16\" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
@@ -5392,85 +5362,58 @@ defaultTemplates["tag-file-deleted"] = new hogan.Template({ code: function (c, p
5392
5362
  defaultTemplates["tag-file-renamed"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<span class=\"d2h-tag d2h-moved d2h-moved-tag\">RENAMED</span>"); return t.fl(); }, partials: {}, subs: {} });
5393
5363
  //# sourceMappingURL=diff2html-templates.js.map
5394
5364
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/hoganjs-utils.js
5395
- var hoganjs_utils_assign = (undefined && undefined.__assign) || function () {
5396
- hoganjs_utils_assign = Object.assign || function(t) {
5397
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5398
- s = arguments[i];
5399
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5400
- t[p] = s[p];
5401
- }
5402
- return t;
5403
- };
5404
- return hoganjs_utils_assign.apply(this, arguments);
5405
- };
5406
5365
 
5407
5366
 
5408
- var HoganJsUtils = (function () {
5409
- function HoganJsUtils(_a) {
5410
- var _b = _a.compiledTemplates, compiledTemplates = _b === void 0 ? {} : _b, _c = _a.rawTemplates, rawTemplates = _c === void 0 ? {} : _c;
5411
- var compiledRawTemplates = Object.entries(rawTemplates).reduce(function (previousTemplates, _a) {
5412
- var _b;
5413
- var name = _a[0], templateString = _a[1];
5414
- var compiledTemplate = hogan.compile(templateString, { asString: false });
5415
- return hoganjs_utils_assign(hoganjs_utils_assign({}, previousTemplates), (_b = {}, _b[name] = compiledTemplate, _b));
5367
+ class HoganJsUtils {
5368
+ constructor({ compiledTemplates = {}, rawTemplates = {} }) {
5369
+ const compiledRawTemplates = Object.entries(rawTemplates).reduce((previousTemplates, [name, templateString]) => {
5370
+ const compiledTemplate = hogan.compile(templateString, { asString: false });
5371
+ return Object.assign(Object.assign({}, previousTemplates), { [name]: compiledTemplate });
5416
5372
  }, {});
5417
- this.preCompiledTemplates = hoganjs_utils_assign(hoganjs_utils_assign(hoganjs_utils_assign({}, defaultTemplates), compiledTemplates), compiledRawTemplates);
5373
+ this.preCompiledTemplates = Object.assign(Object.assign(Object.assign({}, defaultTemplates), compiledTemplates), compiledRawTemplates);
5418
5374
  }
5419
- HoganJsUtils.compile = function (templateString) {
5375
+ static compile(templateString) {
5420
5376
  return hogan.compile(templateString, { asString: false });
5421
- };
5422
- HoganJsUtils.prototype.render = function (namespace, view, params, partials, indent) {
5423
- var templateKey = this.templateKey(namespace, view);
5377
+ }
5378
+ render(namespace, view, params, partials, indent) {
5379
+ const templateKey = this.templateKey(namespace, view);
5424
5380
  try {
5425
- var template = this.preCompiledTemplates[templateKey];
5381
+ const template = this.preCompiledTemplates[templateKey];
5426
5382
  return template.render(params, partials, indent);
5427
5383
  }
5428
5384
  catch (e) {
5429
- throw new Error("Could not find template to render '".concat(templateKey, "'"));
5385
+ throw new Error(`Could not find template to render '${templateKey}'`);
5430
5386
  }
5431
- };
5432
- HoganJsUtils.prototype.template = function (namespace, view) {
5387
+ }
5388
+ template(namespace, view) {
5433
5389
  return this.preCompiledTemplates[this.templateKey(namespace, view)];
5434
- };
5435
- HoganJsUtils.prototype.templateKey = function (namespace, view) {
5436
- return "".concat(namespace, "-").concat(view);
5437
- };
5438
- return HoganJsUtils;
5439
- }());
5440
- /* harmony default export */ const hoganjs_utils = (HoganJsUtils);
5390
+ }
5391
+ templateKey(namespace, view) {
5392
+ return `${namespace}-${view}`;
5393
+ }
5394
+ }
5441
5395
  //# sourceMappingURL=hoganjs-utils.js.map
5442
5396
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff2html.js
5443
- var diff2html_assign = (undefined && undefined.__assign) || function () {
5444
- diff2html_assign = Object.assign || function(t) {
5445
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5446
- s = arguments[i];
5447
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5448
- t[p] = s[p];
5449
- }
5450
- return t;
5451
- };
5452
- return diff2html_assign.apply(this, arguments);
5453
- };
5454
5397
 
5455
5398
 
5456
5399
 
5457
5400
 
5458
5401
 
5459
5402
 
5460
- var defaultDiff2HtmlConfig = diff2html_assign(diff2html_assign(diff2html_assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true });
5461
- function diff2html_parse(diffInput, configuration) {
5462
- if (configuration === void 0) { configuration = {}; }
5463
- return DiffParser.parse(diffInput, diff2html_assign(diff2html_assign({}, defaultDiff2HtmlConfig), configuration));
5403
+ const defaultDiff2HtmlConfig = Object.assign(Object.assign(Object.assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true });
5404
+ function diff2html_parse(diffInput, configuration = {}) {
5405
+ return DiffParser.parse(diffInput, Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration));
5464
5406
  }
5465
- function html(diffInput, configuration) {
5466
- if (configuration === void 0) { configuration = {}; }
5467
- var config = diff2html_assign(diff2html_assign({}, defaultDiff2HtmlConfig), configuration);
5468
- var diffJson = typeof diffInput === 'string' ? parse(diffInput, config) : diffInput;
5469
- var hoganUtils = new hoganjs_utils(config);
5470
- var fileList = config.drawFileList ? render(diffJson, hoganUtils) : '';
5471
- var diffOutput = config.outputFormat === 'side-by-side'
5472
- ? new side_by_side_renderer(hoganUtils, config).render(diffJson)
5473
- : new line_by_line_renderer(hoganUtils, config).render(diffJson);
5407
+ function html(diffInput, configuration = {}) {
5408
+ const config = Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration);
5409
+ const diffJson = typeof diffInput === 'string' ? parse(diffInput, config) : diffInput;
5410
+ const hoganUtils = new HoganJsUtils(config);
5411
+ const { colorScheme } = config;
5412
+ const fileListRendererConfig = { colorScheme };
5413
+ const fileList = config.drawFileList ? new FileListRenderer(hoganUtils, fileListRendererConfig).render(diffJson) : '';
5414
+ const diffOutput = config.outputFormat === 'side-by-side'
5415
+ ? new SideBySideRenderer(hoganUtils, config).render(diffJson)
5416
+ : new LineByLineRenderer(hoganUtils, config).render(diffJson);
5474
5417
  return fileList + diffOutput;
5475
5418
  }
5476
5419
  //# sourceMappingURL=diff2html.js.map