v-code-diff 1.6.1 → 1.7.0
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 +12 -12
- package/dist/v2/index.es.js +258 -230
- package/dist/v2/index.umd.js +13 -13
- package/dist/v2.7/index.cjs.js +8 -8
- package/dist/v2.7/index.es.js +290 -276
- package/dist/v2.7/index.umd.js +5 -5
- package/dist/v3/index.cjs.js +11 -11
- package/dist/v3/index.es.js +358 -339
- package/dist/v3/index.umd.js +11 -11
- package/package.json +1 -1
- package/scripts/utils.js +4 -2
- package/src/CodeDiff.vue +6 -2
- package/src/split/SplitLine.vue +39 -17
- package/src/style.scss +4 -1
package/dist/v2.7/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--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: #24292f;--color-diff-blob-addition-fg: #24292f;--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: #24292f;--color-diff-blob-deletion-fg: #24292f;--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: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--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: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--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: #2da44e;--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(27,31,36,.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-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 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(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--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(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,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(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.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(27,31,36,.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-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.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(27,31,36,.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-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--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: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--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: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--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(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.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: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--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: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--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(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.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-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--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{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 .filename{font-size:13px;color:var(--color-fg-default)}.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 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 .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import Sn, { defineComponent as de, computed as ce, ref as Rn, watch as
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--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: #24292f;--color-diff-blob-addition-fg: #24292f;--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: #24292f;--color-diff-blob-deletion-fg: #24292f;--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: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--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: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--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: #2da44e;--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(27,31,36,.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-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 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(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--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(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,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(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.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(27,31,36,.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-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.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(27,31,36,.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-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--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: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--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: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--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(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.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: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--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: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--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(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.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-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--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{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 .filename{font-size:13px;color:var(--color-fg-default)}.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 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)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import Sn, { defineComponent as de, computed as ce, ref as Rn, watch as Ln } from "vue";
|
|
3
3
|
Sn.util.warn;
|
|
4
4
|
function q() {
|
|
5
5
|
}
|
|
@@ -8,10 +8,10 @@ q.prototype = {
|
|
|
8
8
|
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, g = u.callback;
|
|
9
9
|
typeof u == "function" && (g = u, u = {}), this.options = u;
|
|
10
10
|
var t = this;
|
|
11
|
-
function r(
|
|
11
|
+
function r(p) {
|
|
12
12
|
return g ? (setTimeout(function() {
|
|
13
|
-
g(void 0,
|
|
14
|
-
}, 0), !0) :
|
|
13
|
+
g(void 0, p);
|
|
14
|
+
}, 0), !0) : p;
|
|
15
15
|
}
|
|
16
16
|
e = this.castInput(e), o = this.castInput(o), e = this.removeEmpty(this.tokenize(e)), o = this.removeEmpty(this.tokenize(o));
|
|
17
17
|
var i = o.length, s = e.length, a = 1, l = i + s;
|
|
@@ -26,26 +26,26 @@ q.prototype = {
|
|
|
26
26
|
count: o.length
|
|
27
27
|
}]);
|
|
28
28
|
function h() {
|
|
29
|
-
for (var
|
|
30
|
-
var
|
|
31
|
-
v && (c[
|
|
29
|
+
for (var p = -1 * a; p <= a; p += 2) {
|
|
30
|
+
var _ = void 0, v = c[p - 1], E = c[p + 1], w = (E ? E.newPos : 0) - p;
|
|
31
|
+
v && (c[p - 1] = void 0);
|
|
32
32
|
var m = v && v.newPos + 1 < i, T = E && 0 <= w && w < s;
|
|
33
33
|
if (!m && !T) {
|
|
34
|
-
c[
|
|
34
|
+
c[p] = void 0;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
if (!m || T && v.newPos < E.newPos ? (
|
|
38
|
-
return r(
|
|
39
|
-
c[
|
|
37
|
+
if (!m || T && v.newPos < E.newPos ? (_ = Cn(E), t.pushComponent(_.components, void 0, !0)) : (_ = v, _.newPos++, t.pushComponent(_.components, !0, void 0)), w = t.extractCommon(_, o, e, p), _.newPos + 1 >= i && w + 1 >= s)
|
|
38
|
+
return r(On(t, _.components, o, e, t.useLongestToken));
|
|
39
|
+
c[p] = _;
|
|
40
40
|
}
|
|
41
41
|
a++;
|
|
42
42
|
}
|
|
43
43
|
if (g)
|
|
44
|
-
(function
|
|
44
|
+
(function p() {
|
|
45
45
|
setTimeout(function() {
|
|
46
46
|
if (a > l)
|
|
47
47
|
return g();
|
|
48
|
-
h() ||
|
|
48
|
+
h() || p();
|
|
49
49
|
}, 0);
|
|
50
50
|
})();
|
|
51
51
|
else
|
|
@@ -92,7 +92,7 @@ q.prototype = {
|
|
|
92
92
|
return e.join("");
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function On(n, e, o, u, g) {
|
|
96
96
|
for (var t = 0, r = e.length, i = 0, s = 0; t < r; t++) {
|
|
97
97
|
var a = e[t];
|
|
98
98
|
if (a.removed) {
|
|
@@ -104,8 +104,8 @@ function Ln(n, e, o, u, g) {
|
|
|
104
104
|
if (!a.added && g) {
|
|
105
105
|
var l = o.slice(i, i + a.count);
|
|
106
106
|
l = l.map(function(h, d) {
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var p = u[s + d];
|
|
108
|
+
return p.length > h.length ? p : h;
|
|
109
109
|
}), a.value = n.join(l);
|
|
110
110
|
} else
|
|
111
111
|
a.value = n.join(o.slice(i, i + a.count));
|
|
@@ -216,7 +216,7 @@ Ie.tokenize = function(n) {
|
|
|
216
216
|
Ie.join = Ie.removeEmpty = function(n) {
|
|
217
217
|
return n;
|
|
218
218
|
};
|
|
219
|
-
function
|
|
219
|
+
function Hn(n) {
|
|
220
220
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
221
221
|
}
|
|
222
222
|
var rn = { exports: {} };
|
|
@@ -263,7 +263,7 @@ var rn = { exports: {} };
|
|
|
263
263
|
];
|
|
264
264
|
var h = this.diff_halfMatch_(t, r);
|
|
265
265
|
if (h) {
|
|
266
|
-
var d = h[0],
|
|
266
|
+
var d = h[0], p = h[1], _ = h[2], v = h[3], E = h[4], w = this.diff_main(d, _, i, s), m = this.diff_main(p, v, i, s);
|
|
267
267
|
return w.concat(
|
|
268
268
|
[new e.Diff(g, E)],
|
|
269
269
|
m
|
|
@@ -275,10 +275,10 @@ var rn = { exports: {} };
|
|
|
275
275
|
t = s.chars1, r = s.chars2;
|
|
276
276
|
var a = s.lineArray, l = this.diff_main(t, r, !1, i);
|
|
277
277
|
this.diff_charsToLines_(l, a), this.diff_cleanupSemantic(l), l.push(new e.Diff(g, ""));
|
|
278
|
-
for (var c = 0, f = 0, h = 0, d = "",
|
|
278
|
+
for (var c = 0, f = 0, h = 0, d = "", p = ""; c < l.length; ) {
|
|
279
279
|
switch (l[c][0]) {
|
|
280
280
|
case u:
|
|
281
|
-
h++,
|
|
281
|
+
h++, p += l[c][1];
|
|
282
282
|
break;
|
|
283
283
|
case o:
|
|
284
284
|
f++, d += l[c][1];
|
|
@@ -289,54 +289,54 @@ var rn = { exports: {} };
|
|
|
289
289
|
c - f - h,
|
|
290
290
|
f + h
|
|
291
291
|
), c = c - f - h;
|
|
292
|
-
for (var
|
|
293
|
-
l.splice(c, 0,
|
|
294
|
-
c = c +
|
|
292
|
+
for (var _ = this.diff_main(d, p, !1, i), v = _.length - 1; v >= 0; v--)
|
|
293
|
+
l.splice(c, 0, _[v]);
|
|
294
|
+
c = c + _.length;
|
|
295
295
|
}
|
|
296
|
-
h = 0, f = 0, d = "",
|
|
296
|
+
h = 0, f = 0, d = "", p = "";
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
299
|
c++;
|
|
300
300
|
}
|
|
301
301
|
return l.pop(), l;
|
|
302
302
|
}, e.prototype.diff_bisect_ = function(t, r, i) {
|
|
303
|
-
for (var s = t.length, a = r.length, l = Math.ceil((s + a) / 2), c = l, f = 2 * l, h = new Array(f), d = new Array(f),
|
|
304
|
-
h[
|
|
303
|
+
for (var s = t.length, a = r.length, l = Math.ceil((s + a) / 2), c = l, f = 2 * l, h = new Array(f), d = new Array(f), p = 0; p < f; p++)
|
|
304
|
+
h[p] = -1, d[p] = -1;
|
|
305
305
|
h[c + 1] = 0, d[c + 1] = 0;
|
|
306
|
-
for (var
|
|
306
|
+
for (var _ = s - a, v = _ % 2 != 0, E = 0, w = 0, m = 0, T = 0, D = 0; D < l && !((/* @__PURE__ */ new Date()).getTime() > i); D++) {
|
|
307
307
|
for (var M = -D + E; M <= D - w; M += 2) {
|
|
308
308
|
var I = c + M, R;
|
|
309
309
|
M == -D || M != D && h[I - 1] < h[I + 1] ? R = h[I + 1] : R = h[I - 1] + 1;
|
|
310
|
-
for (var
|
|
311
|
-
R++,
|
|
310
|
+
for (var H = R - M; R < s && H < a && t.charAt(R) == r.charAt(H); )
|
|
311
|
+
R++, H++;
|
|
312
312
|
if (h[I] = R, R > s)
|
|
313
313
|
w += 2;
|
|
314
|
-
else if (
|
|
314
|
+
else if (H > a)
|
|
315
315
|
E += 2;
|
|
316
316
|
else if (v) {
|
|
317
|
-
var U = c +
|
|
317
|
+
var U = c + _ - M;
|
|
318
318
|
if (U >= 0 && U < f && d[U] != -1) {
|
|
319
319
|
var $ = s - d[U];
|
|
320
320
|
if (R >= $)
|
|
321
|
-
return this.diff_bisectSplit_(t, r, R,
|
|
321
|
+
return this.diff_bisectSplit_(t, r, R, H, i);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
for (var
|
|
326
|
-
var U = c +
|
|
327
|
-
|
|
328
|
-
for (var G = $ -
|
|
325
|
+
for (var F = -D + m; F <= D - T; F += 2) {
|
|
326
|
+
var U = c + F, $;
|
|
327
|
+
F == -D || F != D && d[U - 1] < d[U + 1] ? $ = d[U + 1] : $ = d[U - 1] + 1;
|
|
328
|
+
for (var G = $ - F; $ < s && G < a && t.charAt(s - $ - 1) == r.charAt(a - G - 1); )
|
|
329
329
|
$++, G++;
|
|
330
330
|
if (d[U] = $, $ > s)
|
|
331
331
|
T += 2;
|
|
332
332
|
else if (G > a)
|
|
333
333
|
m += 2;
|
|
334
334
|
else if (!v) {
|
|
335
|
-
var I = c +
|
|
335
|
+
var I = c + _ - F;
|
|
336
336
|
if (I >= 0 && I < f && h[I] != -1) {
|
|
337
|
-
var R = h[I],
|
|
337
|
+
var R = h[I], H = c + R - I;
|
|
338
338
|
if ($ = s - $, R >= $)
|
|
339
|
-
return this.diff_bisectSplit_(t, r, R,
|
|
339
|
+
return this.diff_bisectSplit_(t, r, R, H, i);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -346,17 +346,17 @@ var rn = { exports: {} };
|
|
|
346
346
|
new e.Diff(u, r)
|
|
347
347
|
];
|
|
348
348
|
}, e.prototype.diff_bisectSplit_ = function(t, r, i, s, a) {
|
|
349
|
-
var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), h = r.substring(s), d = this.diff_main(l, c, !1, a),
|
|
350
|
-
return d.concat(
|
|
349
|
+
var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), h = r.substring(s), d = this.diff_main(l, c, !1, a), p = this.diff_main(f, h, !1, a);
|
|
350
|
+
return d.concat(p);
|
|
351
351
|
}, e.prototype.diff_linesToChars_ = function(t, r) {
|
|
352
352
|
var i = [], s = {};
|
|
353
353
|
i[0] = "";
|
|
354
354
|
function a(h) {
|
|
355
|
-
for (var d = "",
|
|
356
|
-
|
|
357
|
-
`,
|
|
358
|
-
var E = h.substring(
|
|
359
|
-
(s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? d += String.fromCharCode(s[E]) : (v == l && (E = h.substring(
|
|
355
|
+
for (var d = "", p = 0, _ = -1, v = i.length; _ < h.length - 1; ) {
|
|
356
|
+
_ = h.indexOf(`
|
|
357
|
+
`, p), _ == -1 && (_ = h.length - 1);
|
|
358
|
+
var E = h.substring(p, _ + 1);
|
|
359
|
+
(s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? d += String.fromCharCode(s[E]) : (v == l && (E = h.substring(p), _ = h.length), d += String.fromCharCode(v), s[E] = v, i[v++] = E), p = _ + 1;
|
|
360
360
|
}
|
|
361
361
|
return d;
|
|
362
362
|
}
|
|
@@ -404,19 +404,19 @@ var rn = { exports: {} };
|
|
|
404
404
|
return null;
|
|
405
405
|
var a = this;
|
|
406
406
|
function l(w, m, T) {
|
|
407
|
-
for (var D = w.substring(T, T + Math.floor(w.length / 4)), M = -1, I = "", R,
|
|
408
|
-
var
|
|
407
|
+
for (var D = w.substring(T, T + Math.floor(w.length / 4)), M = -1, I = "", R, H, U, $; (M = m.indexOf(D, M + 1)) != -1; ) {
|
|
408
|
+
var F = a.diff_commonPrefix(
|
|
409
409
|
w.substring(T),
|
|
410
410
|
m.substring(M)
|
|
411
411
|
), G = a.diff_commonSuffix(
|
|
412
412
|
w.substring(0, T),
|
|
413
413
|
m.substring(0, M)
|
|
414
414
|
);
|
|
415
|
-
I.length < G +
|
|
415
|
+
I.length < G + F && (I = m.substring(M - G, M) + m.substring(M, M + F), R = w.substring(0, T - G), H = w.substring(T + F), U = m.substring(0, M - G), $ = m.substring(M + F));
|
|
416
416
|
}
|
|
417
417
|
return I.length * 2 >= w.length ? [
|
|
418
418
|
R,
|
|
419
|
-
|
|
419
|
+
H,
|
|
420
420
|
U,
|
|
421
421
|
$,
|
|
422
422
|
I
|
|
@@ -434,10 +434,10 @@ var rn = { exports: {} };
|
|
|
434
434
|
if (!c && !f)
|
|
435
435
|
return null;
|
|
436
436
|
f ? c ? h = c[4].length > f[4].length ? c : f : h = f : h = c;
|
|
437
|
-
var d,
|
|
438
|
-
t.length > r.length ? (d = h[0],
|
|
437
|
+
var d, p, _, v;
|
|
438
|
+
t.length > r.length ? (d = h[0], p = h[1], _ = h[2], v = h[3]) : (_ = h[0], v = h[1], d = h[2], p = h[3]);
|
|
439
439
|
var E = h[4];
|
|
440
|
-
return [d,
|
|
440
|
+
return [d, p, _, v, E];
|
|
441
441
|
}, e.prototype.diff_cleanupSemantic = function(t) {
|
|
442
442
|
for (var r = !1, i = [], s = 0, a = null, l = 0, c = 0, f = 0, h = 0, d = 0; l < t.length; )
|
|
443
443
|
t[l][0] == g ? (i[s++] = l, c = h, f = d, h = 0, d = 0, a = t[l][1]) : (t[l][0] == u ? h += t[l][1].length : d += t[l][1].length, a && a.length <= Math.max(c, f) && a.length <= Math.max(
|
|
@@ -450,14 +450,14 @@ var rn = { exports: {} };
|
|
|
450
450
|
), t[i[s - 1] + 1][0] = u, s--, s--, l = s > 0 ? i[s - 1] : -1, c = 0, f = 0, h = 0, d = 0, a = null, r = !0)), l++;
|
|
451
451
|
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
|
|
452
452
|
if (t[l - 1][0] == o && t[l][0] == u) {
|
|
453
|
-
var
|
|
454
|
-
v >= E ? (v >=
|
|
453
|
+
var p = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(p, _), E = this.diff_commonOverlap_(_, p);
|
|
454
|
+
v >= E ? (v >= p.length / 2 || v >= _.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
455
455
|
g,
|
|
456
|
-
|
|
457
|
-
)), t[l - 1][1] =
|
|
456
|
+
_.substring(0, v)
|
|
457
|
+
)), t[l - 1][1] = p.substring(0, p.length - v), t[l + 1][1] = _.substring(v), l++) : (E >= p.length / 2 || E >= _.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
458
458
|
g,
|
|
459
|
-
|
|
460
|
-
)), t[l - 1][0] = u, t[l - 1][1] =
|
|
459
|
+
p.substring(0, E)
|
|
460
|
+
)), t[l - 1][0] = u, t[l - 1][1] = _.substring(0, _.length - E), t[l + 1][0] = o, t[l + 1][1] = p.substring(E), l++), l++;
|
|
461
461
|
}
|
|
462
462
|
l++;
|
|
463
463
|
}
|
|
@@ -465,8 +465,8 @@ var rn = { exports: {} };
|
|
|
465
465
|
function r(E, w) {
|
|
466
466
|
if (!E || !w)
|
|
467
467
|
return 6;
|
|
468
|
-
var m = E.charAt(E.length - 1), T = w.charAt(0), D = m.match(e.nonAlphaNumericRegex_), M = T.match(e.nonAlphaNumericRegex_), I = D && m.match(e.whitespaceRegex_), R = M && T.match(e.whitespaceRegex_),
|
|
469
|
-
return $ ||
|
|
468
|
+
var m = E.charAt(E.length - 1), T = w.charAt(0), D = m.match(e.nonAlphaNumericRegex_), M = T.match(e.nonAlphaNumericRegex_), I = D && m.match(e.whitespaceRegex_), R = M && T.match(e.whitespaceRegex_), H = I && m.match(e.linebreakRegex_), U = R && T.match(e.linebreakRegex_), $ = H && E.match(e.blanklineEndRegex_), F = U && w.match(e.blanklineStartRegex_);
|
|
469
|
+
return $ || F ? 5 : H || U ? 4 : D && !I && R ? 3 : I || R ? 2 : D || M ? 1 : 0;
|
|
470
470
|
}
|
|
471
471
|
for (var i = 1; i < t.length - 1; ) {
|
|
472
472
|
if (t[i - 1][0] == g && t[i + 1][0] == g) {
|
|
@@ -475,12 +475,12 @@ var rn = { exports: {} };
|
|
|
475
475
|
var f = a.substring(a.length - c);
|
|
476
476
|
s = s.substring(0, s.length - c), a = f + a.substring(0, a.length - c), l = f + l;
|
|
477
477
|
}
|
|
478
|
-
for (var h = s, d = a,
|
|
478
|
+
for (var h = s, d = a, p = l, _ = r(s, a) + r(a, l); a.charAt(0) === l.charAt(0); ) {
|
|
479
479
|
s += a.charAt(0), a = a.substring(1) + l.charAt(0), l = l.substring(1);
|
|
480
480
|
var v = r(s, a) + r(a, l);
|
|
481
|
-
v >=
|
|
481
|
+
v >= _ && (_ = v, h = s, d = a, p = l);
|
|
482
482
|
}
|
|
483
|
-
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] = d,
|
|
483
|
+
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] = d, p ? t[i + 1][1] = p : (t.splice(i + 1, 1), i--));
|
|
484
484
|
}
|
|
485
485
|
i++;
|
|
486
486
|
}
|
|
@@ -588,7 +588,7 @@ var rn = { exports: {} };
|
|
|
588
588
|
case "+":
|
|
589
589
|
try {
|
|
590
590
|
i[s++] = new e.Diff(u, decodeURI(f));
|
|
591
|
-
} catch (
|
|
591
|
+
} catch (p) {
|
|
592
592
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
593
593
|
}
|
|
594
594
|
break;
|
|
@@ -616,19 +616,19 @@ var rn = { exports: {} };
|
|
|
616
616
|
if (r.length > this.Match_MaxBits)
|
|
617
617
|
throw new Error("Pattern too long for this browser.");
|
|
618
618
|
var s = this.match_alphabet_(r), a = this;
|
|
619
|
-
function l(R,
|
|
620
|
-
var U = R / r.length, $ = Math.abs(i -
|
|
619
|
+
function l(R, H) {
|
|
620
|
+
var U = R / r.length, $ = Math.abs(i - H);
|
|
621
621
|
return a.Match_Distance ? U + $ / a.Match_Distance : $ ? 1 : U;
|
|
622
622
|
}
|
|
623
623
|
var c = this.Match_Threshold, f = t.indexOf(r, i);
|
|
624
624
|
f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
|
|
625
625
|
var h = 1 << r.length - 1;
|
|
626
626
|
f = -1;
|
|
627
|
-
for (var d,
|
|
628
|
-
for (d = 0,
|
|
629
|
-
l(E, i +
|
|
630
|
-
|
|
631
|
-
var w = Math.max(1, i -
|
|
627
|
+
for (var d, p, _ = r.length + t.length, v, E = 0; E < r.length; E++) {
|
|
628
|
+
for (d = 0, p = _; d < p; )
|
|
629
|
+
l(E, i + p) <= c ? d = p : _ = p, p = Math.floor((_ - d) / 2 + d);
|
|
630
|
+
_ = p;
|
|
631
|
+
var w = Math.max(1, i - p + 1), m = Math.min(i + p, t.length) + r.length, T = Array(m + 2);
|
|
632
632
|
T[m + 1] = (1 << E) - 1;
|
|
633
633
|
for (var D = m; D >= w; D--) {
|
|
634
634
|
var M = s[t.charAt(D - 1)];
|
|
@@ -695,22 +695,22 @@ var rn = { exports: {} };
|
|
|
695
695
|
throw new Error("Unknown call format to patch_make.");
|
|
696
696
|
if (a.length === 0)
|
|
697
697
|
return [];
|
|
698
|
-
for (var l = [], c = new e.patch_obj(), f = 0, h = 0, d = 0,
|
|
698
|
+
for (var l = [], c = new e.patch_obj(), f = 0, h = 0, d = 0, p = s, _ = s, v = 0; v < a.length; v++) {
|
|
699
699
|
var E = a[v][0], w = a[v][1];
|
|
700
700
|
switch (!f && E !== g && (c.start1 = h, c.start2 = d), E) {
|
|
701
701
|
case u:
|
|
702
|
-
c.diffs[f++] = a[v], c.length2 += w.length,
|
|
702
|
+
c.diffs[f++] = a[v], c.length2 += w.length, _ = _.substring(0, d) + w + _.substring(d);
|
|
703
703
|
break;
|
|
704
704
|
case o:
|
|
705
|
-
c.length1 += w.length, c.diffs[f++] = a[v],
|
|
705
|
+
c.length1 += w.length, c.diffs[f++] = a[v], _ = _.substring(0, d) + _.substring(d + w.length);
|
|
706
706
|
break;
|
|
707
707
|
case g:
|
|
708
|
-
w.length <= 2 * this.Patch_Margin && f && a.length != v + 1 ? (c.diffs[f++] = a[v], c.length1 += w.length, c.length2 += w.length) : w.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c,
|
|
708
|
+
w.length <= 2 * this.Patch_Margin && f && a.length != v + 1 ? (c.diffs[f++] = a[v], c.length1 += w.length, c.length2 += w.length) : w.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, p), l.push(c), c = new e.patch_obj(), f = 0, p = _, h = d);
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
E !== u && (h += w.length), E !== o && (d += w.length);
|
|
712
712
|
}
|
|
713
|
-
return f && (this.patch_addContext_(c,
|
|
713
|
+
return f && (this.patch_addContext_(c, p), l.push(c)), l;
|
|
714
714
|
}, e.prototype.patch_deepCopy = function(t) {
|
|
715
715
|
for (var r = [], i = 0; i < t.length; i++) {
|
|
716
716
|
var s = t[i], a = new e.patch_obj();
|
|
@@ -740,19 +740,19 @@ var rn = { exports: {} };
|
|
|
740
740
|
a[l] = !1, s -= t[l].length2 - t[l].length1;
|
|
741
741
|
else {
|
|
742
742
|
a[l] = !0, s = h - c;
|
|
743
|
-
var
|
|
744
|
-
if (d == -1 ?
|
|
743
|
+
var p;
|
|
744
|
+
if (d == -1 ? p = r.substring(h, h + f.length) : p = r.substring(h, d + this.Match_MaxBits), f == p)
|
|
745
745
|
r = r.substring(0, h) + this.diff_text2(t[l].diffs) + r.substring(h + f.length);
|
|
746
746
|
else {
|
|
747
|
-
var
|
|
748
|
-
if (f.length > this.Match_MaxBits && this.diff_levenshtein(
|
|
747
|
+
var _ = this.diff_main(f, p, !1);
|
|
748
|
+
if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
|
|
749
749
|
a[l] = !1;
|
|
750
750
|
else {
|
|
751
|
-
this.diff_cleanupSemanticLossless(
|
|
751
|
+
this.diff_cleanupSemanticLossless(_);
|
|
752
752
|
for (var v = 0, E, w = 0; w < t[l].diffs.length; w++) {
|
|
753
753
|
var m = t[l].diffs[w];
|
|
754
|
-
m[0] !== g && (E = this.diff_xIndex(
|
|
755
|
-
|
|
754
|
+
m[0] !== g && (E = this.diff_xIndex(_, v)), m[0] === u ? r = r.substring(0, h + E) + m[1] + r.substring(h + E) : m[0] === o && (r = r.substring(0, h + E) + r.substring(h + this.diff_xIndex(
|
|
755
|
+
_,
|
|
756
756
|
v + m[1].length
|
|
757
757
|
))), m[0] !== o && (v += m[1].length);
|
|
758
758
|
}
|
|
@@ -788,15 +788,15 @@ var rn = { exports: {} };
|
|
|
788
788
|
for (var a = s.start1, l = s.start2, c = ""; s.diffs.length !== 0; ) {
|
|
789
789
|
var f = new e.patch_obj(), h = !0;
|
|
790
790
|
for (f.start1 = a - c.length, f.start2 = l - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new e.Diff(g, c))); s.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
|
|
791
|
-
var d = s.diffs[0][0],
|
|
792
|
-
d === u ? (f.length2 +=
|
|
791
|
+
var d = s.diffs[0][0], p = s.diffs[0][1];
|
|
792
|
+
d === u ? (f.length2 += p.length, l += p.length, f.diffs.push(s.diffs.shift()), h = !1) : d === o && f.diffs.length == 1 && f.diffs[0][0] == g && p.length > 2 * r ? (f.length1 += p.length, a += p.length, h = !1, f.diffs.push(new e.Diff(d, p)), s.diffs.shift()) : (p = p.substring(
|
|
793
793
|
0,
|
|
794
794
|
r - f.length1 - this.Patch_Margin
|
|
795
|
-
), f.length1 +=
|
|
795
|
+
), f.length1 += p.length, a += p.length, d === g ? (f.length2 += p.length, l += p.length) : h = !1, f.diffs.push(new e.Diff(d, p)), p == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(p.length));
|
|
796
796
|
}
|
|
797
797
|
c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
798
|
-
var
|
|
799
|
-
|
|
798
|
+
var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
|
|
799
|
+
_ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === g ? f.diffs[f.diffs.length - 1][1] += _ : f.diffs.push(new e.Diff(g, _))), h || t.splice(++i, 0, f);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
}, e.prototype.patch_toText = function(t) {
|
|
@@ -860,7 +860,7 @@ var rn = { exports: {} };
|
|
|
860
860
|
return i.join("").replace(/%20/g, " ");
|
|
861
861
|
}, n.exports = e, n.exports.diff_match_patch = e, n.exports.DIFF_DELETE = o, n.exports.DIFF_INSERT = u, n.exports.DIFF_EQUAL = g;
|
|
862
862
|
})(rn);
|
|
863
|
-
var
|
|
863
|
+
var Le = rn.exports, Be = { exports: {} };
|
|
864
864
|
function $e(n) {
|
|
865
865
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
|
866
866
|
throw new Error("map is read-only");
|
|
@@ -897,7 +897,7 @@ function te(n, ...e) {
|
|
|
897
897
|
}), /** @type {T} */
|
|
898
898
|
o;
|
|
899
899
|
}
|
|
900
|
-
const
|
|
900
|
+
const Fn = "</span>", Ze = (n) => !!n.scope || n.sublanguage && n.language, zn = (n, { prefix: e }) => {
|
|
901
901
|
if (n.includes(".")) {
|
|
902
902
|
const o = n.split(".");
|
|
903
903
|
return [
|
|
@@ -939,7 +939,7 @@ class Gn {
|
|
|
939
939
|
*
|
|
940
940
|
* @param {Node} node */
|
|
941
941
|
closeNode(e) {
|
|
942
|
-
Ze(e) && (this.buffer +=
|
|
942
|
+
Ze(e) && (this.buffer += Fn);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* returns the accumulated buffer
|
|
@@ -1095,7 +1095,7 @@ function xe(n, { joinWith: e }) {
|
|
|
1095
1095
|
return r;
|
|
1096
1096
|
}).map((u) => `(${u})`).join(e);
|
|
1097
1097
|
}
|
|
1098
|
-
const Xn = /\b\B/, ln = "[a-zA-Z]\\w*",
|
|
1098
|
+
const Xn = /\b\B/, ln = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", cn = "\\b\\d+(\\.\\d+)?", un = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", fn = "\\b(0b[01]+)", jn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Jn = (n = {}) => {
|
|
1099
1099
|
const e = /^#![ ]*\//;
|
|
1100
1100
|
return n.binary && (n.begin = se(
|
|
1101
1101
|
e,
|
|
@@ -1236,11 +1236,11 @@ const Xn = /\b\B/, ln = "[a-zA-Z]\\w*", Fe = "[a-zA-Z_]\\w*", cn = "\\b\\d+(\\.\
|
|
|
1236
1236
|
relevance: 0
|
|
1237
1237
|
}, ut = {
|
|
1238
1238
|
scope: "title",
|
|
1239
|
-
begin:
|
|
1239
|
+
begin: He,
|
|
1240
1240
|
relevance: 0
|
|
1241
1241
|
}, ft = {
|
|
1242
1242
|
// excludes method names from keyword processing
|
|
1243
|
-
begin: "\\.\\s*" +
|
|
1243
|
+
begin: "\\.\\s*" + He,
|
|
1244
1244
|
relevance: 0
|
|
1245
1245
|
}, gt = function(n) {
|
|
1246
1246
|
return Object.assign(
|
|
@@ -1261,7 +1261,7 @@ var me = /* @__PURE__ */ Object.freeze({
|
|
|
1261
1261
|
__proto__: null,
|
|
1262
1262
|
MATCH_NOTHING_RE: Xn,
|
|
1263
1263
|
IDENT_RE: ln,
|
|
1264
|
-
UNDERSCORE_IDENT_RE:
|
|
1264
|
+
UNDERSCORE_IDENT_RE: He,
|
|
1265
1265
|
NUMBER_RE: cn,
|
|
1266
1266
|
C_NUMBER_RE: un,
|
|
1267
1267
|
BINARY_NUMBER_RE: fn,
|
|
@@ -1290,10 +1290,10 @@ function ht(n, e) {
|
|
|
1290
1290
|
function dt(n, e) {
|
|
1291
1291
|
n.className !== void 0 && (n.scope = n.className, delete n.className);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function pt(n, e) {
|
|
1294
1294
|
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = ht, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function _t(n, e) {
|
|
1297
1297
|
Array.isArray(n.illegal) && (n.illegal = Pe(...n.illegal));
|
|
1298
1298
|
}
|
|
1299
1299
|
function bt(n, e) {
|
|
@@ -1477,10 +1477,10 @@ function St(n) {
|
|
|
1477
1477
|
Dt,
|
|
1478
1478
|
Et
|
|
1479
1479
|
].forEach((l) => l(r, i)), n.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
|
|
1480
|
-
|
|
1480
|
+
pt,
|
|
1481
1481
|
// do this later so compiler extensions that come earlier have access to the
|
|
1482
1482
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1483
|
-
|
|
1483
|
+
_t,
|
|
1484
1484
|
// default to 1 relevance if not specified
|
|
1485
1485
|
vt
|
|
1486
1486
|
].forEach((l) => l(r, i)), r.isCompiled = !0;
|
|
@@ -1513,13 +1513,13 @@ function Rt(n) {
|
|
|
1513
1513
|
return te(n, { variants: null }, e);
|
|
1514
1514
|
})), n.cachedVariants ? n.cachedVariants : dn(n) ? te(n, { starts: n.starts ? te(n.starts) : null }) : Object.isFrozen(n) ? te(n) : n;
|
|
1515
1515
|
}
|
|
1516
|
-
var
|
|
1517
|
-
class
|
|
1516
|
+
var Lt = "11.7.0";
|
|
1517
|
+
class Ot extends Error {
|
|
1518
1518
|
constructor(e, o) {
|
|
1519
1519
|
super(e), this.name = "HTMLInjectionError", this.html = o;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1522
|
+
const Oe = sn, Je = te, qe = Symbol("nomatch"), Ct = 7, It = function(n) {
|
|
1523
1523
|
const e = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null), u = [];
|
|
1524
1524
|
let g = !0;
|
|
1525
1525
|
const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -1541,41 +1541,41 @@ const Le = sn, Je = te, qe = Symbol("nomatch"), Ct = 7, It = function(n) {
|
|
|
1541
1541
|
function a(b) {
|
|
1542
1542
|
let N = b.className + " ";
|
|
1543
1543
|
N += b.parentNode ? b.parentNode.className : "";
|
|
1544
|
-
const
|
|
1545
|
-
if (
|
|
1546
|
-
const k = R(
|
|
1547
|
-
return k || (je(t.replace("{}",
|
|
1544
|
+
const O = i.languageDetectRe.exec(N);
|
|
1545
|
+
if (O) {
|
|
1546
|
+
const k = R(O[1]);
|
|
1547
|
+
return k || (je(t.replace("{}", O[1])), je("Falling back to no-highlight mode for this block.", b)), k ? O[1] : "no-highlight";
|
|
1548
1548
|
}
|
|
1549
1549
|
return N.split(/\s+/).find((k) => s(k) || R(k));
|
|
1550
1550
|
}
|
|
1551
|
-
function l(b, N,
|
|
1551
|
+
function l(b, N, O) {
|
|
1552
1552
|
let k = "", x = "";
|
|
1553
|
-
typeof N == "object" ? (k = b,
|
|
1554
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N),
|
|
1553
|
+
typeof N == "object" ? (k = b, O = N.ignoreIllegals, x = N.language) : (ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ae("10.7.0", `Please use highlight(code, options) instead.
|
|
1554
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O === void 0 && (O = !0);
|
|
1555
1555
|
const W = {
|
|
1556
1556
|
code: k,
|
|
1557
1557
|
language: x
|
|
1558
1558
|
};
|
|
1559
1559
|
G("before:highlight", W);
|
|
1560
|
-
const Y = W.result ? W.result : c(W.language, W.code,
|
|
1560
|
+
const Y = W.result ? W.result : c(W.language, W.code, O);
|
|
1561
1561
|
return Y.code = W.code, G("after:highlight", Y), Y;
|
|
1562
1562
|
}
|
|
1563
|
-
function c(b, N,
|
|
1563
|
+
function c(b, N, O, k) {
|
|
1564
1564
|
const x = /* @__PURE__ */ Object.create(null);
|
|
1565
1565
|
function W(y, A) {
|
|
1566
1566
|
return y.keywords[A];
|
|
1567
1567
|
}
|
|
1568
1568
|
function Y() {
|
|
1569
|
-
if (!
|
|
1569
|
+
if (!L.keywords) {
|
|
1570
1570
|
z.addText(P);
|
|
1571
1571
|
return;
|
|
1572
1572
|
}
|
|
1573
1573
|
let y = 0;
|
|
1574
|
-
|
|
1575
|
-
let A =
|
|
1574
|
+
L.keywordPatternRe.lastIndex = 0;
|
|
1575
|
+
let A = L.keywordPatternRe.exec(P), C = "";
|
|
1576
1576
|
for (; A; ) {
|
|
1577
1577
|
C += P.substring(y, A.index);
|
|
1578
|
-
const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(
|
|
1578
|
+
const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(L, B);
|
|
1579
1579
|
if (K) {
|
|
1580
1580
|
const [X, Tn] = K;
|
|
1581
1581
|
if (z.addText(C), C = "", x[B] = (x[B] || 0) + 1, x[B] <= Ct && (Ee += Tn), X.startsWith("_"))
|
|
@@ -1586,7 +1586,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1586
1586
|
}
|
|
1587
1587
|
} else
|
|
1588
1588
|
C += A[0];
|
|
1589
|
-
y =
|
|
1589
|
+
y = L.keywordPatternRe.lastIndex, A = L.keywordPatternRe.exec(P);
|
|
1590
1590
|
}
|
|
1591
1591
|
C += P.substring(y), z.addText(C);
|
|
1592
1592
|
}
|
|
@@ -1594,19 +1594,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1594
1594
|
if (P === "")
|
|
1595
1595
|
return;
|
|
1596
1596
|
let y = null;
|
|
1597
|
-
if (typeof
|
|
1598
|
-
if (!e[
|
|
1597
|
+
if (typeof L.subLanguage == "string") {
|
|
1598
|
+
if (!e[L.subLanguage]) {
|
|
1599
1599
|
z.addText(P);
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
|
-
y = c(
|
|
1602
|
+
y = c(L.subLanguage, P, !0, Ke[L.subLanguage]), Ke[L.subLanguage] = /** @type {CompiledMode} */
|
|
1603
1603
|
y._top;
|
|
1604
1604
|
} else
|
|
1605
|
-
y = h(P,
|
|
1606
|
-
|
|
1605
|
+
y = h(P, L.subLanguage.length ? L.subLanguage : null);
|
|
1606
|
+
L.relevance > 0 && (Ee += y.relevance), z.addSublanguage(y._emitter, y.language);
|
|
1607
1607
|
}
|
|
1608
1608
|
function Q() {
|
|
1609
|
-
|
|
1609
|
+
L.subLanguage != null ? be() : Y(), P = "";
|
|
1610
1610
|
}
|
|
1611
1611
|
function ee(y, A) {
|
|
1612
1612
|
let C = 1;
|
|
@@ -1620,8 +1620,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1620
1620
|
K ? z.addKeyword(X, K) : (P = X, Y(), P = ""), C++;
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return y.scope && typeof y.scope == "string" && z.openNode(ne.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (z.addKeyword(P, ne.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), P = "") : y.beginScope._multi && (ee(y.beginScope, A), P = "")),
|
|
1623
|
+
function Fe(y, A) {
|
|
1624
|
+
return y.scope && typeof y.scope == "string" && z.openNode(ne.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (z.addKeyword(P, ne.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), P = "") : y.beginScope._multi && (ee(y.beginScope, A), P = "")), L = Object.create(y, { parent: { value: L } }), L;
|
|
1625
1625
|
}
|
|
1626
1626
|
function ze(y, A, C) {
|
|
1627
1627
|
let B = Zn(y.endRe, C);
|
|
@@ -1640,29 +1640,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1640
1640
|
return ze(y.parent, A, C);
|
|
1641
1641
|
}
|
|
1642
1642
|
function yn(y) {
|
|
1643
|
-
return
|
|
1643
|
+
return L.matcher.regexIndex === 0 ? (P += y[0], 1) : (Re = !0, 0);
|
|
1644
1644
|
}
|
|
1645
1645
|
function wn(y) {
|
|
1646
1646
|
const A = y[0], C = y.rule, B = new Ve(C), K = [C.__beforeBegin, C["on:begin"]];
|
|
1647
1647
|
for (const X of K)
|
|
1648
1648
|
if (X && (X(y, B), B.isMatchIgnored))
|
|
1649
1649
|
return yn(A);
|
|
1650
|
-
return C.skip ? P += A : (C.excludeBegin && (P += A), Q(), !C.returnBegin && !C.excludeBegin && (P = A)),
|
|
1650
|
+
return C.skip ? P += A : (C.excludeBegin && (P += A), Q(), !C.returnBegin && !C.excludeBegin && (P = A)), Fe(C, y), C.returnBegin ? 0 : A.length;
|
|
1651
1651
|
}
|
|
1652
1652
|
function Nn(y) {
|
|
1653
|
-
const A = y[0], C = N.substring(y.index), B = ze(
|
|
1653
|
+
const A = y[0], C = N.substring(y.index), B = ze(L, y, C);
|
|
1654
1654
|
if (!B)
|
|
1655
1655
|
return qe;
|
|
1656
|
-
const K =
|
|
1657
|
-
|
|
1656
|
+
const K = L;
|
|
1657
|
+
L.endScope && L.endScope._wrap ? (Q(), z.addKeyword(A, L.endScope._wrap)) : L.endScope && L.endScope._multi ? (Q(), ee(L.endScope, y)) : K.skip ? P += A : (K.returnEnd || K.excludeEnd || (P += A), Q(), K.excludeEnd && (P = A));
|
|
1658
1658
|
do
|
|
1659
|
-
|
|
1660
|
-
while (
|
|
1661
|
-
return B.starts &&
|
|
1659
|
+
L.scope && z.closeNode(), !L.skip && !L.subLanguage && (Ee += L.relevance), L = L.parent;
|
|
1660
|
+
while (L !== B.parent);
|
|
1661
|
+
return B.starts && Fe(B.starts, y), K.returnEnd ? 0 : A.length;
|
|
1662
1662
|
}
|
|
1663
1663
|
function Mn() {
|
|
1664
1664
|
const y = [];
|
|
1665
|
-
for (let A =
|
|
1665
|
+
for (let A = L; A !== ne; A = A.parent)
|
|
1666
1666
|
A.scope && y.unshift(A.scope);
|
|
1667
1667
|
y.forEach((A) => z.openNode(A));
|
|
1668
1668
|
}
|
|
@@ -1680,9 +1680,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1680
1680
|
}
|
|
1681
1681
|
if (ve = A, A.type === "begin")
|
|
1682
1682
|
return wn(A);
|
|
1683
|
-
if (A.type === "illegal" && !
|
|
1684
|
-
const B = new Error('Illegal lexeme "' + C + '" for mode "' + (
|
|
1685
|
-
throw B.mode =
|
|
1683
|
+
if (A.type === "illegal" && !O) {
|
|
1684
|
+
const B = new Error('Illegal lexeme "' + C + '" for mode "' + (L.scope || "<unnamed>") + '"');
|
|
1685
|
+
throw B.mode = L, B;
|
|
1686
1686
|
} else if (A.type === "end") {
|
|
1687
1687
|
const B = Nn(A);
|
|
1688
1688
|
if (B !== qe)
|
|
@@ -1698,14 +1698,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1698
1698
|
if (!ne)
|
|
1699
1699
|
throw ie(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1700
1700
|
const An = St(ne);
|
|
1701
|
-
let De = "",
|
|
1701
|
+
let De = "", L = k || An;
|
|
1702
1702
|
const Ke = {}, z = new i.__emitter(i);
|
|
1703
1703
|
Mn();
|
|
1704
1704
|
let P = "", Ee = 0, re = 0, Se = 0, Re = !1;
|
|
1705
1705
|
try {
|
|
1706
|
-
for (
|
|
1707
|
-
Se++, Re ? Re = !1 :
|
|
1708
|
-
const y =
|
|
1706
|
+
for (L.matcher.considerAll(); ; ) {
|
|
1707
|
+
Se++, Re ? Re = !1 : L.matcher.considerAll(), L.matcher.lastIndex = re;
|
|
1708
|
+
const y = L.matcher.exec(N);
|
|
1709
1709
|
if (!y)
|
|
1710
1710
|
break;
|
|
1711
1711
|
const A = N.substring(re, y.index), C = Ge(A, y);
|
|
@@ -1717,13 +1717,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1717
1717
|
relevance: Ee,
|
|
1718
1718
|
illegal: !1,
|
|
1719
1719
|
_emitter: z,
|
|
1720
|
-
_top:
|
|
1720
|
+
_top: L
|
|
1721
1721
|
};
|
|
1722
1722
|
} catch (y) {
|
|
1723
1723
|
if (y.message && y.message.includes("Illegal"))
|
|
1724
1724
|
return {
|
|
1725
1725
|
language: b,
|
|
1726
|
-
value:
|
|
1726
|
+
value: Oe(N),
|
|
1727
1727
|
illegal: !0,
|
|
1728
1728
|
relevance: 0,
|
|
1729
1729
|
_illegalBy: {
|
|
@@ -1738,19 +1738,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1738
1738
|
if (g)
|
|
1739
1739
|
return {
|
|
1740
1740
|
language: b,
|
|
1741
|
-
value:
|
|
1741
|
+
value: Oe(N),
|
|
1742
1742
|
illegal: !1,
|
|
1743
1743
|
relevance: 0,
|
|
1744
1744
|
errorRaised: y,
|
|
1745
1745
|
_emitter: z,
|
|
1746
|
-
_top:
|
|
1746
|
+
_top: L
|
|
1747
1747
|
};
|
|
1748
1748
|
throw y;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
function f(b) {
|
|
1752
1752
|
const N = {
|
|
1753
|
-
value:
|
|
1753
|
+
value: Oe(b),
|
|
1754
1754
|
illegal: !1,
|
|
1755
1755
|
relevance: 0,
|
|
1756
1756
|
_top: r,
|
|
@@ -1760,10 +1760,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1760
1760
|
}
|
|
1761
1761
|
function h(b, N) {
|
|
1762
1762
|
N = N || i.languages || Object.keys(e);
|
|
1763
|
-
const
|
|
1763
|
+
const O = f(b), k = N.filter(R).filter(U).map(
|
|
1764
1764
|
(Q) => c(Q, b, !1)
|
|
1765
1765
|
);
|
|
1766
|
-
k.unshift(
|
|
1766
|
+
k.unshift(O);
|
|
1767
1767
|
const x = k.sort((Q, ee) => {
|
|
1768
1768
|
if (Q.relevance !== ee.relevance)
|
|
1769
1769
|
return ee.relevance - Q.relevance;
|
|
@@ -1777,26 +1777,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1777
1777
|
}), [W, Y] = x, be = W;
|
|
1778
1778
|
return be.secondBest = Y, be;
|
|
1779
1779
|
}
|
|
1780
|
-
function d(b, N,
|
|
1781
|
-
const k = N && o[N] ||
|
|
1780
|
+
function d(b, N, O) {
|
|
1781
|
+
const k = N && o[N] || O;
|
|
1782
1782
|
b.classList.add("hljs"), b.classList.add(`language-${k}`);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function p(b) {
|
|
1785
1785
|
let N = null;
|
|
1786
|
-
const
|
|
1787
|
-
if (s(
|
|
1786
|
+
const O = a(b);
|
|
1787
|
+
if (s(O))
|
|
1788
1788
|
return;
|
|
1789
1789
|
if (G(
|
|
1790
1790
|
"before:highlightElement",
|
|
1791
|
-
{ el: b, language:
|
|
1791
|
+
{ el: b, language: O }
|
|
1792
1792
|
), 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))
|
|
1793
|
-
throw new
|
|
1793
|
+
throw new Ot(
|
|
1794
1794
|
"One of your code blocks includes unescaped HTML.",
|
|
1795
1795
|
b.innerHTML
|
|
1796
1796
|
);
|
|
1797
1797
|
N = b;
|
|
1798
|
-
const k = N.textContent, x =
|
|
1799
|
-
b.innerHTML = x.value, d(b,
|
|
1798
|
+
const k = N.textContent, x = O ? l(k, { language: O, ignoreIllegals: !0 }) : h(k);
|
|
1799
|
+
b.innerHTML = x.value, d(b, O, x.language), b.result = {
|
|
1800
1800
|
language: x.language,
|
|
1801
1801
|
// TODO: remove with version 11.0
|
|
1802
1802
|
re: x.relevance,
|
|
@@ -1806,7 +1806,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1806
1806
|
relevance: x.secondBest.relevance
|
|
1807
1807
|
}), G("after:highlightElement", { el: b, result: x, text: k });
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function _(b) {
|
|
1810
1810
|
i = Je(i, b);
|
|
1811
1811
|
}
|
|
1812
1812
|
const v = () => {
|
|
@@ -1821,24 +1821,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1821
1821
|
w = !0;
|
|
1822
1822
|
return;
|
|
1823
1823
|
}
|
|
1824
|
-
document.querySelectorAll(i.cssSelector).forEach(
|
|
1824
|
+
document.querySelectorAll(i.cssSelector).forEach(p);
|
|
1825
1825
|
}
|
|
1826
1826
|
function T() {
|
|
1827
1827
|
w && m();
|
|
1828
1828
|
}
|
|
1829
1829
|
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
|
|
1830
1830
|
function D(b, N) {
|
|
1831
|
-
let
|
|
1831
|
+
let O = null;
|
|
1832
1832
|
try {
|
|
1833
|
-
|
|
1833
|
+
O = N(n);
|
|
1834
1834
|
} catch (k) {
|
|
1835
1835
|
if (ie("Language definition for '{}' could not be registered.".replace("{}", b)), g)
|
|
1836
1836
|
ie(k);
|
|
1837
1837
|
else
|
|
1838
1838
|
throw k;
|
|
1839
|
-
|
|
1839
|
+
O = r;
|
|
1840
1840
|
}
|
|
1841
|
-
|
|
1841
|
+
O.name || (O.name = b), e[b] = O, O.rawDefinition = N.bind(null, n), O.aliases && H(O.aliases, { languageName: b });
|
|
1842
1842
|
}
|
|
1843
1843
|
function M(b) {
|
|
1844
1844
|
delete e[b];
|
|
@@ -1851,9 +1851,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1851
1851
|
function R(b) {
|
|
1852
1852
|
return b = (b || "").toLowerCase(), e[b] || e[o[b]];
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
typeof b == "string" && (b = [b]), b.forEach((
|
|
1856
|
-
o[
|
|
1854
|
+
function H(b, { languageName: N }) {
|
|
1855
|
+
typeof b == "string" && (b = [b]), b.forEach((O) => {
|
|
1856
|
+
o[O.toLowerCase()] = N;
|
|
1857
1857
|
});
|
|
1858
1858
|
}
|
|
1859
1859
|
function U(b) {
|
|
@@ -1871,41 +1871,41 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1871
1871
|
);
|
|
1872
1872
|
});
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function F(b) {
|
|
1875
1875
|
$(b), u.push(b);
|
|
1876
1876
|
}
|
|
1877
1877
|
function G(b, N) {
|
|
1878
|
-
const
|
|
1878
|
+
const O = b;
|
|
1879
1879
|
u.forEach(function(k) {
|
|
1880
|
-
k[
|
|
1880
|
+
k[O] && k[O](N);
|
|
1881
1881
|
});
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1884
|
-
return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."),
|
|
1883
|
+
function _e(b) {
|
|
1884
|
+
return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."), p(b);
|
|
1885
1885
|
}
|
|
1886
1886
|
Object.assign(n, {
|
|
1887
1887
|
highlight: l,
|
|
1888
1888
|
highlightAuto: h,
|
|
1889
1889
|
highlightAll: m,
|
|
1890
|
-
highlightElement:
|
|
1890
|
+
highlightElement: p,
|
|
1891
1891
|
// TODO: Remove with v12 API
|
|
1892
|
-
highlightBlock:
|
|
1893
|
-
configure:
|
|
1892
|
+
highlightBlock: _e,
|
|
1893
|
+
configure: _,
|
|
1894
1894
|
initHighlighting: v,
|
|
1895
1895
|
initHighlightingOnLoad: E,
|
|
1896
1896
|
registerLanguage: D,
|
|
1897
1897
|
unregisterLanguage: M,
|
|
1898
1898
|
listLanguages: I,
|
|
1899
1899
|
getLanguage: R,
|
|
1900
|
-
registerAliases:
|
|
1900
|
+
registerAliases: H,
|
|
1901
1901
|
autoDetection: U,
|
|
1902
1902
|
inherit: Je,
|
|
1903
|
-
addPlugin:
|
|
1903
|
+
addPlugin: F
|
|
1904
1904
|
}), n.debugMode = function() {
|
|
1905
1905
|
g = !1;
|
|
1906
1906
|
}, n.safeMode = function() {
|
|
1907
1907
|
g = !0;
|
|
1908
|
-
}, n.versionString =
|
|
1908
|
+
}, n.versionString = Lt, n.regex = {
|
|
1909
1909
|
concat: se,
|
|
1910
1910
|
lookahead: an,
|
|
1911
1911
|
either: Pe,
|
|
@@ -1919,7 +1919,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1919
1919
|
var he = It({}), kt = he;
|
|
1920
1920
|
he.HighlightJS = he;
|
|
1921
1921
|
he.default = he;
|
|
1922
|
-
const Z = /* @__PURE__ */
|
|
1922
|
+
const Z = /* @__PURE__ */ Hn(kt);
|
|
1923
1923
|
function Bt(n) {
|
|
1924
1924
|
const e = n.regex, o = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, g = {
|
|
1925
1925
|
className: "symbol",
|
|
@@ -2186,7 +2186,7 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
2186
2186
|
"undefined",
|
|
2187
2187
|
"NaN",
|
|
2188
2188
|
"Infinity"
|
|
2189
|
-
],
|
|
2189
|
+
], pn = [
|
|
2190
2190
|
// Fundamental objects
|
|
2191
2191
|
"Object",
|
|
2192
2192
|
"Function",
|
|
@@ -2236,7 +2236,7 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
2236
2236
|
"Intl",
|
|
2237
2237
|
// WebAssembly
|
|
2238
2238
|
"WebAssembly"
|
|
2239
|
-
],
|
|
2239
|
+
], _n = [
|
|
2240
2240
|
"Error",
|
|
2241
2241
|
"EvalError",
|
|
2242
2242
|
"InternalError",
|
|
@@ -2276,13 +2276,13 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
|
2276
2276
|
// Node.js
|
|
2277
2277
|
], xt = [].concat(
|
|
2278
2278
|
bn,
|
|
2279
|
-
|
|
2280
|
-
|
|
2279
|
+
pn,
|
|
2280
|
+
_n
|
|
2281
2281
|
);
|
|
2282
|
-
function
|
|
2283
|
-
const e = n.regex, o = (N, { after:
|
|
2282
|
+
function Ht(n) {
|
|
2283
|
+
const e = n.regex, o = (N, { after: O }) => {
|
|
2284
2284
|
const k = "</" + N[0].slice(1);
|
|
2285
|
-
return N.input.indexOf(k,
|
|
2285
|
+
return N.input.indexOf(k, O) !== -1;
|
|
2286
2286
|
}, u = en, g = {
|
|
2287
2287
|
begin: "<>",
|
|
2288
2288
|
end: "</>"
|
|
@@ -2293,7 +2293,7 @@ function Ft(n) {
|
|
|
2293
2293
|
* @param {RegExpMatchArray} match
|
|
2294
2294
|
* @param {CallbackResponse} response
|
|
2295
2295
|
*/
|
|
2296
|
-
isTrulyOpeningTag: (N,
|
|
2296
|
+
isTrulyOpeningTag: (N, O) => {
|
|
2297
2297
|
const k = N[0].length + N.index, x = N.input[k];
|
|
2298
2298
|
if (
|
|
2299
2299
|
// HTML should not include another raw `<` inside a tag
|
|
@@ -2303,18 +2303,18 @@ function Ft(n) {
|
|
|
2303
2303
|
// `<T, A extends keyof T, V>`
|
|
2304
2304
|
x === ","
|
|
2305
2305
|
) {
|
|
2306
|
-
|
|
2306
|
+
O.ignoreMatch();
|
|
2307
2307
|
return;
|
|
2308
2308
|
}
|
|
2309
|
-
x === ">" && (o(N, { after: k }) ||
|
|
2309
|
+
x === ">" && (o(N, { after: k }) || O.ignoreMatch());
|
|
2310
2310
|
let W;
|
|
2311
2311
|
const Y = N.input.substring(k);
|
|
2312
2312
|
if (W = Y.match(/^\s*=/)) {
|
|
2313
|
-
|
|
2313
|
+
O.ignoreMatch();
|
|
2314
2314
|
return;
|
|
2315
2315
|
}
|
|
2316
2316
|
if ((W = Y.match(/^\s+extends\s+/)) && W.index === 0) {
|
|
2317
|
-
|
|
2317
|
+
O.ignoreMatch();
|
|
2318
2318
|
return;
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
@@ -2372,7 +2372,7 @@ function Ft(n) {
|
|
|
2372
2372
|
],
|
|
2373
2373
|
subLanguage: "css"
|
|
2374
2374
|
}
|
|
2375
|
-
},
|
|
2375
|
+
}, p = {
|
|
2376
2376
|
className: "string",
|
|
2377
2377
|
begin: "`",
|
|
2378
2378
|
end: "`",
|
|
@@ -2430,7 +2430,7 @@ function Ft(n) {
|
|
|
2430
2430
|
n.QUOTE_STRING_MODE,
|
|
2431
2431
|
h,
|
|
2432
2432
|
d,
|
|
2433
|
-
|
|
2433
|
+
p,
|
|
2434
2434
|
// Skip numbers when they are part of a variable name
|
|
2435
2435
|
{ match: /\$\d+/ },
|
|
2436
2436
|
c
|
|
@@ -2517,8 +2517,8 @@ function Ft(n) {
|
|
|
2517
2517
|
keywords: {
|
|
2518
2518
|
_: [
|
|
2519
2519
|
// se we still get relevance credit for JS library classes
|
|
2520
|
-
...
|
|
2521
|
-
...
|
|
2520
|
+
...pn,
|
|
2521
|
+
..._n
|
|
2522
2522
|
]
|
|
2523
2523
|
}
|
|
2524
2524
|
}, I = {
|
|
@@ -2551,7 +2551,7 @@ function Ft(n) {
|
|
|
2551
2551
|
label: "func.def",
|
|
2552
2552
|
contains: [T],
|
|
2553
2553
|
illegal: /%/
|
|
2554
|
-
},
|
|
2554
|
+
}, H = {
|
|
2555
2555
|
relevance: 0,
|
|
2556
2556
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2557
2557
|
className: "variable.constant"
|
|
@@ -2572,7 +2572,7 @@ function Ft(n) {
|
|
|
2572
2572
|
),
|
|
2573
2573
|
className: "title.function",
|
|
2574
2574
|
relevance: 0
|
|
2575
|
-
},
|
|
2575
|
+
}, F = {
|
|
2576
2576
|
begin: e.concat(/\./, e.lookahead(
|
|
2577
2577
|
e.concat(u, /(?![0-9A-Za-z$_(])/)
|
|
2578
2578
|
)),
|
|
@@ -2599,7 +2599,7 @@ function Ft(n) {
|
|
|
2599
2599
|
},
|
|
2600
2600
|
T
|
|
2601
2601
|
]
|
|
2602
|
-
},
|
|
2602
|
+
}, _e = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
|
|
2603
2603
|
match: [
|
|
2604
2604
|
/const|var|let/,
|
|
2605
2605
|
/\s+/,
|
|
@@ -2608,7 +2608,7 @@ function Ft(n) {
|
|
|
2608
2608
|
/=\s*/,
|
|
2609
2609
|
/(async\s*)?/,
|
|
2610
2610
|
// async is optional
|
|
2611
|
-
e.lookahead(
|
|
2611
|
+
e.lookahead(_e)
|
|
2612
2612
|
],
|
|
2613
2613
|
keywords: "async",
|
|
2614
2614
|
className: {
|
|
@@ -2637,7 +2637,7 @@ function Ft(n) {
|
|
|
2637
2637
|
n.QUOTE_STRING_MODE,
|
|
2638
2638
|
h,
|
|
2639
2639
|
d,
|
|
2640
|
-
|
|
2640
|
+
p,
|
|
2641
2641
|
v,
|
|
2642
2642
|
// Skip numbers when they are part of a variable name
|
|
2643
2643
|
{ match: /\$\d+/ },
|
|
@@ -2662,7 +2662,7 @@ function Ft(n) {
|
|
|
2662
2662
|
// we have to count the parens to make sure we actually have the
|
|
2663
2663
|
// correct bounding ( ) before the =>. There could be any number of
|
|
2664
2664
|
// sub-expressions inside also surrounded by parens.
|
|
2665
|
-
begin:
|
|
2665
|
+
begin: _e,
|
|
2666
2666
|
returnBegin: !0,
|
|
2667
2667
|
end: "\\s*=>",
|
|
2668
2668
|
contains: [
|
|
@@ -2748,7 +2748,7 @@ function Ft(n) {
|
|
|
2748
2748
|
match: /\.\.\./,
|
|
2749
2749
|
relevance: 0
|
|
2750
2750
|
},
|
|
2751
|
-
|
|
2751
|
+
F,
|
|
2752
2752
|
// hack: prevents detection of keywords in some circumstances
|
|
2753
2753
|
// .keyword()
|
|
2754
2754
|
// $keyword = x
|
|
@@ -2762,7 +2762,7 @@ function Ft(n) {
|
|
|
2762
2762
|
contains: [T]
|
|
2763
2763
|
},
|
|
2764
2764
|
$,
|
|
2765
|
-
|
|
2765
|
+
H,
|
|
2766
2766
|
D,
|
|
2767
2767
|
G,
|
|
2768
2768
|
{
|
|
@@ -2772,7 +2772,7 @@ function Ft(n) {
|
|
|
2772
2772
|
]
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
|
-
function
|
|
2775
|
+
function Ft(n) {
|
|
2776
2776
|
const e = {
|
|
2777
2777
|
className: "attr",
|
|
2778
2778
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2883,7 +2883,7 @@ function zt(n) {
|
|
|
2883
2883
|
contains: [f],
|
|
2884
2884
|
illegal: "\\n",
|
|
2885
2885
|
relevance: 0
|
|
2886
|
-
},
|
|
2886
|
+
}, p = [
|
|
2887
2887
|
u,
|
|
2888
2888
|
{
|
|
2889
2889
|
className: "meta",
|
|
@@ -2962,12 +2962,12 @@ function zt(n) {
|
|
|
2962
2962
|
h,
|
|
2963
2963
|
d,
|
|
2964
2964
|
t
|
|
2965
|
-
],
|
|
2966
|
-
return
|
|
2965
|
+
], _ = [...p];
|
|
2966
|
+
return _.pop(), _.push(r), f.contains = _, {
|
|
2967
2967
|
name: "YAML",
|
|
2968
2968
|
case_insensitive: !0,
|
|
2969
2969
|
aliases: ["yml"],
|
|
2970
|
-
contains:
|
|
2970
|
+
contains: p
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
2973
|
function Gt(n) {
|
|
@@ -3206,7 +3206,7 @@ function Kt(n) {
|
|
|
3206
3206
|
n.APOS_STRING_MODE,
|
|
3207
3207
|
n.QUOTE_STRING_MODE
|
|
3208
3208
|
]
|
|
3209
|
-
}, f = "[0-9](_?[0-9])*", h = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`,
|
|
3209
|
+
}, f = "[0-9](_?[0-9])*", h = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, p = {
|
|
3210
3210
|
className: "number",
|
|
3211
3211
|
relevance: 0,
|
|
3212
3212
|
variants: [
|
|
@@ -3250,7 +3250,7 @@ function Kt(n) {
|
|
|
3250
3250
|
begin: `\\b(${f})[jJ](?=${d})`
|
|
3251
3251
|
}
|
|
3252
3252
|
]
|
|
3253
|
-
},
|
|
3253
|
+
}, _ = {
|
|
3254
3254
|
className: "comment",
|
|
3255
3255
|
begin: e.lookahead(/# type:/),
|
|
3256
3256
|
end: /$/,
|
|
@@ -3285,7 +3285,7 @@ function Kt(n) {
|
|
|
3285
3285
|
contains: [
|
|
3286
3286
|
"self",
|
|
3287
3287
|
s,
|
|
3288
|
-
|
|
3288
|
+
p,
|
|
3289
3289
|
c,
|
|
3290
3290
|
n.HASH_COMMENT_MODE
|
|
3291
3291
|
]
|
|
@@ -3294,7 +3294,7 @@ function Kt(n) {
|
|
|
3294
3294
|
};
|
|
3295
3295
|
return a.contains = [
|
|
3296
3296
|
c,
|
|
3297
|
-
|
|
3297
|
+
p,
|
|
3298
3298
|
s
|
|
3299
3299
|
], {
|
|
3300
3300
|
name: "Python",
|
|
@@ -3308,7 +3308,7 @@ function Kt(n) {
|
|
|
3308
3308
|
illegal: /(<\/|->|\?)|=>/,
|
|
3309
3309
|
contains: [
|
|
3310
3310
|
s,
|
|
3311
|
-
|
|
3311
|
+
p,
|
|
3312
3312
|
{
|
|
3313
3313
|
// very common convention
|
|
3314
3314
|
begin: /\bself\b/
|
|
@@ -3320,7 +3320,7 @@ function Kt(n) {
|
|
|
3320
3320
|
relevance: 0
|
|
3321
3321
|
},
|
|
3322
3322
|
c,
|
|
3323
|
-
|
|
3323
|
+
_,
|
|
3324
3324
|
n.HASH_COMMENT_MODE,
|
|
3325
3325
|
{
|
|
3326
3326
|
match: [
|
|
@@ -3366,7 +3366,7 @@ function Kt(n) {
|
|
|
3366
3366
|
begin: /^[\t ]*@/,
|
|
3367
3367
|
end: /(?=#)|$/,
|
|
3368
3368
|
contains: [
|
|
3369
|
-
|
|
3369
|
+
p,
|
|
3370
3370
|
v,
|
|
3371
3371
|
c
|
|
3372
3372
|
]
|
|
@@ -3713,7 +3713,7 @@ function Qt(n) {
|
|
|
3713
3713
|
], d = [
|
|
3714
3714
|
"true",
|
|
3715
3715
|
"false"
|
|
3716
|
-
],
|
|
3716
|
+
], p = { match: /(\/[a-z._-]+)+/ }, _ = [
|
|
3717
3717
|
"break",
|
|
3718
3718
|
"cd",
|
|
3719
3719
|
"continue",
|
|
@@ -3936,7 +3936,7 @@ function Qt(n) {
|
|
|
3936
3936
|
keyword: h,
|
|
3937
3937
|
literal: d,
|
|
3938
3938
|
built_in: [
|
|
3939
|
-
...
|
|
3939
|
+
..._,
|
|
3940
3940
|
...v,
|
|
3941
3941
|
// Shell modifiers
|
|
3942
3942
|
"set",
|
|
@@ -3954,7 +3954,7 @@ function Qt(n) {
|
|
|
3954
3954
|
a,
|
|
3955
3955
|
n.HASH_COMMENT_MODE,
|
|
3956
3956
|
t,
|
|
3957
|
-
|
|
3957
|
+
p,
|
|
3958
3958
|
r,
|
|
3959
3959
|
i,
|
|
3960
3960
|
s,
|
|
@@ -4514,10 +4514,10 @@ function Vt(n) {
|
|
|
4514
4514
|
], h = l, d = [
|
|
4515
4515
|
...a,
|
|
4516
4516
|
...s
|
|
4517
|
-
].filter((w) => !l.includes(w)),
|
|
4517
|
+
].filter((w) => !l.includes(w)), p = {
|
|
4518
4518
|
className: "variable",
|
|
4519
4519
|
begin: /@[a-z0-9]+/
|
|
4520
|
-
},
|
|
4520
|
+
}, _ = {
|
|
4521
4521
|
className: "operator",
|
|
4522
4522
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4523
4523
|
relevance: 0
|
|
@@ -4561,19 +4561,19 @@ function Vt(n) {
|
|
|
4561
4561
|
begin: e.either(...r)
|
|
4562
4562
|
},
|
|
4563
4563
|
v,
|
|
4564
|
-
|
|
4564
|
+
p,
|
|
4565
4565
|
u,
|
|
4566
4566
|
g,
|
|
4567
4567
|
n.C_NUMBER_MODE,
|
|
4568
4568
|
n.C_BLOCK_COMMENT_MODE,
|
|
4569
4569
|
o,
|
|
4570
|
-
|
|
4570
|
+
_
|
|
4571
4571
|
]
|
|
4572
4572
|
};
|
|
4573
4573
|
}
|
|
4574
4574
|
Z.registerLanguage("xml", Bt);
|
|
4575
|
-
Z.registerLanguage("javascript",
|
|
4576
|
-
Z.registerLanguage("json",
|
|
4575
|
+
Z.registerLanguage("javascript", Ht);
|
|
4576
|
+
Z.registerLanguage("json", Ft);
|
|
4577
4577
|
Z.registerLanguage("yaml", zt);
|
|
4578
4578
|
Z.registerLanguage("plaintext", Gt);
|
|
4579
4579
|
Z.registerLanguage("python", Kt);
|
|
@@ -4591,15 +4591,15 @@ function Ae(n, e, o = "word") {
|
|
|
4591
4591
|
).join("");
|
|
4592
4592
|
}
|
|
4593
4593
|
function En(n, e) {
|
|
4594
|
-
const o = new
|
|
4594
|
+
const o = new Le.diff_match_patch(), u = o.diff_linesToChars_(n, e), g = u.chars1, t = u.chars2, r = u.lineArray, i = o.diff_main(g, t, !1);
|
|
4595
4595
|
return o.diff_charsToLines_(i, r), i.map((s) => {
|
|
4596
4596
|
const [a, l] = s;
|
|
4597
4597
|
return {
|
|
4598
4598
|
count: l.trim().split(`
|
|
4599
4599
|
`).length,
|
|
4600
4600
|
value: l,
|
|
4601
|
-
removed: a ===
|
|
4602
|
-
added: a ===
|
|
4601
|
+
removed: a === Le.DIFF_DELETE,
|
|
4602
|
+
added: a === Le.DIFF_INSERT
|
|
4603
4603
|
};
|
|
4604
4604
|
});
|
|
4605
4605
|
}
|
|
@@ -4644,19 +4644,19 @@ function mn(n) {
|
|
|
4644
4644
|
return { additionsNum: o, deletionsNum: u };
|
|
4645
4645
|
}
|
|
4646
4646
|
function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
4647
|
-
const t = () => ({ type: S.EMPTY }), r = (
|
|
4647
|
+
const t = () => ({ type: S.EMPTY }), r = (p, _, v) => ({ type: p, num: _, code: v }), i = En(n, e);
|
|
4648
4648
|
let s = 0, a = 0, l = !1;
|
|
4649
4649
|
const c = [], f = {
|
|
4650
4650
|
changes: c,
|
|
4651
4651
|
collector: [],
|
|
4652
4652
|
stat: mn(i)
|
|
4653
4653
|
};
|
|
4654
|
-
for (let
|
|
4654
|
+
for (let p = 0; p < i.length; p++) {
|
|
4655
4655
|
if (l) {
|
|
4656
4656
|
l = !1;
|
|
4657
4657
|
continue;
|
|
4658
4658
|
}
|
|
4659
|
-
const [
|
|
4659
|
+
const [_, v] = [i[p], i[p + 1]], [E, w] = [le(_), le(v)], m = _.value.replace(/\n$/, "").split(`
|
|
4660
4660
|
`);
|
|
4661
4661
|
if (v === void 0) {
|
|
4662
4662
|
for (const D of m) {
|
|
@@ -4686,11 +4686,11 @@ function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4686
4686
|
});
|
|
4687
4687
|
if (w === S.ADD) {
|
|
4688
4688
|
l = !0;
|
|
4689
|
-
const D = Math.max(
|
|
4689
|
+
const D = Math.max(_.count, v.count);
|
|
4690
4690
|
for (let M = 0; M < D; M++) {
|
|
4691
|
-
M <
|
|
4692
|
-
const [I, R] = [m[M], T[M]],
|
|
4693
|
-
c.push({ left: $, right:
|
|
4691
|
+
M < _.count && s++, M < v.count && a++;
|
|
4692
|
+
const [I, R] = [m[M], T[M]], H = m.length === T.length ? Ae(R, I, u) : I, U = m.length === T.length ? Ae(I, R, u) : R, $ = M < _.count ? r(S.DELETE, s, V(o, H)) : t(), F = M < v.count ? r(S.ADD, a, V(o, U)) : t();
|
|
4693
|
+
c.push({ left: $, right: F });
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
@@ -4702,31 +4702,31 @@ function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4702
4702
|
});
|
|
4703
4703
|
}
|
|
4704
4704
|
if (n === e) {
|
|
4705
|
-
for (let
|
|
4706
|
-
c[
|
|
4705
|
+
for (let p = 0; p < c.length; p++)
|
|
4706
|
+
c[p].fold = !1;
|
|
4707
4707
|
return f;
|
|
4708
4708
|
}
|
|
4709
|
-
for (let
|
|
4710
|
-
const
|
|
4711
|
-
if (
|
|
4712
|
-
const [v, E] = [Math.max(
|
|
4709
|
+
for (let p = 0; p < c.length; p++) {
|
|
4710
|
+
const _ = c[p];
|
|
4711
|
+
if (_.left.type === S.DELETE || _.right.type === S.ADD) {
|
|
4712
|
+
const [v, E] = [Math.max(p - g, 0), Math.min(p + g + 1, c.length)];
|
|
4713
4713
|
for (let w = v; w < E; w++)
|
|
4714
4714
|
c[w].fold = !1;
|
|
4715
4715
|
}
|
|
4716
|
-
|
|
4716
|
+
_.fold === void 0 && (_.fold = !0);
|
|
4717
4717
|
}
|
|
4718
4718
|
const h = [];
|
|
4719
4719
|
let d = [];
|
|
4720
|
-
for (let
|
|
4721
|
-
const
|
|
4722
|
-
if (
|
|
4720
|
+
for (let p = 0; p < c.length; p++) {
|
|
4721
|
+
const _ = c[p];
|
|
4722
|
+
if (_.fold === !1) {
|
|
4723
4723
|
d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
|
|
4724
4724
|
lines: d,
|
|
4725
4725
|
fold: !0
|
|
4726
|
-
}), d = []), h.push(
|
|
4726
|
+
}), d = []), h.push(_);
|
|
4727
4727
|
continue;
|
|
4728
4728
|
}
|
|
4729
|
-
|
|
4729
|
+
_.hide = !0, d.push(_), h.push(_);
|
|
4730
4730
|
}
|
|
4731
4731
|
return d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
|
|
4732
4732
|
lines: d,
|
|
@@ -4746,30 +4746,30 @@ function jt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4746
4746
|
s = !1;
|
|
4747
4747
|
continue;
|
|
4748
4748
|
}
|
|
4749
|
-
const [d,
|
|
4749
|
+
const [d, p] = [t[h], t[h + 1]], [_, v] = [le(d), le(p)], E = d.value.replace(/\n$/, "").split(`
|
|
4750
4750
|
`);
|
|
4751
|
-
if (
|
|
4751
|
+
if (p === void 0) {
|
|
4752
4752
|
for (const m of E) {
|
|
4753
|
-
|
|
4753
|
+
_ === S.EQUAL && (r++, i++), _ === S.DELETE && r++, _ === S.ADD && i++;
|
|
4754
4754
|
const T = V(o, m);
|
|
4755
4755
|
a.push({
|
|
4756
|
-
type:
|
|
4756
|
+
type: _,
|
|
4757
4757
|
code: T,
|
|
4758
|
-
addNum:
|
|
4759
|
-
delNum:
|
|
4758
|
+
addNum: _ === S.DELETE ? void 0 : i,
|
|
4759
|
+
delNum: _ === S.ADD ? void 0 : r
|
|
4760
4760
|
});
|
|
4761
4761
|
}
|
|
4762
4762
|
break;
|
|
4763
4763
|
}
|
|
4764
|
-
if (
|
|
4764
|
+
if (_ === S.EQUAL)
|
|
4765
4765
|
for (const m of E) {
|
|
4766
4766
|
r++, i++;
|
|
4767
4767
|
const T = V(o, m);
|
|
4768
4768
|
a.push({ type: S.EQUAL, code: T, delNum: r, addNum: i });
|
|
4769
4769
|
}
|
|
4770
|
-
const w =
|
|
4770
|
+
const w = p.value.replace(/\n$/, "").split(`
|
|
4771
4771
|
`);
|
|
4772
|
-
if (
|
|
4772
|
+
if (_ === S.DELETE)
|
|
4773
4773
|
if (v === S.ADD && E.length === w.length) {
|
|
4774
4774
|
for (let m = 0; m < E.length; m++) {
|
|
4775
4775
|
const T = E[m], D = w[m];
|
|
@@ -4790,7 +4790,7 @@ function jt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4790
4790
|
const T = V(o, m);
|
|
4791
4791
|
a.push({ type: S.DELETE, code: T, delNum: r });
|
|
4792
4792
|
}
|
|
4793
|
-
if (
|
|
4793
|
+
if (_ === S.ADD)
|
|
4794
4794
|
for (const m of E) {
|
|
4795
4795
|
i++;
|
|
4796
4796
|
const T = V(o, m);
|
|
@@ -4800,8 +4800,8 @@ function jt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4800
4800
|
for (let h = 0; h < a.length; h++) {
|
|
4801
4801
|
const d = a[h];
|
|
4802
4802
|
if (d.type === S.DELETE || d.type === S.ADD) {
|
|
4803
|
-
const [
|
|
4804
|
-
for (let v =
|
|
4803
|
+
const [p, _] = [Math.max(h - g, 0), Math.min(h + g + 1, a.length)];
|
|
4804
|
+
for (let v = p; v < _; v++)
|
|
4805
4805
|
a[v].fold = !1;
|
|
4806
4806
|
}
|
|
4807
4807
|
d.fold === void 0 && (d.fold = !0);
|
|
@@ -4842,7 +4842,7 @@ const Jt = /* @__PURE__ */ de({
|
|
|
4842
4842
|
return { __sfc: !0, emit: e, getCodeMarker: o, DiffType: S };
|
|
4843
4843
|
}
|
|
4844
4844
|
});
|
|
4845
|
-
function
|
|
4845
|
+
function pe(n, e, o, u, g, t, r, i) {
|
|
4846
4846
|
var s = typeof n == "function" ? n.options : n;
|
|
4847
4847
|
e && (s.render = e, s.staticRenderFns = o, s._compiled = !0), u && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
|
|
4848
4848
|
var a;
|
|
@@ -4891,7 +4891,7 @@ var qt = function() {
|
|
|
4891
4891
|
"blob-code-context": e.line.type === u.DiffType.EQUAL,
|
|
4892
4892
|
"blob-code-hunk": e.line.hide !== void 0
|
|
4893
4893
|
} }, [o("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(e.line.type) }, domProps: { innerHTML: e._s(e.line.code) } })])]);
|
|
4894
|
-
}, er = [], nr = /* @__PURE__ */
|
|
4894
|
+
}, er = [], nr = /* @__PURE__ */ pe(
|
|
4895
4895
|
Jt,
|
|
4896
4896
|
qt,
|
|
4897
4897
|
er,
|
|
@@ -4922,7 +4922,7 @@ var ir = function() {
|
|
|
4922
4922
|
return o("table", { staticClass: "diff-table" }, [o("tbody", e._l((g = e.diffChange) == null ? void 0 : g.changes, function(t, r) {
|
|
4923
4923
|
return o(u.UnifiedLine, { key: r, attrs: { line: t }, on: { expand: u.expandHandler } });
|
|
4924
4924
|
}), 1)]);
|
|
4925
|
-
}, sr = [], ar = /* @__PURE__ */
|
|
4925
|
+
}, sr = [], ar = /* @__PURE__ */ pe(
|
|
4926
4926
|
rr,
|
|
4927
4927
|
ir,
|
|
4928
4928
|
sr,
|
|
@@ -4939,17 +4939,25 @@ const or = ar.exports, lr = /* @__PURE__ */ de({
|
|
|
4939
4939
|
},
|
|
4940
4940
|
emits: ["expand"],
|
|
4941
4941
|
setup(n, { emit: e }) {
|
|
4942
|
-
function o(
|
|
4943
|
-
return
|
|
4942
|
+
function o(g) {
|
|
4943
|
+
return g === S.DELETE ? "-" : g === S.ADD ? "+" : "";
|
|
4944
4944
|
}
|
|
4945
|
-
|
|
4945
|
+
function u(g) {
|
|
4946
|
+
window.getSelection().removeAllRanges();
|
|
4947
|
+
const t = document.querySelectorAll(".file-diff-split .split-side-left"), r = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
4948
|
+
for (const i of r)
|
|
4949
|
+
i.classList.toggle("no-select", g === "left");
|
|
4950
|
+
for (const i of t)
|
|
4951
|
+
i.classList.toggle("no-select", g === "right");
|
|
4952
|
+
}
|
|
4953
|
+
return { __sfc: !0, emit: e, getCodeMarker: o, onSplitLineMousedown: u, DiffType: S };
|
|
4946
4954
|
}
|
|
4947
4955
|
});
|
|
4948
4956
|
var cr = function() {
|
|
4949
4957
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
4950
4958
|
return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? o("tr", [o("td", { staticClass: "blob-num blob-num-hunk", attrs: { colspan: "1" }, on: { click: function(g) {
|
|
4951
4959
|
return u.emit("expand", e.splitLine);
|
|
4952
|
-
} } }, [e._v(" > ")]), o("td", { staticClass: "blob-code blob-code-inner blob-code-hunk", attrs: { colspan: "3", align: "left" } }, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : o("tr", [e._l([e.splitLine.left, e.splitLine.right], function(g) {
|
|
4960
|
+
} } }, [e._v(" > ")]), o("td", { staticClass: "blob-code blob-code-inner blob-code-hunk", attrs: { colspan: "3", align: "left" } }, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : o("tr", [e._l([e.splitLine.left, e.splitLine.right], function(g, t) {
|
|
4953
4961
|
return [g.type === u.DiffType.EMPTY ? [o("td", { staticClass: "blob-num blob-num-empty empty-cell" }), o("td", { staticClass: "blob-code blob-code-empty empty-cell" })] : [o("td", { staticClass: "blob-num", class: {
|
|
4954
4962
|
"blob-num-deletion": g.type === u.DiffType.DELETE,
|
|
4955
4963
|
"blob-num-addition": g.type === u.DiffType.ADD,
|
|
@@ -4959,10 +4967,14 @@ var cr = function() {
|
|
|
4959
4967
|
"blob-code-deletion": g.type === u.DiffType.DELETE,
|
|
4960
4968
|
"blob-code-addition": g.type === u.DiffType.ADD,
|
|
4961
4969
|
"blob-code-context": g.type === u.DiffType.EQUAL,
|
|
4962
|
-
"blob-code-hunk": e.splitLine.hide !== void 0
|
|
4963
|
-
|
|
4970
|
+
"blob-code-hunk": e.splitLine.hide !== void 0,
|
|
4971
|
+
"split-side-left": t === 0,
|
|
4972
|
+
"split-side-right": t === 1
|
|
4973
|
+
}, on: { mousedown: function(r) {
|
|
4974
|
+
return u.onSplitLineMousedown(t === 0 ? "left" : "right");
|
|
4975
|
+
} } }, [o("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(g.type) }, domProps: { innerHTML: e._s(g.code) } })])]];
|
|
4964
4976
|
})], 2);
|
|
4965
|
-
}, ur = [], fr = /* @__PURE__ */
|
|
4977
|
+
}, ur = [], fr = /* @__PURE__ */ pe(
|
|
4966
4978
|
lr,
|
|
4967
4979
|
cr,
|
|
4968
4980
|
ur,
|
|
@@ -4993,20 +5005,20 @@ var dr = function() {
|
|
|
4993
5005
|
return o("table", { staticClass: "file-diff-split diff-table" }, [e._m(0), o("tbody", e._l((g = e.diffChange) == null ? void 0 : g.changes, function(t, r) {
|
|
4994
5006
|
return o(u.SplitLine, { key: r, attrs: { "split-line": t }, on: { expand: u.expandHandler } });
|
|
4995
5007
|
}), 1)]);
|
|
4996
|
-
},
|
|
5008
|
+
}, pr = [function() {
|
|
4997
5009
|
var n = this, e = n._self._c;
|
|
4998
5010
|
return n._self._setupProxy, e("colgroup", [e("col", { attrs: { width: "44" } }), e("col"), e("col", { attrs: { width: "44" } }), e("col")]);
|
|
4999
|
-
}],
|
|
5011
|
+
}], _r = /* @__PURE__ */ pe(
|
|
5000
5012
|
hr,
|
|
5001
5013
|
dr,
|
|
5002
|
-
|
|
5014
|
+
pr,
|
|
5003
5015
|
!1,
|
|
5004
5016
|
null,
|
|
5005
5017
|
"829edc33",
|
|
5006
5018
|
null,
|
|
5007
5019
|
null
|
|
5008
5020
|
);
|
|
5009
|
-
const br =
|
|
5021
|
+
const br = _r.exports;
|
|
5010
5022
|
const vr = /* @__PURE__ */ de({
|
|
5011
5023
|
__name: "CodeDiff",
|
|
5012
5024
|
props: {
|
|
@@ -5019,7 +5031,9 @@ const vr = /* @__PURE__ */ de({
|
|
|
5019
5031
|
trim: { type: Boolean, default: !1 },
|
|
5020
5032
|
noDiffLineFeed: { type: Boolean, default: !1 },
|
|
5021
5033
|
maxHeight: { default: void 0 },
|
|
5022
|
-
filename: { default: void 0 }
|
|
5034
|
+
filename: { default: void 0 },
|
|
5035
|
+
hideHeader: { type: Boolean, default: !1 },
|
|
5036
|
+
hideStat: { type: Boolean, default: !1 }
|
|
5023
5037
|
},
|
|
5024
5038
|
emits: ["diff"],
|
|
5025
5039
|
setup(n, { emit: e }) {
|
|
@@ -5034,7 +5048,7 @@ const vr = /* @__PURE__ */ de({
|
|
|
5034
5048
|
}), r = ce(
|
|
5035
5049
|
() => u.value ? jt(g.value, t.value, o.language, o.diffStyle, o.context) : Xt(g.value, t.value, o.language, o.diffStyle, o.context)
|
|
5036
5050
|
), i = Rn(r.value), s = ce(() => i.value.stat.additionsNum === 0 && i.value.stat.deletionsNum === 0);
|
|
5037
|
-
return
|
|
5051
|
+
return Ln(() => o, () => {
|
|
5038
5052
|
i.value = r.value, e("diff", {
|
|
5039
5053
|
stat: {
|
|
5040
5054
|
isChanged: !s.value,
|
|
@@ -5047,8 +5061,8 @@ const vr = /* @__PURE__ */ de({
|
|
|
5047
5061
|
});
|
|
5048
5062
|
var Er = function() {
|
|
5049
5063
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
5050
|
-
return o("div", { staticClass: "code-diff-view", style: { maxHeight: e.maxHeight } }, [o("div", { staticClass: "file-header" }, [o("div", { staticClass: "file-info" }, [o("span", { staticClass: "filename" }, [e._v(e._s(e.filename))]), o("span", { staticClass: "diff-stat" }, [o("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), o("span", { staticClass: "diff-stat-deleted", staticStyle: { "margin-left": "8px" } }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])])])]), u.isUnifiedViewer ? o(u.UnifiedViewer, { attrs: { "diff-change": u.diffChange } }) : o(u.SplitViewer, { attrs: { "diff-change": u.diffChange } })], 1);
|
|
5051
|
-
}, mr = [], yr = /* @__PURE__ */
|
|
5064
|
+
return o("div", { staticClass: "code-diff-view", style: { maxHeight: e.maxHeight } }, [e.hideHeader ? e._e() : o("div", { staticClass: "file-header" }, [o("div", { staticClass: "file-info" }, [o("span", { staticClass: "filename" }, [e._v(e._s(e.filename))]), e.hideStat ? e._e() : o("span", { staticClass: "diff-stat" }, [o("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), o("span", { staticClass: "diff-stat-deleted", staticStyle: { "margin-left": "8px" } }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])])])]), u.isUnifiedViewer ? o(u.UnifiedViewer, { attrs: { "diff-change": u.diffChange } }) : o(u.SplitViewer, { attrs: { "diff-change": u.diffChange } })], 1);
|
|
5065
|
+
}, mr = [], yr = /* @__PURE__ */ pe(
|
|
5052
5066
|
vr,
|
|
5053
5067
|
Er,
|
|
5054
5068
|
mr,
|