v-code-diff 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/index.cjs.js +17 -17
- package/dist/v2/index.es.js +1077 -954
- package/dist/v2/index.umd.js +17 -17
- package/dist/v2.7/index.cjs.js +18 -18
- package/dist/v2.7/index.es.js +1163 -1119
- package/dist/v2.7/index.umd.js +18 -18
- package/dist/v3/index.cjs.js +16 -16
- package/dist/v3/index.es.js +975 -902
- package/dist/v3/index.umd.js +17 -17
- package/package.json +1 -1
- package/src/CodeDiff.vue +47 -0
- package/src/icons/DownArrowIcon.vue +11 -0
- package/src/icons/UpArrowIcon.vue +11 -0
- package/src/split/SplitLine.vue +0 -2
- package/src/style.scss +27 -2
package/dist/v2/index.es.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{position:sticky;top:0;z-index:1;background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .current-diff{border:1px solid var(--color-border-muted)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import Ue from "vue";
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
e = e || Ue, e && !e.__composition_api_installed__ && e.use(
|
|
3
|
+
import Gn, { computed as he, ref as Ve, watch as Kn } from "@vue/composition-api/dist/vue-composition-api.mjs";
|
|
4
|
+
function Wn(e) {
|
|
5
|
+
e = e || Ue, e && !e.__composition_api_installed__ && e.use(Gn);
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
Wn(Ue);
|
|
8
8
|
Ue.version;
|
|
9
9
|
function ne() {
|
|
10
10
|
}
|
|
11
11
|
ne.prototype = {
|
|
12
12
|
diff: function(n, a) {
|
|
13
|
-
var
|
|
14
|
-
typeof
|
|
13
|
+
var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, d = f.callback;
|
|
14
|
+
typeof f == "function" && (d = f, f = {}), this.options = f;
|
|
15
15
|
var t = this;
|
|
16
16
|
function r(p) {
|
|
17
|
-
return
|
|
18
|
-
|
|
17
|
+
return d ? (setTimeout(function() {
|
|
18
|
+
d(void 0, p);
|
|
19
19
|
}, 0), !0) : p;
|
|
20
20
|
}
|
|
21
21
|
n = this.castInput(n), a = this.castInput(a), n = this.removeEmpty(this.tokenize(n)), a = this.removeEmpty(this.tokenize(a));
|
|
22
22
|
var i = a.length, s = n.length, o = 1, l = i + s;
|
|
23
|
-
|
|
23
|
+
f.maxEditLength && (l = Math.min(l, f.maxEditLength));
|
|
24
24
|
var c = [{
|
|
25
25
|
newPos: -1,
|
|
26
26
|
components: []
|
|
27
|
-
}],
|
|
28
|
-
if (c[0].newPos + 1 >= i &&
|
|
27
|
+
}], u = this.extractCommon(c[0], a, n, 0);
|
|
28
|
+
if (c[0].newPos + 1 >= i && u + 1 >= s)
|
|
29
29
|
return r([{
|
|
30
30
|
value: this.join(a),
|
|
31
31
|
count: a.length
|
|
32
32
|
}]);
|
|
33
33
|
function h() {
|
|
34
34
|
for (var p = -1 * o; p <= o; p += 2) {
|
|
35
|
-
var _ = void 0, v = c[p - 1],
|
|
35
|
+
var _ = void 0, v = c[p - 1], m = c[p + 1], E = (m ? m.newPos : 0) - p;
|
|
36
36
|
v && (c[p - 1] = void 0);
|
|
37
|
-
var
|
|
38
|
-
if (!
|
|
37
|
+
var A = v && v.newPos + 1 < i, D = m && 0 <= E && E < s;
|
|
38
|
+
if (!A && !D) {
|
|
39
39
|
c[p] = void 0;
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
|
-
if (!
|
|
43
|
-
return r(
|
|
42
|
+
if (!A || D && v.newPos < m.newPos ? (_ = Qn(m), t.pushComponent(_.components, void 0, !0)) : (_ = v, _.newPos++, t.pushComponent(_.components, !0, void 0)), E = t.extractCommon(_, a, n, p), _.newPos + 1 >= i && E + 1 >= s)
|
|
43
|
+
return r(qn(t, _.components, a, n, t.useLongestToken));
|
|
44
44
|
c[p] = _;
|
|
45
45
|
}
|
|
46
46
|
o++;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
48
|
+
if (d)
|
|
49
49
|
(function p() {
|
|
50
50
|
setTimeout(function() {
|
|
51
51
|
if (o > l)
|
|
52
|
-
return
|
|
52
|
+
return d();
|
|
53
53
|
h() || p();
|
|
54
54
|
}, 0);
|
|
55
55
|
})();
|
|
56
56
|
else
|
|
57
57
|
for (; o <= l; ) {
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
58
|
+
var g = h();
|
|
59
|
+
if (g)
|
|
60
|
+
return g;
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
pushComponent: function(n, a,
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
count:
|
|
63
|
+
pushComponent: function(n, a, f) {
|
|
64
|
+
var d = n[n.length - 1];
|
|
65
|
+
d && d.added === a && d.removed === f ? n[n.length - 1] = {
|
|
66
|
+
count: d.count + 1,
|
|
67
67
|
added: a,
|
|
68
|
-
removed:
|
|
68
|
+
removed: f
|
|
69
69
|
} : n.push({
|
|
70
70
|
count: 1,
|
|
71
71
|
added: a,
|
|
72
|
-
removed:
|
|
72
|
+
removed: f
|
|
73
73
|
});
|
|
74
74
|
},
|
|
75
|
-
extractCommon: function(n, a,
|
|
76
|
-
for (var t = a.length, r =
|
|
75
|
+
extractCommon: function(n, a, f, d) {
|
|
76
|
+
for (var t = a.length, r = f.length, i = n.newPos, s = i - d, o = 0; i + 1 < t && s + 1 < r && this.equals(a[i + 1], f[s + 1]); )
|
|
77
77
|
i++, s++, o++;
|
|
78
78
|
return o && n.components.push({
|
|
79
79
|
count: o
|
|
@@ -83,8 +83,8 @@ ne.prototype = {
|
|
|
83
83
|
return this.options.comparator ? this.options.comparator(n, a) : n === a || this.options.ignoreCase && n.toLowerCase() === a.toLowerCase();
|
|
84
84
|
},
|
|
85
85
|
removeEmpty: function(n) {
|
|
86
|
-
for (var a = [],
|
|
87
|
-
n[
|
|
86
|
+
for (var a = [], f = 0; f < n.length; f++)
|
|
87
|
+
n[f] && a.push(n[f]);
|
|
88
88
|
return a;
|
|
89
89
|
},
|
|
90
90
|
castInput: function(n) {
|
|
@@ -97,19 +97,19 @@ ne.prototype = {
|
|
|
97
97
|
return n.join("");
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function qn(e, n, a, f, d) {
|
|
101
101
|
for (var t = 0, r = n.length, i = 0, s = 0; t < r; t++) {
|
|
102
102
|
var o = n[t];
|
|
103
103
|
if (o.removed) {
|
|
104
|
-
if (o.value = e.join(
|
|
104
|
+
if (o.value = e.join(f.slice(s, s + o.count)), s += o.count, t && n[t - 1].added) {
|
|
105
105
|
var c = n[t - 1];
|
|
106
106
|
n[t - 1] = n[t], n[t] = c;
|
|
107
107
|
}
|
|
108
108
|
} else {
|
|
109
|
-
if (!o.added &&
|
|
109
|
+
if (!o.added && d) {
|
|
110
110
|
var l = a.slice(i, i + o.count);
|
|
111
|
-
l = l.map(function(h,
|
|
112
|
-
var p =
|
|
111
|
+
l = l.map(function(h, g) {
|
|
112
|
+
var p = f[s + g];
|
|
113
113
|
return p.length > h.length ? p : h;
|
|
114
114
|
}), o.value = e.join(l);
|
|
115
115
|
} else
|
|
@@ -117,20 +117,20 @@ function Kn(e, n, a, u, g) {
|
|
|
117
117
|
i += o.count, o.added || (s += o.count);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
return r > 1 && typeof
|
|
120
|
+
var u = n[r - 1];
|
|
121
|
+
return r > 1 && typeof u.value == "string" && (u.added || u.removed) && e.equals("", u.value) && (n[r - 2].value += u.value, n.pop()), n;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Qn(e) {
|
|
124
124
|
return {
|
|
125
125
|
newPos: e.newPos,
|
|
126
126
|
components: e.components.slice(0)
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
131
|
-
return
|
|
129
|
+
var jn = new ne();
|
|
130
|
+
function Zn(e, n, a) {
|
|
131
|
+
return jn.diff(e, n, a);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Vn(e, n) {
|
|
134
134
|
if (typeof e == "function")
|
|
135
135
|
n.callback = e;
|
|
136
136
|
else if (e)
|
|
@@ -138,36 +138,36 @@ function Zn(e, n) {
|
|
|
138
138
|
e.hasOwnProperty(a) && (n[a] = e[a]);
|
|
139
139
|
return n;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
141
|
+
var Ye = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Xe = /\S/, Pe = new ne();
|
|
142
142
|
Pe.equals = function(e, n) {
|
|
143
|
-
return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !
|
|
143
|
+
return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !Xe.test(e) && !Xe.test(n);
|
|
144
144
|
};
|
|
145
145
|
Pe.tokenize = function(e) {
|
|
146
146
|
for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), a = 0; a < n.length - 1; a++)
|
|
147
|
-
!n[a + 1] && n[a + 2] &&
|
|
147
|
+
!n[a + 1] && n[a + 2] && Ye.test(n[a]) && Ye.test(n[a + 2]) && (n[a] += n[a + 2], n.splice(a + 1, 2), a--);
|
|
148
148
|
return n;
|
|
149
149
|
};
|
|
150
150
|
function Yn(e, n, a) {
|
|
151
|
-
return a =
|
|
151
|
+
return a = Vn(a, {
|
|
152
152
|
ignoreWhitespace: !0
|
|
153
153
|
}), Pe.diff(e, n, a);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
|
|
155
|
+
var _n = new ne();
|
|
156
|
+
_n.tokenize = function(e) {
|
|
157
157
|
var n = [], a = e.split(/(\n|\r\n)/);
|
|
158
158
|
a[a.length - 1] || a.pop();
|
|
159
|
-
for (var
|
|
160
|
-
var
|
|
161
|
-
|
|
159
|
+
for (var f = 0; f < a.length; f++) {
|
|
160
|
+
var d = a[f];
|
|
161
|
+
f % 2 && !this.options.newlineIsToken ? n[n.length - 1] += d : (this.options.ignoreWhitespace && (d = d.trim()), n.push(d));
|
|
162
162
|
}
|
|
163
163
|
return n;
|
|
164
164
|
};
|
|
165
|
-
var
|
|
166
|
-
|
|
165
|
+
var Xn = new ne();
|
|
166
|
+
Xn.tokenize = function(e) {
|
|
167
167
|
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
168
168
|
};
|
|
169
|
-
var
|
|
170
|
-
|
|
169
|
+
var Jn = new ne();
|
|
170
|
+
Jn.tokenize = function(e) {
|
|
171
171
|
return e.split(/([{}:;,]|\s+)/);
|
|
172
172
|
};
|
|
173
173
|
function Te(e) {
|
|
@@ -178,28 +178,28 @@ function Te(e) {
|
|
|
178
178
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
179
179
|
}, Te(e);
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
var n = this.options, a = n.undefinedReplacement,
|
|
181
|
+
var et = Object.prototype.toString, de = new ne();
|
|
182
|
+
de.useLongestToken = !0;
|
|
183
|
+
de.tokenize = _n.tokenize;
|
|
184
|
+
de.castInput = function(e) {
|
|
185
|
+
var n = this.options, a = n.undefinedReplacement, f = n.stringifyReplacer, d = f === void 0 ? function(t, r) {
|
|
186
186
|
return typeof r == "undefined" ? a : r;
|
|
187
|
-
} :
|
|
188
|
-
return typeof e == "string" ? e : JSON.stringify(
|
|
187
|
+
} : f;
|
|
188
|
+
return typeof e == "string" ? e : JSON.stringify($e(e, null, null, d), d, " ");
|
|
189
189
|
};
|
|
190
|
-
|
|
191
|
-
return ne.prototype.equals.call(
|
|
190
|
+
de.equals = function(e, n) {
|
|
191
|
+
return ne.prototype.equals.call(de, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
|
|
192
192
|
};
|
|
193
|
-
function
|
|
194
|
-
n = n || [], a = a || [],
|
|
193
|
+
function $e(e, n, a, f, d) {
|
|
194
|
+
n = n || [], a = a || [], f && (e = f(d, e));
|
|
195
195
|
var t;
|
|
196
196
|
for (t = 0; t < n.length; t += 1)
|
|
197
197
|
if (n[t] === e)
|
|
198
198
|
return a[t];
|
|
199
199
|
var r;
|
|
200
|
-
if (
|
|
200
|
+
if (et.call(e) === "[object Array]") {
|
|
201
201
|
for (n.push(e), r = new Array(e.length), a.push(r), t = 0; t < e.length; t += 1)
|
|
202
|
-
r[t] =
|
|
202
|
+
r[t] = $e(e[t], n, a, f, d);
|
|
203
203
|
return n.pop(), a.pop(), r;
|
|
204
204
|
}
|
|
205
205
|
if (e && e.toJSON && (e = e.toJSON()), Te(e) === "object" && e !== null) {
|
|
@@ -208,27 +208,27 @@ function Be(e, n, a, u, g) {
|
|
|
208
208
|
for (s in e)
|
|
209
209
|
e.hasOwnProperty(s) && i.push(s);
|
|
210
210
|
for (i.sort(), t = 0; t < i.length; t += 1)
|
|
211
|
-
s = i[t], r[s] =
|
|
211
|
+
s = i[t], r[s] = $e(e[s], n, a, f, s);
|
|
212
212
|
n.pop(), a.pop();
|
|
213
213
|
} else
|
|
214
214
|
r = e;
|
|
215
215
|
return r;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var Be = new ne();
|
|
218
|
+
Be.tokenize = function(e) {
|
|
219
219
|
return e.slice();
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
Be.join = Be.removeEmpty = function(e) {
|
|
222
222
|
return e;
|
|
223
223
|
};
|
|
224
|
-
function
|
|
224
|
+
function nt(e) {
|
|
225
225
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var bn = { exports: {} };
|
|
228
228
|
(function(e) {
|
|
229
229
|
var n = function() {
|
|
230
230
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
231
|
-
}, a = -1,
|
|
231
|
+
}, a = -1, f = 1, d = 0;
|
|
232
232
|
n.Diff = function(t, r) {
|
|
233
233
|
return [t, r];
|
|
234
234
|
}, n.prototype.diff_main = function(t, r, i, s) {
|
|
@@ -237,41 +237,41 @@ var dn = { exports: {} };
|
|
|
237
237
|
if (t == null || r == null)
|
|
238
238
|
throw new Error("Null input. (diff_main)");
|
|
239
239
|
if (t == r)
|
|
240
|
-
return t ? [new n.Diff(
|
|
240
|
+
return t ? [new n.Diff(d, t)] : [];
|
|
241
241
|
typeof i == "undefined" && (i = !0);
|
|
242
|
-
var l = i, c = this.diff_commonPrefix(t, r),
|
|
242
|
+
var l = i, c = this.diff_commonPrefix(t, r), u = t.substring(0, c);
|
|
243
243
|
t = t.substring(c), r = r.substring(c), c = this.diff_commonSuffix(t, r);
|
|
244
244
|
var h = t.substring(t.length - c);
|
|
245
245
|
t = t.substring(0, t.length - c), r = r.substring(0, r.length - c);
|
|
246
|
-
var
|
|
247
|
-
return
|
|
246
|
+
var g = this.diff_compute_(t, r, l, o);
|
|
247
|
+
return u && g.unshift(new n.Diff(d, u)), h && g.push(new n.Diff(d, h)), this.diff_cleanupMerge(g), g;
|
|
248
248
|
}, n.prototype.diff_compute_ = function(t, r, i, s) {
|
|
249
249
|
var o;
|
|
250
250
|
if (!t)
|
|
251
|
-
return [new n.Diff(
|
|
251
|
+
return [new n.Diff(f, r)];
|
|
252
252
|
if (!r)
|
|
253
253
|
return [new n.Diff(a, t)];
|
|
254
|
-
var l = t.length > r.length ? t : r, c = t.length > r.length ? r : t,
|
|
255
|
-
if (
|
|
254
|
+
var l = t.length > r.length ? t : r, c = t.length > r.length ? r : t, u = l.indexOf(c);
|
|
255
|
+
if (u != -1)
|
|
256
256
|
return o = [
|
|
257
|
-
new n.Diff(
|
|
258
|
-
new n.Diff(
|
|
257
|
+
new n.Diff(f, l.substring(0, u)),
|
|
258
|
+
new n.Diff(d, c),
|
|
259
259
|
new n.Diff(
|
|
260
|
-
|
|
261
|
-
l.substring(
|
|
260
|
+
f,
|
|
261
|
+
l.substring(u + c.length)
|
|
262
262
|
)
|
|
263
263
|
], t.length > r.length && (o[0][0] = o[2][0] = a), o;
|
|
264
264
|
if (c.length == 1)
|
|
265
265
|
return [
|
|
266
266
|
new n.Diff(a, t),
|
|
267
|
-
new n.Diff(
|
|
267
|
+
new n.Diff(f, r)
|
|
268
268
|
];
|
|
269
269
|
var h = this.diff_halfMatch_(t, r);
|
|
270
270
|
if (h) {
|
|
271
|
-
var
|
|
272
|
-
return
|
|
273
|
-
[new n.Diff(
|
|
274
|
-
|
|
271
|
+
var g = h[0], p = h[1], _ = h[2], v = h[3], m = h[4], E = this.diff_main(g, _, i, s), A = this.diff_main(p, v, i, s);
|
|
272
|
+
return E.concat(
|
|
273
|
+
[new n.Diff(d, m)],
|
|
274
|
+
A
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
return i && t.length > 100 && r.length > 100 ? this.diff_lineMode_(t, r, s) : this.diff_bisect_(t, r, s);
|
|
@@ -279,68 +279,68 @@ var dn = { exports: {} };
|
|
|
279
279
|
var s = this.diff_linesToChars_(t, r);
|
|
280
280
|
t = s.chars1, r = s.chars2;
|
|
281
281
|
var o = s.lineArray, l = this.diff_main(t, r, !1, i);
|
|
282
|
-
this.diff_charsToLines_(l, o), this.diff_cleanupSemantic(l), l.push(new n.Diff(
|
|
283
|
-
for (var c = 0,
|
|
282
|
+
this.diff_charsToLines_(l, o), this.diff_cleanupSemantic(l), l.push(new n.Diff(d, ""));
|
|
283
|
+
for (var c = 0, u = 0, h = 0, g = "", p = ""; c < l.length; ) {
|
|
284
284
|
switch (l[c][0]) {
|
|
285
|
-
case
|
|
285
|
+
case f:
|
|
286
286
|
h++, p += l[c][1];
|
|
287
287
|
break;
|
|
288
288
|
case a:
|
|
289
|
-
|
|
289
|
+
u++, g += l[c][1];
|
|
290
290
|
break;
|
|
291
|
-
case
|
|
292
|
-
if (
|
|
291
|
+
case d:
|
|
292
|
+
if (u >= 1 && h >= 1) {
|
|
293
293
|
l.splice(
|
|
294
|
-
c -
|
|
295
|
-
|
|
296
|
-
), c = c -
|
|
297
|
-
for (var _ = this.diff_main(
|
|
294
|
+
c - u - h,
|
|
295
|
+
u + h
|
|
296
|
+
), c = c - u - h;
|
|
297
|
+
for (var _ = this.diff_main(g, p, !1, i), v = _.length - 1; v >= 0; v--)
|
|
298
298
|
l.splice(c, 0, _[v]);
|
|
299
299
|
c = c + _.length;
|
|
300
300
|
}
|
|
301
|
-
h = 0,
|
|
301
|
+
h = 0, u = 0, g = "", p = "";
|
|
302
302
|
break;
|
|
303
303
|
}
|
|
304
304
|
c++;
|
|
305
305
|
}
|
|
306
306
|
return l.pop(), l;
|
|
307
307
|
}, n.prototype.diff_bisect_ = function(t, r, i) {
|
|
308
|
-
for (var s = t.length, o = r.length, l = Math.ceil((s + o) / 2), c = l,
|
|
309
|
-
h[p] = -1,
|
|
310
|
-
h[c + 1] = 0,
|
|
311
|
-
for (var _ = s - o, v = _ % 2 != 0,
|
|
312
|
-
for (var
|
|
313
|
-
var R = c +
|
|
314
|
-
|
|
315
|
-
for (var I = C -
|
|
308
|
+
for (var s = t.length, o = r.length, l = Math.ceil((s + o) / 2), c = l, u = 2 * l, h = new Array(u), g = new Array(u), p = 0; p < u; p++)
|
|
309
|
+
h[p] = -1, g[p] = -1;
|
|
310
|
+
h[c + 1] = 0, g[c + 1] = 0;
|
|
311
|
+
for (var _ = s - o, v = _ % 2 != 0, m = 0, E = 0, A = 0, D = 0, S = 0; S < l && !((/* @__PURE__ */ new Date()).getTime() > i); S++) {
|
|
312
|
+
for (var N = -S + m; N <= S - E; N += 2) {
|
|
313
|
+
var R = c + N, C;
|
|
314
|
+
N == -S || N != S && h[R - 1] < h[R + 1] ? C = h[R + 1] : C = h[R - 1] + 1;
|
|
315
|
+
for (var I = C - N; C < s && I < o && t.charAt(C) == r.charAt(I); )
|
|
316
316
|
C++, I++;
|
|
317
317
|
if (h[R] = C, C > s)
|
|
318
|
-
m += 2;
|
|
319
|
-
else if (I > o)
|
|
320
318
|
E += 2;
|
|
319
|
+
else if (I > o)
|
|
320
|
+
m += 2;
|
|
321
321
|
else if (v) {
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
if (C >=
|
|
322
|
+
var B = c + _ - N;
|
|
323
|
+
if (B >= 0 && B < u && g[B] != -1) {
|
|
324
|
+
var $ = s - g[B];
|
|
325
|
+
if (C >= $)
|
|
326
326
|
return this.diff_bisectSplit_(t, r, C, I, i);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
for (var F = -S +
|
|
331
|
-
var
|
|
332
|
-
F == -S || F != S &&
|
|
333
|
-
for (var K =
|
|
334
|
-
|
|
335
|
-
if (
|
|
330
|
+
for (var F = -S + A; F <= S - D; F += 2) {
|
|
331
|
+
var B = c + F, $;
|
|
332
|
+
F == -S || F != S && g[B - 1] < g[B + 1] ? $ = g[B + 1] : $ = g[B - 1] + 1;
|
|
333
|
+
for (var K = $ - F; $ < s && K < o && t.charAt(s - $ - 1) == r.charAt(o - K - 1); )
|
|
334
|
+
$++, K++;
|
|
335
|
+
if (g[B] = $, $ > s)
|
|
336
336
|
D += 2;
|
|
337
337
|
else if (K > o)
|
|
338
|
-
|
|
338
|
+
A += 2;
|
|
339
339
|
else if (!v) {
|
|
340
340
|
var R = c + _ - F;
|
|
341
|
-
if (R >= 0 && R <
|
|
341
|
+
if (R >= 0 && R < u && h[R] != -1) {
|
|
342
342
|
var C = h[R], I = c + C - R;
|
|
343
|
-
if (
|
|
343
|
+
if ($ = s - $, C >= $)
|
|
344
344
|
return this.diff_bisectSplit_(t, r, C, I, i);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -348,27 +348,27 @@ var dn = { exports: {} };
|
|
|
348
348
|
}
|
|
349
349
|
return [
|
|
350
350
|
new n.Diff(a, t),
|
|
351
|
-
new n.Diff(
|
|
351
|
+
new n.Diff(f, r)
|
|
352
352
|
];
|
|
353
353
|
}, n.prototype.diff_bisectSplit_ = function(t, r, i, s, o) {
|
|
354
|
-
var l = t.substring(0, i), c = r.substring(0, s),
|
|
355
|
-
return
|
|
354
|
+
var l = t.substring(0, i), c = r.substring(0, s), u = t.substring(i), h = r.substring(s), g = this.diff_main(l, c, !1, o), p = this.diff_main(u, h, !1, o);
|
|
355
|
+
return g.concat(p);
|
|
356
356
|
}, n.prototype.diff_linesToChars_ = function(t, r) {
|
|
357
357
|
var i = [], s = {};
|
|
358
358
|
i[0] = "";
|
|
359
359
|
function o(h) {
|
|
360
|
-
for (var
|
|
360
|
+
for (var g = "", p = 0, _ = -1, v = i.length; _ < h.length - 1; ) {
|
|
361
361
|
_ = h.indexOf(`
|
|
362
362
|
`, p), _ == -1 && (_ = h.length - 1);
|
|
363
|
-
var
|
|
364
|
-
(s.hasOwnProperty ? s.hasOwnProperty(
|
|
363
|
+
var m = h.substring(p, _ + 1);
|
|
364
|
+
(s.hasOwnProperty ? s.hasOwnProperty(m) : s[m] !== void 0) ? g += String.fromCharCode(s[m]) : (v == l && (m = h.substring(p), _ = h.length), g += String.fromCharCode(v), s[m] = v, i[v++] = m), p = _ + 1;
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return g;
|
|
367
367
|
}
|
|
368
368
|
var l = 4e4, c = o(t);
|
|
369
369
|
l = 65535;
|
|
370
|
-
var
|
|
371
|
-
return { chars1: c, chars2:
|
|
370
|
+
var u = o(r);
|
|
371
|
+
return { chars1: c, chars2: u, lineArray: i };
|
|
372
372
|
}, n.prototype.diff_charsToLines_ = function(t, r) {
|
|
373
373
|
for (var i = 0; i < t.length; i++) {
|
|
374
374
|
for (var s = t[i][1], o = [], l = 0; l < s.length; l++)
|
|
@@ -396,7 +396,7 @@ var dn = { exports: {} };
|
|
|
396
396
|
if (t == r)
|
|
397
397
|
return o;
|
|
398
398
|
for (var l = 0, c = 1; ; ) {
|
|
399
|
-
var
|
|
399
|
+
var u = t.substring(o - c), h = r.indexOf(u);
|
|
400
400
|
if (h == -1)
|
|
401
401
|
return l;
|
|
402
402
|
c += h, (h == 0 || t.substring(o - c) == r.substring(0, c)) && (l = c, c++);
|
|
@@ -408,22 +408,22 @@ var dn = { exports: {} };
|
|
|
408
408
|
if (i.length < 4 || s.length * 2 < i.length)
|
|
409
409
|
return null;
|
|
410
410
|
var o = this;
|
|
411
|
-
function l(
|
|
412
|
-
for (var S =
|
|
411
|
+
function l(E, A, D) {
|
|
412
|
+
for (var S = E.substring(D, D + Math.floor(E.length / 4)), N = -1, R = "", C, I, B, $; (N = A.indexOf(S, N + 1)) != -1; ) {
|
|
413
413
|
var F = o.diff_commonPrefix(
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
E.substring(D),
|
|
415
|
+
A.substring(N)
|
|
416
416
|
), K = o.diff_commonSuffix(
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
E.substring(0, D),
|
|
418
|
+
A.substring(0, N)
|
|
419
419
|
);
|
|
420
|
-
R.length < K + F && (R =
|
|
420
|
+
R.length < K + F && (R = A.substring(N - K, N) + A.substring(N, N + F), C = E.substring(0, D - K), I = E.substring(D + F), B = A.substring(0, N - K), $ = A.substring(N + F));
|
|
421
421
|
}
|
|
422
|
-
return R.length * 2 >=
|
|
422
|
+
return R.length * 2 >= E.length ? [
|
|
423
423
|
C,
|
|
424
424
|
I,
|
|
425
|
-
$,
|
|
426
425
|
B,
|
|
426
|
+
$,
|
|
427
427
|
R
|
|
428
428
|
] : null;
|
|
429
429
|
}
|
|
@@ -431,85 +431,85 @@ var dn = { exports: {} };
|
|
|
431
431
|
i,
|
|
432
432
|
s,
|
|
433
433
|
Math.ceil(i.length / 4)
|
|
434
|
-
),
|
|
434
|
+
), u = l(
|
|
435
435
|
i,
|
|
436
436
|
s,
|
|
437
437
|
Math.ceil(i.length / 2)
|
|
438
438
|
), h;
|
|
439
|
-
if (!c && !
|
|
439
|
+
if (!c && !u)
|
|
440
440
|
return null;
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
t.length > r.length ? (
|
|
444
|
-
var
|
|
445
|
-
return [
|
|
441
|
+
u ? c ? h = c[4].length > u[4].length ? c : u : h = u : h = c;
|
|
442
|
+
var g, p, _, v;
|
|
443
|
+
t.length > r.length ? (g = h[0], p = h[1], _ = h[2], v = h[3]) : (_ = h[0], v = h[1], g = h[2], p = h[3]);
|
|
444
|
+
var m = h[4];
|
|
445
|
+
return [g, p, _, v, m];
|
|
446
446
|
}, n.prototype.diff_cleanupSemantic = function(t) {
|
|
447
|
-
for (var r = !1, i = [], s = 0, o = null, l = 0, c = 0,
|
|
448
|
-
t[l][0] ==
|
|
447
|
+
for (var r = !1, i = [], s = 0, o = null, l = 0, c = 0, u = 0, h = 0, g = 0; l < t.length; )
|
|
448
|
+
t[l][0] == d ? (i[s++] = l, c = h, u = g, h = 0, g = 0, o = t[l][1]) : (t[l][0] == f ? h += t[l][1].length : g += t[l][1].length, o && o.length <= Math.max(c, u) && o.length <= Math.max(
|
|
449
449
|
h,
|
|
450
|
-
|
|
450
|
+
g
|
|
451
451
|
) && (t.splice(
|
|
452
452
|
i[s - 1],
|
|
453
453
|
0,
|
|
454
454
|
new n.Diff(a, o)
|
|
455
|
-
), t[i[s - 1] + 1][0] =
|
|
455
|
+
), t[i[s - 1] + 1][0] = f, s--, s--, l = s > 0 ? i[s - 1] : -1, c = 0, u = 0, h = 0, g = 0, o = null, r = !0)), l++;
|
|
456
456
|
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
|
|
457
|
-
if (t[l - 1][0] == a && t[l][0] ==
|
|
458
|
-
var p = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(p, _),
|
|
459
|
-
v >=
|
|
460
|
-
|
|
457
|
+
if (t[l - 1][0] == a && t[l][0] == f) {
|
|
458
|
+
var p = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(p, _), m = this.diff_commonOverlap_(_, p);
|
|
459
|
+
v >= m ? (v >= p.length / 2 || v >= _.length / 2) && (t.splice(l, 0, new n.Diff(
|
|
460
|
+
d,
|
|
461
461
|
_.substring(0, v)
|
|
462
|
-
)), t[l - 1][1] = p.substring(0, p.length - v), t[l + 1][1] = _.substring(v), l++) : (
|
|
463
|
-
|
|
464
|
-
p.substring(0,
|
|
465
|
-
)), t[l - 1][0] =
|
|
462
|
+
)), t[l - 1][1] = p.substring(0, p.length - v), t[l + 1][1] = _.substring(v), l++) : (m >= p.length / 2 || m >= _.length / 2) && (t.splice(l, 0, new n.Diff(
|
|
463
|
+
d,
|
|
464
|
+
p.substring(0, m)
|
|
465
|
+
)), t[l - 1][0] = f, t[l - 1][1] = _.substring(0, _.length - m), t[l + 1][0] = a, t[l + 1][1] = p.substring(m), l++), l++;
|
|
466
466
|
}
|
|
467
467
|
l++;
|
|
468
468
|
}
|
|
469
469
|
}, n.prototype.diff_cleanupSemanticLossless = function(t) {
|
|
470
|
-
function r(
|
|
471
|
-
if (!
|
|
470
|
+
function r(m, E) {
|
|
471
|
+
if (!m || !E)
|
|
472
472
|
return 6;
|
|
473
|
-
var
|
|
474
|
-
return
|
|
473
|
+
var A = m.charAt(m.length - 1), D = E.charAt(0), S = A.match(n.nonAlphaNumericRegex_), N = D.match(n.nonAlphaNumericRegex_), R = S && A.match(n.whitespaceRegex_), C = N && D.match(n.whitespaceRegex_), I = R && A.match(n.linebreakRegex_), B = C && D.match(n.linebreakRegex_), $ = I && m.match(n.blanklineEndRegex_), F = B && E.match(n.blanklineStartRegex_);
|
|
474
|
+
return $ || F ? 5 : I || B ? 4 : S && !R && C ? 3 : R || C ? 2 : S || N ? 1 : 0;
|
|
475
475
|
}
|
|
476
476
|
for (var i = 1; i < t.length - 1; ) {
|
|
477
|
-
if (t[i - 1][0] ==
|
|
477
|
+
if (t[i - 1][0] == d && t[i + 1][0] == d) {
|
|
478
478
|
var s = t[i - 1][1], o = t[i][1], l = t[i + 1][1], c = this.diff_commonSuffix(s, o);
|
|
479
479
|
if (c) {
|
|
480
|
-
var
|
|
481
|
-
s = s.substring(0, s.length - c), o =
|
|
480
|
+
var u = o.substring(o.length - c);
|
|
481
|
+
s = s.substring(0, s.length - c), o = u + o.substring(0, o.length - c), l = u + l;
|
|
482
482
|
}
|
|
483
|
-
for (var h = s,
|
|
483
|
+
for (var h = s, g = o, p = l, _ = r(s, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
|
|
484
484
|
s += o.charAt(0), o = o.substring(1) + l.charAt(0), l = l.substring(1);
|
|
485
485
|
var v = r(s, o) + r(o, l);
|
|
486
|
-
v >= _ && (_ = v, h = s,
|
|
486
|
+
v >= _ && (_ = v, h = s, g = o, p = l);
|
|
487
487
|
}
|
|
488
|
-
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] =
|
|
488
|
+
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] = g, p ? t[i + 1][1] = p : (t.splice(i + 1, 1), i--));
|
|
489
489
|
}
|
|
490
490
|
i++;
|
|
491
491
|
}
|
|
492
492
|
}, n.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, n.whitespaceRegex_ = /\s/, n.linebreakRegex_ = /[\r\n]/, n.blanklineEndRegex_ = /\n\r?\n$/, n.blanklineStartRegex_ = /^\r?\n\r?\n/, n.prototype.diff_cleanupEfficiency = function(t) {
|
|
493
|
-
for (var r = !1, i = [], s = 0, o = null, l = 0, c = !1,
|
|
494
|
-
t[l][0] ==
|
|
493
|
+
for (var r = !1, i = [], s = 0, o = null, l = 0, c = !1, u = !1, h = !1, g = !1; l < t.length; )
|
|
494
|
+
t[l][0] == d ? (t[l][1].length < this.Diff_EditCost && (h || g) ? (i[s++] = l, c = h, u = g, o = t[l][1]) : (s = 0, o = null), h = g = !1) : (t[l][0] == a ? g = !0 : h = !0, o && (c && u && h && g || o.length < this.Diff_EditCost / 2 && c + u + h + g == 3) && (t.splice(
|
|
495
495
|
i[s - 1],
|
|
496
496
|
0,
|
|
497
497
|
new n.Diff(a, o)
|
|
498
|
-
), t[i[s - 1] + 1][0] =
|
|
498
|
+
), t[i[s - 1] + 1][0] = f, s--, o = null, c && u ? (h = g = !0, s = 0) : (s--, l = s > 0 ? i[s - 1] : -1, h = g = !1), r = !0)), l++;
|
|
499
499
|
r && this.diff_cleanupMerge(t);
|
|
500
500
|
}, n.prototype.diff_cleanupMerge = function(t) {
|
|
501
|
-
t.push(new n.Diff(
|
|
501
|
+
t.push(new n.Diff(d, ""));
|
|
502
502
|
for (var r = 0, i = 0, s = 0, o = "", l = "", c; r < t.length; )
|
|
503
503
|
switch (t[r][0]) {
|
|
504
|
-
case
|
|
504
|
+
case f:
|
|
505
505
|
s++, l += t[r][1], r++;
|
|
506
506
|
break;
|
|
507
507
|
case a:
|
|
508
508
|
i++, o += t[r][1], r++;
|
|
509
509
|
break;
|
|
510
|
-
case
|
|
511
|
-
i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(l, o), c !== 0 && (r - i - s > 0 && t[r - i - s - 1][0] ==
|
|
512
|
-
|
|
510
|
+
case d:
|
|
511
|
+
i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(l, o), c !== 0 && (r - i - s > 0 && t[r - i - s - 1][0] == d ? t[r - i - s - 1][1] += l.substring(0, c) : (t.splice(0, 0, new n.Diff(
|
|
512
|
+
d,
|
|
513
513
|
l.substring(0, c)
|
|
514
514
|
)), r++), l = l.substring(c), o = o.substring(c)), c = this.diff_commonSuffix(l, o), c !== 0 && (t[r][1] = l.substring(l.length - c) + t[r][1], l = l.substring(0, l.length - c), o = o.substring(0, o.length - c))), r -= i + s, t.splice(r, i + s), o.length && (t.splice(
|
|
515
515
|
r,
|
|
@@ -518,39 +518,39 @@ var dn = { exports: {} };
|
|
|
518
518
|
), r++), l.length && (t.splice(
|
|
519
519
|
r,
|
|
520
520
|
0,
|
|
521
|
-
new n.Diff(
|
|
522
|
-
), r++), r++) : r !== 0 && t[r - 1][0] ==
|
|
521
|
+
new n.Diff(f, l)
|
|
522
|
+
), r++), r++) : r !== 0 && t[r - 1][0] == d ? (t[r - 1][1] += t[r][1], t.splice(r, 1)) : r++, s = 0, i = 0, o = "", l = "";
|
|
523
523
|
break;
|
|
524
524
|
}
|
|
525
525
|
t[t.length - 1][1] === "" && t.pop();
|
|
526
|
-
var
|
|
526
|
+
var u = !1;
|
|
527
527
|
for (r = 1; r < t.length - 1; )
|
|
528
|
-
t[r - 1][0] ==
|
|
529
|
-
|
|
528
|
+
t[r - 1][0] == d && t[r + 1][0] == d && (t[r][1].substring(t[r][1].length - t[r - 1][1].length) == t[r - 1][1] ? (t[r][1] = t[r - 1][1] + t[r][1].substring(0, t[r][1].length - t[r - 1][1].length), t[r + 1][1] = t[r - 1][1] + t[r + 1][1], t.splice(r - 1, 1), u = !0) : t[r][1].substring(0, t[r + 1][1].length) == t[r + 1][1] && (t[r - 1][1] += t[r + 1][1], t[r][1] = t[r][1].substring(t[r + 1][1].length) + t[r + 1][1], t.splice(r + 1, 1), u = !0)), r++;
|
|
529
|
+
u && this.diff_cleanupMerge(t);
|
|
530
530
|
}, n.prototype.diff_xIndex = function(t, r) {
|
|
531
531
|
var i = 0, s = 0, o = 0, l = 0, c;
|
|
532
|
-
for (c = 0; c < t.length && (t[c][0] !==
|
|
532
|
+
for (c = 0; c < t.length && (t[c][0] !== f && (i += t[c][1].length), t[c][0] !== a && (s += t[c][1].length), !(i > r)); c++)
|
|
533
533
|
o = i, l = s;
|
|
534
534
|
return t.length != c && t[c][0] === a ? l : l + (r - o);
|
|
535
535
|
}, n.prototype.diff_prettyHtml = function(t) {
|
|
536
536
|
for (var r = [], i = /&/g, s = /</g, o = />/g, l = /\n/g, c = 0; c < t.length; c++) {
|
|
537
|
-
var
|
|
538
|
-
switch (
|
|
539
|
-
case
|
|
540
|
-
r[c] = '<ins style="background:#e6ffe6;">' +
|
|
537
|
+
var u = t[c][0], h = t[c][1], g = h.replace(i, "&").replace(s, "<").replace(o, ">").replace(l, "¶<br>");
|
|
538
|
+
switch (u) {
|
|
539
|
+
case f:
|
|
540
|
+
r[c] = '<ins style="background:#e6ffe6;">' + g + "</ins>";
|
|
541
541
|
break;
|
|
542
542
|
case a:
|
|
543
|
-
r[c] = '<del style="background:#ffe6e6;">' +
|
|
543
|
+
r[c] = '<del style="background:#ffe6e6;">' + g + "</del>";
|
|
544
544
|
break;
|
|
545
|
-
case
|
|
546
|
-
r[c] = "<span>" +
|
|
545
|
+
case d:
|
|
546
|
+
r[c] = "<span>" + g + "</span>";
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
return r.join("");
|
|
551
551
|
}, n.prototype.diff_text1 = function(t) {
|
|
552
552
|
for (var r = [], i = 0; i < t.length; i++)
|
|
553
|
-
t[i][0] !==
|
|
553
|
+
t[i][0] !== f && (r[i] = t[i][1]);
|
|
554
554
|
return r.join("");
|
|
555
555
|
}, n.prototype.diff_text2 = function(t) {
|
|
556
556
|
for (var r = [], i = 0; i < t.length; i++)
|
|
@@ -560,13 +560,13 @@ var dn = { exports: {} };
|
|
|
560
560
|
for (var r = 0, i = 0, s = 0, o = 0; o < t.length; o++) {
|
|
561
561
|
var l = t[o][0], c = t[o][1];
|
|
562
562
|
switch (l) {
|
|
563
|
-
case
|
|
563
|
+
case f:
|
|
564
564
|
i += c.length;
|
|
565
565
|
break;
|
|
566
566
|
case a:
|
|
567
567
|
s += c.length;
|
|
568
568
|
break;
|
|
569
|
-
case
|
|
569
|
+
case d:
|
|
570
570
|
r += Math.max(i, s), i = 0, s = 0;
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
@@ -575,35 +575,35 @@ var dn = { exports: {} };
|
|
|
575
575
|
}, n.prototype.diff_toDelta = function(t) {
|
|
576
576
|
for (var r = [], i = 0; i < t.length; i++)
|
|
577
577
|
switch (t[i][0]) {
|
|
578
|
-
case
|
|
578
|
+
case f:
|
|
579
579
|
r[i] = "+" + encodeURI(t[i][1]);
|
|
580
580
|
break;
|
|
581
581
|
case a:
|
|
582
582
|
r[i] = "-" + t[i][1].length;
|
|
583
583
|
break;
|
|
584
|
-
case
|
|
584
|
+
case d:
|
|
585
585
|
r[i] = "=" + t[i][1].length;
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
return r.join(" ").replace(/%20/g, " ");
|
|
589
589
|
}, n.prototype.diff_fromDelta = function(t, r) {
|
|
590
590
|
for (var i = [], s = 0, o = 0, l = r.split(/\t/g), c = 0; c < l.length; c++) {
|
|
591
|
-
var
|
|
591
|
+
var u = l[c].substring(1);
|
|
592
592
|
switch (l[c].charAt(0)) {
|
|
593
593
|
case "+":
|
|
594
594
|
try {
|
|
595
|
-
i[s++] = new n.Diff(
|
|
595
|
+
i[s++] = new n.Diff(f, decodeURI(u));
|
|
596
596
|
} catch (p) {
|
|
597
|
-
throw new Error("Illegal escape in diff_fromDelta: " +
|
|
597
|
+
throw new Error("Illegal escape in diff_fromDelta: " + u);
|
|
598
598
|
}
|
|
599
599
|
break;
|
|
600
600
|
case "-":
|
|
601
601
|
case "=":
|
|
602
|
-
var h = parseInt(
|
|
602
|
+
var h = parseInt(u, 10);
|
|
603
603
|
if (isNaN(h) || h < 0)
|
|
604
|
-
throw new Error("Invalid number in diff_fromDelta: " +
|
|
605
|
-
var
|
|
606
|
-
l[c].charAt(0) == "=" ? i[s++] = new n.Diff(
|
|
604
|
+
throw new Error("Invalid number in diff_fromDelta: " + u);
|
|
605
|
+
var g = t.substring(o, o += h);
|
|
606
|
+
l[c].charAt(0) == "=" ? i[s++] = new n.Diff(d, g) : i[s++] = new n.Diff(a, g);
|
|
607
607
|
break;
|
|
608
608
|
default:
|
|
609
609
|
if (l[c])
|
|
@@ -622,35 +622,35 @@ var dn = { exports: {} };
|
|
|
622
622
|
throw new Error("Pattern too long for this browser.");
|
|
623
623
|
var s = this.match_alphabet_(r), o = this;
|
|
624
624
|
function l(C, I) {
|
|
625
|
-
var
|
|
626
|
-
return o.Match_Distance ?
|
|
625
|
+
var B = C / r.length, $ = Math.abs(i - I);
|
|
626
|
+
return o.Match_Distance ? B + $ / o.Match_Distance : $ ? 1 : B;
|
|
627
627
|
}
|
|
628
|
-
var c = this.Match_Threshold,
|
|
629
|
-
|
|
628
|
+
var c = this.Match_Threshold, u = t.indexOf(r, i);
|
|
629
|
+
u != -1 && (c = Math.min(l(0, u), c), u = t.lastIndexOf(r, i + r.length), u != -1 && (c = Math.min(l(0, u), c)));
|
|
630
630
|
var h = 1 << r.length - 1;
|
|
631
|
-
|
|
632
|
-
for (var
|
|
633
|
-
for (
|
|
634
|
-
l(
|
|
631
|
+
u = -1;
|
|
632
|
+
for (var g, p, _ = r.length + t.length, v, m = 0; m < r.length; m++) {
|
|
633
|
+
for (g = 0, p = _; g < p; )
|
|
634
|
+
l(m, i + p) <= c ? g = p : _ = p, p = Math.floor((_ - g) / 2 + g);
|
|
635
635
|
_ = p;
|
|
636
|
-
var
|
|
637
|
-
D[
|
|
638
|
-
for (var S =
|
|
639
|
-
var
|
|
640
|
-
if (
|
|
641
|
-
var R = l(
|
|
636
|
+
var E = Math.max(1, i - p + 1), A = Math.min(i + p, t.length) + r.length, D = Array(A + 2);
|
|
637
|
+
D[A + 1] = (1 << m) - 1;
|
|
638
|
+
for (var S = A; S >= E; S--) {
|
|
639
|
+
var N = s[t.charAt(S - 1)];
|
|
640
|
+
if (m === 0 ? D[S] = (D[S + 1] << 1 | 1) & N : D[S] = (D[S + 1] << 1 | 1) & N | ((v[S + 1] | v[S]) << 1 | 1) | v[S + 1], D[S] & h) {
|
|
641
|
+
var R = l(m, S - 1);
|
|
642
642
|
if (R <= c)
|
|
643
|
-
if (c = R,
|
|
644
|
-
|
|
643
|
+
if (c = R, u = S - 1, u > i)
|
|
644
|
+
E = Math.max(1, 2 * i - u);
|
|
645
645
|
else
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
if (l(
|
|
649
|
+
if (l(m + 1, i) > c)
|
|
650
650
|
break;
|
|
651
651
|
v = D;
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return u;
|
|
654
654
|
}, n.prototype.match_alphabet_ = function(t) {
|
|
655
655
|
for (var r = {}, i = 0; i < t.length; i++)
|
|
656
656
|
r[t.charAt(i)] = 0;
|
|
@@ -668,12 +668,12 @@ var dn = { exports: {} };
|
|
|
668
668
|
);
|
|
669
669
|
s += this.Patch_Margin;
|
|
670
670
|
var o = r.substring(t.start2 - s, t.start2);
|
|
671
|
-
o && t.diffs.unshift(new n.Diff(
|
|
671
|
+
o && t.diffs.unshift(new n.Diff(d, o));
|
|
672
672
|
var l = r.substring(
|
|
673
673
|
t.start2 + t.length1,
|
|
674
674
|
t.start2 + t.length1 + s
|
|
675
675
|
);
|
|
676
|
-
l && t.diffs.push(new n.Diff(
|
|
676
|
+
l && t.diffs.push(new n.Diff(d, l)), t.start1 -= o.length, t.start2 -= o.length, t.length1 += o.length + l.length, t.length2 += o.length + l.length;
|
|
677
677
|
}
|
|
678
678
|
}, n.prototype.patch_make = function(t, r, i) {
|
|
679
679
|
var s, o;
|
|
@@ -700,22 +700,22 @@ var dn = { exports: {} };
|
|
|
700
700
|
throw new Error("Unknown call format to patch_make.");
|
|
701
701
|
if (o.length === 0)
|
|
702
702
|
return [];
|
|
703
|
-
for (var l = [], c = new n.patch_obj(),
|
|
704
|
-
var
|
|
705
|
-
switch (!
|
|
706
|
-
case
|
|
707
|
-
c.diffs[
|
|
703
|
+
for (var l = [], c = new n.patch_obj(), u = 0, h = 0, g = 0, p = s, _ = s, v = 0; v < o.length; v++) {
|
|
704
|
+
var m = o[v][0], E = o[v][1];
|
|
705
|
+
switch (!u && m !== d && (c.start1 = h, c.start2 = g), m) {
|
|
706
|
+
case f:
|
|
707
|
+
c.diffs[u++] = o[v], c.length2 += E.length, _ = _.substring(0, g) + E + _.substring(g);
|
|
708
708
|
break;
|
|
709
709
|
case a:
|
|
710
|
-
c.length1 +=
|
|
710
|
+
c.length1 += E.length, c.diffs[u++] = o[v], _ = _.substring(0, g) + _.substring(g + E.length);
|
|
711
711
|
break;
|
|
712
|
-
case
|
|
713
|
-
|
|
712
|
+
case d:
|
|
713
|
+
E.length <= 2 * this.Patch_Margin && u && o.length != v + 1 ? (c.diffs[u++] = o[v], c.length1 += E.length, c.length2 += E.length) : E.length >= 2 * this.Patch_Margin && u && (this.patch_addContext_(c, p), l.push(c), c = new n.patch_obj(), u = 0, p = _, h = g);
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
m !== f && (h += E.length), m !== a && (g += E.length);
|
|
717
717
|
}
|
|
718
|
-
return
|
|
718
|
+
return u && (this.patch_addContext_(c, p), l.push(c)), l;
|
|
719
719
|
}, n.prototype.patch_deepCopy = function(t) {
|
|
720
720
|
for (var r = [], i = 0; i < t.length; i++) {
|
|
721
721
|
var s = t[i], o = new n.patch_obj();
|
|
@@ -732,34 +732,34 @@ var dn = { exports: {} };
|
|
|
732
732
|
var i = this.patch_addPadding(t);
|
|
733
733
|
r = i + r + i, this.patch_splitMax(t);
|
|
734
734
|
for (var s = 0, o = [], l = 0; l < t.length; l++) {
|
|
735
|
-
var c = t[l].start2 + s,
|
|
736
|
-
if (
|
|
735
|
+
var c = t[l].start2 + s, u = this.diff_text1(t[l].diffs), h, g = -1;
|
|
736
|
+
if (u.length > this.Match_MaxBits ? (h = this.match_main(
|
|
737
737
|
r,
|
|
738
|
-
|
|
738
|
+
u.substring(0, this.Match_MaxBits),
|
|
739
739
|
c
|
|
740
|
-
), h != -1 && (
|
|
740
|
+
), h != -1 && (g = this.match_main(
|
|
741
741
|
r,
|
|
742
|
-
|
|
743
|
-
c +
|
|
744
|
-
), (
|
|
742
|
+
u.substring(u.length - this.Match_MaxBits),
|
|
743
|
+
c + u.length - this.Match_MaxBits
|
|
744
|
+
), (g == -1 || h >= g) && (h = -1))) : h = this.match_main(r, u, c), h == -1)
|
|
745
745
|
o[l] = !1, s -= t[l].length2 - t[l].length1;
|
|
746
746
|
else {
|
|
747
747
|
o[l] = !0, s = h - c;
|
|
748
748
|
var p;
|
|
749
|
-
if (
|
|
750
|
-
r = r.substring(0, h) + this.diff_text2(t[l].diffs) + r.substring(h +
|
|
749
|
+
if (g == -1 ? p = r.substring(h, h + u.length) : p = r.substring(h, g + this.Match_MaxBits), u == p)
|
|
750
|
+
r = r.substring(0, h) + this.diff_text2(t[l].diffs) + r.substring(h + u.length);
|
|
751
751
|
else {
|
|
752
|
-
var _ = this.diff_main(
|
|
753
|
-
if (
|
|
752
|
+
var _ = this.diff_main(u, p, !1);
|
|
753
|
+
if (u.length > this.Match_MaxBits && this.diff_levenshtein(_) / u.length > this.Patch_DeleteThreshold)
|
|
754
754
|
o[l] = !1;
|
|
755
755
|
else {
|
|
756
756
|
this.diff_cleanupSemanticLossless(_);
|
|
757
|
-
for (var v = 0,
|
|
758
|
-
var
|
|
759
|
-
|
|
757
|
+
for (var v = 0, m, E = 0; E < t[l].diffs.length; E++) {
|
|
758
|
+
var A = t[l].diffs[E];
|
|
759
|
+
A[0] !== d && (m = this.diff_xIndex(_, v)), A[0] === f ? r = r.substring(0, h + m) + A[1] + r.substring(h + m) : A[0] === a && (r = r.substring(0, h + m) + r.substring(h + this.diff_xIndex(
|
|
760
760
|
_,
|
|
761
|
-
v +
|
|
762
|
-
))),
|
|
761
|
+
v + A[1].length
|
|
762
|
+
))), A[0] !== a && (v += A[1].length);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
@@ -772,14 +772,14 @@ var dn = { exports: {} };
|
|
|
772
772
|
for (var s = 0; s < t.length; s++)
|
|
773
773
|
t[s].start1 += r, t[s].start2 += r;
|
|
774
774
|
var o = t[0], l = o.diffs;
|
|
775
|
-
if (l.length == 0 || l[0][0] !=
|
|
776
|
-
l.unshift(new n.Diff(
|
|
775
|
+
if (l.length == 0 || l[0][0] != d)
|
|
776
|
+
l.unshift(new n.Diff(d, i)), o.start1 -= r, o.start2 -= r, o.length1 += r, o.length2 += r;
|
|
777
777
|
else if (r > l[0][1].length) {
|
|
778
778
|
var c = r - l[0][1].length;
|
|
779
779
|
l[0][1] = i.substring(l[0][1].length) + l[0][1], o.start1 -= c, o.start2 -= c, o.length1 += c, o.length2 += c;
|
|
780
780
|
}
|
|
781
|
-
if (o = t[t.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] !=
|
|
782
|
-
l.push(new n.Diff(
|
|
781
|
+
if (o = t[t.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] != d)
|
|
782
|
+
l.push(new n.Diff(d, i)), o.length1 += r, o.length2 += r;
|
|
783
783
|
else if (r > l[l.length - 1][1].length) {
|
|
784
784
|
var c = r - l[l.length - 1][1].length;
|
|
785
785
|
l[l.length - 1][1] += i.substring(0, c), o.length1 += c, o.length2 += c;
|
|
@@ -791,17 +791,17 @@ var dn = { exports: {} };
|
|
|
791
791
|
var s = t[i];
|
|
792
792
|
t.splice(i--, 1);
|
|
793
793
|
for (var o = s.start1, l = s.start2, c = ""; s.diffs.length !== 0; ) {
|
|
794
|
-
var
|
|
795
|
-
for (
|
|
796
|
-
var
|
|
797
|
-
|
|
794
|
+
var u = new n.patch_obj(), h = !0;
|
|
795
|
+
for (u.start1 = o - c.length, u.start2 = l - c.length, c !== "" && (u.length1 = u.length2 = c.length, u.diffs.push(new n.Diff(d, c))); s.diffs.length !== 0 && u.length1 < r - this.Patch_Margin; ) {
|
|
796
|
+
var g = s.diffs[0][0], p = s.diffs[0][1];
|
|
797
|
+
g === f ? (u.length2 += p.length, l += p.length, u.diffs.push(s.diffs.shift()), h = !1) : g === a && u.diffs.length == 1 && u.diffs[0][0] == d && p.length > 2 * r ? (u.length1 += p.length, o += p.length, h = !1, u.diffs.push(new n.Diff(g, p)), s.diffs.shift()) : (p = p.substring(
|
|
798
798
|
0,
|
|
799
|
-
r -
|
|
800
|
-
),
|
|
799
|
+
r - u.length1 - this.Patch_Margin
|
|
800
|
+
), u.length1 += p.length, o += p.length, g === d ? (u.length2 += p.length, l += p.length) : h = !1, u.diffs.push(new n.Diff(g, p)), p == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(p.length));
|
|
801
801
|
}
|
|
802
|
-
c = this.diff_text2(
|
|
802
|
+
c = this.diff_text2(u.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
803
803
|
var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
|
|
804
|
-
_ !== "" && (
|
|
804
|
+
_ !== "" && (u.length1 += _.length, u.length2 += _.length, u.diffs.length !== 0 && u.diffs[u.diffs.length - 1][0] === d ? u.diffs[u.diffs.length - 1][1] += _ : u.diffs.push(new n.Diff(d, _))), h || t.splice(++i, 0, u);
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
}, n.prototype.patch_toText = function(t) {
|
|
@@ -819,23 +819,23 @@ var dn = { exports: {} };
|
|
|
819
819
|
throw new Error("Invalid patch string: " + i[s]);
|
|
820
820
|
var c = new n.patch_obj();
|
|
821
821
|
for (r.push(c), c.start1 = parseInt(l[1], 10), l[2] === "" ? (c.start1--, c.length1 = 1) : l[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(l[2], 10)), c.start2 = parseInt(l[3], 10), l[4] === "" ? (c.start2--, c.length2 = 1) : l[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(l[4], 10)), s++; s < i.length; ) {
|
|
822
|
-
var
|
|
822
|
+
var u = i[s].charAt(0);
|
|
823
823
|
try {
|
|
824
824
|
var h = decodeURI(i[s].substring(1));
|
|
825
|
-
} catch (
|
|
825
|
+
} catch (g) {
|
|
826
826
|
throw new Error("Illegal escape in patch_fromText: " + h);
|
|
827
827
|
}
|
|
828
|
-
if (
|
|
828
|
+
if (u == "-")
|
|
829
829
|
c.diffs.push(new n.Diff(a, h));
|
|
830
|
-
else if (
|
|
831
|
-
c.diffs.push(new n.Diff(
|
|
832
|
-
else if (
|
|
833
|
-
c.diffs.push(new n.Diff(
|
|
830
|
+
else if (u == "+")
|
|
831
|
+
c.diffs.push(new n.Diff(f, h));
|
|
832
|
+
else if (u == " ")
|
|
833
|
+
c.diffs.push(new n.Diff(d, h));
|
|
834
834
|
else {
|
|
835
|
-
if (
|
|
835
|
+
if (u == "@")
|
|
836
836
|
break;
|
|
837
|
-
if (
|
|
838
|
-
throw new Error('Invalid patch mode "' +
|
|
837
|
+
if (u !== "")
|
|
838
|
+
throw new Error('Invalid patch mode "' + u + '" in: ' + h);
|
|
839
839
|
}
|
|
840
840
|
s++;
|
|
841
841
|
}
|
|
@@ -849,13 +849,13 @@ var dn = { exports: {} };
|
|
|
849
849
|
for (var i = ["@@ -" + t + " +" + r + ` @@
|
|
850
850
|
`], s, o = 0; o < this.diffs.length; o++) {
|
|
851
851
|
switch (this.diffs[o][0]) {
|
|
852
|
-
case
|
|
852
|
+
case f:
|
|
853
853
|
s = "+";
|
|
854
854
|
break;
|
|
855
855
|
case a:
|
|
856
856
|
s = "-";
|
|
857
857
|
break;
|
|
858
|
-
case
|
|
858
|
+
case d:
|
|
859
859
|
s = " ";
|
|
860
860
|
break;
|
|
861
861
|
}
|
|
@@ -863,20 +863,20 @@ var dn = { exports: {} };
|
|
|
863
863
|
`;
|
|
864
864
|
}
|
|
865
865
|
return i.join("").replace(/%20/g, " ");
|
|
866
|
-
}, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = a, e.exports.DIFF_INSERT =
|
|
867
|
-
})(
|
|
868
|
-
var Ie =
|
|
869
|
-
function
|
|
866
|
+
}, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = a, e.exports.DIFF_INSERT = f, e.exports.DIFF_EQUAL = d;
|
|
867
|
+
})(bn);
|
|
868
|
+
var Ie = bn.exports;
|
|
869
|
+
function vn(e) {
|
|
870
870
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
871
871
|
throw new Error("map is read-only");
|
|
872
872
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
873
873
|
throw new Error("set is read-only");
|
|
874
874
|
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((n) => {
|
|
875
|
-
const a = e[n],
|
|
876
|
-
(
|
|
875
|
+
const a = e[n], f = typeof a;
|
|
876
|
+
(f === "object" || f === "function") && !Object.isFrozen(a) && vn(a);
|
|
877
877
|
}), e;
|
|
878
878
|
}
|
|
879
|
-
class
|
|
879
|
+
class Je {
|
|
880
880
|
/**
|
|
881
881
|
* @param {CompiledMode} mode
|
|
882
882
|
*/
|
|
@@ -887,32 +887,32 @@ class Xe {
|
|
|
887
887
|
this.isMatchIgnored = !0;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function mn(e) {
|
|
891
891
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
892
892
|
}
|
|
893
893
|
function re(e, ...n) {
|
|
894
894
|
const a = /* @__PURE__ */ Object.create(null);
|
|
895
|
-
for (const
|
|
896
|
-
a[
|
|
897
|
-
return n.forEach(function(
|
|
898
|
-
for (const
|
|
899
|
-
a[
|
|
895
|
+
for (const f in e)
|
|
896
|
+
a[f] = e[f];
|
|
897
|
+
return n.forEach(function(f) {
|
|
898
|
+
for (const d in f)
|
|
899
|
+
a[d] = f[d];
|
|
900
900
|
}), /** @type {T} */
|
|
901
901
|
a;
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const tt = "</span>", en = (e) => !!e.scope, rt = (e, { prefix: n }) => {
|
|
904
904
|
if (e.startsWith("language:"))
|
|
905
905
|
return e.replace("language:", "language-");
|
|
906
906
|
if (e.includes(".")) {
|
|
907
907
|
const a = e.split(".");
|
|
908
908
|
return [
|
|
909
909
|
`${n}${a.shift()}`,
|
|
910
|
-
...a.map((
|
|
910
|
+
...a.map((f, d) => `${f}${"_".repeat(d + 1)}`)
|
|
911
911
|
].join(" ");
|
|
912
912
|
}
|
|
913
913
|
return `${n}${e}`;
|
|
914
914
|
};
|
|
915
|
-
class
|
|
915
|
+
class it {
|
|
916
916
|
/**
|
|
917
917
|
* Creates a new HTMLRenderer
|
|
918
918
|
*
|
|
@@ -927,16 +927,16 @@ class tt {
|
|
|
927
927
|
*
|
|
928
928
|
* @param {string} text */
|
|
929
929
|
addText(n) {
|
|
930
|
-
this.buffer +=
|
|
930
|
+
this.buffer += mn(n);
|
|
931
931
|
}
|
|
932
932
|
/**
|
|
933
933
|
* Adds a node open to the output stream (if needed)
|
|
934
934
|
*
|
|
935
935
|
* @param {Node} node */
|
|
936
936
|
openNode(n) {
|
|
937
|
-
if (!
|
|
937
|
+
if (!en(n))
|
|
938
938
|
return;
|
|
939
|
-
const a =
|
|
939
|
+
const a = rt(
|
|
940
940
|
n.scope,
|
|
941
941
|
{ prefix: this.classPrefix }
|
|
942
942
|
);
|
|
@@ -947,7 +947,7 @@ class tt {
|
|
|
947
947
|
*
|
|
948
948
|
* @param {Node} node */
|
|
949
949
|
closeNode(n) {
|
|
950
|
-
|
|
950
|
+
en(n) && (this.buffer += tt);
|
|
951
951
|
}
|
|
952
952
|
/**
|
|
953
953
|
* returns the accumulated buffer
|
|
@@ -964,13 +964,13 @@ class tt {
|
|
|
964
964
|
this.buffer += `<span class="${n}">`;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
const
|
|
967
|
+
const nn = (e = {}) => {
|
|
968
968
|
const n = { children: [] };
|
|
969
969
|
return Object.assign(n, e), n;
|
|
970
970
|
};
|
|
971
971
|
class xe {
|
|
972
972
|
constructor() {
|
|
973
|
-
this.rootNode =
|
|
973
|
+
this.rootNode = nn(), this.stack = [this.rootNode];
|
|
974
974
|
}
|
|
975
975
|
get top() {
|
|
976
976
|
return this.stack[this.stack.length - 1];
|
|
@@ -984,7 +984,7 @@ class xe {
|
|
|
984
984
|
}
|
|
985
985
|
/** @param {string} scope */
|
|
986
986
|
openNode(n) {
|
|
987
|
-
const a =
|
|
987
|
+
const a = nn({ scope: n });
|
|
988
988
|
this.add(a), this.stack.push(a);
|
|
989
989
|
}
|
|
990
990
|
closeNode() {
|
|
@@ -1010,7 +1010,7 @@ class xe {
|
|
|
1010
1010
|
* @param {Node} node
|
|
1011
1011
|
*/
|
|
1012
1012
|
static _walk(n, a) {
|
|
1013
|
-
return typeof a == "string" ? n.addText(a) : a.children && (n.openNode(a), a.children.forEach((
|
|
1013
|
+
return typeof a == "string" ? n.addText(a) : a.children && (n.openNode(a), a.children.forEach((f) => this._walk(n, f)), n.closeNode(a)), n;
|
|
1014
1014
|
}
|
|
1015
1015
|
/**
|
|
1016
1016
|
* @param {Node} node
|
|
@@ -1021,7 +1021,7 @@ class xe {
|
|
|
1021
1021
|
}));
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
class
|
|
1024
|
+
class st extends xe {
|
|
1025
1025
|
/**
|
|
1026
1026
|
* @param {*} options
|
|
1027
1027
|
*/
|
|
@@ -1046,64 +1046,64 @@ class rt extends xe {
|
|
|
1046
1046
|
* @param {string} name
|
|
1047
1047
|
*/
|
|
1048
1048
|
__addSublanguage(n, a) {
|
|
1049
|
-
const
|
|
1050
|
-
a && (
|
|
1049
|
+
const f = n.root;
|
|
1050
|
+
a && (f.scope = `language:${a}`), this.add(f);
|
|
1051
1051
|
}
|
|
1052
1052
|
toHTML() {
|
|
1053
|
-
return new
|
|
1053
|
+
return new it(this, this.options).value();
|
|
1054
1054
|
}
|
|
1055
1055
|
finalize() {
|
|
1056
1056
|
return this.closeAllNodes(), !0;
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function pe(e) {
|
|
1060
1060
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function En(e) {
|
|
1063
1063
|
return ae("(?=", e, ")");
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function at(e) {
|
|
1066
1066
|
return ae("(?:", e, ")*");
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function ot(e) {
|
|
1069
1069
|
return ae("(?:", e, ")?");
|
|
1070
1070
|
}
|
|
1071
1071
|
function ae(...e) {
|
|
1072
|
-
return e.map((a) =>
|
|
1072
|
+
return e.map((a) => pe(a)).join("");
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function lt(e) {
|
|
1075
1075
|
const n = e[e.length - 1];
|
|
1076
1076
|
return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
|
|
1077
1077
|
}
|
|
1078
1078
|
function He(...e) {
|
|
1079
|
-
return "(" + (
|
|
1079
|
+
return "(" + (lt(e).capture ? "" : "?:") + e.map((f) => pe(f)).join("|") + ")";
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function yn(e) {
|
|
1082
1082
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function ct(e, n) {
|
|
1085
1085
|
const a = e && e.exec(n);
|
|
1086
1086
|
return a && a.index === 0;
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const ut = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1089
1089
|
function Fe(e, { joinWith: n }) {
|
|
1090
1090
|
let a = 0;
|
|
1091
|
-
return e.map((
|
|
1091
|
+
return e.map((f) => {
|
|
1092
1092
|
a += 1;
|
|
1093
|
-
const
|
|
1094
|
-
let t =
|
|
1093
|
+
const d = a;
|
|
1094
|
+
let t = pe(f), r = "";
|
|
1095
1095
|
for (; t.length > 0; ) {
|
|
1096
|
-
const i =
|
|
1096
|
+
const i = ut.exec(t);
|
|
1097
1097
|
if (!i) {
|
|
1098
1098
|
r += t;
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
|
-
r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) +
|
|
1101
|
+
r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + d) : (r += i[0], i[0] === "(" && a++);
|
|
1102
1102
|
}
|
|
1103
1103
|
return r;
|
|
1104
|
-
}).map((
|
|
1104
|
+
}).map((f) => `(${f})`).join(n);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const ft = /\b\B/, wn = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", An = "\\b\\d+(\\.\\d+)?", Nn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Mn = "\\b(0b[01]+)", gt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", ht = (e = {}) => {
|
|
1107
1107
|
const n = /^#![ ]*\//;
|
|
1108
1108
|
return e.binary && (e.begin = ae(
|
|
1109
1109
|
n,
|
|
@@ -1116,29 +1116,29 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1116
1116
|
end: /$/,
|
|
1117
1117
|
relevance: 0,
|
|
1118
1118
|
/** @type {ModeCallback} */
|
|
1119
|
-
"on:begin": (a,
|
|
1120
|
-
a.index !== 0 &&
|
|
1119
|
+
"on:begin": (a, f) => {
|
|
1120
|
+
a.index !== 0 && f.ignoreMatch();
|
|
1121
1121
|
}
|
|
1122
1122
|
}, e);
|
|
1123
|
-
},
|
|
1123
|
+
}, _e = {
|
|
1124
1124
|
begin: "\\\\[\\s\\S]",
|
|
1125
1125
|
relevance: 0
|
|
1126
|
-
},
|
|
1126
|
+
}, dt = {
|
|
1127
1127
|
scope: "string",
|
|
1128
1128
|
begin: "'",
|
|
1129
1129
|
end: "'",
|
|
1130
1130
|
illegal: "\\n",
|
|
1131
|
-
contains: [
|
|
1132
|
-
},
|
|
1131
|
+
contains: [_e]
|
|
1132
|
+
}, pt = {
|
|
1133
1133
|
scope: "string",
|
|
1134
1134
|
begin: '"',
|
|
1135
1135
|
end: '"',
|
|
1136
1136
|
illegal: "\\n",
|
|
1137
|
-
contains: [
|
|
1138
|
-
},
|
|
1137
|
+
contains: [_e]
|
|
1138
|
+
}, _t = {
|
|
1139
1139
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1140
1140
|
}, Ce = function(e, n, a = {}) {
|
|
1141
|
-
const
|
|
1141
|
+
const f = re(
|
|
1142
1142
|
{
|
|
1143
1143
|
scope: "comment",
|
|
1144
1144
|
begin: e,
|
|
@@ -1147,7 +1147,7 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1147
1147
|
},
|
|
1148
1148
|
a
|
|
1149
1149
|
);
|
|
1150
|
-
|
|
1150
|
+
f.contains.push({
|
|
1151
1151
|
scope: "doctag",
|
|
1152
1152
|
// hack to avoid the space from being included. the space is necessary to
|
|
1153
1153
|
// match here to prevent the plain text rule below from gobbling up doctags
|
|
@@ -1156,7 +1156,7 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1156
1156
|
excludeBegin: !0,
|
|
1157
1157
|
relevance: 0
|
|
1158
1158
|
});
|
|
1159
|
-
const
|
|
1159
|
+
const d = He(
|
|
1160
1160
|
// list of common 1 and 2 letter words in English
|
|
1161
1161
|
"I",
|
|
1162
1162
|
"a",
|
|
@@ -1177,7 +1177,7 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1177
1177
|
/[A-Za-z][a-z]{2,}/
|
|
1178
1178
|
// allow capitalized words at beginning of sentences
|
|
1179
1179
|
);
|
|
1180
|
-
return
|
|
1180
|
+
return f.contains.push(
|
|
1181
1181
|
{
|
|
1182
1182
|
// TODO: how to include ", (, ) without breaking grammars that use these for
|
|
1183
1183
|
// comment delimiters?
|
|
@@ -1196,51 +1196,51 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1196
1196
|
/[ ]+/,
|
|
1197
1197
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
1198
1198
|
"(",
|
|
1199
|
-
|
|
1199
|
+
d,
|
|
1200
1200
|
/[.]?[:]?([.][ ]|[ ])/,
|
|
1201
1201
|
"){3}"
|
|
1202
1202
|
)
|
|
1203
1203
|
// look for 3 words in a row
|
|
1204
1204
|
}
|
|
1205
|
-
),
|
|
1206
|
-
},
|
|
1205
|
+
), f;
|
|
1206
|
+
}, bt = Ce("//", "$"), vt = Ce("/\\*", "\\*/"), mt = Ce("#", "$"), Et = {
|
|
1207
1207
|
scope: "number",
|
|
1208
|
-
begin:
|
|
1208
|
+
begin: An,
|
|
1209
1209
|
relevance: 0
|
|
1210
|
-
},
|
|
1210
|
+
}, yt = {
|
|
1211
1211
|
scope: "number",
|
|
1212
|
-
begin:
|
|
1212
|
+
begin: Nn,
|
|
1213
1213
|
relevance: 0
|
|
1214
|
-
},
|
|
1214
|
+
}, wt = {
|
|
1215
1215
|
scope: "number",
|
|
1216
|
-
begin:
|
|
1216
|
+
begin: Mn,
|
|
1217
1217
|
relevance: 0
|
|
1218
|
-
},
|
|
1218
|
+
}, At = {
|
|
1219
1219
|
scope: "regexp",
|
|
1220
1220
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1221
1221
|
end: /\/[gimuy]*/,
|
|
1222
1222
|
contains: [
|
|
1223
|
-
|
|
1223
|
+
_e,
|
|
1224
1224
|
{
|
|
1225
1225
|
begin: /\[/,
|
|
1226
1226
|
end: /\]/,
|
|
1227
1227
|
relevance: 0,
|
|
1228
|
-
contains: [
|
|
1228
|
+
contains: [_e]
|
|
1229
1229
|
}
|
|
1230
1230
|
]
|
|
1231
|
-
},
|
|
1231
|
+
}, Nt = {
|
|
1232
1232
|
scope: "title",
|
|
1233
|
-
begin:
|
|
1233
|
+
begin: wn,
|
|
1234
1234
|
relevance: 0
|
|
1235
|
-
},
|
|
1235
|
+
}, Mt = {
|
|
1236
1236
|
scope: "title",
|
|
1237
1237
|
begin: ze,
|
|
1238
1238
|
relevance: 0
|
|
1239
|
-
},
|
|
1239
|
+
}, Tt = {
|
|
1240
1240
|
// excludes method names from keyword processing
|
|
1241
1241
|
begin: "\\.\\s*" + ze,
|
|
1242
1242
|
relevance: 0
|
|
1243
|
-
},
|
|
1243
|
+
}, St = function(e) {
|
|
1244
1244
|
return Object.assign(
|
|
1245
1245
|
e,
|
|
1246
1246
|
{
|
|
@@ -1255,70 +1255,70 @@ const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1255
1255
|
}
|
|
1256
1256
|
);
|
|
1257
1257
|
};
|
|
1258
|
-
var
|
|
1258
|
+
var Ae = /* @__PURE__ */ Object.freeze({
|
|
1259
1259
|
__proto__: null,
|
|
1260
|
-
APOS_STRING_MODE:
|
|
1261
|
-
BACKSLASH_ESCAPE:
|
|
1262
|
-
BINARY_NUMBER_MODE:
|
|
1263
|
-
BINARY_NUMBER_RE:
|
|
1260
|
+
APOS_STRING_MODE: dt,
|
|
1261
|
+
BACKSLASH_ESCAPE: _e,
|
|
1262
|
+
BINARY_NUMBER_MODE: wt,
|
|
1263
|
+
BINARY_NUMBER_RE: Mn,
|
|
1264
1264
|
COMMENT: Ce,
|
|
1265
|
-
C_BLOCK_COMMENT_MODE:
|
|
1266
|
-
C_LINE_COMMENT_MODE:
|
|
1267
|
-
C_NUMBER_MODE:
|
|
1268
|
-
C_NUMBER_RE:
|
|
1269
|
-
END_SAME_AS_BEGIN:
|
|
1270
|
-
HASH_COMMENT_MODE:
|
|
1271
|
-
IDENT_RE:
|
|
1272
|
-
MATCH_NOTHING_RE:
|
|
1273
|
-
METHOD_GUARD:
|
|
1274
|
-
NUMBER_MODE:
|
|
1275
|
-
NUMBER_RE:
|
|
1276
|
-
PHRASAL_WORDS_MODE:
|
|
1277
|
-
QUOTE_STRING_MODE:
|
|
1278
|
-
REGEXP_MODE:
|
|
1279
|
-
RE_STARTERS_RE:
|
|
1280
|
-
SHEBANG:
|
|
1281
|
-
TITLE_MODE:
|
|
1265
|
+
C_BLOCK_COMMENT_MODE: vt,
|
|
1266
|
+
C_LINE_COMMENT_MODE: bt,
|
|
1267
|
+
C_NUMBER_MODE: yt,
|
|
1268
|
+
C_NUMBER_RE: Nn,
|
|
1269
|
+
END_SAME_AS_BEGIN: St,
|
|
1270
|
+
HASH_COMMENT_MODE: mt,
|
|
1271
|
+
IDENT_RE: wn,
|
|
1272
|
+
MATCH_NOTHING_RE: ft,
|
|
1273
|
+
METHOD_GUARD: Tt,
|
|
1274
|
+
NUMBER_MODE: Et,
|
|
1275
|
+
NUMBER_RE: An,
|
|
1276
|
+
PHRASAL_WORDS_MODE: _t,
|
|
1277
|
+
QUOTE_STRING_MODE: pt,
|
|
1278
|
+
REGEXP_MODE: At,
|
|
1279
|
+
RE_STARTERS_RE: gt,
|
|
1280
|
+
SHEBANG: ht,
|
|
1281
|
+
TITLE_MODE: Nt,
|
|
1282
1282
|
UNDERSCORE_IDENT_RE: ze,
|
|
1283
|
-
UNDERSCORE_TITLE_MODE:
|
|
1283
|
+
UNDERSCORE_TITLE_MODE: Mt
|
|
1284
1284
|
});
|
|
1285
|
-
function
|
|
1285
|
+
function Dt(e, n) {
|
|
1286
1286
|
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Ct(e, n) {
|
|
1289
1289
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1292
|
-
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
1291
|
+
function Rt(e, n) {
|
|
1292
|
+
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Dt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Lt(e, n) {
|
|
1295
1295
|
Array.isArray(e.illegal) && (e.illegal = He(...e.illegal));
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Ot(e, n) {
|
|
1298
1298
|
if (e.match) {
|
|
1299
1299
|
if (e.begin || e.end)
|
|
1300
1300
|
throw new Error("begin & end are not supported with match");
|
|
1301
1301
|
e.begin = e.match, delete e.match;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function It(e, n) {
|
|
1305
1305
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const kt = (e, n) => {
|
|
1308
1308
|
if (!e.beforeMatch)
|
|
1309
1309
|
return;
|
|
1310
1310
|
if (e.starts)
|
|
1311
1311
|
throw new Error("beforeMatch cannot be used with starts");
|
|
1312
1312
|
const a = Object.assign({}, e);
|
|
1313
|
-
Object.keys(e).forEach((
|
|
1314
|
-
delete e[
|
|
1315
|
-
}), e.keywords = a.keywords, e.begin = ae(a.beforeMatch,
|
|
1313
|
+
Object.keys(e).forEach((f) => {
|
|
1314
|
+
delete e[f];
|
|
1315
|
+
}), e.keywords = a.keywords, e.begin = ae(a.beforeMatch, En(a.begin)), e.starts = {
|
|
1316
1316
|
relevance: 0,
|
|
1317
1317
|
contains: [
|
|
1318
1318
|
Object.assign(a, { endsParent: !0 })
|
|
1319
1319
|
]
|
|
1320
1320
|
}, e.relevance = 0, delete a.beforeMatch;
|
|
1321
|
-
},
|
|
1321
|
+
}, $t = [
|
|
1322
1322
|
"of",
|
|
1323
1323
|
"and",
|
|
1324
1324
|
"for",
|
|
@@ -1333,70 +1333,70 @@ const Ot = (e, n) => {
|
|
|
1333
1333
|
// common variable name
|
|
1334
1334
|
"value"
|
|
1335
1335
|
// common variable name
|
|
1336
|
-
],
|
|
1337
|
-
function
|
|
1338
|
-
const
|
|
1339
|
-
return typeof e == "string" ?
|
|
1336
|
+
], Bt = "keyword";
|
|
1337
|
+
function Tn(e, n, a = Bt) {
|
|
1338
|
+
const f = /* @__PURE__ */ Object.create(null);
|
|
1339
|
+
return typeof e == "string" ? d(a, e.split(" ")) : Array.isArray(e) ? d(a, e) : Object.keys(e).forEach(function(t) {
|
|
1340
1340
|
Object.assign(
|
|
1341
|
-
|
|
1342
|
-
|
|
1341
|
+
f,
|
|
1342
|
+
Tn(e[t], n, t)
|
|
1343
1343
|
);
|
|
1344
|
-
}),
|
|
1345
|
-
function
|
|
1344
|
+
}), f;
|
|
1345
|
+
function d(t, r) {
|
|
1346
1346
|
n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
|
|
1347
1347
|
const s = i.split("|");
|
|
1348
|
-
|
|
1348
|
+
f[s[0]] = [t, Ut(s[0], s[1])];
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return n ? Number(n) :
|
|
1352
|
+
function Ut(e, n) {
|
|
1353
|
+
return n ? Number(n) : Pt(e) ? 0 : 1;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1355
|
+
function Pt(e) {
|
|
1356
|
+
return $t.includes(e.toLowerCase());
|
|
1357
1357
|
}
|
|
1358
|
-
const
|
|
1358
|
+
const tn = {}, se = (e) => {
|
|
1359
1359
|
console.error(e);
|
|
1360
|
-
},
|
|
1360
|
+
}, rn = (e, ...n) => {
|
|
1361
1361
|
console.log(`WARN: ${e}`, ...n);
|
|
1362
|
-
},
|
|
1363
|
-
|
|
1362
|
+
}, ce = (e, n) => {
|
|
1363
|
+
tn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), tn[`${e}/${n}`] = !0);
|
|
1364
1364
|
}, Se = new Error();
|
|
1365
|
-
function
|
|
1366
|
-
let
|
|
1367
|
-
const
|
|
1365
|
+
function Sn(e, n, { key: a }) {
|
|
1366
|
+
let f = 0;
|
|
1367
|
+
const d = e[a], t = {}, r = {};
|
|
1368
1368
|
for (let i = 1; i <= n.length; i++)
|
|
1369
|
-
r[i +
|
|
1369
|
+
r[i + f] = d[i], t[i + f] = !0, f += yn(n[i - 1]);
|
|
1370
1370
|
e[a] = r, e[a]._emit = t, e[a]._multi = !0;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function xt(e) {
|
|
1373
1373
|
if (Array.isArray(e.begin)) {
|
|
1374
1374
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
1375
1375
|
throw se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Se;
|
|
1376
1376
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
1377
1377
|
throw se("beginScope must be object"), Se;
|
|
1378
|
-
|
|
1378
|
+
Sn(e, e.begin, { key: "beginScope" }), e.begin = Fe(e.begin, { joinWith: "" });
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Ht(e) {
|
|
1382
1382
|
if (Array.isArray(e.end)) {
|
|
1383
1383
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
1384
1384
|
throw se("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Se;
|
|
1385
1385
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
1386
1386
|
throw se("endScope must be object"), Se;
|
|
1387
|
-
|
|
1387
|
+
Sn(e, e.end, { key: "endScope" }), e.end = Fe(e.end, { joinWith: "" });
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Ft(e) {
|
|
1391
1391
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1393
|
+
function zt(e) {
|
|
1394
|
+
Ft(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), xt(e), Ht(e);
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function Gt(e) {
|
|
1397
1397
|
function n(r, i) {
|
|
1398
1398
|
return new RegExp(
|
|
1399
|
-
|
|
1399
|
+
pe(r),
|
|
1400
1400
|
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
|
|
1401
1401
|
);
|
|
1402
1402
|
}
|
|
@@ -1406,7 +1406,7 @@ function Ft(e) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
// @ts-ignore
|
|
1408
1408
|
addRule(i, s) {
|
|
1409
|
-
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt +=
|
|
1409
|
+
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += yn(i) + 1;
|
|
1410
1410
|
}
|
|
1411
1411
|
compile() {
|
|
1412
1412
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
@@ -1419,11 +1419,11 @@ function Ft(e) {
|
|
|
1419
1419
|
const s = this.matcherRe.exec(i);
|
|
1420
1420
|
if (!s)
|
|
1421
1421
|
return null;
|
|
1422
|
-
const o = s.findIndex((c,
|
|
1422
|
+
const o = s.findIndex((c, u) => u > 0 && c !== void 0), l = this.matchIndexes[o];
|
|
1423
1423
|
return s.splice(0, o), Object.assign(s, l);
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
class
|
|
1426
|
+
class f {
|
|
1427
1427
|
constructor() {
|
|
1428
1428
|
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
1429
1429
|
}
|
|
@@ -1456,8 +1456,8 @@ function Ft(e) {
|
|
|
1456
1456
|
return o && (this.regexIndex += o.position + 1, this.regexIndex === this.count && this.considerAll()), o;
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const i = new
|
|
1459
|
+
function d(r) {
|
|
1460
|
+
const i = new f();
|
|
1461
1461
|
return r.contains.forEach((s) => i.addRule(s.begin, { rule: s, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
|
|
1462
1462
|
}
|
|
1463
1463
|
function t(r, i) {
|
|
@@ -1468,33 +1468,33 @@ function Ft(e) {
|
|
|
1468
1468
|
if (r.isCompiled)
|
|
1469
1469
|
return s;
|
|
1470
1470
|
[
|
|
1471
|
-
|
|
1471
|
+
Ct,
|
|
1472
1472
|
// do this early so compiler extensions generally don't have to worry about
|
|
1473
1473
|
// the distinction between match/begin
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1474
|
+
Ot,
|
|
1475
|
+
zt,
|
|
1476
|
+
kt
|
|
1477
1477
|
].forEach((l) => l(r, i)), e.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
|
|
1478
|
-
|
|
1478
|
+
Rt,
|
|
1479
1479
|
// do this later so compiler extensions that come earlier have access to the
|
|
1480
1480
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1481
|
-
|
|
1481
|
+
Lt,
|
|
1482
1482
|
// default to 1 relevance if not specified
|
|
1483
|
-
|
|
1483
|
+
It
|
|
1484
1484
|
].forEach((l) => l(r, i)), r.isCompiled = !0;
|
|
1485
1485
|
let o = null;
|
|
1486
|
-
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords =
|
|
1486
|
+
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = Tn(r.keywords, e.case_insensitive)), s.keywordPatternRe = n(o, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = n(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = n(s.end)), s.terminatorEnd = pe(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = n(
|
|
1487
1487
|
/** @type {RegExp | string} */
|
|
1488
1488
|
r.illegal
|
|
1489
1489
|
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
|
|
1490
|
-
return
|
|
1490
|
+
return Kt(l === "self" ? r : l);
|
|
1491
1491
|
})), r.contains.forEach(function(l) {
|
|
1492
1492
|
t(
|
|
1493
1493
|
/** @type Mode */
|
|
1494
1494
|
l,
|
|
1495
1495
|
s
|
|
1496
1496
|
);
|
|
1497
|
-
}), r.starts && t(r.starts, i), s.matcher =
|
|
1497
|
+
}), r.starts && t(r.starts, i), s.matcher = d(s), s;
|
|
1498
1498
|
}
|
|
1499
1499
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
1500
1500
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -1503,23 +1503,23 @@ function Ft(e) {
|
|
|
1503
1503
|
e
|
|
1504
1504
|
);
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
return e ? e.endsWithParent ||
|
|
1506
|
+
function Dn(e) {
|
|
1507
|
+
return e ? e.endsWithParent || Dn(e.starts) : !1;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Kt(e) {
|
|
1510
1510
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
|
|
1511
1511
|
return re(e, { variants: null }, n);
|
|
1512
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1512
|
+
})), e.cachedVariants ? e.cachedVariants : Dn(e) ? re(e, { starts: e.starts ? re(e.starts) : null }) : Object.isFrozen(e) ? re(e) : e;
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1515
|
-
class
|
|
1514
|
+
var Wt = "11.9.0";
|
|
1515
|
+
class qt extends Error {
|
|
1516
1516
|
constructor(n, a) {
|
|
1517
1517
|
super(n), this.name = "HTMLInjectionError", this.html = a;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
const ke =
|
|
1521
|
-
const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null),
|
|
1522
|
-
let
|
|
1520
|
+
const ke = mn, sn = re, an = Symbol("nomatch"), Qt = 7, Cn = function(e) {
|
|
1521
|
+
const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), f = [];
|
|
1522
|
+
let d = !0;
|
|
1523
1523
|
const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
1524
1524
|
let i = {
|
|
1525
1525
|
ignoreUnescapedHTML: !1,
|
|
@@ -1531,7 +1531,7 @@ const ke = _n, rn = re, sn = Symbol("nomatch"), Wt = 7, Tn = function(e) {
|
|
|
1531
1531
|
languages: null,
|
|
1532
1532
|
// beta configuration options, subject to change, welcome to discuss
|
|
1533
1533
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1534
|
-
__emitter:
|
|
1534
|
+
__emitter: st
|
|
1535
1535
|
};
|
|
1536
1536
|
function s(b) {
|
|
1537
1537
|
return i.noHighlightRe.test(b);
|
|
@@ -1542,28 +1542,28 @@ const ke = _n, rn = re, sn = Symbol("nomatch"), Wt = 7, Tn = function(e) {
|
|
|
1542
1542
|
const L = i.languageDetectRe.exec(w);
|
|
1543
1543
|
if (L) {
|
|
1544
1544
|
const U = C(L[1]);
|
|
1545
|
-
return U || (
|
|
1545
|
+
return U || (rn(t.replace("{}", L[1])), rn("Falling back to no-highlight mode for this block.", b)), U ? L[1] : "no-highlight";
|
|
1546
1546
|
}
|
|
1547
1547
|
return w.split(/\s+/).find((U) => s(U) || C(U));
|
|
1548
1548
|
}
|
|
1549
1549
|
function l(b, w, L) {
|
|
1550
1550
|
let U = "", H = "";
|
|
1551
|
-
typeof w == "object" ? (U = b, L = w.ignoreIllegals, H = w.language) : (
|
|
1551
|
+
typeof w == "object" ? (U = b, L = w.ignoreIllegals, H = w.language) : (ce("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ce("10.7.0", `Please use highlight(code, options) instead.
|
|
1552
1552
|
https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L === void 0 && (L = !0);
|
|
1553
1553
|
const W = {
|
|
1554
1554
|
code: U,
|
|
1555
1555
|
language: H
|
|
1556
1556
|
};
|
|
1557
1557
|
te("before:highlight", W);
|
|
1558
|
-
const
|
|
1559
|
-
return
|
|
1558
|
+
const Z = W.result ? W.result : c(W.language, W.code, L);
|
|
1559
|
+
return Z.code = W.code, te("after:highlight", Z), Z;
|
|
1560
1560
|
}
|
|
1561
1561
|
function c(b, w, L, U) {
|
|
1562
1562
|
const H = /* @__PURE__ */ Object.create(null);
|
|
1563
1563
|
function W(y, M) {
|
|
1564
1564
|
return y.keywords[M];
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function Z() {
|
|
1567
1567
|
if (!O.keywords) {
|
|
1568
1568
|
z.addText(x);
|
|
1569
1569
|
return;
|
|
@@ -1573,14 +1573,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1573
1573
|
let M = O.keywordPatternRe.exec(x), k = "";
|
|
1574
1574
|
for (; M; ) {
|
|
1575
1575
|
k += x.substring(y, M.index);
|
|
1576
|
-
const P =
|
|
1576
|
+
const P = Y.case_insensitive ? M[0].toLowerCase() : M[0], G = W(O, P);
|
|
1577
1577
|
if (G) {
|
|
1578
|
-
const [X,
|
|
1579
|
-
if (z.addText(k), k = "", H[P] = (H[P] || 0) + 1, H[P] <=
|
|
1578
|
+
const [X, Fn] = G;
|
|
1579
|
+
if (z.addText(k), k = "", H[P] = (H[P] || 0) + 1, H[P] <= Qt && (we += Fn), X.startsWith("_"))
|
|
1580
1580
|
k += M[0];
|
|
1581
1581
|
else {
|
|
1582
|
-
const
|
|
1583
|
-
|
|
1582
|
+
const zn = Y.classNameAliases[X] || X;
|
|
1583
|
+
V(M[0], zn);
|
|
1584
1584
|
}
|
|
1585
1585
|
} else
|
|
1586
1586
|
k += M[0];
|
|
@@ -1588,7 +1588,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1588
1588
|
}
|
|
1589
1589
|
k += x.substring(y), z.addText(k);
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function Ee() {
|
|
1592
1592
|
if (x === "")
|
|
1593
1593
|
return;
|
|
1594
1594
|
let y = null;
|
|
@@ -1597,16 +1597,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1597
1597
|
z.addText(x);
|
|
1598
1598
|
return;
|
|
1599
1599
|
}
|
|
1600
|
-
y = c(O.subLanguage, x, !0,
|
|
1600
|
+
y = c(O.subLanguage, x, !0, Ze[O.subLanguage]), Ze[O.subLanguage] = /** @type {CompiledMode} */
|
|
1601
1601
|
y._top;
|
|
1602
1602
|
} else
|
|
1603
1603
|
y = h(x, O.subLanguage.length ? O.subLanguage : null);
|
|
1604
1604
|
O.relevance > 0 && (we += y.relevance), z.__addSublanguage(y._emitter, y.language);
|
|
1605
1605
|
}
|
|
1606
1606
|
function q() {
|
|
1607
|
-
O.subLanguage != null ?
|
|
1607
|
+
O.subLanguage != null ? Ee() : Z(), x = "";
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function V(y, M) {
|
|
1610
1610
|
y !== "" && (z.startScope(M), z.addText(y), z.endScope());
|
|
1611
1611
|
}
|
|
1612
1612
|
function We(y, M) {
|
|
@@ -1617,18 +1617,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1617
1617
|
k++;
|
|
1618
1618
|
continue;
|
|
1619
1619
|
}
|
|
1620
|
-
const G =
|
|
1621
|
-
G ?
|
|
1620
|
+
const G = Y.classNameAliases[y[k]] || y[k], X = M[k];
|
|
1621
|
+
G ? V(X, G) : (x = X, Z(), x = ""), k++;
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
1624
|
function qe(y, M) {
|
|
1625
|
-
return y.scope && typeof y.scope == "string" && z.openNode(
|
|
1625
|
+
return y.scope && typeof y.scope == "string" && z.openNode(Y.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (V(x, Y.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), x = "") : y.beginScope._multi && (We(y.beginScope, M), x = "")), O = Object.create(y, { parent: { value: O } }), O;
|
|
1626
1626
|
}
|
|
1627
1627
|
function Qe(y, M, k) {
|
|
1628
|
-
let P =
|
|
1628
|
+
let P = ct(y.endRe, k);
|
|
1629
1629
|
if (P) {
|
|
1630
1630
|
if (y["on:end"]) {
|
|
1631
|
-
const G = new
|
|
1631
|
+
const G = new Je(y);
|
|
1632
1632
|
y["on:end"](M, G), G.isMatchIgnored && (P = !1);
|
|
1633
1633
|
}
|
|
1634
1634
|
if (P) {
|
|
@@ -1640,53 +1640,53 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1640
1640
|
if (y.endsWithParent)
|
|
1641
1641
|
return Qe(y.parent, M, k);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Bn(y) {
|
|
1644
1644
|
return O.matcher.regexIndex === 0 ? (x += y[0], 1) : (Oe = !0, 0);
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1647
|
-
const M = y[0], k = y.rule, P = new
|
|
1646
|
+
function Un(y) {
|
|
1647
|
+
const M = y[0], k = y.rule, P = new Je(k), G = [k.__beforeBegin, k["on:begin"]];
|
|
1648
1648
|
for (const X of G)
|
|
1649
1649
|
if (X && (X(y, P), P.isMatchIgnored))
|
|
1650
|
-
return
|
|
1650
|
+
return Bn(M);
|
|
1651
1651
|
return k.skip ? x += M : (k.excludeBegin && (x += M), q(), !k.returnBegin && !k.excludeBegin && (x = M)), qe(k, y), k.returnBegin ? 0 : M.length;
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function Pn(y) {
|
|
1654
1654
|
const M = y[0], k = w.substring(y.index), P = Qe(O, y, k);
|
|
1655
1655
|
if (!P)
|
|
1656
|
-
return
|
|
1656
|
+
return an;
|
|
1657
1657
|
const G = O;
|
|
1658
|
-
O.endScope && O.endScope._wrap ? (q(),
|
|
1658
|
+
O.endScope && O.endScope._wrap ? (q(), V(M, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (q(), We(O.endScope, y)) : G.skip ? x += M : (G.returnEnd || G.excludeEnd || (x += M), q(), G.excludeEnd && (x = M));
|
|
1659
1659
|
do
|
|
1660
1660
|
O.scope && z.closeNode(), !O.skip && !O.subLanguage && (we += O.relevance), O = O.parent;
|
|
1661
1661
|
while (O !== P.parent);
|
|
1662
1662
|
return P.starts && qe(P.starts, y), G.returnEnd ? 0 : M.length;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function xn() {
|
|
1665
1665
|
const y = [];
|
|
1666
|
-
for (let M = O; M !==
|
|
1666
|
+
for (let M = O; M !== Y; M = M.parent)
|
|
1667
1667
|
M.scope && y.unshift(M.scope);
|
|
1668
1668
|
y.forEach((M) => z.openNode(M));
|
|
1669
1669
|
}
|
|
1670
1670
|
let ye = {};
|
|
1671
|
-
function
|
|
1671
|
+
function je(y, M) {
|
|
1672
1672
|
const k = M && M[0];
|
|
1673
1673
|
if (x += y, k == null)
|
|
1674
1674
|
return q(), 0;
|
|
1675
1675
|
if (ye.type === "begin" && M.type === "end" && ye.index === M.index && k === "") {
|
|
1676
|
-
if (x += w.slice(M.index, M.index + 1), !
|
|
1676
|
+
if (x += w.slice(M.index, M.index + 1), !d) {
|
|
1677
1677
|
const P = new Error(`0 width match regex (${b})`);
|
|
1678
1678
|
throw P.languageName = b, P.badRule = ye.rule, P;
|
|
1679
1679
|
}
|
|
1680
1680
|
return 1;
|
|
1681
1681
|
}
|
|
1682
1682
|
if (ye = M, M.type === "begin")
|
|
1683
|
-
return
|
|
1683
|
+
return Un(M);
|
|
1684
1684
|
if (M.type === "illegal" && !L) {
|
|
1685
1685
|
const P = new Error('Illegal lexeme "' + k + '" for mode "' + (O.scope || "<unnamed>") + '"');
|
|
1686
1686
|
throw P.mode = O, P;
|
|
1687
1687
|
} else if (M.type === "end") {
|
|
1688
|
-
const P =
|
|
1689
|
-
if (P !==
|
|
1688
|
+
const P = Pn(M);
|
|
1689
|
+
if (P !== an)
|
|
1690
1690
|
return P;
|
|
1691
1691
|
}
|
|
1692
1692
|
if (M.type === "illegal" && k === "")
|
|
@@ -1695,27 +1695,27 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1695
1695
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1696
1696
|
return x += k, k.length;
|
|
1697
1697
|
}
|
|
1698
|
-
const
|
|
1699
|
-
if (!
|
|
1698
|
+
const Y = C(b);
|
|
1699
|
+
if (!Y)
|
|
1700
1700
|
throw se(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1701
|
-
const
|
|
1702
|
-
let Re = "", O = U ||
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1701
|
+
const Hn = Gt(Y);
|
|
1702
|
+
let Re = "", O = U || Hn;
|
|
1703
|
+
const Ze = {}, z = new i.__emitter(i);
|
|
1704
|
+
xn();
|
|
1705
1705
|
let x = "", we = 0, ie = 0, Le = 0, Oe = !1;
|
|
1706
1706
|
try {
|
|
1707
|
-
if (
|
|
1708
|
-
|
|
1707
|
+
if (Y.__emitTokens)
|
|
1708
|
+
Y.__emitTokens(w, z);
|
|
1709
1709
|
else {
|
|
1710
1710
|
for (O.matcher.considerAll(); ; ) {
|
|
1711
1711
|
Le++, Oe ? Oe = !1 : O.matcher.considerAll(), O.matcher.lastIndex = ie;
|
|
1712
1712
|
const y = O.matcher.exec(w);
|
|
1713
1713
|
if (!y)
|
|
1714
1714
|
break;
|
|
1715
|
-
const M = w.substring(ie, y.index), k =
|
|
1715
|
+
const M = w.substring(ie, y.index), k = je(M, y);
|
|
1716
1716
|
ie = y.index + k;
|
|
1717
1717
|
}
|
|
1718
|
-
|
|
1718
|
+
je(w.substring(ie));
|
|
1719
1719
|
}
|
|
1720
1720
|
return z.finalize(), Re = z.toHTML(), {
|
|
1721
1721
|
language: b,
|
|
@@ -1741,7 +1741,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1741
1741
|
},
|
|
1742
1742
|
_emitter: z
|
|
1743
1743
|
};
|
|
1744
|
-
if (
|
|
1744
|
+
if (d)
|
|
1745
1745
|
return {
|
|
1746
1746
|
language: b,
|
|
1747
1747
|
value: ke(w),
|
|
@@ -1754,7 +1754,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1754
1754
|
throw y;
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function u(b) {
|
|
1758
1758
|
const w = {
|
|
1759
1759
|
value: ke(b),
|
|
1760
1760
|
illegal: !1,
|
|
@@ -1766,24 +1766,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1766
1766
|
}
|
|
1767
1767
|
function h(b, w) {
|
|
1768
1768
|
w = w || i.languages || Object.keys(n);
|
|
1769
|
-
const L =
|
|
1769
|
+
const L = u(b), U = w.filter(C).filter(B).map(
|
|
1770
1770
|
(q) => c(q, b, !1)
|
|
1771
1771
|
);
|
|
1772
1772
|
U.unshift(L);
|
|
1773
|
-
const H = U.sort((q,
|
|
1774
|
-
if (q.relevance !==
|
|
1775
|
-
return
|
|
1776
|
-
if (q.language &&
|
|
1777
|
-
if (C(q.language).supersetOf ===
|
|
1773
|
+
const H = U.sort((q, V) => {
|
|
1774
|
+
if (q.relevance !== V.relevance)
|
|
1775
|
+
return V.relevance - q.relevance;
|
|
1776
|
+
if (q.language && V.language) {
|
|
1777
|
+
if (C(q.language).supersetOf === V.language)
|
|
1778
1778
|
return 1;
|
|
1779
|
-
if (C(
|
|
1779
|
+
if (C(V.language).supersetOf === q.language)
|
|
1780
1780
|
return -1;
|
|
1781
1781
|
}
|
|
1782
1782
|
return 0;
|
|
1783
|
-
}), [W,
|
|
1784
|
-
return
|
|
1783
|
+
}), [W, Z] = H, Ee = W;
|
|
1784
|
+
return Ee.secondBest = Z, Ee;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function g(b, w, L) {
|
|
1787
1787
|
const U = w && a[w] || L;
|
|
1788
1788
|
b.classList.add("hljs"), b.classList.add(`language-${U}`);
|
|
1789
1789
|
}
|
|
@@ -1800,13 +1800,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1800
1800
|
return;
|
|
1801
1801
|
}
|
|
1802
1802
|
if (b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
|
|
1803
|
-
throw new
|
|
1803
|
+
throw new qt(
|
|
1804
1804
|
"One of your code blocks includes unescaped HTML.",
|
|
1805
1805
|
b.innerHTML
|
|
1806
1806
|
);
|
|
1807
1807
|
w = b;
|
|
1808
1808
|
const U = w.textContent, H = L ? l(U, { language: L, ignoreIllegals: !0 }) : h(U);
|
|
1809
|
-
b.innerHTML = H.value, b.dataset.highlighted = "yes",
|
|
1809
|
+
b.innerHTML = H.value, b.dataset.highlighted = "yes", g(b, L, H.language), b.result = {
|
|
1810
1810
|
language: H.language,
|
|
1811
1811
|
// TODO: remove with version 11.0
|
|
1812
1812
|
re: H.relevance,
|
|
@@ -1817,24 +1817,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1817
1817
|
}), te("after:highlightElement", { el: b, result: H, text: U });
|
|
1818
1818
|
}
|
|
1819
1819
|
function _(b) {
|
|
1820
|
-
i =
|
|
1820
|
+
i = sn(i, b);
|
|
1821
1821
|
}
|
|
1822
1822
|
const v = () => {
|
|
1823
|
-
|
|
1823
|
+
A(), ce("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1824
1824
|
};
|
|
1825
|
-
function
|
|
1826
|
-
|
|
1825
|
+
function m() {
|
|
1826
|
+
A(), ce("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1827
1827
|
}
|
|
1828
|
-
let
|
|
1829
|
-
function
|
|
1828
|
+
let E = !1;
|
|
1829
|
+
function A() {
|
|
1830
1830
|
if (document.readyState === "loading") {
|
|
1831
|
-
|
|
1831
|
+
E = !0;
|
|
1832
1832
|
return;
|
|
1833
1833
|
}
|
|
1834
1834
|
document.querySelectorAll(i.cssSelector).forEach(p);
|
|
1835
1835
|
}
|
|
1836
1836
|
function D() {
|
|
1837
|
-
|
|
1837
|
+
E && A();
|
|
1838
1838
|
}
|
|
1839
1839
|
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", D, !1);
|
|
1840
1840
|
function S(b, w) {
|
|
@@ -1842,7 +1842,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1842
1842
|
try {
|
|
1843
1843
|
L = w(e);
|
|
1844
1844
|
} catch (U) {
|
|
1845
|
-
if (se("Language definition for '{}' could not be registered.".replace("{}", b)),
|
|
1845
|
+
if (se("Language definition for '{}' could not be registered.".replace("{}", b)), d)
|
|
1846
1846
|
se(U);
|
|
1847
1847
|
else
|
|
1848
1848
|
throw U;
|
|
@@ -1850,7 +1850,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1850
1850
|
}
|
|
1851
1851
|
L.name || (L.name = b), n[b] = L, L.rawDefinition = w.bind(null, e), L.aliases && I(L.aliases, { languageName: b });
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function N(b) {
|
|
1854
1854
|
delete n[b];
|
|
1855
1855
|
for (const w of Object.keys(a))
|
|
1856
1856
|
a[w] === b && delete a[w];
|
|
@@ -1866,11 +1866,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1866
1866
|
a[L.toLowerCase()] = w;
|
|
1867
1867
|
});
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function B(b) {
|
|
1870
1870
|
const w = C(b);
|
|
1871
1871
|
return w && !w.disableAutodetect;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function $(b) {
|
|
1874
1874
|
b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (w) => {
|
|
1875
1875
|
b["before:highlightBlock"](
|
|
1876
1876
|
Object.assign({ block: w.el }, w)
|
|
@@ -1882,62 +1882,62 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = b, U = w), L ===
|
|
|
1882
1882
|
});
|
|
1883
1883
|
}
|
|
1884
1884
|
function F(b) {
|
|
1885
|
-
|
|
1885
|
+
$(b), f.push(b);
|
|
1886
1886
|
}
|
|
1887
1887
|
function K(b) {
|
|
1888
|
-
const w =
|
|
1889
|
-
w !== -1 &&
|
|
1888
|
+
const w = f.indexOf(b);
|
|
1889
|
+
w !== -1 && f.splice(w, 1);
|
|
1890
1890
|
}
|
|
1891
1891
|
function te(b, w) {
|
|
1892
1892
|
const L = b;
|
|
1893
|
-
|
|
1893
|
+
f.forEach(function(U) {
|
|
1894
1894
|
U[L] && U[L](w);
|
|
1895
1895
|
});
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1898
|
-
return
|
|
1897
|
+
function le(b) {
|
|
1898
|
+
return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), p(b);
|
|
1899
1899
|
}
|
|
1900
1900
|
Object.assign(e, {
|
|
1901
1901
|
highlight: l,
|
|
1902
1902
|
highlightAuto: h,
|
|
1903
|
-
highlightAll:
|
|
1903
|
+
highlightAll: A,
|
|
1904
1904
|
highlightElement: p,
|
|
1905
1905
|
// TODO: Remove with v12 API
|
|
1906
|
-
highlightBlock:
|
|
1906
|
+
highlightBlock: le,
|
|
1907
1907
|
configure: _,
|
|
1908
1908
|
initHighlighting: v,
|
|
1909
|
-
initHighlightingOnLoad:
|
|
1909
|
+
initHighlightingOnLoad: m,
|
|
1910
1910
|
registerLanguage: S,
|
|
1911
|
-
unregisterLanguage:
|
|
1911
|
+
unregisterLanguage: N,
|
|
1912
1912
|
listLanguages: R,
|
|
1913
1913
|
getLanguage: C,
|
|
1914
1914
|
registerAliases: I,
|
|
1915
|
-
autoDetection:
|
|
1916
|
-
inherit:
|
|
1915
|
+
autoDetection: B,
|
|
1916
|
+
inherit: sn,
|
|
1917
1917
|
addPlugin: F,
|
|
1918
1918
|
removePlugin: K
|
|
1919
1919
|
}), e.debugMode = function() {
|
|
1920
|
-
|
|
1920
|
+
d = !1;
|
|
1921
1921
|
}, e.safeMode = function() {
|
|
1922
|
-
|
|
1923
|
-
}, e.versionString =
|
|
1922
|
+
d = !0;
|
|
1923
|
+
}, e.versionString = Wt, e.regex = {
|
|
1924
1924
|
concat: ae,
|
|
1925
|
-
lookahead:
|
|
1925
|
+
lookahead: En,
|
|
1926
1926
|
either: He,
|
|
1927
|
-
optional:
|
|
1928
|
-
anyNumberOfTimes:
|
|
1927
|
+
optional: ot,
|
|
1928
|
+
anyNumberOfTimes: at
|
|
1929
1929
|
};
|
|
1930
|
-
for (const b in
|
|
1931
|
-
typeof
|
|
1932
|
-
return Object.assign(e,
|
|
1933
|
-
},
|
|
1934
|
-
|
|
1935
|
-
var
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
const
|
|
1939
|
-
function
|
|
1940
|
-
const n = e.regex, a = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u),
|
|
1930
|
+
for (const b in Ae)
|
|
1931
|
+
typeof Ae[b] == "object" && vn(Ae[b]);
|
|
1932
|
+
return Object.assign(e, Ae), e;
|
|
1933
|
+
}, fe = Cn({});
|
|
1934
|
+
fe.newInstance = () => Cn({});
|
|
1935
|
+
var jt = fe;
|
|
1936
|
+
fe.HighlightJS = fe;
|
|
1937
|
+
fe.default = fe;
|
|
1938
|
+
const j = /* @__PURE__ */ nt(jt);
|
|
1939
|
+
function Zt(e) {
|
|
1940
|
+
const n = e.regex, a = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = /[\p{L}0-9._:-]+/u, d = {
|
|
1941
1941
|
className: "symbol",
|
|
1942
1942
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
1943
1943
|
}, t = {
|
|
@@ -1959,7 +1959,7 @@ function Qt(e) {
|
|
|
1959
1959
|
contains: [
|
|
1960
1960
|
{
|
|
1961
1961
|
className: "attr",
|
|
1962
|
-
begin:
|
|
1962
|
+
begin: f,
|
|
1963
1963
|
relevance: 0
|
|
1964
1964
|
},
|
|
1965
1965
|
{
|
|
@@ -1973,12 +1973,12 @@ function Qt(e) {
|
|
|
1973
1973
|
{
|
|
1974
1974
|
begin: /"/,
|
|
1975
1975
|
end: /"/,
|
|
1976
|
-
contains: [
|
|
1976
|
+
contains: [d]
|
|
1977
1977
|
},
|
|
1978
1978
|
{
|
|
1979
1979
|
begin: /'/,
|
|
1980
1980
|
end: /'/,
|
|
1981
|
-
contains: [
|
|
1981
|
+
contains: [d]
|
|
1982
1982
|
},
|
|
1983
1983
|
{ begin: /[^\s"'=<>`]+/ }
|
|
1984
1984
|
]
|
|
@@ -2043,7 +2043,7 @@ function Qt(e) {
|
|
|
2043
2043
|
end: /\]\]>/,
|
|
2044
2044
|
relevance: 10
|
|
2045
2045
|
},
|
|
2046
|
-
|
|
2046
|
+
d,
|
|
2047
2047
|
// xml processing instructions
|
|
2048
2048
|
{
|
|
2049
2049
|
className: "meta",
|
|
@@ -2152,7 +2152,7 @@ function Qt(e) {
|
|
|
2152
2152
|
]
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
const
|
|
2155
|
+
const on = "[A-Za-z$_][0-9A-Za-z$_]*", Vt = [
|
|
2156
2156
|
"as",
|
|
2157
2157
|
// for exports
|
|
2158
2158
|
"in",
|
|
@@ -2202,7 +2202,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2202
2202
|
"undefined",
|
|
2203
2203
|
"NaN",
|
|
2204
2204
|
"Infinity"
|
|
2205
|
-
],
|
|
2205
|
+
], Rn = [
|
|
2206
2206
|
// Fundamental objects
|
|
2207
2207
|
"Object",
|
|
2208
2208
|
"Function",
|
|
@@ -2252,7 +2252,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2252
2252
|
"Intl",
|
|
2253
2253
|
// WebAssembly
|
|
2254
2254
|
"WebAssembly"
|
|
2255
|
-
],
|
|
2255
|
+
], Ln = [
|
|
2256
2256
|
"Error",
|
|
2257
2257
|
"EvalError",
|
|
2258
2258
|
"InternalError",
|
|
@@ -2261,7 +2261,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2261
2261
|
"SyntaxError",
|
|
2262
2262
|
"TypeError",
|
|
2263
2263
|
"URIError"
|
|
2264
|
-
],
|
|
2264
|
+
], On = [
|
|
2265
2265
|
"setInterval",
|
|
2266
2266
|
"setTimeout",
|
|
2267
2267
|
"clearInterval",
|
|
@@ -2279,7 +2279,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2279
2279
|
"encodeURIComponent",
|
|
2280
2280
|
"escape",
|
|
2281
2281
|
"unescape"
|
|
2282
|
-
],
|
|
2282
|
+
], Xt = [
|
|
2283
2283
|
"arguments",
|
|
2284
2284
|
"this",
|
|
2285
2285
|
"super",
|
|
@@ -2291,16 +2291,16 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2291
2291
|
"module",
|
|
2292
2292
|
"global"
|
|
2293
2293
|
// Node.js
|
|
2294
|
-
],
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2294
|
+
], Jt = [].concat(
|
|
2295
|
+
On,
|
|
2296
|
+
Rn,
|
|
2297
|
+
Ln
|
|
2298
2298
|
);
|
|
2299
|
-
function
|
|
2299
|
+
function er(e) {
|
|
2300
2300
|
const n = e.regex, a = (w, { after: L }) => {
|
|
2301
2301
|
const U = "</" + w[0].slice(1);
|
|
2302
2302
|
return w.input.indexOf(U, L) !== -1;
|
|
2303
|
-
},
|
|
2303
|
+
}, f = on, d = {
|
|
2304
2304
|
begin: "<>",
|
|
2305
2305
|
end: "</>"
|
|
2306
2306
|
}, t = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
|
|
@@ -2325,22 +2325,22 @@ function Xt(e) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
H === ">" && (a(w, { after: U }) || L.ignoreMatch());
|
|
2327
2327
|
let W;
|
|
2328
|
-
const
|
|
2329
|
-
if (W =
|
|
2328
|
+
const Z = w.input.substring(U);
|
|
2329
|
+
if (W = Z.match(/^\s*=/)) {
|
|
2330
2330
|
L.ignoreMatch();
|
|
2331
2331
|
return;
|
|
2332
2332
|
}
|
|
2333
|
-
if ((W =
|
|
2333
|
+
if ((W = Z.match(/^\s+extends\s+/)) && W.index === 0) {
|
|
2334
2334
|
L.ignoreMatch();
|
|
2335
2335
|
return;
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
2338
|
}, i = {
|
|
2339
|
-
$pattern:
|
|
2340
|
-
keyword:
|
|
2339
|
+
$pattern: on,
|
|
2340
|
+
keyword: Vt,
|
|
2341
2341
|
literal: Yt,
|
|
2342
|
-
built_in:
|
|
2343
|
-
"variable.language":
|
|
2342
|
+
built_in: Jt,
|
|
2343
|
+
"variable.language": Xt
|
|
2344
2344
|
}, s = "[0-9](_?[0-9])*", o = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2345
2345
|
className: "number",
|
|
2346
2346
|
variants: [
|
|
@@ -2358,7 +2358,7 @@ function Xt(e) {
|
|
|
2358
2358
|
{ begin: "\\b0[0-7]+n?\\b" }
|
|
2359
2359
|
],
|
|
2360
2360
|
relevance: 0
|
|
2361
|
-
},
|
|
2361
|
+
}, u = {
|
|
2362
2362
|
className: "subst",
|
|
2363
2363
|
begin: "\\$\\{",
|
|
2364
2364
|
end: "\\}",
|
|
@@ -2373,11 +2373,11 @@ function Xt(e) {
|
|
|
2373
2373
|
returnEnd: !1,
|
|
2374
2374
|
contains: [
|
|
2375
2375
|
e.BACKSLASH_ESCAPE,
|
|
2376
|
-
|
|
2376
|
+
u
|
|
2377
2377
|
],
|
|
2378
2378
|
subLanguage: "xml"
|
|
2379
2379
|
}
|
|
2380
|
-
},
|
|
2380
|
+
}, g = {
|
|
2381
2381
|
begin: "css`",
|
|
2382
2382
|
end: "",
|
|
2383
2383
|
starts: {
|
|
@@ -2385,7 +2385,7 @@ function Xt(e) {
|
|
|
2385
2385
|
returnEnd: !1,
|
|
2386
2386
|
contains: [
|
|
2387
2387
|
e.BACKSLASH_ESCAPE,
|
|
2388
|
-
|
|
2388
|
+
u
|
|
2389
2389
|
],
|
|
2390
2390
|
subLanguage: "css"
|
|
2391
2391
|
}
|
|
@@ -2397,7 +2397,7 @@ function Xt(e) {
|
|
|
2397
2397
|
returnEnd: !1,
|
|
2398
2398
|
contains: [
|
|
2399
2399
|
e.BACKSLASH_ESCAPE,
|
|
2400
|
-
|
|
2400
|
+
u
|
|
2401
2401
|
],
|
|
2402
2402
|
subLanguage: "graphql"
|
|
2403
2403
|
}
|
|
@@ -2407,9 +2407,9 @@ function Xt(e) {
|
|
|
2407
2407
|
end: "`",
|
|
2408
2408
|
contains: [
|
|
2409
2409
|
e.BACKSLASH_ESCAPE,
|
|
2410
|
-
|
|
2410
|
+
u
|
|
2411
2411
|
]
|
|
2412
|
-
},
|
|
2412
|
+
}, m = {
|
|
2413
2413
|
className: "comment",
|
|
2414
2414
|
variants: [
|
|
2415
2415
|
e.COMMENT(
|
|
@@ -2436,7 +2436,7 @@ function Xt(e) {
|
|
|
2436
2436
|
},
|
|
2437
2437
|
{
|
|
2438
2438
|
className: "variable",
|
|
2439
|
-
begin:
|
|
2439
|
+
begin: f + "(?=\\s*(-)|$)",
|
|
2440
2440
|
endsParent: !0,
|
|
2441
2441
|
relevance: 0
|
|
2442
2442
|
},
|
|
@@ -2454,11 +2454,11 @@ function Xt(e) {
|
|
|
2454
2454
|
e.C_BLOCK_COMMENT_MODE,
|
|
2455
2455
|
e.C_LINE_COMMENT_MODE
|
|
2456
2456
|
]
|
|
2457
|
-
},
|
|
2457
|
+
}, E = [
|
|
2458
2458
|
e.APOS_STRING_MODE,
|
|
2459
2459
|
e.QUOTE_STRING_MODE,
|
|
2460
2460
|
h,
|
|
2461
|
-
|
|
2461
|
+
g,
|
|
2462
2462
|
p,
|
|
2463
2463
|
_,
|
|
2464
2464
|
// Skip numbers when they are part of a variable name
|
|
@@ -2468,7 +2468,7 @@ function Xt(e) {
|
|
|
2468
2468
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
2469
2469
|
// hljs.REGEXP_MODE
|
|
2470
2470
|
];
|
|
2471
|
-
|
|
2471
|
+
u.contains = E.concat({
|
|
2472
2472
|
// we need to pair up {} inside our subst to prevent
|
|
2473
2473
|
// it from ending too early by matching another }
|
|
2474
2474
|
begin: /\{/,
|
|
@@ -2476,15 +2476,15 @@ function Xt(e) {
|
|
|
2476
2476
|
keywords: i,
|
|
2477
2477
|
contains: [
|
|
2478
2478
|
"self"
|
|
2479
|
-
].concat(
|
|
2479
|
+
].concat(E)
|
|
2480
2480
|
});
|
|
2481
|
-
const
|
|
2481
|
+
const A = [].concat(m, u.contains), D = A.concat([
|
|
2482
2482
|
// eat recursive parens in sub expressions
|
|
2483
2483
|
{
|
|
2484
2484
|
begin: /\(/,
|
|
2485
2485
|
end: /\)/,
|
|
2486
2486
|
keywords: i,
|
|
2487
|
-
contains: ["self"].concat(
|
|
2487
|
+
contains: ["self"].concat(A)
|
|
2488
2488
|
}
|
|
2489
2489
|
]), S = {
|
|
2490
2490
|
className: "params",
|
|
@@ -2494,18 +2494,18 @@ function Xt(e) {
|
|
|
2494
2494
|
excludeEnd: !0,
|
|
2495
2495
|
keywords: i,
|
|
2496
2496
|
contains: D
|
|
2497
|
-
},
|
|
2497
|
+
}, N = {
|
|
2498
2498
|
variants: [
|
|
2499
2499
|
// class Car extends vehicle
|
|
2500
2500
|
{
|
|
2501
2501
|
match: [
|
|
2502
2502
|
/class/,
|
|
2503
2503
|
/\s+/,
|
|
2504
|
-
|
|
2504
|
+
f,
|
|
2505
2505
|
/\s+/,
|
|
2506
2506
|
/extends/,
|
|
2507
2507
|
/\s+/,
|
|
2508
|
-
n.concat(
|
|
2508
|
+
n.concat(f, "(", n.concat(/\./, f), ")*")
|
|
2509
2509
|
],
|
|
2510
2510
|
scope: {
|
|
2511
2511
|
1: "keyword",
|
|
@@ -2519,7 +2519,7 @@ function Xt(e) {
|
|
|
2519
2519
|
match: [
|
|
2520
2520
|
/class/,
|
|
2521
2521
|
/\s+/,
|
|
2522
|
-
|
|
2522
|
+
f
|
|
2523
2523
|
],
|
|
2524
2524
|
scope: {
|
|
2525
2525
|
1: "keyword",
|
|
@@ -2547,8 +2547,8 @@ function Xt(e) {
|
|
|
2547
2547
|
keywords: {
|
|
2548
2548
|
_: [
|
|
2549
2549
|
// se we still get relevance credit for JS library classes
|
|
2550
|
-
...
|
|
2551
|
-
...
|
|
2550
|
+
...Rn,
|
|
2551
|
+
...Ln
|
|
2552
2552
|
]
|
|
2553
2553
|
}
|
|
2554
2554
|
}, C = {
|
|
@@ -2562,7 +2562,7 @@ function Xt(e) {
|
|
|
2562
2562
|
match: [
|
|
2563
2563
|
/function/,
|
|
2564
2564
|
/\s+/,
|
|
2565
|
-
|
|
2565
|
+
f,
|
|
2566
2566
|
/(?=\s*\()/
|
|
2567
2567
|
]
|
|
2568
2568
|
},
|
|
@@ -2581,32 +2581,32 @@ function Xt(e) {
|
|
|
2581
2581
|
label: "func.def",
|
|
2582
2582
|
contains: [S],
|
|
2583
2583
|
illegal: /%/
|
|
2584
|
-
},
|
|
2584
|
+
}, B = {
|
|
2585
2585
|
relevance: 0,
|
|
2586
2586
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2587
2587
|
className: "variable.constant"
|
|
2588
2588
|
};
|
|
2589
|
-
function
|
|
2589
|
+
function $(w) {
|
|
2590
2590
|
return n.concat("(?!", w.join("|"), ")");
|
|
2591
2591
|
}
|
|
2592
2592
|
const F = {
|
|
2593
2593
|
match: n.concat(
|
|
2594
2594
|
/\b/,
|
|
2595
|
-
|
|
2596
|
-
...
|
|
2595
|
+
$([
|
|
2596
|
+
...On,
|
|
2597
2597
|
"super",
|
|
2598
2598
|
"import"
|
|
2599
2599
|
]),
|
|
2600
|
-
|
|
2600
|
+
f,
|
|
2601
2601
|
n.lookahead(/\(/)
|
|
2602
2602
|
),
|
|
2603
2603
|
className: "title.function",
|
|
2604
2604
|
relevance: 0
|
|
2605
2605
|
}, K = {
|
|
2606
2606
|
begin: n.concat(/\./, n.lookahead(
|
|
2607
|
-
n.concat(
|
|
2607
|
+
n.concat(f, /(?![0-9A-Za-z$_(])/)
|
|
2608
2608
|
)),
|
|
2609
|
-
end:
|
|
2609
|
+
end: f,
|
|
2610
2610
|
excludeBegin: !0,
|
|
2611
2611
|
keywords: "prototype",
|
|
2612
2612
|
className: "property",
|
|
@@ -2615,7 +2615,7 @@ function Xt(e) {
|
|
|
2615
2615
|
match: [
|
|
2616
2616
|
/get|set/,
|
|
2617
2617
|
/\s+/,
|
|
2618
|
-
|
|
2618
|
+
f,
|
|
2619
2619
|
/(?=\()/
|
|
2620
2620
|
],
|
|
2621
2621
|
className: {
|
|
@@ -2629,16 +2629,16 @@ function Xt(e) {
|
|
|
2629
2629
|
},
|
|
2630
2630
|
S
|
|
2631
2631
|
]
|
|
2632
|
-
},
|
|
2632
|
+
}, le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
|
|
2633
2633
|
match: [
|
|
2634
2634
|
/const|var|let/,
|
|
2635
2635
|
/\s+/,
|
|
2636
|
-
|
|
2636
|
+
f,
|
|
2637
2637
|
/\s*/,
|
|
2638
2638
|
/=\s*/,
|
|
2639
2639
|
/(async\s*)?/,
|
|
2640
2640
|
// async is optional
|
|
2641
|
-
n.lookahead(
|
|
2641
|
+
n.lookahead(le)
|
|
2642
2642
|
],
|
|
2643
2643
|
keywords: "async",
|
|
2644
2644
|
className: {
|
|
@@ -2666,17 +2666,17 @@ function Xt(e) {
|
|
|
2666
2666
|
e.APOS_STRING_MODE,
|
|
2667
2667
|
e.QUOTE_STRING_MODE,
|
|
2668
2668
|
h,
|
|
2669
|
-
|
|
2669
|
+
g,
|
|
2670
2670
|
p,
|
|
2671
2671
|
_,
|
|
2672
|
-
|
|
2672
|
+
m,
|
|
2673
2673
|
// Skip numbers when they are part of a variable name
|
|
2674
2674
|
{ match: /\$\d+/ },
|
|
2675
2675
|
c,
|
|
2676
2676
|
R,
|
|
2677
2677
|
{
|
|
2678
2678
|
className: "attr",
|
|
2679
|
-
begin:
|
|
2679
|
+
begin: f + n.lookahead(":"),
|
|
2680
2680
|
relevance: 0
|
|
2681
2681
|
},
|
|
2682
2682
|
b,
|
|
@@ -2686,14 +2686,14 @@ function Xt(e) {
|
|
|
2686
2686
|
keywords: "return throw case",
|
|
2687
2687
|
relevance: 0,
|
|
2688
2688
|
contains: [
|
|
2689
|
-
|
|
2689
|
+
m,
|
|
2690
2690
|
e.REGEXP_MODE,
|
|
2691
2691
|
{
|
|
2692
2692
|
className: "function",
|
|
2693
2693
|
// we have to count the parens to make sure we actually have the
|
|
2694
2694
|
// correct bounding ( ) before the =>. There could be any number of
|
|
2695
2695
|
// sub-expressions inside also surrounded by parens.
|
|
2696
|
-
begin:
|
|
2696
|
+
begin: le,
|
|
2697
2697
|
returnBegin: !0,
|
|
2698
2698
|
end: "\\s*=>",
|
|
2699
2699
|
contains: [
|
|
@@ -2733,7 +2733,7 @@ function Xt(e) {
|
|
|
2733
2733
|
{
|
|
2734
2734
|
// JSX
|
|
2735
2735
|
variants: [
|
|
2736
|
-
{ begin:
|
|
2736
|
+
{ begin: d.begin, end: d.end },
|
|
2737
2737
|
{ match: t },
|
|
2738
2738
|
{
|
|
2739
2739
|
begin: r.begin,
|
|
@@ -2771,7 +2771,7 @@ function Xt(e) {
|
|
|
2771
2771
|
label: "func.def",
|
|
2772
2772
|
contains: [
|
|
2773
2773
|
S,
|
|
2774
|
-
e.inherit(e.TITLE_MODE, { begin:
|
|
2774
|
+
e.inherit(e.TITLE_MODE, { begin: f, className: "title.function" })
|
|
2775
2775
|
]
|
|
2776
2776
|
},
|
|
2777
2777
|
// catch ... so it won't trigger the property rule below
|
|
@@ -2784,7 +2784,7 @@ function Xt(e) {
|
|
|
2784
2784
|
// .keyword()
|
|
2785
2785
|
// $keyword = x
|
|
2786
2786
|
{
|
|
2787
|
-
match: "\\$" +
|
|
2787
|
+
match: "\\$" + f,
|
|
2788
2788
|
relevance: 0
|
|
2789
2789
|
},
|
|
2790
2790
|
{
|
|
@@ -2793,8 +2793,8 @@ function Xt(e) {
|
|
|
2793
2793
|
contains: [S]
|
|
2794
2794
|
},
|
|
2795
2795
|
F,
|
|
2796
|
-
|
|
2797
|
-
|
|
2796
|
+
B,
|
|
2797
|
+
N,
|
|
2798
2798
|
te,
|
|
2799
2799
|
{
|
|
2800
2800
|
match: /\$[(.]/
|
|
@@ -2803,7 +2803,7 @@ function Xt(e) {
|
|
|
2803
2803
|
]
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function nr(e) {
|
|
2807
2807
|
const n = {
|
|
2808
2808
|
className: "attr",
|
|
2809
2809
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2812,24 +2812,24 @@ function Jt(e) {
|
|
|
2812
2812
|
match: /[{}[\],:]/,
|
|
2813
2813
|
className: "punctuation",
|
|
2814
2814
|
relevance: 0
|
|
2815
|
-
},
|
|
2815
|
+
}, f = [
|
|
2816
2816
|
"true",
|
|
2817
2817
|
"false",
|
|
2818
2818
|
"null"
|
|
2819
|
-
],
|
|
2819
|
+
], d = {
|
|
2820
2820
|
scope: "literal",
|
|
2821
|
-
beginKeywords:
|
|
2821
|
+
beginKeywords: f.join(" ")
|
|
2822
2822
|
};
|
|
2823
2823
|
return {
|
|
2824
2824
|
name: "JSON",
|
|
2825
2825
|
keywords: {
|
|
2826
|
-
literal:
|
|
2826
|
+
literal: f
|
|
2827
2827
|
},
|
|
2828
2828
|
contains: [
|
|
2829
2829
|
n,
|
|
2830
2830
|
a,
|
|
2831
2831
|
e.QUOTE_STRING_MODE,
|
|
2832
|
-
|
|
2832
|
+
d,
|
|
2833
2833
|
e.C_NUMBER_MODE,
|
|
2834
2834
|
e.C_LINE_COMMENT_MODE,
|
|
2835
2835
|
e.C_BLOCK_COMMENT_MODE
|
|
@@ -2837,8 +2837,8 @@ function Jt(e) {
|
|
|
2837
2837
|
illegal: "\\S"
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
function
|
|
2841
|
-
const n = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+",
|
|
2840
|
+
function tr(e) {
|
|
2841
|
+
const n = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+", f = {
|
|
2842
2842
|
className: "attr",
|
|
2843
2843
|
variants: [
|
|
2844
2844
|
{ begin: "\\w[\\w :\\/.-]*:(?=[ ]|$)" },
|
|
@@ -2851,7 +2851,7 @@ function er(e) {
|
|
|
2851
2851
|
begin: "'\\w[\\w :\\/.-]*':(?=[ ]|$)"
|
|
2852
2852
|
}
|
|
2853
2853
|
]
|
|
2854
|
-
},
|
|
2854
|
+
}, d = {
|
|
2855
2855
|
className: "template-variable",
|
|
2856
2856
|
variants: [
|
|
2857
2857
|
{
|
|
@@ -2881,7 +2881,7 @@ function er(e) {
|
|
|
2881
2881
|
],
|
|
2882
2882
|
contains: [
|
|
2883
2883
|
e.BACKSLASH_ESCAPE,
|
|
2884
|
-
|
|
2884
|
+
d
|
|
2885
2885
|
]
|
|
2886
2886
|
}, r = e.inherit(t, { variants: [
|
|
2887
2887
|
{
|
|
@@ -2896,7 +2896,7 @@ function er(e) {
|
|
|
2896
2896
|
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", l = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
|
|
2897
2897
|
className: "number",
|
|
2898
2898
|
begin: "\\b" + i + s + o + l + "\\b"
|
|
2899
|
-
},
|
|
2899
|
+
}, u = {
|
|
2900
2900
|
end: ",",
|
|
2901
2901
|
endsWithParent: !0,
|
|
2902
2902
|
excludeEnd: !0,
|
|
@@ -2905,17 +2905,17 @@ function er(e) {
|
|
|
2905
2905
|
}, h = {
|
|
2906
2906
|
begin: /\{/,
|
|
2907
2907
|
end: /\}/,
|
|
2908
|
-
contains: [
|
|
2908
|
+
contains: [u],
|
|
2909
2909
|
illegal: "\\n",
|
|
2910
2910
|
relevance: 0
|
|
2911
|
-
},
|
|
2911
|
+
}, g = {
|
|
2912
2912
|
begin: "\\[",
|
|
2913
2913
|
end: "\\]",
|
|
2914
|
-
contains: [
|
|
2914
|
+
contains: [u],
|
|
2915
2915
|
illegal: "\\n",
|
|
2916
2916
|
relevance: 0
|
|
2917
2917
|
}, p = [
|
|
2918
|
-
|
|
2918
|
+
f,
|
|
2919
2919
|
{
|
|
2920
2920
|
className: "meta",
|
|
2921
2921
|
begin: "^---\\s*$",
|
|
@@ -2991,17 +2991,17 @@ function er(e) {
|
|
|
2991
2991
|
relevance: 0
|
|
2992
2992
|
},
|
|
2993
2993
|
h,
|
|
2994
|
-
|
|
2994
|
+
g,
|
|
2995
2995
|
t
|
|
2996
2996
|
], _ = [...p];
|
|
2997
|
-
return _.pop(), _.push(r),
|
|
2997
|
+
return _.pop(), _.push(r), u.contains = _, {
|
|
2998
2998
|
name: "YAML",
|
|
2999
2999
|
case_insensitive: !0,
|
|
3000
3000
|
aliases: ["yml"],
|
|
3001
3001
|
contains: p
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function rr(e) {
|
|
3005
3005
|
return {
|
|
3006
3006
|
name: "Plain text",
|
|
3007
3007
|
aliases: [
|
|
@@ -3011,8 +3011,8 @@ function nr(e) {
|
|
|
3011
3011
|
disableAutodetect: !0
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3015
|
-
const n = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u,
|
|
3014
|
+
function ir(e) {
|
|
3015
|
+
const n = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u, f = [
|
|
3016
3016
|
"and",
|
|
3017
3017
|
"as",
|
|
3018
3018
|
"assert",
|
|
@@ -3049,7 +3049,7 @@ function tr(e) {
|
|
|
3049
3049
|
"yield"
|
|
3050
3050
|
], i = {
|
|
3051
3051
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
3052
|
-
keyword:
|
|
3052
|
+
keyword: f,
|
|
3053
3053
|
built_in: [
|
|
3054
3054
|
"__import__",
|
|
3055
3055
|
"abs",
|
|
@@ -3237,7 +3237,7 @@ function tr(e) {
|
|
|
3237
3237
|
e.APOS_STRING_MODE,
|
|
3238
3238
|
e.QUOTE_STRING_MODE
|
|
3239
3239
|
]
|
|
3240
|
-
},
|
|
3240
|
+
}, u = "[0-9](_?[0-9])*", h = `(\\b(${u}))?\\.(${u})|\\b(${u})\\.`, g = `\\b|${f.join("|")}`, p = {
|
|
3241
3241
|
className: "number",
|
|
3242
3242
|
relevance: 0,
|
|
3243
3243
|
variants: [
|
|
@@ -3252,7 +3252,7 @@ function tr(e) {
|
|
|
3252
3252
|
// because both MUST contain a decimal point and so cannot be confused with
|
|
3253
3253
|
// the interior part of an identifier
|
|
3254
3254
|
{
|
|
3255
|
-
begin: `(\\b(${
|
|
3255
|
+
begin: `(\\b(${u})|(${h}))[eE][+-]?(${u})[jJ]?(?=${g})`
|
|
3256
3256
|
},
|
|
3257
3257
|
{
|
|
3258
3258
|
begin: `(${h})[jJ]?`
|
|
@@ -3264,21 +3264,21 @@ function tr(e) {
|
|
|
3264
3264
|
// decinteger is optionally imaginary
|
|
3265
3265
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3266
3266
|
{
|
|
3267
|
-
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${
|
|
3267
|
+
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`
|
|
3268
3268
|
},
|
|
3269
3269
|
{
|
|
3270
|
-
begin: `\\b0[bB](_?[01])+[lL]?(?=${
|
|
3270
|
+
begin: `\\b0[bB](_?[01])+[lL]?(?=${g})`
|
|
3271
3271
|
},
|
|
3272
3272
|
{
|
|
3273
|
-
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${
|
|
3273
|
+
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${g})`
|
|
3274
3274
|
},
|
|
3275
3275
|
{
|
|
3276
|
-
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${
|
|
3276
|
+
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`
|
|
3277
3277
|
},
|
|
3278
3278
|
// imagnumber (digitpart-based)
|
|
3279
3279
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3280
3280
|
{
|
|
3281
|
-
begin: `\\b(${
|
|
3281
|
+
begin: `\\b(${u})[jJ](?=${g})`
|
|
3282
3282
|
}
|
|
3283
3283
|
]
|
|
3284
3284
|
}, _ = {
|
|
@@ -3405,18 +3405,18 @@ function tr(e) {
|
|
|
3405
3405
|
]
|
|
3406
3406
|
};
|
|
3407
3407
|
}
|
|
3408
|
-
var
|
|
3408
|
+
var ue = "[0-9](_*[0-9])*", Ne = `\\.(${ue})`, Me = "[0-9a-fA-F](_*[0-9a-fA-F])*", ln = {
|
|
3409
3409
|
className: "number",
|
|
3410
3410
|
variants: [
|
|
3411
3411
|
// DecimalFloatingPointLiteral
|
|
3412
3412
|
// including ExponentPart
|
|
3413
|
-
{ begin: `(\\b(${
|
|
3413
|
+
{ begin: `(\\b(${ue})((${Ne})|\\.)?|(${Ne}))[eE][+-]?(${ue})[fFdD]?\\b` },
|
|
3414
3414
|
// excluding ExponentPart
|
|
3415
|
-
{ begin: `\\b(${
|
|
3416
|
-
{ begin: `(${
|
|
3417
|
-
{ begin: `\\b(${
|
|
3415
|
+
{ begin: `\\b(${ue})((${Ne})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
3416
|
+
{ begin: `(${Ne})[fFdD]?\\b` },
|
|
3417
|
+
{ begin: `\\b(${ue})[fFdD]\\b` },
|
|
3418
3418
|
// HexadecimalFloatingPointLiteral
|
|
3419
|
-
{ begin: `\\b0[xX]((${Me})\\.?|(${Me})?\\.(${Me}))[pP][+-]?(${
|
|
3419
|
+
{ begin: `\\b0[xX]((${Me})\\.?|(${Me})?\\.(${Me}))[pP][+-]?(${ue})[fFdD]?\\b` },
|
|
3420
3420
|
// DecimalIntegerLiteral
|
|
3421
3421
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
3422
3422
|
// HexIntegerLiteral
|
|
@@ -3428,11 +3428,11 @@ var ce = "[0-9](_*[0-9])*", Ae = `\\.(${ce})`, Me = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3428
3428
|
],
|
|
3429
3429
|
relevance: 0
|
|
3430
3430
|
};
|
|
3431
|
-
function
|
|
3432
|
-
return a === -1 ? "" : e.replace(n, (
|
|
3431
|
+
function In(e, n, a) {
|
|
3432
|
+
return a === -1 ? "" : e.replace(n, (f) => In(e, n, a - 1));
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3435
|
-
const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",
|
|
3434
|
+
function sr(e) {
|
|
3435
|
+
const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", f = a + In("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
|
|
3436
3436
|
keyword: [
|
|
3437
3437
|
"synchronized",
|
|
3438
3438
|
"abstract",
|
|
@@ -3610,7 +3610,7 @@ function rr(e) {
|
|
|
3610
3610
|
},
|
|
3611
3611
|
{
|
|
3612
3612
|
begin: [
|
|
3613
|
-
"(?:" +
|
|
3613
|
+
"(?:" + f + "\\s+)",
|
|
3614
3614
|
e.UNDERSCORE_IDENT_RE,
|
|
3615
3615
|
/\s*(?=\()/
|
|
3616
3616
|
],
|
|
@@ -3627,7 +3627,7 @@ function rr(e) {
|
|
|
3627
3627
|
o,
|
|
3628
3628
|
e.APOS_STRING_MODE,
|
|
3629
3629
|
e.QUOTE_STRING_MODE,
|
|
3630
|
-
|
|
3630
|
+
ln,
|
|
3631
3631
|
e.C_BLOCK_COMMENT_MODE
|
|
3632
3632
|
]
|
|
3633
3633
|
},
|
|
@@ -3635,13 +3635,13 @@ function rr(e) {
|
|
|
3635
3635
|
e.C_BLOCK_COMMENT_MODE
|
|
3636
3636
|
]
|
|
3637
3637
|
},
|
|
3638
|
-
|
|
3638
|
+
ln,
|
|
3639
3639
|
o
|
|
3640
3640
|
]
|
|
3641
3641
|
};
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3644
|
-
const n = e.regex, a = {},
|
|
3643
|
+
function ar(e) {
|
|
3644
|
+
const n = e.regex, a = {}, f = {
|
|
3645
3645
|
begin: /\$\{/,
|
|
3646
3646
|
end: /\}/,
|
|
3647
3647
|
contains: [
|
|
@@ -3662,10 +3662,10 @@ function ir(e) {
|
|
|
3662
3662
|
// Perl at all like $ident$, @ident@, etc.
|
|
3663
3663
|
"(?![\\w\\d])(?![$])"
|
|
3664
3664
|
) },
|
|
3665
|
-
|
|
3665
|
+
f
|
|
3666
3666
|
]
|
|
3667
3667
|
});
|
|
3668
|
-
const
|
|
3668
|
+
const d = {
|
|
3669
3669
|
className: "subst",
|
|
3670
3670
|
begin: /\$\(/,
|
|
3671
3671
|
end: /\)/,
|
|
@@ -3686,10 +3686,10 @@ function ir(e) {
|
|
|
3686
3686
|
contains: [
|
|
3687
3687
|
e.BACKSLASH_ESCAPE,
|
|
3688
3688
|
a,
|
|
3689
|
-
|
|
3689
|
+
d
|
|
3690
3690
|
]
|
|
3691
3691
|
};
|
|
3692
|
-
|
|
3692
|
+
d.contains.push(r);
|
|
3693
3693
|
const i = {
|
|
3694
3694
|
match: /\\"/
|
|
3695
3695
|
}, s = {
|
|
@@ -3719,7 +3719,7 @@ function ir(e) {
|
|
|
3719
3719
|
"tcsh",
|
|
3720
3720
|
"dash",
|
|
3721
3721
|
"scsh"
|
|
3722
|
-
],
|
|
3722
|
+
], u = e.SHEBANG({
|
|
3723
3723
|
binary: `(${c.join("|")})`,
|
|
3724
3724
|
relevance: 10
|
|
3725
3725
|
}), h = {
|
|
@@ -3728,7 +3728,7 @@ function ir(e) {
|
|
|
3728
3728
|
returnBegin: !0,
|
|
3729
3729
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
3730
3730
|
relevance: 0
|
|
3731
|
-
},
|
|
3731
|
+
}, g = [
|
|
3732
3732
|
"if",
|
|
3733
3733
|
"then",
|
|
3734
3734
|
"else",
|
|
@@ -3766,7 +3766,7 @@ function ir(e) {
|
|
|
3766
3766
|
"trap",
|
|
3767
3767
|
"umask",
|
|
3768
3768
|
"unset"
|
|
3769
|
-
],
|
|
3769
|
+
], m = [
|
|
3770
3770
|
"alias",
|
|
3771
3771
|
"bind",
|
|
3772
3772
|
"builtin",
|
|
@@ -3788,7 +3788,7 @@ function ir(e) {
|
|
|
3788
3788
|
"typeset",
|
|
3789
3789
|
"ulimit",
|
|
3790
3790
|
"unalias"
|
|
3791
|
-
],
|
|
3791
|
+
], E = [
|
|
3792
3792
|
"autoload",
|
|
3793
3793
|
"bg",
|
|
3794
3794
|
"bindkey",
|
|
@@ -3857,7 +3857,7 @@ function ir(e) {
|
|
|
3857
3857
|
"zsocket",
|
|
3858
3858
|
"zstyle",
|
|
3859
3859
|
"ztcp"
|
|
3860
|
-
],
|
|
3860
|
+
], A = [
|
|
3861
3861
|
"chcon",
|
|
3862
3862
|
"chgrp",
|
|
3863
3863
|
"chown",
|
|
@@ -3967,20 +3967,20 @@ function ir(e) {
|
|
|
3967
3967
|
aliases: ["sh"],
|
|
3968
3968
|
keywords: {
|
|
3969
3969
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
3970
|
-
keyword:
|
|
3970
|
+
keyword: g,
|
|
3971
3971
|
literal: p,
|
|
3972
3972
|
built_in: [
|
|
3973
3973
|
...v,
|
|
3974
|
-
...
|
|
3974
|
+
...m,
|
|
3975
3975
|
// Shell modifiers
|
|
3976
3976
|
"set",
|
|
3977
3977
|
"shopt",
|
|
3978
|
-
...
|
|
3979
|
-
...
|
|
3978
|
+
...E,
|
|
3979
|
+
...A
|
|
3980
3980
|
]
|
|
3981
3981
|
},
|
|
3982
3982
|
contains: [
|
|
3983
|
-
|
|
3983
|
+
u,
|
|
3984
3984
|
// to catch known shells and boost relevancy
|
|
3985
3985
|
e.SHEBANG(),
|
|
3986
3986
|
// to catch unknown shells but still highlight the shebang
|
|
@@ -3997,8 +3997,8 @@ function ir(e) {
|
|
|
3997
3997
|
]
|
|
3998
3998
|
};
|
|
3999
3999
|
}
|
|
4000
|
-
function
|
|
4001
|
-
const n = e.regex, a = e.COMMENT("--", "$"),
|
|
4000
|
+
function or(e) {
|
|
4001
|
+
const n = e.regex, a = e.COMMENT("--", "$"), f = {
|
|
4002
4002
|
className: "string",
|
|
4003
4003
|
variants: [
|
|
4004
4004
|
{
|
|
@@ -4007,7 +4007,7 @@ function sr(e) {
|
|
|
4007
4007
|
contains: [{ begin: /''/ }]
|
|
4008
4008
|
}
|
|
4009
4009
|
]
|
|
4010
|
-
},
|
|
4010
|
+
}, d = {
|
|
4011
4011
|
begin: /"/,
|
|
4012
4012
|
end: /"/,
|
|
4013
4013
|
contains: [{ begin: /""/ }]
|
|
@@ -4529,7 +4529,7 @@ function sr(e) {
|
|
|
4529
4529
|
"localtime",
|
|
4530
4530
|
"current_timestamp",
|
|
4531
4531
|
"localtimestamp"
|
|
4532
|
-
],
|
|
4532
|
+
], u = [
|
|
4533
4533
|
"create table",
|
|
4534
4534
|
"insert into",
|
|
4535
4535
|
"primary key",
|
|
@@ -4546,10 +4546,10 @@ function sr(e) {
|
|
|
4546
4546
|
"nulls last",
|
|
4547
4547
|
"depth first",
|
|
4548
4548
|
"breadth first"
|
|
4549
|
-
], h = l,
|
|
4549
|
+
], h = l, g = [
|
|
4550
4550
|
...o,
|
|
4551
4551
|
...s
|
|
4552
|
-
].filter((
|
|
4552
|
+
].filter((E) => !l.includes(E)), p = {
|
|
4553
4553
|
className: "variable",
|
|
4554
4554
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4555
4555
|
}, _ = {
|
|
@@ -4561,12 +4561,12 @@ function sr(e) {
|
|
|
4561
4561
|
relevance: 0,
|
|
4562
4562
|
keywords: { built_in: h }
|
|
4563
4563
|
};
|
|
4564
|
-
function E
|
|
4565
|
-
exceptions:
|
|
4564
|
+
function m(E, {
|
|
4565
|
+
exceptions: A,
|
|
4566
4566
|
when: D
|
|
4567
4567
|
} = {}) {
|
|
4568
4568
|
const S = D;
|
|
4569
|
-
return
|
|
4569
|
+
return A = A || [], E.map((N) => N.match(/\|\d+$/) || A.includes(N) ? N : S(N) ? `${N}|0` : N);
|
|
4570
4570
|
}
|
|
4571
4571
|
return {
|
|
4572
4572
|
name: "SQL",
|
|
@@ -4575,18 +4575,18 @@ function sr(e) {
|
|
|
4575
4575
|
illegal: /[{}]|<\//,
|
|
4576
4576
|
keywords: {
|
|
4577
4577
|
$pattern: /\b[\w\.]+/,
|
|
4578
|
-
keyword:
|
|
4578
|
+
keyword: m(g, { when: (E) => E.length < 3 }),
|
|
4579
4579
|
literal: t,
|
|
4580
4580
|
type: i,
|
|
4581
4581
|
built_in: c
|
|
4582
4582
|
},
|
|
4583
4583
|
contains: [
|
|
4584
4584
|
{
|
|
4585
|
-
begin: n.either(...
|
|
4585
|
+
begin: n.either(...u),
|
|
4586
4586
|
relevance: 0,
|
|
4587
4587
|
keywords: {
|
|
4588
4588
|
$pattern: /[\w\.]+/,
|
|
4589
|
-
keyword:
|
|
4589
|
+
keyword: g.concat(u),
|
|
4590
4590
|
literal: t,
|
|
4591
4591
|
type: i
|
|
4592
4592
|
}
|
|
@@ -4597,8 +4597,8 @@ function sr(e) {
|
|
|
4597
4597
|
},
|
|
4598
4598
|
v,
|
|
4599
4599
|
p,
|
|
4600
|
-
|
|
4601
|
-
|
|
4600
|
+
f,
|
|
4601
|
+
d,
|
|
4602
4602
|
e.C_NUMBER_MODE,
|
|
4603
4603
|
e.C_BLOCK_COMMENT_MODE,
|
|
4604
4604
|
a,
|
|
@@ -4606,27 +4606,27 @@ function sr(e) {
|
|
|
4606
4606
|
]
|
|
4607
4607
|
};
|
|
4608
4608
|
}
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4609
|
+
j.registerLanguage("xml", Zt);
|
|
4610
|
+
j.registerLanguage("javascript", er);
|
|
4611
|
+
j.registerLanguage("json", nr);
|
|
4612
|
+
j.registerLanguage("yaml", tr);
|
|
4613
|
+
j.registerLanguage("plaintext", rr);
|
|
4614
|
+
j.registerLanguage("python", ir);
|
|
4615
|
+
j.registerLanguage("java", sr);
|
|
4616
|
+
j.registerLanguage("bash", ar);
|
|
4617
|
+
j.registerLanguage("sql", or);
|
|
4618
4618
|
var T = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(T || {});
|
|
4619
|
-
const J = "<code-diff-modified>", ee = "</code-diff-modified>",
|
|
4620
|
-
function
|
|
4619
|
+
const J = "<code-diff-modified>", ee = "</code-diff-modified>", lr = J.replace("<", "<").replace(">", ">"), cr = ee.replace("<", "<").replace(">", ">");
|
|
4620
|
+
function ge(e) {
|
|
4621
4621
|
return e === void 0 ? T.EQUAL : e.added ? T.ADD : e.removed ? T.DELETE : T.EQUAL;
|
|
4622
4622
|
}
|
|
4623
4623
|
function De(e, n, a = "word") {
|
|
4624
|
-
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (a === "char" ?
|
|
4625
|
-
(
|
|
4624
|
+
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (a === "char" ? Zn : Yn)(e, n).filter((d) => ge(d) !== T.DELETE).map(
|
|
4625
|
+
(d) => ge(d) === T.ADD ? `${J}${d.value}${ee}` : d.value
|
|
4626
4626
|
).join("");
|
|
4627
4627
|
}
|
|
4628
|
-
function
|
|
4629
|
-
const a = new Ie.diff_match_patch(),
|
|
4628
|
+
function kn(e, n) {
|
|
4629
|
+
const a = new Ie.diff_match_patch(), f = a.diff_linesToChars_(e, n), d = f.chars1, t = f.chars2, r = f.lineArray, i = a.diff_main(d, t, !1);
|
|
4630
4630
|
return a.diff_charsToLines_(i, r), i.map((s) => {
|
|
4631
4631
|
const [o, l] = s;
|
|
4632
4632
|
return {
|
|
@@ -4640,10 +4640,10 @@ function Ln(e, n) {
|
|
|
4640
4640
|
}
|
|
4641
4641
|
function Q(e, n) {
|
|
4642
4642
|
if (!n.match(new RegExp(`(${J}|${ee})`, "g")))
|
|
4643
|
-
return
|
|
4644
|
-
let
|
|
4645
|
-
const
|
|
4646
|
-
t.innerHTML =
|
|
4643
|
+
return j.highlight(n, { language: e }).value;
|
|
4644
|
+
let f = n;
|
|
4645
|
+
const d = n.replace(new RegExp(`(${J}|${ee})`, "g"), ""), t = document.createElement("div");
|
|
4646
|
+
t.innerHTML = j.highlight(d, { language: e }).value;
|
|
4647
4647
|
let r = !1;
|
|
4648
4648
|
const i = (s) => {
|
|
4649
4649
|
s.childNodes.forEach((o) => {
|
|
@@ -4652,36 +4652,36 @@ function Q(e, n) {
|
|
|
4652
4652
|
return;
|
|
4653
4653
|
let l = o.textContent, c = "";
|
|
4654
4654
|
for (r && (c = c + J); l.length; ) {
|
|
4655
|
-
if (
|
|
4656
|
-
|
|
4655
|
+
if (f.startsWith(J)) {
|
|
4656
|
+
f = f.slice(J.length), c = c + J, r = !0;
|
|
4657
4657
|
continue;
|
|
4658
4658
|
}
|
|
4659
|
-
if (
|
|
4660
|
-
|
|
4659
|
+
if (f.startsWith(ee)) {
|
|
4660
|
+
f = f.slice(ee.length), c = c + ee, r = !1;
|
|
4661
4661
|
continue;
|
|
4662
4662
|
}
|
|
4663
|
-
const
|
|
4664
|
-
c = c +
|
|
4663
|
+
const u = f.match(new RegExp(`(${J}|${ee})`)), h = u && u.index ? u.index : f.length, g = Math.min(h, l.length);
|
|
4664
|
+
c = c + f.substring(0, g), f = f.slice(g), l = l.slice(g);
|
|
4665
4665
|
}
|
|
4666
4666
|
r && (c = c + ee), o.textContent = c;
|
|
4667
4667
|
}
|
|
4668
4668
|
});
|
|
4669
4669
|
};
|
|
4670
|
-
return i(t), t.innerHTML.replace(new RegExp(
|
|
4670
|
+
return i(t), t.innerHTML.replace(new RegExp(lr, "g"), '<span class="x">').replace(new RegExp(cr, "g"), "</span>");
|
|
4671
4671
|
}
|
|
4672
|
-
function
|
|
4673
|
-
const a = (s, o) => (s.match(new RegExp(o, "g")) || []).length,
|
|
4674
|
-
let
|
|
4672
|
+
function $n(e, n) {
|
|
4673
|
+
const a = (s, o) => (s.match(new RegExp(o, "g")) || []).length, f = (s) => s.filter((o) => n == null ? void 0 : n.test(o)).length;
|
|
4674
|
+
let d = 0, t = 0, r = 0, i = 0;
|
|
4675
4675
|
for (const s of e) {
|
|
4676
4676
|
if (s.added) {
|
|
4677
|
-
const o =
|
|
4677
|
+
const o = f(s.value.trim().split(`
|
|
4678
4678
|
`));
|
|
4679
|
-
|
|
4679
|
+
d += a(s.value.trim(), `
|
|
4680
4680
|
`) + 1 - o, r += o;
|
|
4681
4681
|
continue;
|
|
4682
4682
|
}
|
|
4683
4683
|
if (s.removed) {
|
|
4684
|
-
const o =
|
|
4684
|
+
const o = f(s.value.trim().split(`
|
|
4685
4685
|
`));
|
|
4686
4686
|
t += a(s.value.trim(), `
|
|
4687
4687
|
`) + 1 - o, i += o;
|
|
@@ -4689,155 +4689,155 @@ function On(e, n) {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
4691
|
return {
|
|
4692
|
-
additionsNum:
|
|
4692
|
+
additionsNum: d,
|
|
4693
4693
|
deletionsNum: t,
|
|
4694
4694
|
ignoreAdditionsNum: r,
|
|
4695
4695
|
ignoreDeletionsNum: i
|
|
4696
4696
|
};
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4699
|
-
const i = () => ({ type: T.EMPTY }), s = (
|
|
4700
|
-
let c = 0,
|
|
4701
|
-
const
|
|
4702
|
-
changes:
|
|
4698
|
+
function ur(e, n, a = "plaintext", f = "word", d = !1, t = 10, r) {
|
|
4699
|
+
const i = () => ({ type: T.EMPTY }), s = (m, E, A) => ({ type: m, num: E, code: A }), o = kn(e, n), l = r ? new RegExp(r) : void 0;
|
|
4700
|
+
let c = 0, u = 0, h = !1;
|
|
4701
|
+
const g = [], p = {
|
|
4702
|
+
changes: g,
|
|
4703
4703
|
collector: [],
|
|
4704
|
-
stat:
|
|
4704
|
+
stat: $n(o, l)
|
|
4705
4705
|
};
|
|
4706
|
-
for (let
|
|
4706
|
+
for (let m = 0; m < o.length; m++) {
|
|
4707
4707
|
if (h) {
|
|
4708
4708
|
h = !1;
|
|
4709
4709
|
continue;
|
|
4710
4710
|
}
|
|
4711
|
-
const [
|
|
4711
|
+
const [E, A] = [o[m], o[m + 1]], [D, S] = [ge(E), ge(A)], N = E.value.replace(/\n$/, "").split(`
|
|
4712
4712
|
`);
|
|
4713
|
-
if (
|
|
4714
|
-
for (const C of
|
|
4715
|
-
let I = i(),
|
|
4716
|
-
const
|
|
4717
|
-
D === T.EQUAL && (c++,
|
|
4713
|
+
if (A === void 0) {
|
|
4714
|
+
for (const C of N) {
|
|
4715
|
+
let I = i(), B = i();
|
|
4716
|
+
const $ = Q(a, C);
|
|
4717
|
+
D === T.EQUAL && (c++, u++, I = s(T.EQUAL, c, $), B = s(T.EQUAL, u, $)), D === T.DELETE && (c++, I = s(T.DELETE, c, $), B = i()), D === T.ADD && (u++, I = i(), B = s(T.ADD, u, $)), g.push({ left: I, right: B });
|
|
4718
4718
|
}
|
|
4719
4719
|
break;
|
|
4720
4720
|
}
|
|
4721
4721
|
if (D === T.EQUAL)
|
|
4722
|
-
for (const C of
|
|
4723
|
-
c++,
|
|
4722
|
+
for (const C of N) {
|
|
4723
|
+
c++, u++;
|
|
4724
4724
|
const I = Q(a, C);
|
|
4725
|
-
|
|
4725
|
+
g.push({
|
|
4726
4726
|
left: s(T.EQUAL, c, I),
|
|
4727
|
-
right: s(T.EQUAL,
|
|
4727
|
+
right: s(T.EQUAL, u, I)
|
|
4728
4728
|
});
|
|
4729
4729
|
}
|
|
4730
|
-
const R =
|
|
4730
|
+
const R = A.value.replace(/\n$/, "").split(`
|
|
4731
4731
|
`);
|
|
4732
4732
|
if (D === T.DELETE) {
|
|
4733
4733
|
if (S === T.EQUAL)
|
|
4734
|
-
for (const C of
|
|
4735
|
-
c++,
|
|
4734
|
+
for (const C of N)
|
|
4735
|
+
c++, g.push({
|
|
4736
4736
|
left: s(T.DELETE, c, Q(a, C)),
|
|
4737
4737
|
right: i()
|
|
4738
4738
|
});
|
|
4739
4739
|
if (S === T.ADD) {
|
|
4740
4740
|
h = !0;
|
|
4741
|
-
const C = Math.max(
|
|
4741
|
+
const C = Math.max(E.count, A.count);
|
|
4742
4742
|
for (let I = 0; I < C; I++) {
|
|
4743
|
-
I <
|
|
4744
|
-
const [
|
|
4745
|
-
|
|
4743
|
+
I < E.count && c++, I < A.count && u++;
|
|
4744
|
+
const [B, $] = [N[I], R[I]], F = d || N.length === R.length, K = F ? De($, B, f) : B, te = F ? De(B, $, f) : $, le = l != null && l.test(B) ? T.EQUAL : T.DELETE, b = l != null && l.test($) ? T.EQUAL : T.ADD, w = I < E.count ? s(le, c, Q(a, K)) : i(), L = I < A.count ? s(b, u, Q(a, te)) : i();
|
|
4745
|
+
g.push({ left: w, right: L });
|
|
4746
4746
|
}
|
|
4747
4747
|
}
|
|
4748
4748
|
}
|
|
4749
4749
|
if (D === T.ADD)
|
|
4750
|
-
for (const C of
|
|
4751
|
-
|
|
4750
|
+
for (const C of N)
|
|
4751
|
+
u++, g.push({
|
|
4752
4752
|
left: i(),
|
|
4753
|
-
right: s(T.ADD,
|
|
4753
|
+
right: s(T.ADD, u, Q(a, C))
|
|
4754
4754
|
});
|
|
4755
4755
|
}
|
|
4756
4756
|
if (e === n) {
|
|
4757
|
-
for (let
|
|
4758
|
-
|
|
4757
|
+
for (let m = 0; m < g.length; m++)
|
|
4758
|
+
g[m].fold = !1;
|
|
4759
4759
|
return p;
|
|
4760
4760
|
}
|
|
4761
|
-
for (let
|
|
4762
|
-
const
|
|
4763
|
-
if (
|
|
4764
|
-
const [
|
|
4765
|
-
for (let S =
|
|
4766
|
-
|
|
4761
|
+
for (let m = 0; m < g.length; m++) {
|
|
4762
|
+
const E = g[m];
|
|
4763
|
+
if (E.left.type === T.DELETE || E.right.type === T.ADD) {
|
|
4764
|
+
const [A, D] = [Math.max(m - t, 0), Math.min(m + t + 1, g.length)];
|
|
4765
|
+
for (let S = A; S < D; S++)
|
|
4766
|
+
g[S].fold = !1;
|
|
4767
4767
|
}
|
|
4768
|
-
|
|
4768
|
+
E.fold === void 0 && (E.fold = !0);
|
|
4769
4769
|
}
|
|
4770
4770
|
const _ = [];
|
|
4771
4771
|
let v = [];
|
|
4772
|
-
for (let
|
|
4773
|
-
const
|
|
4774
|
-
if (
|
|
4772
|
+
for (let m = 0; m < g.length; m++) {
|
|
4773
|
+
const E = g[m];
|
|
4774
|
+
if (E.fold === !1) {
|
|
4775
4775
|
v.length && (v[0].hideIndex = p.collector.length, p.collector.push({
|
|
4776
4776
|
lines: v,
|
|
4777
4777
|
fold: !0
|
|
4778
|
-
}), v = []), _.push(
|
|
4778
|
+
}), v = []), _.push(E);
|
|
4779
4779
|
continue;
|
|
4780
4780
|
}
|
|
4781
|
-
|
|
4781
|
+
E.hide = !0, v.push(E), _.push(E);
|
|
4782
4782
|
}
|
|
4783
4783
|
return v.length && (v[0].hideIndex = p.collector.length, p.collector.push({
|
|
4784
4784
|
lines: v,
|
|
4785
4785
|
fold: !0
|
|
4786
4786
|
}), v = []), p.changes = _, p;
|
|
4787
4787
|
}
|
|
4788
|
-
function
|
|
4789
|
-
const i =
|
|
4788
|
+
function fr(e, n, a = "plaintext", f = "word", d = !1, t = 10, r) {
|
|
4789
|
+
const i = kn(e, n), s = r ? new RegExp(r) : void 0;
|
|
4790
4790
|
let o = 0, l = 0, c = !1;
|
|
4791
|
-
const
|
|
4792
|
-
changes:
|
|
4791
|
+
const u = [], h = {
|
|
4792
|
+
changes: u,
|
|
4793
4793
|
collector: [],
|
|
4794
|
-
stat:
|
|
4794
|
+
stat: $n(i, s)
|
|
4795
4795
|
};
|
|
4796
4796
|
for (let _ = 0; _ < i.length; _++) {
|
|
4797
4797
|
if (c) {
|
|
4798
4798
|
c = !1;
|
|
4799
4799
|
continue;
|
|
4800
4800
|
}
|
|
4801
|
-
const [v,
|
|
4801
|
+
const [v, m] = [i[_], i[_ + 1]], [E, A] = [ge(v), ge(m)], D = v.value.replace(/\n$/, "").split(`
|
|
4802
4802
|
`);
|
|
4803
|
-
if (
|
|
4804
|
-
for (const
|
|
4805
|
-
|
|
4806
|
-
const R = Q(a,
|
|
4807
|
-
|
|
4808
|
-
type:
|
|
4803
|
+
if (m === void 0) {
|
|
4804
|
+
for (const N of D) {
|
|
4805
|
+
E === T.EQUAL && (o++, l++), E === T.DELETE && o++, E === T.ADD && l++;
|
|
4806
|
+
const R = Q(a, N);
|
|
4807
|
+
u.push({
|
|
4808
|
+
type: E,
|
|
4809
4809
|
code: R,
|
|
4810
|
-
addNum:
|
|
4811
|
-
delNum:
|
|
4810
|
+
addNum: E === T.DELETE ? void 0 : l,
|
|
4811
|
+
delNum: E === T.ADD ? void 0 : o
|
|
4812
4812
|
});
|
|
4813
4813
|
}
|
|
4814
4814
|
break;
|
|
4815
4815
|
}
|
|
4816
|
-
if (
|
|
4817
|
-
for (const
|
|
4816
|
+
if (E === T.EQUAL)
|
|
4817
|
+
for (const N of D) {
|
|
4818
4818
|
o++, l++;
|
|
4819
|
-
const R = Q(a,
|
|
4820
|
-
|
|
4819
|
+
const R = Q(a, N);
|
|
4820
|
+
u.push({ type: T.EQUAL, code: R, delNum: o, addNum: l });
|
|
4821
4821
|
}
|
|
4822
|
-
const S =
|
|
4822
|
+
const S = m.value.replace(/\n$/, "").split(`
|
|
4823
4823
|
`);
|
|
4824
|
-
if (
|
|
4825
|
-
if (
|
|
4826
|
-
for (let
|
|
4827
|
-
const R = D[
|
|
4824
|
+
if (E === T.DELETE)
|
|
4825
|
+
if (A === T.ADD && (D.length === S.length || d)) {
|
|
4826
|
+
for (let N = 0; N < D.length; N++) {
|
|
4827
|
+
const R = D[N], C = S[N];
|
|
4828
4828
|
o++;
|
|
4829
|
-
const I = Q(a, De(C, R,
|
|
4830
|
-
|
|
4829
|
+
const I = Q(a, De(C, R, f));
|
|
4830
|
+
u.push({
|
|
4831
4831
|
type: s != null && s.test(R) ? T.EQUAL : T.DELETE,
|
|
4832
4832
|
code: I,
|
|
4833
4833
|
delNum: o
|
|
4834
4834
|
});
|
|
4835
4835
|
}
|
|
4836
|
-
for (let
|
|
4837
|
-
const R = D[
|
|
4836
|
+
for (let N = 0; N < S.length; N++) {
|
|
4837
|
+
const R = D[N], C = S[N];
|
|
4838
4838
|
l++;
|
|
4839
|
-
const I = Q(a, De(R, C,
|
|
4840
|
-
|
|
4839
|
+
const I = Q(a, De(R, C, f));
|
|
4840
|
+
u.push({
|
|
4841
4841
|
type: s != null && s.test(C) ? T.EQUAL : T.ADD,
|
|
4842
4842
|
code: I,
|
|
4843
4843
|
addNum: l
|
|
@@ -4845,49 +4845,49 @@ function cr(e, n, a = "plaintext", u = "word", g = !1, t = 10, r) {
|
|
|
4845
4845
|
}
|
|
4846
4846
|
c = !0;
|
|
4847
4847
|
} else
|
|
4848
|
-
for (const
|
|
4848
|
+
for (const N of D) {
|
|
4849
4849
|
o++;
|
|
4850
|
-
const R = Q(a,
|
|
4851
|
-
|
|
4850
|
+
const R = Q(a, N);
|
|
4851
|
+
u.push({ type: T.DELETE, code: R, delNum: o });
|
|
4852
4852
|
}
|
|
4853
|
-
if (
|
|
4854
|
-
for (const
|
|
4853
|
+
if (E === T.ADD)
|
|
4854
|
+
for (const N of D) {
|
|
4855
4855
|
l++;
|
|
4856
|
-
const R = Q(a,
|
|
4857
|
-
|
|
4856
|
+
const R = Q(a, N);
|
|
4857
|
+
u.push({ type: T.ADD, code: R, addNum: l });
|
|
4858
4858
|
}
|
|
4859
4859
|
}
|
|
4860
|
-
for (let _ = 0; _ <
|
|
4861
|
-
const v =
|
|
4860
|
+
for (let _ = 0; _ < u.length; _++) {
|
|
4861
|
+
const v = u[_];
|
|
4862
4862
|
if (v.type === T.DELETE || v.type === T.ADD) {
|
|
4863
|
-
const [
|
|
4864
|
-
for (let
|
|
4865
|
-
|
|
4863
|
+
const [m, E] = [Math.max(_ - t, 0), Math.min(_ + t + 1, u.length)];
|
|
4864
|
+
for (let A = m; A < E; A++)
|
|
4865
|
+
u[A].fold = !1;
|
|
4866
4866
|
}
|
|
4867
4867
|
v.fold === void 0 && (v.fold = !0);
|
|
4868
4868
|
}
|
|
4869
4869
|
if (e === n) {
|
|
4870
|
-
for (let _ = 0; _ <
|
|
4871
|
-
|
|
4870
|
+
for (let _ = 0; _ < u.length; _++)
|
|
4871
|
+
u[_].fold = !1;
|
|
4872
4872
|
return h;
|
|
4873
4873
|
}
|
|
4874
|
-
const
|
|
4874
|
+
const g = [];
|
|
4875
4875
|
let p = [];
|
|
4876
|
-
for (let _ = 0; _ <
|
|
4877
|
-
const v =
|
|
4876
|
+
for (let _ = 0; _ < u.length; _++) {
|
|
4877
|
+
const v = u[_];
|
|
4878
4878
|
if (v.fold === !1) {
|
|
4879
4879
|
p.length && (p[0].hideIndex = h.collector.length, h.collector.push({
|
|
4880
4880
|
lines: p,
|
|
4881
4881
|
fold: !0
|
|
4882
|
-
}), p = []),
|
|
4882
|
+
}), p = []), g.push(v);
|
|
4883
4883
|
continue;
|
|
4884
4884
|
}
|
|
4885
|
-
v.type === "equal" && (v.hide = !0, p.push(v)),
|
|
4885
|
+
v.type === "equal" && (v.hide = !0, p.push(v)), g.push(v);
|
|
4886
4886
|
}
|
|
4887
4887
|
return p.length && (p[0].hideIndex = h.collector.length, h.collector.push({
|
|
4888
4888
|
lines: p,
|
|
4889
4889
|
fold: !0
|
|
4890
|
-
}), p = []), h.changes =
|
|
4890
|
+
}), p = []), h.changes = g, h;
|
|
4891
4891
|
}
|
|
4892
4892
|
const Ge = {};
|
|
4893
4893
|
Ge.props = {
|
|
@@ -4899,16 +4899,16 @@ Ge.props = {
|
|
|
4899
4899
|
};
|
|
4900
4900
|
Ge.setup = (e, n) => {
|
|
4901
4901
|
const a = n.emit;
|
|
4902
|
-
function
|
|
4903
|
-
return
|
|
4902
|
+
function f(d) {
|
|
4903
|
+
return d === T.DELETE ? "-" : d === T.ADD ? "+" : "";
|
|
4904
4904
|
}
|
|
4905
4905
|
return {
|
|
4906
4906
|
DiffType: T,
|
|
4907
4907
|
emit: a,
|
|
4908
|
-
getCodeMarker:
|
|
4908
|
+
getCodeMarker: f
|
|
4909
4909
|
};
|
|
4910
4910
|
};
|
|
4911
|
-
var
|
|
4911
|
+
var gr = function() {
|
|
4912
4912
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
4913
4913
|
return e.line.hideIndex !== void 0 && e.line.hide ? a("tr", [a("td", {
|
|
4914
4914
|
staticClass: "blob-num blob-num-hunk text-center",
|
|
@@ -4916,7 +4916,7 @@ var ur = function() {
|
|
|
4916
4916
|
colspan: "2"
|
|
4917
4917
|
},
|
|
4918
4918
|
on: {
|
|
4919
|
-
click: function(
|
|
4919
|
+
click: function(f) {
|
|
4920
4920
|
return e.emit("expand", e.line);
|
|
4921
4921
|
}
|
|
4922
4922
|
}
|
|
@@ -4958,26 +4958,26 @@ var ur = function() {
|
|
|
4958
4958
|
innerHTML: e._s(e.line.code)
|
|
4959
4959
|
}
|
|
4960
4960
|
})])]);
|
|
4961
|
-
},
|
|
4962
|
-
function
|
|
4961
|
+
}, hr = [];
|
|
4962
|
+
function oe(e, n, a, f, d, t, r, i) {
|
|
4963
4963
|
var s = typeof e == "function" ? e.options : e;
|
|
4964
|
-
n && (s.render = n, s.staticRenderFns = a, s._compiled = !0),
|
|
4964
|
+
n && (s.render = n, s.staticRenderFns = a, s._compiled = !0), f && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
|
|
4965
4965
|
var o;
|
|
4966
|
-
if (r ? (o = function(
|
|
4967
|
-
|
|
4966
|
+
if (r ? (o = function(u) {
|
|
4967
|
+
u = u || // cached call
|
|
4968
4968
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
4969
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !
|
|
4970
|
-
}, s._ssrRegister = o) :
|
|
4971
|
-
|
|
4969
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ != "undefined" && (u = __VUE_SSR_CONTEXT__), d && d.call(this, u), u && u._registeredComponents && u._registeredComponents.add(r);
|
|
4970
|
+
}, s._ssrRegister = o) : d && (o = i ? function() {
|
|
4971
|
+
d.call(
|
|
4972
4972
|
this,
|
|
4973
4973
|
(s.functional ? this.parent : this).$root.$options.shadowRoot
|
|
4974
4974
|
);
|
|
4975
|
-
} :
|
|
4975
|
+
} : d), o)
|
|
4976
4976
|
if (s.functional) {
|
|
4977
4977
|
s._injectStyles = o;
|
|
4978
4978
|
var l = s.render;
|
|
4979
|
-
s.render = function(h,
|
|
4980
|
-
return o.call(
|
|
4979
|
+
s.render = function(h, g) {
|
|
4980
|
+
return o.call(g), l(h, g);
|
|
4981
4981
|
};
|
|
4982
4982
|
} else {
|
|
4983
4983
|
var c = s.beforeCreate;
|
|
@@ -4988,80 +4988,80 @@ function Ee(e, n, a, u, g, t, r, i) {
|
|
|
4988
4988
|
options: s
|
|
4989
4989
|
};
|
|
4990
4990
|
}
|
|
4991
|
-
const
|
|
4992
|
-
var
|
|
4991
|
+
const cn = {};
|
|
4992
|
+
var dr = /* @__PURE__ */ oe(
|
|
4993
4993
|
Ge,
|
|
4994
|
-
|
|
4995
|
-
fr,
|
|
4996
|
-
!1,
|
|
4994
|
+
gr,
|
|
4997
4995
|
hr,
|
|
4996
|
+
!1,
|
|
4997
|
+
pr,
|
|
4998
4998
|
null,
|
|
4999
4999
|
null,
|
|
5000
5000
|
null
|
|
5001
5001
|
);
|
|
5002
|
-
function
|
|
5003
|
-
for (let n in
|
|
5004
|
-
this[n] =
|
|
5002
|
+
function pr(e) {
|
|
5003
|
+
for (let n in cn)
|
|
5004
|
+
this[n] = cn[n];
|
|
5005
5005
|
}
|
|
5006
|
-
const
|
|
5007
|
-
return
|
|
5008
|
-
}(),
|
|
5009
|
-
|
|
5006
|
+
const _r = /* @__PURE__ */ function() {
|
|
5007
|
+
return dr.exports;
|
|
5008
|
+
}(), be = {};
|
|
5009
|
+
be.props = {
|
|
5010
5010
|
diffChange: {
|
|
5011
5011
|
key: "diffChange",
|
|
5012
5012
|
required: !0,
|
|
5013
5013
|
type: null
|
|
5014
5014
|
}
|
|
5015
5015
|
};
|
|
5016
|
-
|
|
5016
|
+
be.setup = (e, n) => {
|
|
5017
5017
|
const a = e;
|
|
5018
|
-
function
|
|
5019
|
-
hideIndex:
|
|
5018
|
+
function f({
|
|
5019
|
+
hideIndex: d
|
|
5020
5020
|
}) {
|
|
5021
|
-
|
|
5021
|
+
d !== void 0 && a.diffChange.collector[d].lines.forEach((t) => {
|
|
5022
5022
|
t.hide = !1, t.fold = !1;
|
|
5023
5023
|
});
|
|
5024
5024
|
}
|
|
5025
5025
|
return {
|
|
5026
|
-
expandHandler:
|
|
5026
|
+
expandHandler: f
|
|
5027
5027
|
};
|
|
5028
5028
|
};
|
|
5029
|
-
|
|
5030
|
-
UnifiedLine:
|
|
5031
|
-
},
|
|
5032
|
-
var
|
|
5033
|
-
var e, n = this, a = n.$createElement,
|
|
5034
|
-
return
|
|
5029
|
+
be.components = Object.assign({
|
|
5030
|
+
UnifiedLine: _r
|
|
5031
|
+
}, be.components);
|
|
5032
|
+
var br = function() {
|
|
5033
|
+
var e, n = this, a = n.$createElement, f = n._self._c || a;
|
|
5034
|
+
return f("table", {
|
|
5035
5035
|
staticClass: "diff-table"
|
|
5036
|
-
}, [
|
|
5037
|
-
return
|
|
5036
|
+
}, [f("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(d, t) {
|
|
5037
|
+
return f("UnifiedLine", {
|
|
5038
5038
|
key: t,
|
|
5039
5039
|
attrs: {
|
|
5040
|
-
line:
|
|
5040
|
+
line: d
|
|
5041
5041
|
},
|
|
5042
5042
|
on: {
|
|
5043
5043
|
expand: n.expandHandler
|
|
5044
5044
|
}
|
|
5045
5045
|
});
|
|
5046
5046
|
}), 1)]);
|
|
5047
|
-
},
|
|
5048
|
-
const
|
|
5049
|
-
var
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
_r,
|
|
5053
|
-
!1,
|
|
5047
|
+
}, vr = [];
|
|
5048
|
+
const un = {};
|
|
5049
|
+
var mr = /* @__PURE__ */ oe(
|
|
5050
|
+
be,
|
|
5051
|
+
br,
|
|
5054
5052
|
vr,
|
|
5053
|
+
!1,
|
|
5054
|
+
Er,
|
|
5055
5055
|
null,
|
|
5056
5056
|
null,
|
|
5057
5057
|
null
|
|
5058
5058
|
);
|
|
5059
|
-
function
|
|
5060
|
-
for (let n in
|
|
5061
|
-
this[n] =
|
|
5059
|
+
function Er(e) {
|
|
5060
|
+
for (let n in un)
|
|
5061
|
+
this[n] = un[n];
|
|
5062
5062
|
}
|
|
5063
|
-
const
|
|
5064
|
-
return
|
|
5063
|
+
const yr = /* @__PURE__ */ function() {
|
|
5064
|
+
return mr.exports;
|
|
5065
5065
|
}(), Ke = {};
|
|
5066
5066
|
Ke.props = {
|
|
5067
5067
|
splitLine: {
|
|
@@ -5072,11 +5072,10 @@ Ke.props = {
|
|
|
5072
5072
|
};
|
|
5073
5073
|
Ke.setup = (e, n) => {
|
|
5074
5074
|
const a = n.emit;
|
|
5075
|
-
function
|
|
5075
|
+
function f(t) {
|
|
5076
5076
|
return t === T.DELETE ? "-" : t === T.ADD ? "+" : "";
|
|
5077
5077
|
}
|
|
5078
|
-
function
|
|
5079
|
-
window.getSelection().removeAllRanges();
|
|
5078
|
+
function d(t) {
|
|
5080
5079
|
const r = document.querySelectorAll(".file-diff-split .split-side-left"), i = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
5081
5080
|
for (const s of i)
|
|
5082
5081
|
s.classList.toggle("no-select", t === "left");
|
|
@@ -5086,11 +5085,11 @@ Ke.setup = (e, n) => {
|
|
|
5086
5085
|
return {
|
|
5087
5086
|
DiffType: T,
|
|
5088
5087
|
emit: a,
|
|
5089
|
-
getCodeMarker:
|
|
5090
|
-
onSplitLineMousedown:
|
|
5088
|
+
getCodeMarker: f,
|
|
5089
|
+
onSplitLineMousedown: d
|
|
5091
5090
|
};
|
|
5092
5091
|
};
|
|
5093
|
-
var
|
|
5092
|
+
var wr = function() {
|
|
5094
5093
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5095
5094
|
return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? a("tr", [a("td", {
|
|
5096
5095
|
staticClass: "blob-num blob-num-hunk",
|
|
@@ -5098,7 +5097,7 @@ var mr = function() {
|
|
|
5098
5097
|
colspan: "1"
|
|
5099
5098
|
},
|
|
5100
5099
|
on: {
|
|
5101
|
-
click: function(
|
|
5100
|
+
click: function(f) {
|
|
5102
5101
|
return e.emit("expand", e.splitLine);
|
|
5103
5102
|
}
|
|
5104
5103
|
}
|
|
@@ -5108,102 +5107,102 @@ var mr = function() {
|
|
|
5108
5107
|
colspan: "3",
|
|
5109
5108
|
align: "left"
|
|
5110
5109
|
}
|
|
5111
|
-
}, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : a("tr", [e._l([e.splitLine.left, e.splitLine.right], function(
|
|
5112
|
-
return [
|
|
5110
|
+
}, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : a("tr", [e._l([e.splitLine.left, e.splitLine.right], function(f, d) {
|
|
5111
|
+
return [f.type === e.DiffType.EMPTY ? [a("td", {
|
|
5113
5112
|
staticClass: "blob-num blob-num-empty empty-cell"
|
|
5114
5113
|
}), a("td", {
|
|
5115
5114
|
staticClass: "blob-code blob-code-empty empty-cell"
|
|
5116
5115
|
})] : [a("td", {
|
|
5117
5116
|
staticClass: "blob-num",
|
|
5118
5117
|
class: {
|
|
5119
|
-
"blob-num-deletion":
|
|
5120
|
-
"blob-num-addition":
|
|
5121
|
-
"blob-num-context":
|
|
5118
|
+
"blob-num-deletion": f.type === e.DiffType.DELETE,
|
|
5119
|
+
"blob-num-addition": f.type === e.DiffType.ADD,
|
|
5120
|
+
"blob-num-context": f.type === e.DiffType.EQUAL,
|
|
5122
5121
|
"blob-num-hunk": e.splitLine.hide !== void 0
|
|
5123
5122
|
}
|
|
5124
|
-
}, [e._v(" " + e._s(
|
|
5123
|
+
}, [e._v(" " + e._s(f.num) + " ")]), a("td", {
|
|
5125
5124
|
staticClass: "blob-code",
|
|
5126
5125
|
class: {
|
|
5127
|
-
"blob-code-deletion":
|
|
5128
|
-
"blob-code-addition":
|
|
5129
|
-
"blob-code-context":
|
|
5126
|
+
"blob-code-deletion": f.type === e.DiffType.DELETE,
|
|
5127
|
+
"blob-code-addition": f.type === e.DiffType.ADD,
|
|
5128
|
+
"blob-code-context": f.type === e.DiffType.EQUAL,
|
|
5130
5129
|
"blob-code-hunk": e.splitLine.hide !== void 0,
|
|
5131
|
-
"split-side-left":
|
|
5132
|
-
"split-side-right":
|
|
5130
|
+
"split-side-left": d === 0,
|
|
5131
|
+
"split-side-right": d === 1
|
|
5133
5132
|
},
|
|
5134
5133
|
on: {
|
|
5135
5134
|
mousedown: function(t) {
|
|
5136
|
-
return e.onSplitLineMousedown(
|
|
5135
|
+
return e.onSplitLineMousedown(d === 0 ? "left" : "right");
|
|
5137
5136
|
}
|
|
5138
5137
|
}
|
|
5139
5138
|
}, [a("span", {
|
|
5140
5139
|
staticClass: "blob-code-inner blob-code-marker",
|
|
5141
5140
|
attrs: {
|
|
5142
|
-
"data-code-marker": e.getCodeMarker(
|
|
5141
|
+
"data-code-marker": e.getCodeMarker(f.type)
|
|
5143
5142
|
},
|
|
5144
5143
|
domProps: {
|
|
5145
|
-
innerHTML: e._s(
|
|
5144
|
+
innerHTML: e._s(f.code)
|
|
5146
5145
|
}
|
|
5147
5146
|
})])]];
|
|
5148
5147
|
})], 2);
|
|
5149
|
-
},
|
|
5150
|
-
const
|
|
5151
|
-
var
|
|
5148
|
+
}, Ar = [];
|
|
5149
|
+
const fn = {};
|
|
5150
|
+
var Nr = /* @__PURE__ */ oe(
|
|
5152
5151
|
Ke,
|
|
5153
|
-
|
|
5154
|
-
|
|
5152
|
+
wr,
|
|
5153
|
+
Ar,
|
|
5155
5154
|
!1,
|
|
5156
|
-
|
|
5155
|
+
Mr,
|
|
5157
5156
|
null,
|
|
5158
5157
|
null,
|
|
5159
5158
|
null
|
|
5160
5159
|
);
|
|
5161
|
-
function
|
|
5162
|
-
for (let n in
|
|
5163
|
-
this[n] =
|
|
5160
|
+
function Mr(e) {
|
|
5161
|
+
for (let n in fn)
|
|
5162
|
+
this[n] = fn[n];
|
|
5164
5163
|
}
|
|
5165
|
-
const
|
|
5166
|
-
return
|
|
5167
|
-
}(),
|
|
5168
|
-
|
|
5164
|
+
const Tr = /* @__PURE__ */ function() {
|
|
5165
|
+
return Nr.exports;
|
|
5166
|
+
}(), ve = {};
|
|
5167
|
+
ve.props = {
|
|
5169
5168
|
diffChange: {
|
|
5170
5169
|
key: "diffChange",
|
|
5171
5170
|
required: !0,
|
|
5172
5171
|
type: null
|
|
5173
5172
|
}
|
|
5174
5173
|
};
|
|
5175
|
-
|
|
5174
|
+
ve.setup = (e, n) => {
|
|
5176
5175
|
const a = e;
|
|
5177
|
-
function
|
|
5178
|
-
hideIndex:
|
|
5176
|
+
function f({
|
|
5177
|
+
hideIndex: d
|
|
5179
5178
|
}) {
|
|
5180
|
-
|
|
5179
|
+
d !== void 0 && a.diffChange.collector[d].lines.forEach((t) => {
|
|
5181
5180
|
t.hide = !1, t.fold = !1;
|
|
5182
5181
|
});
|
|
5183
5182
|
}
|
|
5184
5183
|
return {
|
|
5185
|
-
expandHandler:
|
|
5184
|
+
expandHandler: f
|
|
5186
5185
|
};
|
|
5187
5186
|
};
|
|
5188
|
-
|
|
5189
|
-
SplitLine:
|
|
5190
|
-
},
|
|
5191
|
-
var
|
|
5192
|
-
var e, n = this, a = n.$createElement,
|
|
5193
|
-
return
|
|
5187
|
+
ve.components = Object.assign({
|
|
5188
|
+
SplitLine: Tr
|
|
5189
|
+
}, ve.components);
|
|
5190
|
+
var Sr = function() {
|
|
5191
|
+
var e, n = this, a = n.$createElement, f = n._self._c || a;
|
|
5192
|
+
return f("table", {
|
|
5194
5193
|
staticClass: "file-diff-split diff-table"
|
|
5195
|
-
}, [n._m(0),
|
|
5196
|
-
return
|
|
5194
|
+
}, [n._m(0), f("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(d, t) {
|
|
5195
|
+
return f("SplitLine", {
|
|
5197
5196
|
key: t,
|
|
5198
5197
|
attrs: {
|
|
5199
|
-
"split-line":
|
|
5198
|
+
"split-line": d
|
|
5200
5199
|
},
|
|
5201
5200
|
on: {
|
|
5202
5201
|
expand: n.expandHandler
|
|
5203
5202
|
}
|
|
5204
5203
|
});
|
|
5205
5204
|
}), 1)]);
|
|
5206
|
-
},
|
|
5205
|
+
}, Dr = [function() {
|
|
5207
5206
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5208
5207
|
return a("colgroup", [a("col", {
|
|
5209
5208
|
attrs: {
|
|
@@ -5215,26 +5214,94 @@ var Mr = function() {
|
|
|
5215
5214
|
}
|
|
5216
5215
|
}), a("col")]);
|
|
5217
5216
|
}];
|
|
5218
|
-
const
|
|
5219
|
-
var
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
Tr,
|
|
5223
|
-
!1,
|
|
5217
|
+
const gn = {};
|
|
5218
|
+
var Cr = /* @__PURE__ */ oe(
|
|
5219
|
+
ve,
|
|
5220
|
+
Sr,
|
|
5224
5221
|
Dr,
|
|
5222
|
+
!1,
|
|
5223
|
+
Rr,
|
|
5225
5224
|
null,
|
|
5226
5225
|
null,
|
|
5227
5226
|
null
|
|
5228
5227
|
);
|
|
5229
|
-
function
|
|
5230
|
-
for (let n in
|
|
5231
|
-
this[n] =
|
|
5228
|
+
function Rr(e) {
|
|
5229
|
+
for (let n in gn)
|
|
5230
|
+
this[n] = gn[n];
|
|
5232
5231
|
}
|
|
5233
|
-
const
|
|
5234
|
-
return
|
|
5232
|
+
const Lr = /* @__PURE__ */ function() {
|
|
5233
|
+
return Cr.exports;
|
|
5235
5234
|
}();
|
|
5236
|
-
|
|
5237
|
-
|
|
5235
|
+
var Or = function() {
|
|
5236
|
+
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5237
|
+
return a("svg", {
|
|
5238
|
+
attrs: {
|
|
5239
|
+
width: "1rem",
|
|
5240
|
+
viewBox: "0 0 512 512",
|
|
5241
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5242
|
+
}
|
|
5243
|
+
}, [a("path", {
|
|
5244
|
+
attrs: {
|
|
5245
|
+
d: "M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z"
|
|
5246
|
+
}
|
|
5247
|
+
})]);
|
|
5248
|
+
}, Ir = [];
|
|
5249
|
+
const kr = {
|
|
5250
|
+
name: "DownArrowIcon"
|
|
5251
|
+
}, hn = {};
|
|
5252
|
+
var $r = /* @__PURE__ */ oe(
|
|
5253
|
+
kr,
|
|
5254
|
+
Or,
|
|
5255
|
+
Ir,
|
|
5256
|
+
!1,
|
|
5257
|
+
Br,
|
|
5258
|
+
null,
|
|
5259
|
+
null,
|
|
5260
|
+
null
|
|
5261
|
+
);
|
|
5262
|
+
function Br(e) {
|
|
5263
|
+
for (let n in hn)
|
|
5264
|
+
this[n] = hn[n];
|
|
5265
|
+
}
|
|
5266
|
+
const Ur = /* @__PURE__ */ function() {
|
|
5267
|
+
return $r.exports;
|
|
5268
|
+
}();
|
|
5269
|
+
var Pr = function() {
|
|
5270
|
+
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5271
|
+
return a("svg", {
|
|
5272
|
+
attrs: {
|
|
5273
|
+
width: "1rem",
|
|
5274
|
+
viewBox: "0 0 512 512",
|
|
5275
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5276
|
+
}
|
|
5277
|
+
}, [a("path", {
|
|
5278
|
+
attrs: {
|
|
5279
|
+
d: "M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z"
|
|
5280
|
+
}
|
|
5281
|
+
})]);
|
|
5282
|
+
}, xr = [];
|
|
5283
|
+
const Hr = {
|
|
5284
|
+
name: "UpArrowIcon"
|
|
5285
|
+
}, dn = {};
|
|
5286
|
+
var Fr = /* @__PURE__ */ oe(
|
|
5287
|
+
Hr,
|
|
5288
|
+
Pr,
|
|
5289
|
+
xr,
|
|
5290
|
+
!1,
|
|
5291
|
+
zr,
|
|
5292
|
+
null,
|
|
5293
|
+
null,
|
|
5294
|
+
null
|
|
5295
|
+
);
|
|
5296
|
+
function zr(e) {
|
|
5297
|
+
for (let n in dn)
|
|
5298
|
+
this[n] = dn[n];
|
|
5299
|
+
}
|
|
5300
|
+
const Gr = /* @__PURE__ */ function() {
|
|
5301
|
+
return Fr.exports;
|
|
5302
|
+
}();
|
|
5303
|
+
const me = {};
|
|
5304
|
+
me.props = {
|
|
5238
5305
|
newString: {
|
|
5239
5306
|
key: "newString",
|
|
5240
5307
|
required: !0,
|
|
@@ -5330,18 +5397,34 @@ ve.props = {
|
|
|
5330
5397
|
default: void 0
|
|
5331
5398
|
}
|
|
5332
5399
|
};
|
|
5333
|
-
|
|
5334
|
-
const a = e,
|
|
5335
|
-
let
|
|
5336
|
-
return
|
|
5337
|
-
`) :
|
|
5338
|
-
}), r =
|
|
5339
|
-
let
|
|
5340
|
-
return
|
|
5341
|
-
`) :
|
|
5342
|
-
}), i =
|
|
5343
|
-
|
|
5344
|
-
|
|
5400
|
+
me.setup = (e, n) => {
|
|
5401
|
+
const a = e, f = n.emit, d = he(() => a.outputFormat === "line-by-line"), t = he(() => {
|
|
5402
|
+
let g = a.oldString || "";
|
|
5403
|
+
return g = a.trim ? g.trim() : g, g = a.noDiffLineFeed ? g.replace(/(\r\n)/g, `
|
|
5404
|
+
`) : g, g;
|
|
5405
|
+
}), r = he(() => {
|
|
5406
|
+
let g = a.newString || "";
|
|
5407
|
+
return g = a.trim ? g.trim() : g, g = a.noDiffLineFeed ? g.replace(/(\r\n)/g, `
|
|
5408
|
+
`) : g, g;
|
|
5409
|
+
}), i = he(() => d.value ? fr(t.value, r.value, a.language, a.diffStyle, a.forceInlineComparison, a.context, a.ignoreMatchingLines) : ur(t.value, r.value, a.language, a.diffStyle, a.forceInlineComparison, a.context, a.ignoreMatchingLines)), s = Ve(i.value), o = he(() => s.value.stat.additionsNum === 0 && s.value.stat.deletionsNum === 0), l = Ve(-1);
|
|
5410
|
+
function c() {
|
|
5411
|
+
const g = document.querySelectorAll(".blob-code-addition");
|
|
5412
|
+
l.value < g.length - 1 && (l.value++, h(g));
|
|
5413
|
+
}
|
|
5414
|
+
function u() {
|
|
5415
|
+
const g = document.querySelectorAll(".blob-code-addition");
|
|
5416
|
+
l.value > 0 && (l.value--, h(g));
|
|
5417
|
+
}
|
|
5418
|
+
function h(g) {
|
|
5419
|
+
g.forEach((_) => _.classList.remove("current-diff"));
|
|
5420
|
+
const p = g[l.value];
|
|
5421
|
+
p && (p.classList.add("current-diff"), p.scrollIntoView({
|
|
5422
|
+
behavior: "smooth",
|
|
5423
|
+
block: "center"
|
|
5424
|
+
}));
|
|
5425
|
+
}
|
|
5426
|
+
return Kn(() => a, () => {
|
|
5427
|
+
s.value = i.value, f("diff", {
|
|
5345
5428
|
stat: {
|
|
5346
5429
|
isChanged: !o.value,
|
|
5347
5430
|
addNum: s.value.stat.additionsNum,
|
|
@@ -5352,15 +5435,19 @@ ve.setup = (e, n) => {
|
|
|
5352
5435
|
deep: !0,
|
|
5353
5436
|
immediate: !0
|
|
5354
5437
|
}), {
|
|
5355
|
-
isUnifiedViewer:
|
|
5356
|
-
diffChange: s
|
|
5438
|
+
isUnifiedViewer: d,
|
|
5439
|
+
diffChange: s,
|
|
5440
|
+
goToNextDiff: c,
|
|
5441
|
+
goToPrevDiff: u
|
|
5357
5442
|
};
|
|
5358
5443
|
};
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5444
|
+
me.components = Object.assign({
|
|
5445
|
+
DownArrowIcon: Ur,
|
|
5446
|
+
UpArrowIcon: Gr,
|
|
5447
|
+
UnifiedViewer: yr,
|
|
5448
|
+
SplitViewer: Lr
|
|
5449
|
+
}, me.components);
|
|
5450
|
+
var Kr = function() {
|
|
5364
5451
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5365
5452
|
return a("div", {
|
|
5366
5453
|
staticClass: "code-diff-view",
|
|
@@ -5378,7 +5465,25 @@ var Rr = function() {
|
|
|
5378
5465
|
staticClass: "info-left"
|
|
5379
5466
|
}, [e._v(e._s(e.filename))]), a("div", {
|
|
5380
5467
|
staticClass: "info-left"
|
|
5381
|
-
}, [e._v(e._s(e.newFilename))])]),
|
|
5468
|
+
}, [e._v(e._s(e.newFilename))])]), a("span", {
|
|
5469
|
+
staticClass: "diff-commandbar"
|
|
5470
|
+
}, [a("button", {
|
|
5471
|
+
staticClass: "command-item-button",
|
|
5472
|
+
attrs: {
|
|
5473
|
+
title: "Next Change"
|
|
5474
|
+
},
|
|
5475
|
+
on: {
|
|
5476
|
+
click: e.goToNextDiff
|
|
5477
|
+
}
|
|
5478
|
+
}, [a("DownArrowIcon")], 1), a("button", {
|
|
5479
|
+
staticClass: "command-item-button",
|
|
5480
|
+
attrs: {
|
|
5481
|
+
title: "Previous Change"
|
|
5482
|
+
},
|
|
5483
|
+
on: {
|
|
5484
|
+
click: e.goToPrevDiff
|
|
5485
|
+
}
|
|
5486
|
+
}, [a("UpArrowIcon")], 1)]), e.hideStat ? e._e() : a("span", {
|
|
5382
5487
|
staticClass: "diff-stat"
|
|
5383
5488
|
}, [e._t("stat", function() {
|
|
5384
5489
|
return [a("span", {
|
|
@@ -5398,7 +5503,25 @@ var Rr = function() {
|
|
|
5398
5503
|
staticStyle: {
|
|
5399
5504
|
"margin-left": "20px"
|
|
5400
5505
|
}
|
|
5401
|
-
}, [e._v(e._s(e.newFilename))]),
|
|
5506
|
+
}, [e._v(e._s(e.newFilename))]), a("span", {
|
|
5507
|
+
staticClass: "diff-commandbar"
|
|
5508
|
+
}, [a("button", {
|
|
5509
|
+
staticClass: "command-item-button",
|
|
5510
|
+
attrs: {
|
|
5511
|
+
title: "Next Change"
|
|
5512
|
+
},
|
|
5513
|
+
on: {
|
|
5514
|
+
click: e.goToNextDiff
|
|
5515
|
+
}
|
|
5516
|
+
}, [a("DownArrowIcon")], 1), a("button", {
|
|
5517
|
+
staticClass: "command-item-button",
|
|
5518
|
+
attrs: {
|
|
5519
|
+
title: "Previous Change"
|
|
5520
|
+
},
|
|
5521
|
+
on: {
|
|
5522
|
+
click: e.goToPrevDiff
|
|
5523
|
+
}
|
|
5524
|
+
}, [a("UpArrowIcon")], 1)]), e.hideStat ? e._e() : a("span", {
|
|
5402
5525
|
staticClass: "diff-stat"
|
|
5403
5526
|
}, [e._t("stat", function() {
|
|
5404
5527
|
return [a("span", {
|
|
@@ -5417,34 +5540,34 @@ var Rr = function() {
|
|
|
5417
5540
|
"diff-change": e.diffChange
|
|
5418
5541
|
}
|
|
5419
5542
|
})], 1);
|
|
5420
|
-
},
|
|
5421
|
-
const
|
|
5422
|
-
var
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5543
|
+
}, Wr = [];
|
|
5544
|
+
const pn = {};
|
|
5545
|
+
var qr = /* @__PURE__ */ oe(
|
|
5546
|
+
me,
|
|
5547
|
+
Kr,
|
|
5548
|
+
Wr,
|
|
5426
5549
|
!1,
|
|
5427
|
-
|
|
5550
|
+
Qr,
|
|
5428
5551
|
null,
|
|
5429
5552
|
null,
|
|
5430
5553
|
null
|
|
5431
5554
|
);
|
|
5432
|
-
function
|
|
5433
|
-
for (let n in
|
|
5434
|
-
this[n] =
|
|
5555
|
+
function Qr(e) {
|
|
5556
|
+
for (let n in pn)
|
|
5557
|
+
this[n] = pn[n];
|
|
5435
5558
|
}
|
|
5436
|
-
const
|
|
5437
|
-
return
|
|
5559
|
+
const jr = /* @__PURE__ */ function() {
|
|
5560
|
+
return qr.exports;
|
|
5438
5561
|
}();
|
|
5439
|
-
function
|
|
5440
|
-
e.component("CodeDiff",
|
|
5562
|
+
function Zr(e) {
|
|
5563
|
+
e.component("CodeDiff", jr);
|
|
5441
5564
|
}
|
|
5442
|
-
const
|
|
5443
|
-
install:
|
|
5444
|
-
hljs:
|
|
5565
|
+
const Xr = {
|
|
5566
|
+
install: Zr,
|
|
5567
|
+
hljs: j
|
|
5445
5568
|
};
|
|
5446
5569
|
export {
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5570
|
+
jr as CodeDiff,
|
|
5571
|
+
Xr as default,
|
|
5572
|
+
j as hljs
|
|
5450
5573
|
};
|